424e209539c1fd3a17e3fb42b5d8fade0b22f735
[gnulib.git] / ChangeLog
1 2010-07-30  Bruno Haible  <bruno@clisp.org>
2
3         frexpl: Update regarding AIX.
4         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
5         on AIX 7.
6         Reported by Rainer Tammer.
7
8 2010-07-30  Bruno Haible  <bruno@clisp.org>
9
10         open, fopen: Update regarding AIX.
11         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14         * doc/posix-functions/fopen.texi: Likewise.
15         Reported by Rainer Tammer.
16
17 2010-07-30  Bruno Haible  <bruno@clisp.org>
18
19         chown: Update doc regarding AIX.
20         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22         Reported by Rainer Tammer.
23
24 2010-07-30  Eric Blake  <eblake@redhat.com>
25
26         strtod: fix bug in replacement function on AIX
27         * lib/strtod.c (strtod): Special case broken "0x" parse in
28         underlying strtod.
29         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30         * doc/posix-functions/strtod.texi (strtod): Likewise.
31         Reported by Rainer Tammer.
32
33 2010-07-30  Bruno Haible  <bruno@clisp.org>
34
35         mbrlen: Fix cross-compilation guess for AIX.
36         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
37         guess. Leftover from 2008-12-22.
38
39 2010-07-30  Bruno Haible  <bruno@clisp.org>
40
41         mbrtowc: Fix cross-compilation guess for AIX.
42         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
43         guess. Leftover from 2008-12-21.
44
45 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
46
47         init.sh: work around trap limitation of some shells
48         * tests/init.sh (setup_): Move exit trap outside of shell function.
49
50 2010-07-29  Eric Blake  <eblake@redhat.com>
51
52         strtod: aid debugging
53         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
54         understanding why strtod is rejected.
55
56 2010-07-28  Bruno Haible  <bruno@clisp.org>
57
58         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
59         * lib/unistr/u8-chr.c: Include <string.h>.
60         * tests/unistr/test-u8-chr.c: Likewise.
61         * tests/unistr/test-u16-chr.c: Likewise.
62         * tests/unistr/test-u32-chr.c: Likewise.
63         * tests/unistr/test-u8-strchr.c: Likewise.
64         * tests/unistr/test-u16-strchr.c: Likewise.
65         * tests/unistr/test-u32-strchr.c: Likewise.
66         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
67         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
68         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
69         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
70
71 2010-07-28  Bruno Haible  <bruno@clisp.org>
72
73         Use spaces for indentation, not tabs.
74         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
75
76 2010-07-27  Bruno Haible  <bruno@clisp.org>
77
78         mbspcasecmp: Fix function specification.
79         * lib/string.in.h (mbspcasecmp): Fix specification comment.
80         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
81         Reported by Eric Blake <eblake@redhat.com>.
82
83 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
84
85         timespec: use cast and not conditional, as truncation isn't possible
86         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
87         instead of a conditional.  Comment about the situation in more detail.
88         This undoes most of the 2009-10-29 patch.
89
90 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
91
92         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
93         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
94         * lib/unistr/u8-strchr.c: Likewise.
95         * modules/unistr/u8-chr: Depend on memchr.
96
97         unistr/u*-strchr: add tests
98         * modules/unistr/u8-strchr-tests: New file.
99         * modules/unistr/u16-strchr-tests: New file.
100         * modules/unistr/u32-strchr-tests: New file.
101         * tests/unistr/test-strchr.h: New file.
102         * tests/unistr/test-u8-strchr.c: New file.
103         * tests/unistr/test-u16-strchr.c: New file.
104         * tests/unistr/test-u32-strchr.c: New file.
105
106         unistr/u*-chr: test multibyte sequences more
107         * tests/unistr/test-chr.h: Do complete testing of the characters in the
108         test vector.
109         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
110         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
111         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
112
113         unistr/u*-chr: test multibyte sequences
114         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
115
116         unistr/u*-chr: prepare for multibyte tests
117         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
118         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
119         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
120         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
121         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
122         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
123
124 2010-07-18  Bruno Haible  <bruno@clisp.org>
125
126         unistr/u8-strchr: Optimize non-ASCII argument case.
127         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
128         because the first byte often matches anyway.
129         Reported by Pádraig Brady <P@draigbrady.com>.
130
131 2010-07-15  Karl Berry  <karl@gnu.org>
132
133         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
134
135 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
136
137         getcwd: on Solaris, work better if ancestors are inaccessible
138         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
139         buffer and size, try again with a large buffer.  This works better
140         on Solaris, since its getcwd succeeds even if the path to the root
141         is inaccessible, and this is helpful in common cases such as .zfs
142         hidden directories.  Problem reported by J Chapman Flack in
143         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
144         Use system getcwd if it's declared, not merely if it's partly
145         working; use the partly-working test only to avoid needless effort
146         if the system getcwd fails.
147         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
148         comment that was already obsolete and is now even more obsolete.
149         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
150         now might call strdup.
151
152 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
153
154         pthread: Add enough so that coreutils/src/sort.c compiles.
155         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
156         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
157         gnulib. Include <sched.h> and <time.h>, as per POSIX.
158         Include <sys/types.h>, in case it defines pthread_t.
159         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
160         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
161         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
162         (pthread_rwlockattr_t, pthread_spinlock_t):
163         New typedefs, if HAVE_PTHREAD_T is not defined.
164         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
165         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
166         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
167         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
168         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
169         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
170         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
171         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
172         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
173         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
174         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
175         New macros.
176         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
177         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
178         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
179         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
180         (pthread_spin_unlock): New dummy functions.
181         (pthread_create): Return EAGAIN; don't set errno.
182         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
183         require AC_C_INLINE.
184         * modules/pthread (Depends-on): Add sched, time.
185         (pthread.h): Use AM_V_GEN.
186
187 2010-07-13  Bruno Haible  <bruno@clisp.org>
188
189         striconveh: Don't malloc memory if the result buffer is sufficient.
190         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
191         buffer if its size is sufficient.
192         Reported by Ludovic Courtès <ludo@gnu.org>.
193
194 2010-07-13  Bruno Haible  <bruno@clisp.org>
195
196         strtod: Add safety check.
197         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
198
199 2010-07-12  Bruno Haible  <bruno@clisp.org>
200
201         Unify tests that set gl_cv_func_ldexpl_no_libm.
202         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
203         gl_FUNC_LDEXPL.
204         (gl_FUNC_LDEXPL): Invoke it.
205         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
206
207 2010-07-12  Bruno Haible  <bruno@clisp.org>
208
209         Unify tests that set gl_cv_func_ldexp_no_libm.
210         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
211         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
212         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
213         (configure.ac): Simply invoke gl_FUNC_LDEXP.
214         * modules/strtod (Files): Add m4/ldexp.m4.
215
216 2010-07-12  Bruno Haible  <bruno@clisp.org>
217
218         Unify tests that set gl_cv_func_frexpl_no_libm.
219         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
220         gl_FUNC_FREXPL_NO_LIBM.
221         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
222         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
223
224 2010-07-12  Bruno Haible  <bruno@clisp.org>
225
226         Unify tests that set gl_cv_func_frexp_no_libm.
227         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
228         gl_FUNC_FREXP_NO_LIBM.
229         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
230         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
231
232 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
233
234         memcoll: clarify sizes versus lengths, document better, and tweak perf
235         * lib/memcoll.c (strcoll_loop, memcoll0):
236         Improve quality of descriptive comments.  Name variables
237         consistently as to whether they are lengths (which do not include
238         terminating null) versus sizes (which do).
239         * lib/xmemcoll.c (xmemcoll0): Likewise.
240         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
241         returned when s1size == 0; this is easier to compile and saves
242         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
243
244 2010-07-12  Bruno Haible  <bruno@clisp.org>
245
246         Tests for module '_Exit'.
247         * modules/_Exit-tests: New file.
248         * tests/test-_Exit.sh: New file.
249         * tests/test-_Exit.c: New file.
250
251         New module '_Exit'.
252         * lib/stdlib.in.h (__attribute__): New macro.
253         (_Exit): New declaration.
254         * lib/_Exit.c: New file.
255         * m4/_Exit.m4: New file.
256         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
257         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
258         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
259         * modules/_Exit: New file.
260         * tests/test-stdlib-c++.cc (_Exit): Check signature.
261         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
262
263 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
264
265         strtod: make it more-accurate typically, and don't require libm
266         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
267         Include limits.h.  Don't include string.h.
268         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
269         (locale_isspace): New function, so that no casts are needed to
270         check whether *s is a space.
271         (ldexp): Provide an unused dummy if not available.
272         (scale_radix_exp, parse_number, underlying_strtod): New functions.
273         (strtod): Use them.  This implementation prefers to use the
274         underlying strtod if available, falling back on our own code
275         only to fix known bugs.  This is more likely to produce an
276         accurate result.  Also, it avoids the use of libm functions.
277         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
278         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
279         was absent, but it caused a test failure with coreutils.
280         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
281         with libm.
282         * modules/strtod (Makefile.am, Link): libm is no longer needed.
283         * modules/strtod-tests (Makefile.am): Likewise.
284
285 2010-07-11  Pádraig Brady  <P@draigBrady.com>
286             Bruno Haible  <bruno@clisp.org>
287
288         unistr/u8-strchr: Optimize ASCII argument case.
289         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
290
291 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
292
293         (x)memcoll: minor tweaks
294         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
295         is after the type that it qualifies.
296         (memcoll0): Likewise.
297         * lib/memcoll.h (memcoll0): Likewise.
298         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
299         * lib/xmemcoll.h (xmemcoll0): Likewise.
300         * lib/memcoll.c (memcoll0): Correct the comment.  This function
301         differs from memcoll in that the NUL byte is part of the argument.
302         Omit the abort-checks, as performance is a real issue here.  Plus,
303         the checks were wrong anyway (an off-by-one error).  Omit local
304         variable 'diff', as it's a bit clearer that way.
305         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
306         no longer needed.
307
308 2010-07-08  Chen Guo <chenguo4@yahoo.com>
309
310         (x)memcoll: speedup when input is known to be NUL delimited
311         * lib/memcoll.c: Include stdlib.
312         (memcoll0) New function.
313         (strcoll_loop) New function, refactored for use in both memcoll
314         and memcoll0.
315         * lib/memcoll.h: Add prototype for memcoll0.
316         * lib/xmemcoll.c: (xmemcoll0) New function.
317         (collate_error) New function, refactored for use in both xmemcoll
318         and xmemcoll0.
319         * lib/xmemcoll.h: Add prototype for xmemcoll0.
320         * m4/memcoll.m4: add inline invocation.
321
322 2010-07-06  Pádraig Brady  <P@draigBrady.com>
323
324         * build-aux/bootstrap: Remove any local translations
325         from the translation project synchronization directory,
326         so that local only translations are not distributed.
327
328 2010-07-04  Bruno Haible  <bruno@clisp.org>
329
330         fsusage: Clarify which code applies to which platforms.
331         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
332         platform.
333         * lib/fsusage.c (get_fs_usage): Likewise.
334
335 2010-07-04  Bruno Haible  <bruno@clisp.org>
336
337         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
338         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
339         Reported by Martin Lambers <marlam@marlam.de>.
340
341 2010-07-04  Jim Meyering  <meyering@redhat.com>
342
343         hash: once again explicitly disallow insertion of NULL
344         * lib/hash.c (hash_insert0): Reinstate just-removed test:
345         inserting a NULL pointer cannot work with these functions.
346         Add a comment with details.
347         This reverts part of the 2010-07-01 commit, 5bef1a35
348         "hash: extend module to deal with non-pointer keys".
349
350 2010-07-01  Bruno Haible  <bruno@clisp.org>
351
352         stdbool: Update doc.
353         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
354         Info from Christian Weisgerber <naddy@mips.inka.de>.
355
356 2010-07-01  Jim Meyering  <meyering@redhat.com>
357
358         hash: extend module to deal with non-pointer keys
359         * lib/hash.c (hash_insert0): New interface, much like hash_insert
360         but that allows insertion of non-pointer entries.
361         Do not disallow an ENTRY value of NULL.
362         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
363         * lib/hash.h (hash_insert0): Declare.
364
365 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
366
367         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
368         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
369         not present (i.e. with autoconf 2.59 and when using gettextize, not
370         gnulib), require AC_GNU_SOURCE instead.
371
372 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
373
374         idpriv-drop: Fix tests.
375         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
376         not to the test-idpriv-droptemp program.
377
378 2010-06-29  Bruno Haible  <bruno@clisp.org>
379
380         string: Fix syntax error with g++ 2.96.
381         * lib/string.in.h (__pure__): Remove definition.
382         (_GL_ATTRIBUTE_PURE): New macro.
383         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
384         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
385         Reported by Christian Weisgerber <naddy@mips.inka.de>.
386
387 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
388
389         unitypes: Fix bug introduced on 2010-05-18.
390         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
391
392 2010-06-22  Eric Blake  <eblake@redhat.com>
393
394         memmem: slight optimization
395         * lib/str-two-way.h (critical_factorization): Update comments.
396         Reduce work during factorization phase.
397         Reported by Carlos Bueno <carlos@bueno.org>.
398
399 2010-06-21  Bruno Haible  <bruno@clisp.org>
400
401         Fix HAVE_CALLOC_POSIX misnomer.
402         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
403         !HAVE_CALLOC_POSIX.
404         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
405         HAVE_CALLOC_POSIX.
406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
407         instead of HAVE_CALLOC_POSIX.
408         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
409         HAVE_CALLOC_POSIX.
410
411         Use modern idiom for calloc() replacement.
412         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
413         AC_FUNC_CALLOC.
414         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
415         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
416         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
417         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
418         (gl_REPLACE_CALLOC): New macro.
419
420 2010-06-21  Bruno Haible  <bruno@clisp.org>
421
422         Fix HAVE_REALLOC_POSIX misnomer.
423         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
424         !HAVE_REALLOC_POSIX.
425         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
426         HAVE_REALLOC_POSIX.
427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
428         instead of HAVE_REALLOC_POSIX.
429         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
430         HAVE_REALLOC_POSIX.
431
432         Use modern idiom for realloc() replacement.
433         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
434         AC_FUNC_REALLOC.
435         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
436         Autoconf's AC_FUNC_REALLOC.
437         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
438         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
439         (gl_REPLACE_REALLOC): New macro.
440         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
441
442 2010-06-21  Bruno Haible  <bruno@clisp.org>
443
444         Fix HAVE_MALLOC_POSIX misnomer.
445         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
446         !HAVE_MALLOC_POSIX.
447         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
448         HAVE_MALLOC_POSIX.
449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
450         instead of HAVE_MALLOC_POSIX.
451         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
452         HAVE_MALLOC_POSIX.
453
454         Use modern idiom for malloc() replacement.
455         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
456         AC_FUNC_MALLOC.
457         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
458         Autoconf's AC_FUNC_MALLOC.
459         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
460         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
461         (gl_REPLACE_MALLOC): New macro.
462         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
463
464 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
465
466         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
467         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
468         This macro takes 3 arguments, not 4.
469
470 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
471
472         ipv6: fix detection under mingw
473         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
474         in6_addr.
475
476 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
477
478         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
479         that strtod() works when cross-compiling to a glibc version known
480         to work.
481
482 2010-06-15  Bruno Haible  <bruno@clisp.org>
483
484         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
485
486 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
487
488         select: Correct timeout.
489         * lib/select.c (rpl_select): Compute wait_timeout correctly.
490
491 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
492
493         git-version-gen: init shell var to avoid env var influence
494         * build-aux/git-version-gen (v): Init shell var to empty.
495
496 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
497
498         priv-set: Don't assume that priv.h exists merely because getppriv does.
499         See Jan Andersen's bug report about AIX 5L in
500         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
501         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
502         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
503         * lib/priv-set.h: Likewise.
504         * tests/test-priv-set.c: Likewise.
505
506 2010-06-13  Bruno Haible  <bruno@clisp.org>
507
508         relocatable: Make it easier to test whether to install wrappers.
509         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
510         RELOCATABLE_VIA_WRAPPER.
511
512 2010-06-13  Bruno Haible  <bruno@clisp.org>
513
514         gnulib-tool: Display specified modules and dependencies differently.
515         * gnulib-tool (func_show_module_list): New function.
516         (func_import, func_create_testdir): Invoke it.
517         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
518
519 2010-06-13  Bruno Haible  <bruno@clisp.org>
520
521         gnulib-tool: Align code of func_import and func_create_testdir.
522         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
523         specified_modules.
524
525 2010-06-12  Jim Meyering  <meyering@redhat.com>
526
527         test-inttostr: avoid spurious failure on Solaris 9
528         * tests/test-inttostr.c (main): Skip the test when snprintf fails
529         to accept "%ju".  Reported by Bruno Haible.
530
531 2010-06-11  Jim Meyering  <meyering@redhat.com>
532
533         test-sys_socket: mark variables as used more readably
534         * tests/test-sys_socket.c (main): Mark otherwise unused variables
535         as "used" explicitly via (void) statement casts.  This is more
536         readable than using them in an artificial return expression.
537         Suggestion from Bruno Haible.
538
539 2010-06-11  Bruno Haible  <bruno@clisp.org>
540
541         Avoid some more warnings from "gcc -Wwrite-strings".
542         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
543         to 'const char *'.
544         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
545         * tests/test-c-strcasestr.c (main): Likewise.
546         * tests/test-mbscasestr1.c (main): Likewise.
547         * tests/test-mbscasestr2.c (main): Likewise.
548         * tests/test-memmem.c (main): Likewise.
549         * tests/test-strstr.c (main): Likewise.
550         * tests/test-strcasestr.c (main): Likewise.
551
552 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
553
554         init.sh: change framework_failure_ to fail with status 99, not 1
555         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
556         automake's parallel-tests rule that this is an unexpected failure,
557         even if the test is listed in XFAIL_TESTS.
558
559 2010-06-11  Jim Meyering  <meyering@redhat.com>
560
561         test-inttostr: avoid warnings about 4-6KB literal strings
562         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
563         Include "macros.h", for its definition of ASSERT.
564         (CK): s/assert/ASSERT/
565         * modules/inttostr-tests (Files): Add macros.h.
566
567         init.sh: don't use $ME_ or skip_ before they are defined
568         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
569         their first uses.  Also hoist their companions: warn_, fail_,
570         framework_failure_, $stderr_fileno.  Prompted by a patch from
571         Stefano Lattarini.
572
573         test-sys_socket: avoid set-but-not-used warnings from gcc
574         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
575         avoid warning about set-but-not-used variables.
576
577         test-xvasprintf: avoid 'const' discard warnings
578         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
579         "const" when assigning from literal strings.
580         (test_xasprintf): Add "void" in function argument list to placate
581         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
582
583         tests: avoid compilation warnings in argmatch and exclude tests...
584         in packages that define ARGMATCH_DIE_DECL, like coreutils.
585         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
586         Since it always exits, declare with the "noreturn" attribute.
587         * tests/test-argmatch.c: Likewise.
588
589         tests: avoid 'const' discard warnings in mbsstr tests
590         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
591         * tests/test-mbsstr2.c (main): Likewise.
592
593         test-verify: avoid warning from gcc's -Wmissing-declarations
594         * tests/test-verify.c (function): Declare to be static.
595
596         test-inttostr.c: include <string.h> for use of strcmp
597         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
598
599         test-linkat: avoid failed assertion on "other" architectures
600         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
601         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
602         sparc: https://bugs.launchpad.net/bugs/591968
603
604 2010-06-11  Jim Meyering  <meyering@redhat.com>
605
606         printf.m4: avoid autoconf's "Expanded Before Required" warning
607         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
608         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
609         autoconf warning.
610
611 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
612
613         Replacement header templates are now named with ".in", not "_".
614         * doc/gnulib-intro.texi: Correct.
615
616 2010-06-10  Jim Meyering  <meyering@redhat.com>
617
618         inttostr-tests: depend on snprintf, not snprintf-posix
619         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
620         snprintf-posix, to avoid this aclocal failure:
621           missing file gnulib-tests/vasnprintf.c
622           configure.ac:45: error: expected source file, required through \
623           AC_LIBSOURCES, not found
624
625 2010-06-10  Jim Meyering  <meyering@redhat.com>
626
627         inttostr: add a new function, inttostr, and tests
628         The namesake function was not available.  The existence of the
629         template file, inttostr.c makes its addition nontrivial.
630         * lib/anytostr.c: Rename from inttostr.c.
631         (anytostr): Rename from inttostr.
632         * lib/inttostr.c: New file.
633         * modules/inttostr (Files): Add anytostr.c.
634         (Makefile.am): Set lib_SOURCES instead of ...
635         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
636         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
637         * lib/offtostr.c: Likewise.
638         * lib/uinttostr.c: Likewise.
639         * lib/umaxtostr.c: Likewise.
640         * modules/inttostr-tests: New file.
641         * tests/test-inttostr.c: New file.  Test these functions.
642
643 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
644             Bruno Haible  <bruno@clisp.org>
645
646         Add "Extending Gnulib" chapter to manual.
647         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
648         chapter.
649         (Extending Gnulib): New chapter.
650         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
651         chapter.
652
653 2010-06-09  Bruno Haible  <bruno@clisp.org>
654
655         Avoid relocwrapper link errors due to gnulib replacement functions.
656         * lib/areadlink.c: Use the system's malloc, realloc functions.
657         (areadlink): Set errno to ENOMEM explicitly.
658         * modules/areadlink (Depends-on): Remove malloc-posix.
659         Reported by Ben Pfaff <blp@cs.stanford.edu>.
660
661 2010-06-09  Bruno Haible  <bruno@clisp.org>
662
663         Avoid relocwrapper link errors due to gnulib replacement functions.
664         * lib/canonicalize-lgpl.c: Use the system's malloc function.
665         * lib/malloca.c: Likewise.
666         * lib/relocatable.c: Likewise.
667         * lib/progreloc.c: Use the system's malloc, sprintf functions.
668         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
669         * lib/setenv.c: Use the system's malloc, realloc functions.
670         * lib/strerror.c: Use the system's sprintf function.
671         Reported by Ben Pfaff <blp@cs.stanford.edu>.
672
673 2010-06-04  Bruno Haible  <bruno@clisp.org>
674
675         Prefer documented low-level autoconf macro names.
676         * m4/lib-link.m4: Use m4_translit instead of translit.
677         * m4/environ.m4: Likewise.
678         * m4/mathfunc.m4: Likewise.
679         * m4/onceonly.m4: Likewise.
680         * m4/stdint.m4: Likewise.
681         Suggested by Eric Blake.
682
683 2010-06-04  Martin Lambers  <marlam@marlam.de>
684             Bruno Haible  <bruno@clisp.org>
685
686         havelib: Allow library names with '+' characters.
687         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
688         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
689
690 2010-06-09  Bruno Haible  <bruno@clisp.org>
691
692         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
693         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
694         realloc failed.
695
696 2010-06-08  Peter Simons  <simons@cryp.to>
697
698         maint.mk: make the news-check rule more configurable
699         * top/maint.mk (news-check-lines-spec) New variable.
700         (news-check): Use "sed -n 1,10p" in place of "head".
701
702 2010-06-07  Jim Meyering  <meyering@redhat.com>
703
704         do-release-commit-and-tag: fix typo in --help
705         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
706
707         regex: avoid new dead-code warning with gcc-4.6.0
708         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
709         if-block containing a while-loop.  It's been unused for at least
710         5 years.
711
712 2010-06-05  Bruno Haible  <bruno@clisp.org>
713
714         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
715         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
716
717 2010-06-04  Bruno Haible  <bruno@clisp.org>
718
719         Update to GNU gettext 0.18.1.
720         * modules/gettext (configure.ac): Require gettext infrastructure from
721         version 0.18.1.
722
723 2010-06-03  Bruno Haible  <bruno@clisp.org>
724
725         Don't use AC_LIBOBJ with file names in subdirectories.
726         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
727         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
728         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
729         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
730         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
731         gl_LIBUNISTRING_LIBSOURCE.
732         (Makefile.am): Augment lib_SOURCES here, conditionally.
733         * NEWS: Drop requirement for Automake option 'subdir-objects'.
734
735 2010-06-03  Bruno Haible  <bruno@clisp.org>
736
737         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
738         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
739         expansion does not end with a newline.
740         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
741         unnecessary newline.
742
743 2010-06-03  Bruno Haible  <bruno@clisp.org>
744
745         Reduce dependencies.
746         * tests/test-quotearg.h: New file, extracted from
747         tests/test-quotearg.c.
748         * tests/test-quotearg-simple.c: New file, extracted from
749         tests/test-quotearg.c.
750         * tests/test-quotearg.c: Don't include <ctype.h>.
751         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
752         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
753         use_quote_double_quotes, use_quotearg_colon): Moved to
754         tests/test-quotearg.h.
755         (results_g, flag_results, custom_quotes, custom_results): Moved
756         to tests/test-quotearg-simple.c.
757         (main): Moved the part that does not depend on gettext to
758         tests/test-quotearg-simple.c. Return 77 if the test cannot be
759         performed.
760         * modules/quotearg-simple: New file.
761         * modules/quotearg-simple-tests: New file.
762         * modules/quotearg (Depends-on): Add quotearg-simple.
763         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
764         (Files): Add tests/test-quotearg.h.
765         Reported by Paolo Bonzini.
766
767 2010-06-03  Bruno Haible  <bruno@clisp.org>
768
769         Reduce dependencies.
770         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
771
772 2010-06-03  Bruno Haible  <bruno@clisp.org>
773
774         time: Undefine more broken macros.
775         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
776         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
777         Reported by Eric Blake.
778
779 2010-06-03  Bruno Haible  <bruno@clisp.org>
780
781         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
782         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
783         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
784         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
785         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
786         Reported by Ludovic Courtès <ludo@gnu.org>.
787
788 2010-06-02  Eric Blake  <eblake@redhat.com>
789
790         time: work with mingw + pthreads-win32 library
791         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
792         if timespec is defined only in pthread.h.
793         * modules/time (Makefile.am): Substitute it.
794         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
795         <pthread.h>, when needed.
796         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
797         from the library.
798
799 2010-05-31  Bruno Haible  <bruno@clisp.org>
800
801         Avoid expanding two macros in the wrong order.
802         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
803         gl_LIBUNISTRING if it is defined.
804         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
805         autoconf >= 2.64.
806         Reported by Ludovic Courtès <ludo@gnu.org>.
807
808 2010-05-27  Jim Meyering  <meyering@redhat.com>
809
810         maint.mk: also prohibit "#undef" of always-defined symbols
811         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
812         Allow more than one space before the symbol name.
813         (sc_prohibit_always-defined_macros): Use grep's -E, now that
814         the regexp uses alternation.
815
816 2010-05-26  Eric Blake  <eblake@redhat.com>
817
818         maint.mk: avoid echo -e
819         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
820         Convert all uses of echo -* to printf.
821         Reported by Matthias Bolte.
822
823 2010-05-25  Bruno Haible  <bruno@clisp.org>
824
825         Update to GNU gettext 0.18, part 2.
826         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
827         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
828
829 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
830
831         Add missing include in test-pwrite.c.
832         * tests/test-pwrite.c: Include string.h, for strcmp.
833
834 2010-05-24  Bruno Haible  <bruno@clisp.org>
835
836         * NEWS: Mention requirement for Automake option 'subdir-objects'.
837
838 2010-05-24  Bruno Haible  <bruno@clisp.org>
839
840         Don't use conversion with transliteration in u{8,16,32}_strcoll.
841         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
842         iconveh_error argument.
843         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
844         U_STRCONV_TO_LOCALE.
845         * lib/unistr/u16-strcoll.c: Likewise.
846         * lib/unistr/u32-strcoll.c: Likewise.
847         * modules/unistr/u8-strcoll (Depends-on): Add
848         uniconv/u8-strconv-to-enc, localcharset. Remove
849         uniconv/u8-strconv-to-locale.
850         (configure.ac): Bump version number.
851         * modules/unistr/u16-strcoll (Depends-on): Add
852         uniconv/u16-strconv-to-enc, localcharset. Remove
853         uniconv/u16-strconv-to-locale.
854         (configure.ac): Bump version number.
855         * modules/unistr/u32-strcoll (Depends-on): Add
856         uniconv/u32-strconv-to-enc, localcharset. Remove
857         uniconv/u32-strconv-to-locale.
858         (configure.ac): Bump version number.
859
860 2010-05-24  Bruno Haible  <bruno@clisp.org>
861
862         Avoid a test failure on NetBSD 5.0.
863         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
864         an iconv() bug.
865
866 2010-05-24  Bruno Haible  <bruno@clisp.org>
867
868         Adjust #include directive style.
869         * modules/regex (Includes): Recommend to write <regex.h>.
870
871 2010-05-24  Bruno Haible  <bruno@clisp.org>
872
873         regex: Don't require alloca.
874         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
875         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
876         only inside if (0).
877
878 2010-05-23  Jim Meyering  <meyering@redhat.com>
879
880         test-renameat.c: include <sys/stat.h>
881         * tests/test-renameat.c: Include <sys/stat.h>; required for
882         definition of S_IS* macros.
883
884 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
885
886         Update maintainer documentation for 'relocatable-prog' module.
887         * doc/relocatable-maint.texi: Update.
888         Comments by Bruno Haible.
889
890 2010-05-23  Bruno Haible  <bruno@clisp.org>
891
892         git-merge-changelog: Enable --split-merged-entry by default.
893         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
894         (usage): Don't mention this option any more.
895         Reported by Ralf Wildenhues.
896
897 2010-05-23  Jim Meyering  <meyering@redhat.com>
898
899         test-pwrite: do not leave behind a test file named "out"
900         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
901         The trivial-looking use of init.sh is really necessary.
902         It ensures that the temporary file, "out", is created in
903         a temporary directory, and removed upon termination.
904         * tests/test-pwrite.sh: Re-add file.
905         * modules/pwrite-tests: Reference it.
906
907 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
908
909         Fix output redirection buglet in init.sh.
910         * tests/init.sh: Fix redirection of stderr.
911
912 2010-05-20  Simon Josefsson  <simon@josefsson.org>
913
914         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
915
916 2010-05-17  Simon Josefsson  <simon@josefsson.org>
917
918         * modules/valgrind-tests: New file.
919         * m4/valgrind-tests.m4: New file.
920         * doc/valgrind-tests.texi: New file.
921         * doc/gnulib.texi (Running self-tests under valgrind): New
922         section.
923
924 2010-05-19  Bruno Haible  <bruno@clisp.org>
925
926         Clean up dead code in recent commit.
927         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
928         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
929         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
930         Suggested by Paolo Bonzini.
931
932 2010-05-19  Bruno Haible  <bruno@clisp.org>
933
934         Avoid valgrind error reports from libunistring.
935         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
936         * modules/libunistring (Files): Add it.
937         * modules/libunistring-optional (Files): Likewise.
938
939 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
940             Bruno Haible  <bruno@clisp.org>
941
942         New module 'libunistring-optional'.
943         * modules/libunistring-optional: New file.
944         * m4/libunistring-base.m4: New file.
945         * m4/libunistring-optional.m4: New file.
946         * lib/unicase.in.h: Renamed from lib/unicase.h.
947         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
948         * lib/unictype.in.h: Renamed from lib/unictype.h.
949         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
950         * lib/uniname.in.h: Renamed from lib/uniname.h.
951         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
952         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
953         * lib/unistr.in.h: Renamed from lib/unistr.h.
954         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
955         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
956         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
957         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
958         gl_LIBUNISTRING. If the library was found, determine the installed
959         version and set LIBUNISTRING_VERSION.
960         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
961         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
962         handle a configuration option --with-included-libunistring.
963         * modules/libunistring (Files): Add m4/absolute-header.m4.
964         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
965         Add m4/libunistring-base.m4.
966         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
967         (Makefile.am): Build unicase.h from unicase.in.h.
968         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
969         Add m4/libunistring-base.m4.
970         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
971         (Makefile.am): Build uniconv.h from uniconv.in.h.
972         * modules/unictype/base (Files): Use unictype.in.h instead of
973         unictype.h. Add m4/libunistring-base.m4.
974         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
975         (Makefile.am): Build unictype.h from unictype.in.h.
976         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
977         Add m4/libunistring-base.m4.
978         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
979         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
980         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
981         Add m4/libunistring-base.m4.
982         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
983         (Makefile.am): Build uniname.h from uniname.in.h.
984         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
985         Add m4/libunistring-base.m4.
986         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
987         (Makefile.am): Build uninorm.h from uninorm.in.h.
988         * modules/unistdio/base (Files): Use unistdio.in.h instead of
989         unistdio.h. Add m4/libunistring-base.m4.
990         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
991         (Makefile.am): Build unistdio.h from unistdio.in.h.
992         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
993         Add m4/libunistring-base.m4.
994         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
995         (Makefile.am): Build unistr.h from unistr.in.h.
996         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
997         Add m4/libunistring-base.m4.
998         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
999         (Makefile.am): Build unitypes.h from unitypes.in.h.
1000         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
1001         Add m4/libunistring-base.m4.
1002         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1003         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
1004         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
1005         uniwidth.h. Add m4/libunistring-base.m4.
1006         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1007         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
1008         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
1009         instead of augmenting lib_SOURCES.
1010         * modules/unicase/empty-suffix-context: Likewise.
1011         * modules/unicase/locale-language: Likewise.
1012         * modules/unicase/tolower: Likewise.
1013         * modules/unicase/totitle: Likewise.
1014         * modules/unicase/toupper: Likewise.
1015         * modules/unicase/u8-casecmp: Likewise.
1016         * modules/unicase/u8-casecoll: Likewise.
1017         * modules/unicase/u8-casefold: Likewise.
1018         * modules/unicase/u8-casexfrm: Likewise.
1019         * modules/unicase/u8-ct-casefold: Likewise.
1020         * modules/unicase/u8-ct-tolower: Likewise.
1021         * modules/unicase/u8-ct-totitle: Likewise.
1022         * modules/unicase/u8-ct-toupper: Likewise.
1023         * modules/unicase/u8-is-cased: Likewise.
1024         * modules/unicase/u8-is-casefolded: Likewise.
1025         * modules/unicase/u8-is-lowercase: Likewise.
1026         * modules/unicase/u8-is-titlecase: Likewise.
1027         * modules/unicase/u8-is-uppercase: Likewise.
1028         * modules/unicase/u8-prefix-context: Likewise.
1029         * modules/unicase/u8-suffix-context: Likewise.
1030         * modules/unicase/u8-tolower: Likewise.
1031         * modules/unicase/u8-totitle: Likewise.
1032         * modules/unicase/u8-toupper: Likewise.
1033         * modules/unicase/u16-casecmp: Likewise.
1034         * modules/unicase/u16-casecoll: Likewise.
1035         * modules/unicase/u16-casefold: Likewise.
1036         * modules/unicase/u16-casexfrm: Likewise.
1037         * modules/unicase/u16-ct-casefold: Likewise.
1038         * modules/unicase/u16-ct-tolower: Likewise.
1039         * modules/unicase/u16-ct-totitle: Likewise.
1040         * modules/unicase/u16-ct-toupper: Likewise.
1041         * modules/unicase/u16-is-cased: Likewise.
1042         * modules/unicase/u16-is-casefolded: Likewise.
1043         * modules/unicase/u16-is-lowercase: Likewise.
1044         * modules/unicase/u16-is-titlecase: Likewise.
1045         * modules/unicase/u16-is-uppercase: Likewise.
1046         * modules/unicase/u16-prefix-context: Likewise.
1047         * modules/unicase/u16-suffix-context: Likewise.
1048         * modules/unicase/u16-tolower: Likewise.
1049         * modules/unicase/u16-totitle: Likewise.
1050         * modules/unicase/u16-toupper: Likewise.
1051         * modules/unicase/u32-casecmp: Likewise.
1052         * modules/unicase/u32-casecoll: Likewise.
1053         * modules/unicase/u32-casefold: Likewise.
1054         * modules/unicase/u32-casexfrm: Likewise.
1055         * modules/unicase/u32-ct-casefold: Likewise.
1056         * modules/unicase/u32-ct-tolower: Likewise.
1057         * modules/unicase/u32-ct-totitle: Likewise.
1058         * modules/unicase/u32-ct-toupper: Likewise.
1059         * modules/unicase/u32-is-cased: Likewise.
1060         * modules/unicase/u32-is-casefolded: Likewise.
1061         * modules/unicase/u32-is-lowercase: Likewise.
1062         * modules/unicase/u32-is-titlecase: Likewise.
1063         * modules/unicase/u32-is-uppercase: Likewise.
1064         * modules/unicase/u32-prefix-context: Likewise.
1065         * modules/unicase/u32-suffix-context: Likewise.
1066         * modules/unicase/u32-tolower: Likewise.
1067         * modules/unicase/u32-totitle: Likewise.
1068         * modules/unicase/u32-toupper: Likewise.
1069         * modules/unicase/ulc-casecmp: Likewise.
1070         * modules/unicase/ulc-casecoll: Likewise.
1071         * modules/unicase/ulc-casexfrm: Likewise.
1072         * modules/uniconv/u8-conv-from-enc: Likewise.
1073         * modules/uniconv/u8-conv-to-enc: Likewise.
1074         * modules/uniconv/u8-strconv-from-enc: Likewise.
1075         * modules/uniconv/u8-strconv-from-locale: Likewise.
1076         * modules/uniconv/u8-strconv-to-enc: Likewise.
1077         * modules/uniconv/u8-strconv-to-locale: Likewise.
1078         * modules/uniconv/u16-conv-from-enc: Likewise.
1079         * modules/uniconv/u16-conv-to-enc: Likewise.
1080         * modules/uniconv/u16-strconv-from-enc: Likewise.
1081         * modules/uniconv/u16-strconv-from-locale: Likewise.
1082         * modules/uniconv/u16-strconv-to-enc: Likewise.
1083         * modules/uniconv/u16-strconv-to-locale: Likewise.
1084         * modules/uniconv/u32-conv-from-enc: Likewise.
1085         * modules/uniconv/u32-conv-to-enc: Likewise.
1086         * modules/uniconv/u32-strconv-from-enc: Likewise.
1087         * modules/uniconv/u32-strconv-from-locale: Likewise.
1088         * modules/uniconv/u32-strconv-to-enc: Likewise.
1089         * modules/uniconv/u32-strconv-to-locale: Likewise.
1090         * modules/unictype/bidicategory-byname: Likewise.
1091         * modules/unictype/bidicategory-name: Likewise.
1092         * modules/unictype/bidicategory-of: Likewise.
1093         * modules/unictype/bidicategory-test: Likewise.
1094         * modules/unictype/block-list: Likewise.
1095         * modules/unictype/block-test: Likewise.
1096         * modules/unictype/category-C: Likewise.
1097         * modules/unictype/category-Cc: Likewise.
1098         * modules/unictype/category-Cf: Likewise.
1099         * modules/unictype/category-Cn: Likewise.
1100         * modules/unictype/category-Co: Likewise.
1101         * modules/unictype/category-Cs: Likewise.
1102         * modules/unictype/category-L: Likewise.
1103         * modules/unictype/category-Ll: Likewise.
1104         * modules/unictype/category-Lm: Likewise.
1105         * modules/unictype/category-Lo: Likewise.
1106         * modules/unictype/category-Lt: Likewise.
1107         * modules/unictype/category-Lu: Likewise.
1108         * modules/unictype/category-M: Likewise.
1109         * modules/unictype/category-Mc: Likewise.
1110         * modules/unictype/category-Me: Likewise.
1111         * modules/unictype/category-Mn: Likewise.
1112         * modules/unictype/category-N: Likewise.
1113         * modules/unictype/category-Nd: Likewise.
1114         * modules/unictype/category-Nl: Likewise.
1115         * modules/unictype/category-No: Likewise.
1116         * modules/unictype/category-P: Likewise.
1117         * modules/unictype/category-Pc: Likewise.
1118         * modules/unictype/category-Pd: Likewise.
1119         * modules/unictype/category-Pe: Likewise.
1120         * modules/unictype/category-Pf: Likewise.
1121         * modules/unictype/category-Pi: Likewise.
1122         * modules/unictype/category-Po: Likewise.
1123         * modules/unictype/category-Ps: Likewise.
1124         * modules/unictype/category-S: Likewise.
1125         * modules/unictype/category-Sc: Likewise.
1126         * modules/unictype/category-Sk: Likewise.
1127         * modules/unictype/category-Sm: Likewise.
1128         * modules/unictype/category-So: Likewise.
1129         * modules/unictype/category-Z: Likewise.
1130         * modules/unictype/category-Zl: Likewise.
1131         * modules/unictype/category-Zp: Likewise.
1132         * modules/unictype/category-Zs: Likewise.
1133         * modules/unictype/category-and: Likewise.
1134         * modules/unictype/category-and-not: Likewise.
1135         * modules/unictype/category-byname: Likewise.
1136         * modules/unictype/category-name: Likewise.
1137         * modules/unictype/category-none: Likewise.
1138         * modules/unictype/category-of: Likewise.
1139         * modules/unictype/category-or: Likewise.
1140         * modules/unictype/category-test: Likewise.
1141         * modules/unictype/combining-class: Likewise.
1142         * modules/unictype/ctype-alnum: Likewise.
1143         * modules/unictype/ctype-alpha: Likewise.
1144         * modules/unictype/ctype-blank: Likewise.
1145         * modules/unictype/ctype-cntrl: Likewise.
1146         * modules/unictype/ctype-digit: Likewise.
1147         * modules/unictype/ctype-graph: Likewise.
1148         * modules/unictype/ctype-lower: Likewise.
1149         * modules/unictype/ctype-print: Likewise.
1150         * modules/unictype/ctype-punct: Likewise.
1151         * modules/unictype/ctype-space: Likewise.
1152         * modules/unictype/ctype-upper: Likewise.
1153         * modules/unictype/ctype-xdigit: Likewise.
1154         * modules/unictype/decimal-digit: Likewise.
1155         * modules/unictype/digit: Likewise.
1156         * modules/unictype/mirror: Likewise.
1157         * modules/unictype/numeric: Likewise.
1158         * modules/unictype/property-alphabetic: Likewise.
1159         * modules/unictype/property-ascii-hex-digit: Likewise.
1160         * modules/unictype/property-bidi-arabic-digit: Likewise.
1161         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
1162         * modules/unictype/property-bidi-block-separator: Likewise.
1163         * modules/unictype/property-bidi-boundary-neutral: Likewise.
1164         * modules/unictype/property-bidi-common-separator: Likewise.
1165         * modules/unictype/property-bidi-control: Likewise.
1166         * modules/unictype/property-bidi-embedding-or-override: Likewise.
1167         * modules/unictype/property-bidi-eur-num-separator: Likewise.
1168         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
1169         * modules/unictype/property-bidi-european-digit: Likewise.
1170         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
1171         * modules/unictype/property-bidi-left-to-right: Likewise.
1172         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
1173         * modules/unictype/property-bidi-other-neutral: Likewise.
1174         * modules/unictype/property-bidi-pdf: Likewise.
1175         * modules/unictype/property-bidi-segment-separator: Likewise.
1176         * modules/unictype/property-bidi-whitespace: Likewise.
1177         * modules/unictype/property-byname: Likewise.
1178         * modules/unictype/property-combining: Likewise.
1179         * modules/unictype/property-composite: Likewise.
1180         * modules/unictype/property-currency-symbol: Likewise.
1181         * modules/unictype/property-dash: Likewise.
1182         * modules/unictype/property-decimal-digit: Likewise.
1183         * modules/unictype/property-default-ignorable-code-point: Likewise.
1184         * modules/unictype/property-deprecated: Likewise.
1185         * modules/unictype/property-diacritic: Likewise.
1186         * modules/unictype/property-extender: Likewise.
1187         * modules/unictype/property-format-control: Likewise.
1188         * modules/unictype/property-grapheme-base: Likewise.
1189         * modules/unictype/property-grapheme-extend: Likewise.
1190         * modules/unictype/property-grapheme-link: Likewise.
1191         * modules/unictype/property-hex-digit: Likewise.
1192         * modules/unictype/property-hyphen: Likewise.
1193         * modules/unictype/property-id-continue: Likewise.
1194         * modules/unictype/property-id-start: Likewise.
1195         * modules/unictype/property-ideographic: Likewise.
1196         * modules/unictype/property-ids-binary-operator: Likewise.
1197         * modules/unictype/property-ids-trinary-operator: Likewise.
1198         * modules/unictype/property-ignorable-control: Likewise.
1199         * modules/unictype/property-iso-control: Likewise.
1200         * modules/unictype/property-join-control: Likewise.
1201         * modules/unictype/property-left-of-pair: Likewise.
1202         * modules/unictype/property-line-separator: Likewise.
1203         * modules/unictype/property-logical-order-exception: Likewise.
1204         * modules/unictype/property-lowercase: Likewise.
1205         * modules/unictype/property-math: Likewise.
1206         * modules/unictype/property-non-break: Likewise.
1207         * modules/unictype/property-not-a-character: Likewise.
1208         * modules/unictype/property-numeric: Likewise.
1209         * modules/unictype/property-other-alphabetic: Likewise.
1210         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
1211         * modules/unictype/property-other-grapheme-extend: Likewise.
1212         * modules/unictype/property-other-id-continue: Likewise.
1213         * modules/unictype/property-other-id-start: Likewise.
1214         * modules/unictype/property-other-lowercase: Likewise.
1215         * modules/unictype/property-other-math: Likewise.
1216         * modules/unictype/property-other-uppercase: Likewise.
1217         * modules/unictype/property-paired-punctuation: Likewise.
1218         * modules/unictype/property-paragraph-separator: Likewise.
1219         * modules/unictype/property-pattern-syntax: Likewise.
1220         * modules/unictype/property-pattern-white-space: Likewise.
1221         * modules/unictype/property-private-use: Likewise.
1222         * modules/unictype/property-punctuation: Likewise.
1223         * modules/unictype/property-quotation-mark: Likewise.
1224         * modules/unictype/property-radical: Likewise.
1225         * modules/unictype/property-sentence-terminal: Likewise.
1226         * modules/unictype/property-soft-dotted: Likewise.
1227         * modules/unictype/property-space: Likewise.
1228         * modules/unictype/property-terminal-punctuation: Likewise.
1229         * modules/unictype/property-test: Likewise.
1230         * modules/unictype/property-titlecase: Likewise.
1231         * modules/unictype/property-unassigned-code-value: Likewise.
1232         * modules/unictype/property-unified-ideograph: Likewise.
1233         * modules/unictype/property-uppercase: Likewise.
1234         * modules/unictype/property-variation-selector: Likewise.
1235         * modules/unictype/property-white-space: Likewise.
1236         * modules/unictype/property-xid-continue: Likewise.
1237         * modules/unictype/property-xid-start: Likewise.
1238         * modules/unictype/property-zero-width: Likewise.
1239         * modules/unictype/scripts: Likewise.
1240         * modules/unictype/syntax-c-ident: Likewise.
1241         * modules/unictype/syntax-c-whitespace: Likewise.
1242         * modules/unictype/syntax-java-ident: Likewise.
1243         * modules/unictype/syntax-java-whitespace: Likewise.
1244         * modules/unilbrk/u8-possible-linebreaks: Likewise.
1245         * modules/unilbrk/u8-width-linebreaks: Likewise.
1246         * modules/unilbrk/u16-possible-linebreaks: Likewise.
1247         * modules/unilbrk/u16-width-linebreaks: Likewise.
1248         * modules/unilbrk/u32-possible-linebreaks: Likewise.
1249         * modules/unilbrk/u32-width-linebreaks: Likewise.
1250         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
1251         * modules/unilbrk/ulc-width-linebreaks: Likewise.
1252         * modules/uniname/uniname: Likewise.
1253         * modules/uninorm/canonical-decomposition: Likewise.
1254         * modules/uninorm/composition: Likewise.
1255         * modules/uninorm/decomposing-form: Likewise.
1256         * modules/uninorm/decomposition: Likewise.
1257         * modules/uninorm/filter: Likewise.
1258         * modules/uninorm/nfc: Likewise.
1259         * modules/uninorm/nfd: Likewise.
1260         * modules/uninorm/nfkc: Likewise.
1261         * modules/uninorm/nfkd: Likewise.
1262         * modules/uninorm/u8-normalize: Likewise.
1263         * modules/uninorm/u8-normcmp: Likewise.
1264         * modules/uninorm/u8-normcoll: Likewise.
1265         * modules/uninorm/u8-normxfrm: Likewise.
1266         * modules/uninorm/u16-normalize: Likewise.
1267         * modules/uninorm/u16-normcmp: Likewise.
1268         * modules/uninorm/u16-normcoll: Likewise.
1269         * modules/uninorm/u16-normxfrm: Likewise.
1270         * modules/uninorm/u32-normalize: Likewise.
1271         * modules/uninorm/u32-normcmp: Likewise.
1272         * modules/uninorm/u32-normcoll: Likewise.
1273         * modules/uninorm/u32-normxfrm: Likewise.
1274         * modules/unistdio/u8-asnprintf: Likewise.
1275         * modules/unistdio/u8-asprintf: Likewise.
1276         * modules/unistdio/u8-snprintf: Likewise.
1277         * modules/unistdio/u8-sprintf: Likewise.
1278         * modules/unistdio/u8-u8-asnprintf: Likewise.
1279         * modules/unistdio/u8-u8-asprintf: Likewise.
1280         * modules/unistdio/u8-u8-snprintf: Likewise.
1281         * modules/unistdio/u8-u8-sprintf: Likewise.
1282         * modules/unistdio/u8-u8-vasnprintf: Likewise.
1283         * modules/unistdio/u8-u8-vasprintf: Likewise.
1284         * modules/unistdio/u8-u8-vsnprintf: Likewise.
1285         * modules/unistdio/u8-u8-vsprintf: Likewise.
1286         * modules/unistdio/u8-vasnprintf: Likewise.
1287         * modules/unistdio/u8-vasprintf: Likewise.
1288         * modules/unistdio/u8-vsnprintf: Likewise.
1289         * modules/unistdio/u8-vsprintf: Likewise.
1290         * modules/unistdio/u16-asnprintf: Likewise.
1291         * modules/unistdio/u16-asprintf: Likewise.
1292         * modules/unistdio/u16-snprintf: Likewise.
1293         * modules/unistdio/u16-sprintf: Likewise.
1294         * modules/unistdio/u16-u16-asnprintf: Likewise.
1295         * modules/unistdio/u16-u16-asprintf: Likewise.
1296         * modules/unistdio/u16-u16-snprintf: Likewise.
1297         * modules/unistdio/u16-u16-sprintf: Likewise.
1298         * modules/unistdio/u16-u16-vasnprintf: Likewise.
1299         * modules/unistdio/u16-u16-vasprintf: Likewise.
1300         * modules/unistdio/u16-u16-vsnprintf: Likewise.
1301         * modules/unistdio/u16-u16-vsprintf: Likewise.
1302         * modules/unistdio/u16-vasnprintf: Likewise.
1303         * modules/unistdio/u16-vasprintf: Likewise.
1304         * modules/unistdio/u16-vsnprintf: Likewise.
1305         * modules/unistdio/u16-vsprintf: Likewise.
1306         * modules/unistdio/u32-asnprintf: Likewise.
1307         * modules/unistdio/u32-asprintf: Likewise.
1308         * modules/unistdio/u32-snprintf: Likewise.
1309         * modules/unistdio/u32-sprintf: Likewise.
1310         * modules/unistdio/u32-u32-asnprintf: Likewise.
1311         * modules/unistdio/u32-u32-asprintf: Likewise.
1312         * modules/unistdio/u32-u32-snprintf: Likewise.
1313         * modules/unistdio/u32-u32-sprintf: Likewise.
1314         * modules/unistdio/u32-u32-vasnprintf: Likewise.
1315         * modules/unistdio/u32-u32-vasprintf: Likewise.
1316         * modules/unistdio/u32-u32-vsnprintf: Likewise.
1317         * modules/unistdio/u32-u32-vsprintf: Likewise.
1318         * modules/unistdio/u32-vasnprintf: Likewise.
1319         * modules/unistdio/u32-vasprintf: Likewise.
1320         * modules/unistdio/u32-vsnprintf: Likewise.
1321         * modules/unistdio/u32-vsprintf: Likewise.
1322         * modules/unistdio/ulc-asnprintf: Likewise.
1323         * modules/unistdio/ulc-asprintf: Likewise.
1324         * modules/unistdio/ulc-fprintf: Likewise.
1325         * modules/unistdio/ulc-snprintf: Likewise.
1326         * modules/unistdio/ulc-sprintf: Likewise.
1327         * modules/unistdio/ulc-vasnprintf: Likewise.
1328         * modules/unistdio/ulc-vasprintf: Likewise.
1329         * modules/unistdio/ulc-vfprintf: Likewise.
1330         * modules/unistdio/ulc-vsnprintf: Likewise.
1331         * modules/unistdio/ulc-vsprintf: Likewise.
1332         * modules/unistr/u8-check: Likewise.
1333         * modules/unistr/u8-chr: Likewise.
1334         * modules/unistr/u8-cmp: Likewise.
1335         * modules/unistr/u8-cmp2: Likewise.
1336         * modules/unistr/u8-cpy: Likewise.
1337         * modules/unistr/u8-cpy-alloc: Likewise.
1338         * modules/unistr/u8-endswith: Likewise.
1339         * modules/unistr/u8-mblen: Likewise.
1340         * modules/unistr/u8-mbsnlen: Likewise.
1341         * modules/unistr/u8-mbtouc: Likewise.
1342         * modules/unistr/u8-mbtouc-unsafe: Likewise.
1343         * modules/unistr/u8-mbtoucr: Likewise.
1344         * modules/unistr/u8-move: Likewise.
1345         * modules/unistr/u8-next: Likewise.
1346         * modules/unistr/u8-prev: Likewise.
1347         * modules/unistr/u8-set: Likewise.
1348         * modules/unistr/u8-startswith: Likewise.
1349         * modules/unistr/u8-stpcpy: Likewise.
1350         * modules/unistr/u8-stpncpy: Likewise.
1351         * modules/unistr/u8-strcat: Likewise.
1352         * modules/unistr/u8-strchr: Likewise.
1353         * modules/unistr/u8-strcmp: Likewise.
1354         * modules/unistr/u8-strcoll: Likewise.
1355         * modules/unistr/u8-strcpy: Likewise.
1356         * modules/unistr/u8-strcspn: Likewise.
1357         * modules/unistr/u8-strdup: Likewise.
1358         * modules/unistr/u8-strlen: Likewise.
1359         * modules/unistr/u8-strmblen: Likewise.
1360         * modules/unistr/u8-strmbtouc: Likewise.
1361         * modules/unistr/u8-strncat: Likewise.
1362         * modules/unistr/u8-strncmp: Likewise.
1363         * modules/unistr/u8-strncpy: Likewise.
1364         * modules/unistr/u8-strnlen: Likewise.
1365         * modules/unistr/u8-strpbrk: Likewise.
1366         * modules/unistr/u8-strrchr: Likewise.
1367         * modules/unistr/u8-strspn: Likewise.
1368         * modules/unistr/u8-strstr: Likewise.
1369         * modules/unistr/u8-strtok: Likewise.
1370         * modules/unistr/u8-to-u16: Likewise.
1371         * modules/unistr/u8-to-u32: Likewise.
1372         * modules/unistr/u8-uctomb: Likewise.
1373         * modules/unistr/u16-check: Likewise.
1374         * modules/unistr/u16-chr: Likewise.
1375         * modules/unistr/u16-cmp: Likewise.
1376         * modules/unistr/u16-cmp2: Likewise.
1377         * modules/unistr/u16-cpy: Likewise.
1378         * modules/unistr/u16-cpy-alloc: Likewise.
1379         * modules/unistr/u16-endswith: Likewise.
1380         * modules/unistr/u16-mblen: Likewise.
1381         * modules/unistr/u16-mbsnlen: Likewise.
1382         * modules/unistr/u16-mbtouc: Likewise.
1383         * modules/unistr/u16-mbtouc-unsafe: Likewise.
1384         * modules/unistr/u16-mbtoucr: Likewise.
1385         * modules/unistr/u16-move: Likewise.
1386         * modules/unistr/u16-next: Likewise.
1387         * modules/unistr/u16-prev: Likewise.
1388         * modules/unistr/u16-set: Likewise.
1389         * modules/unistr/u16-startswith: Likewise.
1390         * modules/unistr/u16-stpcpy: Likewise.
1391         * modules/unistr/u16-stpncpy: Likewise.
1392         * modules/unistr/u16-strcat: Likewise.
1393         * modules/unistr/u16-strchr: Likewise.
1394         * modules/unistr/u16-strcmp: Likewise.
1395         * modules/unistr/u16-strcoll: Likewise.
1396         * modules/unistr/u16-strcpy: Likewise.
1397         * modules/unistr/u16-strcspn: Likewise.
1398         * modules/unistr/u16-strdup: Likewise.
1399         * modules/unistr/u16-strlen: Likewise.
1400         * modules/unistr/u16-strmblen: Likewise.
1401         * modules/unistr/u16-strmbtouc: Likewise.
1402         * modules/unistr/u16-strncat: Likewise.
1403         * modules/unistr/u16-strncmp: Likewise.
1404         * modules/unistr/u16-strncpy: Likewise.
1405         * modules/unistr/u16-strnlen: Likewise.
1406         * modules/unistr/u16-strpbrk: Likewise.
1407         * modules/unistr/u16-strrchr: Likewise.
1408         * modules/unistr/u16-strspn: Likewise.
1409         * modules/unistr/u16-strstr: Likewise.
1410         * modules/unistr/u16-strtok: Likewise.
1411         * modules/unistr/u16-to-u32: Likewise.
1412         * modules/unistr/u16-to-u8: Likewise.
1413         * modules/unistr/u16-uctomb: Likewise.
1414         * modules/unistr/u32-check: Likewise.
1415         * modules/unistr/u32-chr: Likewise.
1416         * modules/unistr/u32-cmp: Likewise.
1417         * modules/unistr/u32-cmp2: Likewise.
1418         * modules/unistr/u32-cpy: Likewise.
1419         * modules/unistr/u32-cpy-alloc: Likewise.
1420         * modules/unistr/u32-endswith: Likewise.
1421         * modules/unistr/u32-mblen: Likewise.
1422         * modules/unistr/u32-mbsnlen: Likewise.
1423         * modules/unistr/u32-mbtouc: Likewise.
1424         * modules/unistr/u32-mbtouc-unsafe: Likewise.
1425         * modules/unistr/u32-mbtoucr: Likewise.
1426         * modules/unistr/u32-move: Likewise.
1427         * modules/unistr/u32-next: Likewise.
1428         * modules/unistr/u32-prev: Likewise.
1429         * modules/unistr/u32-set: Likewise.
1430         * modules/unistr/u32-startswith: Likewise.
1431         * modules/unistr/u32-stpcpy: Likewise.
1432         * modules/unistr/u32-stpncpy: Likewise.
1433         * modules/unistr/u32-strcat: Likewise.
1434         * modules/unistr/u32-strchr: Likewise.
1435         * modules/unistr/u32-strcmp: Likewise.
1436         * modules/unistr/u32-strcoll: Likewise.
1437         * modules/unistr/u32-strcpy: Likewise.
1438         * modules/unistr/u32-strcspn: Likewise.
1439         * modules/unistr/u32-strdup: Likewise.
1440         * modules/unistr/u32-strlen: Likewise.
1441         * modules/unistr/u32-strmblen: Likewise.
1442         * modules/unistr/u32-strmbtouc: Likewise.
1443         * modules/unistr/u32-strncat: Likewise.
1444         * modules/unistr/u32-strncmp: Likewise.
1445         * modules/unistr/u32-strncpy: Likewise.
1446         * modules/unistr/u32-strnlen: Likewise.
1447         * modules/unistr/u32-strpbrk: Likewise.
1448         * modules/unistr/u32-strrchr: Likewise.
1449         * modules/unistr/u32-strspn: Likewise.
1450         * modules/unistr/u32-strstr: Likewise.
1451         * modules/unistr/u32-strtok: Likewise.
1452         * modules/unistr/u32-to-u16: Likewise.
1453         * modules/unistr/u32-to-u8: Likewise.
1454         * modules/unistr/u32-uctomb: Likewise.
1455         * modules/uniwbrk/u8-wordbreaks: Likewise.
1456         * modules/uniwbrk/u16-wordbreaks: Likewise.
1457         * modules/uniwbrk/u32-wordbreaks: Likewise.
1458         * modules/uniwbrk/ulc-wordbreaks: Likewise.
1459         * modules/uniwbrk/wordbreak-property: Likewise.
1460         * modules/uniwidth/u8-strwidth: Likewise.
1461         * modules/uniwidth/u8-width: Likewise.
1462         * modules/uniwidth/u16-strwidth: Likewise.
1463         * modules/uniwidth/u16-width: Likewise.
1464         * modules/uniwidth/u32-strwidth: Likewise.
1465         * modules/uniwidth/u32-width: Likewise.
1466         * modules/uniwidth/width: Likewise.
1467         * modules/unicase/cased-tests (Makefile.am): Link all test programs
1468         with $(LIBUNISTRING).
1469         * modules/unicase/ignorable-tests: Likewise.
1470         * modules/unicase/locale-language-tests: Likewise.
1471         * modules/unicase/tolower-tests: Likewise.
1472         * modules/unicase/totitle-tests: Likewise.
1473         * modules/unicase/toupper-tests: Likewise.
1474         * modules/unicase/u8-casecmp-tests: Likewise.
1475         * modules/unicase/u8-casecoll-tests: Likewise.
1476         * modules/unicase/u8-casefold-tests: Likewise.
1477         * modules/unicase/u8-is-cased-tests: Likewise.
1478         * modules/unicase/u8-is-casefolded-tests: Likewise.
1479         * modules/unicase/u8-is-lowercase-tests: Likewise.
1480         * modules/unicase/u8-is-titlecase-tests: Likewise.
1481         * modules/unicase/u8-is-uppercase-tests: Likewise.
1482         * modules/unicase/u8-tolower-tests: Likewise.
1483         * modules/unicase/u8-totitle-tests: Likewise.
1484         * modules/unicase/u8-toupper-tests: Likewise.
1485         * modules/unicase/u16-casecmp-tests: Likewise.
1486         * modules/unicase/u16-casecoll-tests: Likewise.
1487         * modules/unicase/u16-casefold-tests: Likewise.
1488         * modules/unicase/u16-is-cased-tests: Likewise.
1489         * modules/unicase/u16-is-casefolded-tests: Likewise.
1490         * modules/unicase/u16-is-lowercase-tests: Likewise.
1491         * modules/unicase/u16-is-titlecase-tests: Likewise.
1492         * modules/unicase/u16-is-uppercase-tests: Likewise.
1493         * modules/unicase/u16-tolower-tests: Likewise.
1494         * modules/unicase/u16-totitle-tests: Likewise.
1495         * modules/unicase/u16-toupper-tests: Likewise.
1496         * modules/unicase/u32-casecmp-tests: Likewise.
1497         * modules/unicase/u32-casecoll-tests: Likewise.
1498         * modules/unicase/u32-casefold-tests: Likewise.
1499         * modules/unicase/u32-is-cased-tests: Likewise.
1500         * modules/unicase/u32-is-casefolded-tests: Likewise.
1501         * modules/unicase/u32-is-lowercase-tests: Likewise.
1502         * modules/unicase/u32-is-titlecase-tests: Likewise.
1503         * modules/unicase/u32-is-uppercase-tests: Likewise.
1504         * modules/unicase/u32-tolower-tests: Likewise.
1505         * modules/unicase/u32-totitle-tests: Likewise.
1506         * modules/unicase/u32-toupper-tests: Likewise.
1507         * modules/unicase/ulc-casecmp-tests: Likewise.
1508         * modules/unicase/ulc-casecoll-tests: Likewise.
1509         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1510         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1511         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1512         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1513         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1514         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1515         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1516         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1517         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1518         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1519         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1520         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1521         * modules/unictype/bidicategory-byname-tests: Likewise.
1522         * modules/unictype/bidicategory-name-tests: Likewise.
1523         * modules/unictype/bidicategory-of-tests: Likewise.
1524         * modules/unictype/bidicategory-test-tests: Likewise.
1525         * modules/unictype/block-list-tests: Likewise.
1526         * modules/unictype/block-of-tests: Likewise.
1527         * modules/unictype/block-test-tests: Likewise.
1528         * modules/unictype/category-C-tests: Likewise.
1529         * modules/unictype/category-Cc-tests: Likewise.
1530         * modules/unictype/category-Cf-tests: Likewise.
1531         * modules/unictype/category-Cn-tests: Likewise.
1532         * modules/unictype/category-Co-tests: Likewise.
1533         * modules/unictype/category-Cs-tests: Likewise.
1534         * modules/unictype/category-L-tests: Likewise.
1535         * modules/unictype/category-Ll-tests: Likewise.
1536         * modules/unictype/category-Lm-tests: Likewise.
1537         * modules/unictype/category-Lo-tests: Likewise.
1538         * modules/unictype/category-Lt-tests: Likewise.
1539         * modules/unictype/category-Lu-tests: Likewise.
1540         * modules/unictype/category-M-tests: Likewise.
1541         * modules/unictype/category-Mc-tests: Likewise.
1542         * modules/unictype/category-Me-tests: Likewise.
1543         * modules/unictype/category-Mn-tests: Likewise.
1544         * modules/unictype/category-N-tests: Likewise.
1545         * modules/unictype/category-Nd-tests: Likewise.
1546         * modules/unictype/category-Nl-tests: Likewise.
1547         * modules/unictype/category-No-tests: Likewise.
1548         * modules/unictype/category-P-tests: Likewise.
1549         * modules/unictype/category-Pc-tests: Likewise.
1550         * modules/unictype/category-Pd-tests: Likewise.
1551         * modules/unictype/category-Pe-tests: Likewise.
1552         * modules/unictype/category-Pf-tests: Likewise.
1553         * modules/unictype/category-Pi-tests: Likewise.
1554         * modules/unictype/category-Po-tests: Likewise.
1555         * modules/unictype/category-Ps-tests: Likewise.
1556         * modules/unictype/category-S-tests: Likewise.
1557         * modules/unictype/category-Sc-tests: Likewise.
1558         * modules/unictype/category-Sk-tests: Likewise.
1559         * modules/unictype/category-Sm-tests: Likewise.
1560         * modules/unictype/category-So-tests: Likewise.
1561         * modules/unictype/category-Z-tests: Likewise.
1562         * modules/unictype/category-Zl-tests: Likewise.
1563         * modules/unictype/category-Zp-tests: Likewise.
1564         * modules/unictype/category-Zs-tests: Likewise.
1565         * modules/unictype/category-and-not-tests: Likewise.
1566         * modules/unictype/category-and-tests: Likewise.
1567         * modules/unictype/category-byname-tests: Likewise.
1568         * modules/unictype/category-name-tests: Likewise.
1569         * modules/unictype/category-none-tests: Likewise.
1570         * modules/unictype/category-of-tests: Likewise.
1571         * modules/unictype/category-or-tests: Likewise.
1572         * modules/unictype/category-test-withtable-tests: Likewise.
1573         * modules/unictype/combining-class-tests: Likewise.
1574         * modules/unictype/ctype-alnum-tests: Likewise.
1575         * modules/unictype/ctype-alpha-tests: Likewise.
1576         * modules/unictype/ctype-blank-tests: Likewise.
1577         * modules/unictype/ctype-cntrl-tests: Likewise.
1578         * modules/unictype/ctype-digit-tests: Likewise.
1579         * modules/unictype/ctype-graph-tests: Likewise.
1580         * modules/unictype/ctype-lower-tests: Likewise.
1581         * modules/unictype/ctype-print-tests: Likewise.
1582         * modules/unictype/ctype-punct-tests: Likewise.
1583         * modules/unictype/ctype-space-tests: Likewise.
1584         * modules/unictype/ctype-upper-tests: Likewise.
1585         * modules/unictype/ctype-xdigit-tests: Likewise.
1586         * modules/unictype/decimal-digit-tests: Likewise.
1587         * modules/unictype/digit-tests: Likewise.
1588         * modules/unictype/mirror-tests: Likewise.
1589         * modules/unictype/numeric-tests: Likewise.
1590         * modules/unictype/property-alphabetic-tests: Likewise.
1591         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1592         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1593         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1594         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1595         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1596         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1597         * modules/unictype/property-bidi-control-tests: Likewise.
1598         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1599         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1600         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1601         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1602         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1603         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1604         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1605         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1606         * modules/unictype/property-bidi-pdf-tests: Likewise.
1607         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1608         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1609         * modules/unictype/property-byname-tests: Likewise.
1610         * modules/unictype/property-combining-tests: Likewise.
1611         * modules/unictype/property-composite-tests: Likewise.
1612         * modules/unictype/property-currency-symbol-tests: Likewise.
1613         * modules/unictype/property-dash-tests: Likewise.
1614         * modules/unictype/property-decimal-digit-tests: Likewise.
1615         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1616         * modules/unictype/property-deprecated-tests: Likewise.
1617         * modules/unictype/property-diacritic-tests: Likewise.
1618         * modules/unictype/property-extender-tests: Likewise.
1619         * modules/unictype/property-format-control-tests: Likewise.
1620         * modules/unictype/property-grapheme-base-tests: Likewise.
1621         * modules/unictype/property-grapheme-extend-tests: Likewise.
1622         * modules/unictype/property-grapheme-link-tests: Likewise.
1623         * modules/unictype/property-hex-digit-tests: Likewise.
1624         * modules/unictype/property-hyphen-tests: Likewise.
1625         * modules/unictype/property-id-continue-tests: Likewise.
1626         * modules/unictype/property-id-start-tests: Likewise.
1627         * modules/unictype/property-ideographic-tests: Likewise.
1628         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1629         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1630         * modules/unictype/property-ignorable-control-tests: Likewise.
1631         * modules/unictype/property-iso-control-tests: Likewise.
1632         * modules/unictype/property-join-control-tests: Likewise.
1633         * modules/unictype/property-left-of-pair-tests: Likewise.
1634         * modules/unictype/property-line-separator-tests: Likewise.
1635         * modules/unictype/property-logical-order-exception-tests: Likewise.
1636         * modules/unictype/property-lowercase-tests: Likewise.
1637         * modules/unictype/property-math-tests: Likewise.
1638         * modules/unictype/property-non-break-tests: Likewise.
1639         * modules/unictype/property-not-a-character-tests: Likewise.
1640         * modules/unictype/property-numeric-tests: Likewise.
1641         * modules/unictype/property-other-alphabetic-tests: Likewise.
1642         * modules/unictype/property-other-default-ignorable-code-point-tests:
1643         Likewise.
1644         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1645         * modules/unictype/property-other-id-continue-tests: Likewise.
1646         * modules/unictype/property-other-id-start-tests: Likewise.
1647         * modules/unictype/property-other-lowercase-tests: Likewise.
1648         * modules/unictype/property-other-math-tests: Likewise.
1649         * modules/unictype/property-other-uppercase-tests: Likewise.
1650         * modules/unictype/property-paired-punctuation-tests: Likewise.
1651         * modules/unictype/property-paragraph-separator-tests: Likewise.
1652         * modules/unictype/property-pattern-syntax-tests: Likewise.
1653         * modules/unictype/property-pattern-white-space-tests: Likewise.
1654         * modules/unictype/property-private-use-tests: Likewise.
1655         * modules/unictype/property-punctuation-tests: Likewise.
1656         * modules/unictype/property-quotation-mark-tests: Likewise.
1657         * modules/unictype/property-radical-tests: Likewise.
1658         * modules/unictype/property-sentence-terminal-tests: Likewise.
1659         * modules/unictype/property-soft-dotted-tests: Likewise.
1660         * modules/unictype/property-space-tests: Likewise.
1661         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1662         * modules/unictype/property-test-tests: Likewise.
1663         * modules/unictype/property-titlecase-tests: Likewise.
1664         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1665         * modules/unictype/property-unified-ideograph-tests: Likewise.
1666         * modules/unictype/property-uppercase-tests: Likewise.
1667         * modules/unictype/property-variation-selector-tests: Likewise.
1668         * modules/unictype/property-white-space-tests: Likewise.
1669         * modules/unictype/property-xid-continue-tests: Likewise.
1670         * modules/unictype/property-xid-start-tests: Likewise.
1671         * modules/unictype/property-zero-width-tests: Likewise.
1672         * modules/unictype/scripts-tests: Likewise.
1673         * modules/unictype/syntax-c-ident-tests: Likewise.
1674         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1675         * modules/unictype/syntax-java-ident-tests: Likewise.
1676         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1677         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
1678         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
1679         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
1680         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
1681         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
1682         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
1683         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
1684         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
1685         * modules/uniname/uniname-tests: Likewise.
1686         * modules/uninorm/canonical-decomposition-tests: Likewise.
1687         * modules/uninorm/compat-decomposition-tests: Likewise.
1688         * modules/uninorm/composition-tests: Likewise.
1689         * modules/uninorm/decomposing-form-tests: Likewise.
1690         * modules/uninorm/decomposition-tests: Likewise.
1691         * modules/uninorm/filter-tests: Likewise.
1692         * modules/uninorm/nfc-tests: Likewise.
1693         * modules/uninorm/nfd-tests: Likewise.
1694         * modules/uninorm/nfkc-tests: Likewise.
1695         * modules/uninorm/nfkd-tests: Likewise.
1696         * modules/uninorm/u8-normcmp-tests: Likewise.
1697         * modules/uninorm/u8-normcoll-tests: Likewise.
1698         * modules/uninorm/u16-normcmp-tests: Likewise.
1699         * modules/uninorm/u16-normcoll-tests: Likewise.
1700         * modules/uninorm/u32-normcmp-tests: Likewise.
1701         * modules/uninorm/u32-normcoll-tests: Likewise.
1702         * modules/unistdio/u8-asnprintf-tests: Likewise.
1703         * modules/unistdio/u8-vasnprintf-tests: Likewise.
1704         * modules/unistdio/u8-vasprintf-tests: Likewise.
1705         * modules/unistdio/u8-vsnprintf-tests: Likewise.
1706         * modules/unistdio/u8-vsprintf-tests: Likewise.
1707         * modules/unistdio/u16-asnprintf-tests: Likewise.
1708         * modules/unistdio/u16-vasnprintf-tests: Likewise.
1709         * modules/unistdio/u16-vasprintf-tests: Likewise.
1710         * modules/unistdio/u16-vsnprintf-tests: Likewise.
1711         * modules/unistdio/u16-vsprintf-tests: Likewise.
1712         * modules/unistdio/u32-asnprintf-tests: Likewise.
1713         * modules/unistdio/u32-vasnprintf-tests: Likewise.
1714         * modules/unistdio/u32-vasprintf-tests: Likewise.
1715         * modules/unistdio/u32-vsnprintf-tests: Likewise.
1716         * modules/unistdio/u32-vsprintf-tests: Likewise.
1717         * modules/unistdio/ulc-asnprintf-tests: Likewise.
1718         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
1719         * modules/unistdio/ulc-vasprintf-tests: Likewise.
1720         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
1721         * modules/unistdio/ulc-vsprintf-tests: Likewise.
1722         * modules/unistr/u8-check-tests: Likewise.
1723         * modules/unistr/u8-chr-tests: Likewise.
1724         * modules/unistr/u8-cmp-tests: Likewise.
1725         * modules/unistr/u8-cmp2-tests: Likewise.
1726         * modules/unistr/u8-cpy-alloc-tests: Likewise.
1727         * modules/unistr/u8-cpy-tests: Likewise.
1728         * modules/unistr/u8-mblen-tests: Likewise.
1729         * modules/unistr/u8-mbsnlen-tests: Likewise.
1730         * modules/unistr/u8-mbtouc-tests: Likewise.
1731         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
1732         * modules/unistr/u8-mbtoucr-tests: Likewise.
1733         * modules/unistr/u8-move-tests: Likewise.
1734         * modules/unistr/u8-next-tests: Likewise.
1735         * modules/unistr/u8-prev-tests: Likewise.
1736         * modules/unistr/u8-set-tests: Likewise.
1737         * modules/unistr/u8-stpcpy-tests: Likewise.
1738         * modules/unistr/u8-stpncpy-tests: Likewise.
1739         * modules/unistr/u8-strcat-tests: Likewise.
1740         * modules/unistr/u8-strcmp-tests: Likewise.
1741         * modules/unistr/u8-strcoll-tests: Likewise.
1742         * modules/unistr/u8-strcpy-tests: Likewise.
1743         * modules/unistr/u8-strdup-tests: Likewise.
1744         * modules/unistr/u8-strlen-tests: Likewise.
1745         * modules/unistr/u8-strmblen-tests: Likewise.
1746         * modules/unistr/u8-strmbtouc-tests: Likewise.
1747         * modules/unistr/u8-strncat-tests: Likewise.
1748         * modules/unistr/u8-strncmp-tests: Likewise.
1749         * modules/unistr/u8-strncpy-tests: Likewise.
1750         * modules/unistr/u8-strnlen-tests: Likewise.
1751         * modules/unistr/u8-to-u16-tests: Likewise.
1752         * modules/unistr/u8-to-u32-tests: Likewise.
1753         * modules/unistr/u8-uctomb-tests: Likewise.
1754         * modules/unistr/u16-check-tests: Likewise.
1755         * modules/unistr/u16-chr-tests: Likewise.
1756         * modules/unistr/u16-cmp-tests: Likewise.
1757         * modules/unistr/u16-cmp2-tests: Likewise.
1758         * modules/unistr/u16-cpy-alloc-tests: Likewise.
1759         * modules/unistr/u16-cpy-tests: Likewise.
1760         * modules/unistr/u16-mblen-tests: Likewise.
1761         * modules/unistr/u16-mbsnlen-tests: Likewise.
1762         * modules/unistr/u16-mbtouc-tests: Likewise.
1763         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
1764         * modules/unistr/u16-mbtoucr-tests: Likewise.
1765         * modules/unistr/u16-move-tests: Likewise.
1766         * modules/unistr/u16-next-tests: Likewise.
1767         * modules/unistr/u16-prev-tests: Likewise.
1768         * modules/unistr/u16-set-tests: Likewise.
1769         * modules/unistr/u16-stpcpy-tests: Likewise.
1770         * modules/unistr/u16-stpncpy-tests: Likewise.
1771         * modules/unistr/u16-strcat-tests: Likewise.
1772         * modules/unistr/u16-strcmp-tests: Likewise.
1773         * modules/unistr/u16-strcoll-tests: Likewise.
1774         * modules/unistr/u16-strcpy-tests: Likewise.
1775         * modules/unistr/u16-strdup-tests: Likewise.
1776         * modules/unistr/u16-strlen-tests: Likewise.
1777         * modules/unistr/u16-strmblen-tests: Likewise.
1778         * modules/unistr/u16-strmbtouc-tests: Likewise.
1779         * modules/unistr/u16-strncat-tests: Likewise.
1780         * modules/unistr/u16-strncmp-tests: Likewise.
1781         * modules/unistr/u16-strncpy-tests: Likewise.
1782         * modules/unistr/u16-strnlen-tests: Likewise.
1783         * modules/unistr/u16-to-u32-tests: Likewise.
1784         * modules/unistr/u16-to-u8-tests: Likewise.
1785         * modules/unistr/u16-uctomb-tests: Likewise.
1786         * modules/unistr/u32-check-tests: Likewise.
1787         * modules/unistr/u32-chr-tests: Likewise.
1788         * modules/unistr/u32-cmp-tests: Likewise.
1789         * modules/unistr/u32-cmp2-tests: Likewise.
1790         * modules/unistr/u32-cpy-alloc-tests: Likewise.
1791         * modules/unistr/u32-cpy-tests: Likewise.
1792         * modules/unistr/u32-mblen-tests: Likewise.
1793         * modules/unistr/u32-mbsnlen-tests: Likewise.
1794         * modules/unistr/u32-mbtouc-tests: Likewise.
1795         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
1796         * modules/unistr/u32-mbtoucr-tests: Likewise.
1797         * modules/unistr/u32-move-tests: Likewise.
1798         * modules/unistr/u32-next-tests: Likewise.
1799         * modules/unistr/u32-prev-tests: Likewise.
1800         * modules/unistr/u32-set-tests: Likewise.
1801         * modules/unistr/u32-stpcpy-tests: Likewise.
1802         * modules/unistr/u32-stpncpy-tests: Likewise.
1803         * modules/unistr/u32-strcat-tests: Likewise.
1804         * modules/unistr/u32-strcmp-tests: Likewise.
1805         * modules/unistr/u32-strcoll-tests: Likewise.
1806         * modules/unistr/u32-strcpy-tests: Likewise.
1807         * modules/unistr/u32-strdup-tests: Likewise.
1808         * modules/unistr/u32-strlen-tests: Likewise.
1809         * modules/unistr/u32-strmblen-tests: Likewise.
1810         * modules/unistr/u32-strmbtouc-tests: Likewise.
1811         * modules/unistr/u32-strncat-tests: Likewise.
1812         * modules/unistr/u32-strncmp-tests: Likewise.
1813         * modules/unistr/u32-strncpy-tests: Likewise.
1814         * modules/unistr/u32-strnlen-tests: Likewise.
1815         * modules/unistr/u32-to-u16-tests: Likewise.
1816         * modules/unistr/u32-to-u8-tests: Likewise.
1817         * modules/unistr/u32-uctomb-tests: Likewise.
1818         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
1819         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
1820         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
1821         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
1822         * modules/uniwidth/u8-strwidth-tests: Likewise.
1823         * modules/uniwidth/u8-width-tests: Likewise.
1824         * modules/uniwidth/u16-strwidth-tests: Likewise.
1825         * modules/uniwidth/u16-width-tests: Likewise.
1826         * modules/uniwidth/u32-strwidth-tests: Likewise.
1827         * modules/uniwidth/u32-width-tests: Likewise.
1828         * modules/uniwidth/width-tests: Likewise.
1829
1830 2010-05-18  Richard Jones  <rjones@redhat.com>
1831
1832         doc: users.txt: list hivex
1833         * users.txt: Add hivex.
1834
1835 2010-05-18  Richard Jones  <rjones@redhat.com>
1836
1837         doc: users.txt: list febootstrap
1838         * users.txt: Add febootstrap.
1839
1840 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
1841
1842         bootstrap: fix an error when gnulib is not used as a git submodule
1843         * build-aux/bootstrap (gnulib_path): If its length is zero then
1844         assign "gnulib" to it.
1845         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
1846
1847 2010-05-16  Bruno Haible  <bruno@clisp.org>
1848
1849         Avoid autoconf warnings about AM_ICONV.
1850         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
1851         2.64.
1852
1853 2010-05-16  Bruno Haible  <bruno@clisp.org>
1854
1855         absolute-header: Make the macro usable in more situations.
1856         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
1857         from gl_ABSOLUTE_HEADER.
1858         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
1859
1860 2010-05-16  James Youngman  <jay@gnu.org>
1861
1862         doc: update users.txt
1863         * users.txt: Add CSSC.
1864
1865 2010-05-16  Jim Meyering  <meyering@redhat.com>
1866
1867         init.sh: fix an error in the previous change; add more comments
1868         * tests/init.sh: Compare exit code in loop against 9, not 2.
1869         Patch by Bruno Haible.
1870         Make the two tests more similar by adding an empty "then" clause.
1871         Add comments.
1872
1873         init.sh: avoid unnecessary shell re-exec
1874         * tests/init.sh: Improve the re-exec-required check to first test the
1875         current shell.  If it passes the test, do not search for a shell that
1876         does pass, and do not re-exec.  This test is particularly contorted to
1877         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
1878         of $(...) evokes a syntax error and causes immediate shell exit with
1879         status 2.  Bruno Haible reported that the re-exec made it impossible
1880         to single-step through any init.sh-using script.
1881
1882 2010-05-16  Bruno Haible  <bruno@clisp.org>
1883
1884         Fix collision between gnulib's and libintl's printf replacements.
1885         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
1886         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
1887         (printf): When using GNU C, map the __printf__ function to rpl_printf
1888         via __asm__. When not using GNU C, define rpl_printf instead of
1889         __printf__.
1890         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
1891         commit.
1892         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
1893         commit.
1894         * m4/asm-underscore.m4: New file.
1895         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
1896         * modules/stdio (Files): Add m4/asm-underscore.m4.
1897         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
1898         Reported by Ben Pfaff.
1899
1900 2010-05-16  Bruno Haible  <bruno@clisp.org>
1901
1902         verify: Avoid skipping the test on openSUSE 11.0.
1903         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
1904
1905 2010-05-13  Bruno Haible  <bruno@clisp.org>
1906
1907         Avoid useless warnings from G++.
1908         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
1909         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
1910         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1911
1912 2010-05-11  Jim Meyering  <meyering@redhat.com>
1913
1914         maint.mk: tweak preceding change
1915         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
1916         regexps tighter by anchoring at EOL, and make the new group "shy"
1917         for slightly decreased overhead.
1918
1919 2010-05-11  Eric Blake  <eblake@redhat.com>
1920
1921         maint.mk: gnulib doesn't guarantee NSIG
1922         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
1923
1924 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1925
1926         test-pwrite.c: Remove unused variable declaration.
1927         * tests/test-pwrite.c (main): Remove read_buf declaration.
1928
1929         Remove useless test-pwrite.sh file.
1930         * tests/test-pwrite.sh: Delete file.
1931         * modules/pwrite-tests: Remove references.
1932         Reported by Bruno Haible.
1933
1934 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1935
1936         init.sh: fix a typo
1937         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
1938
1939 2010-05-10  Jim Meyering  <meyering@redhat.com>
1940
1941         maint.mk: avoid using a temporary file in the always-defined-macros check
1942         * top/maint.mk (.re-defmac): Remove rule.
1943         (gl_trap_): Remove definition.
1944         (sc_prohibit_always-defined_macros): Rewrite not to create and
1945         depend on a temporary file.  Instead, depend on GNU grep's ability
1946         to read a list of regular expressions from stdin when given "-f -".
1947
1948 2010-05-09  Bruno Haible  <bruno@clisp.org>
1949
1950         Update to GNU gettext 0.18, part 1.
1951         * m4/gettext.m4: Update to GNU gettext 0.18.
1952         * m4/intl.m4: Likewise.
1953         * m4/po.m4: Likewise.
1954         * modules/gettext (Files): Add m4/fcntl-o.m4.
1955         (configure.ac): Require gettext infrastructure from version 0.18.
1956
1957 2010-05-09  Jim Meyering  <meyering@redhat.com>
1958
1959         init.sh: enable MALLOC_PERTURB_
1960         * tests/init.sh: Enable glibc's malloc-perturbing option.
1961
1962         maint.mk: improve sc_cross_check_PATH_usage_in_tests
1963         With my recent change in init.sh from the two-line form:
1964             -#   : ${srcdir=.}
1965             -#   . "$srcdir/init.sh"; path_prepend_ .
1966             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
1967         I noticed that using the one-line form would cause this test
1968         to fail with a false-positive, or to stop working altogether,
1969         depending on whether help-version changed or all the tests did.
1970         * top/maint.mk (_hv_regex): Remove this definition.
1971         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
1972         (_hv_regex_strong): Use a stronger regex to check for conformance.
1973         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
1974         Give a separate diagnostic for lack of conforming use.
1975
1976         maint.mk: prohibit definition of symbols defined by gnulib
1977         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
1978         definition of symbols defined by gnulib.
1979
1980 2010-05-09  Bruno Haible  <bruno@clisp.org>
1981
1982         acl: Avoid test failure on Cygwin-hosted mingw.
1983         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
1984
1985 2010-05-09  Bruno Haible  <bruno@clisp.org>
1986
1987         error: Use system's fcntl function.
1988         * lib/error.c (fcntl): Undefine.
1989
1990 2010-05-09  Jim Meyering  <meyering@redhat.com>
1991
1992         verify: adjust formatting to be more consistent
1993         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
1994         argument-list '('s, and after one comma.
1995
1996 2010-05-09  Bruno Haible  <bruno@clisp.org>
1997
1998         error: More reliable output on mingw.
1999         * lib/error.c: Include <windows.h>.
2000         (is_open): New function.
2001         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
2002         defined.
2003
2004 2010-05-09  Bruno Haible  <bruno@clisp.org>
2005
2006         vasnprintf: Fix syntax errors in libintl build on mingw.
2007         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
2008         pad_ourselves and prec_ourselves after use.
2009
2010 2010-05-08  Bruno Haible  <bruno@clisp.org>
2011
2012         * lib/config.charset: Update comments for Cygwin 1.7.
2013         * lib/localcharset.c: Likewise.
2014
2015 2010-05-07  Jim Meyering  <meyering@redhat.com>
2016
2017         init.sh: improve comments
2018         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
2019         . "${srcdir=.}/init.sh"; path_prepend_ .
2020         Add a note about path_prepend_ and the alternative of using
2021         TESTS_ENVIRONMENT.
2022
2023 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2024
2025         exclude: Unescape hashed patterns in wildcard mode.
2026         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
2027         to the hash list.
2028         * tests/test-exclude8.sh: New test case.
2029         * modules/exclude-tests: Add new test.
2030
2031 2010-05-05  Eric Blake  <eblake@redhat.com>
2032
2033         verify: automate tests
2034         * modules/verify-tests: New module.
2035         * tests/test-verify.sh: New file.
2036         * tests/test-verify.c: Guard each negative test with a unique id.
2037         Also avoid warning about unused left hand of comma expressions.
2038
2039 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2040
2041         Further improvements to verify.h, suggested by Eric Blake.
2042         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
2043         the GL_* versions, to avoid collision with OpenGL.
2044         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
2045         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
2046         than testing merely whether it's defined.
2047
2048         Modify verify.h to pacify gcc -Wredundant_decls.
2049         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
2050         These use the prefix "GL_" since they're likely to be useful elsewhere.
2051         We may need to break them out into a different .h file.
2052         (__COUNTER__): Define to 0 if the compiler doesn't support it.
2053         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
2054         of verify_function__.
2055
2056 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2057
2058         Tests for module pwrite.
2059         * modules/pwrite-tests: New file.
2060         * tests/test-pwrite.sh: New file.
2061         * tests/test-pwrite.c: New file.
2062
2063         New module pwrite.
2064         * lib/unistd.in.h (pwrite): New declaration.
2065         * lib/pwrite.c: New file, from glibc with modifications.
2066         * m4/pwrite.m4: New file.
2067         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
2068         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
2069         REPLACE_PWRITE.
2070         * modules/pwrite: New file.
2071         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
2072         REPLACE_PWRITE.
2073         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
2074         * doc/posix-functions/pwrite.texi: Mention the new module.
2075
2076 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2077
2078         pread: Update documentation.
2079         * doc/posix-functions/pread.texi: Mention the 'pread' module.
2080
2081 2010-05-04  Eric Blake  <eblake@redhat.com>
2082
2083         docs: update cygwin progress
2084         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
2085         this bug.
2086         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
2087         Added in cygwin 1.7.2.
2088         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
2089         Likewise.
2090         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
2091         Likewise.
2092         * doc/glibc-functions/dup3.texi (dup3): Likewise.
2093         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2094         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2095         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
2096         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
2097         Mention nproc module.
2098         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
2099         bug in cygwin 1.7.5 addition.
2100         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
2101         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
2102         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
2103         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
2104         1.7.5.
2105         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
2106         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
2107         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
2108         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
2109         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
2110         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
2111         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
2112         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
2113         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
2114         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
2115         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
2116         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
2117         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
2118         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
2119         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
2120         Likewise.
2121         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
2122         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
2123         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
2124         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
2125         Likewise.
2126         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
2127         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
2128         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
2129         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
2130         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
2131         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
2132         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
2133         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
2134         Likewise.
2135         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
2136         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
2137         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
2138         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
2139         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
2140         Likewise.
2141         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
2142         Likewise.
2143         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
2144         Likewise.
2145         * doc/glibc-functions/xdrrec_endofrecord.texi
2146         (xdrrec_endofrecord): Likewise.
2147         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
2148         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
2149         Likewise.
2150         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
2151         Likewise.
2152
2153 2010-05-04  Jim Meyering  <meyering@redhat.com>
2154
2155         gendocs.sh: make its "-s FILE" option more useful
2156         * build-aux/gendocs.sh: When honoring the -s FILE option, update
2157         $PACKAGE to reflect the probably-different basename of "FILE".
2158
2159 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2160
2161         bootstrap: don't ignore download_po_files failure
2162         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
2163         failure.
2164
2165 2010-05-03  Jim Meyering  <meyering@redhat.com>
2166
2167         maint.mk: allow to pass options to gendocs.sh
2168         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
2169         (gendocs_options_): New overridable variable.
2170
2171         gnu-web-doc-update: don't ignore configure or build failure
2172         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
2173
2174         announce-gen: backslash-escape '@'s in --help output
2175         * build-aux/announce-gen: Fix syntax errors.
2176
2177         maint.mk, announce-gen: allow project-specific announcement mail headers
2178         * top/maint.mk (translation_project_): Define default.
2179         (announcement_Cc_, announcement_mail_headers_): Likewise.
2180         (announcement): Invoke announce-gen with new --mail-headers option.
2181         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
2182
2183         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
2184         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
2185         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
2186         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
2187         line in the "err2" output file when running "make check" in verbose
2188         mode (i.e., with set -x enabled).
2189
2190 2010-05-03  Bruno Haible  <bruno@clisp.org>
2191
2192         wctob: Fix for weird platforms.
2193         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
2194         argument value.
2195
2196 2010-05-03  Jim Meyering  <meyering@redhat.com>
2197
2198         maint.mk: prohibit unwarranted use of <strings.h>
2199         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
2200         strings.h in a file that does not also use strcasecmp, strncasecmp,
2201         ffs or ffsll.
2202
2203         maint.mk: remove obsolete comments
2204         * top/maint.mk: Remove stale, commented-out rules.
2205
2206 2010-05-02  Bruno Haible  <bruno@clisp.org>
2207
2208         wcwidth: Declare also when it's aliased.
2209         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
2210         macro.
2211
2212 2010-05-02  Bruno Haible  <bruno@clisp.org>
2213
2214         Fix regression from 2010-04-25.
2215         * gnulib-tool (func_modules_transitive_closure): Check the status of
2216         all modules, not only of the tests that are of the form foo-tests where
2217         foo is a module.
2218
2219 2010-05-02  Bruno Haible  <bruno@clisp.org>
2220
2221         wctob: Work around nasty Cygwin 1.7.2 bug.
2222         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
2223         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
2224
2225 2010-05-01  Bruno Haible  <bruno@clisp.org>
2226
2227         fpurge: Sharper test.
2228         * tests/test-fpurge.c (main): Add one more ftell check.
2229         * modules/fpurge-tests (Depends-on): Add ftell.
2230         Suggested by Eric Blake.
2231
2232 2010-05-01  Bruno Haible  <bruno@clisp.org>
2233
2234         ftello: Another test.
2235         * tests/test-ftello3.c: New file.
2236         * modules/ftello-tests (Files): Add it.
2237         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2238         MOSTLYCLEANFILES.
2239
2240         ftell: Another test.
2241         * tests/test-ftell3.c: New file.
2242         * modules/ftell-tests (Files): Add it.
2243         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2244         MOSTLYCLEANFILES.
2245
2246 2010-05-01  Bruno Haible  <bruno@clisp.org>
2247
2248         ftell, ftello: Work around Solaris bug.
2249         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
2250         * lib/ftello.c: Include stdio-impl.h.
2251         (ftello): On Solaris, when _IOWRT is set, compute the result without
2252         looking at _IOREAD.
2253         * modules/ftello (Files): Add lib/stdio-impl.h.
2254         * doc/posix-functions/ftell.texi: Mention Solaris bug.
2255         * doc/posix-functions/ftello.texi: Likewise.
2256         Reported by Eric Blake.
2257
2258 2010-05-01  Bruno Haible  <bruno@clisp.org>
2259
2260         freading: Adapt to special meaning of _IOREAD flag on Solaris.
2261         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
2262         the _IOWRT flag is also set.
2263
2264 2010-05-01  Bruno Haible  <bruno@clisp.org>
2265
2266         Fix doc about a HP-UX stdio bug.
2267         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
2268         * doc/posix-functions/ftello.texi: Likewise.
2269
2270 2010-05-01  Bruno Haible  <bruno@clisp.org>
2271
2272         lseek test: Fix failure on Solaris.
2273         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
2274         output.
2275
2276 2010-04-30  Jim Meyering  <meyering@redhat.com>
2277
2278         bootstrap: don't ignore failure to generate po*/Makevars
2279         * build-aux/bootstrap (with_gettext): Don't ignore failure
2280         to create po/Makevars or runtime-po/Makevars.
2281
2282 2010-04-29  Eric Blake  <eblake@redhat.com>
2283
2284         headers: relax license to LGPLv2+
2285         * modules/fcntl-h (License): Relax license.
2286         * modules/getopt-posix (License): Likewise.
2287         * modules/locale (License): Likewise.
2288         * modules/math (License): Likewise.
2289         * modules/pty (License): Likewise.
2290         * modules/sched (License): Likewise.
2291         * modules/search (License): Likewise.
2292         * modules/spawn (License): Likewise.
2293         * modules/stdarg (License): Likewise.
2294         * modules/sysexits (License): Likewise.
2295
2296 2010-04-29  Jim Meyering  <meyering@redhat.com>
2297
2298         inttypes: relax license to LGPLv2+
2299         * modules/inttypes (License): Relax license.
2300
2301 2010-04-29  Simon Josefsson  <simon@josefsson.org>
2302
2303         * top/maint.mk (indent): Run twice to produce idempotent results.
2304
2305 2010-04-28  Bruno Haible  <bruno@clisp.org>
2306
2307         getdate: Generate getdate.c in the source directory.
2308         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
2309         MOSTLYCLEANFILES.
2310         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
2311
2312 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
2313
2314         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
2315         is not declared as a const *; avoid warnings in that case.
2316
2317 2010-04-28  Eric Blake  <eblake@redhat.com>
2318
2319         canonicalize-lgpl: avoid compiler warning
2320         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
2321         declaration' / 'extraneous semicolon' warning with some compilers.
2322         Reported by Andreas Gruenbacher.
2323
2324 2010-04-28  Jim Meyering  <meyering@redhat.com>
2325
2326         init.sh: ensure a more reliable exit status when exiting via trap
2327         * tests/init.sh (setup_): Don't rely on $? in signal handler.
2328         Inspired by patches from Dmitry V. Levin.
2329         Also trap on signal 3 (SIGQUIT).
2330
2331 2010-04-27  Bruno Haible  <bruno@clisp.org>
2332
2333         Update doc about utimes().
2334         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
2335         'utimens' module.
2336         Reported by Andreas Gruenbacher <agruen@suse.de>.
2337
2338 2010-04-27  Eric Blake  <eblake@redhat.com>
2339
2340         full-read, full-write: relax license
2341         * modules/full-read (License): Drop to LGPLv2+.
2342         * modules/full-write (License): Likewise.
2343         * modules/safe-read (License): Likewise.
2344         * modules/safe-write (License): Likewise.
2345
2346         pthread: mention library for linking
2347         * modules/pthread (Link): Mention $(LIB_PTHREAD).
2348
2349 2010-04-27  Jim Meyering  <meyering@redhat.com>
2350
2351         maint.mk: fix a bug introduced in last change
2352         * top/maint.mk (gl_assured_headers_): Now that all names are on
2353         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
2354         is not anchored to end of word, it should be adequate.
2355
2356         maint.mk: avoid side-effect in latest syntax-check
2357         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
2358         to run commands via $(shell...), and hence to incur cost only when
2359         the new rule is actually run.
2360
2361         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
2362         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
2363         and use that to create a regexp used to detect all #if HAVE_..._H uses.
2364         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
2365         (gl_assured_headers_, az_, AZ_): Define.
2366         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
2367
2368 2010-04-26  Jim Meyering  <jim@meyering.net>
2369             Bruno Haible  <bruno@clisp.org>
2370
2371         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
2372         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
2373         Prompted by an exchange with Gilles Espinasse.
2374
2375 2010-04-26  Jim Meyering  <meyering@redhat.com>
2376
2377         git-version-gen: aesthetic tweak
2378         * build-aux/git-version-gen: Use "$nl" rather than a literal,
2379         so that the command remains on a single line.
2380
2381 2010-04-26  Eric Blake  <eblake@redhat.com>
2382
2383         git-version-gen: allow use on EBCDIC hosts
2384         * build-aux/git-version-gen (dirty): Use literal rather than tying
2385         ourselves to ascii.
2386         Reported by Steve Goetze.
2387
2388 2010-04-25  Bruno Haible  <bruno@clisp.org>
2389
2390         netdb: Add support for GNULIB_POSIXCHECK.
2391         * lib/netdb.in.h: Include warn-on-use.h.
2392         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
2393         functions are used when GNULIB_POSIXCHECK is defined and the
2394         getaddrinfo module is not in use.
2395         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
2396         freeaddrinfo, gai_strerror, getnameinfo are declared.
2397         * modules/netdb (Depends-on): Add warn-on-use.
2398         (Makefile.am): Include warn-on-use.h in netdb.h.
2399
2400 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
2401
2402         build: avoid "make check" failure without .git/ directory
2403         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
2404         there is no .git/ directory.
2405
2406 2010-04-25  Bruno Haible  <bruno@clisp.org>
2407
2408         ptsname: Fix misuse of ttyname_r.
2409         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
2410         of errno.
2411
2412 2010-04-25  Bruno Haible  <bruno@clisp.org>
2413
2414         ttyname_r: Make it work on Solaris 10.
2415         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
2416         if the system function has the POSIX declaration. Test whether the
2417         function fails if the buffer is less than 128 bytes large.
2418         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
2419         system's ttyname_r function. Provide a reasonably large buffer.
2420         * modules/ttyname_r (Depends-on): Add extensions.
2421         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
2422
2423 2010-04-25  Bruno Haible  <bruno@clisp.org>
2424
2425         Use the 'extensions' module for some more functions on Solaris.
2426         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
2427         module.
2428         * doc/posix-functions/ctime_r.texi: Likewise.
2429         * doc/posix-functions/getgrgid_r.texi: Likewise.
2430         * doc/posix-functions/getgrnam_r.texi: Likewise.
2431         * doc/posix-functions/getpwnam_r.texi: Likewise.
2432         * doc/posix-functions/getpwuid_r.texi: Likewise.
2433         * doc/posix-functions/readdir_r.texi: Likewise.
2434         * doc/posix-functions/sigwait.texi: Likewise.
2435         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
2436         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
2437
2438 2010-04-25  Bruno Haible  <bruno@clisp.org>
2439
2440         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
2441         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
2442         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
2443         * lib/ttyname_r.c: Include <limits.h>.
2444         (ttyname_r): Define using the system's ttyname_r function, if it exists
2445         and not on Solaris.
2446         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
2447         set.
2448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
2449         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
2450         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
2451         Reported by Simon Josefsson.
2452
2453 2010-04-25  Bruno Haible  <bruno@clisp.org>
2454
2455         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
2456         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
2457         * doc/posix-functions/ctime_r.texi: Likewise.
2458         * doc/posix-functions/getgrgid_r.texi: Likewise.
2459         * doc/posix-functions/getgrnam_r.texi: Likewise.
2460         * doc/posix-functions/getlogin_r.texi: Likewise.
2461         * doc/posix-functions/getpwnam_r.texi: Likewise.
2462         * doc/posix-functions/getpwuid_r.texi: Likewise.
2463         * doc/posix-functions/readdir_r.texi: Likewise.
2464         * doc/posix-functions/sigwait.texi: Likewise.
2465         * doc/posix-functions/ttyname_r.texi: Likewise.
2466         Reported by Simon Josefsson.
2467
2468 2010-04-25  Bruno Haible  <bruno@clisp.org>
2469
2470         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
2471         * gnulib-tool (func_usage): Document that --with-*-tests options apply
2472         also to --create-testdir.
2473         (func_acceptable): Don't consider the status of *-tests modules here.
2474         (func_modules_transitive_closure): Consider it here, before including a
2475         test module.
2476         (func_import, func_create_testdir): Set inc_all_direct_tests,
2477         inc_all_indirect_tests.
2478         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
2479         --create-testdir and --create-megatestdir.
2480
2481 2010-04-25  Bruno Haible  <bruno@clisp.org>
2482
2483         gnulib-tool: Add --without-*-tests options.
2484         * gnulib-tool (func_usage): Document the --without-*-tests options.
2485         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
2486         excl_unportable_tests): New variables.
2487         Fail if they are specified with --import or --update.
2488         (func_acceptable): Respect the excl_*_tests variables.
2489         (func_import): Set the excl_*_tests variables to empty.
2490
2491 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2492             Bruno Haible  <bruno@clisp.org>
2493
2494         Work around a MacOS X 10.4 bug with openpty.
2495         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2496         * tests/test-openpty.c (main): Close the master side explicitly.
2497
2498 2010-04-25  Bruno Haible  <bruno@clisp.org>
2499
2500         strnlen: Fix a C++ test error on MacOS X and Solaris.
2501         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2502         the function is not declared.
2503         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2504         Simon Josefsson.
2505
2506 2010-04-24  Bruno Haible  <bruno@clisp.org>
2507
2508         Avoid a gcc warning.
2509         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2510         of correct type for %08lx directive.
2511         Reported by Eric Blake.
2512
2513 2010-04-24  Bruno Haible  <bruno@clisp.org>
2514
2515         vasnprintf: Correct errno value in case of out-of-memory.
2516         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2517         or sprintf. Use the errno value from SNPRINTF or sprintf.
2518         Reported by Ian Beckwith <ianb@erislabs.net>.
2519
2520 2010-04-24  Bruno Haible  <bruno@clisp.org>
2521
2522         ansi-c++-opt: Find correct compiler when cross-compiling.
2523         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2524         AC_CHECK_PROGS.
2525         Reported by Simon Josefsson.
2526
2527 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2528
2529         vc-list-files: Add support for subversion
2530         * build-aux/vc-list-files: Use "svn list" to generate the list of
2531         files controlled by subversion.
2532
2533 2010-04-23  Jim Meyering  <meyering@redhat.com>
2534
2535         vc-list-files tests: convert to use init.sh
2536         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2537         path_prepend_.
2538         Use Exit, not exit.
2539         Use skip_ rather than open coding it.
2540         Remove trap set-up and compare definitions.
2541         * tests/test-vc-list-files-git.sh: Likewise.
2542         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2543
2544 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2545
2546         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2547         backup files.
2548
2549 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2550
2551         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2552
2553 2010-04-20  Eric Blake  <eblake@redhat.com>
2554
2555         tests: be robust to ignored SIGPIPE
2556         * tests/test-select-in.sh: Consume all output.
2557         * tests/test-lseek.sh: Check correct exit status, while avoiding
2558         EPIPE.
2559
2560 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2561             Bruno Haible  <bruno@clisp.org>
2562
2563         visibility: Don't use -fvisibility if it leads to a warning.
2564         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2565         yes, don't pretend that visibility works if it leads to a warning.
2566         Reported by Mike Gran <spk121@yahoo.com>.
2567
2568 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2569
2570         * build-aux/bootstrap: Use "git -h" for testing for supported options
2571         instead of "git --help".  The short-form option only shows a summary,
2572         and doesn't layout the full man page.  Grep for the full option name
2573         in the summary, too.
2574
2575 2010-04-19  Bruno Haible  <bruno@clisp.org>
2576
2577         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2578         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2579         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2580         mention of RELOCATABLE_STRIP.
2581         Reported by Sylvain Beucler <beuc@beuc.net>.
2582
2583 2010-04-19  Bruno Haible  <bruno@clisp.org>
2584
2585         * lib/diffseq.h: Fix typo in comment.
2586         Reported by Eric Blake.
2587
2588 2010-04-19  Bruno Haible  <bruno@clisp.org>
2589
2590         ioctl: Move autoconf macro to a .m4 file.
2591         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2592         * modules/ioctl (Files): Add it.
2593         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2594         Reported by Ian Beckwith <ianb@erislabs.net>.
2595
2596 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2597             Bruno Haible  <bruno@clisp.org>
2598
2599         diffseq: Accommodate use-case with abstract arrays.
2600         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2601         is not defined.
2602         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2603         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2604
2605 2010-04-18  Bruno Haible  <bruno@clisp.org>
2606
2607         * doc/posix-headers/stdbool.texi: More precise wording.
2608
2609 2010-04-17  Jim Meyering  <meyering@redhat.com>
2610
2611         maint.mk: use gnu-style indentation in an embedded perl script
2612         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2613         Rename variable: s/two/last_two_bytes/
2614
2615 2010-04-16  Eric Blake  <eblake@redhat.com>
2616
2617         test-stdbool: skip test that fails with Solaris CC
2618         * tests/test-stdbool.c (f): Skip test that causes compilation
2619         error under buggy C++ compiler.
2620         * lib/stdbool.in.h: Document the limitation.
2621         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2622
2623         setenv: allow compilation with C++
2624         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2625         register keyword.
2626
2627         stdint: allow test to pass with C++
2628         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2629
2630         getopt: allow compilation with C++
2631         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2632         struct.
2633         * lib/getopt.c (_getopt_internal_r): Use correct type.
2634         Reported by Dagobert Michelson, via Joel E. Denny.
2635
2636 2010-04-16  Bruno Haible  <bruno@clisp.org>
2637
2638         Override netdb.h always.
2639         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2640         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2641         Reported by Ludovic Courtès <ludo@gnu.org>.
2642
2643 2010-04-15  Bruno Haible  <bruno@clisp.org>
2644
2645         openpty: Fix mistake from 2010-03-21.
2646         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2647         Reported by Simon Josefsson.
2648
2649 2010-04-15  Eric Blake  <eblake@redhat.com>
2650
2651         test-forkpty: fix expected signature
2652         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2653         Reported by Simon Josefsson.
2654
2655 2010-04-15  Jim Meyering  <meyering@redhat.com>
2656
2657         maint.mk: texinfo_suffix_re_: correct the default regexp
2658         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2659
2660         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2661         make it configurable via texinfo_suffix_re_.
2662
2663 2010-04-14  Eric Blake  <eblake@redhat.com>
2664
2665         strtok_r: relax license to LGPLv2+
2666         * modules/strtok_r (License): Relax license.
2667         Reported by Matthias Bolte.
2668
2669 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2670
2671         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2672         version 1.4.4 by default instead of requiring the libgcrypt
2673         version used during build.  This makes it possible to use the
2674         application with older but still binary compatible libgcrypt
2675         versions.
2676
2677 2010-04-13  Eric Blake  <eblake@redhat.com>
2678
2679         getopt-gnu: match recent glibc fixes and posix ruling
2680         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
2681         '+' handling, when requesting extensions.
2682         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
2683         'W;' handling.
2684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
2685         * doc/posix-functions/getopt.texi (getopt): Document this.
2686         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2687         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2688         Likewise.
2689
2690         getopt: merge bug fixes from glibc
2691         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
2692         diagnostics.  Honor '+:' correctly.  Reject ';'.
2693
2694         getopt-posix: detect MacOS bug
2695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
2696         optind when missing a required argument.
2697         * doc/posix-functions/getopt.texi (getopt): Document the bug.
2698         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2699         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2700         Likewise.
2701
2702         getopt-posix: avoid spurious failure on Solaris
2703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
2704         an indicator that setting optind=1 is sufficient for reset.
2705
2706         getopt-posix: avoid spurious failure on FreeBSD
2707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
2708         in POSIX mode, since the m4 test uses it.
2709
2710         gnulib-tool: silence warning on BSD sh
2711         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
2712
2713 2010-04-13  Jim Meyering  <meyering@redhat.com>
2714
2715         doc: users.txt: GNU patch now uses gnulib
2716         * users.txt: Add patch.
2717
2718 2010-04-12  Jim Meyering  <meyering@redhat.com>
2719
2720         maint.mk: generate more concise timing data for syntax-check rules
2721         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
2722         " done" from each line that reports a syntax-check test duration.
2723
2724 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
2725
2726         git-version-gen: use "git update-index..." rather than "git status"
2727         * build-aux/git-version-gen: Use git update-index --refresh, not
2728         "git status".  With some versions of git, "git status" would fail
2729         to update the index and result in an unwarranted "-dirty" suffix.
2730
2731 2010-04-11  Jim Meyering  <meyering@redhat.com>
2732
2733         openat: correct formatting (no semantic change)
2734         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
2735         Suggested by Bruno Haible.
2736
2737 2010-04-11  Bruno Haible  <bruno@clisp.org>
2738
2739         Stricter declaration checking in testdirs.
2740         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2741         If for_tests is true, augment AM_CPPFLAGS to define
2742         GNULIB_STRICT_CHECKING.
2743         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
2744         GNULIB_STRICT_CHECKING is defined, verify that the function is
2745         declared.
2746
2747 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
2748             Bruno Haible  <bruno@clisp.org>
2749
2750         libunistring: Improve configure output.
2751         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
2752         Don't say "consider installing GNU libunistring" when checking again
2753         with libiconv.
2754
2755 2010-04-11  Bruno Haible  <bruno@clisp.org>
2756
2757         libunistring: Correct value of $LTLIBUNISTRING.
2758         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
2759         correct the value of $LTLIBUNISTRING.
2760
2761 2010-04-11  Bruno Haible  <bruno@clisp.org>
2762
2763         havelib: Add static libraries to LIBS in the right order.
2764         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
2765         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
2766
2767 2010-04-11  Bruno Haible  <bruno@clisp.org>
2768
2769         libunistring: Detect libunistring also when it depends on libiconv.
2770         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
2771         the second AC_LIB_HAVE_LINKFLAGS invocation.
2772
2773 2010-04-11  James Youngman  <jay@gnu.org>
2774
2775         close-stream: declare local scalars to be "const"
2776         * lib/close-stream.c (close_stream): Make boolean variables const
2777         to document the fact that we set but do not change them.
2778
2779 2010-04-11  Bruno Haible  <bruno@clisp.org>
2780
2781         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
2782
2783 2010-04-11  Jim Meyering  <meyering@redhat.com>
2784
2785         maint.mk: don't include dist-check.mk
2786         * top/maint.mk: Remove bogus include directive.
2787
2788         maint.mk: improve empty-line-at-EOF check
2789         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
2790         solution, rather than tail+Perl-based one.  The latter would read
2791         a few kilobytes from the end of each file, and did not handle empty
2792         files properly.
2793
2794         maint.mk: print the elapsed time for each syntax-check rule
2795         * top/maint.mk (sc_m_rules_): Save start time in a file.
2796         (sc_z_rules_): New rules: remove temp file and print elapsed time.
2797         (local-check): Interpose the .z rules
2798
2799 2010-04-11  Jim Meyering  <meyering@redhat.com>
2800
2801         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
2802         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
2803         empty file with one that ends in an empty line.
2804
2805 2010-04-10  Bruno Haible  <bruno@clisp.org>
2806
2807         mkdir: Make it work on mingw64.
2808         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
2809         * lib/mkdir.c: Update comment.
2810         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
2811
2812 2010-04-10  Bruno Haible  <bruno@clisp.org>
2813
2814         Don't override improved macro from newer autoconf.
2815         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
2816         autoconf >= 2.62.
2817         Reported by Joel E. Denny <jdenny@clemson.edu>.
2818
2819 2010-04-10  Jim Meyering  <meyering@redhat.com>
2820
2821         maint.mk: new syntax-check rule: prohibit empty lines at end of file
2822         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
2823
2824         maint.mk: correct a diagnostic
2825         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
2826         in diagnostic; now use $prohibit.
2827
2828 2010-04-10  Bruno Haible  <address@hidden>
2829
2830         fchownat: Fix a C++ test error on Solaris 8.
2831         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
2832         the function does not exist.
2833
2834 2010-04-10  Bruno Haible  <bruno@clisp.org>
2835
2836         vasnprintf: Add more tests.
2837         * tests/test-vasnprintf-posix.c: Include <errno.h>.
2838         (test_function): Test converting an invalid wide string.
2839
2840         vasnprintf: Correct handling of unconvertible wide string arguments.
2841         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
2842         VASNPRINTF.
2843         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
2844         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
2845         smaller than the expected maximum need for the directive. Set errno to
2846         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
2847         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
2848         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
2849         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
2850         * modules/vasnprintf (Files): Add m4/printf.m4.
2851         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2852
2853 2010-04-10  Bruno Haible  <bruno@clisp.org>
2854
2855         vasnprintf: Fix crash in %ls directive.
2856         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
2857         string is passed as argument to %ls, with no precision and no width.
2858         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2859
2860 2010-04-10  Bruno Haible  <bruno@clisp.org>
2861
2862         vasnprintf: Fix multiple test failures on mingw.
2863         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
2864         _snprintf, or snwprintf, not _snwprintf.
2865
2866 2010-04-10  Bruno Haible  <bruno@clisp.org>
2867
2868         write: Fix a C++ test error on mingw.
2869         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
2870
2871 2010-04-10  Bruno Haible  <bruno@clisp.org>
2872
2873         vasnprintf test: Reduce code duplication.
2874         * tests/test-vasnprintf.c (test_function): New function, extracted from
2875         test_vasnprintf.
2876         (test_vasnprintf, test_asnprintf): Invoke it.
2877
2878 2010-04-10  Bruno Haible  <bruno@clisp.org>
2879
2880         strnlen: Fix warning in C++ mode on MacOS X.
2881         * lib/string.in.h (strnlen): Use the modern idiom.
2882         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
2883         defining strnlen as a macro already in <config.h>.
2884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2885         REPLACE_STRNLEN.
2886         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
2887         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2888
2889 2010-04-08  James Youngman  <jay@gnu.org>
2890
2891         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
2892         the example.
2893
2894 2010-04-09  Jim Meyering  <meyering@redhat.com>
2895
2896         maint.mk: print better diagnostic when there is no $(_hv_file)
2897         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
2898         announce that when $(_hv_file) (aka help-version) does not exist.
2899
2900         init.sh: run tr in the "C" locale to avoid multibyte interpretation
2901         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
2902         not try to interpret its random input bytes.  Jarno Rajahalme reported
2903         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
2904         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
2905         (mktempd_): Likewise, just in case.
2906
2907         ftruncate: add two years to projected module removal date: 2012
2908         * m4/ftruncate.m4: Adjust comments.
2909
2910         ftruncate: mark module as obsolete; even MinGW provides it, now
2911         * modules/ftruncate (Status): Obsolete.
2912         (Notice): Say that.
2913         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
2914         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
2915
2916 2010-04-08  Bruno Haible  <bruno@clisp.org>
2917
2918         Fix side effects from tests-related modules.
2919         * modules/dprintf-posix (Comment): New section.
2920         * modules/fprintf-posix (Comment): Likewise.
2921         * modules/obstack-printf-posix (Comment): Likewise.
2922         * modules/printf-posix (Comment): Likewise.
2923         * modules/snprintf-posix (Comment): Likewise.
2924         * modules/sprintf-posix (Comment): Likewise.
2925         * modules/vasnprintf-posix (Comment): Likewise.
2926         * modules/vasprintf-posix (Comment): Likewise.
2927         * modules/vdprintf-posix (Comment): Likewise.
2928         * modules/vfprintf-posix (Comment): Likewise.
2929         * modules/vprintf-posix (Comment): Likewise.
2930         * modules/vsnprintf-posix (Comment): Likewise.
2931         * modules/vsprintf-posix (Comment): Likewise.
2932         * modules/xprintf-posix (Comment): Likewise.
2933         * modules/xvasprintf-posix (Comment): Likewise.
2934         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
2935         * modules/floorf-tests (Depends-on): Likewise.
2936         * modules/round-tests (Depends-on): Likewise.
2937         * modules/roundf-tests (Depends-on): Likewise.
2938         * modules/trunc-tests (Depends-on): Likewise.
2939         * modules/truncf-tests (Depends-on): Likewise.
2940         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
2941         'fprintf-posix' module is not present.
2942         * tests/test-floorf2.c (check): Likewise.
2943         * tests/test-trunc2.c (check): Likewise.
2944         * tests/test-truncf2.c (check): Likewise.
2945         * tests/test-round2.c (equal): Likewise.
2946         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2947
2948 2010-04-07  Karl Berry  <karl@gnu.org>
2949
2950         * config/srclist.txt,
2951         * config/srclistvars.sh,
2952         * config/srclist-update: doc fixes.
2953
2954 2010-04-07  Jim Meyering  <meyering@redhat.com>
2955
2956         maint.mk: add a PATH crosschecking syntax-check rule
2957         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
2958         Useful if you use a test like the one in help-version (coreutils,
2959         diffutils, grep, gzip) that ensures $(VERSION) matches what is
2960         printed by prog --version.
2961
2962 2010-04-06  Bruno Haible  <bruno@clisp.org>
2963
2964         Fix link error on mingw.
2965         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
2966         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
2967
2968 2010-04-06  Bruno Haible  <bruno@clisp.org>
2969
2970         Assume rmdir exists.
2971         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
2972
2973 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
2974
2975         doc: update users.txt
2976         * users.txt: Add gcal.
2977
2978 2010-04-06  Jim Meyering  <meyering@redhat.com>
2979
2980         init.sh: simply unset TMPDIR rather than risking env -i
2981         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
2982         although it probably works fine on all Unix-based systems, some
2983         systems (Cygwin?) cannot tolerate a totally cleared environment.
2984         Suggestion from Eric Blake.
2985
2986 2010-04-06  Jim Meyering  <meyering@redhat.com>
2987
2988         init.sh: portability fix: use env's POSIX-specified -i option not -u
2989         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
2990         than unportable env -u.  Solaris 5.11's env lacks support for -u.
2991
2992 2010-04-05  Bruno Haible  <bruno@clisp.org>
2993
2994         btowc: Work around Cygwin 1.7.2 bug.
2995         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
2996         does not map NUL to 0.
2997         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
2998
2999 2010-04-05  Bruno Haible  <bruno@clisp.org>
3000
3001         Make the multithread modules work on Cygwin 1.7.2.
3002         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
3003         imported symbols can be declared weak, so that it returns "no" on
3004         Cygwin 1.7.2.
3005
3006 2010-04-05  Bruno Haible  <bruno@clisp.org>
3007
3008         Use the module 'strncat'.
3009         * modules/unistr/u8-strncat (Depends-on): Add strncat.
3010
3011         Tests for module 'strncat'.
3012         * modules/strncat-tests: New file.
3013         * tests/test-strncat.c: New file.
3014
3015         New module 'strncat'.
3016         * lib/string.in.h (strncat): New declaration.
3017         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
3018         * m4/strncat.m4: New file, based on m4/memchr.m4.
3019         * modules/strncat: New file.
3020         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
3021         is declared.
3022         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
3023         REPLACE_STRNCAT.
3024         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
3025         REPLACE_STRNCAT.
3026         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
3027         module.
3028         * tests/test-string-c++.cc: Check signature of strncat.
3029
3030 2010-04-05  Jim Meyering  <meyering@redhat.com>
3031
3032         xstrtoumax-tests: convert to use init.sh
3033         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
3034         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3035         Use Exit, not exit.
3036         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3037
3038         xstrtoimax-tests: convert to use init.sh
3039         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
3040         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3041         Use Exit, not exit.
3042         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3043
3044 2010-04-05  Bruno Haible  <bruno@clisp.org>
3045
3046         sys_socket: Avoid #define replacements in C++ mode.
3047         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
3048         warning to the function if possible, rather than #defining the symbol
3049         to a dysfunctional alias.
3050
3051 2010-04-05  Bruno Haible  <bruno@clisp.org>
3052
3053         fseeko: Fix C++ test error on mingw.
3054         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
3055         gl_FUNC_FSEEKO.
3056         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
3057         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
3058         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
3059         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
3060
3061 2010-04-05  Bruno Haible  <bruno@clisp.org>
3062
3063         duplocale: Improve test output.
3064         * tests/test-duplocale.c (main): Print reason for skipped test.
3065
3066 2010-04-05  Bruno Haible  <bruno@clisp.org>
3067
3068         Assume rmdir exists.
3069         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
3070         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
3071
3072 2010-04-05  Bruno Haible  <bruno@clisp.org>
3073
3074         Fix link error on Solaris 8 with cc.
3075         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
3076
3077 2010-04-05  Bruno Haible  <bruno@clisp.org>
3078
3079         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3080         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
3081
3082 2010-04-05  Bruno Haible  <bruno@clisp.org>
3083
3084         vasprintf: Update documentation.
3085         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
3086
3087 2010-04-05  Bruno Haible  <bruno@clisp.org>
3088
3089         ptsname: Improve test.
3090         * tests/test-ptsname.c (main): Also try the various master names of BSD
3091         systems.
3092
3093 2010-04-05  Bruno Haible  <bruno@clisp.org>
3094
3095         memchr: Avoid a possible C++ test error.
3096         * lib/string.in.h (memchr): Provide declaration if function is missing.
3097         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
3098         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
3099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
3100         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
3101
3102 2010-04-05  Bruno Haible  <bruno@clisp.org>
3103
3104         strtok_r: Improve idiom.
3105         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
3106         AC_LIBOBJ is used.
3107
3108 2010-04-05  Bruno Haible  <bruno@clisp.org>
3109
3110         strdup: Improve idiom.
3111         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
3112         AC_LIBOBJ is used.
3113         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
3114         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
3115         when AC_LIBOBJ is used.
3116
3117 2010-04-05  Bruno Haible  <bruno@clisp.org>
3118
3119         mbsinit, mbrtowc, wcrtomb: Improve idioms.
3120         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
3121         don't set REPLACE_MBSINIT to 1.
3122         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
3123         don't set REPLACE_MBRTOWC to 1.
3124         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
3125         exist, don't set REPLACE_MBSRTOWCS to 1.
3126         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
3127         exist, don't set REPLACE_MBSNRTOWCS to 1.
3128         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
3129         don't set REPLACE_WCRTOMB to 1.
3130         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
3131         exist, don't set REPLACE_WCSRTOMBS to 1.
3132         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
3133         exist, don't set REPLACE_WCSNRTOMBS to 1.
3134
3135 2010-04-05  Bruno Haible  <bruno@clisp.org>
3136
3137         ldexpl: Improve idiom.
3138         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
3139         make sure to set HAVE_DECL_LDEXPL to 0.
3140
3141 2010-04-05  Jim Meyering  <meyering@redhat.com>
3142
3143         xstrtol-tests: convert to use init.sh
3144         * modules/xstrtol-tests (Files): Add tests/init.sh.
3145         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3146         Use Exit, not exit.
3147         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3148
3149         atexit-tests: convert to use init.sh
3150         * modules/atexit-tests (Files): Add tests/init.sh.
3151         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3152         Use Exit, not exit.
3153         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3154
3155         init.sh: fix typo
3156         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
3157
3158         init.sh: make it easier for a test script to write to the tty, ...
3159         when using automake's parallel-tests mode.
3160         * tests/init.sh (stderr_fileno_): Define overridable variable.
3161         (warn_): New function, to use it.
3162         (fail_, skip_, framework_failure_): Use warn_.
3163
3164 2010-04-04  Bruno Haible  <bruno@clisp.org>
3165
3166         btowc: Avoid warning.
3167         * lib/btowc.c: Include <stdlib.h>.
3168         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
3169
3170 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3171             Bruno Haible  <bruno@clisp.org>
3172
3173         wchar: Port to NetBSD 1.5.
3174         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
3175         * lib/wctype.in.h (WEOF): Likewise.
3176
3177 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3178             Bruno Haible  <bruno@clisp.org>
3179
3180         Port extended stdio to NetBSD 1.5.
3181         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
3182         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
3183         older.
3184
3185 2010-04-04  Bruno Haible  <bruno@clisp.org>
3186
3187         string: Remove unused substitution.
3188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3189         HAVE_DECL_STRERROR.
3190         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
3191
3192 2010-04-04  Bruno Haible  <bruno@clisp.org>
3193
3194         strtod: Avoid a possible C++ test error.
3195         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
3196         set REPLACE_STRTOD.
3197
3198 2010-04-04  Bruno Haible  <bruno@clisp.org>
3199
3200         strerror: Update documentation.
3201         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
3202
3203 2010-04-04  Bruno Haible  <bruno@clisp.org>
3204
3205         stdio: Fix some C++ test errors on Solaris 8 with GCC.
3206         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
3207         _GL_CXXALIAS_SYS_CAST.
3208
3209 2010-04-04  Bruno Haible  <bruno@clisp.org>
3210
3211         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3212         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
3213         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
3214         REPLACE_FREXPL to 1.
3215         * doc/posix-functions/frexpl.texi: Update documentation.
3216
3217 2010-04-04  Bruno Haible  <bruno@clisp.org>
3218
3219         math: Fix some C++ test errors on Solaris 8 and Cygwin.
3220         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
3221
3222 2010-04-04  Bruno Haible  <bruno@clisp.org>
3223
3224         Implement nanosleep for native Windows.
3225         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
3226
3227 2010-04-04  Bruno Haible  <bruno@clisp.org>
3228
3229         math: Fix some C++ test errors on Solaris 8.
3230         * lib/math.in.h (truncf, trunc): Use simpler idiom.
3231
3232 2010-04-04  Bruno Haible  <bruno@clisp.org>
3233
3234         math: Fix some C++ test errors on Cygwin.
3235         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
3236         truncl): Provide declaration if the system does not have it.
3237         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
3238         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
3239         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
3240         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
3241         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
3242         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
3243         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
3244         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
3245         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
3246         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
3247         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
3248         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
3249         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
3250         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
3251         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
3252         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
3253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
3254         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3255         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3256         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
3257         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3258         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3259
3260 2010-04-04  Bruno Haible  <bruno@clisp.org>
3261
3262         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
3263         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3264         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3265         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3266         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3267         * m4/isinf.m4 (gl_ISINF): Likewise.
3268         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3269
3270 2010-04-04  Bruno Haible  <bruno@clisp.org>
3271
3272         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
3273         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3274
3275 2010-04-04  Bruno Haible  <bruno@clisp.org>
3276
3277         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
3278         * modules/tmpfile (configure.ac): Update.
3279
3280         tmpfile: Fix C++ test error on mingw.
3281         * lib/stdio.in.h (tmpfile): New declaration.
3282         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
3283         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
3284         * modules/tmpfile (Depends-on): Add stdio.
3285         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3286         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
3287         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
3288         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
3289         REPLACE_TMPFILE.
3290         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
3291
3292 2010-04-04  Bruno Haible  <bruno@clisp.org>
3293
3294         ioctl: Fix C++ test error on mingw.
3295         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
3296         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
3297         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
3298
3299 2010-04-03  Bruno Haible  <bruno@clisp.org>
3300
3301         wcwidth: Fix C++ test error on mingw.
3302         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
3303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
3304         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
3305
3306 2010-04-03  Bruno Haible  <bruno@clisp.org>
3307
3308         nanosleep: Fix C++ test error on mingw.
3309         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
3310         * lib/time.in.h (nanosleep): Use modern idiom.
3311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
3312         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
3313         REPLACE_NANOSLEEP to 1.
3314         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
3315         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
3316
3317 2010-04-03  Bruno Haible  <bruno@clisp.org>
3318
3319         strptime: Fix C++ test error on mingw.
3320         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
3321         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
3322         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
3323         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
3324         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
3325         not REPLACE_STRPTIME.
3326         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
3327         REPLACE_STRPTIME.
3328
3329 2010-04-03  Bruno Haible  <bruno@clisp.org>
3330
3331         timegm: Fix C++ test error on mingw.
3332         * lib/time.in.h (timegm): Use modern idiom.
3333         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
3334         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
3335         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
3336         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
3337
3338 2010-04-03  Bruno Haible  <bruno@clisp.org>
3339
3340         timegm: Assume declaration if function exists.
3341         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
3342         if it exists. Don't clobber ac_cv_func_timegm.
3343
3344 2010-04-03  Bruno Haible  <bruno@clisp.org>
3345
3346         time_r: Fix C++ test error on mingw.
3347         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
3348         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
3349         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
3350         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
3351         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
3352
3353 2010-04-03  Bruno Haible  <bruno@clisp.org>
3354
3355         time_r: Minor updates.
3356         * modules/time_r (Description): Mention the provided functions.
3357         * lib/time_r.c: Don't include <string.h>.
3358         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
3359         * doc/posix-functions/localtime_r.texi: Likewise.
3360
3361 2010-04-03  Bruno Haible  <bruno@clisp.org>
3362
3363         time: Fix regression introduced on 2010-03-08.
3364         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
3365         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
3366
3367 2010-04-03  Jim Meyering  <meyering@redhat.com>
3368
3369         maint.mk: don't silently disable project-specific syntax-check rules
3370         * top/maint.mk (_prohibit_regexp): Define, to help people realize
3371         that they need to convert their project-specific syntax-check rules
3372         to use the new _sc_search_regexp.
3373
3374 2010-04-03  Bruno Haible  <bruno@clisp.org>
3375
3376         fchdir: Fix regression introduced on 2010-03-08.
3377         * lib/unistd.in.h (fchdir): Fix declaration.
3378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
3379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
3380         REPLACE_FCHDIR.
3381         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
3382         REPLACE_FCHDIR.
3383
3384 2010-04-03  Bruno Haible  <bruno@clisp.org>
3385
3386         getpagesize: Fix C++ test error on mingw.
3387         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
3388         system does not declare the function.
3389         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
3390         declared.
3391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3392         HAVE_DECL_GETPAGESIZE.
3393         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
3394
3395 2010-04-03  Bruno Haible  <bruno@clisp.org>
3396
3397         stdio: Make C++ tests work on mingw.
3398         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
3399         does not declare the function.
3400
3401 2010-04-03  Bruno Haible  <bruno@clisp.org>
3402
3403         ftello: Fix C++ test error on mingw.
3404         * lib/stdio.in.h (ftello): Use modern idiom.
3405         * lib/ftello.c (ftello): Renamed from rpl_ftello.
3406         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
3407         is missing and that it needs to be replaced.
3408         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
3409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
3410         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
3411
3412 2010-04-03  Bruno Haible  <bruno@clisp.org>
3413
3414         fseeko: Fix C++ test error on mingw.
3415         * lib/stdio.in.h (fseeko): Use modern idiom.
3416         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
3417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
3418         is missing and that it needs to be replaced.
3419         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
3420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
3421         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
3422
3423 2010-04-03  Bruno Haible  <bruno@clisp.org>
3424
3425         mkstemp: Fix C++ test error on mingw.
3426         * lib/stdlib.in.h (mkstemp): Use modern idiom.
3427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
3428         function is missing and that it needs to be replaced.
3429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
3430         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
3431
3432 2010-04-03  Bruno Haible  <bruno@clisp.org>
3433
3434         stpncpy: Fix C++ test error on mingw.
3435         * lib/string.in.h (stpncpy): Use modern idiom.
3436         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
3437         function is missing and that it needs to be replaced.
3438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3439         REPLACE_STPNCPY.
3440         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
3441
3442 2010-04-03  Bruno Haible  <bruno@clisp.org>
3443
3444         sys_stat: Fix C++ test error on mingw.
3445         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
3446         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
3447
3448 2010-04-03  Bruno Haible  <bruno@clisp.org>
3449
3450         pty: Update doc.
3451         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
3452
3453 2010-04-03  Bruno Haible  <bruno@clisp.org>
3454
3455         unistd: Fix C++ test error on mingw.
3456         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
3457
3458 2010-04-03  Bruno Haible  <bruno@clisp.org>
3459
3460         Update doc regarding mingw.
3461         * doc/glibc-functions/openpty.texi: Update regarding mingw.
3462         * doc/glibc-functions/login_tty.texi: Likewise.
3463         * doc/glibc-functions/forkpty.texi: Likewise.
3464
3465 2010-04-03  Bruno Haible  <bruno@clisp.org>
3466
3467         stdlib: Avoid compilation failure of c-strtold on mingw.
3468         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
3469
3470 2010-04-03  Bruno Haible  <bruno@clisp.org>
3471
3472         locale: Make C++ tests work on Cygwin and mingw.
3473         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
3474         cannot provide the function.
3475         Reported by Simon Josefsson.
3476
3477 2010-04-03  Bruno Haible  <bruno@clisp.org>
3478
3479         localename: Port to MacOS X 10.6.
3480         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
3481         memory layout of the locales in MacOS X 10.6 as well.
3482         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
3483
3484 2010-04-02  Bruno Haible  <bruno@clisp.org>
3485
3486         gnulib-tool: Ensure that long-running tests are executed last.
3487         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
3488         running tests after the one for the other tests.
3489
3490 2010-04-02  Bruno Haible  <bruno@clisp.org>
3491
3492         gnulib-tool: Ensure the tests in the main directory are executed first.
3493         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3494         start with the current directory.
3495
3496 2010-04-02  Bruno Haible  <bruno@clisp.org>
3497
3498         Tests for module 'havelib', moved here from GNU gettext.
3499         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3500         modifications.
3501         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3502         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3503         with modifications.
3504         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3505         modifications.
3506         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3507         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3508         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3509         with modifications.
3510         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3511         with modifications.
3512         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3513         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3514         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3515         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3516         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3517         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3518         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3519         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3520         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3521         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3522         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3523         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3524         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3525         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3526         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3527         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3528         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3529         with modifications.
3530         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3531         with modifications.
3532         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3533         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3534         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3535         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3536         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3537         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3538         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3539         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3540         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3541         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3542         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3543         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3544         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3545         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3546         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3547         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3548         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3549         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3550         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3551         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3552         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3553         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3554         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3555         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3556         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3557         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3558         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3559         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3560         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3561         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3562         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3563         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3564         * tests/havelib/rpathx/rpathx.c: New file, from
3565         gettext/autoconf-lib-link.
3566         * tests/havelib/rpathx/Makefile.am: New file, from
3567         gettext/autoconf-lib-link.
3568         * tests/havelib/rpathx/configure.ac: New file, from
3569         gettext/autoconf-lib-link with modifications.
3570         * tests/havelib/rpathy/rpathy.c: New file, from
3571         gettext/autoconf-lib-link.
3572         * tests/havelib/rpathy/Makefile.am: New file, from
3573         gettext/autoconf-lib-link.
3574         * tests/havelib/rpathy/configure.ac: New file, from
3575         gettext/autoconf-lib-link with modifications.
3576         * tests/havelib/rpathz/rpathz.c: New file, from
3577         gettext/autoconf-lib-link.
3578         * tests/havelib/rpathz/Makefile.am: New file, from
3579         gettext/autoconf-lib-link.
3580         * tests/havelib/rpathz/configure.ac: New file, from
3581         gettext/autoconf-lib-link with modifications.
3582         * tests/havelib/rpathlx/usex.c: New file, from
3583         gettext/autoconf-lib-link.
3584         * tests/havelib/rpathlx/Makefile.am: New file, from
3585         gettext/autoconf-lib-link.
3586         * tests/havelib/rpathlx/configure.ac: New file, from
3587         gettext/autoconf-lib-link with modifications.
3588         * tests/havelib/rpathly/usey.c: New file, from
3589         gettext/autoconf-lib-link.
3590         * tests/havelib/rpathly/Makefile.am: New file, from
3591         gettext/autoconf-lib-link.
3592         * tests/havelib/rpathly/configure.ac: New file, from
3593         gettext/autoconf-lib-link with modifications.
3594         * tests/havelib/rpathlz/usez.c: New file, from
3595         gettext/autoconf-lib-link.
3596         * tests/havelib/rpathlz/Makefile.am: New file, from
3597         gettext/autoconf-lib-link.
3598         * tests/havelib/rpathlz/configure.ac: New file, from
3599         gettext/autoconf-lib-link with modifications.
3600         * tests/havelib/rpathlyx/usey.c: New file, from
3601         gettext/autoconf-lib-link.
3602         * tests/havelib/rpathlyx/Makefile.am: New file, from
3603         gettext/autoconf-lib-link.
3604         * tests/havelib/rpathlyx/configure.ac: New file, from
3605         gettext/autoconf-lib-link with modifications.
3606         * tests/havelib/rpathlzyx/usez.c: New file, from
3607         gettext/autoconf-lib-link.
3608         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3609         gettext/autoconf-lib-link.
3610         * tests/havelib/rpathlzyx/configure.ac: New file, from
3611         gettext/autoconf-lib-link with modifications.
3612         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3613         with modifications.
3614
3615 2010-04-02  Bruno Haible  <bruno@clisp.org>
3616
3617         gnulib-tool: Create distributed built sources also for the tests.
3618         * gnulib-tool (func_create_testdir): Also generate distributed built
3619         sources in the tests directory.
3620
3621 2010-04-02  Bruno Haible  <bruno@clisp.org>
3622
3623         gnulib-tool: Obey user's environment variables.
3624         * gnulib-tool (func_create_testdir): When creating built sources,
3625         respect the environment variables for autoconf, automake, etc. given by
3626         the user.
3627
3628 2010-04-02  Bruno Haible  <bruno@clisp.org>
3629
3630         gnulib-tool: Provide the value of --m4-base to modules.
3631         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3632         of gl_m4_base.
3633
3634 2010-04-02  Eric Blake  <eblake@redhat.com>
3635
3636         maint.mk: fix some fallout
3637         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3638         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3639
3640 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3641
3642         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3643         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3644         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3645         (sc_cast_of_x_alloc_return_value): Likewise.
3646         (sc_cast_of_alloca_return_value): Likewise.
3647         (sc_space_tab): Likewise.
3648         (sc_prohibit_atoi_atof): Likewise.
3649         (sc_prohibit_magic_number_exit): Likewise.
3650         (sc_error_exit_success): Likewise.
3651         (sc_file_system): Likewise.
3652         (sc_prohibit_have_config_h): Likewise.
3653         (sc_require_config_h): Likewise.
3654         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3655         (sc_obsolete_symbols): Likewise.
3656         (sc_changelog): Likewise.
3657         (sc_program_name): Likewise.
3658         (sc_the_the): Likewise.
3659         (sc_trailing_blank): Likewise.
3660         (sc_two_space_separator_in_usage): Likewise.
3661         (sc_useless_cpp_parens): Likewise.
3662         (sc_GPL_version): Likewise.
3663         (sc_GFDL_version): Likewise.
3664         (sc_texinfo_acronym): Likewise.
3665         (sc_prohibit_cvs_keyword): Likewise.
3666         (sc_prohibit_stat_st_blocks): Likewise.
3667         (sc_prohibit_S_IS_definition): Likewise.
3668         (sc_redundant_const): Likewise.
3669         (sc_makefile_TAB_only_indentation): Likewise.
3670         (sc_m4_quote_check): Likewise.
3671         (sc_makefile_path_separator_check): Likewise.
3672         (sc_copyright_check): Likewise.
3673         (sc_Wundef_boolean): Likewise.
3674         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3675
3676         maint.mk: match 0 or more whitespace-before-function-call '('
3677         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
3678         that have zero or two-and-more spaces between the function name
3679         and the open parenthesis.
3680         (sc_error_message_warn_fatal): Likewise.
3681         (sc_error_message_uppercase): Likewise.
3682         (sc_error_message_period): Likewise.
3683
3684 2010-03-31  Eric Blake  <eblake@redhat.com>
3685
3686         maint.mk: check for [ as well as test
3687         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
3688         Based on a libvirt report by Matthias Bolte.
3689
3690         gnumakefile: don't squelch _version output
3691         * top/GNUmakefile (_version): Create one-shot dependency rather
3692         than using $(shell) when version must be regenerated.
3693         (_autoreconf): Run verbosely, by default.
3694
3695         sys_time: avoid compiler warnings
3696         * lib/sys_time.in.h (includes): Ensure gcc pragma is
3697         unconditional, fixing regression from 2010-03-29.
3698         Reported by Simon Josefsson.
3699
3700 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3701
3702         maint.mk: s/_header_without_use/_sc_header_without_use/
3703         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
3704         (sc_prohibit_assert_without_use): Use the new name.
3705         (sc_prohibit_close_stream_without_use): Likewise.
3706         (sc_prohibit_getopt_without_use): Likewise.
3707         (sc_prohibit_quotearg_without_use): Likewise.
3708         (sc_prohibit_quote_without_use): Likewise.
3709         (sc_prohibit_long_options_without_use): Likewise.
3710         (sc_prohibit_inttostr_without_use): Likewise.
3711         (sc_prohibit_ignore_value_without_use): Likewise.
3712         (sc_prohibit_error_without_use): Likewise.
3713         (sc_prohibit_xalloc_without_use): Likewise.
3714         (sc_prohibit_hash_without_use): Likewise.
3715         (sc_prohibit_hash_pjw_without_use): Likewise.
3716         (sc_prohibit_safe_read_without_use): Likewise.
3717         (sc_prohibit_argmatch_without_use): Likewise.
3718         (sc_prohibit_canonicalize_without_use): Likewise.
3719         (sc_prohibit_root_dev_ino_without_use): Likewise.
3720         (sc_prohibit_openat_without_use): Likewise.
3721         (sc_prohibit_c_ctype_without_use): Likewise.
3722         (sc_prohibit_signal_without_use): Likewise.
3723         (sc_prohibit_intprops_without_use): Likewise.
3724
3725 2010-03-30  Eric Blake  <eblake@redhat.com>
3726
3727         maint: improve module indicators
3728         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
3729         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
3730         columns, and avoid extra macro expansion.
3731
3732         fdopendir: work around FreeBSD bug
3733         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3734         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
3735         * modules/dirent (Makefile.am): Substitute it.
3736         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
3737         declaration.
3738         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
3739         fix.
3740         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3741
3742 2010-03-29  Bruno Haible  <bruno@clisp.org>
3743
3744         Emit #pragma system_header after the inclusion guard, not before.
3745         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
3746         guard that spans the entire file, not before. This enables an
3747         optimization in GCC's preprocessor.
3748         * lib/ctype.in.h: Likewise.
3749         * lib/dirent.in.h: Likewise.
3750         * lib/errno.in.h: Likewise.
3751         * lib/float.in.h: Likewise.
3752         * lib/getopt.in.h: Likewise.
3753         * lib/iconv.in.h: Likewise.
3754         * lib/langinfo.in.h: Likewise.
3755         * lib/locale.in.h: Likewise.
3756         * lib/math.in.h: Likewise.
3757         * lib/netdb.in.h: Likewise.
3758         * lib/netinet_in.in.h: Likewise.
3759         * lib/pty.in.h: Likewise.
3760         * lib/sched.in.h: Likewise.
3761         * lib/se-selinux.in.h: Likewise.
3762         * lib/search.in.h: Likewise.
3763         * lib/spawn.in.h: Likewise.
3764         * lib/stdarg.in.h: Likewise.
3765         * lib/stdint.in.h: Likewise.
3766         * lib/string.in.h: Likewise.
3767         * lib/strings.in.h: Likewise.
3768         * lib/sys_file.in.h: Likewise.
3769         * lib/sys_ioctl.in.h: Likewise.
3770         * lib/sys_time.in.h: Likewise.
3771         * lib/sys_times.in.h: Likewise.
3772         * lib/sys_utsname.in.h: Likewise.
3773         * lib/sys_wait.in.h: Likewise.
3774         * lib/sysexits.in.h: Likewise.
3775         * lib/wctype.in.h: Likewise.
3776
3777 2010-03-28  James Youngman  <jay@gnu.org>
3778
3779         save-cwd: don't leak a file descriptor when the caller execs.
3780         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
3781         saved file descriptor.
3782         * modules/save-cwd (Depends-on): Depend on cloexec.
3783
3784 2010-03-29  Bruno Haible  <bruno@clisp.org>
3785
3786         Remove vestiges of fts-lgpl module.
3787         * lib/fts_.h: Assume GNULIB_FTS is 1.
3788         * lib/fts.c: Likewise.
3789         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3790
3791 2010-03-28  Bruno Haible  <bruno@clisp.org>
3792
3793         Fix definition of tests witness macro.
3794         * gnulib-tool (func_import): Fix definition of witness macro.
3795
3796 2010-03-28  Bruno Haible  <bruno@clisp.org>
3797
3798         Fix ioctl's protoype on glibc systems.
3799         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
3800         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
3801         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
3802         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
3803         signature. If not, arrange to replace the ioctl function.
3804         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3805         REPLACE_IOCTL.
3806         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
3807         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
3808         Reported by Ludovic Courtès <ludo@gnu.org>.
3809
3810 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
3811
3812         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
3813         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
3814         made it so grep -r --include=GLOB* ... did not work.
3815
3816 2010-03-26  Jim Meyering  <meyering@redhat.com>
3817             Eric Blake  <eblake@redhat.com>
3818
3819         maint.mk: prohibit use of test's -o and -a operators
3820         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
3821
3822 2010-03-28  Bruno Haible  <bruno@clisp.org>
3823
3824         Remove unused GNULIB_XYZ macro definitions.
3825         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
3826         invocation.
3827
3828 2010-03-28  Bruno Haible  <bruno@clisp.org>
3829
3830         Mark privileged tests modules.
3831         * modules/idpriv-drop-tests (Status): New section.
3832         * modules/idpriv-droptemp-tests (Status): New section.
3833
3834 2010-03-28  Bruno Haible  <bruno@clisp.org>
3835
3836         Split C++ tests into separate tests modules.
3837         * modules/dirent-c++-tests: New file, extracted from
3838         modules/dirent-tests.
3839         * modules/dirent-tests: Depend on it.
3840         * modules/fcntl-h-c++-tests: New file, extracted from
3841         modules/fcntl-h-tests.
3842         * modules/fcntl-h-tests: Depend on it.
3843         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
3844         * modules/glob-tests: Depend on it.
3845         * modules/iconv-h-c++-tests: New file, extracted from
3846         modules/iconv-h-tests.
3847         * modules/iconv-h-tests: Depend on it.
3848         * modules/langinfo-c++-tests: New file, extracted from
3849         modules/langinfo-tests.
3850         * modules/langinfo-tests: Depend on it.
3851         * modules/locale-c++-tests: New file, extracted from
3852         modules/locale-tests.
3853         * modules/locale-tests: Depend on it.
3854         * modules/math-c++-tests: New file, extracted from modules/math-tests.
3855         * modules/math-tests: Depend on it.
3856         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
3857         * modules/pty-tests: Depend on it.
3858         * modules/search-c++-tests: New file, extracted from
3859         modules/search-tests.
3860         * modules/search-tests: Depend on it.
3861         * modules/signal-c++-tests: New file, extracted from
3862         modules/signal-tests.
3863         * modules/signal-tests: Depend on it.
3864         * modules/spawn-c++-tests: New file, extracted from
3865         modules/spawn-tests.
3866         * modules/spawn-tests: Depend on it.
3867         * modules/stdio-c++-tests: New file, extracted from
3868         modules/stdio-tests.
3869         * modules/stdio-tests: Depend on it.
3870         * modules/stdlib-c++-tests: New file, extracted from
3871         modules/stdlib-tests.
3872         * modules/stdlib-tests: Depend on it.
3873         * modules/string-c++-tests: New file, extracted from
3874         modules/string-tests.
3875         * modules/string-tests: Depend on it.
3876         * modules/sys_ioctl-c++-tests: New file, extracted from
3877         modules/sys_ioctl-tests.
3878         * modules/sys_ioctl-tests: Depend on it.
3879         * modules/sys_select-c++-tests: New file, extracted from
3880         modules/sys_select-tests.
3881         * modules/sys_select-tests: Depend on it.
3882         * modules/sys_socket-c++-tests: New file, extracted from
3883         modules/sys_socket-tests.
3884         * modules/sys_socket-tests: Depend on it.
3885         * modules/sys_stat-c++-tests: New file, extracted from
3886         modules/sys_stat-tests.
3887         * modules/sys_stat-tests: Depend on it.
3888         * modules/sys_time-c++-tests: New file, extracted from
3889         modules/sys_time-tests.
3890         * modules/sys_time-tests: Depend on it.
3891         * modules/time-c++-tests: New file, extracted from modules/time-tests.
3892         * modules/time-tests: Depend on it.
3893         * modules/unistd-c++-tests: New file, extracted from
3894         modules/unistd-tests.
3895         * modules/unistd-tests: Depend on it.
3896         * modules/wchar-c++-tests: New file, extracted from
3897         modules/wchar-tests.
3898         * modules/wchar-tests: Depend on it.
3899         * modules/wctype-c++-tests: New file, extracted from
3900         modules/wctype-tests.
3901         * modules/wctype-tests: Depend on it.
3902         Reported by Simon Josefsson.
3903
3904 2010-03-28  Bruno Haible  <bruno@clisp.org>
3905
3906         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
3907         * gnulib-tool (func_exists_module): New function, extracted from
3908         func_verify_module.
3909         (func_verify_module): Use it.
3910         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
3911         'foo' only if 'foo' exists.
3912         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
3913         module.
3914
3915 2010-03-28  Bruno Haible  <bruno@clisp.org>
3916
3917         gnulib-tool: Add support for special categories of tests.
3918         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
3919         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
3920         (func_usage): Document them.
3921         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
3922         inc_unportable_tests, inc_all_tests): New variables.
3923         (func_acceptable): Consider these variables.
3924         (func_modules_transitive_closure): Make it work when the 'Status' field
3925         consists of multiple words.
3926         (func_import): Store and restore the values of inc_cxx_tests,
3927         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
3928         inc_all_tests in gnulib-comp.m4.
3929         (func_create_testdir): Set inc_all_tests to true.
3930         * doc/gnulib.texi (Extra tests modules): New section.
3931         Suggested by Jim Meyering.
3932
3933 2010-03-28  Bruno Haible  <bruno@clisp.org>
3934
3935         ansi-c++-opt: Allow turning off the C++ build by default.
3936         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
3937         gl_CXX_CHOICE_DEFAULT_NO is defined.
3938         Requested by Eric Blake.
3939
3940 2010-03-28  Bruno Haible  <bruno@clisp.org>
3941
3942         unistd: Avoid #define replacements in C++ mode.
3943         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3944         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3945         setsockopt, shutdown, select): In C++, attach a warning to the function
3946         if possible, rather than #defining the symbol to a dysfunctional alias.
3947         Reported by John W. Eaton <jwe@gnu.org>.
3948
3949 2010-03-28  Bruno Haible  <bruno@clisp.org>
3950
3951         Fix link errors on mingw.
3952         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
3953         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
3954         $(LIBSOCKET).
3955         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
3956         $(LIBSOCKET).
3957
3958 2010-03-28  Bruno Haible  <bruno@clisp.org>
3959             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3960
3961         lib-ignore: Determine different options for different compilers.
3962         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
3963         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
3964         Add comments.
3965         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
3966         * NEWS: Mention the change.
3967
3968 2010-03-27  Bruno Haible  <bruno@clisp.org>
3969
3970         Remove unused GNULIB_XYZ macro definitions.
3971         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3972         * modules/fseek (configure.ac): Likewise.
3973         * modules/ioctl (configure.ac): Likewise.
3974         * modules/open (configure.ac): Likewise.
3975         * modules/stdlib-safer (configure.ac): Likewise.
3976
3977 2010-03-27  Bruno Haible  <bruno@clisp.org>
3978
3979         Add a remark about certain modules.
3980         * modules/malloc (Comment): New section.
3981         * modules/realloc (Comment): Likewise.
3982         * modules/sigpipe (Comment): Likewise.
3983
3984 2010-03-27  Bruno Haible  <bruno@clisp.org>
3985
3986         Resolve conflict between the two kinds of module indicators.
3987         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
3988         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
3989         * modules/canonicalize (configure.ac): Invoke
3990         gl_MODULE_INDICATOR_FOR_TESTS.
3991         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
3992         GNULIB_XYZ.
3993         * tests/test-dirent-c++.cc: Likewise.
3994         * tests/test-dirent-safer.c: Likewise.
3995         * tests/test-dup2.c: Likewise.
3996         * tests/test-fchdir.c: Likewise.
3997         * tests/test-fcntl-h-c++.cc: Likewise.
3998         * tests/test-getopt.c: Likewise.
3999         * tests/test-getopt.h: Likewise.
4000         * tests/test-langinfo-c++.cc: Likewise.
4001         * tests/test-locale-c++.cc: Likewise.
4002         * tests/test-math-c++.cc: Likewise.
4003         * tests/test-pty-c++.cc: Likewise.
4004         * tests/test-search-c++.cc: Likewise.
4005         * tests/test-signal-c++.cc: Likewise.
4006         * tests/test-spawn-c++.cc: Likewise.
4007         * tests/test-stdio-c++.cc: Likewise.
4008         * tests/test-stdlib-c++.cc: Likewise.
4009         * tests/test-string-c++.cc: Likewise.
4010         * tests/test-sys_ioctl-c++.cc: Likewise.
4011         * tests/test-sys_select-c++.cc: Likewise.
4012         * tests/test-sys_socket-c++.cc: Likewise.
4013         * tests/test-sys_stat-c++.cc: Likewise.
4014         * tests/test-sys_time-c++.cc: Likewise.
4015         * tests/test-time-c++.cc: Likewise.
4016         * tests/test-unistd-c++.cc: Likewise.
4017         * tests/test-wchar-c++.cc: Likewise.
4018         * tests/uninorm/test-u8-nfc.c: Likewise.
4019         * tests/uninorm/test-u8-nfd.c: Likewise.
4020         * tests/uninorm/test-u8-nfkc.c: Likewise.
4021         * tests/uninorm/test-u8-nfkd.c: Likewise.
4022         * tests/uninorm/test-u16-nfc.c: Likewise.
4023         * tests/uninorm/test-u16-nfd.c: Likewise.
4024         * tests/uninorm/test-u16-nfkc.c: Likewise.
4025         * tests/uninorm/test-u16-nfkd.c: Likewise.
4026         * tests/uninorm/test-u32-nfc.c: Likewise.
4027         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4028         * tests/uninorm/test-u32-nfd.c: Likewise.
4029         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4030         * tests/uninorm/test-u32-nfkc.c: Likewise.
4031         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4032         * tests/uninorm/test-u32-nfkd.c: Likewise.
4033         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4034         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4035
4036 2010-03-27  Bruno Haible  <bruno@clisp.org>
4037
4038         Distinguish two kinds of module indicators.
4039         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
4040         gl_MODULE_INDICATOR.
4041         (gl_MODULE_INDICATOR): New macro.
4042         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4043         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
4044         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4045         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4046         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4047         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4048         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4049         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4050         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4051         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4052         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4053         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4055         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4056         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4057         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4058         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4059         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4060         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4061         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4062         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4063         * modules/cloexec (configure.ac): Likewise.
4064         * modules/getopt-gnu (configure.ac): Likewise.
4065         * modules/uninorm/u8-normalize (configure.ac): Likewise.
4066         * modules/uninorm/u16-normalize (configure.ac): Likewise.
4067         * modules/uninorm/u32-normalize (configure.ac): Likewise.
4068         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
4069
4070 2010-03-27  Bruno Haible  <bruno@clisp.org>
4071
4072         New module description field 'Comment'.
4073         * gnulib-tool: New option --extract-comment.
4074         (func_usage): Document it.
4075         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
4076         (func_get_comment): New function.
4077         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
4078
4079 2010-03-27  Bruno Haible  <bruno@clisp.org>
4080
4081         Addendum to 2010-02-07 commit.
4082         * gnulib-tool (func_usage): Document --extract-applicability option.
4083
4084 2010-03-27  Bruno Haible  <bruno@clisp.org>
4085
4086         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
4087         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
4088         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
4089         rather than link errors.
4090
4091 2010-03-27  Bruno Haible  <bruno@clisp.org>
4092
4093         Avoid side effects from tests-related modules on the compilation of lib.
4094         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
4095         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
4096         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
4097         parameter. Emit into AM_CPPFLAGS a definition of the designated C
4098         macro.
4099         (func_import): Define a witness macro. Assign it a value that depends
4100         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
4101         tests-related modules.
4102         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
4103         Reported by Jim Meyering.
4104
4105 2010-03-27  Bruno Haible  <bruno@clisp.org>
4106
4107         Factorize common .m4 code.
4108         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
4109         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
4110         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
4111         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
4112         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4113         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
4114         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
4115         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4116         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4117         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4118         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
4119         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4120         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4121         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4122         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4123         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
4124         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4125         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4126         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4127         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
4128         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
4129         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4130         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4131         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4132         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4133         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4134         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
4135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
4136         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
4137         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4138         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4139         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4140
4141 2010-03-27  Bruno Haible  <bruno@clisp.org>
4142
4143         Fix a compilation error on Cygwin with g++ >= 4.3.
4144         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
4145         if it is undefined or if we alias it to chmod.
4146         (lstat): Don't warn about the use of this function if it is undefined
4147         or if we alias it to stat.
4148         Reported by Simon Josefsson.
4149
4150 2010-03-27  Bruno Haible  <bruno@clisp.org>
4151
4152         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
4153         * modules/getlogin (configure.ac): Update.
4154
4155         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
4156         * modules/getlogin_r (configure.ac): Update.
4157
4158         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
4159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
4160         * modules/inet_ntop (configure.ac): Update.
4161
4162         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
4163         * modules/inet_pton (configure.ac): Update.
4164
4165         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
4166         * modules/mbslen (configure.ac): Update.
4167
4168         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
4169         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
4170         * modules/forkpty (configure.ac): Update.
4171         * modules/openpty (configure.ac): Update.
4172
4173 2010-03-26  Simon Josefsson  <simon@josefsson.org>
4174
4175         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
4176         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
4177
4178 2010-03-25  Eric Blake  <eblake@redhat.com>
4179
4180         maint: use pragma consistently across replacement headers
4181         * lib/ctype.in.h (system_header): Hoist for consistent placement.
4182         * lib/dirent.in.h (system_header): Likewise.
4183         * lib/errno.in.h (system_header): Likewise.
4184         * lib/float.in.h (system_header): Likewise.
4185         * lib/getopt.in.h (system_header): Likewise.
4186         * lib/iconv.in.h (system_header): Likewise.
4187         * lib/inttypes.in.h (system_header): Likewise.
4188         * lib/langinfo.in.h (system_header): Likewise.
4189         * lib/locale.in.h (system_header): Likewise.
4190         * lib/math.in.h (system_header): Likewise.
4191         * lib/netdb.in.h (system_header): Likewise.
4192         * lib/netinet_in.in.h (system_header): Likewise.
4193         * lib/pty.in.h (system_header): Likewise.
4194         * lib/sched.in.h (system_header): Likewise.
4195         * lib/se-selinux.in.h (system_header): Likewise.
4196         * lib/search.in.h (system_header): Likewise.
4197         * lib/spawn.in.h (system_header): Likewise.
4198         * lib/stdarg.in.h (system_header): Likewise.
4199         * lib/stdint.in.h (system_header): Likewise.
4200         * lib/string.in.h (system_header): Likewise.
4201         * lib/strings.in.h (system_header): Likewise.
4202         * lib/sys_file.in.h (system_header): Likewise.
4203         * lib/sys_ioctl.in.h (system_header): Likewise.
4204         * lib/sys_socket.in.h (system_header): Likewise.
4205         * lib/sys_times.in.h (system_header): Likewise.
4206         * lib/sys_utsname.in.h (system_header): Likewise.
4207         * lib/sys_wait.in.h (system_header): Likewise.
4208         * lib/sysexits.in.h (system_header): Likewise.
4209         * lib/unistd.in.h (system_header): Likewise.
4210         * lib/wctype.in.h (system_header): Likewise.
4211
4212         arpa/inet: fix mingw compilation warning
4213         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
4214         Reported by Matthew Bolte.
4215
4216 2010-03-25  Bruno Haible  <bruno@clisp.org>
4217
4218         Avoid collision between gnulib wrapper and libintl wrapper.
4219         * lib/printf.c (printf): Don't define if a printf wrapper is already
4220         defined in intl/printf.c.
4221         Reported by Michel Boaventura <michel@michelboaventura.com>.
4222
4223 2010-03-25  Bruno Haible  <bruno@clisp.org>
4224
4225         Use ANSI C.
4226         * lib/readutmp.h (getutent): Provide ANSI C prototype.
4227
4228 2010-03-25  Bruno Haible  <bruno@clisp.org>
4229
4230         Minor formatting changes.
4231         * lib/acosl.c: Insert space before function argument list.
4232         * lib/argz.c: Likewise.
4233         * lib/asinl.c: Likewise.
4234         * lib/expl.c: Likewise.
4235         * lib/gen-uni-tables.c: Likewise.
4236         * lib/gettext.h: Likewise.
4237         * lib/glthread/lock.h: Likewise.
4238         * lib/tanl.c: Likewise.
4239         * lib/uniname/uniname.c: Likewise.
4240         * tests/test-idpriv-drop.c: Likewise.
4241         * tests/test-idpriv-droptemp.c: Likewise.
4242         * tests/test-lock.c: Likewise.
4243         * tests/test-tls.c: Likewise.
4244         * lib/argp-help.c: Insert space before function-like macro argument
4245         list.
4246         * lib/memcmp.c: Likewise.
4247         * tests/test-base64.c: Likewise.
4248         * lib/localename.c: Insert space before sizeof's argument list.
4249         * lib/safe-alloc.h: Likewise.
4250         * lib/file-set.h: Insert space before macro argument list.
4251         * tests/test-argp.c: Likewise.
4252         * lib/argp-namefrob.h: Insert space before function parameter list.
4253         * lib/getaddrinfo.c: Likewise.
4254         * lib/netdb.in.h: Likewise.
4255         * lib/parse-duration.h: Likewise.
4256         * lib/parse-duration.c: Likewise.
4257         * lib/poll.c: Likewise.
4258         * lib/select.c: Likewise.
4259         * lib/trim.h: Likewise.
4260         * tests/test-usleep.c: Likewise.
4261         * lib/ldexpl.c: Insert space before function parameter list and before
4262         function argument list.
4263         * lib/logl.c: Likewise.
4264         * lib/sqrtl.c: Likewise.
4265         * lib/trim.c: Likewise.
4266         * lib/cosl.c: Use GNU style indentation. Insert space before function
4267         argument list.
4268         * lib/sinl.c: Likewise.
4269         * lib/tsearch.c: Insert space after 'for'.
4270         Reported by Jim Meyering.
4271
4272 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
4273
4274         * maint.mk (sc_Wundef_boolean): Check for the presence of the
4275         config header before grepping, as it's not present before
4276         autoreconf/configure are run.  Reported by Simon Josefsson.
4277
4278 2010-03-23  Bruno Haible  <bruno@clisp.org>
4279
4280         pt_chown: Make it work with automake < 1.11.
4281         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
4282         Reported by Simon Josefsson.
4283
4284 2010-03-23  Bruno Haible  <bruno@clisp.org>
4285
4286         pt_chown: Don't depend on GPLed modules.
4287         * lib/pt_chown.c: Don't include idpriv.h.
4288         (main): Don't drop privileges.
4289         * modules/pt_chown (Depends-on): Remove idpriv-drop.
4290         Reported by Simon Josefsson.
4291
4292 2010-03-24  Simon Josefsson  <simon@josefsson.org>
4293
4294         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
4295         suggestions from karl@freefriends.org (Karl Berry).
4296
4297 2010-03-22  Eric Blake  <eblake@redhat.com>
4298
4299         gethostname: further tweaks
4300         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
4301         are overriding gethostname.
4302         Suggested by Bruno Haible.
4303
4304 2010-03-21  Bruno Haible  <bruno@clisp.org>
4305
4306         Fix comments.
4307         * lib/forkpty.c (rpl_forkpty): Fix comment.
4308         * lib/openpty.c (rpl_openpty): Likewise.
4309         Reported by Eric Blake.
4310
4311 2010-03-22  Eric Blake  <eblake@redhat.com>
4312
4313         gethostname: fix build on mingw
4314         * lib/unistd.in.h (includes): Work around fact that mingw
4315         <winsock2.h> re-includes <unistd.h>, by avoiding any
4316         redeclarations if we are being included by <winsock2.h>.
4317         Reported by Matthias Bolte.
4318
4319 2010-03-21  Bruno Haible  <bruno@clisp.org>
4320
4321         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4322         * lib/forkpty.c (forkpty): New replacement function, from glibc with
4323         modifications.
4324         * lib/pty.in.h (forkpty): Update declaration. Add comments.
4325         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
4326         provide the replacement.
4327         * modules/forkpty (Depends-on): Add openpty, login_tty.
4328         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
4329         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
4330         * doc/glibc-functions/forkpty.texi: More supported platforms.
4331         * config/srclist.txt: Add forkpty.c (commented).
4332
4333 2010-03-21  Bruno Haible  <bruno@clisp.org>
4334
4335         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4336         (Makefile.am): Verify that PTY_LIB is defined.
4337
4338         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
4339
4340 2010-03-21  Bruno Haible  <bruno@clisp.org>
4341
4342         Tests for module 'login_tty'.
4343         * modules/login_tty-tests: New file.
4344         * tests/test-login_tty.c: New file.
4345
4346         New module 'login_tty'.
4347         * lib/login_tty.c: New file.
4348         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
4349         * modules/login_tty: New file.
4350         * doc/glibc-functions/login_tty.texi: Mention the new module.
4351
4352 2010-03-21  Bruno Haible  <bruno@clisp.org>
4353
4354         login_tty: Documentation.
4355         * doc/glibc-functions/login_tty.texi: New file.
4356         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
4357
4358 2010-03-21  Bruno Haible  <bruno@clisp.org>
4359
4360         pty: Consistent macro naming.
4361         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
4362         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
4363         * modules/pty (configure.ac): Update.
4364
4365 2010-03-21  Bruno Haible  <bruno@clisp.org>
4366
4367         Tests for openpty: Make stricter.
4368         * tests/test-openpty.c (main): Add test of canonical processing and
4369         erase.
4370         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
4371
4372         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4373         * lib/openpty.c (openpty): New replacement function.
4374         * lib/pty.in.h: Include <termios.h>.
4375         (openpty): Update declaration. Add comments.
4376         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
4377         is not declared, arrange to provide the replacement. Check for _getpty
4378         and posix_openpt.
4379         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
4380         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
4381         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
4382         * modules/pty-tests (test_pty_c___LDADD): New variable.
4383         * doc/glibc-functions/openpty.texi: More supported platforms.
4384
4385 2010-03-21  Bruno Haible  <bruno@clisp.org>
4386
4387         setenv: Tweaks.
4388         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
4389         the test program.
4390         * doc/posix-functions/setenv.texi: Update platforms list.
4391
4392 2010-03-21  Bruno Haible  <bruno@clisp.org>
4393
4394         New module 'unlockpt'.
4395         * lib/unlockpt.c: New file, from glibc with modifications.
4396         * m4/unlockpt.m4: New file.
4397         * modules/unlockpt: New file.
4398         * lib/stdlib.in.h (unlockpt): New declaration.
4399         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
4400         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
4401         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
4402         HAVE_UNLOCKPT.
4403         * doc/posix-functions/unlockpt.texi: Mention the new module.
4404         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
4405         * config/srclist.txt: Add unlockpt.c (commented).
4406
4407 2010-03-21  Jim Meyering  <meyering@redhat.com>
4408
4409         maint.mk: prohibit inclusion of "intprops.h" without use
4410         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
4411
4412 2010-03-21  Bruno Haible  <bruno@clisp.org>
4413
4414         New module 'grantpt'.
4415         * lib/grantpt.c: New file, from glibc with modifications.
4416         * m4/grantpt.m4: New file.
4417         * modules/grantpt: New file.
4418         * lib/stdlib.in.h (grantpt): New declaration.
4419         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
4420         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
4421         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
4422         HAVE_GRANTPT.
4423         * doc/posix-functions/grantpt.texi: Mention the new module.
4424         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
4425         * config/srclist.txt: Add grantpt.c (commented).
4426
4427 2010-03-21  Bruno Haible  <bruno@clisp.org>
4428
4429         New module 'pt_chown'.
4430         * lib/pt_chown.c: New file, from glibc with modifications.
4431         * lib/pty-private.h: New file, from glibc with modifications.
4432         * modules/pt_chown: New file.
4433         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
4434
4435 2010-03-21  Bruno Haible  <bruno@clisp.org>
4436
4437         Tests for module 'ptsname'.
4438         * modules/ptsname-tests: New file.
4439         * tests/test-ptsname.c: New file.
4440
4441         New module 'ptsname'.
4442         * lib/ptsname.c: New file, from glibc with modifications.
4443         * m4/ptsname.m4: New file.
4444         * modules/ptsname: New file.
4445         * lib/stdlib.in.h (ptsname): New declaration.
4446         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
4447         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
4448         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
4449         HAVE_PTSNAME.
4450         * doc/posix-functions/ptsname.texi: Mention the new module.
4451         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
4452         * config/srclist.txt: Add ptsname.c (commented).
4453
4454 2010-03-21  Bruno Haible  <bruno@clisp.org>
4455
4456         Tests for module 'ttyname_r'.
4457         * modules/ttyname_r-tests: New file.
4458         * tests/test-ttyname_r.c: New file.
4459
4460         New module 'ttyname_r'.
4461         * lib/ttyname_r.c: New file.
4462         * m4/ttyname_r.m4: New file.
4463         * modules/ttyname_r: New file.
4464         * lib/unistd.in.h (ttyname_r): New declaration.
4465         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
4466         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
4467         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
4468         HAVE_TTYNAME_R.
4469         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
4470         * doc/posix-functions/ttyname_r.texi: Mention the new module.
4471
4472 2010-03-20  Bruno Haible  <bruno@clisp.org>
4473
4474         signal: Undefine macro definitions in C++ mode.
4475         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
4476         sigfillset): Undefine macro definitions from the system header in C++
4477         mode.
4478         Reported by John W. Eaton <jwe@gnu.org>.
4479
4480 2010-03-20  Bruno Haible  <bruno@clisp.org>
4481
4482         Ensure no #include statements inside extern "C" { ... }.
4483         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
4484         contain #include statements.
4485         * lib/time.in.h: Likewise.
4486
4487 2010-03-20  Bruno Haible  <bruno@clisp.org>
4488
4489         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4490         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4491         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4492         Reported by John W. Eaton <jwe@gnu.org>.
4493
4494 2010-03-20  Bruno Haible  <bruno@clisp.org>
4495
4496         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4497         Reported by Jim Meyering.
4498
4499 2010-03-20  Bruno Haible  <bruno@clisp.org>
4500
4501         pipe: Set errno upon failure.
4502         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4503         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4504         errno value in error message.
4505
4506 2010-03-20  Bruno Haible  <bruno@clisp.org>
4507             Jim Meyering  <meyering@redhat.com>
4508
4509         lchown: Avoid "unused variable" warning.
4510         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4511
4512 2010-03-20  Bruno Haible  <bruno@clisp.org>
4513
4514         Work around unlink() bug on MacOS X 10.5.6.
4515         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4516         attempting to unlink a parent directory.
4517         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4518         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4519         activate for the replacement function.
4520         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4521
4522 2010-03-20  Bruno Haible  <bruno@clisp.org>
4523
4524         Fix link errors on Solaris 8.
4525         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4526         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4527
4528 2010-03-19  Jim Meyering  <meyering@redhat.com>
4529
4530         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4531         The _LIBC implementation of build_range_exp correctly honors the
4532         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4533         However, the non-_LIBC implementation would ignore that syntax-bit
4534         flag and return REG_ERANGE unconditionally.
4535         This change makes it honor that flag.
4536         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4537         Make two pointer parameters "const".
4538         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4539         (parse_bracket_exp): Update caller.
4540
4541         regex.m4: correct the reversed range endpoint ([b-a]) test
4542         * m4/regex.m4: When requiring that [b-a] evoke failure,
4543         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4544         test pass once again for x86-based systems.
4545
4546 2010-03-19  Bruno Haible  <bruno@clisp.org>
4547
4548         scandir: Fix link error on Solaris 8.
4549         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4550         macros.
4551
4552 2010-03-19  Bruno Haible  <bruno@clisp.org>
4553
4554         getusershell: Fix documentation.
4555         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4556         module.
4557         * doc/glibc-functions/setusershell.texi: Likewise.
4558
4559         getusershell: Provide declaration, missing on Solaris 9.
4560         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4561         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4562         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4563         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4565         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4566         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4567         HAVE_GETUSERSHELL.
4568         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4569
4570 2010-03-19  Bruno Haible  <bruno@clisp.org>
4571
4572         wctype: Provide iswblank function.
4573         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4574         exists and is fine.
4575         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4576         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4577         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4578         * doc/posix-functions/iswblank.texi: Update.
4579
4580 2010-03-19  Bruno Haible  <bruno@clisp.org>
4581
4582         Tests of module 'pty' in C++ mode.
4583         * modules/pty-tests: New file.
4584         * tests/test-pty-c++.cc: New file.
4585         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4586
4587 2010-03-19  Eric Blake  <eblake@redhat.com>
4588
4589         logb: fix documentation
4590         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4591         1.5 declaration bug.
4592
4593         forkpty, openpty: prefer glibc's const-safe prototype
4594         * lib/forkpty.c (rpl_forkpty): New file.
4595         * lib/openpty.c (rpl_openpty): Likewise.
4596         * modules/forkpty (Files): Distribute it.
4597         * modules/openpty (Files): Likewise.
4598         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4599         check...
4600         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4601         replacement for for non-const BSD signature.
4602         * modules/pty (Makefile.am): Substitute witnesses.
4603         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4604         * tests/test-forkpty.c: Update signature check.
4605         * tests/test-openpty.c: Likewise.
4606         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4607         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4608
4609         forkpty, openpty: split functions into new modules
4610         * modules/pty (Makefile.am): Substitute new witnesses.
4611         (Libraries): Move library detection...
4612         * modules/forkpty: ...into new module.
4613         * modules/openpty: Another new module.
4614         * modules/pty-tests: Rename and split...
4615         * modules/forkpty-tests: ...to this...
4616         * modules/openpty-tests: ...and this.
4617         * tests/test-pty.c: Rename and split...
4618         * tests/test-forkpty.c: ...to this...
4619         * tests/test-openpty.c: ...and this.
4620         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4621         (gl_PTY): Split library searching...
4622         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4623         (gl_FORKPTY, gl_OPENPTY): New macros.
4624         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4625         * NEWS: Mention the split.
4626         * MODULES.html.sh (Misc): Document the modules.
4627         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4628         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4629
4630         pty: improve replacement header
4631         * lib/pty.in.h: New file.
4632         * modules/pty (Files): Ship it.
4633         (Makefile.am): Always build replacement.
4634         * m4/pty.m4: Rename...
4635         * m4/pty_h.m4: ...to this.
4636         (gl_PTY): Modernize setting of witness macros; update check of
4637         forkpty to take proper advantage of cache.
4638         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4639
4640         getopt: avoid compiler warning
4641         * lib/getopt.c (attribute_hidden): Remove unused macro.
4642
4643 2010-03-18  Bruno Haible  <bruno@clisp.org>
4644
4645         Fix link errors on Solaris 8.
4646         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4647         * modules/search-tests (test_search_c___LDADD): Likewise.
4648         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4649         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4650         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4651         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4652         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4653         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4654         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4655
4656 2010-03-18  Bruno Haible  <bruno@clisp.org>
4657
4658         Fix bug introduced on 2010-03-14.
4659         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4660         (gl_SPAWN_H): Require it.
4661         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4662         Reported by Simon Josefsson.
4663
4664 2010-03-18  Bruno Haible  <bruno@clisp.org>
4665
4666         Fix typo introduced on 2009-12-31.
4667         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4668         posix_spawn_file_actions_adddup2.
4669
4670 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4671         and Eric Blake  <eblake@redhat.com>
4672
4673         test-vc-list-files-git: make more robust
4674         * tests/test-vc-list-files-git.sh: Unset problematic environment
4675         variables.  Chain commands together.
4676
4677 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
4678
4679         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
4680         `AC_CHECK_DECL' invocation.
4681
4682 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
4683
4684         * lib/inttostr.c (inttostr): Make sure the invocation of verify
4685         appears before executable statements. Suggested by Petr Sumbera
4686         <Petr.Sumbera@Sun.COM>.
4687
4688 2010-03-14  Bruno Haible  <bruno@clisp.org>
4689
4690         * tests/test-flock.c (test_exclusive): Comment out a test that causes
4691         portability problems. Instead use a simpler test.
4692         (main): Check that invalid arguments are rejected only on Linux.
4693
4694 2010-03-14  Bruno Haible  <bruno@clisp.org>
4695
4696         Fix bug introduced on 2009-12-31.
4697         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4698         gl_PREREQ_SYS_H_WINSOCK2 always.
4699         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
4700         SYS_SOCKET_H variable.
4701         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
4702         Update comments.
4703         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
4704         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4705         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4706         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4707         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4708
4709 2010-03-14  Bruno Haible  <bruno@clisp.org>
4710
4711         Fix values returned by sinl, cosl.
4712         * lib/trigl.h: Add specification comments.
4713         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
4714         that combines the values from the precomputed table with the values of
4715         the Chebyshev polynomials.
4716
4717 2010-03-14  Bruno Haible  <bruno@clisp.org>
4718
4719         Fix compilation error when modules 'posix_spawn[p]' are not used.
4720         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
4721         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
4722
4723 2010-03-14  Bruno Haible  <bruno@clisp.org>
4724
4725         Fix compilation error on mingw when module 'time_r' is not used.
4726         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
4727         is 1.
4728         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
4729         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4730         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
4731         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
4732
4733 2010-03-14  Bruno Haible  <bruno@clisp.org>
4734
4735         Fix compilation error with Sun C.
4736         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
4737         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
4738         instead of GCC specific ULONG_LONG_MAX.
4739         * lib/xstrtoll.c: Likewise.
4740         * lib/xstrtoull.c: Likewise.
4741
4742 2010-03-13  Bruno Haible  <bruno@clisp.org>
4743
4744         Allow the user to disable C++ code and tests.
4745         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
4746         (gl_PROG_ANSI_CXX): Require it.
4747
4748 2010-03-13  Bruno Haible  <bruno@clisp.org>
4749
4750         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4751         cases.
4752
4753 2010-03-13  Bruno Haible  <bruno@clisp.org>
4754
4755         Test that gnulib does not break the standard C++ headers.
4756         * tests/test-locale-c++2.cc: New file.
4757         * modules/locale-tests (Files): Add it.
4758         (Makefile.am): Compile it for test-locale-c++.
4759         * tests/test-math-c++2.cc: New file.
4760         * modules/math-tests (Files): Add it.
4761         (Makefile.am): Compile it for test-math-c++.
4762         * tests/test-signal-c++2.cc: New file.
4763         * modules/signal-tests (Files): Add it.
4764         (Makefile.am): Compile it for test-signal-c++.
4765         * tests/test-stdio-c++2.cc: New file.
4766         * modules/stdio-tests (Files): Add it.
4767         (Makefile.am): Compile it for test-stdio-c++.
4768         * tests/test-stdlib-c++2.cc: New file.
4769         * modules/stdlib-tests (Files): Add it.
4770         (Makefile.am): Compile it for test-stdlib-c++.
4771         * tests/test-string-c++2.cc: New file.
4772         * modules/string-tests (Files): Add it.
4773         (Makefile.am): Compile it for test-string-c++.
4774         * tests/test-time-c++2.cc: New file.
4775         * modules/time-tests (Files): Add it.
4776         (Makefile.am): Compile it for test-time-c++.
4777         Reported by John W. Eaton <jwe@gnu.org>.
4778
4779 2010-03-13  Bruno Haible  <bruno@clisp.org>
4780
4781         * gnulib-tool (func_usage): Clarify which options are available for
4782         --create-testdir and --create-megatestdir.
4783
4784 2010-03-13  Bruno Haible  <bruno@clisp.org>
4785
4786         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
4787         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
4788         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
4789         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4790         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
4791         when appropriate.
4792         Reported by Jim Meyering.
4793
4794 2010-03-12  Simon Josefsson  <simon@josefsson.org>
4795
4796         * gnulib-tool (func_import): Explain origin of code.
4797
4798 2010-03-12  Bruno Haible  <bruno@clisp.org>
4799
4800         Fix problem with automake's definition of CXXLINK.
4801         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
4802         Reported by Simon Josefsson and Ludovic Courtès.
4803
4804 2010-03-12  Bruno Haible  <bruno@clisp.org>
4805
4806         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
4807         stable releases.
4808
4809 2010-03-11  Bruno Haible  <bruno@clisp.org>
4810
4811         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
4812         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
4813         whether the system provides one variant or multiple variants of the
4814         function.
4815         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
4816         C++ compilers.
4817         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
4818         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
4819         Reported by Jim Meyering.
4820
4821 2010-03-09  Simon Josefsson  <simon@josefsson.org>
4822
4823         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
4824
4825 2010-03-08  Bruno Haible  <bruno@clisp.org>
4826
4827         gnulib-tool: Add support for --libtool in --create-testdir.
4828         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
4829         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
4830
4831 2010-03-08  Eric Blake  <eblake@redhat.com>
4832
4833         gnulib-tool.texi: mention possibility of git submodule
4834         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
4835         submodules.
4836         * doc/.gitignore: Ignore another generated file.
4837
4838 2010-03-08  Karl Berry  <karl@gnu.org>
4839
4840         * doc/gnulib-tool.texi (VCS Issues): Mention third option
4841         of committing gnulib files while skipping others.
4842
4843 2010-03-07  Bruno Haible  <bruno@clisp.org>
4844
4845         Tests of module 'wctype' in C++ mode.
4846         * tests/test-wctype-c++.cc: New file.
4847         * modules/wctype-tests (Files): Add it and tests/signature.h.
4848         (Depends-on): Add ansi-c++-opt.
4849         (Makefile.am): Arrange to compile and run test-wctype-c++.
4850
4851         Tests of module 'wchar' in C++ mode.
4852         * tests/test-wchar-c++.cc: New file.
4853         * modules/wchar-tests (Files): Add it and tests/signature.h.
4854         (Depends-on): Add ansi-c++-opt.
4855         (Makefile.am): Arrange to compile and run test-wchar-c++.
4856         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
4857         gl_MODULE_INDICATOR.
4858
4859         Tests of module 'unistd' in C++ mode.
4860         * tests/test-unistd-c++.cc: New file.
4861         * modules/unistd-tests (Files): Add it and tests/signature.h.
4862         (Depends-on): Add ansi-c++-opt.
4863         (Makefile.am): Arrange to compile and run test-unistd-c++.
4864         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
4865         gl_MODULE_INDICATOR.
4866
4867         Tests of module 'time' in C++ mode.
4868         * tests/test-time-c++.cc: New file.
4869         * modules/time-tests (Files): Add it and tests/signature.h.
4870         (Depends-on): Add ansi-c++-opt.
4871         (Makefile.am): Arrange to compile and run test-time-c++.
4872         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4873
4874         Tests of module 'sys_time' in C++ mode.
4875         * tests/test-sys_time-c++.cc: New file.
4876         * modules/sys_time-tests (Files): Add it and tests/signature.h.
4877         (Depends-on): Add ansi-c++-opt.
4878         (Makefile.am): Arrange to compile and run test-sys_time-c++.
4879         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
4880         gl_MODULE_INDICATOR.
4881
4882         Tests of module 'sys_stat' in C++ mode.
4883         * tests/test-sys_stat-c++.cc: New file.
4884         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
4885         (Depends-on): Add ansi-c++-opt.
4886         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
4887         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
4888         gl_MODULE_INDICATOR.
4889
4890         Tests of module 'sys_socket' in C++ mode.
4891         * tests/test-sys_socket-c++.cc: New file.
4892         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
4893         (Depends-on): Add ansi-c++-opt.
4894         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
4895         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
4896         gl_MODULE_INDICATOR.
4897
4898         Tests of module 'sys_select' in C++ mode.
4899         * tests/test-sys_select-c++.cc: New file.
4900         * modules/sys_select-tests (Files): Add it and tests/signature.h.
4901         (Depends-on): Add ansi-c++-opt.
4902         (Makefile.am): Arrange to compile and run test-sys_select-c++.
4903         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
4904         gl_MODULE_INDICATOR.
4905
4906         Tests of module 'sys_ioctl' in C++ mode.
4907         * tests/test-sys_ioctl-c++.cc: New file.
4908         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
4909         (Depends-on): Add ansi-c++-opt.
4910         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
4911         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
4912         gl_MODULE_INDICATOR.
4913
4914         Tests of module 'string' in C++ mode.
4915         * tests/test-string-c++.cc: New file.
4916         * modules/string-tests (Files): Add it and tests/signature.h.
4917         (Depends-on): Add ansi-c++-opt.
4918         (Makefile.am): Arrange to compile and run test-string-c++.
4919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
4920         gl_MODULE_INDICATOR.
4921
4922         Tests of module 'stdlib' in C++ mode.
4923         * tests/test-stdlib-c++.cc: New file.
4924         * modules/stdlib-tests (Files): Add it and tests/signature.h.
4925         (Depends-on): Add ansi-c++-opt.
4926         (Makefile.am): Arrange to compile and run test-stdlib-c++.
4927         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
4928         gl_MODULE_INDICATOR.
4929
4930         Tests of module 'stdio' in C++ mode.
4931         * tests/test-stdio-c++.cc: New file.
4932         * modules/stdio-tests (Files): Add it and tests/signature.h.
4933         (Depends-on): Add ansi-c++-opt.
4934         (Makefile.am): Arrange to compile and run test-stdio-c++.
4935         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
4936         gl_MODULE_INDICATOR.
4937
4938         Tests of module 'spawn' in C++ mode.
4939         * tests/test-spawn-c++.cc: New file.
4940         * modules/spawn-tests (Files): Add it and tests/signature.h.
4941         (Depends-on): Add ansi-c++-opt.
4942         (Makefile.am): Arrange to compile and run test-spawn-c++.
4943         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
4944         gl_MODULE_INDICATOR.
4945
4946         Tests of module 'signal' in C++ mode.
4947         * tests/test-signal-c++.cc: New file.
4948         * modules/signal-tests (Files): Add it and tests/signature.h.
4949         (Depends-on): Add ansi-c++-opt.
4950         (Makefile.am): Arrange to compile and run test-signal-c++.
4951         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
4952         gl_MODULE_INDICATOR.
4953
4954         Tests of module 'search' in C++ mode.
4955         * tests/test-search-c++.cc: New file.
4956         * modules/search-tests (Files): Add it and tests/signature.h.
4957         (Depends-on): Add ansi-c++-opt.
4958         (Makefile.am): Arrange to compile and run test-search-c++.
4959         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
4960         gl_MODULE_INDICATOR.
4961
4962         Tests of module 'math' in C++ mode.
4963         * tests/test-math-c++.cc: New file.
4964         * modules/math-tests (Files): Add it and tests/signature.h.
4965         (Depends-on): Add ansi-c++-opt.
4966         (Makefile.am): Arrange to compile and run test-math-c++.
4967         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4968
4969         Tests of module 'locale' in C++ mode.
4970         * tests/test-locale-c++.cc: New file.
4971         * modules/locale-tests (Files): Add it and tests/signature.h.
4972         (Depends-on): Add ansi-c++-opt.
4973         (Makefile.am): Arrange to compile and run test-locale-c++.
4974         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
4975         gl_MODULE_INDICATOR.
4976
4977         Tests of module 'langinfo' in C++ mode.
4978         * tests/test-langinfo-c++.cc: New file.
4979         * modules/langinfo-tests (Files): Add it and tests/signature.h.
4980         (Depends-on): Add ansi-c++-opt.
4981         (Makefile.am): Arrange to compile and run test-langinfo-c++.
4982         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
4983         gl_MODULE_INDICATOR.
4984
4985         Tests of module 'iconv-h' in C++ mode.
4986         * tests/test-iconv-h-c++.cc: New file.
4987         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
4988         (Depends-on): Add ansi-c++-opt.
4989         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
4990
4991         Tests of module 'glob' in C++ mode.
4992         * tests/test-glob-c++.cc: New file.
4993         * modules/glob-tests (Files): Add it.
4994         (Depends-on): Add ansi-c++-opt.
4995         (Makefile.am): Arrange to compile and run test-glob-c++.
4996
4997         Tests of module 'fcntl-h' in C++ mode.
4998         * tests/test-fcntl-h-c++.cc: New file.
4999         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
5000         (Depends-on): Add ansi-c++-opt.
5001         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
5002         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
5003         gl_MODULE_INDICATOR.
5004
5005         Tests of module 'dirent' in C++ mode.
5006         * tests/test-dirent-c++.cc: New file.
5007         * modules/dirent-tests (Files): Add it and tests/signature.h.
5008         (Depends-on): Add ansi-c++-opt.
5009         (Makefile.am): Arrange to compile and run test-dirent-c++.
5010         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5011         gl_MODULE_INDICATOR.
5012
5013         New module 'ansi-c++-opt'.
5014         * modules/ansi-c++-opt: New file.
5015         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
5016
5017         Document C++ namespace mode.
5018         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
5019
5020         wctype: Avoid #define replacements in C++ mode.
5021         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
5022         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
5023         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
5024         In C++, define a namespaced alias symbol.
5025         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
5026         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
5027         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
5028         rule.
5029
5030         wchar: Avoid #define replacements in C++ mode.
5031         * lib/wchar.in.h: Include c++defs.h.
5032         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
5033         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
5034         symbol.
5035         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
5036         * modules/wchar (Depends-on): Add c++defs.
5037         (Makefile.am): Update wchar.h rule.
5038
5039         unistd: Avoid #define replacements in C++ mode.
5040         * lib/unistd.in.h: Include c++defs.h.
5041         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
5042         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
5043         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
5044         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
5045         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
5046         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
5047         symbol.
5048         (environ): Update.
5049         * modules/unistd (Depends-on): Add c++defs.
5050         (Makefile.am): Update unistd.h rule.
5051
5052         time: Avoid #define replacements in C++ mode.
5053         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
5054         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
5055         define a namespaced alias symbol.
5056         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
5057         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
5058         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
5059         * modules/time (Depends-on): Add c++defs, warn-on-use.
5060         (Makefile.am): Update time.h rule.
5061         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5062         * modules/nanosleep (configure.ac): Likewise.
5063         * modules/strptime (configure.ac): Likewise.
5064         * modules/timegm (configure.ac): Likewise.
5065
5066         sys_time: Avoid #define replacements in C++ mode.
5067         * lib/sys_time.in.h: Include c++defs.h.
5068         (gettimeofday): In C++, define a namespaced alias symbol.
5069         * modules/sys_time (Depends-on): Add c++defs.
5070         (Makefile.am): Update sys/time.h rule.
5071
5072         sys_stat: Avoid #define replacements in C++ mode.
5073         * lib/sys_stat.in.h: Include c++defs.h.
5074         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
5075         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
5076         namespaced alias symbol.
5077         In C++, define a namespaced alias symbol.
5078         * modules/sys_stat (Depends-on): Add c++defs.
5079         (Makefile.am): Update sys/stat.h rule.
5080
5081         sys_socket: Avoid #define replacements in C++ mode.
5082         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
5083         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
5084         definitions also when the system has a <sys/socket.h>.
5085         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5086         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
5087         In C++, define a namespaced alias symbol.
5088         * modules/sys_socket (Depends-on): Add c++defs.
5089         (Makefile.am): Update sys/socket.h rule.
5090
5091         sys_select: Avoid #define replacements in C++ mode.
5092         * lib/sys_select.in.h: Include c++defs.h. Enable the function
5093         definitions also when the system has a <sys/select.h>.
5094         (select): In C++, define a namespaced alias symbol.
5095         * modules/sys_select (Depends-on): Add c++defs.
5096         (Makefile.am): Update sys/select.h rule.
5097
5098         sys_ioctl: Avoid #define replacements in C++ mode.
5099         * lib/sys_ioctl.in.h: Include c++defs.h.
5100         (ioctl): In C++, define a namespaced alias symbol.
5101         * modules/sys_ioctl (Depends-on): Add c++defs.
5102         (Makefile.am): Update sys/ioctl.h rule.
5103
5104         string: Avoid #define replacements in C++ mode.
5105         * lib/string.in.h: Include c++defs.h.
5106         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
5107         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5108         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5109         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
5110         strsignal, strverscmp): In C++, define a namespaced alias symbol.
5111         * modules/string (Depends-on): Add c++defs.
5112         (Makefile.am): Update string.h rule.
5113
5114         stdlib: Avoid #define replacements in C++ mode.
5115         * lib/stdlib.in.h: Include c++defs.h.
5116         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
5117         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
5118         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
5119         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
5120         symbol.
5121         * modules/stdlib (Depends-on): Add c++defs.
5122         (Makefile.am): Update stdlib.h rule.
5123
5124         stdio: Avoid #define replacements in C++ mode.
5125         * lib/stdio.in.h: Include c++defs.h.
5126         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
5127         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
5128         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
5129         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
5130         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
5131         namespaced alias symbol.
5132         * modules/stdio (Depends-on): Add c++defs.
5133         (Makefile.am): Update stdio.h rule.
5134
5135         spawn: Avoid #define replacements in C++ mode.
5136         * lib/spawn.in.h: Include c++defs.h.
5137         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5138         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5139         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5140         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5141         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5142         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5143         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5144         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5145         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5146         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5147         In C++, define a namespaced alias symbol.
5148         * modules/spawn (Depends-on): Add c++defs.
5149         (Makefile.am): Update spawn.h rule.
5150
5151         signal: Avoid #define replacements in C++ mode.
5152         * lib/signal.in.h: Include c++defs.h.
5153         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5154         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
5155         namespaced alias symbol.
5156         * modules/signal (Depends-on): Add c++defs.
5157         (Makefile.am): Update signal.h rule.
5158
5159         search: Avoid #define replacements in C++ mode.
5160         * lib/search.in.h: Include c++defs.h.
5161         (_gl_search_compar_fn, _gl_search_action_fn): New types.
5162         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
5163         symbol.
5164         * modules/search (Depends-on): Add c++defs.
5165         (Makefile.am): Update search.h rule.
5166
5167         math: Avoid #define replacements in C++ mode.
5168         * lib/math.in.h: Include c++defs.h.
5169         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
5170         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
5171         trunc, truncl): In C++, define a namespaced alias symbol.
5172         * modules/math (Depends-on): Add c++defs.
5173         (Makefile.am): Update math.h rule.
5174
5175         locale: Avoid #define replacements in C++ mode.
5176         * lib/locale.in.h: Include c++defs.h.
5177         (duplocale): In C++, define a namespaced alias symbol.
5178         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
5179         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
5180         * modules/locale (Depends-on): Add c++defs.
5181         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
5182
5183         langinfo: Avoid #define replacements in C++ mode.
5184         * lib/langinfo.in.h: Include c++defs.h.
5185         (nl_langinfo): In C++, define a namespaced alias symbol.
5186         * modules/langinfo (Depends-on): Add c++defs.
5187         (Makefile.am): Update langinfo.h rule.
5188
5189         iconv-h: Avoid #define replacements in C++ mode.
5190         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
5191         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
5192         symbol.
5193         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
5194         whenever iconv is present.
5195         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
5196         (Makefile.am): Update iconv.h rule.
5197
5198         glob: Avoid #define replacements in C++ mode.
5199         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
5200         (_gl_glob_errfunc_fn): New type.
5201         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
5202         symbol.
5203         * modules/glob (Depends-on): Add c++defs, warn-on-use.
5204         (Makefile.am): Update glob.h rule.
5205
5206         fcntl-h: Avoid #define replacements in C++ mode.
5207         * lib/fcntl.in.h: Include c++defs.h.
5208         (fcntl, open, openat): In C++, define a namespaced alias symbol.
5209         * modules/fcntl-h (Depends-on): Add c++defs.
5210         (Makefile.am): Update fcntl.h rule.
5211
5212         dirent: Avoid #define replacements in C++ mode.
5213         * lib/dirent.in.h: Include c++defs.h.
5214         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
5215         namespaced alias symbol.
5216         (dirfd): Update declaration.
5217         * modules/dirent (Depends-on): Add c++defs.
5218         (Makefile.am): Update dirent.h rule.
5219
5220         ctype: Make it usable in C++ code.
5221         * lib/ctype.in.h: Include c++defs.h.
5222         (isblank): Declare as extern "C".
5223         * modules/ctype (Depends-on): Add c++defs.
5224         (Makefile.am): Update ctype.h rule.
5225
5226         New module 'c++defs'.
5227         * modules/c++defs: New file.
5228         * build-aux/c++defs.h: New file.
5229         Reported by John W. Eaton <jwe@gnu.org>.
5230
5231 2010-03-07  Bruno Haible  <bruno@clisp.org>
5232
5233         logb: Provide missing declaration for Cygwin.
5234         * lib/math.in.h (logb): New declaration.
5235         * m4/logb.m4: New file.
5236         * modules/logb (Files): Add m4/logb.m4.
5237         (Depends-on): Add math.
5238         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
5239         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
5240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
5241         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
5242         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
5243
5244 2010-03-07  Bruno Haible  <bruno@clisp.org>
5245
5246         Fix test-cond link error.
5247         * tests/test-cond.c: Include <stdio.h>.
5248
5249 2010-03-07  Bruno Haible  <bruno@clisp.org>
5250
5251         Fix test-dirent-safer link error.
5252         * modules/dirent-safer-tests (Makefile.am): Define
5253         test_dirent_safer_LDADD.
5254
5255 2010-03-07  Bruno Haible  <bruno@clisp.org>
5256
5257         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
5258         among default module list.
5259
5260 2010-03-07  Bruno Haible  <bruno@clisp.org>
5261
5262         Fix link error on platforms with GNU libiconv.
5263         * modules/unistr/u8-strcoll-tests (Makefile): Define
5264         test_u8_strcoll_LDADD.
5265         * modules/unistr/u16-strcoll-tests (Makefile): Define
5266         test_u16_strcoll_LDADD.
5267         * modules/unistr/u32-strcoll-tests (Makefile): Define
5268         test_u32_strcoll_LDADD.
5269
5270 2010-03-07  Bruno Haible  <bruno@clisp.org>
5271
5272         Use POSIX declarations for socket functions.
5273         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
5274         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
5275         rpl_sendto): Change declaration to match POSIX.
5276         * lib/connect.c (rpl_connect): Likewise.
5277         * lib/accept.c (rpl_accept): Likewise.
5278         * lib/bind.c (rpl_bind): Likewise.
5279         * lib/getpeername.c (rpl_getpeername): Likewise.
5280         * lib/getsockname.c (rpl_getsockname): Likewise.
5281         * lib/recv.c (rpl_recv): Likewise.
5282         * lib/send.c (rpl_send): Likewise.
5283         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5284         * lib/sendto.c (rpl_sendto): Likewise.
5285
5286 2010-03-06  Bruno Haible  <bruno@clisp.org>
5287
5288         Clarify access, euidaccess, faccessat.
5289         * doc/posix-functions/faccessat.texi: Mention security problem under
5290         "Other problems", not "Portability problems".
5291         * doc/posix-functions/access.texi: Likewise. Mention a related security
5292         problem.
5293         * doc/glibc-functions/euidaccess.texi: Mention security problems.
5294         * lib/euidaccess.c: Add comments about platforms.
5295         * lib/unistd.in.h (access, euidaccess): Add warnings.
5296
5297 2010-03-07  Bruno Haible  <bruno@clisp.org>
5298
5299         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
5300         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
5301         (POSIX_SPAWN_SETSCHEDULER): Likewise.
5302         (POSIX_SPAWN_USEVFORK): Define in a way that works when
5303         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5304         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
5305         declare when POSIX_SPAWN_SETSCHEDULER is zero.
5306         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
5307         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
5308         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
5309         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
5310         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
5311         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
5312         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
5313         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
5314         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
5315         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
5316         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
5317         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
5318         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
5319         Likewise.
5320         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
5321         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
5322         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
5323         Likewise.
5324         * tests/test-spawn.c (main): Make it work when
5325         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5326
5327 2010-03-07  Bruno Haible  <bruno@clisp.org>
5328
5329         Fix incorrect Makefile.am generation in German locale.
5330         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5331         Execute sed command with character range in C locale.
5332
5333 2010-03-06  Bruno Haible  <bruno@clisp.org>
5334
5335         Tests for module 'iconv-h'.
5336         * modules/iconv-h-tests: New file.
5337         * tests/test-iconv-h.c: New file.
5338
5339         New module 'iconv-h'.
5340         * modules/iconv-h: New file.
5341         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
5342         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
5343         (configure.ac): Remove gl_ICONV_H.
5344         (Makefile.am): Remove rule for iconv.h.
5345
5346 2010-03-06  Bruno Haible  <bruno@clisp.org>
5347
5348         More consistent naming of *.m4 files.
5349         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
5350         * modules/wctype (Files): Update.
5351
5352         More consistent naming of *.m4 files.
5353         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
5354         * modules/wchar (Files): Update.
5355
5356 2010-03-06  Jim Meyering  <meyering@redhat.com>
5357
5358         euidaccess: relax license to LGPLv2+
5359         * modules/euidaccess (License): Relax to LGPLv2+.
5360
5361 2010-03-06  Bruno Haible  <bruno@clisp.org>
5362
5363         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
5364         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
5365         (Makefile.am): Augment lib_SOURCES instead.
5366
5367 2010-03-04  Jim Meyering  <meyering@redhat.com>
5368
5369         utime: remove obsolete module
5370         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
5371         unnecessary for years, and has been marked as obsolete for 10 months.
5372         * modules/utime: Remove file.
5373         * lib/utime.c: Remove file.
5374         * m4/utime.m4: Remove file.
5375         * m4/utimes-null.m4: Remove file.
5376         * doc/posix-functions/utime.texi (utime): Remove reference to
5377         the module.  Move the sole "fixed by gnulib" item into the
5378         "problems not fixed by Gnulib" list.
5379         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
5380
5381 2010-03-05  Simon Josefsson  <simon@josefsson.org>
5382
5383         * modules/exit (License): Relax license to LGPLv2+.
5384         (Status): Mark as obsolete.
5385         * NEWS: Mention deprecated 'exit' module.
5386         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
5387         of now obsolete 'exit'.
5388
5389 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5390
5391         fts-lgpl: remove unused module
5392         * modules/fts-lgpl: Remove.
5393         * MODULES.html.sh (func_all_modules): Adjust.
5394         * check-module (find_included_lib_files): Adjust.
5395         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
5396
5397 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
5398
5399         copy-acl: enhance Solaris ACL error handling
5400         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
5401         * lib/set-mode-acl.c (qset_acl): Likewise.
5402
5403 2010-03-02  Bruno Haible  <bruno@clisp.org>
5404
5405         spawn: Don't override the system defined values on FreeBSD 8.
5406         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
5407         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
5408         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
5409         if HAVE_POSIX_SPAWN is 1.
5410         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
5411
5412 2010-03-01  Bruno Haible  <bruno@clisp.org>
5413
5414         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
5415         regarding Automake.
5416
5417 2010-02-25  Bruno Haible  <bruno@clisp.org>
5418
5419         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
5420         * gnulib-tool: Define 'echo' as a function only before the ksh alias
5421         setting, not afterwards.
5422         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5423
5424 2010-02-24  Eric Blake  <eblake@redhat.com>
5425
5426         bootstrap, git-version-gen: use timestamp
5427         * build-aux/git-version-gen (scriptversion): Force UTC.
5428         * build-aux/bootstrap (scriptversion): New variable.
5429
5430         bootstrap: allow older git
5431         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
5432         older than 1.6.4.  Requested by the libvirt project.
5433
5434 2010-02-23  Eric Blake  <eblake@redhat.com>
5435
5436         warn-on-use: work with old autoconf
5437         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
5438         AS_VAR semantics of autoconf 2.60.
5439         Reported by Bruno Haible.
5440
5441         bootstrap: improve some comments
5442         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
5443         clarification comments.
5444
5445         gettimeofday: provide correct function
5446         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
5447         when replacement is declared, otherwise provide gettimeofday.
5448         Reported by Michael Goffioul.
5449
5450 2010-02-23  Jim Meyering  <meyering@redhat.com>
5451
5452         lib-ignore: relax license to "unlimited", not LGPLv2+
5453         * modules/lib-ignore (License): Relax to "unlimited".
5454
5455 2010-02-23  Jim Meyering  <meyering@redhat.com>
5456
5457         lib-ignore: relax license to LGPLv2+
5458         * modules/lib-ignore (License): Relax to LGPLv2+.
5459
5460 2010-02-22  Eric Blake  <eblake@redhat.com>
5461
5462         lseek: avoid bash 3.2 broken pipe bug
5463         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5464         warning from bash 3.2.
5465         Reported by Ben Pfaff, with analysis from Bruno Haible.
5466
5467         bootstrap: support non-FSF copyright holder
5468         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
5469         bootstrap.conf override of COPYRIGHT_HOLDER.
5470         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
5471
5472         bootstrap: interoperate with gettext 0.14.1
5473         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
5474
5475         bootstrap: allow for alternate submodule location
5476         * build-aux/bootstrap (gnulib_path): New variable; use instead of
5477         hardcoding submodule location.
5478         (gnulib_mk): Allow direct use of Makefile.am.
5479
5480         bootstrap: use GNULIB_SRCDIR to reduce disk usage
5481         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
5482         rather than reconfiguring where the submodule points.
5483
5484         gettimeofday: restore support for platforms that lack function
5485         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
5486         replacement if function is missing.
5487         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
5488         * modules/sys_time (Makefile.am): Substitute it.
5489         * lib/sys_time.in.h (gettimeofday): Check it.
5490         Reported by Michael Goffioul.
5491
5492 2010-02-21  Bruno Haible  <bruno@clisp.org>
5493
5494         * lib/stdio.in.h (obstack_printf): Fix typo.
5495
5496 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5497
5498         vc-list-files: use bzr ls's -R option
5499         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5500         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5501
5502 2010-02-21  Jim Meyering  <meyering@redhat.com>
5503
5504         init.sh: fix EXEEXT shims to work also for names like test-prog
5505         * tests/init.sh: Re-exec a better shell, when needed.
5506         If the current shell lacks support for posix $(...), an init.sh-using
5507         test will now try to find a shell that supports that.  If EXEEXT is
5508         nonempty, we also require support for hyphen-in-alias-name and shell
5509         substitutions like ${var#glob}.  Failure to find such a shell results
5510         in a skipped test.
5511
5512 2010-02-21  Bruno Haible  <bruno@clisp.org>
5513
5514         Really work around around "broken pipe" error message from bash 3.2.
5515         * gnulib-tool (func_reset_sigpipe): Remove function.
5516         (echo): In bash 3.2, define to a function that uses printf.
5517         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5518
5519 2010-02-20  Bruno Haible  <bruno@clisp.org>
5520
5521         Restore support for automake 1.9.6 with autoconf 2.61.
5522         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5523         Reported by James Youngman <jay@gnu.org>.
5524
5525 2010-02-20  Bruno Haible  <bruno@clisp.org>
5526
5527         Improve *printf warning condition.
5528         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5529         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5530         and the function is overridden due to SIGPIPE emulation.
5531
5532 2010-02-20  Bruno Haible  <bruno@clisp.org>
5533
5534         * lib/stdio.in.h: Tweak comments.
5535
5536 2010-02-19  Bruno Haible  <bruno@clisp.org>
5537
5538         Make it easier to find modules. New gnulib-tool option '--find'.
5539         * gnulib-tool: New option --find.
5540         (func_usage): Document it.
5541         (func_sanitize_modulelist): New function, extracted from
5542         func_all_modules.
5543         (func_all_modules): Invoke it.
5544         * doc/gnulib-tool.texi (Which modules?): New node.
5545
5546 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5547
5548         * lib/sys_select.in.h: Provide select replacement even if
5549         sys/select.h exists on a system, for Interix.
5550
5551 2010-02-18  Jim Meyering  <meyering@redhat.com>
5552
5553         init.sh: don't use $(...) just yet
5554         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5555         to accommodate e.g., Solaris' /bin/sh.
5556
5557 2010-02-17  Bruno Haible  <bruno@clisp.org>
5558
5559         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5560         Reported by Ludovic Courtès <ludo@gnu.org>.
5561
5562 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5563
5564         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5565         linking with -lintl.
5566
5567 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5568
5569         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5570         if not provided by the system's netdb.h.  Reported by
5571         ludo@gnu.org (Ludovic Courtès).
5572
5573 2010-02-15  Jim Meyering  <meyering@redhat.com>
5574
5575         init.sh: improve portability and efficiency
5576         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5577         "dummy" in a for loop.
5578         Use '!', not '^' to select the complement of a character set used
5579         in a "case" statement.
5580         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5581         Suggestions from Eric Blake.
5582
5583         init.sh: automatically accommodate programs with the .exe suffix
5584         Automatically arrange for an invocation of "prog" to execute the
5585         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5586         may use the simpler "prog", yet still work when built on a system
5587         that requires specifying the added suffix.
5588         Do this by constructing a function named "prog" that invokes
5589         "prog.exe" for each .exe file in selected directories.
5590         * tests/init.sh (find_exe_basenames_): New function.
5591         (create_exe_shim_functions_): New function.
5592         (path_prepend_): Use it.
5593
5594         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5595         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5596         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5597
5598 2010-02-14  Jim Meyering  <meyering@redhat.com>
5599
5600         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5601         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5602         (sc_prohibit_hash_pjw_without_use): New rule.
5603
5604         maint.mk: allow the default upload destination dir to be overridden
5605         * top/maint.mk (upload_dest_dir_): Define with a default that
5606         preserves the status quo.
5607         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5608         Reported by Peter Simons.
5609
5610         maint.mk: prohibit inclusion of "hash.h" without_use
5611         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5612
5613 2010-02-10  Jim Meyering  <meyering@redhat.com>
5614
5615         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5616         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5617
5618 2010-02-09  Eric Blake  <ebb9@byu.net>
5619         and Bruno Haible  <bruno@clisp.org>
5620
5621         obstack-printf-posix: ensure declaration
5622         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5623         extracted from gl_FUNC_OBSTACK_PRINTF.
5624         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5625         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5626         Likewise.
5627         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5628         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5629         0.
5630
5631 2010-02-08  Bruno Haible  <bruno@clisp.org>
5632
5633         gnulib-tool: Fix typo in 2010-02-07 commit.
5634         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5635         Reported by Eric Blake.
5636
5637 2010-02-07  Bruno Haible  <bruno@clisp.org>
5638
5639         gnulib-tool: Fix up caching patches.
5640         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5641         option --no-cache. Use associative arrays when supported by the shell.
5642         (sed_comments): New variable.
5643         (modcache): Renamed from do_cache.
5644         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5645         abbreviate unnecessarily.
5646         (have_associative): New variable.
5647         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5648         way also for ksh and zsh.
5649         (func_init_sed_convert_to_cache_statements): New function, extracted
5650         from func_cache_lookup_module. Add support for associative arrays.
5651         Don't set the c_MODULE_cached variable here. Ignore all lines before
5652         the first field header. Remove only the final newline, not all trailing
5653         newlines. Support empty fields correctly. Limit the use of 'eval' to
5654         assignments.
5655         (func_get_description, func_get_status, func_get_notice,
5656         func_get_applicability, func_get_filelist, func_get_dependencies,
5657         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5658         func_get_automake_snippet, func_get_include_directive,
5659         func_get_link_directive, func_get_license, func_get_maintainer):
5660         Update documentation. List the unoptimized code first. Add support for
5661         associative arrays. Limit the use of 'eval' to assignments.
5662         (func_get_applicability): Undo stylistic pessimisations.
5663         (func_get_automake_snippet, func_get_include_directive): Reduce code
5664         duplication.
5665         (func_modules_transitive_closure, func_modules_add_dummy,
5666         func_modules_notice, func_modules_to_filelist, func_add_file,
5667         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5668         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5669         func_create_testdir, func_create_megatestdir): Update documentation.
5670
5671 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5672
5673         * gnulib-tool (func_cache_lookup_module): Store the module name
5674         belonging to the cache variable; error out if two different
5675         module names map to the same cache variable name.
5676
5677 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5678
5679         gnulib-tool: Make caching optional.
5680         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5681         Update matching short versions of --no-changelog.
5682         (func_usage): Update.
5683         (sed_extract_cache_prog): Renamed from ...
5684         (sed_extract_prog): ... this; revert to old extraction script.
5685         (func_get_description, func_get_status)
5686         (func_get_notice, func_get_applicability, func_get_filelist)
5687         (func_get_dependencies, func_get_autoconf_early_snippet)
5688         (func_get_autoconf_snippet, func_get_automake_snippet)
5689         (func_get_include_directive, func_get_link_directive)
5690         (func_get_license, func_get_maintainer): If $do_cache is false,
5691         use old, non-caching extraction scripts.
5692         Suggestion by Bruno Haible.
5693
5694 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5695
5696         gnulib-tool: cache module metainformation.
5697         * gnulib-tool (sed_extract_prog): Match newline before each
5698         header, and rewrite header to a shell variable suffix.
5699         (func_cache_var, func_cache_lookup_module): New functions,
5700         to turn a module name into a cache variable prefix, and to
5701         look up and cache module metainformation.
5702         (func_get_description, func_get_status)
5703         (func_get_notice, func_get_applicability, func_get_filelist)
5704         (func_get_dependencies, func_get_autoconf_early_snippet)
5705         (func_get_autoconf_snippet, func_get_automake_snippet)
5706         (func_get_include_directive, func_get_link_directive)
5707         (func_get_license, func_get_maintainer): Use
5708         func_cache_lookup_module.
5709
5710 2010-02-07  Bruno Haible  <bruno@clisp.org>
5711
5712         fnctl: Fix missing dependency.
5713         * modules/fcntl (Depends-on): Add getdtablesize.
5714         Reported by John W. Eaton <jwe@gnu.org>.
5715
5716 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5717
5718         Argp: fix recognition of short alias options.
5719
5720         * lib/argp-parse.c (convert_options): Fix improper use of
5721         `|' between character values.
5722         * tests/test-argp.c (group1_option): New alias option
5723         --read (-r).
5724         (group1_parser): Special handling for 'r'.
5725         (test15): New test case.
5726         (test_fun): Add test15.
5727         * tests/test-argp-2.sh: Update expected --help and --usage
5728         outputs.
5729
5730 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5731
5732         * tests/test-argp.c: Fix indentation.
5733
5734 2010-02-04  Eric Blake  <ebb9@byu.net>
5735
5736         gettimeofday: expose type of second argument
5737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
5738         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
5739         * tests/test-gettimeofday.c: Use it to silence warning.
5740         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
5741         the issue.
5742
5743 2010-02-03  Jim Meyering  <meyering@redhat.com>
5744
5745         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
5746         * lib/regcomp.c (TYPE_SIGNED): Define.
5747         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
5748
5749         regcomp.c: avoid a new -Wshadow warning
5750         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
5751
5752 2010-02-01  Jim Meyering  <meyering@redhat.com>
5753
5754         removing useless parentheses in cpp #define directives
5755         For motivation, see commit c0221df4, "define STREQ(a,b)
5756         consistently, removing useless parentheses"
5757         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
5758         * lib/mountlist.c (MNT_IGNORE): Likewise.
5759         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
5760
5761 2010-02-01  Eric Blake  <ebb9@byu.net>
5762
5763         sys_time: use link-warning
5764         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
5765         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
5766         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
5767         * modules/sys_time (Depends-on): Add warn-on-use.
5768         (Makefile.am): Always build replacement.
5769         (configure.ac): Update substitutions.
5770         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
5771         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
5772         bother with SYS_TIME_H.
5773         * modules/gettimeofday (configure.ac): Declare indicator.
5774         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
5775         in use.
5776
5777         closein-tests: silence compiler warning
5778         * tests/test-closein.c (main): Ignore fread result.
5779         * modules/closein-tests (Depends-on): Add ignore-value.
5780
5781         tests: silence warning about system return
5782         * tests/test-areadlink-with-size.c (main): Ignore system result.
5783         * tests/test-areadlink.c (main): Likewise.
5784         * tests/test-areadlinkat-with-size.c (main): Likewise.
5785         * tests/test-areadlinkat.c (main): Likewise.
5786         * tests/test-canonicalize-lgpl.c (main): Likewise.
5787         * tests/test-canonicalize.c (main): Likewise.
5788         * tests/test-chown.c (main): Likewise.
5789         * tests/test-fchownat.c (main): Likewise.
5790         * tests/test-fdutimensat.c (main): Likewise.
5791         * tests/test-fstatat.c (main): Likewise.
5792         * tests/test-futimens.c (main): Likewise.
5793         * tests/test-lchown.c (main): Likewise.
5794         * tests/test-link.c (main): Likewise.
5795         * tests/test-linkat.c (main): Likewise.
5796         * tests/test-lstat.c (main): Likewise.
5797         * tests/test-mkdir.c (main): Likewise.
5798         * tests/test-mkdirat.c (main): Likewise.
5799         * tests/test-mkfifo.c (main): Likewise.
5800         * tests/test-mkfifoat.c (main): Likewise.
5801         * tests/test-mknod.c (main): Likewise.
5802         * tests/test-readlink.c (main): Likewise.
5803         * tests/test-remove.c (main): Likewise.
5804         * tests/test-rename.c (main): Likewise.
5805         * tests/test-renameat.c (main): Likewise.
5806         * tests/test-rmdir.c (main): Likewise.
5807         * tests/test-symlink.c (main): Likewise.
5808         * tests/test-symlinkat.c (main): Likewise.
5809         * tests/test-unlink.c (main): Likewise.
5810         * tests/test-unlinkat.c (main): Likewise.
5811         * tests/test-utimens.c (main): Likewise.
5812         * tests/test-utimensat.c (main): Likewise.
5813         * modules/areadlink-tests (Depends-on): Add ignore-value.
5814         * modules/areadlink-with-size-tests (Depends-on): Likewise.
5815         * modules/areadlinkat-tests (Depends-on): Likewise.
5816         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
5817         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5818         * modules/canonicalize-tests (Depends-on): Likewise.
5819         * modules/chown-tests (Depends-on): Likewise.
5820         * modules/fdutimensat-tests (Depends-on): Likewise.
5821         * modules/futimens-tests (Depends-on): Likewise.
5822         * modules/lchown-tests (Depends-on): Likewise.
5823         * modules/link-tests (Depends-on): Likewise.
5824         * modules/linkat-tests (Depends-on): Likewise.
5825         * modules/lstat-tests (Depends-on): Likewise.
5826         * modules/mkdir-tests (Depends-on): Likewise.
5827         * modules/mkfifo-tests (Depends-on): Likewise.
5828         * modules/mkfifoat-tests (Depends-on): Likewise.
5829         * modules/mknod-tests (Depends-on): Likewise.
5830         * modules/openat-tests (Depends-on): Likewise.
5831         * modules/readlink-tests (Depends-on): Likewise.
5832         * modules/remove-tests (Depends-on): Likewise.
5833         * modules/rename-tests (Depends-on): Likewise.
5834         * modules/renameat-tests (Depends-on): Likewise.
5835         * modules/rmdir-tests (Depends-on): Likewise.
5836         * modules/symlink-tests (Depends-on): Likewise.
5837         * modules/symlinkat-tests (Depends-on): Likewise.
5838         * modules/unlink-tests (Depends-on): Likewise.
5839         * modules/utimens-tests (Depends-on): Likewise.
5840         * modules/utimensat-tests (Depends-on): Likewise.
5841
5842 2010-01-31  Bruno Haible  <bruno@clisp.org>
5843
5844         Perform the same test for many <math.h> functions.
5845         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
5846         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
5847         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
5848         of gl_MATHFUNC.
5849         * modules/acos (configure.ac): Likewise.
5850         * modules/asin (configure.ac): Likewise.
5851         * modules/atan (configure.ac): Likewise.
5852         * modules/atan2 (configure.ac): Likewise.
5853         * modules/cbrt (configure.ac): Likewise.
5854         * modules/copysign (configure.ac): Likewise.
5855         * modules/cos (configure.ac): Likewise.
5856         * modules/cosh (configure.ac): Likewise.
5857         * modules/erf (configure.ac): Likewise.
5858         * modules/erfc (configure.ac): Likewise.
5859         * modules/exp (configure.ac): Likewise.
5860         * modules/fmod (configure.ac): Likewise.
5861         * modules/hypot (configure.ac): Likewise.
5862         * modules/j0 (configure.ac): Likewise.
5863         * modules/j1 (configure.ac): Likewise.
5864         * modules/jn (configure.ac): Likewise.
5865         * modules/lgamma (configure.ac): Likewise.
5866         * modules/log (configure.ac): Likewise.
5867         * modules/log10 (configure.ac): Likewise.
5868         * modules/log1p (configure.ac): Likewise.
5869         * modules/pow (configure.ac): Likewise.
5870         * modules/remainder (configure.ac): Likewise.
5871         * modules/sin (configure.ac): Likewise.
5872         * modules/sinh (configure.ac): Likewise.
5873         * modules/tan (configure.ac): Likewise.
5874         * modules/tanh (configure.ac): Likewise.
5875         * modules/y0 (configure.ac): Likewise.
5876         * modules/y1 (configure.ac): Likewise.
5877         * modules/yn (configure.ac): Likewise.
5878         Suggested by Paolo Bonzini.
5879
5880 2010-01-31  Bruno Haible  <bruno@clisp.org>
5881
5882         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
5883
5884 2010-01-31  Bruno Haible  <bruno@clisp.org>
5885
5886         Work around getdelim() bug on FreeBSD 8.0.
5887         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
5888         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
5889         not work.
5890         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
5891         is 1.
5892         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
5893         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
5894         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
5895         a non-zero size.
5896         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
5897
5898 2010-01-31  Bruno Haible  <bruno@clisp.org>
5899
5900         Work around getline() bug on FreeBSD 8.0.
5901         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
5902         and a non-zero size.
5903         * tests/test-getline.c (main): Likewise.
5904         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
5905         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
5906
5907 2010-01-28  Eric Blake  <ebb9@byu.net>
5908
5909         regex: fix build failure
5910         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
5911         platforms.
5912
5913 2010-01-28  Jim Meyering  <meyering@redhat.com>
5914
5915         regex: do not ignore memory allocation failure
5916         * lib/regex_internal.c (create_cd_newstate): Detect
5917         re_node_set_init_copy failure.   Extracted from glibc commit
5918         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5919
5920         regex: sync more white-space changes from libc
5921         * lib/regex_internal.c: White-space only changes.
5922         * lib/regexec.c: Likewise.
5923
5924         regex: add many uses of __attribute_warn_unused_result__
5925         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
5926         * lib/regexec.c: Likewise.
5927         Extracted from a messy glibc commit.
5928
5929         regcomp.c: spelling and merge-artifact from glibc
5930         * lib/regcomp.c: Merge remainder of glibc's
5931         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5932
5933         regcomp.c: sync white-space changes from glibc
5934         * lib/regcomp.c: Merge to accommodate white space
5935         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5936
5937         regcomp.c: do not ignore internal return values
5938         * lib/regcomp.c: Do not ignore internal return values.
5939         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
5940         but without its white-space changes and spelling fixes.
5941
5942         regex_internal.h: define __attribute_warn_unused_result__
5943         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
5944
5945         maint: add a syntax-check rule to check for vulnerable Makefile.in
5946         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
5947
5948 2010-01-27  Jim Meyering  <meyering@redhat.com>
5949
5950         ncftpput-ftp: clean up spaces
5951         * build-aux/ncftpput-ftp: Make Copyright line consistent.
5952         Remove trailing blanks.
5953
5954 2010-01-27  Simon Josefsson  <simon@josefsson.org>
5955
5956         * build-aux/git-version-gen: Fix copyright statement.
5957         * build-aux/gnupload: Likewise.
5958         * tests/test-arcfour.c: Likewise.
5959         * tests/test-arctwo.c: Likewise.
5960         * tests/test-count-one-bits.c: Likewise.
5961         * tests/test-crc.c: Likewise.
5962         * tests/test-des.c: Likewise.
5963         * tests/test-gc-arcfour.c: Likewise.
5964         * tests/test-gc-arctwo.c: Likewise.
5965         * tests/test-gc-des.c: Likewise.
5966         * tests/test-gc-hmac-md5.c: Likewise.
5967         * tests/test-gc-hmac-sha1.c: Likewise.
5968         * tests/test-gc-md2.c: Likewise.
5969         * tests/test-gc-md4.c: Likewise.
5970         * tests/test-gc-md5.c: Likewise.
5971         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5972         * tests/test-gc-rijndael.c: Likewise.
5973         * tests/test-gc-sha1.c: Likewise.
5974         * tests/test-gc.c: Likewise.
5975         * tests/test-gethostname.c: Likewise.
5976         * tests/test-gettimeofday.c: Likewise.
5977         * tests/test-hash.c: Likewise.
5978         * tests/test-hmac-md5.c: Likewise.
5979         * tests/test-hmac-sha1.c: Likewise.
5980         * tests/test-md2.c: Likewise.
5981         * tests/test-md4.c: Likewise.
5982         * tests/test-md5.c: Likewise.
5983         * tests/test-memchr.c: Likewise.
5984         * tests/test-memchr2.c: Likewise.
5985         * tests/test-memcmp.c: Likewise.
5986         * tests/test-memmem.c: Likewise.
5987         * tests/test-memrchr.c: Likewise.
5988         * tests/test-rawmemchr.c: Likewise.
5989         * tests/test-read-file.c: Likewise.
5990         * tests/test-rijndael.c: Likewise.
5991         * tests/test-sockets.c: Likewise.
5992         * tests/test-strchrnul.c: Likewise.
5993         * tests/test-strstr.c: Likewise.
5994         * tests/test-strtod.c: Likewise.
5995         * build-aux/ncftpput-ftp: Likewise.
5996
5997 2010-01-26  Eric Blake  <ebb9@byu.net>
5998
5999         ignore-value: update recommended header name
6000         * modules/ignore-value (Include): Only use <> for headers that
6001         exist in glibc.
6002
6003 2010-01-26  Jim Meyering  <meyering@redhat.com>
6004
6005         test-userspec.c: avoid compiler warnings
6006         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
6007         and "initialization discards qualifiers..." warnings.
6008         Put the first "uid" in its own scope, and make char* members "const".
6009
6010 2010-01-25  Bruno Haible  <bruno@clisp.org>
6011
6012         gnulib-tool: Make warning diagnostics consistent.
6013         * gnulib-tool (func_warning): New function.
6014         Use it everywhere where gnulib-tool produces output to stderr and it is
6015         not a fatal error.
6016
6017 2010-01-25  Bruno Haible  <bruno@clisp.org>
6018
6019         Fix test dependencies.
6020         * modules/xstrtol-tests (Depends-on): Add inttypes.
6021         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
6022
6023 2010-01-25 Pádraig Brady <P@draigBrady.com>
6024
6025         syntax-check: detect incorrect boolean macro values in config.h
6026         * modules/maintainer-makefile (configure.ac): Parameterize the location
6027         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
6028         The logic is from Eric Blake and the location indicated by Jim Meyering.
6029         Note the more natural CONFIG_HEADER name is prohibited by automake
6030         for backwards compatibility reasons.
6031         * top/maint.mk (sc_Wundef_boolean): New rule.
6032
6033 2010-01-25  Jim Meyering  <meyering@redhat.com>
6034
6035         bootstrap: detect MacOS 10.6's shasum, too
6036         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
6037         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
6038
6039 2010-01-23  Jim Meyering  <meyering@redhat.com>
6040
6041         xstrtoll: new module
6042         * modules/xstrtoll: New file.
6043         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
6044         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
6045         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
6046         ./configure fails if you use this module and lack "long long".
6047         * modules/xstrtoll-tests: New module.
6048         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
6049         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
6050         new init.sh-based test framework.
6051
6052 2010-01-24  Bruno Haible  <bruno@clisp.org>
6053
6054         Tests for module 'yn'.
6055         * modules/yn-tests: New file.
6056         * tests/test-yn.c: New file.
6057
6058         Tests for module 'y1'.
6059         * modules/y1-tests: New file.
6060         * tests/test-y1.c: New file.
6061
6062         Tests for module 'y0'.
6063         * modules/y0-tests: New file.
6064         * tests/test-y0.c: New file.
6065
6066         Tests for module 'tanh'.
6067         * modules/tanh-tests: New file.
6068         * tests/test-tanh.c: New file.
6069
6070         Tests for module 'tan'.
6071         * modules/tan-tests: New file.
6072         * tests/test-tan.c: New file.
6073
6074         Tests for module 'sqrt'.
6075         * modules/sqrt-tests: New file.
6076         * tests/test-sqrt.c: New file.
6077
6078         Tests for module 'sinh'.
6079         * modules/sinh-tests: New file.
6080         * tests/test-sinh.c: New file.
6081
6082         Tests for module 'sin'.
6083         * modules/sin-tests: New file.
6084         * tests/test-sin.c: New file.
6085
6086         Tests for module 'rint'.
6087         * modules/rint-tests: New file.
6088         * tests/test-rint.c: New file.
6089
6090         Tests for module 'remainder'.
6091         * modules/remainder-tests: New file.
6092         * tests/test-remainder.c: New file.
6093
6094         Tests for module 'pow'.
6095         * modules/pow-tests: New file.
6096         * tests/test-pow.c: New file.
6097
6098         Tests for module 'nextafter'.
6099         * modules/nextafter-tests: New file.
6100         * tests/test-nextafter.c: New file.
6101
6102         Tests for module 'modf'.
6103         * modules/modf-tests: New file.
6104         * tests/test-modf.c: New file.
6105
6106         Tests for module 'logb'.
6107         * modules/logb-tests: New file.
6108         * tests/test-logb.c: New file.
6109
6110         Tests for module 'log1p'.
6111         * modules/log1p-tests: New file.
6112         * tests/test-log1p.c: New file.
6113
6114         Tests for module 'log10'.
6115         * modules/log10-tests: New file.
6116         * tests/test-log10.c: New file.
6117
6118         Tests for module 'log'.
6119         * modules/log-tests: New file.
6120         * tests/test-log.c: New file.
6121
6122         Tests for module 'lgamma'.
6123         * modules/lgamma-tests: New file.
6124         * tests/test-lgamma.c: New file.
6125
6126         Tests for module 'ldexp'.
6127         * modules/ldexp-tests: New file.
6128         * tests/test-ldexp.c: New file.
6129
6130         Tests for module 'jn'.
6131         * modules/jn-tests: New file.
6132         * tests/test-jn.c: New file.
6133
6134         Tests for module 'j1'.
6135         * modules/j1-tests: New file.
6136         * tests/test-j1.c: New file.
6137
6138         Tests for module 'j0'.
6139         * modules/j0-tests: New file.
6140         * tests/test-j0.c: New file.
6141
6142         Tests for module 'hypot'.
6143         * modules/hypot-tests: New file.
6144         * tests/test-hypot.c: New file.
6145
6146         Tests for module 'fmod'.
6147         * modules/fmod-tests: New file.
6148         * tests/test-fmod.c: New file.
6149
6150         Tests for module 'fabs'.
6151         * modules/fabs-tests: New file.
6152         * tests/test-fabs.c: New file.
6153
6154         Tests for module 'exp'.
6155         * modules/exp-tests: New file.
6156         * tests/test-exp.c: New file.
6157
6158         Tests for module 'erfc'.
6159         * modules/erfc-tests: New file.
6160         * tests/test-erfc.c: New file.
6161
6162         Tests for module 'erf'.
6163         * modules/erf-tests: New file.
6164         * tests/test-erf.c: New file.
6165
6166         Tests for module 'cosh'.
6167         * modules/cosh-tests: New file.
6168         * tests/test-cosh.c: New file.
6169
6170         Tests for module 'cos'.
6171         * modules/cos-tests: New file.
6172         * tests/test-cos.c: New file.
6173
6174         Tests for module 'copysign'.
6175         * modules/copysign-tests: New file.
6176         * tests/test-copysign.c: New file.
6177
6178         Tests for module 'cbrt'.
6179         * modules/cbrt-tests: New file.
6180         * tests/test-cbrt.c: New file.
6181
6182         Tests for module 'atan2'.
6183         * modules/atan2-tests: New file.
6184         * tests/test-atan2.c: New file.
6185
6186         Tests for module 'atan'.
6187         * modules/atan-tests: New file.
6188         * tests/test-atan.c: New file.
6189
6190         Tests for module 'asin'.
6191         * modules/asin-tests: New file.
6192         * tests/test-asin.c: New file.
6193
6194         Tests for module 'acos'.
6195         * modules/acos-tests: New file.
6196         * tests/test-acos.c: New file.
6197
6198 2010-01-24  Bruno Haible  <bruno@clisp.org>
6199
6200         Fix tests for common <math.h> functions.
6201         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
6202         code snippet that references the function pointer, rather than merely
6203         calling the function. Substitute the FUNC_LIBM variable.
6204         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
6205         * modules/acos (configure.ac): Likewise.
6206         * modules/asin (configure.ac): Likewise.
6207         * modules/atan (configure.ac): Likewise.
6208         * modules/atan2 (configure.ac): Likewise.
6209         * modules/cbrt (configure.ac): Likewise.
6210         * modules/copysign (configure.ac): Likewise.
6211         * modules/cos (configure.ac): Likewise.
6212         * modules/cosh (configure.ac): Likewise.
6213         * modules/erf (configure.ac): Likewise.
6214         * modules/erfc (configure.ac): Likewise.
6215         * modules/exp (configure.ac): Likewise.
6216         * modules/fabs (configure.ac): Likewise.
6217         * modules/fmod (configure.ac): Likewise.
6218         * modules/hypot (configure.ac): Likewise.
6219         * modules/j0 (configure.ac): Likewise.
6220         * modules/j1 (configure.ac): Likewise.
6221         * modules/jn (configure.ac): Likewise.
6222         * modules/ldexp (configure.ac): Likewise.
6223         * modules/lgamma (configure.ac): Likewise.
6224         * modules/log (configure.ac): Likewise.
6225         * modules/log10 (configure.ac): Likewise.
6226         * modules/log1p (configure.ac): Likewise.
6227         * modules/logb (configure.ac): Likewise.
6228         * modules/modf (configure.ac): Likewise.
6229         * modules/nextafter (configure.ac): Likewise.
6230         * modules/pow (configure.ac): Likewise.
6231         * modules/remainder (configure.ac): Likewise.
6232         * modules/rint (configure.ac): Likewise.
6233         * modules/sin (configure.ac): Likewise.
6234         * modules/sinh (configure.ac): Likewise.
6235         * modules/tan (configure.ac): Likewise.
6236         * modules/tanh (configure.ac): Likewise.
6237         * modules/y0 (configure.ac): Likewise.
6238         * modules/y1 (configure.ac): Likewise.
6239         * modules/yn (configure.ac): Likewise.
6240
6241 2010-01-24  Bruno Haible  <bruno@clisp.org>
6242
6243         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
6244         * tests/test-acosl.c (x): New variable.
6245         (main): Store argument in x and fetch it from x.
6246         * tests/test-asinl.c (x): New variable.
6247         (main): Store argument in x and fetch it from x.
6248         * tests/test-atanl.c (x): New variable.
6249         (main): Store argument in x and fetch it from x.
6250         * tests/test-cosl.c (x): New variable.
6251         (main): Store argument in x and fetch it from x.
6252         * tests/test-expl.c (x): New variable.
6253         (main): Store argument in x and fetch it from x.
6254         * tests/test-logl.c (x): New variable.
6255         (main): Store argument in x and fetch it from x.
6256         * tests/test-sinl.c (x): New variable.
6257         (main): Store argument in x and fetch it from x.
6258         * tests/test-sqrtl.c (x): New variable.
6259         (main): Store argument in x and fetch it from x.
6260         * tests/test-tanl.c (x): New variable.
6261         (main): Store argument in x and fetch it from x.
6262
6263 2010-01-24  Bruno Haible  <bruno@clisp.org>
6264
6265         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
6266         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
6267         assignments to the initial TESTS_ENVIRONMENT.
6268         * doc/gnulib.texi (Unit test modules): Document it.
6269         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
6270         TESTS_ENVIRONMENT.
6271         * modules/btowc-tests (Makefile.am): Likewise.
6272         * modules/c-stack-tests (Makefile.am): Likewise.
6273         * modules/c-strcase-tests (Makefile.am): Likewise.
6274         * modules/copy-file-tests (Makefile.am): Likewise.
6275         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6276         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6277         * modules/mbrtowc-tests (Makefile.am): Likewise.
6278         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6279         * modules/mbscasestr-tests (Makefile.am): Likewise.
6280         * modules/mbschr-tests (Makefile.am): Likewise.
6281         * modules/mbscspn-tests (Makefile.am): Likewise.
6282         * modules/mbsinit-tests (Makefile.am): Likewise.
6283         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6284         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6285         * modules/mbspbrk-tests (Makefile.am): Likewise.
6286         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6287         * modules/mbsrchr-tests (Makefile.am): Likewise.
6288         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6289         * modules/mbsspn-tests (Makefile.am): Likewise.
6290         * modules/mbsstr-tests (Makefile.am): Likewise.
6291         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6292         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6293         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6294         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6295         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6296         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6297         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6298         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6299         * modules/wcrtomb-tests (Makefile.am): Likewise.
6300         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6301         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6302         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
6303         assignments from TESTS_ENVIRONMENT.
6304         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
6305         augmentation.
6306         * modules/argp-version-etc-tests (Makefile.am): Likewise.
6307         * modules/atexit-tests (Makefile.am): Likewise.
6308         * modules/binary-io-tests (Makefile.am): Likewise.
6309         * modules/closein-tests (Makefile.am): Likewise.
6310         * modules/dprintf-posix-tests (Makefile.am): Likewise.
6311         * modules/exclude-tests (Makefile.am): Likewise.
6312         * modules/fflush-tests (Makefile.am): Likewise.
6313         * modules/fpending-tests (Makefile.am): Likewise.
6314         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6315         * modules/freadahead-tests (Makefile.am): Likewise.
6316         * modules/freadptr-tests (Makefile.am): Likewise.
6317         * modules/freadseek-tests (Makefile.am): Likewise.
6318         * modules/fseek-tests (Makefile.am): Likewise.
6319         * modules/fseeko-tests (Makefile.am): Likewise.
6320         * modules/ftell-tests (Makefile.am): Likewise.
6321         * modules/ftello-tests (Makefile.am): Likewise.
6322         * modules/idpriv-drop-tests (Makefile.am): Likewise.
6323         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
6324         * modules/lseek-tests (Makefile.am): Likewise.
6325         * modules/parse-duration-tests (Makefile.am): Likewise.
6326         * modules/perror-tests (Makefile.am): Likewise.
6327         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
6328         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
6329         * modules/pipe-tests (Makefile.am): Likewise.
6330         * modules/pread-tests (Makefile.am): Likewise.
6331         * modules/printf-posix-tests (Makefile.am): Likewise.
6332         * modules/select-tests (Makefile.am): Likewise.
6333         * modules/sigpipe-tests (Makefile.am): Likewise.
6334         * modules/tsearch-tests (Makefile.am): Likewise.
6335         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6336         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6337         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6338         * modules/uniwidth/width-tests (Makefile.am): Likewise.
6339         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
6340         * modules/version-etc-tests (Makefile.am): Likewise.
6341         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6342         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6343         * modules/xalloc-die-tests (Makefile.am): Likewise.
6344         * modules/xprintf-posix-tests (Makefile.am): Likewise.
6345         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6346         * modules/xstrtol-tests (Makefile.am): Likewise.
6347         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6348         * modules/yesno-tests (Makefile.am): Likewise.
6349         Suggested by Jim Meyering.
6350
6351 2010-01-24  Bruno Haible  <bruno@clisp.org>
6352
6353         More documentation.
6354         * doc/gnulib.texi (Writing modules): New chapter.
6355         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
6356         the new chapter.
6357
6358 2010-01-24  Jim Meyering  <meyering@redhat.com>
6359
6360         maint.mk: do not prepend "./" after filtering
6361         * top/maint.mk (_prepend_srcdir_prefix): New variable
6362         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
6363         "./" when $(srcdir) is ".".
6364
6365         define STREQ(a,b) consistently, removing useless parentheses
6366         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
6367         since the only risk is that "a" or "b" contains an unparenthesized
6368         comma, but if either did that, STREQ would have 3 or more arguments.
6369         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
6370         * lib/fts.c (STREQ): Remove unnecessary parentheses.
6371         * lib/hash-triple.c (STREQ): Likewise.
6372         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
6373         * lib/getugroups.c (STREQ): Likewise.
6374
6375 2010-01-23  Jim Meyering  <meyering@redhat.com>
6376
6377         maint.mk: fix syntax-check in a non-srcdir build directory
6378         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
6379         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
6380
6381 2010-01-22  Jim Meyering  <meyering@redhat.com>
6382
6383         userspec: add unit tests
6384         * tests/test-userspec.c: New file.
6385         * modules/userspec-tests: Likewise.
6386
6387 2010-01-21  Jim Meyering  <meyering@redhat.com>
6388
6389         maint.mk: handle source file names containing "." robustly
6390         * top/maint.mk (_dot_escaped_srcdir): Define.
6391         (VC_LIST): Use it in LHS of sed substitution.
6392
6393 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
6394
6395         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
6396         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
6397         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
6398         from a non-srcdir build.
6399
6400 2010-01-20  Eric Blake  <ebb9@byu.net>
6401
6402         warn-on-use: use instead of link-warning
6403         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
6404         * modules/unistd (Depends-on, Makefile.am): Likewise.
6405         * modules/arpa_inet (Depends-on): Replace link-warning with
6406         warn-on-use.
6407         (Makefile.am): Update rules accordingly.
6408         * modules/ctype (Depends-on, Makefile.am): Likewise.
6409         * modules/dirent (Depends-on, Makefile.am): Likewise.
6410         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
6411         * modules/inttypes (Depends-on, Makefile.am): Likewise.
6412         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6413         * modules/locale (Depends-on, Makefile.am): Likewise.
6414         * modules/math (Depends-on, Makefile.am): Likewise.
6415         * modules/search (Depends-on, Makefile.am): Likewise.
6416         * modules/signal (Depends-on, Makefile.am): Likewise.
6417         * modules/spawn (Depends-on, Makefile.am): Likewise.
6418         * modules/stdlib (Depends-on, Makefile.am): Likewise.
6419         * modules/string (Depends-on, Makefile.am): Likewise.
6420         * modules/strings (Depends-on, Makefile.am): Likewise.
6421         * modules/sys_file (Depends-on, Makefile.am): Likewise.
6422         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
6423         * modules/sys_select (Depends-on, Makefile.am): Likewise.
6424         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
6425         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
6426         * modules/sys_times (Depends-on, Makefile.am): Likewise.
6427         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
6428         * modules/wchar (Depends-on, Makefile.am): Likewise.
6429         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
6430         should be poisoned.
6431         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
6432         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
6433         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
6434         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6435         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6436         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6437         * m4/math_h.m4 (gl_MATH_H): Likewise.
6438         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6439         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6440         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6441         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6442         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6443         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6444         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6445         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
6446         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6448         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6449         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6450         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6451         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6452         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6453         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6454         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
6455         GL_LINK_WARNING.
6456         * lib/ctype.in.h: Likewise.
6457         * lib/dirent.in.h: Likewise.
6458         * lib/fcntl.in.h: Likewise.
6459         * lib/inttypes.in.h: Likewise.
6460         * lib/langinfo.in.h: Likewise.
6461         * lib/locale.in.h: Likewise.
6462         * lib/math.in.h: Likewise.
6463         * lib/search.in.h: Likewise.
6464         * lib/signal.in.h: Likewise.
6465         * lib/spawn.in.h: Likewise.
6466         * lib/stdio.in.h: Likewise.
6467         * lib/stdlib.in.h: Likewise.
6468         * lib/string.in.h: Likewise.
6469         * lib/strings.in.h: Likewise.
6470         * lib/sys_file.in.h: Likewise.
6471         * lib/sys_ioctl.in.h: Likewise.
6472         * lib/sys_select.in.h: Likewise.
6473         * lib/sys_socket.in.h: Likewise.
6474         * lib/sys_stat.in.h: Likewise.
6475         * lib/sys_times.in.h: Likewise.
6476         * lib/sys_utsname.in.h: Likewise.
6477         * lib/unistd.in.h: Likewise.
6478         * lib/wchar.in.h: Likewise.
6479
6480 2010-01-20  Bruno Haible  <bruno@clisp.org>
6481
6482         Avoid duplicate -lm.
6483         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
6484         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
6485         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
6486         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
6487         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
6488         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
6489         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6490         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6491         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6492         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6493         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6494         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6495         Reported by Paolo Bonzini.
6496
6497 2010-01-19  Bruno Haible  <bruno@clisp.org>
6498
6499         langinfo, nl_langinfo: Relicense under LGPLv2+.
6500         * modules/langinfo (License): Change to LGPLv2+.
6501         * modules/nl_langinfo (License): Likewise.
6502         Patch by David Lutterkort <lutter@redhat.com>.
6503
6504 2010-01-19  Bruno Haible  <bruno@clisp.org>
6505
6506         Avoid compilation error with cc on OSF/1 5.1.
6507         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6508         statement, not before.
6509         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6510
6511 2010-01-18  Bruno Haible  <bruno@clisp.org>
6512
6513         Avoid a link error due to the __printf__ symbol.
6514         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6515         and 2.6.x.
6516         (__format__, __printf__): Remove definitions.
6517         * lib/argp-fmtstream.h: Likewise.
6518         * lib/argp.h: Likewise.
6519         * lib/error.h: Likewise.
6520         * lib/vasnprintf.h: Likewise.
6521         * lib/xprintf.h: Likewise.
6522         * lib/xvasprintf.h: Likewise.
6523         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6524
6525 2010-01-18  Bruno Haible  <bruno@clisp.org>
6526
6527         Tests for module 'tanl'.
6528         * modules/tanl-tests: New file.
6529         * tests/test-tanl.c: New file.
6530
6531         Tests for module 'sqrtl'.
6532         * modules/sqrtl-tests: New file.
6533         * tests/test-sqrtl.c: New file.
6534
6535         Tests for module 'sinl'.
6536         * modules/sinl-tests: New file.
6537         * tests/test-sinl.c: New file.
6538
6539         Tests for module 'logl'.
6540         * modules/logl-tests: New file.
6541         * tests/test-logl.c: New file.
6542
6543         Tests for module 'expl'.
6544         * modules/expl-tests: New file.
6545         * tests/test-expl.c: New file.
6546
6547         Tests for module 'cosl'.
6548         * modules/cosl-tests: New file.
6549         * tests/test-cosl.c: New file.
6550
6551         Tests for module 'atanl'.
6552         * modules/atanl-tests: New file.
6553         * tests/test-atanl.c: New file.
6554
6555         Tests for module 'asinl'.
6556         * modules/asinl-tests: New file.
6557         * tests/test-asinl.c: New file.
6558
6559         Tests for module 'acosl'.
6560         * modules/acosl-tests: New file.
6561         * tests/test-acosl.c: New file.
6562
6563         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6564         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6565         tanl): Use the standard gnulib idiom.
6566         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6567         * lib/sinl.c: Likewise.
6568         * lib/tanl.c: Don't include trigl.c.
6569         (kernel_tanl): Make static.
6570         * lib/sincosl.c: Include trigl.h first.
6571         * lib/trigl.c: Likewise.
6572         * m4/acosl.m4: New file.
6573         * m4/asinl.m4: New file.
6574         * m4/atanl.m4: New file.
6575         * m4/cosl.m4: New file.
6576         * m4/expl.m4: New file.
6577         * m4/logl.m4: New file.
6578         * m4/sinl.m4: New file.
6579         * m4/sqrtl.m4: New file.
6580         * m4/tanl.m4: New file.
6581         * m4/mathl.m4: Remove file.
6582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6583         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6584         Don't initialize GNULIB_MATHL.
6585         * modules/acosl: New file.
6586         * modules/asinl: New file.
6587         * modules/atanl: New file.
6588         * modules/cosl: New file.
6589         * modules/expl: New file.
6590         * modules/logl: New file.
6591         * modules/sinl: New file.
6592         * modules/sqrtl: New file.
6593         * modules/tanl: New file.
6594         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6595         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6596         substitute GNULIB_MATHL.
6597         * modules/mathl: Rewritten.
6598         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6599         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6600         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6601         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6602         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6603         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6604         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6605         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6606         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6607
6608 2010-01-18  Bruno Haible  <bruno@clisp.org>
6609
6610         sqrt: Make gl_FUNC_SQRT requirable.
6611         * m4/sqrt.m4: New file.
6612         * modules/sqrt (Files): Add it.
6613         (configure.ac): Invoke gl_FUNC_SQRT.
6614
6615 2010-01-18  Bruno Haible  <bruno@clisp.org>
6616
6617         New modules for common <math.h> functions.
6618         * m4/mathfunc.m4: New file.
6619         * modules/acos: New file.
6620         * modules/asin: New file.
6621         * modules/atan: New file.
6622         * modules/atan2: New file.
6623         * modules/cbrt: New file.
6624         * modules/copysign: New file.
6625         * modules/cos: New file.
6626         * modules/cosh: New file.
6627         * modules/erf: New file.
6628         * modules/erfc: New file.
6629         * modules/exp: New file.
6630         * modules/fabs: New file.
6631         * modules/fmod: New file.
6632         * modules/hypot: New file.
6633         * modules/j0: New file.
6634         * modules/j1: New file.
6635         * modules/jn: New file.
6636         * modules/ldexp: New file.
6637         * modules/lgamma: New file.
6638         * modules/log: New file.
6639         * modules/log10: New file.
6640         * modules/log1p: New file.
6641         * modules/logb: New file.
6642         * modules/modf: New file.
6643         * modules/nextafter: New file.
6644         * modules/pow: New file.
6645         * modules/remainder: New file.
6646         * modules/rint: New file.
6647         * modules/sin: New file.
6648         * modules/sinh: New file.
6649         * modules/sqrt: New file.
6650         * modules/tan: New file.
6651         * modules/tanh: New file.
6652         * modules/y0: New file.
6653         * modules/y1: New file.
6654         * modules/yn: New file.
6655         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6656         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6657         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6658         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6659         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6660         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6661         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6662         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6663         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6664         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6665         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6666         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6667         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6668         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6669         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6670         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6671         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6672         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6673         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6674         * doc/posix-functions/log.texi: Mention the 'log' module.
6675         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6676         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6677         * doc/posix-functions/logb.texi: Mention the 'logb' module.
6678         * doc/posix-functions/modf.texi: Mention the 'modf' module.
6679         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
6680         * doc/posix-functions/pow.texi: Mention the 'pow' module.
6681         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
6682         * doc/posix-functions/rint.texi: Mention the 'rint' module.
6683         * doc/posix-functions/sin.texi: Mention the 'sin' module.
6684         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
6685         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
6686         * doc/posix-functions/tan.texi: Mention the 'tan' module.
6687         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
6688         * doc/posix-functions/y0.texi: Mention the 'y0' module.
6689         * doc/posix-functions/y1.texi: Mention the 'y1' module.
6690         * doc/posix-functions/yn.texi: Mention the 'yn' module.
6691
6692 2010-01-18  Jim Meyering  <meyering@redhat.com>
6693
6694         ignore-value: relax license to LGPLv2+
6695         * modules/ignore-value (License): Relax to LGPLv2+.
6696
6697         getdate: don't leak when TZ contains two or more '"'s
6698         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
6699         double quote in TZ after the first one.
6700
6701         readtokens: do not leak internal token_lengths buffer
6702         * lib/readtokens.c (readtokens): Free the local, lengths,
6703         when the supplied "token_lengths" parameter is NULL.
6704
6705 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6706
6707         Fix a couple of missing LIBTHREAD link failures on AIX.
6708         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
6709         $(LIBTHREAD).
6710         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
6711
6712         Link test-poll against INET_PTON_LIB.
6713         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
6714         for inet_pton on Solaris 10.
6715
6716 2010-01-17  Bruno Haible  <bruno@clisp.org>
6717
6718         unistdio/*-sprintf: Fix typo in module description.
6719         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
6720         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
6721         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
6722         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
6723         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
6724         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
6725         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
6726         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6727
6728 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6729
6730         gnulib-tool: fix filelist for AIX, HP-UX ksh.
6731         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
6732         variables in shell case patterns, for AIX and HP-UX ksh.
6733
6734         Split large sed scripts, for HP-UX sed.
6735         * modules/stdio: Split sed scripts around 50 sed commands,
6736         to avoid HP-UX limit of 99 commands, in the near future.
6737         * modules/string: Likewise.
6738         * modules/unistd: Likewise.
6739
6740         gnulib-tool: avoid writing in the current directory.
6741         * gnulib-tool (func_emit_lib_Makefile_am)
6742         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
6743         not in the current directory, so concurrent gnulib-tool
6744         instances do not interfere.
6745
6746 2010-01-16  Jim Meyering  <meyering@redhat.com>
6747
6748         doc: update users.txt
6749         * users.txt: Add grep.
6750         (diffutils, gzip): Update URLs.
6751
6752 2010-01-12  Bruno Haible  <bruno@clisp.org>
6753
6754         posix_spawn: Avoid test failure on Cygwin.
6755         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
6756         characters.
6757         Reported by Simon Josefsson.
6758
6759 2010-01-12  Bruno Haible  <bruno@clisp.org>
6760
6761         * tests/test-cond.c (main): When skipping the test, show the reason.
6762
6763 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6764
6765         * lib/striconv.c (str_cd_iconv): Avoid if before free.
6766
6767 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6768
6769         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
6770         VC_LIST_ALWAYS_EXCLUDE_REGEX.
6771
6772 2010-01-12  Eric Blake  <ebb9@byu.net>
6773
6774         build: guarantee AS_VAR_IF
6775         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
6776         (gl_AS_VAR_IF): Move...
6777         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
6778         Reported by Simon Josefsson.
6779
6780 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6781
6782         * lib/stdio.in.h: Fix typo.
6783
6784 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6785
6786         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
6787         libgpg-error.
6788
6789 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6790
6791         * tests/test-xalloc-die.sh: Use $EXEEXT.
6792
6793 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6794             Bruno Haible  <bruno@clisp.org>
6795
6796         getlogin, getlogin_r: Avoid test failure.
6797         * tests/test-getlogin.c: Include <stdio.h>.
6798         (main): Skip the test when the function fails because stdin is not a
6799         tty.
6800         * tests/test-getlogin_r.c: Include <stdio.h>.
6801         (main): Skip the test when the function fails because stdin is not a
6802         tty.
6803
6804 2010-01-11  Eric Blake  <ebb9@byu.net>
6805
6806         tests: avoid more large file warnings
6807         * tests/test-fflush.c: Avoid warning about ftell use.
6808         * tests/test-fseek.c: Avoid warning about fseek use.
6809
6810 2010-01-10  Bruno Haible  <bruno@clisp.org>
6811
6812         nproc: Work better on Linux when /proc and /sys are not mounted.
6813         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
6814         as lower bound when, on glibc/Linux systems,
6815         sysconf (_SC_NPROCESSORS_CONF) returns 1.
6816         Suggested by Pádraig Brady <P@draigbrady.com>.
6817         Reported by Dmitry V. Levin <ldv@altlinux.org>.
6818
6819         nproc: Refactor.
6820         * lib/nproc.c (num_processors_via_affinity_mask): New function,
6821         extracted from num_processors.
6822         (num_processors): Call it.
6823
6824 2010-01-11  Jim Meyering  <meyering@redhat.com>
6825
6826         utimecmp: avoid new warning from upcoming gcc-4.5.0
6827         * lib/utimecmp.c (BILLION): Define using #define rather than an
6828         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
6829
6830 2010-01-11  Eric Blake  <ebb9@byu.net>
6831
6832         math: add portability warnings for classification macros
6833         * modules/math (Depends-on): Add warn-on-use.
6834         (Makefile.am): Provide new substitutions.
6835         * m4/math_h.m4 (gl_MATH_H): Require inline.
6836         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
6837         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
6838         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
6839         implement warnings.
6840
6841         unistd: warn on use of environ without module
6842         * modules/unistd (Depends-on): Add warn-on-use.
6843         (Makefile.am): Provide new substitutions.
6844         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
6845         * lib/unistd.in.h (environ): Wrap with a warning helper function.
6846
6847         stdio: warn on suspicious uses
6848         * modules/stdio (Depends-on): Add warn-on-use.
6849         (Makefile.am): Provide new substitutions.
6850         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
6851         fseeko.
6852         * lib/stdio.in.h (gets): Always warn on use.
6853         (fseek, ftell): Adjust when warnings are issued, and honor
6854         _GL_NO_LARGE_FILES as a way to silence the warning.
6855         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
6856         any warning about large file offsets.
6857         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
6858         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
6859         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
6860         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
6861         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
6862         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
6863         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
6864         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
6865
6866         warn-on-use: new module
6867         * modules/warn-on-use: New file.
6868         * build-aux/warn-on-use.h: Likewise.
6869         * m4/warn-on-use.m4: Likewise.
6870         * MODULES.html.sh (Support for building): Mention it.
6871
6872 2010-01-10  Bruno Haible  <bruno@clisp.org>
6873
6874         Tests for module 'unistr/u32-strdup'.
6875         * modules/unistr/u32-strdup-tests: New file.
6876         * tests/unistr/test-u32-strdup.c: New file.
6877
6878         Tests for module 'unistr/u16-strdup'.
6879         * modules/unistr/u16-strdup-tests: New file.
6880         * tests/unistr/test-u16-strdup.c: New file.
6881
6882         Tests for module 'unistr/u8-strdup'.
6883         * modules/unistr/u8-strdup-tests: New file.
6884         * tests/unistr/test-u8-strdup.c: New file.
6885         * tests/unistr/test-strdup.h: New file.
6886
6887         Tests for module 'unistr/u32-strncmp'.
6888         * modules/unistr/u32-strncmp-tests: New file.
6889         * tests/unistr/test-u32-strncmp.c: New file.
6890
6891         Tests for module 'unistr/u16-strncmp'.
6892         * modules/unistr/u16-strncmp-tests: New file.
6893         * tests/unistr/test-u16-strncmp.c: New file.
6894
6895         Tests for module 'unistr/u8-strncmp'.
6896         * modules/unistr/u8-strncmp-tests: New file.
6897         * tests/unistr/test-u8-strncmp.c: New file.
6898         * tests/unistr/test-strncmp.h: New file.
6899
6900         Tests for module 'unistr/u32-strcoll'.
6901         * modules/unistr/u32-strcoll-tests: New file.
6902         * tests/unistr/test-u32-strcoll.c: New file.
6903
6904         Tests for module 'unistr/u16-strcoll'.
6905         * modules/unistr/u16-strcoll-tests: New file.
6906         * tests/unistr/test-u16-strcoll.c: New file.
6907
6908         Tests for module 'unistr/u8-strcoll'.
6909         * modules/unistr/u8-strcoll-tests: New file.
6910         * tests/unistr/test-u8-strcoll.c: New file.
6911
6912         Tests for module 'unistr/u32-strcmp'.
6913         * modules/unistr/u32-strcmp-tests: New file.
6914         * tests/unistr/test-u32-strcmp.c: New file.
6915         * tests/unistr/test-u32-strcmp.h: New file.
6916
6917         Tests for module 'unistr/u16-strcmp'.
6918         * modules/unistr/u16-strcmp-tests: New file.
6919         * tests/unistr/test-u16-strcmp.c: New file.
6920         * tests/unistr/test-u16-strcmp.h: New file.
6921
6922         Tests for module 'unistr/u8-strcmp'.
6923         * modules/unistr/u8-strcmp-tests: New file.
6924         * tests/unistr/test-u8-strcmp.c: New file.
6925         * tests/unistr/test-u8-strcmp.h: New file.
6926         * tests/unistr/test-strcmp.h: New file.
6927
6928         Tests for module 'unistr/u32-strncat'.
6929         * modules/unistr/u32-strncat-tests: New file.
6930         * tests/unistr/test-u32-strncat.c: New file.
6931
6932         Tests for module 'unistr/u16-strncat'.
6933         * modules/unistr/u16-strncat-tests: New file.
6934         * tests/unistr/test-u16-strncat.c: New file.
6935
6936         Tests for module 'unistr/u8-strncat'.
6937         * modules/unistr/u8-strncat-tests: New file.
6938         * tests/unistr/test-u8-strncat.c: New file.
6939         * tests/unistr/test-strncat.h: New file.
6940
6941         Tests for module 'unistr/u32-strcat'.
6942         * modules/unistr/u32-strcat-tests: New file.
6943         * tests/unistr/test-u32-strcat.c: New file.
6944
6945         Tests for module 'unistr/u16-strcat'.
6946         * modules/unistr/u16-strcat-tests: New file.
6947         * tests/unistr/test-u16-strcat.c: New file.
6948
6949         Tests for module 'unistr/u8-strcat'.
6950         * modules/unistr/u8-strcat-tests: New file.
6951         * tests/unistr/test-u8-strcat.c: New file.
6952         * tests/unistr/test-strcat.h: New file.
6953
6954         Tests for module 'unistr/u32-stpncpy'.
6955         * modules/unistr/u32-stpncpy-tests: New file.
6956         * tests/unistr/test-u32-stpncpy.c: New file.
6957
6958         Tests for module 'unistr/u16-stpncpy'.
6959         * modules/unistr/u16-stpncpy-tests: New file.
6960         * tests/unistr/test-u16-stpncpy.c: New file.
6961
6962         Tests for module 'unistr/u8-stpncpy'.
6963         * modules/unistr/u8-stpncpy-tests: New file.
6964         * tests/unistr/test-u8-stpncpy.c: New file.
6965         * tests/unistr/test-stpncpy.h: New file.
6966
6967         Tests for module 'unistr/u32-strncpy'.
6968         * modules/unistr/u32-strncpy-tests: New file.
6969         * tests/unistr/test-u32-strncpy.c: New file.
6970
6971         Tests for module 'unistr/u16-strncpy'.
6972         * modules/unistr/u16-strncpy-tests: New file.
6973         * tests/unistr/test-u16-strncpy.c: New file.
6974
6975         Tests for module 'unistr/u8-strncpy'.
6976         * modules/unistr/u8-strncpy-tests: New file.
6977         * tests/unistr/test-u8-strncpy.c: New file.
6978         * tests/unistr/test-strncpy.h: New file.
6979
6980         Tests for module 'unistr/u32-stpcpy'.
6981         * modules/unistr/u32-stpcpy-tests: New file.
6982         * tests/unistr/test-u32-stpcpy.c: New file.
6983
6984         Tests for module 'unistr/u16-stpcpy'.
6985         * modules/unistr/u16-stpcpy-tests: New file.
6986         * tests/unistr/test-u16-stpcpy.c: New file.
6987
6988         Tests for module 'unistr/u8-stpcpy'.
6989         * modules/unistr/u8-stpcpy-tests: New file.
6990         * tests/unistr/test-u8-stpcpy.c: New file.
6991         * tests/unistr/test-stpcpy.h: New file.
6992
6993         Tests for module 'unistr/u32-strcpy'.
6994         * modules/unistr/u32-strcpy-tests: New file.
6995         * tests/unistr/test-u32-strcpy.c: New file.
6996
6997         Tests for module 'unistr/u16-strcpy'.
6998         * modules/unistr/u16-strcpy-tests: New file.
6999         * tests/unistr/test-u16-strcpy.c: New file.
7000
7001         Tests for module 'unistr/u8-strcpy'.
7002         * modules/unistr/u8-strcpy-tests: New file.
7003         * tests/unistr/test-u8-strcpy.c: New file.
7004         * tests/unistr/test-strcpy.h: New file.
7005
7006         Tests for module 'unistr/u32-strnlen'.
7007         * modules/unistr/u32-strnlen-tests: New file.
7008         * tests/unistr/test-u32-strnlen.c: New file.
7009
7010         Tests for module 'unistr/u16-strnlen'.
7011         * modules/unistr/u16-strnlen-tests: New file.
7012         * tests/unistr/test-u16-strnlen.c: New file.
7013
7014         Tests for module 'unistr/u8-strnlen'.
7015         * modules/unistr/u8-strnlen-tests: New file.
7016         * tests/unistr/test-u8-strnlen.c: New file.
7017         * tests/unistr/test-strnlen.h: New file.
7018
7019         Tests for module 'unistr/u32-strlen'.
7020         * modules/unistr/u32-strlen-tests: New file.
7021         * tests/unistr/test-u32-strlen.c: New file.
7022
7023         Tests for module 'unistr/u16-strlen'.
7024         * modules/unistr/u16-strlen-tests: New file.
7025         * tests/unistr/test-u16-strlen.c: New file.
7026
7027         Tests for module 'unistr/u8-strlen'.
7028         * modules/unistr/u8-strlen-tests: New file.
7029         * tests/unistr/test-u8-strlen.c: New file.
7030
7031         Tests for module 'unistr/u32-prev'.
7032         * modules/unistr/u32-prev-tests: New file.
7033         * tests/unistr/test-u32-prev.c: New file.
7034
7035         Tests for module 'unistr/u16-prev'.
7036         * modules/unistr/u16-prev-tests: New file.
7037         * tests/unistr/test-u16-prev.c: New file.
7038
7039         Tests for module 'unistr/u8-prev'.
7040         * modules/unistr/u8-prev-tests: New file.
7041         * tests/unistr/test-u8-prev.c: New file.
7042
7043         Tests for module 'unistr/u32-next'.
7044         * modules/unistr/u32-next-tests: New file.
7045         * tests/unistr/test-u32-next.c: New file.
7046
7047         Tests for module 'unistr/u16-next'.
7048         * modules/unistr/u16-next-tests: New file.
7049         * tests/unistr/test-u16-next.c: New file.
7050
7051         Tests for module 'unistr/u8-next'.
7052         * modules/unistr/u8-next-tests: New file.
7053         * tests/unistr/test-u8-next.c: New file.
7054
7055         Tests for module 'unistr/u32-strmbtouc'.
7056         * modules/unistr/u32-strmbtouc-tests: New file.
7057         * tests/unistr/test-u32-strmbtouc.c: New file.
7058
7059         Tests for module 'unistr/u16-strmbtouc'.
7060         * modules/unistr/u16-strmbtouc-tests: New file.
7061         * tests/unistr/test-u16-strmbtouc.c: New file.
7062
7063         Tests for module 'unistr/u8-strmbtouc'.
7064         * modules/unistr/u8-strmbtouc-tests: New file.
7065         * tests/unistr/test-u8-strmbtouc.c: New file.
7066
7067         Tests for module 'unistr/u32-strmblen'.
7068         * modules/unistr/u32-strmblen-tests: New file.
7069         * tests/unistr/test-u32-strmblen.c: New file.
7070
7071         Tests for module 'unistr/u16-strmblen'.
7072         * modules/unistr/u16-strmblen-tests: New file.
7073         * tests/unistr/test-u16-strmblen.c: New file.
7074
7075         Tests for module 'unistr/u8-strmblen'.
7076         * modules/unistr/u8-strmblen-tests: New file.
7077         * tests/unistr/test-u8-strmblen.c: New file.
7078
7079         Tests for module 'unistr/u32-cpy-alloc'.
7080         * modules/unistr/u32-cpy-alloc-tests: New file.
7081         * tests/unistr/test-u32-cpy-alloc.c: New file.
7082
7083         Tests for module 'unistr/u16-cpy-alloc'.
7084         * modules/unistr/u16-cpy-alloc-tests: New file.
7085         * tests/unistr/test-u16-cpy-alloc.c: New file.
7086
7087         Tests for module 'unistr/u8-cpy-alloc'.
7088         * modules/unistr/u8-cpy-alloc-tests: New file.
7089         * tests/unistr/test-u8-cpy-alloc.c: New file.
7090         * tests/unistr/test-cpy-alloc.h: New file.
7091
7092         Tests for module 'unistr/u32-mbsnlen'.
7093         * modules/unistr/u32-mbsnlen-tests: New file.
7094         * tests/unistr/test-u32-mbsnlen.c: New file.
7095
7096         Tests for module 'unistr/u16-mbsnlen'.
7097         * modules/unistr/u16-mbsnlen-tests: New file.
7098         * tests/unistr/test-u16-mbsnlen.c: New file.
7099
7100         Tests for module 'unistr/u8-mbsnlen'.
7101         * modules/unistr/u8-mbsnlen-tests: New file.
7102         * tests/unistr/test-u8-mbsnlen.c: New file.
7103
7104         Tests for module 'unistr/u32-chr'.
7105         * modules/unistr/u32-chr-tests: New file.
7106         * tests/unistr/test-u32-chr.c: New file.
7107
7108         Tests for module 'unistr/u16-chr'.
7109         * modules/unistr/u16-chr-tests: New file.
7110         * tests/unistr/test-u16-chr.c: New file.
7111
7112         Tests for module 'unistr/u8-chr'.
7113         * modules/unistr/u8-chr-tests: New file.
7114         * tests/unistr/test-u8-chr.c: New file.
7115         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
7116
7117         Tests for module 'unistr/u32-cmp2'.
7118         * modules/unistr/u32-cmp2-tests: New file.
7119         * tests/unistr/test-u32-cmp2.c: New file.
7120
7121         Tests for module 'unistr/u16-cmp2'.
7122         * modules/unistr/u16-cmp2-tests: New file.
7123         * tests/unistr/test-u16-cmp2.c: New file.
7124
7125         Tests for module 'unistr/u8-cmp2'.
7126         * modules/unistr/u8-cmp2-tests: New file.
7127         * tests/unistr/test-u8-cmp2.c: New file.
7128         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
7129
7130         Tests for module 'unistr/u32-cmp'.
7131         * modules/unistr/u32-cmp-tests: New file.
7132         * tests/unistr/test-u32-cmp.c: New file.
7133
7134         Tests for module 'unistr/u16-cmp'.
7135         * modules/unistr/u16-cmp-tests: New file.
7136         * tests/unistr/test-u16-cmp.c: New file.
7137
7138         Tests for module 'unistr/u8-cmp'.
7139         * modules/unistr/u8-cmp-tests: New file.
7140         * tests/unistr/test-u8-cmp.c: New file.
7141         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
7142
7143         Tests for module 'unistr/u32-set'.
7144         * modules/unistr/u32-set-tests: New file.
7145         * tests/unistr/test-u32-set.c: New file.
7146
7147         Tests for module 'unistr/u16-set'.
7148         * modules/unistr/u16-set-tests: New file.
7149         * tests/unistr/test-u16-set.c: New file.
7150
7151         Tests for module 'unistr/u8-set'.
7152         * modules/unistr/u8-set-tests: New file.
7153         * tests/unistr/test-u8-set.c: New file.
7154         * tests/unistr/test-set.h: New file.
7155
7156         Tests for module 'unistr/u32-move'.
7157         * modules/unistr/u32-move-tests: New file.
7158         * tests/unistr/test-u32-move.c: New file.
7159
7160         Tests for module 'unistr/u16-move'.
7161         * modules/unistr/u16-move-tests: New file.
7162         * tests/unistr/test-u16-move.c: New file.
7163
7164         Tests for module 'unistr/u8-move'.
7165         * modules/unistr/u8-move-tests: New file.
7166         * tests/unistr/test-u8-move.c: New file.
7167         * tests/unistr/test-move.h: New file.
7168
7169         Tests for module 'unistr/u32-cpy'.
7170         * modules/unistr/u32-cpy-tests: New file.
7171         * tests/unistr/test-u32-cpy.c: New file.
7172
7173         Tests for module 'unistr/u16-cpy'.
7174         * modules/unistr/u16-cpy-tests: New file.
7175         * tests/unistr/test-u16-cpy.c: New file.
7176
7177         Tests for module 'unistr/u8-cpy'.
7178         * modules/unistr/u8-cpy-tests: New file.
7179         * tests/unistr/test-u8-cpy.c: New file.
7180         * tests/unistr/test-cpy.h: New file.
7181
7182 2010-01-09  Bruno Haible  <bruno@clisp.org>
7183
7184         Tests for module 'unistr/u32-uctomb'.
7185         * modules/unistr/u32-uctomb-tests: New file.
7186         * tests/unistr/test-u32-uctomb.c: New file.
7187
7188         Tests for module 'unistr/u16-uctomb'.
7189         * modules/unistr/u16-uctomb-tests: New file.
7190         * tests/unistr/test-u16-uctomb.c: New file.
7191
7192         Tests for module 'unistr/u8-uctomb'.
7193         * modules/unistr/u8-uctomb-tests: New file.
7194         * tests/unistr/test-u8-uctomb.c: New file.
7195
7196         Tests for module 'unistr/u32-mbtoucr'.
7197         * modules/unistr/u32-mbtoucr-tests: New file.
7198         * tests/unistr/test-u32-mbtoucr.c: New file.
7199
7200         Tests for module 'unistr/u16-mbtoucr'.
7201         * modules/unistr/u16-mbtoucr-tests: New file.
7202         * tests/unistr/test-u16-mbtoucr.c: New file.
7203
7204         Tests for module 'unistr/u8-mbtoucr'.
7205         * modules/unistr/u8-mbtoucr-tests: New file.
7206         * tests/unistr/test-u8-mbtoucr.c: New file.
7207
7208         Tests for module 'unistr/u32-mbtouc'.
7209         * modules/unistr/u32-mbtouc-tests: New file.
7210         * tests/unistr/test-u32-mbtouc.c: New file.
7211
7212         Tests for module 'unistr/u16-mbtouc'.
7213         * modules/unistr/u16-mbtouc-tests: New file.
7214         * tests/unistr/test-u16-mbtouc.c: New file.
7215
7216         Tests for module 'unistr/u8-mbtouc'.
7217         * modules/unistr/u8-mbtouc-tests: New file.
7218         * tests/unistr/test-u8-mbtouc.c: New file.
7219
7220         Tests for module 'unistr/u32-mbtouc-unsafe'.
7221         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
7222         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
7223         * tests/unistr/test-u32-mbtouc.h: New file.
7224
7225         Tests for module 'unistr/u16-mbtouc-unsafe'.
7226         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
7227         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
7228         * tests/unistr/test-u16-mbtouc.h: New file.
7229
7230         Tests for module 'unistr/u8-mbtouc-unsafe'.
7231         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
7232         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
7233         * tests/unistr/test-u8-mbtouc.h: New file.
7234
7235         Tests for module 'unistr/u32-mblen'.
7236         * modules/unistr/u32-mblen-tests: New file.
7237         * tests/unistr/test-u32-mblen.c: New file.
7238
7239         Tests for module 'unistr/u16-mblen'.
7240         * modules/unistr/u16-mblen-tests: New file.
7241         * tests/unistr/test-u16-mblen.c: New file.
7242
7243         Tests for module 'unistr/u8-mblen'.
7244         * modules/unistr/u8-mblen-tests: New file.
7245         * tests/unistr/test-u8-mblen.c: New file.
7246
7247         Tests for module 'unistr/u32-to-u16'.
7248         * modules/unistr/u32-to-u16-tests: New file.
7249         * tests/unistr/test-u32-to-u16.c: New file.
7250
7251         Tests for module 'unistr/u32-to-u8'.
7252         * modules/unistr/u32-to-u8-tests: New file.
7253         * tests/unistr/test-u32-to-u8.c: New file.
7254
7255         Tests for module 'unistr/u16-to-u32'.
7256         * modules/unistr/u16-to-u32-tests: New file.
7257         * tests/unistr/test-u16-to-u32.c: New file.
7258
7259         Tests for module 'unistr/u16-to-u8'.
7260         * modules/unistr/u16-to-u8-tests: New file.
7261         * tests/unistr/test-u16-to-u8.c: New file.
7262
7263         Tests for module 'unistr/u8-to-u32'.
7264         * modules/unistr/u8-to-u32-tests: New file.
7265         * tests/unistr/test-u8-to-u32.c: New file.
7266
7267         Tests for module 'unistr/u8-to-u16'.
7268         * modules/unistr/u8-to-u16-tests: New file.
7269         * tests/unistr/test-u8-to-u16.c: New file.
7270
7271         Tests for module 'unistr/u32-check'.
7272         * modules/unistr/u32-check-tests: New file.
7273         * tests/unistr/test-u32-check.c: New file.
7274
7275         Tests for module 'unistr/u16-check'.
7276         * modules/unistr/u16-check-tests: New file.
7277         * tests/unistr/test-u16-check.c: New file.
7278
7279         Tests for module 'unistr/u8-check'.
7280         * modules/unistr/u8-check-tests: New file.
7281         * tests/unistr/test-u8-check.c: New file.
7282
7283         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
7284         (category_equals): New function.
7285         (main): Add more tests.
7286         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
7287
7288         * tests/unictype/test-bidi_byname.c (main): Add more tests.
7289
7290 2010-01-10  Bruno Haible  <bruno@clisp.org>
7291
7292         unistr/u*-strcoll: Try harder to distinguish different strings.
7293         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
7294         compare s1 and s2 to see if they are different.
7295
7296 2010-01-10  Bruno Haible  <bruno@clisp.org>
7297
7298         unistr/u*-stpncpy: Fix the return value.
7299         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
7300         description of the return value consistent with stpncpy in glibc.
7301         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7302         written non-NUL unit.
7303
7304 2010-01-10  Bruno Haible  <bruno@clisp.org>
7305
7306         unistr/u*-next: Add missing dependencies.
7307         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
7308         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
7309         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
7310
7311 2010-01-10  Bruno Haible  <bruno@clisp.org>
7312
7313         unistr/u8-mbsnlen: Fix return value for incomplete character.
7314         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
7315         u8_mblen.
7316         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
7317         Remove unistr/u8-mblen.
7318         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
7319         u16_mblen.
7320         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
7321         Remove unistr/u16-mblen.
7322
7323 2010-01-10  Bruno Haible  <bruno@clisp.org>
7324
7325         wchar: Fix compilation error when <wchar.h> is used from coreutils.
7326         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
7327         Reported by Brian Gough <bjg@gnu.org> and
7328         Chris Clayton <chris2553@googlemail.com> via
7329         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
7330
7331 2010-01-09  Bruno Haible  <bruno@clisp.org>
7332
7333         unistr/u16-to-u32: Reject invalid input.
7334         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
7335         u16_mbtouc.
7336         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
7337         Remove unistr/u16-mbtouc.
7338
7339         unistr/u16-to-u8: Reject invalid input.
7340         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
7341         u16_mbtouc.
7342         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
7343         Remove unistr/u16-mbtouc.
7344
7345         unistr/u8-to-u32: Reject invalid input.
7346         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
7347         u8_mbtouc.
7348         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
7349         Remove unistr/u8-mbtouc.
7350
7351         unistr/u8-to-u16: Reject invalid input.
7352         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
7353         u8_mbtouc.
7354         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
7355         Remove unistr/u8-mbtouc.
7356
7357 2010-01-09  Bruno Haible  <bruno@clisp.org>
7358
7359         Tests for module 'getlogin'.
7360         * modules/getlogin-tests: New file.
7361         * tests/test-getlogin.c: New file.
7362
7363         New module 'getlogin'.
7364         * lib/unistd.in.h (getlogin): New declaration.
7365         * lib/getlogin.c: New file.
7366         * m4/getlogin.m4: New file.
7367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
7368         HAVE_GETLOGIN.
7369         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
7370         HAVE_GETLOGIN.
7371         * modules/getlogin: New file.
7372         * doc/posix-functions/getlogin.texi: Mention the new module.
7373         Reported by John W. Eaton <jwe@gnu.org>.
7374
7375 2010-01-09  Bruno Haible  <bruno@clisp.org>
7376
7377         getlogin_r: Support for native Windows.
7378         * lib/getlogin_r.c: Include <windows.h>
7379         (getlogin_r): Implement for native Windows.
7380         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
7381         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
7382         via John W. Eaton <jwe@gnu.org>.
7383
7384 2010-01-09  Bruno Haible  <bruno@clisp.org>
7385
7386         getlogin_r: Small fixes.
7387         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
7388         succeeds.
7389         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
7390         before testing whether getlogin_r is declared. No need to set
7391         HAVE_DECL_GETLOGIN_R to 1.
7392         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
7393
7394 2010-01-09  Bruno Haible  <bruno@clisp.org>
7395
7396         * lib/unistd.in.h (getlogin_r): Add comment.
7397
7398 2010-01-09  Bruno Haible  <bruno@clisp.org>
7399
7400         Tests for module 'getlogin_r'.
7401         * modules/getlogin_r-tests: New file.
7402         * tests/test-getlogin_r.c: New file.
7403
7404 2010-01-09  Jim Meyering  <meyering@redhat.com>
7405
7406         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
7407         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
7408         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
7409
7410 2010-01-08  Simon Josefsson  <simon@josefsson.org>
7411
7412         * lib/dup2.c (rpl_dup2): Improve comment.
7413
7414 2010-01-08  Eric Blake  <ebb9@byu.net>
7415
7416         maint.mk: allow packages to add makefile @@ exceptions
7417         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
7418         (sc_makefile_check): Rename...
7419         (sc_makefile_at_at_check): ...to this, and use hook.
7420
7421         dup2: work around mingw bug
7422         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
7423         Reported by Simon Josefsson.
7424
7425 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
7426
7427         glob: Fix C++ compilation.
7428         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
7429         C++.
7430
7431 2010-01-07  Bruno Haible  <bruno@clisp.org>
7432
7433         Fix indentation of wctype.in.h, broken since 2007-01-06.
7434         * lib/wctype.in.h: Fix indentation of preprocessor directives.
7435
7436 2010-01-07  Bruno Haible  <bruno@clisp.org>
7437
7438         mbslen: Avoid collision with system function.
7439         * lib/string.in.h [MirBSD]: Include <wchar.h>.
7440         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
7441         * m4/mbslen.m4: New file.
7442         * modules/mbslen (Files): Add it.
7443         (configure.ac): Invoke gl_MBSLEN.
7444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
7445         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
7446         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
7447         via Ian Beckwith <ianb@erislabs.net>.
7448
7449 2010-01-07  Bruno Haible  <bruno@clisp.org>
7450
7451         dirent: Document the last fix.
7452         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
7453
7454 2010-01-07  Bruno Haible  <bruno@clisp.org>
7455
7456         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
7457         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
7458         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
7459         va_list are defined.
7460         * doc/posix-headers/stdio.texi: Document the bug of missing types.
7461         Reported by Eric Blake.
7462
7463 2010-01-07  Bruno Haible  <bruno@clisp.org>
7464
7465         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
7466         * modules/xlist (Depends-on): Add 'list',
7467         * modules/xoset (Depends-on): Add 'oset'.
7468         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7469
7470 2010-01-07  Bruno Haible  <bruno@clisp.org>
7471
7472         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
7473         * doc/posix-functions/strncasecmp.texi: Likewise.
7474
7475 2010-01-07  Bruno Haible  <bruno@clisp.org>
7476
7477         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
7478
7479 2010-01-07  John W. Eaton  <jwe@octave.org>
7480
7481         wctype: allow C++ use
7482         * lib/wctype.in.h: Add extern "C" block for C++.
7483
7484 2010-01-06  Eric Blake  <ebb9@byu.net>
7485
7486         maint.mk: detect incorrect GFDL usage
7487         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
7488
7489 2010-01-06  Jim Meyering  <meyering@redhat.com>
7490         and Eric Blake  <ebb9@byu.net>
7491
7492         maint.mk: ignore multi-line copyright in NEWS
7493         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7494
7495 2010-01-06  Eric Blake  <ebb9@byu.net>
7496
7497         select: add missing dependency
7498         * modules/select-tests (Depends-on): Move sockets dependency...
7499         * modules/select (Depends-on): ...here.
7500         Reported by Ian Beckwith.
7501
7502         doc: regenerate INSTALL
7503         * doc/INSTALL: Reflect recent autoconf update.
7504         * doc/INSTALL.ISO: Likewise.
7505         * doc/INSTALL.UTF-8: Likewise.
7506
7507         pread: fix compilation on glibc
7508         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7509         Reported by Ralf Wildenhues.
7510
7511         dirent: fix test failure
7512         * lib/dirent.in.h (includes): Guarantee ino_t.
7513         Reported by Ralf Wildenhues.
7514
7515 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7516
7517         linkat, renameat: avoid bad free
7518         * lib/at-func2.c (at_func2): Fix typo.
7519         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7520
7521 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7522
7523         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7524         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7525         to avoid failure of symlink test later.
7526
7527 2010-01-06  Eric Blake  <ebb9@byu.net>
7528
7529         stdio, unistd: guarantee ssize_t
7530         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7531         2008 are exposed when needed.
7532         * lib/stdio.in.h (includes): Likewise.
7533         Reported by Ralf Wildenhues.
7534
7535 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7536
7537         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7538         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7539         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7540
7541 2010-01-06  Jim Meyering  <meyering@redhat.com>
7542
7543         readtokens: this module *does* require xalloc.h
7544         It uses only functions that were omitted by the old syntax-check rule.
7545         * lib/readtokens.c: Include "xalloc.h" once again.
7546         * modules/readtokens (Depends-on): Add xalloc.
7547         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7548
7549 2010-01-05  Eric Blake  <ebb9@byu.net>
7550
7551         maint: support 'make announcement' from a VPATH build
7552         * top/maint.mk (announcement): Look for correct NEWS file.
7553
7554 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7555
7556         utimens (fdutimens): ignore a negative FD, per contract
7557         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7558         when we have a valid file descriptor.  Otherwise, using a brand
7559         new glibc (with just-patched futimens that now fails with EBADF)
7560         would cause this function to fail with ENOSYS.
7561         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7562         See also http://bugzilla.redhat.com/552320.
7563
7564 2010-01-05  Eric Blake  <ebb9@byu.net>
7565
7566         strcase: document what it provides
7567         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7568         gnulib module.
7569         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7570         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7571
7572 2010-01-05  Jim Meyering  <meyering@redhat.com>
7573
7574         maint: remove useless inclusions of "xalloc.h"
7575         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7576         * lib/readtokens.c: Likewise.
7577         * lib/same.c: Likewise.
7578         * modules/getloadavg (Depends-on): Remove xalloc.
7579         * modules/readtokens: Likewise.
7580         * modules/same: Likewise.
7581
7582         maint.mk: include 4 more function names in alloca.h-checking regexp
7583         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7584         regexp.  Before, we would give a false-positive (saying alloca.h
7585         is included unnecessarily) when the only uses involved omitted symbols.
7586
7587         xalloc.h: use consistent formatting
7588         * lib/xalloc.h: Move declarations to start in the first column.
7589
7590 2010-01-05  Eric Blake  <ebb9@byu.net>
7591
7592         mkdir: avoid xalloc
7593         * lib/mkdir.c (includes): Drop unused header.
7594         Reported by John W. Eaton.
7595
7596 2010-01-04  Jim Meyering  <meyering@redhat.com>
7597
7598         nl_langinfo: avoid configure-time syntax error
7599         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7600         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7601         the empty string.  Don't let that provoke a shell syntax error.
7602
7603         regcomp, regexec, fnmatch: avoid array bounds read error
7604         * lib/regcomp.c (build_equiv_class): From glibc:
7605         Use only the low 24 bits of a findidx return value as an index
7606         into the weights array.  Patch by Ulrich Drepper:
7607         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7608         * lib/regexec.c (check_node_accept_bytes): Likewise.
7609         * lib/fnmatch_loop.c (FCT): Likewise.
7610
7611         regcomp: skip collseq lookup when there are no rules
7612         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7613         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7614
7615         regcomp: recognize ill-formed { } expressions
7616         * lib/regcomp.c (parse_dup_op): From glibc:
7617         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7618
7619         regcomp: fix typo in comment
7620         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7621         s/satisfy/satisfies/.
7622
7623         regcomp: sync from glibc: remove dead store
7624         * lib/regcomp.c (duplicate_node_closure): Remove useless
7625         search_duplicated_node call and dead store.
7626
7627         regcomp: sync from glibc; always use nl_langinfo
7628         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7629         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7630         * modules/regex (Depends-on): Add nl_langinfo.
7631
7632 2010-01-04  Eric Blake  <ebb9@byu.net>
7633
7634         fdopendir: fix configure test
7635         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7636
7637 2010-01-01  Bruno Haible  <bruno@clisp.org>
7638
7639         wchar: Remove unused configure check.
7640         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7641
7642 2010-01-01  Eric Blake  <ebb9@byu.net>
7643
7644         headers: make check of system header explicit
7645         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7646         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7647         ourselves.
7648         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7649         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7650         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7651         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7652         internals.
7653         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7654         missing.
7655         Suggested by Bruno Haible.
7656
7657 2010-01-01  Jim Meyering  <meyering@redhat.com>
7658
7659         ChangeLog: tweak to eliminate unnecessary copyright line
7660         * ChangeLog: Remove a copyright line that was mistakenly updated
7661         by today's update-copyright run.  Reported by Eric Blake.
7662
7663         test-update-copyright: don't let envvar setting cause test failure
7664         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7665
7666 2010-01-01  Bruno Haible  <bruno@clisp.org>
7667
7668         localename: Avoid gcc warning.
7669         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7670         function if it is not used.
7671
7672 2010-01-01  Jim Meyering  <meyering@redhat.com>
7673
7674         update nearly all FSF copyright year lists to include 2010
7675         Use the same procedure as for 2009, outlined in
7676         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7677
7678         version-etc: set COPYRIGHT_YEAR to 2010
7679         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
7680
7681 2009-12-31  Eric Blake  <ebb9@byu.net>
7682
7683         doc: correct availability of cygwin 1.5.x getopt
7684         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
7685         variables.
7686         * doc/posix-functions/opterr.texi (opterr): Likewise.
7687         * doc/posix-functions/optind.texi (optind): Likewise.
7688         * doc/posix-functions/optopt.texi (optopt): Likewise.
7689         * doc/posix-functions/tzname.texi (tzname): Likewise.
7690
7691         openat: update maintainer
7692         * modules/openat (Maintainer): Add myself.
7693
7694         utimens: avoid shadowing warning
7695         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
7696         buffers into one, to avoid shadowing, as well as avoiding a
7697         redundant stat.
7698         Reported by Jim Meyering.
7699
7700         test-dup2: avoid compiler warning
7701         * tests/test-dup2.c (is_inheritable): Only define if used.
7702
7703 2010-01-01  Bruno Haible  <bruno@clisp.org>
7704
7705         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
7706         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
7707         defined, use wctomb instead of wcrtomb.
7708
7709 2010-01-01  Bruno Haible  <bruno@clisp.org>
7710
7711         iconv: Reject native Solaris iconv.
7712         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
7713         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
7714
7715 2009-12-31  Bruno Haible  <bruno@clisp.org>
7716
7717         * tests/test-signal.c (main): Remove test of 'SIG'.
7718
7719 2009-12-31  Bruno Haible  <bruno@clisp.org>
7720
7721         spawn: Fix incomplete fix.
7722         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7723         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7724         warnings for GNULIB_POSIXCHECK again.
7725         Reported by Eric Blake.
7726
7727 2009-12-31  Bruno Haible  <bruno@clisp.org>
7728
7729         Avoid namespace pollution on glibc systems.
7730         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
7731         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
7732         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
7733         glibc systems.
7734
7735 2009-12-31  Bruno Haible  <bruno@clisp.org>
7736
7737         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
7738         (gl_REPLACE_WCHAR_H): Turn into a no-op.
7739         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
7740         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7741         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7742         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7743         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7744
7745 2009-12-31  Bruno Haible  <bruno@clisp.org>
7746
7747         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7748         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
7749         afterwards.
7750
7751 2009-12-31  Bruno Haible  <bruno@clisp.org>
7752
7753         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
7754         SYS_UTSNAME_H.
7755
7756 2009-12-31  Bruno Haible  <bruno@clisp.org>
7757
7758         spawn: Fix misapplied patch.
7759         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7760         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7761         warnings for GNULIB_POSIXCHECK.
7762
7763 2009-12-31  Bruno Haible  <bruno@clisp.org>
7764
7765         times: Update after sys_times changed.
7766         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
7767         * modules/times (Files): Add it.
7768         (configure.ac): Invoke gl_FUNC_TIMES.
7769
7770 2009-12-31  Bruno Haible  <bruno@clisp.org>
7771
7772         Use AC_C_INLINE where necessary.
7773         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
7774         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7775         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7776         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7777         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7778         * m4/mbiter.m4 (gl_MBITER): Likewise.
7779         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7780         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7781         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
7782         * modules/u64 (configure.ac): Likewise.
7783
7784 2009-12-31  Bruno Haible  <bruno@clisp.org>
7785
7786         Use AC_C_INLINE instead of module 'inline' where possible.
7787         * modules/inline (Description): Clarify purpose.
7788         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
7789         * modules/count-one-bits (Depends-on): Remove inline.
7790         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
7791         * modules/openat (Depends-on): Remove inline.
7792         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
7793         instead of depending on module 'inline'.
7794         * modules/filevercmp (Depends-on, configure.ac): Likewise.
7795         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
7796         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
7797         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
7798         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
7799         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
7800         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
7801         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
7802         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
7803         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
7804         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
7805         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
7806         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
7807         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
7808         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
7809         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
7810         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
7811         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
7812         Likewise.
7813         * modules/unictype/property-ascii-hex-digit (Depends-on,
7814         configure.ac): Likewise.
7815         * modules/unictype/property-bidi-arabic-digit (Depends-on,
7816         configure.ac): Likewise.
7817         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
7818         configure.ac): Likewise.
7819         * modules/unictype/property-bidi-block-separator (Depends-on,
7820         configure.ac): Likewise.
7821         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
7822         configure.ac): Likewise.
7823         * modules/unictype/property-bidi-common-separator (Depends-on,
7824         configure.ac): Likewise.
7825         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
7826         Likewise.
7827         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
7828         configure.ac): Likewise.
7829         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
7830         configure.ac): Likewise.
7831         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
7832         configure.ac): Likewise.
7833         * modules/unictype/property-bidi-european-digit (Depends-on,
7834         configure.ac): Likewise.
7835         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
7836         configure.ac): Likewise.
7837         * modules/unictype/property-bidi-left-to-right (Depends-on,
7838         configure.ac): Likewise.
7839         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
7840         configure.ac): Likewise.
7841         * modules/unictype/property-bidi-other-neutral (Depends-on,
7842         configure.ac): Likewise.
7843         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
7844         Likewise.
7845         * modules/unictype/property-bidi-segment-separator (Depends-on,
7846         configure.ac): Likewise.
7847         * modules/unictype/property-bidi-whitespace (Depends-on,
7848         configure.ac): Likewise.
7849         * modules/unictype/property-combining (Depends-on, configure.ac):
7850         Likewise.
7851         * modules/unictype/property-composite (Depends-on, configure.ac):
7852         Likewise.
7853         * modules/unictype/property-currency-symbol (Depends-on,
7854         configure.ac): Likewise.
7855         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
7856         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
7857         Likewise.
7858         * modules/unictype/property-default-ignorable-code-point (Depends-on,
7859         configure.ac): Likewise.
7860         * modules/unictype/property-deprecated (Depends-on, configure.ac):
7861         Likewise.
7862         * modules/unictype/property-diacritic (Depends-on, configure.ac):
7863         Likewise.
7864         * modules/unictype/property-extender (Depends-on, configure.ac):
7865         Likewise.
7866         * modules/unictype/property-format-control (Depends-on, configure.ac):
7867         Likewise.
7868         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
7869         Likewise.
7870         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
7871         Likewise.
7872         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
7873         Likewise.
7874         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
7875         Likewise.
7876         * modules/unictype/property-hyphen (Depends-on, configure.ac):
7877         Likewise.
7878         * modules/unictype/property-id-continue (Depends-on, configure.ac):
7879         Likewise.
7880         * modules/unictype/property-id-start (Depends-on, configure.ac):
7881         Likewise.
7882         * modules/unictype/property-ideographic (Depends-on, configure.ac):
7883         Likewise.
7884         * modules/unictype/property-ids-binary-operator (Depends-on,
7885         configure.ac): Likewise.
7886         * modules/unictype/property-ids-trinary-operator (Depends-on,
7887         configure.ac): Likewise.
7888         * modules/unictype/property-ignorable-control (Depends-on,
7889         configure.ac): Likewise.
7890         * modules/unictype/property-iso-control (Depends-on, configure.ac):
7891         Likewise.
7892         * modules/unictype/property-join-control (Depends-on, configure.ac):
7893         Likewise.
7894         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
7895         Likewise.
7896         * modules/unictype/property-line-separator (Depends-on, configure.ac):
7897         Likewise.
7898         * modules/unictype/property-logical-order-exception (Depends-on,
7899         configure.ac): Likewise.
7900         * modules/unictype/property-lowercase (Depends-on, configure.ac):
7901         Likewise.
7902         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
7903         * modules/unictype/property-non-break (Depends-on, configure.ac):
7904         Likewise.
7905         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
7906         Likewise.
7907         * modules/unictype/property-numeric (Depends-on, configure.ac):
7908         Likewise.
7909         * modules/unictype/property-other-alphabetic (Depends-on,
7910         configure.ac): Likewise.
7911         * modules/unictype/property-other-default-ignorable-code-point
7912         (Depends-on, configure.ac): Likewise.
7913         * modules/unictype/property-other-grapheme-extend (Depends-on,
7914         configure.ac): Likewise.
7915         * modules/unictype/property-other-id-continue (Depends-on,
7916         configure.ac): Likewise.
7917         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
7918         Likewise.
7919         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
7920         Likewise.
7921         * modules/unictype/property-other-math (Depends-on, configure.ac):
7922         Likewise.
7923         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
7924         Likewise.
7925         * modules/unictype/property-paired-punctuation (Depends-on,
7926         configure.ac): Likewise.
7927         * modules/unictype/property-paragraph-separator (Depends-on,
7928         configure.ac): Likewise.
7929         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
7930         Likewise.
7931         * modules/unictype/property-pattern-white-space (Depends-on,
7932         configure.ac): Likewise.
7933         * modules/unictype/property-private-use (Depends-on, configure.ac):
7934         Likewise.
7935         * modules/unictype/property-punctuation (Depends-on, configure.ac):
7936         Likewise.
7937         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
7938         Likewise.
7939         * modules/unictype/property-radical (Depends-on, configure.ac):
7940         Likewise.
7941         * modules/unictype/property-sentence-terminal (Depends-on,
7942         configure.ac): Likewise.
7943         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
7944         Likewise.
7945         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
7946         * modules/unictype/property-terminal-punctuation (Depends-on,
7947         configure.ac): Likewise.
7948         * modules/unictype/property-titlecase (Depends-on, configure.ac):
7949         Likewise.
7950         * modules/unictype/property-unassigned-code-value (Depends-on,
7951         configure.ac): Likewise.
7952         * modules/unictype/property-unified-ideograph (Depends-on,
7953         configure.ac): Likewise.
7954         * modules/unictype/property-uppercase (Depends-on, configure.ac):
7955         Likewise.
7956         * modules/unictype/property-variation-selector (Depends-on,
7957         configure.ac): Likewise.
7958         * modules/unictype/property-white-space (Depends-on, configure.ac):
7959         Likewise.
7960         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
7961         Likewise.
7962         * modules/unictype/property-xid-start (Depends-on, configure.ac):
7963         Likewise.
7964         * modules/unictype/property-zero-width (Depends-on, configure.ac):
7965         Likewise.
7966         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
7967         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
7968         Likewise.
7969
7970 2009-12-31  Bruno Haible  <bruno@clisp.org>
7971
7972         Remove unnecessary AC_C_INLINE invocation.
7973         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
7974         since 2009-08-21.
7975
7976 2009-12-31  Jim Meyering  <meyering@redhat.com>
7977
7978         maint.mk: don't require explicit gpg_key_ID in cfg.mk
7979         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
7980         With this change, we can all remove the gpg_key_ID = ... definition
7981         from our respective cfg.mk files.
7982
7983         maint.mk: create announcement template in ~/, not in /tmp
7984         * top/maint.mk (emit_upload_commands): Adjust.
7985         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
7986         Remove temporary file, .ci-msg.
7987
7988 2009-12-31  Eric Blake  <ebb9@byu.net>
7989
7990         link-warning: always build headers with link warnings
7991         * modules/arpa_inet (Makefile.am): Always build replacement
7992         header.
7993         * modules/ctype (Makefile.am): Likewise.
7994         * modules/dirent (Makefile.am): Likewise.
7995         * modules/inttypes (Makefile.am): Likewise.
7996         * modules/langinfo (Makefile.am): Likewise.
7997         * modules/locale (Makefile.am): Likewise.
7998         * modules/spawn (Makefile.am): Likewise.
7999         * modules/sys_file (Makefile.am): Likewise.
8000         * modules/sys_ioctl (Makefile.am): Likewise.
8001         * modules/sys_select (Makefile.am): Likewise.
8002         * modules/sys_socket (Makefile.am): Likewise.
8003         * modules/sys_times (Makefile.am): Likewise.
8004         * modules/sys_utsname (Makefile.am): Likewise.
8005         * modules/sys_wait (Makefile.am): Likewise.
8006         * modules/wchar (Makefile.am): Likewise.
8007         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
8008         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
8009         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
8010         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
8011         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
8012         Likewise.
8013         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8014         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8015         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
8016         Likewise.
8017         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
8018         Likewise.
8019         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8020         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
8021         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
8022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8023         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8024         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8025         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8026         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
8027         (gl_WCHAR_H_DEFAULTS): Likewise.
8028
8029 2009-12-31  Eric Blake  <ebb9@byu.net>
8030
8031         signal, spawn: use link warnings
8032         * lib/signal.in.h (sigset_t): Make unconditional.
8033         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
8034         (sigpending, sigprocmask, sigaction): Add link warnings.
8035         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
8036         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
8037         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
8038         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
8039         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
8040         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
8041         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
8042         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
8043         (posix_spawn_file_actions_destroy)
8044         (posix_spawn_file_actions_addopen)
8045         (posix_spawn_file_actions_addclose)
8046         (posix_spawn_file_actions_adddup2): Likewise.
8047         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
8048         * tests/test-signal.c (main): Enhance test.
8049
8050         spawn: improve wrapper support
8051         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
8052         (gl_SPAWN_H_DEFAULTS): New defaults.
8053         * modules/spawn (Makefile.am): Substitute them.
8054         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
8055         Only declare if missing or broken.
8056
8057         sys_times, sys_utsname: use include_next
8058         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
8059         header.
8060         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
8061         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8062         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8063         * modules/sys_times (Depends-on): Add include_next.
8064         (Makefile.am): Substitute additional values.
8065         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8066         * lib/sys_times.in.h (includes): Include native header, if
8067         available.
8068         * lib/sys_utsname.in.h (includes): Likewise.
8069         * tests/test-sys_times.c (main): Enhance test.
8070
8071         fdutimensat: revert prior patch
8072         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
8073         utimens.h.
8074         Reported by Bruno Haible.
8075
8076 2009-12-30  Eric Blake  <ebb9@byu.net>
8077
8078         sys_wait: drop link-warning dependency
8079         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
8080         link-warning efforts.
8081         * lib/sys_wait.in.h: Likewise.
8082
8083         fdutimensat: remove bogus dependency
8084         * modules/fdutimensat (Depends-on): Drop inline.
8085
8086         unistd: fix typo
8087         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
8088
8089 2009-12-30  Bruno Haible  <bruno@clisp.org>
8090
8091         Fix compilation error with Solaris cc.
8092         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
8093         * lib/unicase/u16-is-invariant.c: Likewise.
8094         * lib/unicase/u32-is-invariant.c: Likewise.
8095         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8096
8097 2009-12-30  Bruno Haible  <bruno@clisp.org>
8098
8099         Fix test crash.
8100         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
8101         locales.
8102         Reported by Simon Josefsson <simon@josefsson.org>.
8103
8104 2009-12-30  Bruno Haible  <bruno@clisp.org>
8105
8106         Fix compilation error on most platforms.
8107         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
8108         Reported by Simon Josefsson <simon@josefsson.org>
8109         and Nelson H. F. Beebe <beebe@math.utah.edu>.
8110
8111 2009-12-30  Eric Blake  <ebb9@byu.net>
8112
8113         futimens, utimensat: work around ntfs-3g bug
8114         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
8115         a ctime bug is present, and expand workaround to cover ntfs-3g.
8116         * lib/utimens.c (fdutimens, lutimens): Likewise.
8117         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
8118         (validate_timespec): Adjust return value.
8119         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
8120         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8121         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
8122
8123 2009-12-29  Eric Blake  <ebb9@byu.net>
8124
8125         link-warning: make usage consistent
8126         * modules/ctype (Depends-on): Add link-warning.
8127         (Makefile.am): Update rules accordingly.
8128         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8129         * modules/locale (Depends-on, Makefile.am): Likewise.
8130         * modules/sys_file (Makefile.am): Likewise.
8131         * modules/getopt-posix (Makefile.am): Delete unused link warning
8132         efforts.
8133         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
8134         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
8135         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
8136         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
8137
8138         stdio: remove unused variables
8139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
8140         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
8141         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8142
8143         tests: test more substitute headers
8144         * modules/ctype-tests: New file.
8145         * modules/dirent-tests: Likewise.
8146         * modules/spawn-tests: Likewise.
8147         * modules/sys_file-tests: Likewise.
8148         * modules/sys_ioctl-tests: Likewise.
8149         * modules/sys_wait-tests: Likewise.
8150         * tests/test-ctype.c: Likewise.
8151         * tests/test-dirent.c: Likewise.
8152         * tests/test-spawn.c: Likewise.
8153         * tests/test-sys_file.c: Likewise.
8154         * tests/test-sys_ioctl.c: Likewise.
8155         * tests/test-sys_wait.c: Likewise.
8156         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
8157         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
8158         whether or not flock is in use.
8159
8160         tests: remove License section from module
8161         * modules/arpa_inet-tests: Remove unneeded section.
8162         * modules/byteswap-tests: Likewise.
8163         * modules/ceilf-tests: Likewise.
8164         * modules/ceill-tests: Likewise.
8165         * modules/crypto/des-tests: Likewise.
8166         * modules/crypto/gc-arcfour-tests: Likewise.
8167         * modules/crypto/gc-arctwo-tests: Likewise.
8168         * modules/crypto/gc-des-tests: Likewise.
8169         * modules/crypto/gc-hmac-md5-tests: Likewise.
8170         * modules/crypto/gc-hmac-sha1-tests: Likewise.
8171         * modules/crypto/gc-md2-tests: Likewise.
8172         * modules/crypto/gc-md4-tests: Likewise.
8173         * modules/crypto/gc-md5-tests: Likewise.
8174         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
8175         * modules/crypto/gc-rijndael-tests: Likewise.
8176         * modules/crypto/gc-sha1-tests: Likewise.
8177         * modules/crypto/gc-tests: Likewise.
8178         * modules/crypto/md2-tests: Likewise.
8179         * modules/crypto/md4-tests: Likewise.
8180         * modules/fcntl-h-tests: Likewise.
8181         * modules/floorf-tests: Likewise.
8182         * modules/floorl-tests: Likewise.
8183         * modules/frexp-nolibm-tests: Likewise.
8184         * modules/frexp-tests: Likewise.
8185         * modules/frexpl-nolibm-tests: Likewise.
8186         * modules/frexpl-tests: Likewise.
8187         * modules/getaddrinfo-tests: Likewise.
8188         * modules/inttypes-tests: Likewise.
8189         * modules/isfinite-tests: Likewise.
8190         * modules/isinf-tests: Likewise.
8191         * modules/ldexpl-tests: Likewise.
8192         * modules/locale-tests: Likewise.
8193         * modules/math-tests: Likewise.
8194         * modules/netdb-tests: Likewise.
8195         * modules/netinet_in-tests: Likewise.
8196         * modules/printf-frexp-tests: Likewise.
8197         * modules/printf-frexpl-tests: Likewise.
8198         * modules/priv-set-tests: Likewise.
8199         * modules/random_r-tests: Likewise.
8200         * modules/round-tests: Likewise.
8201         * modules/roundf-tests: Likewise.
8202         * modules/roundl-tests: Likewise.
8203         * modules/search-tests: Likewise.
8204         * modules/select-tests: Likewise.
8205         * modules/signal-tests: Likewise.
8206         * modules/stdbool-tests: Likewise.
8207         * modules/stddef-tests: Likewise.
8208         * modules/stdint-tests: Likewise.
8209         * modules/stdio-tests: Likewise.
8210         * modules/stdlib-tests: Likewise.
8211         * modules/string-tests: Likewise.
8212         * modules/strings-tests: Likewise.
8213         * modules/sys_select-tests: Likewise.
8214         * modules/sys_socket-tests: Likewise.
8215         * modules/sys_stat-tests: Likewise.
8216         * modules/sys_time-tests: Likewise.
8217         * modules/sys_utsname-tests: Likewise.
8218         * modules/sysexits-tests: Likewise.
8219         * modules/time-tests: Likewise.
8220         * modules/trunc-tests: Likewise.
8221         * modules/truncf-tests: Likewise.
8222         * modules/truncl-tests: Likewise.
8223         * modules/tsearch-tests: Likewise.
8224         * modules/unistd-tests: Likewise.
8225         * modules/wchar-tests: Likewise.
8226         * modules/wctype-tests: Likewise.
8227
8228         tests: fix license on several tests
8229         * tests/test-des.c: Update to GPLv3+.
8230         * tests/test-flock.c: Likewise.
8231         * tests/test-fsync.c: Likewise.
8232         * tests/test-futimens.h: Likewise.
8233         * tests/test-gc-arcfour.c: Likewise.
8234         * tests/test-gc-arctwo.c: Likewise.
8235         * tests/test-gc-des.c: Likewise.
8236         * tests/test-gc-hmac-md5.c: Likewise.
8237         * tests/test-gc-hmac-sha1.c: Likewise.
8238         * tests/test-gc-md2.c: Likewise.
8239         * tests/test-gc-md4.c: Likewise.
8240         * tests/test-gc-md5.c: Likewise.
8241         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8242         * tests/test-gc-rijndael.c: Likewise.
8243         * tests/test-gc-sha1.c: Likewise.
8244         * tests/test-gc.c: Likewise.
8245         * tests/test-getcwd.c: Likewise.
8246         * tests/test-link.c: Likewise.
8247         * tests/test-link.h: Likewise.
8248         * tests/test-lutimens.h: Likewise.
8249         * tests/test-md2.c: Likewise.
8250         * tests/test-md4.c: Likewise.
8251         * tests/test-mkdir.h: Likewise.
8252         * tests/test-rename.c: Likewise.
8253         * tests/test-rename.h: Likewise.
8254         * tests/test-safe-alloc.c: Likewise.
8255         * tests/test-utimens-common.h: Likewise.
8256         * tests/test-utimens.h: Likewise.
8257
8258         maint: sync license texts
8259         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
8260         * doc/gpl-3.0.texi: Revert copyright year update.
8261         * doc/lgpl-3.0.texi: Likewise.
8262
8263 2009-12-29  Jim Meyering  <meyering@redhat.com>
8264
8265         update nearly all FSF copyright year lists to include 2009
8266         The files named by the following are exempted:
8267             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
8268               test -f "$dst" && { echo "$dst"; continue; }
8269               test -d "$dst" || continue
8270               echo "$dst"/$(basename "$src")
8271             done > exempt
8272             git ls-files tests/unictype >> exempt
8273         In the remaining files, convert to all-interval notation if
8274         - there is already at least one year interval like 2000-2003
8275         - the file is maintained by me
8276         - the file is in lib/uni*/, where that style already prevails
8277         Otherwise, use update-copyright's default.
8278
8279 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8280         and Eric Blake  <ebb9@byu.net>
8281
8282         tests: don't require debug system() to pass
8283         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
8284         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8285         * tests/test-unlink.h (test_unlink_func): Likewise.
8286         * tests/test-fstatat.c (main): ...into callers.
8287         * tests/test-lstat.c (main): Likewise.
8288         * tests/test-rmdir.c (main): Likewise.
8289         * tests/test-unlink.c (main): Likewise.
8290         * tests/test-unlinkat.c (main): Likewise.
8291         * tests/test-areadlink-with-size.c (main): Don't require a
8292         debug-only system call to pass, aiding cross-testing to mingw.
8293         * tests/test-areadlink.c (main): Likewise.
8294         * tests/test-areadlinkat-with-size.c (main): Likewise.
8295         * tests/test-areadlinkat.c (main): Likewise.
8296         * tests/test-canonicalize-lgpl.c (main): Likewise.
8297         * tests/test-canonicalize.c (main): Likewise.
8298         * tests/test-chown.c (main): Likewise.
8299         * tests/test-fchownat.c (main): Likewise.
8300         * tests/test-lchown.c (main): Likewise.
8301         * tests/test-fdutimensat.c (main): Likewise.
8302         * tests/test-futimens.c (main): Likewise.
8303         * tests/test-link.c (main): Likewise.
8304         * tests/test-linkat.c (main): Likewise.
8305         * tests/test-mkdir.c (main): Likewise.
8306         * tests/test-mkdirat.c (main): Likewise.
8307         * tests/test-mkfifo.c (main): Likewise.
8308         * tests/test-mkfifoat.c (main): Likewise.
8309         * tests/test-mknod.c (main): Likewise.
8310         * tests/test-readlink.c (main): Likewise.
8311         * tests/test-remove.c (main): Likewise.
8312         * tests/test-rename.c (main): Likewise.
8313         * tests/test-renameat.c (main): Likewise.
8314         * tests/test-symlink.c (main): Likewise.
8315         * tests/test-symlinkat.c (main): Likewise.
8316         * tests/test-utimens.c (main): Likewise.
8317         * tests/test-utimensat.c (main): Likewise.
8318
8319 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8320
8321         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
8322         on $(UNUSED_PARAMETER_H) to avoid build failure.
8323
8324 2009-12-28  Jim Meyering  <meyering@redhat.com>
8325
8326         update-copyright: you may specify a max. line length other than 72
8327         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8328
8329         maint: use consistent FSF copyright line syntax
8330         * lib/posixtm.c: Add missing comma in FSF copyright line.
8331         * lib/posixtm.h: Likewise.
8332         * lib/getugroups.c: Add missing ", Inc.".
8333
8334         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
8335         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
8336         FSF copyright line.  Remove trailing blanks.
8337
8338 2009-12-28  Eric Blake  <ebb9@byu.net>
8339
8340         test-dup2: reduce dependencies
8341         * modules/cloexec (Configure.ac): Set witness.
8342         * modules/dup2-tests (Depends-on): Drop cloexec.
8343         * tests/test-dup2.c (main): Skip portion of test if cloexec module
8344         not present.
8345         Suggested by Bruno Haible.
8346
8347 2009-12-26  Bruno Haible  <bruno@clisp.org>
8348
8349         Remove an unneeded dependency.
8350         * modules/fseterr (Depends-on): Remove dup2.
8351
8352 2009-12-26  Eric Blake  <ebb9@byu.net>
8353
8354         tests: use macros.h in more places
8355         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
8356         (ASSERT_STREAM): Provide default of stderr.
8357         * tests/test-dirent-safer.c: Include macros.h, using alternate
8358         stream for assertions.
8359         * tests/test-dup-safer.c: Likewise.
8360         * tests/test-freopen-safer.c: Likewise.
8361         * tests/test-getopt.c: Likewise.
8362         * tests/test-openat-safer.c: Likewise.
8363         * tests/test-pipe.c: Likewise.
8364         * tests/test-popen-safer.c: Likewise.
8365         * modules/dirent-safer-tests (Files): Include macros.h.
8366         * modules/unistd-safer-tests (Files): Likewise.
8367         * modules/freopen-safer-tests (Files): Likewise.
8368         * modules/getopt-posix-tests (Files): Likewise.
8369         * modules/openat-safer-tests (Files): Likewise.
8370         * modules/pipe-tests (Files): Likewise.
8371
8372 2009-12-26  Bruno Haible  <bruno@clisp.org>
8373
8374         javacomp: Portability fix.
8375         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
8376         that it also works on Solaris.
8377
8378 2009-12-26  Bruno Haible  <bruno@clisp.org>
8379
8380         localename: Fix storage allocation of gl_locale_name_thread's result.
8381         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
8382         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
8383         all platforms that have 'uselocale'.
8384         (gl_locale_name_thread_unsafe): New function, extracted from
8385         gl_locale_name_thread.
8386         (gl_locale_name_thread): Call struniq on all platforms that have
8387         'uselocale'.
8388         * tests/test-localename.c (test_locale_name_thread): Check that the
8389         resulting strings are permanently allocated.
8390         * modules/localename-tests (Depends-on): Add strdup.
8391
8392 2009-12-26  Bruno Haible  <bruno@clisp.org>
8393
8394         * tests/test-localename.c (categories): Fill in the strings.
8395
8396 2009-12-26  Jim Meyering  <meyering@redhat.com>
8397
8398         isdir: complete the removal of m4/isdir.m4
8399         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
8400
8401         isdir: clean up, since at least grep still uses it
8402         * lib/isdir.c: Include "isdir.h".
8403         (S_ISDIR): Remove now-unneeded definition.
8404         * modules/isdir (Files): Add lib/isdir.h.
8405         * lib/isdir.h: New file, with declaration.
8406         * m4/isdir.m4: Remove file -- unneeded.
8407
8408 2009-12-25  Bruno Haible  <bruno@clisp.org>
8409
8410         selinux-h: Make generated .h files standalone.
8411         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
8412         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
8413         * lib/se-selinux.in.h: Likewise.
8414         * modules/selinux-h (Depends-on): Add unused-parameter.
8415         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
8416         selinux/selinux.h and selinux/context.h.
8417         Suggested by Eric Blake.
8418
8419 2009-12-25  Bruno Haible  <bruno@clisp.org>
8420
8421         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
8422         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
8423         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
8424         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
8425         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
8426
8427 2009-12-24  Bruno Haible  <bruno@clisp.org>
8428
8429         openat: Fix warning.
8430         * lib/openat-proc.c: Include <unistd.h>.
8431
8432 2009-12-24  Bruno Haible  <bruno@clisp.org>
8433
8434         New module 'unused-parameter'.
8435         * build-aux/unused-parameter.h: New file, extracted from earlier
8436         gnulib-common.m4.
8437         * modules/unused-parameter: New file.
8438         * lib/unistr.h: Include unused-parameter.h.
8439         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
8440         _GL_UNUSED.
8441         * modules/unistr/base (Depends-on): Add unused-parameter.
8442
8443 2009-12-24  Bruno Haible  <bruno@clisp.org>
8444
8445         Add missing dependencies to 'extensions' module.
8446         * m4/extensions.m4: Add comment.
8447         * modules/accept4 (Depends-on): Add extensions.
8448         * modules/dup3 (Depends-on): Likewise.
8449         * modules/fcntl (Depends-on): Likewise.
8450         * modules/futimens (Depends-on): Likewise.
8451         * modules/mknod (Depends-on): Likewise.
8452         * modules/pipe2 (Depends-on): Likewise.
8453         * modules/stat-time (Depends-on): Likewise.
8454         * modules/strcasestr-simple (Depends-on): Likewise.
8455         * modules/strsignal (Depends-on): Likewise.
8456         * modules/utimensat (Depends-on): Likewise.
8457         * modules/localcharset (Depends-on): Likewise. Needed because of
8458         gl_FCNTL_O_FLAGS.
8459         * modules/wcrtomb (Depends-on): Likewise. Needed because of
8460         AC_TYPE_MBSTATE_T.
8461         * modules/wcsnrtombs (Depends-on): Likewise.
8462         * modules/wcsrtombs (Depends-on): Likewise.
8463
8464 2009-12-24  Bruno Haible  <bruno@clisp.org>
8465
8466         binary-io: Avoid gcc warning due to SET_BINARY.
8467         * lib/binary-io.h (SET_BINARY): Cast the result to void.
8468         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
8469
8470 2009-12-24  Bruno Haible  <bruno@clisp.org>
8471
8472         Avoid future namespace pollution on glibc systems.
8473         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
8474         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
8475         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
8476         glibc systems.
8477
8478 2009-12-24  Bruno Haible  <bruno@clisp.org>
8479
8480         Refactor common macros used in tests.
8481         * tests/macros.h: New file.
8482         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
8483         and/or <stdlib.h>, if appropriate.
8484         (ASSERT, SIZEOF): Remove macros.
8485         * tests/test-areadlink-with-size.c: Likewise.
8486         * tests/test-areadlinkat.c: Likewise.
8487         * tests/test-areadlinkat-with-size.c: Likewise.
8488         * tests/test-argmatch.c: Likewise.
8489         * tests/test-argv-iter.c: Likewise.
8490         * tests/test-array-mergesort.c: Likewise.
8491         * tests/test-array_list.c: Likewise.
8492         * tests/test-array_oset.c: Likewise.
8493         * tests/test-avltree_list.c: Likewise.
8494         * tests/test-avltree_oset.c: Likewise.
8495         * tests/test-avltreehash_list.c: Likewise.
8496         * tests/test-base64.c: Likewise.
8497         * tests/test-binary-io.c: Likewise.
8498         * tests/test-bitrotate.c: Likewise.
8499         * tests/test-btowc.c: Likewise.
8500         * tests/test-byteswap.c: Likewise.
8501         * tests/test-c-ctype.c: Likewise.
8502         * tests/test-c-stack.c: Likewise.
8503         * tests/test-c-strcasecmp.c: Likewise.
8504         * tests/test-c-strcasestr.c: Likewise.
8505         * tests/test-c-strncasecmp.c: Likewise.
8506         * tests/test-c-strstr.c: Likewise.
8507         * tests/test-canonicalize-lgpl.c: Likewise.
8508         * tests/test-canonicalize.c: Likewise.
8509         * tests/test-carray_list.c: Likewise.
8510         * tests/test-ceilf1.c: Likewise.
8511         * tests/test-ceilf2.c: Likewise.
8512         * tests/test-ceill.c: Likewise.
8513         * tests/test-chown.c: Likewise.
8514         * tests/test-cloexec.c: Likewise.
8515         * tests/test-copy-acl.c: Likewise.
8516         * tests/test-copy-file.c: Likewise.
8517         * tests/test-count-one-bits.c: Likewise.
8518         * tests/test-dprintf-posix.c: Likewise.
8519         * tests/test-dup2.c: Likewise.
8520         * tests/test-dup3.c: Likewise.
8521         * tests/test-duplocale.c: Likewise.
8522         * tests/test-fbufmode.c: Likewise.
8523         * tests/test-fchdir.c: Likewise.
8524         * tests/test-fchownat.c: Likewise.
8525         * tests/test-fcntl-safer.c: Likewise.
8526         * tests/test-fcntl.c: Likewise.
8527         * tests/test-fdopendir.c: Likewise.
8528         * tests/test-fdutimensat.c: Likewise.
8529         * tests/test-fflush2.c: Likewise.
8530         * tests/test-file-has-acl.c: Likewise.
8531         * tests/test-filevercmp.c: Likewise.
8532         * tests/test-flock.c: Likewise.
8533         * tests/test-floorf1.c: Likewise.
8534         * tests/test-floorf2.c: Likewise.
8535         * tests/test-floorl.c: Likewise.
8536         * tests/test-fnmatch.c: Likewise.
8537         * tests/test-fopen.h: Likewise.
8538         * tests/test-fpending.c: Likewise.
8539         * tests/test-fprintf-posix.c: Likewise.
8540         * tests/test-fpurge.c: Likewise.
8541         * tests/test-freadable.c: Likewise.
8542         * tests/test-freadahead.c: Likewise.
8543         * tests/test-freading.c: Likewise.
8544         * tests/test-freadptr.c: Likewise.
8545         * tests/test-freadptr2.c: Likewise.
8546         * tests/test-freadseek.c: Likewise.
8547         * tests/test-freopen.c: Likewise.
8548         * tests/test-frexp.c: Likewise.
8549         * tests/test-frexpl.c: Likewise.
8550         * tests/test-fseek.c: Likewise.
8551         * tests/test-fseeko.c: Likewise.
8552         * tests/test-fstatat.c: Likewise.
8553         * tests/test-fstrcmp.c: Likewise.
8554         * tests/test-fsync.c: Likewise.
8555         * tests/test-ftell.c: Likewise.
8556         * tests/test-ftello.c: Likewise.
8557         * tests/test-func.c: Likewise.
8558         * tests/test-futimens.c: Likewise.
8559         * tests/test-fwritable.c: Likewise.
8560         * tests/test-fwriting.c: Likewise.
8561         * tests/test-getcwd.c: Likewise.
8562         * tests/test-getdate.c: Likewise.
8563         * tests/test-getdelim.c: Likewise.
8564         * tests/test-getdtablesize.c: Likewise.
8565         * tests/test-getgroups.c: Likewise.
8566         * tests/test-getline.c: Likewise.
8567         * tests/test-getndelim2.c: Likewise.
8568         * tests/test-glob.c: Likewise.
8569         * tests/test-hash.c: Likewise.
8570         * tests/test-i-ring.c: Likewise.
8571         * tests/test-iconv-utf.c: Likewise.
8572         * tests/test-iconv.c: Likewise.
8573         * tests/test-idpriv-drop.c: Likewise.
8574         * tests/test-idpriv-droptemp.c: Likewise.
8575         * tests/test-inet_ntop.c: Likewise.
8576         * tests/test-inet_pton.c: Likewise.
8577         * tests/test-isblank.c: Likewise.
8578         * tests/test-isfinite.c: Likewise.
8579         * tests/test-isinf.c: Likewise.
8580         * tests/test-isnan.c: Likewise.
8581         * tests/test-isnand.h: Likewise.
8582         * tests/test-isnanf.h: Likewise.
8583         * tests/test-isnanl.h: Likewise.
8584         * tests/test-lchown.c: Likewise.
8585         * tests/test-ldexpl.c: Likewise.
8586         * tests/test-link.c: Likewise.
8587         * tests/test-linkat.c: Likewise.
8588         * tests/test-linked_list.c: Likewise.
8589         * tests/test-linkedhash_list.c: Likewise.
8590         * tests/test-localename.c: Likewise.
8591         * tests/test-lseek.c: Likewise.
8592         * tests/test-lstat.c: Likewise.
8593         * tests/test-mbmemcasecmp.c: Likewise.
8594         * tests/test-mbmemcasecoll.c: Likewise.
8595         * tests/test-mbrtowc.c: Likewise.
8596         * tests/test-mbscasecmp.c: Likewise.
8597         * tests/test-mbscasestr1.c: Likewise.
8598         * tests/test-mbscasestr2.c: Likewise.
8599         * tests/test-mbscasestr3.c: Likewise.
8600         * tests/test-mbscasestr4.c: Likewise.
8601         * tests/test-mbschr.c: Likewise.
8602         * tests/test-mbscspn.c: Likewise.
8603         * tests/test-mbsinit.c: Likewise.
8604         * tests/test-mbsncasecmp.c: Likewise.
8605         * tests/test-mbsnrtowcs.c: Likewise.
8606         * tests/test-mbspbrk.c: Likewise.
8607         * tests/test-mbspcasecmp.c: Likewise.
8608         * tests/test-mbsrchr.c: Likewise.
8609         * tests/test-mbsrtowcs.c: Likewise.
8610         * tests/test-mbsspn.c: Likewise.
8611         * tests/test-mbsstr1.c: Likewise.
8612         * tests/test-mbsstr2.c: Likewise.
8613         * tests/test-mbsstr3.c: Likewise.
8614         * tests/test-memchr.c: Likewise.
8615         * tests/test-memchr2.c: Likewise.
8616         * tests/test-memcmp.c: Likewise.
8617         * tests/test-memmem.c: Likewise.
8618         * tests/test-memrchr.c: Likewise.
8619         * tests/test-mkdir.c: Likewise.
8620         * tests/test-mkdirat.c: Likewise.
8621         * tests/test-mkfifo.c: Likewise.
8622         * tests/test-mkfifoat.c: Likewise.
8623         * tests/test-mknod.c: Likewise.
8624         * tests/test-nanosleep.c: Likewise.
8625         * tests/test-nl_langinfo.c: Likewise.
8626         * tests/test-obstack-printf.c: Likewise.
8627         * tests/test-open.c: Likewise.
8628         * tests/test-openat.c: Likewise.
8629         * tests/test-pipe-filter-gi1.c: Likewise.
8630         * tests/test-pipe-filter-gi2-main.c: Likewise.
8631         * tests/test-pipe-filter-ii1.c: Likewise.
8632         * tests/test-pipe-filter-ii2-main.c: Likewise.
8633         * tests/test-pipe2.c: Likewise.
8634         * tests/test-popen.h: Likewise.
8635         * tests/test-posixtm.c: Likewise.
8636         * tests/test-pread.c: Likewise.
8637         * tests/test-printf-frexp.c: Likewise.
8638         * tests/test-printf-frexpl.c: Likewise.
8639         * tests/test-printf-posix.c: Likewise.
8640         * tests/test-priv-set.c: Likewise.
8641         * tests/test-quotearg.c: Likewise.
8642         * tests/test-random_r.c: Likewise.
8643         * tests/test-rawmemchr.c: Likewise.
8644         * tests/test-rbtree_list.c: Likewise.
8645         * tests/test-rbtree_oset.c: Likewise.
8646         * tests/test-rbtreehash_list.c: Likewise.
8647         * tests/test-readlink.c: Likewise.
8648         * tests/test-remove.c: Likewise.
8649         * tests/test-rename.c: Likewise.
8650         * tests/test-renameat.c: Likewise.
8651         * tests/test-rmdir.c: Likewise.
8652         * tests/test-round1.c: Likewise.
8653         * tests/test-roundf1.c: Likewise.
8654         * tests/test-roundl.c: Likewise.
8655         * tests/test-safe-alloc.c: Likewise.
8656         * tests/test-sameacls.c: Likewise.
8657         * tests/test-set-mode-acl.c: Likewise.
8658         * tests/test-setenv.c: Likewise.
8659         * tests/test-sigaction.c: Likewise.
8660         * tests/test-signbit.c: Likewise.
8661         * tests/test-sleep.c: Likewise.
8662         * tests/test-snprintf-posix.c: Likewise.
8663         * tests/test-snprintf.c: Likewise.
8664         * tests/test-sprintf-posix.c: Likewise.
8665         * tests/test-stat-time.c: Likewise.
8666         * tests/test-stat.c: Likewise.
8667         * tests/test-strcasestr.c: Likewise.
8668         * tests/test-strchrnul.c: Likewise.
8669         * tests/test-strerror.c: Likewise.
8670         * tests/test-striconv.c: Likewise.
8671         * tests/test-striconveh.c: Likewise.
8672         * tests/test-striconveha.c: Likewise.
8673         * tests/test-strsignal.c: Likewise.
8674         * tests/test-strstr.c: Likewise.
8675         * tests/test-strtod.c: Likewise.
8676         * tests/test-strverscmp.c: Likewise.
8677         * tests/test-symlink.c: Likewise.
8678         * tests/test-symlinkat.c: Likewise.
8679         * tests/test-trunc1.c: Likewise.
8680         * tests/test-trunc2.c: Likewise.
8681         * tests/test-truncf1.c: Likewise.
8682         * tests/test-truncf2.c: Likewise.
8683         * tests/test-truncl.c: Likewise.
8684         * tests/test-uname.c: Likewise.
8685         * tests/test-unlink.c: Likewise.
8686         * tests/test-unlinkat.c: Likewise.
8687         * tests/test-unsetenv.c: Likewise.
8688         * tests/test-usleep.c: Likewise.
8689         * tests/test-utimens.c: Likewise.
8690         * tests/test-utimensat.c: Likewise.
8691         * tests/test-vasnprintf-posix.c: Likewise.
8692         * tests/test-vasnprintf-posix2.c: Likewise.
8693         * tests/test-vasnprintf.c: Likewise.
8694         * tests/test-vasprintf-posix.c: Likewise.
8695         * tests/test-vasprintf.c: Likewise.
8696         * tests/test-vdprintf-posix.c: Likewise.
8697         * tests/test-vfprintf-posix.c: Likewise.
8698         * tests/test-vprintf-posix.c: Likewise.
8699         * tests/test-vsnprintf-posix.c: Likewise.
8700         * tests/test-vsnprintf.c: Likewise.
8701         * tests/test-vsprintf-posix.c: Likewise.
8702         * tests/test-wcrtomb.c: Likewise.
8703         * tests/test-wcsnrtombs.c: Likewise.
8704         * tests/test-wcsrtombs.c: Likewise.
8705         * tests/test-wctype.c: Likewise.
8706         * tests/test-wcwidth.c: Likewise.
8707         * tests/test-xfprintf-posix.c: Likewise.
8708         * tests/test-xmemdup0.c: Likewise.
8709         * tests/test-xprintf-posix.c: Likewise.
8710         * tests/test-xvasprintf.c: Likewise.
8711         * tests/unicase/test-locale-language.c: Likewise.
8712         * tests/unicase/test-mapping-part1.h: Likewise.
8713         * tests/unicase/test-predicate-part1.h: Likewise.
8714         * tests/unicase/test-u8-casecmp.c: Likewise.
8715         * tests/unicase/test-u8-casecoll.c: Likewise.
8716         * tests/unicase/test-u8-casefold.c: Likewise.
8717         * tests/unicase/test-u8-is-cased.c: Likewise.
8718         * tests/unicase/test-u8-is-casefolded.c: Likewise.
8719         * tests/unicase/test-u8-is-lowercase.c: Likewise.
8720         * tests/unicase/test-u8-is-titlecase.c: Likewise.
8721         * tests/unicase/test-u8-is-uppercase.c: Likewise.
8722         * tests/unicase/test-u8-tolower.c: Likewise.
8723         * tests/unicase/test-u8-totitle.c: Likewise.
8724         * tests/unicase/test-u8-toupper.c: Likewise.
8725         * tests/unicase/test-u16-casecmp.c: Likewise.
8726         * tests/unicase/test-u16-casecoll.c: Likewise.
8727         * tests/unicase/test-u16-casefold.c: Likewise.
8728         * tests/unicase/test-u16-is-cased.c: Likewise.
8729         * tests/unicase/test-u16-is-casefolded.c: Likewise.
8730         * tests/unicase/test-u16-is-lowercase.c: Likewise.
8731         * tests/unicase/test-u16-is-titlecase.c: Likewise.
8732         * tests/unicase/test-u16-is-uppercase.c: Likewise.
8733         * tests/unicase/test-u16-tolower.c: Likewise.
8734         * tests/unicase/test-u16-totitle.c: Likewise.
8735         * tests/unicase/test-u16-toupper.c: Likewise.
8736         * tests/unicase/test-u32-casecmp.c: Likewise.
8737         * tests/unicase/test-u32-casecoll.c: Likewise.
8738         * tests/unicase/test-u32-casefold.c: Likewise.
8739         * tests/unicase/test-u32-is-cased.c: Likewise.
8740         * tests/unicase/test-u32-is-casefolded.c: Likewise.
8741         * tests/unicase/test-u32-is-lowercase.c: Likewise.
8742         * tests/unicase/test-u32-is-titlecase.c: Likewise.
8743         * tests/unicase/test-u32-is-uppercase.c: Likewise.
8744         * tests/unicase/test-u32-tolower.c: Likewise.
8745         * tests/unicase/test-u32-totitle.c: Likewise.
8746         * tests/unicase/test-u32-toupper.c: Likewise.
8747         * tests/unicase/test-ulc-casecmp.c: Likewise.
8748         * tests/unicase/test-ulc-casecoll.c: Likewise.
8749         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8750         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8751         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8752         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8753         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8754         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8755         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8756         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8757         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8758         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8759         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8760         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8761         * tests/unictype/test-bidi_byname.c: Likewise.
8762         * tests/unictype/test-bidi_name.c: Likewise.
8763         * tests/unictype/test-bidi_of.c: Likewise.
8764         * tests/unictype/test-bidi_test.c: Likewise.
8765         * tests/unictype/test-block_list.c: Likewise.
8766         * tests/unictype/test-block_of.c: Likewise.
8767         * tests/unictype/test-block_test.c: Likewise.
8768         * tests/unictype/test-categ_and.c: Likewise.
8769         * tests/unictype/test-categ_and_not.c: Likewise.
8770         * tests/unictype/test-categ_byname.c: Likewise.
8771         * tests/unictype/test-categ_name.c: Likewise.
8772         * tests/unictype/test-categ_none.c: Likewise.
8773         * tests/unictype/test-categ_of.c: Likewise.
8774         * tests/unictype/test-categ_or.c: Likewise.
8775         * tests/unictype/test-categ_test_withtable.c: Likewise.
8776         * tests/unictype/test-combining.c: Likewise.
8777         * tests/unictype/test-decdigit.c: Likewise.
8778         * tests/unictype/test-digit.c: Likewise.
8779         * tests/unictype/test-mirror.c: Likewise.
8780         * tests/unictype/test-numeric.c: Likewise.
8781         * tests/unictype/test-pr_byname.c: Likewise.
8782         * tests/unictype/test-pr_test.c: Likewise.
8783         * tests/unictype/test-predicate-part1.h: Likewise.
8784         * tests/unictype/test-scripts.c: Likewise.
8785         * tests/unictype/test-sy_c_ident.c: Likewise.
8786         * tests/unictype/test-sy_java_ident.c: Likewise.
8787         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
8788         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
8789         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
8790         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
8791         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
8792         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
8793         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
8794         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
8795         * tests/uninorm/test-canonical-decomposition.c: Likewise.
8796         * tests/uninorm/test-compat-decomposition.c: Likewise.
8797         * tests/uninorm/test-composition.c: Likewise.
8798         * tests/uninorm/test-decomposing-form.c: Likewise.
8799         * tests/uninorm/test-decomposition.c: Likewise.
8800         * tests/uninorm/test-u8-nfc.c: Likewise.
8801         * tests/uninorm/test-u8-nfd.c: Likewise.
8802         * tests/uninorm/test-u8-nfkc.c: Likewise.
8803         * tests/uninorm/test-u8-nfkd.c: Likewise.
8804         * tests/uninorm/test-u8-normcmp.c: Likewise.
8805         * tests/uninorm/test-u8-normcoll.c: Likewise.
8806         * tests/uninorm/test-u16-nfc.c: Likewise.
8807         * tests/uninorm/test-u16-nfd.c: Likewise.
8808         * tests/uninorm/test-u16-nfkc.c: Likewise.
8809         * tests/uninorm/test-u16-nfkd.c: Likewise.
8810         * tests/uninorm/test-u16-normcmp.c: Likewise.
8811         * tests/uninorm/test-u16-normcoll.c: Likewise.
8812         * tests/uninorm/test-u32-nfc.c: Likewise.
8813         * tests/uninorm/test-u32-nfd.c: Likewise.
8814         * tests/uninorm/test-u32-nfkc.c: Likewise.
8815         * tests/uninorm/test-u32-nfkd.c: Likewise.
8816         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8817         * tests/uninorm/test-u32-normcmp.c: Likewise.
8818         * tests/uninorm/test-u32-normcoll.c: Likewise.
8819         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
8820         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8821         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8822         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8823         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8824         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8825         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8826         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8827         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8828         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8829         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8830         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8831         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8832         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8833         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8834         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8835         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8836         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8837         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8838         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8839         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8840         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8841         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8842         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8843         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8844         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8845         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8846         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8847         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8848         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
8849         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
8850         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
8851         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
8852         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8853         * tests/uniwidth/test-u8-width.c: Likewise.
8854         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8855         * tests/uniwidth/test-u16-width.c: Likewise.
8856         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8857         * tests/uniwidth/test-u32-width.c: Likewise.
8858         * tests/uniwidth/test-uc_width.c: Likewise.
8859         * tests/uniwidth/test-uc_width2.c: Likewise.
8860         * modules/acl-tests (Files): Add tests/macros.h.
8861         * modules/areadlink-tests (Files): Likewise.
8862         * modules/areadlink-with-size-tests (Files): Likewise.
8863         * modules/areadlinkat-tests (Files): Likewise.
8864         * modules/areadlinkat-with-size-tests (Files): Likewise.
8865         * modules/argmatch-tests (Files): Likewise.
8866         * modules/argv-iter-tests (Files): Likewise.
8867         * modules/array-list-tests (Files): Likewise.
8868         * modules/array-mergesort-tests (Files): Likewise.
8869         * modules/array-oset-tests (Files): Likewise.
8870         * modules/avltree-list-tests (Files): Likewise.
8871         * modules/avltree-oset-tests (Files): Likewise.
8872         * modules/avltreehash-list-tests (Files): Likewise.
8873         * modules/base64-tests (Files): Likewise.
8874         * modules/binary-io-tests (Files): Likewise.
8875         * modules/bitrotate-tests (Files): Likewise.
8876         * modules/btowc-tests (Files): Likewise.
8877         * modules/byteswap-tests (Files): Likewise.
8878         * modules/c-ctype-tests (Files): Likewise.
8879         * modules/c-stack-tests (Files): Likewise.
8880         * modules/c-strcase-tests (Files): Likewise.
8881         * modules/c-strcasestr-tests (Files): Likewise.
8882         * modules/c-strstr-tests (Files): Likewise.
8883         * modules/canonicalize-lgpl-tests (Files): Likewise.
8884         * modules/canonicalize-tests (Files): Likewise.
8885         * modules/carray-list-tests (Files): Likewise.
8886         * modules/ceilf-tests (Files): Likewise.
8887         * modules/ceill-tests (Files): Likewise.
8888         * modules/chown-tests (Files): Likewise.
8889         * modules/cloexec-tests (Files): Likewise.
8890         * modules/copy-file-tests (Files): Likewise.
8891         * modules/count-one-bits-tests (Files): Likewise.
8892         * modules/dprintf-posix-tests (Files): Likewise.
8893         * modules/dup2-tests (Files): Likewise.
8894         * modules/dup3-tests (Files): Likewise.
8895         * modules/duplocale-tests (Files): Likewise.
8896         * modules/fbufmode-tests (Files): Likewise.
8897         * modules/fchdir-tests (Files): Likewise.
8898         * modules/fcntl-safer-tests (Files): Likewise.
8899         * modules/fcntl-tests (Files): Likewise.
8900         * modules/fdopendir-tests (Files): Likewise.
8901         * modules/fdutimensat-tests (Files): Likewise.
8902         * modules/fflush-tests (Files): Likewise.
8903         * modules/filevercmp-tests (Files): Likewise.
8904         * modules/flock-tests (Files): Likewise.
8905         * modules/floorf-tests (Files): Likewise.
8906         * modules/floorl-tests (Files): Likewise.
8907         * modules/fnmatch-tests (Files): Likewise.
8908         * modules/fopen-safer-tests (Files): Likewise.
8909         * modules/fopen-tests (Files): Likewise.
8910         * modules/fpending-tests (Files): Likewise.
8911         * modules/fprintf-posix-tests (Files): Likewise.
8912         * modules/fpurge-tests (Files): Likewise.
8913         * modules/freadable-tests (Files): Likewise.
8914         * modules/freadahead-tests (Files): Likewise.
8915         * modules/freading-tests (Files): Likewise.
8916         * modules/freadptr-tests (Files): Likewise.
8917         * modules/freadseek-tests (Files): Likewise.
8918         * modules/freopen-tests (Files): Likewise.
8919         * modules/frexp-nolibm-tests (Files): Likewise.
8920         * modules/frexp-tests (Files): Likewise.
8921         * modules/frexpl-nolibm-tests (Files): Likewise.
8922         * modules/frexpl-tests (Files): Likewise.
8923         * modules/fseek-tests (Files): Likewise.
8924         * modules/fseeko-tests (Files): Likewise.
8925         * modules/fstrcmp-tests (Files): Likewise.
8926         * modules/fsync-tests (Files): Likewise.
8927         * modules/ftell-tests (Files): Likewise.
8928         * modules/ftello-tests (Files): Likewise.
8929         * modules/func-tests (Files): Likewise.
8930         * modules/futimens-tests (Files): Likewise.
8931         * modules/fwritable-tests (Files): Likewise.
8932         * modules/fwriting-tests (Files): Likewise.
8933         * modules/getcwd-tests (Files): Likewise.
8934         * modules/getdate-tests (Files): Likewise.
8935         * modules/getdelim-tests (Files): Likewise.
8936         * modules/getdtablesize-tests (Files): Likewise.
8937         * modules/getgroups-tests (Files): Likewise.
8938         * modules/getline-tests (Files): Likewise.
8939         * modules/getndelim2-tests (Files): Likewise.
8940         * modules/glob-tests (Files): Likewise.
8941         * modules/hash-tests (Files): Likewise.
8942         * modules/i-ring-tests (Files): Likewise.
8943         * modules/iconv-tests (Files): Likewise.
8944         * modules/iconv_open-utf-tests (Files): Likewise.
8945         * modules/idpriv-drop-tests (Files): Likewise.
8946         * modules/idpriv-droptemp-tests (Files): Likewise.
8947         * modules/inet_ntop-tests (Files): Likewise.
8948         * modules/inet_pton-tests (Files): Likewise.
8949         * modules/isblank-tests (Files): Likewise.
8950         * modules/isfinite-tests (Files): Likewise.
8951         * modules/isinf-tests (Files): Likewise.
8952         * modules/isnan-tests (Files): Likewise.
8953         * modules/isnand-nolibm-tests (Files): Likewise.
8954         * modules/isnand-tests (Files): Likewise.
8955         * modules/isnanf-nolibm-tests (Files): Likewise.
8956         * modules/isnanf-tests (Files): Likewise.
8957         * modules/isnanl-nolibm-tests (Files): Likewise.
8958         * modules/isnanl-tests (Files): Likewise.
8959         * modules/lchown-tests (Files): Likewise.
8960         * modules/ldexpl-tests (Files): Likewise.
8961         * modules/link-tests (Files): Likewise.
8962         * modules/linkat-tests (Files): Likewise.
8963         * modules/linked-list-tests (Files): Likewise.
8964         * modules/linkedhash-list-tests (Files): Likewise.
8965         * modules/localename-tests (Files): Likewise.
8966         * modules/lseek-tests (Files): Likewise.
8967         * modules/lstat-tests (Files): Likewise.
8968         * modules/mbmemcasecmp-tests (Files): Likewise.
8969         * modules/mbmemcasecoll-tests (Files): Likewise.
8970         * modules/mbrtowc-tests (Files): Likewise.
8971         * modules/mbscasecmp-tests (Files): Likewise.
8972         * modules/mbscasestr-tests (Files): Likewise.
8973         * modules/mbschr-tests (Files): Likewise.
8974         * modules/mbscspn-tests (Files): Likewise.
8975         * modules/mbsinit-tests (Files): Likewise.
8976         * modules/mbsncasecmp-tests (Files): Likewise.
8977         * modules/mbsnrtowcs-tests (Files): Likewise.
8978         * modules/mbspbrk-tests (Files): Likewise.
8979         * modules/mbspcasecmp-tests (Files): Likewise.
8980         * modules/mbsrchr-tests (Files): Likewise.
8981         * modules/mbsrtowcs-tests (Files): Likewise.
8982         * modules/mbsspn-tests (Files): Likewise.
8983         * modules/mbsstr-tests (Files): Likewise.
8984         * modules/memchr-tests (Files): Likewise.
8985         * modules/memchr2-tests (Files): Likewise.
8986         * modules/memcmp-tests (Files): Likewise.
8987         * modules/memmem-tests (Files): Likewise.
8988         * modules/memrchr-tests (Files): Likewise.
8989         * modules/mkdir-tests (Files): Likewise.
8990         * modules/mkfifo-tests (Files): Likewise.
8991         * modules/mkfifoat-tests (Files): Likewise.
8992         * modules/mknod-tests (Files): Likewise.
8993         * modules/nanosleep-tests (Files): Likewise.
8994         * modules/nl_langinfo-tests (Files): Likewise.
8995         * modules/obstack-printf-tests (Files): Likewise.
8996         * modules/open-tests (Files): Likewise.
8997         * modules/openat-tests (Files): Likewise.
8998         * modules/pipe-filter-gi-tests (Files): Likewise.
8999         * modules/pipe-filter-ii-tests (Files): Likewise.
9000         * modules/pipe2-tests (Files): Likewise.
9001         * modules/popen-safer-tests (Files): Likewise.
9002         * modules/popen-tests (Files): Likewise.
9003         * modules/posixtm-tests (Files): Likewise.
9004         * modules/pread-tests (Files): Likewise.
9005         * modules/printf-frexp-tests (Files): Likewise.
9006         * modules/printf-frexpl-tests (Files): Likewise.
9007         * modules/printf-posix-tests (Files): Likewise.
9008         * modules/priv-set-tests (Files): Likewise.
9009         * modules/quotearg-tests (Files): Likewise.
9010         * modules/random_r-tests (Files): Likewise.
9011         * modules/rawmemchr-tests (Files): Likewise.
9012         * modules/rbtree-list-tests (Files): Likewise.
9013         * modules/rbtree-oset-tests (Files): Likewise.
9014         * modules/rbtreehash-list-tests (Files): Likewise.
9015         * modules/readlink-tests (Files): Likewise.
9016         * modules/remove-tests (Files): Likewise.
9017         * modules/rename-tests (Files): Likewise.
9018         * modules/renameat-tests (Files): Likewise.
9019         * modules/rmdir-tests (Files): Likewise.
9020         * modules/round-tests (Files): Likewise.
9021         * modules/roundf-tests (Files): Likewise.
9022         * modules/roundl-tests (Files): Likewise.
9023         * modules/safe-alloc-tests (Files): Likewise.
9024         * modules/setenv-tests (Files): Likewise.
9025         * modules/sigaction-tests (Files): Likewise.
9026         * modules/signbit-tests (Files): Likewise.
9027         * modules/sleep-tests (Files): Likewise.
9028         * modules/snprintf-posix-tests (Files): Likewise.
9029         * modules/snprintf-tests (Files): Likewise.
9030         * modules/sprintf-posix-tests (Files): Likewise.
9031         * modules/stat-tests (Files): Likewise.
9032         * modules/stat-time-tests (Files): Likewise.
9033         * modules/strcasestr-tests (Files): Likewise.
9034         * modules/strchrnul-tests (Files): Likewise.
9035         * modules/strerror-tests (Files): Likewise.
9036         * modules/striconv-tests (Files): Likewise.
9037         * modules/striconveh-tests (Files): Likewise.
9038         * modules/striconveha-tests (Files): Likewise.
9039         * modules/strsignal-tests (Files): Likewise.
9040         * modules/strstr-tests (Files): Likewise.
9041         * modules/strtod-tests (Files): Likewise.
9042         * modules/strverscmp-tests (Files): Likewise.
9043         * modules/symlink-tests (Files): Likewise.
9044         * modules/symlinkat-tests (Files): Likewise.
9045         * modules/trunc-tests (Files): Likewise.
9046         * modules/truncf-tests (Files): Likewise.
9047         * modules/truncl-tests (Files): Likewise.
9048         * modules/uname-tests (Files): Likewise.
9049         * modules/unicase/cased-tests (Files): Likewise.
9050         * modules/unicase/ignorable-tests (Files): Likewise.
9051         * modules/unicase/locale-language-tests (Files): Likewise.
9052         * modules/unicase/tolower-tests (Files): Likewise.
9053         * modules/unicase/totitle-tests (Files): Likewise.
9054         * modules/unicase/toupper-tests (Files): Likewise.
9055         * modules/unicase/u8-casecmp-tests (Files): Likewise.
9056         * modules/unicase/u8-casecoll-tests (Files): Likewise.
9057         * modules/unicase/u8-casefold-tests (Files): Likewise.
9058         * modules/unicase/u8-is-cased-tests (Files): Likewise.
9059         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
9060         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
9061         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
9062         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
9063         * modules/unicase/u8-tolower-tests (Files): Likewise.
9064         * modules/unicase/u8-totitle-tests (Files): Likewise.
9065         * modules/unicase/u8-toupper-tests (Files): Likewise.
9066         * modules/unicase/u16-casecmp-tests (Files): Likewise.
9067         * modules/unicase/u16-casecoll-tests (Files): Likewise.
9068         * modules/unicase/u16-casefold-tests (Files): Likewise.
9069         * modules/unicase/u16-is-cased-tests (Files): Likewise.
9070         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
9071         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
9072         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
9073         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
9074         * modules/unicase/u16-tolower-tests (Files): Likewise.
9075         * modules/unicase/u16-totitle-tests (Files): Likewise.
9076         * modules/unicase/u16-toupper-tests (Files): Likewise.
9077         * modules/unicase/u32-casecmp-tests (Files): Likewise.
9078         * modules/unicase/u32-casecoll-tests (Files): Likewise.
9079         * modules/unicase/u32-casefold-tests (Files): Likewise.
9080         * modules/unicase/u32-is-cased-tests (Files): Likewise.
9081         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
9082         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
9083         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
9084         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
9085         * modules/unicase/u32-tolower-tests (Files): Likewise.
9086         * modules/unicase/u32-totitle-tests (Files): Likewise.
9087         * modules/unicase/u32-toupper-tests (Files): Likewise.
9088         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
9089         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
9090         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
9091         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
9092         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
9093         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
9094         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
9095         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
9096         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
9097         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
9098         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
9099         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
9100         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
9101         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
9102         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
9103         * modules/unictype/bidicategory-name-tests (Files): Likewise.
9104         * modules/unictype/bidicategory-of-tests (Files): Likewise.
9105         * modules/unictype/bidicategory-test-tests (Files): Likewise.
9106         * modules/unictype/block-list-tests (Files): Likewise.
9107         * modules/unictype/block-of-tests (Files): Likewise.
9108         * modules/unictype/block-test-tests (Files): Likewise.
9109         * modules/unictype/category-C-tests (Files): Likewise.
9110         * modules/unictype/category-Cc-tests (Files): Likewise.
9111         * modules/unictype/category-Cf-tests (Files): Likewise.
9112         * modules/unictype/category-Cn-tests (Files): Likewise.
9113         * modules/unictype/category-Co-tests (Files): Likewise.
9114         * modules/unictype/category-Cs-tests (Files): Likewise.
9115         * modules/unictype/category-L-tests (Files): Likewise.
9116         * modules/unictype/category-Ll-tests (Files): Likewise.
9117         * modules/unictype/category-Lm-tests (Files): Likewise.
9118         * modules/unictype/category-Lo-tests (Files): Likewise.
9119         * modules/unictype/category-Lt-tests (Files): Likewise.
9120         * modules/unictype/category-Lu-tests (Files): Likewise.
9121         * modules/unictype/category-M-tests (Files): Likewise.
9122         * modules/unictype/category-Mc-tests (Files): Likewise.
9123         * modules/unictype/category-Me-tests (Files): Likewise.
9124         * modules/unictype/category-Mn-tests (Files): Likewise.
9125         * modules/unictype/category-N-tests (Files): Likewise.
9126         * modules/unictype/category-Nd-tests (Files): Likewise.
9127         * modules/unictype/category-Nl-tests (Files): Likewise.
9128         * modules/unictype/category-No-tests (Files): Likewise.
9129         * modules/unictype/category-P-tests (Files): Likewise.
9130         * modules/unictype/category-Pc-tests (Files): Likewise.
9131         * modules/unictype/category-Pd-tests (Files): Likewise.
9132         * modules/unictype/category-Pe-tests (Files): Likewise.
9133         * modules/unictype/category-Pf-tests (Files): Likewise.
9134         * modules/unictype/category-Pi-tests (Files): Likewise.
9135         * modules/unictype/category-Po-tests (Files): Likewise.
9136         * modules/unictype/category-Ps-tests (Files): Likewise.
9137         * modules/unictype/category-S-tests (Files): Likewise.
9138         * modules/unictype/category-Sc-tests (Files): Likewise.
9139         * modules/unictype/category-Sk-tests (Files): Likewise.
9140         * modules/unictype/category-Sm-tests (Files): Likewise.
9141         * modules/unictype/category-So-tests (Files): Likewise.
9142         * modules/unictype/category-Z-tests (Files): Likewise.
9143         * modules/unictype/category-Zl-tests (Files): Likewise.
9144         * modules/unictype/category-Zp-tests (Files): Likewise.
9145         * modules/unictype/category-Zs-tests (Files): Likewise.
9146         * modules/unictype/category-and-not-tests (Files): Likewise.
9147         * modules/unictype/category-and-tests (Files): Likewise.
9148         * modules/unictype/category-byname-tests (Files): Likewise.
9149         * modules/unictype/category-name-tests (Files): Likewise.
9150         * modules/unictype/category-none-tests (Files): Likewise.
9151         * modules/unictype/category-of-tests (Files): Likewise.
9152         * modules/unictype/category-or-tests (Files): Likewise.
9153         * modules/unictype/category-test-withtable-tests (Files): Likewise.
9154         * modules/unictype/combining-class-tests (Files): Likewise.
9155         * modules/unictype/ctype-alnum-tests (Files): Likewise.
9156         * modules/unictype/ctype-alpha-tests (Files): Likewise.
9157         * modules/unictype/ctype-blank-tests (Files): Likewise.
9158         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
9159         * modules/unictype/ctype-digit-tests (Files): Likewise.
9160         * modules/unictype/ctype-graph-tests (Files): Likewise.
9161         * modules/unictype/ctype-lower-tests (Files): Likewise.
9162         * modules/unictype/ctype-print-tests (Files): Likewise.
9163         * modules/unictype/ctype-punct-tests (Files): Likewise.
9164         * modules/unictype/ctype-space-tests (Files): Likewise.
9165         * modules/unictype/ctype-upper-tests (Files): Likewise.
9166         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
9167         * modules/unictype/decimal-digit-tests (Files): Likewise.
9168         * modules/unictype/digit-tests (Files): Likewise.
9169         * modules/unictype/mirror-tests (Files): Likewise.
9170         * modules/unictype/numeric-tests (Files): Likewise.
9171         * modules/unictype/property-alphabetic-tests (Files): Likewise.
9172         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
9173         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
9174         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
9175         Likewise.
9176         * modules/unictype/property-bidi-block-separator-tests (Files):
9177         Likewise.
9178         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
9179         Likewise.
9180         * modules/unictype/property-bidi-common-separator-tests (Files):
9181         Likewise.
9182         * modules/unictype/property-bidi-control-tests (Files): Likewise.
9183         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
9184         Likewise.
9185         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
9186         Likewise.
9187         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
9188         Likewise.
9189         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
9190         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
9191         Likewise.
9192         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
9193         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
9194         Likewise.
9195         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
9196         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
9197         * modules/unictype/property-bidi-segment-separator-tests (Files):
9198         Likewise.
9199         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
9200         * modules/unictype/property-byname-tests (Files): Likewise.
9201         * modules/unictype/property-combining-tests (Files): Likewise.
9202         * modules/unictype/property-composite-tests (Files): Likewise.
9203         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
9204         * modules/unictype/property-dash-tests (Files): Likewise.
9205         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
9206         * modules/unictype/property-default-ignorable-code-point-tests (Files):
9207         Likewise.
9208         * modules/unictype/property-deprecated-tests (Files): Likewise.
9209         * modules/unictype/property-diacritic-tests (Files): Likewise.
9210         * modules/unictype/property-extender-tests (Files): Likewise.
9211         * modules/unictype/property-format-control-tests (Files): Likewise.
9212         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
9213         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
9214         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
9215         * modules/unictype/property-hex-digit-tests (Files): Likewise.
9216         * modules/unictype/property-hyphen-tests (Files): Likewise.
9217         * modules/unictype/property-id-continue-tests (Files): Likewise.
9218         * modules/unictype/property-id-start-tests (Files): Likewise.
9219         * modules/unictype/property-ideographic-tests (Files): Likewise.
9220         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
9221         * modules/unictype/property-ids-trinary-operator-tests (Files):
9222         Likewise.
9223         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
9224         * modules/unictype/property-iso-control-tests (Files): Likewise.
9225         * modules/unictype/property-join-control-tests (Files): Likewise.
9226         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
9227         * modules/unictype/property-line-separator-tests (Files): Likewise.
9228         * modules/unictype/property-logical-order-exception-tests (Files):
9229         Likewise.
9230         * modules/unictype/property-lowercase-tests (Files): Likewise.
9231         * modules/unictype/property-math-tests (Files): Likewise.
9232         * modules/unictype/property-non-break-tests (Files): Likewise.
9233         * modules/unictype/property-not-a-character-tests (Files): Likewise.
9234         * modules/unictype/property-numeric-tests (Files): Likewise.
9235         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
9236         * modules/unictype/property-other-default-ignorable-code-point-tests
9237         (Files): Likewise.
9238         * modules/unictype/property-other-grapheme-extend-tests (Files):
9239         Likewise.
9240         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
9241         * modules/unictype/property-other-id-start-tests (Files): Likewise.
9242         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
9243         * modules/unictype/property-other-math-tests (Files): Likewise.
9244         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
9245         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
9246         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
9247         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
9248         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
9249         * modules/unictype/property-private-use-tests (Files): Likewise.
9250         * modules/unictype/property-punctuation-tests (Files): Likewise.
9251         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
9252         * modules/unictype/property-radical-tests (Files): Likewise.
9253         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
9254         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
9255         * modules/unictype/property-space-tests (Files): Likewise.
9256         * modules/unictype/property-terminal-punctuation-tests (Files):
9257         Likewise.
9258         * modules/unictype/property-test-tests (Files): Likewise.
9259         * modules/unictype/property-titlecase-tests (Files): Likewise.
9260         * modules/unictype/property-unassigned-code-value-tests (Files):
9261         Likewise.
9262         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
9263         * modules/unictype/property-uppercase-tests (Files): Likewise.
9264         * modules/unictype/property-variation-selector-tests (Files): Likewise.
9265         * modules/unictype/property-white-space-tests (Files): Likewise.
9266         * modules/unictype/property-xid-continue-tests (Files): Likewise.
9267         * modules/unictype/property-xid-start-tests (Files): Likewise.
9268         * modules/unictype/property-zero-width-tests (Files): Likewise.
9269         * modules/unictype/scripts-tests (Files): Likewise.
9270         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
9271         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
9272         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
9273         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
9274         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
9275         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
9276         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
9277         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
9278         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
9279         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
9280         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
9281         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
9282         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
9283         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
9284         * modules/uninorm/composition-tests (Files): Likewise.
9285         * modules/uninorm/decomposing-form-tests (Files): Likewise.
9286         * modules/uninorm/decomposition-tests (Files): Likewise.
9287         * modules/uninorm/filter-tests (Files): Likewise.
9288         * modules/uninorm/nfc-tests (Files): Likewise.
9289         * modules/uninorm/nfd-tests (Files): Likewise.
9290         * modules/uninorm/nfkc-tests (Files): Likewise.
9291         * modules/uninorm/nfkd-tests (Files): Likewise.
9292         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
9293         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
9294         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
9295         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
9296         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
9297         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
9298         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
9299         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9300         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
9301         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
9302         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
9303         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
9304         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9305         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
9306         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
9307         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
9308         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
9309         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9310         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
9311         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
9312         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
9313         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
9314         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9315         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
9316         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
9317         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
9318         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
9319         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
9320         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
9321         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
9322         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
9323         * modules/uniwidth/u8-width-tests (Files): Likewise.
9324         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
9325         * modules/uniwidth/u16-width-tests (Files): Likewise.
9326         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
9327         * modules/uniwidth/u32-width-tests (Files): Likewise.
9328         * modules/uniwidth/width-tests (Files): Likewise.
9329         * modules/unlink-tests (Files): Likewise.
9330         * modules/unsetenv-tests (Files): Likewise.
9331         * modules/usleep-tests (Files): Likewise.
9332         * modules/utimens-tests (Files): Likewise.
9333         * modules/utimensat-tests (Files): Likewise.
9334         * modules/vasnprintf-posix-tests (Files): Likewise.
9335         * modules/vasnprintf-tests (Files): Likewise.
9336         * modules/vasprintf-posix-tests (Files): Likewise.
9337         * modules/vasprintf-tests (Files): Likewise.
9338         * modules/vdprintf-posix-tests (Files): Likewise.
9339         * modules/vfprintf-posix-tests (Files): Likewise.
9340         * modules/vprintf-posix-tests (Files): Likewise.
9341         * modules/vsnprintf-posix-tests (Files): Likewise.
9342         * modules/vsnprintf-tests (Files): Likewise.
9343         * modules/vsprintf-posix-tests (Files): Likewise.
9344         * modules/wcrtomb-tests (Files): Likewise.
9345         * modules/wcsnrtombs-tests (Files): Likewise.
9346         * modules/wcsrtombs-tests (Files): Likewise.
9347         * modules/wctype-tests (Files): Likewise.
9348         * modules/wcwidth-tests (Files): Likewise.
9349         * modules/xmemdup0-tests (Files): Likewise.
9350         * modules/xprintf-posix-tests (Files): Likewise.
9351         * modules/xvasprintf-tests (Files): Likewise.
9352
9353 2009-12-24  Eric Blake  <ebb9@byu.net>
9354
9355         test-nanosleep: fix typo
9356         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
9357         patch.
9358         Reported by Bruno Haible.
9359
9360 2009-12-24  Bruno Haible  <bruno@clisp.org>
9361
9362         Reduce namespace pollution on glibc systems.
9363         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
9364         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
9365         systems.
9366         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
9367         <getopt.h> on glibc systems.
9368         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
9369         systems.
9370         * lib/fcntl.c: Include <unistd.h> here instead.
9371
9372 2009-12-24  Bruno Haible  <bruno@clisp.org>
9373
9374         * lib/stdlib.in.h (includes): Fix typo in today's commit.
9375
9376 2009-12-24  Eric Blake  <ebb9@byu.net>
9377
9378         tests: add signature checks
9379         * tests/signature.h (SIGNATURE_CHECK): New file.
9380         * modules/atexit-tests (Files): Use it.
9381         * modules/btowc-tests (Files): Likewise.
9382         * modules/canonicalize-lgpl-tests (Files): Likewise.
9383         * modules/ceilf-tests (Files): Likewise.
9384         * modules/ceill-tests (Files): Likewise.
9385         * modules/chown-tests (Files): Likewise.
9386         * modules/dprintf-posix-tests (Files): Likewise.
9387         * modules/dup2-tests (Files): Likewise.
9388         * modules/dup3-tests (Files): Likewise.
9389         * modules/duplocale-tests (Files): Likewise.
9390         * modules/fchdir-tests (Files): Likewise.
9391         * modules/fcntl-tests (Files): Likewise.
9392         * modules/fdopendir-tests (Files): Likewise.
9393         * modules/fflush-tests (Files): Likewise.
9394         * modules/flock-tests (Files): Likewise.
9395         * modules/floorf-tests (Files): Likewise.
9396         * modules/floorl-tests (Files): Likewise.
9397         * modules/fnmatch-tests (Files): Likewise.
9398         * modules/fopen-tests (Files): Likewise.
9399         * modules/fprintf-posix-tests (Files): Likewise.
9400         * modules/freopen-tests (Files): Likewise.
9401         * modules/frexp-nolibm-tests (Files): Likewise.
9402         * modules/frexp-tests (Files): Likewise.
9403         * modules/frexpl-nolibm-tests (Files): Likewise.
9404         * modules/frexpl-tests (Files): Likewise.
9405         * modules/fseek-tests (Files): Likewise.
9406         * modules/fseeko-tests (Files): Likewise.
9407         * modules/fsync-tests (Files): Likewise.
9408         * modules/ftell-tests (Files): Likewise.
9409         * modules/ftello-tests (Files): Likewise.
9410         * modules/futimens-tests (Files): Likewise.
9411         * modules/getaddrinfo-tests (Files): Likewise.
9412         * modules/getcwd-tests (Files): Likewise.
9413         * modules/getdelim-tests (Files): Likewise.
9414         * modules/getdtablesize-tests (Files): Likewise.
9415         * modules/getgroups-tests (Files): Likewise.
9416         * modules/gethostname-tests (Files): Likewise.
9417         * modules/getline-tests (Files): Likewise.
9418         * modules/getopt-posix-tests (Files): Likewise.
9419         * modules/gettimeofday-tests (Files): Likewise.
9420         * modules/glob-tests (Files): Likewise.
9421         * modules/iconv-tests (Files): Likewise.
9422         * modules/inet_ntop-tests (Files): Likewise.
9423         * modules/inet_pton-tests (Files): Likewise.
9424         * modules/isblank-tests (Files): Likewise.
9425         * modules/lchown-tests (Files): Likewise.
9426         * modules/ldexpl-tests (Files): Likewise.
9427         * modules/link-tests (Files): Likewise.
9428         * modules/linkat-tests (Files): Likewise.
9429         * modules/lseek-tests (Files): Likewise.
9430         * modules/lstat-tests (Files): Likewise.
9431         * modules/mbrtowc-tests (Files): Likewise.
9432         * modules/mbsinit-tests (Files): Likewise.
9433         * modules/mbsnrtowcs-tests (Files): Likewise.
9434         * modules/mbsrtowcs-tests (Files): Likewise.
9435         * modules/memchr-tests (Files): Likewise.
9436         * modules/memcmp-tests (Files): Likewise.
9437         * modules/memmem-tests (Files): Likewise.
9438         * modules/memrchr-tests (Files): Likewise.
9439         * modules/mkdir-tests (Files): Likewise.
9440         * modules/mkfifo-tests (Files): Likewise.
9441         * modules/mkfifoat-tests (Files): Likewise.
9442         * modules/mknod-tests (Files): Likewise.
9443         * modules/nanosleep-tests (Files): Likewise.
9444         * modules/nl_langinfo-tests (Files): Likewise.
9445         * modules/obstack-printf-tests (Files): Likewise.
9446         * modules/open-tests (Files): Likewise.
9447         * modules/openat-tests (Files): Likewise.
9448         * modules/perror-tests (Files): Likewise.
9449         * modules/pipe2-tests (Files): Likewise.
9450         * modules/poll-tests (Files): Likewise.
9451         * modules/popen-tests (Files): Likewise.
9452         * modules/posix_spawn-tests (Files): Likewise.
9453         * modules/posix_spawnp-tests (Files): Likewise.
9454         * modules/pread-tests (Files): Likewise.
9455         * modules/printf-posix-tests (Files): Likewise.
9456         * modules/pty-tests (Files): Likewise.
9457         * modules/random_r-tests (Files): Likewise.
9458         * modules/rawmemchr-tests (Files): Likewise.
9459         * modules/readlink-tests (Files): Likewise.
9460         * modules/remove-tests (Files): Likewise.
9461         * modules/rename-tests (Files): Likewise.
9462         * modules/renameat-tests (Files): Likewise.
9463         * modules/rmdir-tests (Files): Likewise.
9464         * modules/round-tests (Files): Likewise.
9465         * modules/roundf-tests (Files): Likewise.
9466         * modules/roundl-tests (Files): Likewise.
9467         * modules/select-tests (Files): Likewise.
9468         * modules/setenv-tests (Files): Likewise.
9469         * modules/sigaction-tests (Files): Likewise.
9470         * modules/sleep-tests (Files): Likewise.
9471         * modules/snprintf-posix-tests (Files): Likewise.
9472         * modules/snprintf-tests (Files): Likewise.
9473         * modules/sprintf-posix-tests (Files): Likewise.
9474         * modules/stat-tests (Files): Likewise.
9475         * modules/strcasestr-tests (Files): Likewise.
9476         * modules/strchrnul-tests (Files): Likewise.
9477         * modules/strerror-tests (Files): Likewise.
9478         * modules/strsignal-tests (Files): Likewise.
9479         * modules/strstr-tests (Files): Likewise.
9480         * modules/strtod-tests (Files): Likewise.
9481         * modules/strverscmp-tests (Files): Likewise.
9482         * modules/symlink-tests (Files): Likewise.
9483         * modules/symlinkat-tests (Files): Likewise.
9484         * modules/times-tests (Files): Likewise.
9485         * modules/trunc-tests (Files): Likewise.
9486         * modules/truncf-tests (Files): Likewise.
9487         * modules/truncl-tests (Files): Likewise.
9488         * modules/tsearch-tests (Files): Likewise.
9489         * modules/uname-tests (Files): Likewise.
9490         * modules/unlink-tests (Files): Likewise.
9491         * modules/unsetenv-tests (Files): Likewise.
9492         * modules/usleep-tests (Files): Likewise.
9493         * modules/utimensat-tests (Files): Likewise.
9494         * modules/vasprintf-tests (Files): Likewise.
9495         * modules/vdprintf-posix-tests (Files): Likewise.
9496         * modules/vfprintf-posix-tests (Files): Likewise.
9497         * modules/vprintf-posix-tests (Files): Likewise.
9498         * modules/vsnprintf-posix-tests (Files): Likewise.
9499         * modules/vsnprintf-tests (Files): Likewise.
9500         * modules/vsprintf-posix-tests (Files): Likewise.
9501         * modules/wcrtomb-tests (Files): Likewise.
9502         * modules/wcsnrtombs-tests (Files): Likewise.
9503         * modules/wcsrtombs-tests (Files): Likewise.
9504         * modules/wcwidth-tests (Files): Likewise.
9505         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9506         * tests/test-isinf.c (isinf): Likewise.
9507         * tests/test-isnan.c (isnan): Likewise.
9508         * tests/test-signbit.c (signbit): Likewise.
9509         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9510         declaration, either as macro or with correct signature.
9511         (select): Ensure function under test is declared with correct
9512         signature in correct header.
9513         * tests/test-atexit.c (atexit): Likewise.
9514         * tests/test-btowc.c (btowc): Likewise.
9515         * tests/test-canonicalize-lgpl.c (realpath)
9516         (canonicalize_file_name): Likewise.
9517         * tests/test-ceilf1.c (ceilf): Likewise.
9518         * tests/test-ceill.c (ceill): Likewise.
9519         * tests/test-chown.c (chown): Likewise.
9520         * tests/test-dprintf-posix.c (dprintf): Likewise.
9521         * tests/test-dup2.c (dup2): Likewise.
9522         * tests/test-dup3.c (dup3): Likewise.
9523         * tests/test-duplocale.c (duplocale): Likewise.
9524         * tests/test-fchdir.c (fchdir): Likewise.
9525         * tests/test-fchownat.c (fchownat): Likewise.
9526         * tests/test-fcntl.c (fcntl): Likewise.
9527         * tests/test-fdopendir.c (fdopendir): Likewise.
9528         * tests/test-fflush.c (fflush): Likewise.
9529         * tests/test-flock.c (flock): Likewise.
9530         * tests/test-floorf1.c (floorf): Likewise.
9531         * tests/test-floorl.c (floorl): Likewise.
9532         * tests/test-fnmatch.c (fnmatch): Likewise.
9533         * tests/test-fopen.c (fopen): Likewise.
9534         * tests/test-fprintf-posix.c (fprintf): Likewise.
9535         * tests/test-freopen.c (freopen): Likewise.
9536         * tests/test-frexp.c (frexp): Likewise.
9537         * tests/test-frexpl.c (frexpl): Likewise.
9538         * tests/test-fseek.c (fseek): Likewise.
9539         * tests/test-fseeko.c (fseeko): Likewise.
9540         * tests/test-fstatat.c (fstatat): Likewise.
9541         * tests/test-fsync.c (fsync): Likewise.
9542         * tests/test-ftell.c (ftell): Likewise.
9543         * tests/test-ftello.c (ftello): Likewise.
9544         * tests/test-futimens.c (futimens): Likewise.
9545         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9546         (gai_strerror): Likewise.
9547         * tests/test-getcwd.c (getcwd): Likewise.
9548         * tests/test-getdelim.c (getdelim): Likewise.
9549         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9550         * tests/test-getgroups.c (getgroups): Likewise.
9551         * tests/test-gethostname.c (gethostname): Likewise.
9552         * tests/test-getline.c (getline): Likewise.
9553         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9554         Likewise.
9555         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9556         * tests/test-glob.c (glob, globfree): Likewise.
9557         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9558         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9559         * tests/test-inet_pton.c (inet_pton): Likewise.
9560         * tests/test-isblank.c (isblank): Likewise.
9561         * tests/test-lchown.c (lchown): Likewise.
9562         * tests/test-ldexpl.c (ldexpl): Likewise.
9563         * tests/test-link.c (link): Likewise.
9564         * tests/test-linkat.c (linkat): Likewise.
9565         * tests/test-lseek.c (lseek): Likewise.
9566         * tests/test-lstat.c (lstat): Likewise.
9567         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9568         * tests/test-mbsinit.c (mbsinit): Likewise.
9569         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9570         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9571         * tests/test-memchr.c (memchr): Likewise.
9572         * tests/test-memcmp.c (memcmp): Likewise.
9573         * tests/test-memmem.c (memmem): Likewise.
9574         * tests/test-memrchr.c (memrchr): Likewise.
9575         * tests/test-mkdir.c (mkdir): Likewise.
9576         * tests/test-mkdirat.c (mkdirat): Likewise.
9577         * tests/test-mkfifo.c (mkfifo): Likewise.
9578         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9579         * tests/test-mknod.c (mknod): Likewise.
9580         * tests/test-nanosleep.c (nanosleep): Likewise.
9581         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9582         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9583         Likewise.
9584         * tests/test-open.c (open): Likewise.
9585         * tests/test-openat.c (openat): Likewise.
9586         * tests/test-perror.c (perror): Likewise.
9587         * tests/test-pipe2.c (pipe2): Likewise.
9588         * tests/test-poll.c (poll): Likewise.
9589         * tests/test-popen.c (popen, pclose): Likewise.
9590         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9591         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9592         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9593         (posix_spawn_file_actions_destroy)
9594         (posix_spawn_file_actions_addclose)
9595         (posix_spawn_file_actions_addopen)
9596         (posix_spawn_file_actions_adddup2): Likewise.
9597         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9598         * tests/test-pread.c (pread): Likewise.
9599         * tests/test-printf-posix.c (printf): Likewise.
9600         * tests/test-pty.c (openpty, forkpty): Likewise.
9601         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9602         (random_r): Likewise.
9603         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9604         * tests/test-readlink.c (readlink): Likewise.
9605         * tests/test-remove.c (remove): Likewise.
9606         * tests/test-rename.c (rename): Likewise.
9607         * tests/test-renameat.c (renameat): Likewise.
9608         * tests/test-rmdir.c (rmdir): Likewise.
9609         * tests/test-round1.c (round): Likewise.
9610         * tests/test-roundf1.c (roundf): Likewise.
9611         * tests/test-roundl.c (roundl): Likewise.
9612         * tests/test-setenv.c (setenv): Likewise.
9613         * tests/test-sigaction.c (sigaction): Likewise.
9614         * tests/test-sleep.c (sleep): Likewise.
9615         * tests/test-snprintf.c (snprintf): Likewise.
9616         * tests/test-sprintf-posix.c (sprintf): Likewise.
9617         * tests/test-stat.c (stat): Likewise.
9618         * tests/test-stpncpy.c (stpncpy): Likewise.
9619         * tests/test-strcasestr.c (strcasestr): Likewise.
9620         * tests/test-strchrnul.c (strchrnul): Likewise.
9621         * tests/test-strerror.c (strerror): Likewise.
9622         * tests/test-strsignal.c (strsignal): Likewise.
9623         * tests/test-strstr.c (strstr): Likewise.
9624         * tests/test-strtod.c (strtod): Likewise.
9625         * tests/test-strverscmp.c (strverscmp): Likewise.
9626         * tests/test-symlink.c (symlink): Likewise.
9627         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9628         * tests/test-times.c (times): Likewise.
9629         * tests/test-trunc1.c (trunc): Likewise.
9630         * tests/test-truncf1.c (truncf): Likewise.
9631         * tests/test-truncl.c (truncl): Likewise.
9632         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9633         Likewise.
9634         * tests/test-uname.c (uname): Likewise.
9635         * tests/test-unlink.c (unlink): Likewise.
9636         * tests/test-unlinkat.c (unlinkat): Likewise.
9637         * tests/test-unsetenv.c (unsetenv): Likewise.
9638         * tests/test-usleep.c (usleep): Likewise.
9639         * tests/test-utimensat.c (utimensat): Likewise.
9640         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9641         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9642         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9643         * tests/test-vprintf-posix.c (vprintf): Likewise.
9644         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9645         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9646         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9647         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9648         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9649         * tests/test-wcwidth.c (wcwidth): Likewise.
9650
9651         build: pull in conditional headers during GNULIB_POSIXCHECK
9652         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9653         definitions from any conditionally-included headers.
9654         * lib/stdlib.in.h (includes): Likewise.
9655         * lib/unistd.in.h (includes): Likewise.
9656
9657 2009-12-24  Bruno Haible  <bruno@clisp.org>
9658
9659         * tests/test-argv-iter.c: Include header file being tested immediately
9660         after config.h.
9661         * tests/test-base64.c: Likewise.
9662         * tests/test-flock.c: Likewise.
9663         * tests/test-fsync.c: Likewise.
9664         * tests/test-getdate.c: Likewise.
9665         * tests/test-getndelim2.c: Likewise.
9666         * tests/test-isfinite.c: Likewise.
9667         * tests/test-isinf.c: Likewise.
9668         * tests/test-strerror.c: Likewise.
9669         * tests/test-strsignal.c: Likewise.
9670
9671 2009-12-23  Eric Blake  <ebb9@byu.net>
9672
9673         unistd: work around cygwin bug
9674         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9675         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9676         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9677
9678 2009-12-23  Bruno Haible  <bruno@clisp.org>
9679
9680         localename: More tests.
9681         * tests/test-localename.c (SIZEOF): New macro.
9682         (categories): New variable.
9683         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
9684         test_locale_name_default): Add test w.r.t. thread locale.
9685         (test_locale_name_thread): New function.
9686         (main): Invoke it.
9687
9688         localename: Make aware of thread locale.
9689         * lib/localename.h (gl_locale_name_thread): New declaration.
9690         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
9691         behaviour with respect to thread locale.
9692         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
9693         <langinfo.h>, glthread/lock.h.
9694         (SIZE_BITS): New macro.
9695         (string_hash): New function.
9696         (struct hash_node): New type.
9697         (HASH_TABLE_SIZE): New macro.
9698         (struniq_hash_table, struniq_lock): New variables.
9699         (struniq): New function.
9700         (gl_locale_name_thread): New function.
9701         (gl_locale_name): Invoke it.
9702         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
9703         * modules/localename (Depends-on): Add lock.
9704         Reported by Mike Gran <spk121@yahoo.com>.
9705
9706 2009-12-23  Eric Blake  <ebb9@byu.net>
9707
9708         va-args: new module
9709         * modules/va-args: New file.
9710         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
9711         * MODULES.html.sh (Core language properties): Mention it.
9712
9713         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
9714         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
9715         named alias for __attribute__((__unused__)).
9716         * lib/chown.c: Update client.
9717         * lib/fchmodat.c: Likewise.
9718         * lib/fts.c: Likewise.
9719         * lib/getdate.y: Likewise.
9720         * lib/getgroups.c: Likewise.
9721         * lib/getopt.c: Likewise.
9722         * lib/getugroups.c: Likewise.
9723         * lib/mkdir.c: Likewise.
9724         * lib/mkfifo.c: Likewise.
9725         * lib/mkfifoat.c: Likewise.
9726         * lib/mknod.c: Likewise.
9727         * lib/mknodat.c: Likewise.
9728         * lib/readlink.c: Likewise.
9729         * lib/se-context.in.h: Likewise.
9730         * lib/se-selinux.in.h: Likewise.
9731         * lib/sockets.c: Likewise.
9732         * lib/symlink.c: Likewise.
9733         * lib/symlinkat.c: Likewise.
9734         * lib/unicodeio.c: Likewise.
9735         * lib/unistr.h: Likewise.
9736         * tests/test-areadlink.c: Likewise.
9737         * tests/test-areadlinkat.c: Likewise.
9738         * tests/test-filenamecat.c: Likewise.
9739         * tests/test-fseeko.c: Likewise.
9740         * tests/test-ftello.c: Likewise.
9741         * tests/test-getdate.c: Likewise.
9742         * tests/test-getgroups.c: Likewise.
9743         * tests/test-gethostname.c: Likewise.
9744         * tests/test-quotearg.c: Likewise.
9745         * tests/test-version-etc.c: Likewise.
9746         * tests/test-xalloc-die.c: Likewise.
9747         * tests/test-xfprintf-posix.c: Likewise.
9748         * tests/test-xprintf-posix.c: Likewise.
9749         * tests/test-xvasprintf.c: Likewise.
9750
9751         tests: avoid compiler warnings
9752         * tests/test-fcntl.c (main): Delete unused parameters.
9753         * tests/test-freopen-safer.c (main): Likewise.
9754         * tests/test-xalloc-die.c (main): Mark unused parameters.
9755         * tests/test-fseeko.c (main): Likewise.
9756         * tests/test-ftello.c (main): Likewise.
9757         * tests/test-nanosleep.c (main): Avoid declaration warning.
9758         * tests/test-sleep.c (main): Likewise.
9759         * tests/test-unsetenv.c (main): Silence warning about string
9760         literal.
9761         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9762
9763 2009-12-23  Bruno Haible  <bruno@clisp.org>
9764
9765         * tests/test-localename.c (test_locale_name): New function, extracted
9766         from main. Also test mixed situations.
9767         (test_locale_name_posix, test_locale_name_environ,
9768         test_locale_name_default): New functions.
9769         (main): Invoke them all.
9770         * modules/localename-tests (configure.ac): Test for newlocale.
9771
9772 2009-12-23  Bruno Haible  <bruno@clisp.org>
9773
9774         unistd: Ensure getcwd gets declared before being overridden.
9775         * lib/unistd.in.h: Conditionally include <io.h>.
9776
9777 2009-12-22  Bruno Haible  <bruno@clisp.org>
9778
9779         wchar: Diagnose broken combination of glibc and gcc versions and flags.
9780         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
9781         (gl_WCHAR_H): Invoke it.
9782         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
9783         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
9784         Reported by Karl Berry <karl@freefriends.org>.
9785
9786 2009-12-22  Eric Blake  <ebb9@byu.net>
9787
9788         math, unistd: avoid redundant includes
9789         * lib/math.in.h (isnan): No need to re-include <math.h>.
9790         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
9791
9792         getsubopt: work around cygwin bug
9793         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
9794         avoid conflicting with system getsubopt.
9795         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
9796         bug.
9797
9798         getopt: synchronize from glibc
9799         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
9800         parameter order.  Adjust all callers.
9801         (_getopt_internal_r, main): Adjust quoting in error messages.
9802         Drop considerations for outdated POSIX 1003.2 error message.
9803         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
9804         callers.
9805         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
9806
9807         test-getopt: test stderr behavior
9808         * modules/getopt-posix-tests (Depends-on): Add dup2.
9809         * tests/test-getopt.c (ASSERT): Avoid stderr.
9810         (main): Move stderr to a temporary file.
9811         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
9812         Instead, add parameter to inform caller if output occurred.
9813         (test_getopt): Adjust all existing tests to expect silence, and
9814         add new tests of leading ":".
9815         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9816         glibc shortcomings with leading "-:" or "+:" in optstring.
9817         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9818         Likewise.
9819         * doc/posix-functions/getopt.texi (getopt): Likewise.
9820
9821         test-getopt: enhance test
9822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
9823         supports optind=0.
9824         * tests/test-getopt.c (OPTIND_MIN): Move...
9825         * tests/test-getopt.h (OPTIND_MIN): ...here.
9826         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
9827         Require that optind=0 works, since modern BSD supports it in
9828         addition to optreset, and since coreutils expects it.
9829         (test_getopt_long_only): New test.
9830         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9831         glibc shortcomings with 'W;', and enforcement of optind=0.
9832         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9833         Likewise.
9834
9835 2009-12-21  Bruno Haible  <bruno@clisp.org>
9836
9837         localename: Improvements for MacOS X and Cygwin.
9838         * lib/localename.h (gl_locale_name_environ): New declaration.
9839         * lib/localename.c (gl_locale_name_environ): New function, extracted from
9840         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
9841         (gl_locale_name_posix): Invoke it.
9842         (gl_locale_name_default): Add comments. Use Windows native API also on
9843         Cygwin.
9844
9845 2009-12-21  Bruno Haible  <bruno@clisp.org>
9846
9847         Update list of Win32 locale ids.
9848         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
9849         (LANG_SAMI): Renamed from LANG_SAAMI.
9850         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
9851         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
9852         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
9853         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
9854         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
9855         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
9856         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
9857         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
9858         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
9859         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
9860         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
9861         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
9862         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
9863         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
9864         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
9865         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
9866         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
9867         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
9868         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
9869         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
9870         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
9871         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
9872         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
9873         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
9874         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
9875         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
9876         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
9877         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
9878         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
9879         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
9880         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
9881         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
9882         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
9883         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
9884         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
9885         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
9886         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
9887         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
9888         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
9889         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
9890         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
9891         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
9892         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
9893         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
9894         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
9895         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
9896         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
9897         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
9898         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
9899         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
9900         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
9901         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
9902         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
9903         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
9904         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
9905         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
9906         Add more languages and countries for Sami, Sorbian. Add more countries
9907         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
9908         for Pashto. Change country for Syriac, Tswana.
9909
9910 2009-12-21  Eric Blake  <ebb9@byu.net>
9911
9912         test-utimens: avoid spurious failure
9913         * tests/test-chown.h (nap): Factor...
9914         * tests/nap.h: ...into new file.
9915         * tests/test-lchown.h (nap): Avoid duplication.
9916         * tests/test-utimens-common.h (nap): Use shared implementation,
9917         necessary on file systems with 1-second resolution.
9918         * modules/chown-tests (Files): Include new file.
9919         * modules/fdutimensat-tests (Files): Likewise.
9920         * modules/futimens-tests (Files): Likewise.
9921         * modules/lchown-tests (Files): Likewise.
9922         * modules/openat-tests (Files): Likewise.
9923         * modules/utimens-tests (Files): Likewise.
9924         * modules/utimensat-tests (Files): Likewise.
9925
9926 2009-12-19  Eric Blake  <ebb9@byu.net>
9927
9928         futimens, utimensat: work around Linux bug
9929         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
9930         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9931         * lib/utimensat.c (rpl_utimensat): Work around it.
9932         * lib/futimens.c (rpl_futimens): Adjust comment.
9933
9934         utimens: work around Linux ctime bug
9935         * lib/utimens.c (detect_ctime_bug): New helper function.
9936         (update_timespec): Differentiate between workaround needed for
9937         this bug vs. what is needed for systems that lack utimensat.
9938         (fdutimens, lutimens): Work around bug.
9939
9940         utimens: check for ctime update
9941         * tests/test-utimens-common.h (check_ctime): Define.
9942         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
9943         * tests/test-futimens.h (test_futimens): Likewise.
9944         * tests/test-lutimens.h (test_lutimens): Likewise.
9945         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9946         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9947
9948 2009-12-19  Bruno Haible  <bruno@clisp.org>
9949
9950         dprintf-posix: Check against memory leak fixed on 2009-12-15.
9951         * tests/test-dprintf-posix2.sh: New file.
9952         * tests/test-dprintf-posix2.c: New file.
9953         * modules/dprintf-posix-tests (Files): Add them.
9954         (configure.ac): Check for getrlimit and setrlimit.
9955         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9956
9957 2009-12-19  Bruno Haible  <bruno@clisp.org>
9958
9959         fprintf-posix: Check against memory leak fixed on 2009-12-15.
9960         * tests/test-fprintf-posix3.sh: New file.
9961         * tests/test-fprintf-posix3.c: New file.
9962         * modules/fprintf-posix-tests (Files): Add them.
9963         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9964
9965 2009-12-19  Eric Blake  <ebb9@byu.net>
9966
9967         dirfd: fix prototype
9968         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
9969         * lib/dirfd.c (dirfd): Likewise.
9970
9971         canonicalize: reduce memory usage
9972         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
9973         allocation to size.
9974         Reported by Solar Designer <solar@openwall.com>.
9975
9976 2009-12-19  Bruno Haible  <bruno@clisp.org>
9977
9978         New module attribute 'Applicability'.
9979         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
9980         * gnulib-tool: New option --extract-applicability.
9981         (func_usage): Document it.
9982         (sed_extract_prog): Recognize it.
9983         (func_get_applicability): New function.
9984         (func_import): Generalize handling of 'link-warning' module.
9985         * modules/link-warning (Applicability): New section.
9986         * modules/arg-nonnull (Applicability): New section.
9987         Repoted by Simon Josefsson <simon@josefsson.org>.
9988
9989 2009-12-19  Bruno Haible  <bruno@clisp.org>
9990
9991         fflush: tweak
9992         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
9993         * lib/fseeko.c (rpl_fseeko): Likewise.
9994
9995 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
9996
9997         * lib/gl_list.h: Fix typo in comment.
9998
9999 2009-12-16  Eric Blake  <ebb9@byu.net>
10000
10001         fcntl: use to simplify other modules
10002         * modules/cloexec (Depends-on): Add fcntl.
10003         * modules/fchdir (Depends-on): Likewise.
10004         * modules/fd-safer-flag (Depends-on): Likewise.
10005         * modules/unistd-safer (Depends-on): Likewise.
10006         * modules/dup3 (configure.ac): Set module indicator.
10007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
10008         missing.
10009         * lib/fchdir.c (_gl_register_dup): Fix comment.
10010         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
10011         * lib/dup-safer.c (dup_safer): Likewise.
10012         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
10013         * lib/dup3.c (dup3): Likewise.
10014         * tests/test-fchdir.c (main): Enhance test.
10015         Fixes a dup_cloexec bug reported by Ondřej Vašík.
10016
10017         fcntl: port portions of fcntl to mingw
10018         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
10019         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
10020         replacement for mingw.
10021         * modules/fcntl (Description): Update.
10022         (Depends-on): Add dup2.
10023         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
10024         * modules/fcntl-h (Makefile.am): Substitute it.
10025         * lib/fcntl.in.h (fcntl): Update declaration.
10026         (F_DUPFD, F_GETFD): New macros, when needed.
10027         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10028         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
10029         * tests/test-fcntl.c (check_flags, main): Enhance test for items
10030         we now guarantee.
10031
10032         fcntl: work around cygwin bug in F_DUPFD
10033         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
10034         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
10035         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
10036         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
10037         * doc/posix-functions/fcntl.texi (fcntl): Document it.
10038
10039         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
10040         * modules/fcntl (Files): List new files.
10041         (configure.ac): Run a test.
10042         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
10043         * lib/fcntl.c (rpl_fcntl): Likewise.
10044         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
10045         (gl_FCNTL_H): Always replace fcntl.h.
10046         * modules/fcntl-h (Makefile.am): Substitute witnesses.
10047         * lib/fcntl.in.h (fcntl): Declare replacement.
10048         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
10049         needed, plus a witness.
10050         * doc/posix-functions/fcntl.texi (fcntl): Document this.
10051         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10052         * tests/test-fcntl.c: New file.
10053         * modules/fcntl-tests: Likewise.
10054
10055         binary-io: avoid potential compilation warning
10056         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
10057         directives.
10058
10059         fflush: avoid compilation error on NetBSD
10060         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
10061         between off_t and fpos_t, since the latter is sometimes a struct.
10062         * lib/fseeko.c (rpl_fseeko): Likewise.
10063         Reported by Alexander Nasonov <alnsn@yandex.ru>.
10064
10065 2009-12-15  Eric Blake  <ebb9@byu.net>
10066
10067         fcntl-h, stdio, sys_ioctl: fix declarations
10068         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
10069         function must not take arguments.
10070         * lib/sys_ioctl.in.h (ioctl): Likewise.
10071         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
10072         (open): Add a link warning.
10073
10074 2009-12-15  Jim Meyering  <meyering@redhat.com>
10075
10076         areadlink, areadlink-with-size: relax license to LGPLv2+
10077         * modules/areadlink (License): Relax to LGPLv2+.
10078         * modules/areadlink-with-size (License): Likewise.
10079
10080 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
10081             Bruno Haible  <bruno@clisp.org>
10082
10083         *printf: Fix memory leak.
10084         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
10085         * lib/vfprintf.c (vfprintf): Likewise.
10086         * lib/dprintf.c (dprintf): Likewise.
10087         * lib/vdprintf.c (vdprintf): Likewise.
10088
10089 2009-12-14  Eric Blake  <ebb9@byu.net>
10090
10091         accept4: adjust module dependencies
10092         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
10093
10094         utimens: one more try at avoiding compiler warning
10095         * lib/utimens.c (lutimens): Lower scope of result.
10096
10097 2009-12-13  Bruno Haible  <bruno@clisp.org>
10098
10099         Move the malloc checking from module 'list' to new module 'xlist'.
10100         * modules/xlist: New file.
10101         * lib/gl_xlist.h: New file.
10102         * lib/gl_xlist.c: New file.
10103         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
10104         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
10105         gl_list_add_last, gl_list_add_before, gl_list_add_after,
10106         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
10107         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
10108         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
10109         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
10110         gl_sortedlist_nx_add): New declarations.
10111         (struct gl_list_implementation): Rename and change methods accordingly.
10112         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
10113         (gl_list_nx_create): Renamed from gl_list_create.
10114         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10115         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10116         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10117         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10118         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10119         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10120         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10121         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10122         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
10123         gl_list_create_empty.
10124         (gl_list_nx_create): Renamed from gl_list_create.
10125         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10126         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10127         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10128         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10129         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10130         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10131         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10132         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10133         * lib/gl_array_list.c: Don't include xalloc.h.
10134         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
10135         NULL upon out-of-memory.
10136         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
10137         out-of-memory.
10138         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
10139         Change return type to 'int'.
10140         (gl_array_nx_set_at): Renamed from gl_array_set_at.
10141         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10142         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
10143         upon out-of-memory.
10144         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
10145         upon out-of-memory.
10146         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
10147         upon out-of-memory.
10148         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
10149         upon out-of-memory.
10150         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
10151         out-of-memory.
10152         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
10153         Update.
10154         (gl_array_list_implementation): Update.
10155         * lib/gl_carray_list.c: Don't include xalloc.h.
10156         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
10157         Return NULL upon out-of-memory.
10158         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
10159         out-of-memory.
10160         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
10161         Change return type to 'int'.
10162         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
10163         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10164         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
10165         upon out-of-memory.
10166         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
10167         upon out-of-memory.
10168         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
10169         out-of-memory.
10170         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
10171         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
10172         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
10173         Update.
10174         (gl_carray_list_implementation): Update.
10175         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
10176         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
10177         gl_linked_create_empty. Return NULL upon out-of-memory.
10178         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
10179         out-of-memory.
10180         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
10181         Change return type to 'int'. Return -1 upon out-of-memory.
10182         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
10183         out-of-memory.
10184         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
10185         upon out-of-memory.
10186         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
10187         upon out-of-memory.
10188         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
10189         NULL upon out-of-memory.
10190         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
10191         upon out-of-memory.
10192         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
10193         out-of-memory.
10194         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
10195         Update.
10196         * lib/gl_linked_list.c: Don't include xalloc.h.
10197         (gl_linked_list_implementation): Update.
10198         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
10199         (add_to_bucket): Change return type to 'int'.
10200         (gl_linkedhash_list_implementation): Update.
10201         * lib/gl_anytree_list1.h (free_subtree): New function.
10202         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
10203         gl_tree_create_empty. Return NULL upon out-of-memory.
10204         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
10205         Change return type to 'int'. Return -1 upon out-of-memory.
10206         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
10207         out-of-memory.
10208         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
10209         (gl_tree_remove_node): New function, moved here from
10210         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
10211         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
10212         Update.
10213         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
10214         malloc, not xmalloc. Return NULL upon out-of-memory.
10215         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10216         out-of-memory.
10217         (gl_tree_remove_node_from_tree): New function, extracted from
10218         gl_tree_remove_node.
10219         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10220         upon out-of-memory.
10221         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10222         out-of-memory.
10223         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10224         upon out-of-memory.
10225         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10226         upon out-of-memory.
10227         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10228         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
10229         not xmalloc. Return NULL upon out-of-memory.
10230         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10231         out-of-memory.
10232         (gl_tree_remove_node_from_tree): New function, extracted from
10233         gl_tree_remove_node.
10234         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10235         upon out-of-memory.
10236         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10237         out-of-memory.
10238         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10239         upon out-of-memory.
10240         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10241         upon out-of-memory.
10242         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10243         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
10244         gl_anytree_list1.h before gl_anyavltree_list2.h.
10245         (gl_avltree_list_implementation): Update.
10246         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
10247         gl_anytree_list1.h before gl_anyavltree_list2.h.
10248         (gl_rbtree_list_implementation): Update.
10249         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
10250         Change return type to 'int'. Return -1 upon out-of-memory. Use
10251         __builtin_expect.
10252         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
10253         (gl_avltreehash_list_implementation): Update.
10254         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
10255         (gl_rbtreehash_list_implementation): Update.
10256         * modules/array-list (Depends-on): Remove xalloc.
10257         * modules/carray-list (Depends-on): Likewise.
10258         * modules/linked-list (Depends-on): Likewise.
10259         * modules/linkedhash-list (Depends-on): Likewise.
10260         * modules/avltree-list (Depends-on): Likewise.
10261         * modules/rbtree-list (Depends-on): Likewise.
10262         * modules/avltreehash-list (Depends-on): Likewise.
10263         * modules/rbtreehash-list (Depends-on): Likewise.
10264
10265         * modules/xsublist: New file.
10266         * lib/gl_xsublist.h: New file.
10267         * lib/gl_xsublist.c: New file.
10268         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
10269         (gl_sublist_nx_create): New declaration.
10270         * lib/gl_sublist.c: Don't include xalloc.h.
10271         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
10272         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
10273         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
10274         Change return type to 'int'. Return -1 upon out-of-memory.
10275         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
10276         upon out-of-memory.
10277         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
10278         NULL upon out-of-memory.
10279         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
10280         upon out-of-memory.
10281         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
10282         NULL upon out-of-memory.
10283         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
10284         NULL upon out-of-memory.
10285         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
10286         upon out-of-memory.
10287         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
10288         (gl_sublist_list_implementation): Update.
10289         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
10290         upon out-of-memory.
10291         * modules/sublist (Depends-on): Remove xalloc.
10292
10293         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
10294         * tests/test-carray_list.c: Likewise.
10295         * tests/test-linked_list.c: Likewise.
10296         * tests/test-linkedhash_list.c: Likewise.
10297         * tests/test-avltree_list.c: Likewise.
10298         * tests/test-rbtree_list.c: Likewise.
10299         * tests/test-avltreehash_list.c: Likewise.
10300         * tests/test-rbtreehash_list.c: Likewise.
10301         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
10302         * modules/carray-list-tests (Makefile.am): Likewise.
10303         * modules/linked-list-tests (Makefile.am): Likewise.
10304         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10305         * modules/avltree-list-tests (Makefile.am): Likewise.
10306         * modules/rbtree-list-tests (Makefile.am): Likewise.
10307         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10308         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10309
10310         * NEWS: Mention the changes.
10311
10312         * lib/clean-temp.c: Include gl_xlist.h.
10313         * modules/clean-temp (Depends-on): Add xlist.
10314
10315         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
10316         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
10317
10318         * tests/test-array_oset.c: Include gl_xlist.h.
10319         * modules/array-oset-tests (Depends-on): Add xlist.
10320
10321         Reported by José E. Marchesi <jemarch@gnu.org>.
10322
10323 2009-12-13  Bruno Haible  <bruno@clisp.org>
10324
10325         Move the malloc checking from module 'oset' to new module 'xoset'.
10326         * modules/xoset: New file.
10327         * lib/gl_xoset.h: New file.
10328         * lib/gl_xoset.c: New file.
10329         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
10330         declarations.
10331         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
10332         (struct gl_oset_implementation): Rename and change methods accordingly.
10333         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
10334         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10335         'int'. Mark as __warn_unused_result__.
10336         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
10337         gl_oset_create_empty.
10338         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10339         'int'.
10340         * lib/gl_array_oset.c: Don't include xalloc.h.
10341         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
10342         malloc, not xmalloc.
10343         (grow): Change return type to 'int'. Don't call xalloc_die.
10344         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
10345         to 'int'.
10346         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
10347         'int'.
10348         (gl_array_oset_implementation): Update.
10349         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
10350         gl_tree_create_empty.
10351         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
10352         'int'.
10353         * lib/gl_avltree_oset.c: Don't include xalloc.h.
10354         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10355         xmalloc.
10356         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10357         not xmalloc.
10358         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10359         xmalloc.
10360         (gl_avltree_oset_implementation): Update.
10361         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
10362         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10363         xmalloc.
10364         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10365         not xmalloc.
10366         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10367         xmalloc.
10368         (gl_rbtree_oset_implementation): Update.
10369         * modules/array-oset (Depends-on): Remove xalloc.
10370         * modules/avltree-oset (Depends-on): Likewise.
10371         * modules/rbtree-oset (Depends-on): Likewise.
10372         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
10373         * tests/test-avltree_oset.c: Likewise.
10374         * tests/test-rbtree_oset.c: Likewise.
10375         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10376         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
10377         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10378         * NEWS: Mention the change.
10379
10380 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
10381
10382         maint.mk: allow a project to override release-prep commands
10383         * top/maint.mk (alpha, beta, stable): Move release-preparatory
10384         commands into a new rule.
10385         (release-prep): New rule.
10386         (release-prep-hook): New overridable variable.
10387
10388 2009-12-13  Bruno Haible  <bruno@clisp.org>
10389
10390         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
10391
10392 2009-12-13  Jim Meyering  <meyering@redhat.com>
10393
10394         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
10395         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
10396
10397 2009-12-12  Bruno Haible  <bruno@clisp.org>
10398
10399         duplocale: Tweak.
10400         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
10401
10402 2009-12-12  Karl Berry  <karl@gnu.org>
10403
10404         * config/srclist.txt (strtoll.c): tab changes, no more sync.
10405
10406 2009-12-12  Bruno Haible  <bruno@clisp.org>
10407
10408         * m4/po.m4: Undo incorrect untabification.
10409
10410 2009-12-12  Bruno Haible  <bruno@clisp.org>
10411
10412         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
10413         * modules/c-strtod (Depends-on): Add locale.
10414         * modules/c-strtold (Depends-on): Likewise.
10415
10416 2009-12-12  Bruno Haible  <bruno@clisp.org>
10417
10418         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
10419
10420 2009-12-11  Eric Blake  <ebb9@byu.net>
10421
10422         setenv: relax requirement in light of POSIX ruling
10423         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
10424         not NULL.
10425         * tests/test-setenv.c (main): Relax test.
10426         * tests/test-unsetenv.c (main): Likewise.
10427         * doc/posix-functions/setenv.texi (setenv): Document this.
10428         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10429
10430 2009-12-11  Bruno Haible  <bruno@clisp.org>
10431
10432         New module 'fd-safer-flag'.
10433         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
10434         * lib/dup-safer.c (dup_safer_flag): Remove function.
10435         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
10436         * lib/fd-safer.c (fd_safer_flag): Remove function.
10437         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
10438         * modules/cloexec (configure.ac): Drop indicator macro.
10439         * modules/fd-safer-flag: New file.
10440         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
10441         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
10442         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
10443
10444 2009-12-11  Bruno Haible  <bruno@clisp.org>
10445
10446         Tests for module 'nl_langinfo'.
10447         * modules/nl_langinfo-tests: New file.
10448         * tests/test-nl_langinfo.sh: New file.
10449         * tests/test-nl_langinfo.c: New file.
10450
10451         New module 'nl_langinfo'.
10452         * lib/nl_langinfo.c: New file.
10453         * m4/nl_langinfo.m4: New file.
10454         * modules/nl_langinfo: New file.
10455         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
10456
10457 2009-12-11  Bruno Haible  <bruno@clisp.org>
10458
10459         Tests for module 'langinfo'.
10460         * modules/langinfo-tests: New file.
10461         * tests/test-langinfo.c: New file.
10462
10463         New module 'langinfo'.
10464         * lib/langinfo.in.h: New file.
10465         * m4/langinfo_h.m4: New file.
10466         * modules/langinfo: New file.
10467         * doc/posix-headers/langinfo.texi: Mention the new module.
10468
10469 2009-12-11  Bruno Haible  <bruno@clisp.org>
10470
10471         * lib/config.charset: Untabify.
10472
10473 2009-12-11  Bruno Haible  <bruno@clisp.org>
10474
10475         * modules/unistd-safer (configure.ac): Drop indicator macro.
10476
10477 2009-12-11  Bruno Haible  <bruno@clisp.org>
10478
10479         Move pipe2-safer code to its own file.
10480         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
10481         * lib/pipe-safer.c (pipe2_safer): Remove function.
10482         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
10483         (Makefile.am): Add it to lib_SOURCES.
10484
10485 2009-12-10  Bruno Haible  <bruno@clisp.org>
10486
10487         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
10488
10489 2009-12-10  Bruno Haible  <bruno@clisp.org>
10490
10491         Declare which arguments expect non-NULL values, for GCC and clang.
10492         * build-aux/arg-nonnull.h: New file.
10493         * modules/arg-nonnull: New file.
10494         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10495         (inet_ntop, inet_pton): Use it.
10496         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10497         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10498         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10499         (open, openat): Use it.
10500         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10501         (fnmatch): Use it.
10502         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10503         (getopt, getopt_long, getopt_long_only): Use it.
10504         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10505         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10506         Use it.
10507         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10508         (iconv_open): Use it.
10509         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10510         (strtoimax, strtoumax): Use it.
10511         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10512         (duplocale): Use it.
10513         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10514         (frexp, frexpl): Use it.
10515         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10516         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10517         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10518         (tsearch, tfind, tdelete, twalk): Use it.
10519         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10520         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10521         sigpending): Use it.
10522         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10523         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10524         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10525         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10526         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10527         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10528         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10529         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10530         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10531         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10532         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10533         Use it.
10534         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10535         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10536         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10537         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10538         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10539         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10540         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10541         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10542         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10543         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10544         strtoull, unsetenv): Use it.
10545         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10546         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10547         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10548         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10549         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10550         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10551         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10552         (strcasecmp, strncasecmp): Use it.
10553         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10554         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10555         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10556         rpl_setsockopt): Use it.
10557         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10558         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10559         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10560         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10561         (gettimeofday): Use it.
10562         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10563         (times): Use it.
10564         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10565         (uname): Use it.
10566         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10567         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10568         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10569         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10570         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10571         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10572         unlinkat, write): Use it.
10573         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10574         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10575         * lib/argv-iter.h: Include arg-nonnull.h.
10576         (_ATTRIBUTE_NONNULL_): Remove macro.
10577         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10578         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10579         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10580         optimization.
10581         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10582         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10583         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10584         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10585         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10586         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10587         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10588         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10589         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10590         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10591         * modules/dirent (Depends-on): Add arg-nonnull.
10592         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10593         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10594         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10595         * modules/fnmatch (Depends-on): Add arg-nonnull.
10596         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10597         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10598         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10599         * modules/glob (Depends-on): Add arg-nonnull.
10600         (Makefile.am): Insert arg-nonnull.h into glob.h.
10601         * modules/iconv_open (Depends-on): Add arg-nonnull.
10602         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10603         * modules/inttypes (Depends-on): Add arg-nonnull.
10604         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10605         * modules/locale (Depends-on): Add arg-nonnull.
10606         (Makefile.am): Insert arg-nonnull.h into locale.h.
10607         * modules/math (Depends-on): Add arg-nonnull.
10608         (Makefile.am): Insert arg-nonnull.h into math.h.
10609         * modules/netdb (Depends-on): Add arg-nonnull.
10610         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10611         * modules/search (Depends-on): Add arg-nonnull.
10612         (Makefile.am): Insert arg-nonnull.h into search.h.
10613         * modules/signal (Depends-on): Add arg-nonnull.
10614         (Makefile.am): Insert arg-nonnull.h into signal.h.
10615         * modules/spawn (Depends-on): Add arg-nonnull.
10616         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10617         * modules/stdio (Depends-on): Add arg-nonnull.
10618         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10619         * modules/stdlib (Depends-on): Add arg-nonnull.
10620         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10621         * modules/string (Depends-on): Add arg-nonnull.
10622         (Makefile.am): Insert arg-nonnull.h into string.h.
10623         * modules/strings (Depends-on): Add arg-nonnull.
10624         (Makefile.am): Insert arg-nonnull.h into strings.h.
10625         * modules/sys_socket (Depends-on): Add arg-nonnull.
10626         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10627         * modules/sys_stat (Depends-on): Add arg-nonnull.
10628         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10629         * modules/sys_time (Depends-on): Add arg-nonnull.
10630         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10631         * modules/sys_times (Depends-on): Add arg-nonnull.
10632         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10633         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10634         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10635         * modules/time (Depends-on): Add arg-nonnull.
10636         (Makefile.am): Insert arg-nonnull.h into time.h.
10637         * modules/unistd (Depends-on): Add arg-nonnull.
10638         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10639         * modules/wchar (Depends-on): Add arg-nonnull.
10640         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10641         * modules/argv-iter (Depends-on): Add arg-nonnull.
10642         * tests/test-canonicalize.c (null_ptr): New function.
10643         (main): Use it.
10644         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10645         (main): Use it.
10646         * tests/test-memmem.c (null_ptr): New function.
10647         (main): Use it.
10648         Reported by Jim Meyering.
10649
10650 2009-12-10  Bruno Haible  <bruno@clisp.org>
10651
10652         Use spaces for indentation, not tabs.
10653         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10654         * m4/*.m4: Untabify.
10655         * build-aux/*.h: Untabify.
10656         * tests/**/*.[hc]: Untabify.
10657         * README: New section "Indent with spaces, not TABs", based on
10658         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10659         * NEWS: Mention the change.
10660
10661 2009-12-10  Bruno Haible  <bruno@clisp.org>
10662
10663         pty test: Fix link error.
10664         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10665         test_pty_LDADD.
10666
10667 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10668
10669         * modules/pty: New file.
10670         * modules/pty-tests: New file.
10671         * m4/pty.m4: New file.
10672         * tests/test-pty.c: New file.
10673         * doc/glibc-headers/pty.texi: Modified.
10674         * doc/glibc-functions/forkpty.texi: Modified.
10675         * doc/glibc-functions/openpty.texi: Modified.
10676
10677 2009-12-10  Bruno Haible  <bruno@clisp.org>
10678
10679         Avoid syntax error in C++ mode.
10680         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
10681
10682 2009-12-10  Bruno Haible  <bruno@clisp.org>
10683
10684         Use sed with option -e.
10685         * gnulib-tool (func_version, func_emit_copyright_notice,
10686         func_emit_initmacro_end, func_import, func_create_testdir): Pass
10687         option -e to sed.
10688         * modules/link-warning (Makefile.am): Likewise.
10689
10690 2009-12-10  Jim Meyering  <meyering@redhat.com>
10691
10692         mgetgroups: do not write bytes beyond end of malloc'd buffer
10693         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
10694         username, we call getgroups with a one-element-shorter buffer,
10695         but still told it the length was original, max_n_groups.
10696
10697 2009-12-09  Eric Blake  <ebb9@byu.net>
10698
10699         cloexec: relax license
10700         * modules/cloexec (Maintainer): Add myself.
10701         (License): Use LGPL, not GPL.
10702
10703         link-warning: optimize generation
10704         * modules/link-warning (Makefile.am): Reduce process usage.
10705
10706 2009-12-09  Bruno Haible  <bruno@clisp.org>
10707
10708         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
10709         workaround was added on 2009-11-17.
10710
10711 2009-12-09  Jim Meyering  <meyering@redhat.com>
10712             Bruno Haible  <bruno@clisp.org>
10713
10714         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
10715         * modules/link-warning (Makefile.am): Make the comment-removing sed
10716         command more robust in the face of bootstrap-prepended comment lines.
10717
10718 2009-12-09  Bruno Haible  <bruno@clisp.org>
10719
10720         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
10721         most one group.
10722
10723 2009-12-09  Simon Josefsson <simon@josefsson.org>
10724             Bruno Haible  <bruno@clisp.org>
10725
10726         * build-aux/link-warning.h: Add copyright notice.
10727         * modules/link-warning (Makefile.am): Generate link-warning.h from
10728         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
10729         * NEWS: Mention change in link-warning module.
10730         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
10731         * modules/dirent (Makefile.am): Add dependency to dirent.h.
10732         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
10733         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
10734         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
10735         * modules/math (Makefile.am): Add dependency to math.h.
10736         * modules/search (Makefile.am): Add dependency to search.h.
10737         * modules/signal (Makefile.am): Add dependency to signal.h.
10738         * modules/spawn (Makefile.am): Add dependency to spawn.h.
10739         * modules/stdio (Makefile.am): Add dependency to stdio.h.
10740         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
10741         * modules/string (Makefile.am): Add dependency to string.h.
10742         * modules/strings (Makefile.am): Add dependency to strings.h.
10743         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
10744         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
10745         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
10746         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
10747         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
10748         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
10749         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
10750         * modules/unistd (Makefile.am): Add dependency to unistd.h.
10751         * modules/wchar (Makefile.am): Add dependency to wchar.h.
10752
10753 2009-12-09  Bruno Haible  <bruno@clisp.org>
10754
10755         fchdir: Optimize away rpl_fstat when possible.
10756         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
10757         REPLACE_OPEN_DIRECTORY.
10758         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
10759
10760 2009-12-09  Bruno Haible  <bruno@clisp.org>
10761
10762         * lib/fchdir.c: Update comment.
10763
10764 2009-12-09  Bruno Haible  <bruno@clisp.org>
10765
10766         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
10767
10768 2009-12-08  Eric Blake  <ebb9@byu.net>
10769
10770         fchdir: avoid memory leak on re-registration.
10771         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
10772
10773 2009-12-08  Jim Meyering  <meyering@redhat.com>
10774
10775         init.sh: avoid Solaris 10 /bin/sh portability problem
10776         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
10777         sourced script:
10778           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
10779           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
10780           bar
10781         tests/init.sh relied on that, accepting a --set-path=DIR argument,
10782         and two tests used that idiom.
10783         * tests/init.sh: Update suggested usage comments.
10784         (path_prepend_): New function, to be used in place
10785         of the --src-path=DIR option.
10786         (setup_): Move PATH-prepending code into path_prepend_.
10787         * tests/test-pread.sh: Adapt to new usage.
10788         * tests/test-xalloc-die.sh: Likewise.
10789
10790 2009-12-08  Simon Josefsson  <simon@josefsson.org>
10791
10792         * doc/gnulib.texi (Glibc pty.h): Add.
10793         * doc/glibc-functions/forkpty.texi: Add.
10794         * doc/glibc-functions/openpty.texi: Add.
10795         Suggested by Bruno Haible.
10796
10797 2009-12-08  Eric Blake  <ebb9@byu.net>
10798
10799         fchdir: fix logic bugs
10800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
10801         * tests/test-fchdir.c (main): Enhance test.
10802         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
10803         is in use.
10804
10805         dup2: fix logic bugs
10806         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
10807         REPLACE_DUP2 to decide when rpl_dup2 is needed.
10808         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
10809         exists.
10810         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
10811
10812 2009-12-07  Eric Blake  <ebb9@byu.net>
10813
10814         unlink: fix m4 detection
10815         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
10816
10817         unistd-safer: add unit test
10818         * modules/unistd-safer-tests: New file.
10819         * tests/test-dup-safer.c: Likewise.
10820         * tests/test-cloexec.c (setmode): Avoid compiler warning.
10821         * tests/test-dup2.c (setmode): Likewise.
10822         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
10823
10824         cloexec: preserve text vs. binary across dup_cloexec
10825         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
10826         mode.
10827         * modules/dup2-tests (Depends-on): Add binary-io.
10828         * modules/cloexec-tests (Depends-on): Likewise.
10829         * tests/test-dup2.c (setmode, is_mode): New helpers.
10830         (main): Add tests that translation mode is preserved.
10831         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
10832         Reported by Bruno Haible.
10833
10834         mgetgroups: reduce duplicate listings
10835         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
10836         resulting array.
10837         * tests/test-chown.h (test_chown): Simplify client.
10838         * tests/test-lchown.h (test_lchown): Likewise.
10839
10840 2009-12-06  Bruno Haible  <bruno@clisp.org>
10841
10842         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
10843         value.
10844
10845 2009-12-06  Bruno Haible  <bruno@clisp.org>
10846
10847         * lib/progname.c: Include stdio.h, stdlib.h.
10848         (set_program_name): Reject a NULL argument.
10849
10850 2009-12-05  Eric Blake  <ebb9@byu.net>
10851
10852         pipe2-safer: new module
10853         * modules/pipe2-safer: New file.
10854         * lib/unistd-safer.h (pipe2_safer): New prototype.
10855         * lib/unistd--.h (pipe2): New wrapper.
10856         * lib/pipe-safer.c (pipe2_safer): New function.
10857         * modules/pipe (Depends-on): Add pipe2-safer.
10858         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
10859
10860         stdlib-safer: preserve cloexec flag for mkostemp[s]
10861         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
10862         fd_safer_flag.
10863
10864         unistd-safer: allow preservation of cloexec status via flag
10865         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
10866         prototypes.
10867         * lib/dup-safer.c (dup_safer_flag): New function.
10868         * lib/fd-safer.c (fd_safer_flag): Likewise.
10869         * modules/cloexec (configure.ac): Set witness.
10870
10871         test-dup2: enhance test
10872         * modules/dup2-tests (Depends-on): Add cloexec.
10873         * tests/test-dup2.c (main): Enhance test.
10874
10875         cloexec: add dup_cloexec
10876         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
10877         header and comments.
10878         * lib/cloexec.c (set_cloexec_flag): Add comments.
10879         (dup_cloexec): New function, with mingw implementation borrowed
10880         from...
10881         * lib/w32spawn.h (dup_noinherit): ...here.
10882         * modules/execute (Depends-on): Add cloexec.
10883         * modules/pipe (Depends-on): Likewise.
10884         * modules/cloexec (Depends-on): Add dup2.
10885         * modules/cloexec-tests (Files): New file.
10886         * tests/test-cloexec.c: Likewise.
10887
10888         test-xalloc-die: fix test for mingw
10889         * modules/xalloc-die-tests (Files): Add tests/init.sh.
10890         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
10891         directory and .exe suffix off argv[0] output.
10892
10893         test-fseeko: fix test for mingw
10894         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
10895         than undefining fseek, so test will pass on mingw.
10896
10897 2009-12-05  Bruno Haible  <bruno@clisp.org>
10898
10899         * lib/progname.h (set_program_name): Clarify specification.
10900         * lib/progname.c (set_program_name): Likewise.
10901         Reported by Jim Meyering.
10902
10903 2009-12-05  Jim Meyering  <meyering@redhat.com>
10904
10905         maint.mk: backslash-escape parens in default regexp
10906         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
10907         backslash-escape the literal parentheses.
10908
10909         maint.mk: news-date-check: use grep -E
10910         * top/maint.mk (today): Define a Make variable, not a...
10911         (news-date-check): ...shell variable.
10912         (news-date-regexp): Use the Make variable.
10913         Use grep's -E option.  Change the failing diagnostic to mention
10914         the variable, $(news-date-regexp).
10915
10916 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
10917
10918         maintainer-makefile: allow customization of NEWS entry format
10919         * top/maint.mk (news-date-regexp): New overridable variable.
10920         (news-date-check): Use it.
10921
10922 2009-12-04  Eric Blake  <ebb9@byu.net>
10923
10924         mgetgroups: add xgetgroups, and avoid ENOSYS failures
10925         * lib/mgetgroups.h (xgetgroups): New prototype.
10926         * lib/mgetgroups.c (xgetgroups): New wrapper.
10927         (mgetgroups): Handle ENOSYS.
10928         * modules/mgetgroups (Depends-on): Add realloc.
10929         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
10930
10931         mgetgroups: avoid argument promotion issues with -1
10932         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
10933         for invalid gid_t.
10934         * tests/test-chown.h (getegid, test_chown): Likewise.
10935         * tests/test-lchown.h (getegid, test_lchown): Likewise.
10936
10937 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
10938
10939         exclude: Fix header file problems.
10940         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
10941
10942 2009-12-01  Jim Meyering  <meyering@redhat.com>
10943
10944         fts: fts_open: do not let an empty string cause immediate failure
10945         This is required in support of GNU rm, for which the command
10946         "rm A '' B" must process and remove both A and B, in spite of
10947         the empty string argument.
10948         * lib/fts.c (fts_open): Do not let the presence of an empty string
10949         cause fts_open to fail immediately.  Most fts-using tools must be
10950         able to process all arguments, in order, and can be expected to
10951         diagnose such arguments themselves.
10952
10953 2009-11-30  Eric Blake  <ebb9@byu.net>
10954
10955         utimens: fix compilation error
10956         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
10957         Declare variable at right scope.
10958
10959 2009-11-29  Jim Meyering  <meyering@redhat.com>
10960
10961         bootstrap: handle perl-5.11's changed --version output
10962         * build-aux/bootstrap (get_version): Handle perl separately,
10963         since perl-5.11's --version output is different.
10964
10965 2009-11-28  Jim Meyering  <meyering@redhat.com>
10966
10967         userspec: depend on the inttostr module, too
10968         * modules/userspec (Depends-on): Add inttostr.
10969
10970         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
10971         * lib/userspec.c (parse_with_separator): Do not accept a user ID
10972         number of MAXUID when it evaluates to (uid_t) -1.
10973         Likewise for group ID.  Reported by Matt McCutchen in
10974         <http://savannah.gnu.org/bugs/?28113>
10975
10976         userspec: reformat to use spaces, not TABs
10977         * lib/userspec.c: Expand TABs to spaces.
10978         Add Emacs' "indent-tabs-mode: nil" hint.
10979
10980 2009-11-27  Eric Blake  <ebb9@byu.net>
10981
10982         getopt-gnu: flush out another BSD bug
10983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
10984         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
10985         flush out BSD bug.
10986         * tests/test-getopt.h (test_getopt): End lists with NULL.
10987         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10988         (test_getopt_long_posix): Enhance test.
10989         * modules/getopt-posix-tests (Depends-on): Add stdbool.
10990         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
10991         getopt-gnu.
10992         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10993         Likewise.
10994
10995 2009-11-27  Simon Josefsson  <simon@josefsson.org>
10996
10997         * modules/idpriv-droptemp-tests (Notice): Fix text.
10998
10999 2009-11-27  Jim Meyering  <meyering@redhat.com>
11000
11001         test-xalloc-die: avoid spurious failure due to libtool argv difference
11002         In a libtool-enabled project, this test would fail due to a difference
11003         in the emitted program name, e.g.,
11004         -test-xalloc-die: memory exhausted
11005         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
11006         Use program to avoid that.
11007         * modules/xalloc-die-tests (Depends-on): Add progname.
11008         * tests/test-xalloc-die.c: Include progname.h".
11009         (program_name): Remove decl.
11010         (main): Call set_program_name.
11011         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
11012
11013 2009-11-26  Richard Jones  <rjones@redhat.com>
11014
11015         w32sock: leave win32 error in place.
11016         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
11017
11018 2009-11-26  Eric Blake  <ebb9@byu.net>
11019
11020         init.sh: suggest to use skip_ and fail_ functions in comments
11021         * tests/init.sh: Add a sentence.
11022
11023 2009-11-25  Bruno Haible  <bruno@clisp.org>
11024
11025         init.sh: add documentation in comments
11026         * tests/init.sh: Add some developer and user documentation.
11027
11028 2009-11-26  Jim Meyering  <meyering@redhat.com>
11029
11030         init.sh: accommodate even those who specify bogus srcdir manually
11031         * tests/init.sh: Normally, srcdir is guaranteed by automake and
11032         configure-time tests to be sanitized, so that there is no need to
11033         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
11034         (with no double quotes) suffices.  However, since tests may be
11035         invoked manually, and since you may explicitly set srcdir to the
11036         name of a directory containing spaces, do quote its uses here.
11037         * tests/test-pread.sh: Likewise.
11038         Suggested by Bruno Haible.
11039
11040         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
11041         * tests/test-pread.sh: Write no data into the pipe, because
11042         test-pread actually reads none.  This avoids a diagnostic,
11043         "bash: echo: write error: Broken pipe", that arises in the unusual
11044         event something is ignoring SIGPIPE, and might be interpreted
11045         as some sort of failure.  Reported by Bruno Haible.
11046
11047 2009-11-25  Jim Meyering  <meyering@redhat.com>
11048
11049         test-pread: cover failure with ESPIPE and EINVAL
11050         * tests/test-pread.c (main): Test for failure, too.
11051         * tests/test-pread.sh: Invoke with stdin on a pipe.
11052         Suggested by Eric Blake.
11053
11054         pread: improvement and fix
11055         * modules/pread (Depends-on): Depend on lseek, for portability to
11056         e.g., mingw.  Suggested by Eric Blake.
11057         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
11058
11059         unistd.in.h: correct declaration of pread
11060         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
11061         Reported by Richard W.M. Jones.
11062
11063         test-pread.sh: distribute the test script
11064         * modules/pread-tests (Files): Include test-pread.sh.
11065
11066         test-pread.sh: clean up
11067         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
11068         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
11069         That is unnecessary, since it's always ".".
11070         Suggestion from Eric Blake.
11071
11072         test-pread.sh: make executable
11073         * tests/test-pread.sh: Set executable bit.
11074         Reported by Eric Blake.
11075
11076         correct typo in test-pread.sh
11077         * tests/test-pread.sh: Add #! line.
11078
11079         test pread
11080         * tests/test-pread.c: New file.
11081         * tests/test-pread.sh: Likewise.
11082         * modules/pread-tests: Likewise.
11083
11084         pread: new module
11085         * modules/pread: New file.
11086         * lib/unistd.in.h (pread): Define/declare.
11087         * lib/pread.c (pread): New file.
11088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
11089         * modules/unistd (Makefile.am): Substitute witnesses.
11090         * doc/posix-functions/pread.texi (pread): Update.
11091         * MODULES.html.sh: Add pread.
11092
11093 2009-11-25  Jim Meyering  <meyering@redhat.com>
11094
11095         tests/init.sh: new file to be used via most *.sh tests
11096         * tests/init.sh: New file.
11097
11098 2009-11-25  Eric Blake  <ebb9@byu.net>
11099
11100         utimens: work around older Linux failure with symlinks
11101         * lib/utimens.c (lutimensat_works_really): New variable.
11102         (fdutimens, lutimens): Use it to manage kernels that support
11103         nanosecond times on files, but not on symlinks.
11104         Reported by Ondřej Vašík.
11105
11106         utimes: fix configure grammar
11107         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
11108
11109 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
11110
11111         regex: Fix fastmap for multibyte character ranges.
11112         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
11113         characters when a multibyte character range is included.
11114
11115 2009-11-22  Andy Wingo  <wingo@pobox.com>
11116
11117         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
11118         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
11119
11120 2009-11-24  Bruno Haible  <bruno@clisp.org>
11121
11122         doc: Most *_l functions exist in MacOS X 10.5.
11123         * doc/posix-functions/duplocale.texi: Update platforms list.
11124         * doc/posix-functions/freelocale.texi: Likewise.
11125         * doc/posix-functions/newlocale.texi: Likewise.
11126         * doc/posix-functions/uselocale.texi: Likewise.
11127         * doc/posix-functions/isalnum_l.texi: Likewise.
11128         * doc/posix-functions/isalpha_l.texi: Likewise.
11129         * doc/posix-functions/isblank_l.texi: Likewise.
11130         * doc/posix-functions/iscntrl_l.texi: Likewise.
11131         * doc/posix-functions/isdigit_l.texi: Likewise.
11132         * doc/posix-functions/isgraph_l.texi: Likewise.
11133         * doc/posix-functions/islower_l.texi: Likewise.
11134         * doc/posix-functions/isprint_l.texi: Likewise.
11135         * doc/posix-functions/ispunct_l.texi: Likewise.
11136         * doc/posix-functions/isspace_l.texi: Likewise.
11137         * doc/posix-functions/isupper_l.texi: Likewise.
11138         * doc/posix-functions/iswalnum_l.texi: Likewise.
11139         * doc/posix-functions/iswalpha_l.texi: Likewise.
11140         * doc/posix-functions/iswblank_l.texi: Likewise.
11141         * doc/posix-functions/iswcntrl_l.texi: Likewise.
11142         * doc/posix-functions/iswctype_l.texi: Likewise.
11143         * doc/posix-functions/iswdigit_l.texi: Likewise.
11144         * doc/posix-functions/iswgraph_l.texi: Likewise.
11145         * doc/posix-functions/iswlower_l.texi: Likewise.
11146         * doc/posix-functions/iswprint_l.texi: Likewise.
11147         * doc/posix-functions/iswpunct_l.texi: Likewise.
11148         * doc/posix-functions/iswspace_l.texi: Likewise.
11149         * doc/posix-functions/iswupper_l.texi: Likewise.
11150         * doc/posix-functions/iswxdigit_l.texi: Likewise.
11151         * doc/posix-functions/isxdigit_l.texi: Likewise.
11152         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
11153         * doc/posix-functions/strcasecmp_l.texi: Likewise.
11154         * doc/posix-functions/strcoll_l.texi: Likewise.
11155         * doc/posix-functions/strfmon_l.texi: Likewise.
11156         * doc/posix-functions/strftime_l.texi: Likewise.
11157         * doc/posix-functions/strncasecmp_l.texi: Likewise.
11158         * doc/posix-functions/strxfrm_l.texi: Likewise.
11159         * doc/posix-functions/tolower_l.texi: Likewise.
11160         * doc/posix-functions/toupper_l.texi: Likewise.
11161         * doc/posix-functions/towctrans_l.texi: Likewise.
11162         * doc/posix-functions/towlower_l.texi: Likewise.
11163         * doc/posix-functions/towupper_l.texi: Likewise.
11164         * doc/posix-functions/wcscoll_l.texi: Likewise.
11165         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11166         * doc/posix-functions/wctrans_l.texi: Likewise.
11167         * doc/posix-functions/wctype_l.texi: Likewise.
11168         * doc/glibc-functions/strptime_l.texi: Likewise.
11169         * doc/glibc-functions/strtod_l.texi: Likewise.
11170         * doc/glibc-functions/strtof_l.texi: Likewise.
11171         * doc/glibc-functions/strtol_l.texi: Likewise.
11172         * doc/glibc-functions/strtold_l.texi: Likewise.
11173         * doc/glibc-functions/strtoll_l.texi: Likewise.
11174         * doc/glibc-functions/strtoul_l.texi: Likewise.
11175         * doc/glibc-functions/strtoull_l.texi: Likewise.
11176         * doc/glibc-functions/wcsftime_l.texi: Likewise.
11177         * doc/glibc-functions/wcstod_l.texi: Likewise.
11178         * doc/glibc-functions/wcstof_l.texi: Likewise.
11179         * doc/glibc-functions/wcstol_l.texi: Likewise.
11180         * doc/glibc-functions/wcstold_l.texi: Likewise.
11181         * doc/glibc-functions/wcstoll_l.texi: Likewise.
11182         * doc/glibc-functions/wcstoul_l.texi: Likewise.
11183         * doc/glibc-functions/wcstoull_l.texi: Likewise.
11184
11185 2009-11-24  Bruno Haible  <bruno@clisp.org>
11186
11187         duplocale: Fix logic bug.
11188         * lib/duplocale.c: Don't include <langinfo.h>.
11189         (_NL_LOCALE_NAME): Remove macro.
11190         (rpl_duplocale): Use setlocale instead of nl_langinfo.
11191         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
11192
11193 2009-11-23  Jim Meyering  <meyering@redhat.com>
11194
11195         test-update-copyright: don't hard-code /usr/bin/perl
11196         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
11197         perl to print the current year.  Gilles Espinasse reported that
11198         the replaced use of perl was hard-coded as /usr/bin/perl.
11199
11200 2009-11-23  Bruno Haible  <bruno@clisp.org>
11201
11202         duplocale: Add support for glibc 2.3.x.
11203         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
11204
11205 2009-11-22  Bruno Haible  <bruno@clisp.org>
11206
11207         vasnprintf: Tiny optimization.
11208         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
11209         MacOS X.
11210
11211 2009-11-22  Bruno Haible  <bruno@clisp.org>
11212
11213         Tests for module 'duplocale'.
11214         * modules/duplocale-tests: New file.
11215         * tests/test-duplocale.c: New file.
11216
11217         New module 'duplocale'.
11218         * m4/duplocale.m4: New file.
11219         * lib/locale.in.h (duplocale): New declaration.
11220         * lib/duplocale.c: New file.
11221         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
11222         gl_LOCALE_H_DEFAULTS): New macros.
11223         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
11224         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
11225         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
11226         REPLACE_DUPLOCALE.
11227         * modules/duplocale: New file.
11228         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
11229
11230 2009-11-22  Bruno Haible  <bruno@clisp.org>
11231
11232         * modules/locale-tests (configure.ac): Test for newlocale function.
11233         * tests/test-locale.c: When the system has extended locale functions,
11234         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
11235
11236         locale: Make locale_t available when possible.
11237         * lib/locale.in.h: Include <xlocale.h> when it exists.
11238         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
11239         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
11240         * modules/locale (Depends-on): Add extensions.
11241         (Makefile.am): Also substitute HAVE_XLOCALE_H.
11242         * doc/posix-headers/locale.texi: Document the problem with locale_t.
11243
11244 2009-11-22  Bruno Haible  <bruno@clisp.org>
11245
11246         Add comments.
11247         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
11248         invocation.
11249         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11250         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11251         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11252
11253 2009-11-22  Bruno Haible  <bruno@clisp.org>
11254
11255         error: account for the possibility of freopen (stdout).
11256         * lib/error.c: Include <unistd.h>.
11257         (flush_stdout): New function, extracted from error and error_at_line.
11258         Determine stdout's fd dynamically.
11259         (error, error_at_line): Invoke flush_stdout.
11260         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
11261         * modules/error (Depends-on): Add unistd.
11262
11263 2009-11-22  Bruno Haible  <bruno@clisp.org>
11264
11265         diffseq: Add comment.
11266         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
11267
11268 2009-11-22  Jim Meyering  <meyering@redhat.com>
11269
11270         c-stack: avoid defining an unused static function
11271         * lib/c-stack.c (find_stack_direction): Do not define this function
11272         when it will not be used.
11273
11274         diffseq: avoid spurious gcc warnings
11275         * lib/diffseq.h (IF_LINT2): Define.
11276         (compareseq): Use it to initialize two members of "part".
11277         This avoids two used-uninitialized warnings.
11278
11279 2009-11-21  Jim Meyering  <meyering@redhat.com>
11280
11281         c-stack: avoid "ignoring return value of `write'" warning
11282         * lib/c-stack.c: Include "ignore-value.h".
11283         (die): Explicitly ignore each write return value.
11284         * modules/c-stack (Depends-on): Add ignore-value.
11285
11286 2009-11-21  Bruno Haible  <bruno@clisp.org>
11287
11288         diffseq: reduce scope of variable 'best'.
11289         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
11290         variable, earlier used for two different purposes.
11291
11292 2009-11-21  Jim Meyering  <meyering@redhat.com>
11293
11294         diffseq: remove useless assignment to "best"
11295         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
11296         assignment.  At that point "best" is already guaranteed to be zero.
11297
11298 2009-11-20  Eric Blake  <ebb9@byu.net>
11299
11300         build: mention ftp redirector in release announcements
11301         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
11302         values that used to come from cfg.mk; mention FTP redirect URL.
11303         * build-aux/announce-gen: Mention the mirror list.
11304         Suggested by Karl Berry.
11305
11306         nanosleep: improve port to mingw
11307         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
11308         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
11309         LIB_NANOSLEEP, but only when needed.
11310         * modules/select (Link): Document LIBSOCKET.
11311         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
11312         enough.
11313
11314         nanosleep: work around cygwin bug
11315         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
11316         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
11317         bug.
11318         (getnow): Delete, not needed.
11319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
11320         LIB_CLOCK_GETTIME.
11321         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
11322         clock-time, gettime.
11323         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
11324         bug.
11325         * modules/nanosleep-tests: New test.
11326         * tests/test-nanosleep.c: New file.
11327
11328         sleep: work around cygwin bug
11329         * lib/sleep.c (rpl_sleep): Work around the bug.
11330         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
11331         (gl_PREREQ_SLEEP): Delete unused macro.
11332         * modules/sleep (Depends-on): Add verify.
11333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11334         * modules/unistd (Makefile.am): Substitute witness.
11335         * lib/unistd.in.h (sleep): Update prototype.
11336         * doc/posix-functions/sleep.texi (sleep): Document the bug.
11337         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
11338         * modules/sleep-tests (Depends-on): Check for alarm.
11339
11340 2009-11-20  Jim Meyering  <meyering@redhat.com>
11341
11342         maint.mk: improve sc_prohibit_magic_number_exit
11343         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
11344         so it does not match uses like System.exit(1).
11345         Add comments showing how to correct all offenders.
11346
11347 2009-11-19  Eric Blake  <ebb9@byu.net>
11348
11349         xalloc-die-tests: add missing library
11350         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
11351
11352         test-xvasprintf: silence compiler warnings
11353         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
11354         empty string from gcc.
11355
11356 2009-11-19  Jim Meyering  <meyering@redhat.com>
11357
11358         xfreopen: new module, from coreutils
11359         * modules/xfreopen: New module.
11360         * lib/xfreopen.c: New file.
11361         * lib/xfreopen.h: New file.
11362         * MODULES.html.sh (File stream based Input/Output"): Add it.
11363
11364 2009-11-19  Eric Blake  <ebb9@byu.net>
11365
11366         manywarnings: depend on warnings
11367         * modules/manywarnings (Depends-on): Add warnings.
11368
11369         build: avoid compiler warnings
11370         * lib/select.c (rpl_select): Delete unused variable.
11371         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
11372
11373 2009-11-18  Eric Blake  <ebb9@byu.net>
11374
11375         tests: avoid false negative with --with-packager
11376         * tests/test-version-etc.sh: Discard packager information.
11377         * tests/test-argp-version-etc-1.sh: Likewise.
11378         Reported by Mike Frysinger.
11379
11380         utimens: fix regression on Solaris
11381         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
11382         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
11383         can only change fd timestamps via futimesat.  Instead, use an
11384         additional witness macro to avoid BSD bug.
11385         Reported by Jim Meyering.
11386
11387 2009-11-17  Eric Blake  <ebb9@byu.net>
11388
11389         usleep: use it to simplify tests
11390         * modules/stat-time-tests (Depends-on): Add usleep.
11391         (configure.ac): Drop usleep check.
11392         * modules/chown-tests (Depends-on, configure.ac): Likewise.
11393         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
11394         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
11395         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
11396         * modules/openat-tests (Depends-on, configure.ac): Likewise.
11397         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
11398         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
11399         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
11400         Likewise.
11401         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
11402         * tests/test-lchown.h (nap): Likewise.
11403         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
11404         * tests/test-stat-time.c (nap): Likewise.
11405         * tests/test-utimens-common.h (nap): Update comments.
11406
11407         usleep: new module
11408         * modules/usleep: New file.
11409         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11410         * lib/usleep.c (usleep): Likewise.
11411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11412         * modules/unistd (Makefile.am): Substitute witnesses.
11413         * lib/unistd.in.h (usleep): Add declaration.
11414         * doc/pastposix-functions/usleep.texi (usleep): Document this.
11415         * MODULES.html.sh (Date and time): Likewise.
11416         * modules/usleep-tests (Depends-on): New test.
11417         * tests/test-usleep.c: New file.
11418
11419         chown: work around OpenBSD bug
11420         * lib/chown.c (rpl_chown): Work around the bug.
11421         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
11422         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
11423         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
11424         * modules/chown (Depends-on): Add stdbool.
11425         * modules/lchown (Depends-on): Likewise.
11426         * doc/posix-functions/chown.texi (chown): Document the bug.
11427         * doc/posix-functions/lchown.texi (lchown): Likewise.
11428         * tests/test-lchown.h (test_chown): Relax test.
11429
11430         mkstemp: avoid conflict with C++ keyword template
11431         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
11432         * lib/mkostemp.c (mkostemp): Likewise.
11433         * lib/mkostemps.c (mkostemps): Likewise.
11434         * lib/mkstemp.c (mkstemp): Likewise.
11435         * lib/mkstemps.c (mkstemps): Likewise.
11436
11437         xalloc-die-tests: optimize
11438         * tests/test-xalloc-die.sh: Reduce number of processes.
11439
11440 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11441
11442         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
11443         patch from ludo@gnu.org (Ludovic Courtès).
11444
11445 2009-11-17  Jim Meyering  <meyering@redhat.com>
11446
11447         version-etc: use proper license string
11448         * modules/version-etc (License): Use LGPL, not LGPLv3+.
11449         * modules/version-etc-fsf: Likewise.
11450
11451 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11452
11453         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
11454         printed to stdout.  Deal with EOL differences.
11455
11456 2009-11-17  Eric Blake  <ebb9@byu.net>
11457
11458         unsetenv: work around Solaris bug
11459         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
11460         * lib/unsetenv.c (rpl_unsetenv): Work around it.
11461         Reported by Jim Meyering.
11462
11463         vasnprintf: avoid compiler warnings
11464         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
11465         variables.
11466         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
11467
11468 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11469
11470         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
11471         settings since xalloc-die is no longer the self test,
11472         xalloc-die.sh is.
11473
11474 2009-11-17  Jim Meyering  <meyering@redhat.com>
11475
11476         test-xalloc-die.sh: make the code agree with the commit log
11477         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
11478         at the end, just in case you happen to have a test-xalloc-die
11479         program in some other PATH directory.
11480
11481         test-xalloc-die.sh: fix a portability bug
11482         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
11483         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
11484         Otherwise, argv[0] (as often seen in diagnostics) would be too
11485         system-dependent, sometimes with, and sometimes without the leading "./".
11486
11487         version-etc-fsf: relax license to LGPLv3+
11488         * modules/version-etc-fsf (License): Relax license.
11489
11490 2009-11-16  Eric Blake  <ebb9@byu.net>
11491
11492         xalloc-die-tests: avoid printing null pointer
11493         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11494         shell script.
11495         * tests/test-xalloc-die.c (program_name): Declare.
11496         * tests/test-xalloc-die.sh (tmpfiles): New file.
11497
11498         setenv, unsetenv: work around various bugs
11499         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11500         (setenv) [HAVE_SETENV]: Work around bugs.
11501         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11502         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11503         for bugs.
11504         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11505         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11507         * modules/stdlib (Makefile.am): Update substitutions.
11508         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11509         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11510         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11511         * modules/setenv-tests: New test.
11512         * modules/unsetenv-tests: Likewise.
11513         * tests/test-setenv.c: New file.
11514         * tests/test-unsetenv.c: Likewise.
11515
11516 2009-11-16  Jim Meyering  <meyering@redhat.com>
11517
11518         version-etc: relax license to LGPLv3+
11519         * modules/version-etc (License): Relax license.
11520
11521         better AC_REQUIRE expanded-before-required-warning avoidance
11522         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11523         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11524         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11525         which is no longer needed.
11526
11527 2009-11-16  Eric Blake  <ebb9@byu.net>
11528
11529         test-freading: clean up temporary file
11530         * tests/test-freading.c (main): Remove file on success, and use
11531         ASSERT more liberally.
11532         Reported by Jim Meyering.
11533
11534 2009-11-16  Jim Meyering  <meyering@redhat.com>
11535
11536         avoid new AC_REQUIRE expanded-before-required warnings
11537         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11538         merely using it.
11539         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11540         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11541
11542 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11543
11544         * tests/test-xalloc-die.c: New file.
11545         * modules/xalloc-die-tests: New file.
11546         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11547         XFAIL_TESTS so it can be appended by modules.
11548
11549 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11550
11551         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11552         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11553
11554 2009-11-14  Eric Blake  <ebb9@byu.net>
11555
11556         fnmatch: avoid compiler warning
11557         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11558         to silence compiler warning about mismatch signedness in ?:.
11559         Reported by Robert Millan.
11560
11561         intprops: add double-inclusion guard
11562         * lib/intprops.h: Allow idempotent includes.
11563         Suggested by Bruce Korb.
11564
11565         openat: detect Solaris fchownat bug
11566         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11567         penalizing glibc chownat when only lchownat is broken.
11568         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11569         trailing slash bugs.
11570         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11571         * modules/openat-tests (Files): Include more files.
11572         (Depends-on): Add mgetgroups, sleep, stat-time.
11573         (configure.ac): Add additional checks.
11574         (Makefile.am): Build new test.
11575         * tests/test-fchownat.c: New file.
11576
11577         lchown: detect Solaris and FreeBSD bug
11578         * lib/lchown.c (rpl_lchown): Work around bug.
11579         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11581         * modules/unistd (Makefile.am): Populate it.
11582         * lib/unistd.in.h (lchown): Update declaration.
11583         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11584         * modules/lchown-tests: New file.
11585         * tests/test-lchown.h (test_lchown): Likewise.
11586         * tests/test-lchown.c (main): Likewise.
11587
11588         chown: detect Solaris and FreeBSD bug
11589         * lib/chown.c (rpl_chown): Work around bug.
11590         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11591         (gl_PREREQ_CHOWN): Delete.
11592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11593         * modules/unistd (Makefile.am): Populate it.
11594         * lib/unistd.in.h (chown): Update declaration.
11595         * lib/lchown.c (chown): Update client.
11596         * modules/lchown (Depends-on): Add lstat.
11597         * doc/posix-functions/chown.texi (chown): Document the bug.
11598         * doc/posix-functions/getgroups.texi (getgroups): Document
11599         getgroups pitfall.
11600         * modules/chown-tests: New file.
11601         * tests/test-chown.h (test_chown): Likewise.
11602         * tests/test-chown.c (main): Likewise.
11603
11604 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11605
11606         gnulib-tool: correctly detect absence of m4 directories
11607         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11608
11609 2009-11-14  Jim Meyering  <meyering@redhat.com>
11610
11611         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11612         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11613
11614 2009-11-14  John W. Eaton  <jwe@gnu.org>
11615
11616         strftime.h: wrap funtion declaration in extern "C" block
11617         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11618
11619 2009-11-13  Eric Blake  <ebb9@byu.net>
11620
11621         getgroups: avoid compiler warning
11622         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11623
11624         getgroups: work around FreeBSD bug
11625         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11626         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11627         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11628         * tests/test-getgroups.c (main): Fix buffer overrun.
11629
11630         getgroups: avoid compilation failure
11631         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11632         * modules/getgroups (Depends-on): Add stdint.
11633
11634 2009-11-13  Jim Meyering  <meyering@redhat.com>
11635
11636         test-getgroups: avoid compilation failure
11637         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11638
11639 2009-11-13  Eric Blake  <ebb9@byu.net>
11640
11641         mgetgroups: new module, taken from coreutils
11642         * modules/mgetgroups: New file.
11643         * lib/mgetgroups.h: Likewise.
11644         * lib/mgetgroups.c (mgetgroups): Likewise.
11645         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11646         * MODULES.html.sh (Users and groups): Mention it.
11647
11648         getgroups: don't expose GETGROUPS_T to user
11649         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11650         an element at a time if GETGROUPS_T is wrong size.
11651         * lib/getugroups.h (getugroups): Change signature.
11652         * lib/unistd.in.h (getgroups): Likewise.
11653         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11654         signature needs fixing.
11655         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11656         AC_TYPE_GETGROUPS.
11657         * modules/group-member (Depends-on): Add getgroups.
11658         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11659         (group_member): Rely on getgroups replacement.
11660         * lib/getugroups.c (getugroups): Use gid_t.
11661         * tests/test-getgroups.c (main): Likewise.
11662         * NEWS: Mention the signature change.
11663         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11664         problem with signature.
11665         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11666         GETGROUPS_T is still useful for setgroups.
11667
11668         getgroups, getugroups: provide stubs for mingw
11669         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11670         * lib/getugroups.c (getugroups): Likewise.
11671         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11672         function.  Modernize replacement scheme.
11673         (gl_PREREQ_GETGROUPS): Delete.
11674         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11675         * modules/getgroups (configure.ac): Declare witness.
11676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11677         * modules/unistd (Depends-on): Substitute witness.
11678         * lib/unistd.in.h (getgroups): Declare replacement.
11679
11680         getgroups: avoid calling exit
11681         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
11682         drop xalloc.
11683         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
11684         dependencies.
11685         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
11686         exiting, in the rare case of malloc failure.
11687
11688         getgroups: fix logic error
11689         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
11690         has more than 20 groups.
11691         * modules/getgroups-tests: New test.
11692         * tests/test-getgroups.c: New file.
11693
11694 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11695
11696         * tests/test-base64.c: Improve.
11697
11698 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11699
11700         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
11701         Blake <ebb9@byu.net>.
11702
11703 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11704
11705         * tests/test-xvasprintf.c: Add %s%s related checks.
11706
11707 2009-11-12  Eric Blake  <ebb9@byu.net>
11708
11709         version-etc: match standards.texi style
11710         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
11711         and use <> only for URLs.
11712
11713 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
11714
11715         fts: do not fail on a submount during traversal
11716         * lib/fts.c (fts_build): Read the stat info again after opening
11717         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
11718         Original report at http://bugzilla.redhat.com/501848.
11719
11720 2009-11-12  Jim Meyering  <meyering@redhat.com>
11721
11722         bootstrap: sync from coreutils
11723         * build-aux/bootstrap (bootstrap_epilogue): New function.
11724         Use git_modules_config in one more place.  This make bootstrap's
11725         --gnulib-srcdir option more useful for testing.
11726
11727         bootstrap: generalize autoheader check
11728         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
11729         AC_CONFIG_HEADERS.
11730
11731 2009-11-11  Eric Blake  <ebb9@byu.net>
11732
11733         mkfifoat: use new modules for Solaris and BSD bugs
11734         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
11735         * lib/mkfifoat.c (mknodat): Split...
11736         * lib/mknodat.c (mknodat): ...into new file.
11737         * modules/mkfifoat (Files): Ship new file.
11738         (Depends-on): Add mkfifo, mknod.
11739         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
11740         (Depends-on): Add symlink.
11741         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
11742         redundant with test_mkfifo.h.
11743         (do_mkfifoat, do_mknodat): New helpers.
11744
11745         mknod: new module
11746         * modules/mknod: New file.
11747         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11748         * lib/mknod.c (mknod): Likewise.
11749         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11750         defaults.
11751         * modules/sys_stat (Makefile.am): Substitute them.
11752         * lib/sys_stat.in.h (mknod): Declare replacement.
11753         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11754         Document it.
11755         * doc/posix-functions/mknod.texi (mknod): Likewise.
11756         * modules/mknod-tests: New test.
11757         * tests/test-mknod.c: Likewise.
11758
11759         mkfifo: new module
11760         * modules/mkfifo: New file.
11761         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11762         * lib/mkfifo.c (mkfifo): Likewise.
11763         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11764         defaults.
11765         * modules/sys_stat (Makefile.am): Substitute them.
11766         * lib/sys_stat.in.h (mkfifo): Declare replacement.
11767         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11768         Document it.
11769         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
11770         * modules/mkfifo-tests: New test.
11771         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
11772         from test-mkfifoat.c.
11773         * tests/test-mkfifo.c: New file.
11774
11775         readlink: detect FreeBSD bug
11776         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
11777         slash on symlink.
11778         * doc/posix-functions/readlink.texi (readlink): Document the bug.
11779         * tests/test-readlink.h (test_readlink): Enhance test.
11780
11781         symlink: detect FreeBSD bug
11782         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
11783         slash on symlink.
11784         * doc/posix-functions/symlink.texi (symlink): Document the bug.
11785         * tests/test-symlink.h (test_symlink): Enhance test.
11786
11787 2009-11-10  Eric Blake  <ebb9@byu.net>
11788
11789         link: detect FreeBSD bug
11790         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
11791         symlink.
11792         * doc/posix-functions/link.texi (link): Document the bug.
11793         * tests/test-link.h (test_link): Enhance test.
11794         * tests/test-linkat.c (main): Update caller.
11795
11796         unlink, remove: detect FreeBSD bug
11797         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
11798         slash on symlink.
11799         * doc/posix-functions/unlink.texi (unlink): Document the bug.
11800         * doc/posix-functions/remove.texi (remove): Likewise.
11801         * tests/test-unlink.h (test_unlink): Enhance test.
11802         * tests/test-remove.c (main): Likewise.
11803
11804 2009-11-09  Eric Blake  <ebb9@byu.net>
11805
11806         rename: detect FreeBSD bug
11807         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
11808         slash on symlink.
11809         * modules/renameat-tests (Depends-on): Add filenamecat.
11810         * tests/test-rename.h (test_rename): Allow one more errno.
11811         * tests/test-renameat.c (main): Likewise.
11812         * doc/posix-functions/rename.texi (rename): Document the bug.
11813
11814         open: detect FreeBSD bug
11815         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
11816         symlink.
11817         * doc/posix-functions/open.texi (open): Document the bug.
11818         * doc/posix-functions/utimes.texi (utimes): Likewise.
11819         * tests/test-open.h (test_open): Add parameters, and test symlink
11820         handling.
11821         * tests/test-open.c (main): Adjust caller.
11822         * tests/test-fcntl-safer.c (main): Likewise.
11823         * modules/open-tests (Depends-on): Add stdbool, symlink.
11824         * modules/fcntl-safer-tests (Depends-on): Likewise.
11825         * tests/test-openat.c (main): Add test-open tests.
11826
11827         stat: detect FreeBSD bug
11828         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
11829         symlink.
11830         * doc/posix-functions/stat.texi (stat): Document the bug.
11831         * tests/test-stat.h (test_stat_func): Add argument.
11832         * tests/test-stat.c (main): Adjust caller.
11833         * tests/test-fstatat.c (main): Likewise.
11834         * modules/stat-tests (Depends-on): Add stdbool, symlink.
11835         Reported by Jim Meyering.
11836
11837 2009-11-09  James Youngman  <jay@gnu.org>
11838
11839         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
11840         * lib/strftime.c: Correct placement of #include "ignore-value.h".
11841
11842 2009-11-08  Jim Meyering  <meyering@redhat.com>
11843
11844         utimens: remove invalid futimesat call
11845         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
11846         It used the file descriptor of the target file as the DIR_FD
11847         parameter and NULL as the file name.  That caused failure with
11848         errno == EFAULT on FreeBSD-8.0-rc2
11849
11850 2009-11-07  Eric Blake  <ebb9@byu.net>
11851
11852         fflush, freadseek: use fseeko, not fseek
11853         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11854         (clear_ungetc_buffer): Avoid potential problems on large files.
11855         * lib/freadseek.c (freadseek): Likewise.
11856         * modules/freadseek (Depends-on): Add fseeko.
11857         * modules/fseek (configure.ac): Set a witness.
11858         * tests/test-fflush.c (main): Use fseeko.
11859         * tests/test-fpurge.c (fseek): Disable link warning.
11860         * tests/test-freadable.c (fseek): Likewise.
11861         * tests/test-freading.c (fseek): Likewise.
11862         * tests/test-fseeko.c (fseek): Likewise.
11863         * tests/test-ftell.c (fseek): Likewise.
11864         * tests/test-ftello.c (fseek): Likewise.
11865         * tests/test-fwritable.c (fseek): Likewise.
11866         * tests/test-fwriting.c (fseek): Likewise.
11867
11868 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11869
11870         * modules/memchr (Depends-on): Drop getpagesize dependency.
11871
11872 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11873
11874         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
11875         Reported by Ludovic Courtès.
11876         * build-aux/pmccabe2html: Improve example usage.
11877         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
11878
11879 2009-11-06  Jim Meyering  <meyering@redhat.com>
11880
11881         do-release-commit-and-tag: New module.
11882         Automate the release-commit and tag process.
11883         * build-aux/do-release-commit-and-tag: New script, from coreutils.
11884         * modules/do-release-commit-and-tag: New file.
11885         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11886
11887 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11888
11889         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
11890         because test-select.c uses inet_pton.
11891
11892 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11893
11894         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
11895         GETADDRINFO_LIB.  Bump serial number.
11896         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
11897         Suggested by Eric Blake <ebb9@byu.net>.
11898
11899 2009-11-05  Eric Blake  <ebb9@byu.net>
11900
11901         strtod: detect darwin bug
11902         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
11903         Reported by Leo Davis.
11904
11905         freopen-safer: new module
11906         * modules/freopen-safer: New module.
11907         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
11908         * lib/freopen-safer.c (freopen_safer): New file.
11909         * lib/stdio-safer.h (freopen_safer): New declaration.
11910         * lib/stdio--.h (freopen): New override.
11911         * MODULES.html.sh (File stream based Input/Output): Mention it.
11912         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
11913         freopen-safer module.
11914         * doc/posix-functions/stderr.texi (stderr): Likewise.
11915         * doc/posix-functions/stdin.texi (stdin): Likewise.
11916         * doc/posix-functions/stdout.texi (stdout): Likewise.
11917         * modules/freopen-safer-tests: New test.
11918         * tests/test-reopen-safer.c: New file.
11919
11920 2009-11-05  Jim Meyering  <meyering@redhat.com>
11921
11922         maint.mk: Prohibit inclusion of "close-stream.h" without use.
11923         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11924
11925 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11926
11927         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
11928
11929 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11930
11931         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
11932
11933 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11934
11935         Fix link error.
11936         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11937         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11938
11939 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11940
11941         * tests/test-func.c: Also test value of __func__.
11942
11943 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11944
11945         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
11946         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
11947
11948 2009-11-05  Bruno Haible  <bruno@clisp.org>
11949
11950         Fix link error.
11951         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11952         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11953         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
11954
11955 2009-11-05  Bruno Haible  <bruno@clisp.org>
11956
11957         Tests for module 'inet_pton'.
11958         * modules/inet_pton-tests: New file.
11959         * tests/test-inet_pton.c: New file.
11960
11961 2009-11-05  Bruno Haible  <bruno@clisp.org>
11962
11963         Tests for module 'inet_ntop'.
11964         * modules/inet_ntop-tests: New file.
11965         * tests/test-inet_ntop.c: New file.
11966
11967 2009-11-04  Eric Blake  <ebb9@byu.net>
11968
11969         stdlib-safer: wrap all mkstemp variants
11970         * modules/mkostemp (configure.ac): Set witness.
11971         * modules/mkostemps (configure.ac): Likewise.
11972         * modules/mkstemps (configure.ac): Likewise.
11973         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
11974         (mkstemps_safer): Wrap more functions.
11975         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
11976         wrapping.
11977         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
11978         (mkstemps_safer): Implement the wrappers.
11979
11980         mkstemps, mkostemps: new modules
11981         * modules/mkostemps: New module.
11982         * modules/mkstemps: Likewise.
11983         * lib/mkostemps.c (mkostemps): New file.
11984         * lib/mkstemps.c (mkstemps): Likewise.
11985         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
11986         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
11987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
11988         * modules/stdlib (Makefile.am): Substitute them.
11989         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
11990         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
11991         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11992         * doc/gnulib.texi (Glibc stdlib.h): Include them.
11993         * MODULES.html.sh (File system functions): Mention them.
11994
11995         tempname: resync from glibc
11996         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
11997         same values for __GT_FILE as glibc.  Abort even when assertions
11998         are disabled.
11999         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
12000         match its value otherwise.  Allow idempotent inclusion.
12001         * lib/mkdtemp.c (mkdtemp): Adjust caller.
12002         * lib/mkostemp.c (mkostemp): Likewise.
12003         * lib/mkstemp.c (mkstemp): Likewise.
12004         * lib/tmpfile.c (tmpfile): Likewise.
12005         * NEWS: Document this.
12006
12007         utimens: fix use of futimens on older Linux
12008         * lib/utimens.c (fdutimens): Use updated, rather than original,
12009         timespec to avoid bug in older Linux kernel.
12010         Reported by Simon Josefsson.
12011
12012 2009-11-04  Bruno Haible  <bruno@clisp.org>
12013
12014         Make num_processors more flexible and consistent.
12015         * lib/nproc.h (enum nproc_query): New type.
12016         (num_processors): Add a 'query' argument.
12017         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
12018         (num_processors): Add a 'query' argument. Test the value of the
12019         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
12020         mingw, count the number of CPUs available for the current process.
12021         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
12022         Check for sched_getaffinity and sched_getaffinity_np.
12023         * modules/nproc (Depends-on): Add c-ctype, extensions.
12024         * NEWS: Mention the change.
12025
12026 2009-11-03  Bruno Haible  <bruno@clisp.org>
12027
12028         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
12029
12030 2009-11-03  Jim Meyering  <meyering@redhat.com>
12031
12032         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
12033         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
12034         if it is defined.
12035
12036 2009-11-02  Eric Blake  <ebb9@byu.net>
12037
12038         mktime, timegm: share common declaration
12039         * lib/mktime-internal.h: New file.
12040         * lib/mktime.c: Use it rather than open-coding a declaration.
12041         * lib/timegm.c: Likewise.
12042         * modules/mktime (Files): Ship it.
12043         * modules/timegm (Files): Likewise.
12044         Suggested by Bruno Haible.
12045
12046         test-update-copyright: update test to match script changes
12047         * tests/test-update-copyright.sh: Avoid hard-coding perl
12048         location.  Don't update *.bak created by earlier runs.
12049
12050 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12051             Simon Josefsson  <simon@josefsson.org>
12052             Bruno Haible  <bruno@clisp.org>
12053
12054         Fix link error on Solaris 8.
12055         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
12056         also in libnsl. Define also INET_PTON_LIB.
12057         * modules/inet_pton (Link): New section.
12058
12059 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12060             Bruno Haible  <bruno@clisp.org>
12061
12062         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
12063         * modules/inet_ntop (Link): New section.
12064         Reported by Boyan Kasarov <bkasarov@gmail.com>.
12065
12066 2009-11-02  Eric Blake  <ebb9@byu.net>
12067
12068         maint: avoid compiler warnings in m4 macros
12069         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
12070         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
12071
12072 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12073
12074         * m4/pmccabe2html.m4: Remove file.
12075         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
12076         function.  Change maintainer.
12077         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
12078         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
12079         Courtès).
12080
12081 2009-10-31  Eric Blake  <ebb9@byu.net>
12082
12083         fseeko: fix m4 regression
12084         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
12085         regression from 2009-10-27.
12086         Reported by Ralf Wildenhues.
12087
12088 2009-10-31  Jim Meyering  <meyering@redhat.com>
12089
12090         inttostr: aesthetics and improved (compile-time) safety
12091         Define inttype_is_signed rather than inttype_is_unsigned,
12092         since the sole use is via "#if inttype_is_signed".
12093         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
12094         inttype_is_unsigned.
12095         * lib/offtostr.c (inttype_is_signed): Likewise.
12096         * lib/uinttostr.c (inttype_is_signed): Likewise.
12097         * lib/umaxtostr.c (inttype_is_signed): Likewise.
12098         * lib/inttostr.c (inttostr): Use verify to cross-check the
12099         inttype_is_signed value and the signedness of the actual type.
12100         * modules/inttostr (Depends-on): Add verify.
12101
12102 2009-10-30  Eric Blake  <ebb9@byu.net>
12103
12104         build: avoid compiler warnings
12105         * lib/fchmodat.c (lchmod): Mark unused variables.
12106         * lib/getopt.c (_getopt_initialize): Likewise.
12107         * lib/mktime.c (__mktime_internal): Provide prototype.
12108         * lib/inttostr.c (inttostr): Avoid compiler warning even with
12109         older gcc that do not understand #pragma GCC diagnostic.
12110         * lib/uinttostr.c (inttype_is_unsigned): Define.
12111         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
12112
12113 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12114
12115         stat: fix compilation on AIX
12116         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
12117         only see struct stat64.
12118
12119 2009-10-30  Eric Blake  <ebb9@byu.net>
12120
12121         exclude: make more robust
12122         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
12123         rather than masking a coding bug.
12124         Suggested by Bruno Haible.
12125
12126 2009-10-30  Jim Meyering  <meyering@redhat.com>
12127
12128         perl scripts: remove #!/usr/bin/perl in favor of more portable...
12129         Rather than putting #!/usr/bin/perl on the first line,
12130         start with a variant of what's recommended by "man perlrun" that
12131         invokes the first "perl" program from your shell's search path.
12132         * build-aux/gitlog-to-changelog: Replace #!... as above.
12133         Add a "Local Variables" perl mode setting.
12134         Prompted by a patch from Ludovic Courtès.
12135         Improved by Eric Blake.
12136         * build-aux/useless-if-before-free: Likewise.
12137         * build-aux/announce-gen: Likewise.
12138         * build-aux/update-copyright: Likewise.
12139
12140 2009-10-29  Eric Blake  <ebb9@byu.net>
12141
12142         filenamecat-lgpl: adjust clients
12143         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
12144         filenamecat.
12145         * modules/renameat (Depends-on): Likewise.
12146
12147         filenamecat: split into filenamecat-lgpl
12148         * modules/filenamecat-lgpl: New module.
12149         * modules/filenamecat (Files): Move library-safe files into
12150         filenamecat-lgpl.
12151         (Depends-on): Add filenamecat-lgpl.
12152         (configure.ac): Declare witness.
12153         * lib/filenamecat.h (file_name_concat): Only declare when using
12154         GPL module.
12155         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
12156         Move...
12157         * lib/filenamecat-lgpl.c: ...into new file.
12158         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
12159         (gl_FILE_NAME_CONCAT): Use it.
12160         * MODULES.html.sh (File system functions): Mention new module.
12161
12162         argp: avoid memory leak
12163         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
12164         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
12165         base_name, since the latter malloc()s and can call exit().
12166         Leak introduced 2006-07-03.
12167
12168         dirname-lgpl: adjust clients that don't need full dirname
12169         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
12170         * modules/filenamecat (Depends-on): Likewise.
12171         * modules/linkat (Depends-on): Likewise.
12172         * modules/mkancesdirs (Depends-on): Likewise.
12173         * modules/mkdir (Depends-on): Likewise.
12174         * modules/openat (Depends-on): Likewise.
12175         * modules/savewd (Depends-on): Likewise.
12176         * modules/rename (Depends-on): Likewise.
12177         (License): Relax license.
12178         * modules/mkdir-tests (Depends-on): Drop progname.
12179         (Makefile.am): Delete unneeded LDADD.
12180         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
12181
12182         dirname: split into dirname-lgpl
12183         * modules/dirname-lgpl: New module.
12184         * modules/dirname (Files): Move library-safe files into
12185         dirname-lgpl.
12186         (Depends-on): Add dirname-lgpl.
12187         (configure.ac): Declare witness.
12188         * modules/double-slash-root (License): Relax license.
12189         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
12190         module.
12191         * lib/dirname.c (dir_len, mdir_name): Move...
12192         * lib/dirname-lgpl.c: ...into new file.
12193         * lib/basename.c (last_component, base_len): Move...
12194         * lib/basename-lgpl.c: ...into new file.
12195         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
12196         (gl_DIRNAME): Use it.
12197         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
12198         Mention new module.
12199         * modules/dirname-tests (Depends-on): Add progname.
12200         * tests/test-dirname.c (program_name): Delete.
12201
12202         mkdir: make safe for libraries
12203         * modules/mkdir (Depends-on): Drop xalloc.
12204         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
12205         exit.
12206
12207         tests: avoid some compiler warnings
12208         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
12209         literals.
12210         * tests/test-memchr.c (main): Avoid type mismatch.
12211         * tests/test-arpa_inet.c (main): Avoid unused parameters.
12212         * tests/test-base64.c (main): Likewise.
12213         * tests/test-getdelim.c (main): Likewise.
12214         * tests/test-gethostname.c (main): Likewise.
12215         * tests/test-getline.c (main): Likewise.
12216         * tests/test-netinet_in.c (main): Likewise.
12217         * tests/test-select.c (open_server_socket, main): Likewise.
12218         * tests/test-select-stdin.c (main): Likewise.
12219         * tests/test-sockets.c (main): Likewise.
12220         * tests/test-strsignal.c (main): Likewise.
12221         * tests/test-sys_select.c (main): Likewise.
12222         * tests/test-sys_socket.c (main): Likewise.
12223         * tests/test-u64.c (main): Likewise.
12224         * tests/test-xfprintf-posix.c (main): Likewise.
12225         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
12226
12227         sockets: avoid compiler warning
12228         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
12229
12230         maint: detect usage(1) and other suspicious exits
12231         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
12232
12233 2009-10-29  Jim Meyering  <meyering@redhat.com>
12234
12235         timespec: long-to-int truncation could make timespec_cmp malfunction
12236         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
12237         a multiple of 2^32 nanoseconds as no difference.
12238
12239 2009-10-28  Jim Meyering  <meyering@redhat.com>
12240
12241         fprintftime: wrap macro code argument in "do {...} while(0)"
12242         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
12243         cpy macro must be a statement that can be followed by a semicolon.
12244         Now that the else clause contains a comment and is hence longer
12245         than one line, I require curly braces.  That in turn requires
12246         that we wrap this code block in the standard do...while(0).
12247
12248         fprintftime: remove stray semicolon from previous change
12249         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
12250
12251         fprintftime: avoid a warning about ignored fwrite return value
12252         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
12253         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
12254         that is unsafe.
12255         * modules/fprintftime (Depends-on): Add ignore-value.
12256
12257         exclude: avoid an unwarranted warning
12258         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
12259
12260 2009-10-27  Eric Blake  <ebb9@byu.net>
12261
12262         fseek: avoid compilation failure when fflush is replaced
12263         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
12264         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
12265         module is in use.
12266         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
12267         module is not in use; since REPLACE_FSEEK worked otherwise.
12268         (GNULIB_FTELLO): Likewise for ftell.
12269         Reported by Ian Beckwith and others.
12270
12271 2009-10-27  Bruno Haible  <bruno@clisp.org>
12272
12273         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
12274         Reported by Jim Meyering.
12275
12276 2009-10-27  Jim Meyering  <jim@meyering.net>
12277             Bruno Haible  <bruno@clisp.org>
12278
12279         Avoid warning despite dropping the return value of fwrite.
12280         * lib/unicodeio.c: Include ignore-value.h.
12281         (fwrite_success_callback): Explicitly ignore fwrite's return value.
12282         * modules/unicodeio (Depends-on): Add ignore-value.
12283
12284 2009-10-26  Eric Blake  <ebb9@byu.net>
12285
12286         areadlinkat: fix fallback path
12287         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
12288         pointer and zero.
12289
12290 2009-10-22  Pádraig Brady  <P@draigBrady.com>
12291
12292         Use a better IO block size for modern systems
12293         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
12294         * lib/md2.c: Likewise.
12295         * lib/md4.c: Likewise.
12296         * lib/md5.c: Likewise.
12297         * lib/sha1.c: Likewise.
12298         * lib/sha256.c: Likewise.
12299         * lib/sha512.c: Likewise.
12300
12301 2009-10-22  Eric Blake  <ebb9@byu.net>
12302
12303         tests: avoid several compiler warnings
12304         * tests/test-getcwd.c (main): Avoid buffer underflow.
12305         * tests/test-getdate.c (main): String literals are not safe with
12306         putenv, so use setenv.  Declare unused argument.
12307         * modules/getdate-tests (Depends-on): Add setenv.
12308         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
12309         problems with string literals in char *.
12310         * tests/test-hash.c (main): Avoid shadowing declaration.
12311         (insert_new): Treat string literals as char const *.
12312         * tests/test-getopt.h (test_getopt): Likewise.
12313         (getopt_loop): Alter types to minimize casting elsewhere.
12314         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
12315         (test_getopt_long_posix): Likewise.
12316         (do_getopt_long): Add wrapper to minimize casting.
12317         * tests/test-atexit.c (clear_temp_file): Use void.
12318         * tests/test-areadlink-with-size.c (main): Declare unused
12319         arguments.
12320         * tests/test-areadlink.c (main): Likewise.
12321         * tests/test-areadlinkat-with-size.c (main): Likewise.
12322         * tests/test-areadlinkat.c (main): Likewise.
12323         * tests/test-canonicalize-lgpl.c (main): Likewise.
12324         * tests/test-canonicalize.c (main): Likewise.
12325         * tests/test-dirent-safer.c (main): Likewise.
12326         * tests/test-dirname.c (main): Likewise.
12327         * tests/test-dup2.c (main): Likewise.
12328         * tests/test-fchdir.c (main): Likewise.
12329         * tests/test-fcntl-h.c (main): Likewise.
12330         * tests/test-fcntl-safer.c (main): Likewise.
12331         * tests/test-fdopendir.c (main): Likewise.
12332         * tests/test-fdutimensat.c (main): Likewise.
12333         * tests/test-fflush.c (main): Likewise.
12334         * tests/test-filenamecat.c (main): Likewise.
12335         * tests/test-filevercmp.c (main): Likewise.
12336         * tests/test-fopen-safer.c (main): Likewise.
12337         * tests/test-fopen.c (main): Likewise.
12338         * tests/test-fpending.c (main): Likewise.
12339         * tests/test-fpurge.c (main): Likewise.
12340         * tests/test-freading.c (main): Likewise.
12341         * tests/test-fstatat.c (main): Likewise.
12342         * tests/test-fsync.c (main): Likewise.
12343         * tests/test-futimens.c (main): Likewise.
12344         * tests/test-getndelim2.c (main): Likewise.
12345         * tests/test-gettimeofday.c (main): Likewise.
12346         * tests/test-getopt.c (main): Likewise.
12347         * tests/test-i-ring.c (main): Likewise.
12348         * tests/test-inttypes.c (main): Likewise.
12349         * tests/test-link.c (main): Likewise.
12350         * tests/test-lstat.c (main): Likewise.
12351         * tests/test-math.c (main): Likewise.
12352         * tests/test-md5.c (main): Likewise.
12353         * tests/test-memchr2.c (main): Likewise.
12354         * tests/test-memrchr.c (main): Likewise.
12355         * tests/test-mkdir.c (main): Likewise.
12356         * tests/test-mkdirat.c (main): Likewise.
12357         * tests/test-mkfifoat.c (main): Likewise.
12358         * tests/test-open.c (main): Likewise.
12359         * tests/test-openat-safer.c (main): Likewise.
12360         * tests/test-openat.c (main): Likewise.
12361         * tests/test-quotearg.c (main): Likewise.
12362         * tests/test-rawmemchr.c (main): Likewise.
12363         * tests/test-readlink.c (main): Likewise.
12364         * tests/test-remove.c (main): Likewise.
12365         * tests/test-rename.c (main): Likewise.
12366         * tests/test-renameat.c (main): Likewise.
12367         * tests/test-rmdir.c (main): Likewise.
12368         * tests/test-sha1.c (main): Likewise.
12369         * tests/test-signal.c (main): Likewise.
12370         * tests/test-sigaction.c (main): Likewise.
12371         * tests/test-stat.c (main): Likewise.
12372         * tests/test-stat-time.c (main): Likewise.
12373         * tests/test-stddef.c (main): Likewise.
12374         * tests/test-stdint.c (main): Likewise.
12375         * tests/test-stdio.c (main): Likewise.
12376         * tests/test-stdlib.c (main): Likewise.
12377         * tests/test-strchrnul.c (main): Likewise.
12378         * tests/test-strerror.c (main): Likewise.
12379         * tests/test-string.c (main): Likewise.
12380         * tests/test-strtod.c (main): Likewise.
12381         * tests/test-strverscmp.c (main): Likewise.
12382         * tests/test-symlink.c (main): Likewise.
12383         * tests/test-symlinkat.c (main): Likewise.
12384         * tests/test-sys_stat.c (main): Likewise.
12385         * tests/test-sys_time.c (main): Likewise.
12386         * tests/test-time.c (main): Likewise.
12387         * tests/test-unistd.c (main): Likewise.
12388         * tests/test-unlink.c (main): Likewise.
12389         * tests/test-unlinkat.c (main): Likewise.
12390         * tests/test-utimens.c (main): Likewise.
12391         * tests/test-utimensat.c (main): Likewise.
12392         * tests/test-version-etc.c (main): Likewise.
12393         * tests/test-wchar.c (main): Likewise.
12394         * tests/test-wctype.c (main): Likewise.
12395         * tests/test-xprintf-posix.c (main): Likewise.
12396         * tests/test-posixtm.c (main): Likewise.
12397         (STREQ): Delete unused macro.
12398         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
12399         shadowed variables.
12400         * tests/test-memchr.c (main): Likewise.
12401
12402 2009-10-21  Eric Blake  <ebb9@byu.net>
12403
12404         areadlinkat: avoid failure on older glibc
12405         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
12406         rather than mis-comparing 0 against FUNC_RESULT of char*.
12407
12408 2009-10-21  Bruno Haible  <bruno@clisp.org>
12409
12410         * modules/stpncpy (License): Relicense under LGPLv2+.
12411         Reported by David Lutterkort <lutter@redhat.com>.
12412
12413 2009-10-20  Eric Blake  <ebb9@byu.net>
12414
12415         utimensat: work around Solaris 9 bug
12416         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
12417         has trailing slash bugs.
12418         * tests/test-lutimens.h (test_lutimens): Enhance test.
12419         * tests/test-utimens.h (test_utimens): Likewise.
12420         * doc/posix-functions/utime.texi (utime): Enhance documentation.
12421         * doc/posix-functions/utimes.texi (utimes): Likewise.
12422         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12423         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
12424         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
12425         * doc/posix-functions/futimens.texi (futimens): Likewise.
12426
12427         fdutimensat: new module
12428         * modules/fdutimensat: New file.
12429         * lib/fdutimensat.c (fdutimensat): Likewise.
12430         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
12431         * MODULES.html.sh (File system functions): Mention module.
12432         * modules/fdutimensat-tests: New test.
12433         * tests/test-fdutimensat.c: Likewise.
12434
12435         doc: regenerate INSTALL
12436         * doc/INSTALL: Reflect recent autoconf update.
12437         * doc/INSTALL.ISO: Likewise.
12438         * doc/INSTALL.UTF-8: Likewise.
12439
12440 2009-10-20  Pádraig Brady  <P@draigBrady.com>
12441
12442         acl: warn if ACL support is not detected
12443         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
12444
12445 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
12446
12447         * lib/nproc.h: Add extern "C" block for C++.
12448
12449 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
12450             Bruno Haible  <bruno@clisp.org>
12451
12452         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
12453         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
12454         * doc/posix-functions/isalpha.texi: Likewise.
12455         * doc/posix-functions/isblank.texi: Likewise.
12456         * doc/posix-functions/iscntrl.texi: Likewise.
12457         * doc/posix-functions/isdigit.texi: Likewise.
12458         * doc/posix-functions/isgraph.texi: Likewise.
12459         * doc/posix-functions/islower.texi: Likewise.
12460         * doc/posix-functions/isprint.texi: Likewise.
12461         * doc/posix-functions/ispunct.texi: Likewise.
12462         * doc/posix-functions/isspace.texi: Likewise.
12463         * doc/posix-functions/isupper.texi: Likewise.
12464         * doc/posix-functions/isxdigit.texi: Likewise.
12465
12466 2009-10-18  Bruno Haible  <bruno@clisp.org>
12467
12468         Tests for module 'isblank'.
12469         * modules/isblank-tests: New file.
12470         * tests/test-isblank.c: New file.
12471
12472         New module 'isblank'.
12473         * lib/isblank.c: New file.
12474         * m4/isblank.m4: New file.
12475         * modules/isblank: New file.
12476         * doc/posix-functions/isblank.texi: Mention the new module.
12477
12478 2009-10-18  Bruno Haible  <bruno@clisp.org>
12479
12480         New module 'ctype'.
12481         * lib/ctype.in.h: New file.
12482         * m4/ctype.m4: New file.
12483         * modules/ctype: New file.
12484         * doc/posix-headers/ctype.texi: Mention the new module.
12485
12486 2009-10-18  Jim Meyering  <meyering@redhat.com>
12487
12488         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
12489         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12490         right after its initialization, rather than farther down.
12491         Keeping these in close proximity makes it easier to ensure
12492         that each such variable is initialized.  E.g.,
12493
12494             LIB_CLOCK_GETTIME=
12495             AC_SUBST([LIB_CLOCK_GETTIME])
12496
12497         This change also increments these serial numbers.
12498         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12499         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12501
12502 2009-10-18  Bruno Haible  <bruno@clisp.org>
12503
12504         Don't let environment variables perturb build.
12505         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12506         (gl_PREREQ_GETHRXTIME): ... not here.
12507
12508 2009-10-18  Bruno Haible  <bruno@clisp.org>
12509
12510         Avoid symlink attack in localcharset module.
12511         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12512         (O_NOFOLLOW): Define fallback.
12513         (get_charset_aliases): Don't open the file if it is a symbolic link.
12514         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12515         gl_FCNTL_H.
12516         (gl_FCNTL_H): Require it.
12517         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12518         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12519         Reported by Fergal Glynn <fglynn@veracode.com>.
12520
12521 2009-10-18  Bruno Haible  <bruno@clisp.org>
12522
12523         Implement nproc for mingw.
12524         * lib/nproc.c: Include <windows.h>
12525         (num_processors): On native Windows platforms, try GetSystemInfo.
12526
12527 2009-10-18  Bruno Haible  <bruno@clisp.org>
12528
12529         Implement nproc for IRIX.
12530         * lib/nproc.c: Include <sys/sysmp.h>.
12531         (num_processors): On IRIX systems, try sysmp.
12532         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12533
12534 2009-10-18  Bruno Haible  <bruno@clisp.org>
12535
12536         Implement nproc for HP-UX.
12537         * lib/nproc.c: Include <sys/pstat.h>
12538         (num_processors): On HP-UX systems, try pstat_getdynamic.
12539         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12540         pstat_getdynamic.
12541
12542 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12543             Bruno Haible  <bruno@clisp.org>
12544
12545         Implement nproc for NetBSD, OpenBSD.
12546         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12547         (ARRAY_SIZE): New macro.
12548         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12549         * m4/nproc.m4: New file.
12550         * modules/nproc (Files): Add m4/nproc.m4.
12551         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12552         (Makefile.am): Instead, augment lib_SOURCES.
12553
12554 2009-10-18  Bruno Haible  <bruno@clisp.org>
12555
12556         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12557         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12558         sys/param.h.
12559
12560 2009-10-16  Eric Blake  <ebb9@byu.net>
12561
12562         utimensat: new module
12563         * modules/utimensat: New file.
12564         * lib/utimensat.c (utimensat): Likewise.
12565         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12566         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12567         so we can work around Linux bugs.
12568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12569         * modules/sys_stat (Makefile.am): Substitute them.
12570         * lib/sys_stat.in.h (utimensat): Declare it.
12571         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12572         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12573         * modules/utimensat-tests: New test.
12574         * tests/test-utimensat.c: Likewise.
12575
12576         utimens: let lutimens work on non-symlinks
12577         * lib/utimens.c (lutimens): Fall back to utimens rather than
12578         failing with ENOSYS, when file is not a symlink.
12579         (utimens): Reduce redirection.
12580         * tests/test-lutimens.h (test_lutimens): Update test to cover
12581         non-symlinks.
12582         * tests/test-utimens.h (test_utimens): Update test to cover
12583         symlinks.
12584         * tests/test-utimens.c (main): Update caller.
12585
12586         utimens: cache whether utimensat syscall works
12587         * lib/utimens.c (utimensat_works_really): New cache variable.
12588         (fdutimens, lutimens): Use it to avoid failing syscall.
12589
12590         test-stat-time, test-utimens: improve portability
12591         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12592         ext4 on alpha, and for cygwin.
12593         * tests/test-utimens-common.h: New file.
12594         (nap): Factor delays into single function.
12595         * tests/test-lutimens.h (test_lutimens): Use new header.
12596         * tests/test-futimens.h (test_futimens): Likewise.
12597         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12598         timestamps to occur from same machine, as was done previously for
12599         test_utimens.
12600         * modules/utimens-tests (Files): Ship new file.
12601         * modules/futimens-tests (Files): Likewise.
12602         Reported in part by Jim Meyering.
12603
12604         sys_stat: sort replacement declarations
12605         * lib/sys_stat.in.h: Sort declarations.
12606         * lib/futimens.c (futimens): Fix typo.
12607
12608 2009-10-15  Jim Meyering  <meyering@redhat.com>
12609
12610         don't let environment settings perturb build
12611         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12612         could cause a configure-time and/or build-time malfunction.
12613         Typically, a configure-time function-in-library test is performed
12614         via code like this:
12615
12616           LIB_VAR=
12617           AC_SUBST([LIB_VAR])
12618           prefix_saved_LIBS=$LIBS
12619             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12620                        [test "$ac_cv_search_FUNC" = "none required" ||
12621                         LIB_VAR=$ac_cv_search_FUNC])
12622           LIBS=$prefix_saved_LIBS
12623
12624         However, in each of the files affected by this change, the LIB_VAR=
12625         initialization was omitted.  Thus, when set in the environment, its
12626         value would propagate into generated Makefiles when FUNC is not found
12627         in LIB_NAME.
12628         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12629         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12631
12632 2009-10-14  Eric Blake  <ebb9@byu.net>
12633
12634         fchdir: avoid infinite recursion in mingw
12635         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12636         recursing.
12637
12638         test-stat-time: port to mingw
12639         * tests/test-stat-time.c (force_unlink): Return a value.
12640         (test_ctime) [W32]: Fix compilation error.
12641         (nap): Don't call usleep with too large an argument.  Use
12642         force_unlink.
12643         * doc/pastposix-functions/usleep.texi (usleep): Document the
12644         portability issue.
12645
12646 2009-10-13  Jim Meyering  <meyering@redhat.com>
12647
12648         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12649         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12650         * modules/pipe-filter-ii: Likewise.
12651         * modules/sys_socket-tests: Likewise.
12652         * modules/tsearch-tests: Likewise.
12653         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12654         (check): Depend on it.
12655
12656 2009-10-12  Eric Blake  <ebb9@byu.net>
12657
12658         utimens-tests: port to NFS file systems
12659         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12660         comparisons to avoid spurious failures from timestamp drift
12661         between NFS machines.
12662
12663 2009-10-12  Eric Blake  <ebb9@byu.net>
12664
12665         stat-time-tests: minor cleanups
12666         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12667         * tests/test-stat-time.c (nap): Separate assignment from call.
12668         Suggested by Paolo Bonzini and Bruno Haible.
12669
12670         sys_stat: guarantee struct timespec
12671         * lib/sys_stat.in.h (includes): Always include <time.h>
12672         * modules/sys_stat (Depends-on): Add time.
12673         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12674         mode_t permission values.
12675         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12676         get at subsecond timestamps.
12677
12678 2009-10-10  Eric Blake  <ebb9@byu.net>
12679
12680         futimens: new module
12681         * modules/futimens: New file.
12682         * lib/futimens.c (futimens): Likewise.
12683         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
12684         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
12685         we can work around Linux bugs.
12686         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12687         * modules/sys_stat (Makefile.am): Substitute them.
12688         * lib/sys_stat.in.h (futimens): Declare it.
12689         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12690         * doc/posix-functions/futimens.texi (futimens): Likewise.
12691         * modules/futimens-tests: New test.
12692         * tests/test-futimens.c: Likewise.
12693
12694         utimens: introduce fdutimens
12695         * lib/utimens.h (fdutimens): New prototype.
12696         * lib/utimens.c (gl_futimens): Move guts...
12697         (fdutimens): ...to new interface.
12698         * tests/test-utimens.c (do_fdutimens): Use it.
12699
12700         utimens: add UTIME_NOW and UTIME_OMIT support
12701         * lib/utimens.c (validate_timespec, update_timespec): New helper
12702         functions.
12703         (gl_futimens, lutimens): Use them.
12704         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
12705         stdbool, sys_stat.
12706         (Link): Mention resulting library dependency.
12707         * modules/utimecmp (Link): Likewise.
12708         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
12709         (Makefile.am): Pick up library dependency.
12710         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
12711         definition.
12712         * tests/test-sys_stat.c: Test the definitions.
12713         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
12714         * NEWS: Document library dependency.
12715
12716         utimecmp: support symlink timestamps
12717         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
12718         hashing when possible.  Use pathconf when available.
12719         (SYSCALL_RESOLUTION): Recognize tighter resolution.
12720         * modules/utimecmp (Depends-on): Add lstat.
12721
12722         utimens: add lutimens interface
12723         * lib/utimens.c (lutimens): New function.
12724         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
12725         * lib/utimens.h (lutimens): Declare new interface.
12726         * tests/test-utimens.c (main): Enhance test.
12727         * tests/test-lutimens.h (test_lutimens): New file.
12728         * modules/utimens-tests (Files): Distribute it.
12729         (Depends-on): Add symlink.
12730         (configure.ac): Check for usleep.
12731
12732         utimens: validate futimens usage
12733         * lib/utimens.c (gl_futimens): Require valid fd up front, using
12734         fewer syscalls on failure later on.  Avoid compiler warning on
12735         mingw.
12736         * modules/utimens (Depends-on): Add dup2.
12737
12738         utimens: add test
12739         * modules/utimens-tests: New test.
12740         * tests/test-utimens.h: New file.
12741         * tests/test-futimens.h: Likewise.
12742         * tests/test-utimens.c: Likewise.
12743
12744         doc: mention timestamp portability issues
12745         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
12746         instead.
12747         * doc/posix-functions/utime.texi (utime): Likewise.
12748         * doc/posix-functions/utimes.texi (utimes): Likewise.
12749         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
12750         instead.
12751         * doc/posix-functions/futimens.texi (futimens): Mention utimens
12752         module.
12753         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12754         Mention weakness with symlink timestamps.
12755         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
12756         to utimensat/futimens instead.
12757         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
12758
12759         test-dup2: enhance test
12760         * tests/test-dup2.c (main): Also check AT_FDCWD.
12761
12762         test-stat-time: avoid more spurious failures
12763         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
12764         xfs; and avoid race if the two timestamps cross quantization edge.
12765
12766         relocatable: prefer 'file system' over 'filesystem'
12767         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
12768         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
12769         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
12770         * doc/relocatable.texi (Enabling Relocatability): Likewise.
12771         * lib/relocatable.c (compute_curr_prefix): Likewise.
12772
12773 2009-10-10  Jim Meyering  <meyering@redhat.com>
12774
12775         stat-time-tests: check for the usleep function
12776         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
12777
12778 2009-10-10  Bruno Haible  <bruno@clisp.org>
12779
12780         * modules/xnanosleep: Put the Link section after the Include section.
12781
12782 2009-10-09  Eric Blake  <ebb9@byu.net>
12783
12784         dup2: work around FreeBSD 6.1 bug
12785         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
12786         * doc/posix-functions/dup2.texi (dup2): Document it.
12787         Reported by Nelson H. F. Beebe and Jim Meyering.
12788
12789         test-stat-time: port to buggy NFS clients
12790         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
12791         (test_ctime): Also skip test if mtime and ctime are skewed.
12792
12793         maint: prefer 'file system' over 'filesystem'
12794         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
12795         * doc/posix-functions/lstat.texi (lstat): Likewise.
12796         * lib/file-has-acl.c (file_has_acl): Likewise.
12797         * lib/fwriteerror.c [TEST]: Likewise.
12798         * tests/test-areadlink.h (test_areadlink): Likewise.
12799         * tests/test-areadlinkat-with-size.c (main): Likewise.
12800         * tests/test-areadlinkat.c (main): Likewise.
12801         * tests/test-canonicalize-lgpl.c (main): Likewise.
12802         * tests/test-canonicalize.c (main): Likewise.
12803         * tests/test-fstatat.c (main): Likewise.
12804         * tests/test-linkat.c (main): Likewise.
12805         * tests/test-lstat.h (test_lstat_func): Likewise.
12806         * tests/test-mkdir.h (test_mkdir): Likewise.
12807         * tests/test-readlink.h (test_readlink): Likewise.
12808         * tests/test-remove.c (main): Likewise.
12809         * tests/test-rename.h (test_rename): Likewise.
12810         * tests/test-renameat.c (main): Likewise.
12811         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12812         * tests/test-symlink.h (test_symlink): Likewise.
12813         * tests/test-symlinkat.c (main): Likewise.
12814         * tests/test-unlink.h (test_unlink_func): Likewise.
12815         * tests/test-unlinkat.c (main): Likewise.
12816
12817         maint: make realtime library usage explicit
12818         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
12819         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
12820         * modules/settime (Link): Likewise.
12821         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
12822
12823         test-stat-time: speed up execution
12824         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
12825         warning on mingw.
12826         (nap): New helper function.
12827         (prepare_test): Use it to reduce sleep time.
12828         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
12829         execution.
12830         * modules/stat-time-tests (configure.ac): Check for usleep.
12831
12832 2009-10-09  Jim Meyering  <meyering@redhat.com>
12833
12834         selinux-h: always use getfilecon wrappers
12835         * lib/getfilecon.c: New file.
12836         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
12837         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
12838         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
12839         (fgetfilecon): Provide a stub.
12840         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
12841         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
12842         file unconditionally.
12843         When <selinux/selinux.h> is found, arrange to use wrappers.
12844         * modules/selinux-h (Files): Add getfilecon.c.
12845         (Makefile.am): Substitute include-next-related bits
12846         into the now-always-generated selinux/selinux.h file.
12847         * doc/glibc-functions/lgetfilecon.texi: New file.
12848         * doc/glibc-functions/fgetfilecon.texi: New file.
12849         * doc/glibc-functions/getfilecon.texi: New file.
12850         * doc/glibc-functions/getfilecon-desc.texi: New file.
12851         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
12852         which to pull in the new files.
12853         * MODULES.html.sh (Misc): Add selinux-h.
12854
12855 2009-10-08  Jim Meyering  <meyering@redhat.com>
12856
12857         unistd: fix comment typo
12858         * lib/unistd.in.h (euidaccess): Fix a comment typo.
12859
12860 2009-10-08  Eric Blake  <ebb9@byu.net>
12861
12862         areadlink: use SIZE_MAX consistently
12863         * modules/areadlink (Depends-on): Add stdint.
12864         * modules/areadlink-with-size (Depends-on): Likewise.
12865         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
12866         gives NULL; drop sys/types, since unistd gives size_t; and add
12867         stdint for SIZE_MAX.
12868         (SIZE_MAX): Rely on headers.
12869         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
12870         and add stdint.
12871         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
12872         (SIZE_MAX): Likewise.
12873         (INITIAL_BUF_SIZE): Turn into enum.
12874         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
12875
12876 2009-10-08  Jim Meyering  <meyering@redhat.com>
12877
12878         areadlinkat: avoid compilation failure
12879         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
12880         Fix typo in comment.
12881
12882 2009-10-07  Eric Blake  <ebb9@byu.net>
12883
12884         areadlinkat-with-size: new module
12885         * modules/areadlinkat-with-size: New module.
12886         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
12887         * lib/areadlink.h (areadlinkat): Declare it.
12888         * MODULES.html.sh (File system functions): Mention it.
12889         * modules/areadlinkat-with-size-tests: New test.
12890         * tests/test-areadlinkat-with-size.c: New file.
12891
12892         xreadlinkat: new module
12893         * modules/xreadlinkat: New module.
12894         * lib/xreadlinkat.c (xreadlinkat): New file.
12895         * lib/xreadlink.h (xreadlinkat): Declare it.
12896         * MODULES.html.sh (File system functions): Mention it.
12897
12898         areadlinkat: new module
12899         * lib/at-func.c (FUNC_FAIL): New define.
12900         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
12901         * modules/areadlinkat: New module.
12902         * lib/linkat.c (areadlinkat): Move...
12903         * lib/areadlinkat.c (areadlinkat): ...to new file.
12904         * lib/areadlink.h (areadlinkat): Declare it.
12905         * modules/linkat (Depends-on): Add areadlinkat.
12906         * MODULES.html.sh (File system functions): Mention it.
12907         * modules/areadlinkat-tests: New test.
12908         * tests/test-areadlinkat.c: New file.
12909
12910         areadlink, areadlink-with-size: add tests
12911         * modules/areadlink-tests: New test.
12912         * modules/areadlink-with-size-tests: Likewise.
12913         * tests/test-areadlink.h: New file.
12914         * tests/test-areadlink.c: Likewise.
12915         * tests/test-areadlink-with-size.c: Likewise.
12916
12917         maint: minor cleanups
12918         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
12919         _UNUSED_PARAMETER_ instead.
12920         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
12921         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
12922         * modules/linkat-tests (Files): Distribute test-link.h.
12923
12924         openat, utimens: whitespace cleanup
12925         * lib/openat.c: Prefer space throughout, rather than mix of 8
12926         spaces vs. tabs.
12927         * lib/at-func.c: Likewise.
12928         * lib/utimens.c: Likewise.
12929
12930         openat: avoid using wrong fd
12931         * lib/openat.c (openat_permissive): Reject user's fd if saving the
12932         working directory chooses same fd.
12933         * lib/at-func.c (AT_FUNC_NAME): Likewise.
12934
12935         mkdir, mkdirat: fix cygwin 1.5.x bug
12936         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
12937         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
12938         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
12939         bug.
12940         (gl_PREREQ_MKDIR): Delete unused macro.
12941         * modules/mkdir (Files): Track file rename.
12942         (configure.ac): Update macro name.
12943         * modules/openat (Depends-on): Add mkdir.
12944         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
12945
12946         mkdir, mkdirat: add tests
12947         * modules/mkdir-tests: New test.
12948         * tests/test-mkdir.h: New file.
12949         * tests/test-mkdir.c: Likewise.
12950         * tests/test-mkdirat.c: Likewise.
12951         * modules/openat-tests (Files): Add new files.
12952         (Makefile.am): Run new test.
12953
12954 2009-10-06  Eric Blake  <ebb9@byu.net>
12955
12956         doc: tweak *at function documentation
12957         * doc/posix-functions/faccessat.texi (faccessat): Mention
12958         known issue with replacement.
12959         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
12960         * doc/posix-functions/linkat.texi (linkat): Likewise.
12961         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
12962         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
12963         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12964         * doc/posix-functions/renameat.texi (renameat): Likewise.
12965         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12966
12967         openat: fix GNU/Hurd bug in unlinkat
12968         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
12969         broken.
12970         * doc/posix-functions/unlink.texi (unlink): Document this.
12971         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
12972
12973         fdopendir: fix GNU/Hurd bug
12974         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
12975         allowing non-directory fds.
12976         * lib/fdopendir.c (rpl_fdopendir): Work around it.
12977         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12978         * modules/dirent (Makefile.am): Substitute it.
12979         * lib/dirent.in.h (fdopendir): Declare replacement.
12980         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
12981         * tests/test-fdopendir.c (main): Test something other than
12982         /dev/null, since on Hurd that behaves like a directory.
12983
12984         test-symlink: port to GNU/Hurd
12985         * tests/test-symlink.h (test_symlink): Relax expected errno.
12986
12987         doc: tweak more cygwin information
12988         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
12989         now compatible with glibc.
12990         * doc/posix-functions/getopt.texi (getopt): Likewise.
12991
12992         getopt-gnu: add another test
12993         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
12994         guarantee behavior relied on by m4.
12995         * tests/test-getopt.c (main): Use it.
12996         * modules/getopt-posix-tests (Depends-on): Add setenv.
12997         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
12998
12999         getopt: fix compilation on darwin
13000         * lib/getopt.in.h (includes): Leave breadcrumbs during system
13001         include.
13002         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
13003         Reported by Ludovic Courtès.
13004
13005 2009-10-06  Bruno Haible  <bruno@clisp.org>
13006
13007         * modules/size_max (Description): Discourage its use.
13008         Reported by Simon Josefsson.
13009
13010 2009-10-06  Jim Meyering  <meyering@redhat.com>
13011
13012         linkat: avoid compilation failure
13013         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
13014
13015 2009-10-05  Eric Blake  <ebb9@byu.net>
13016
13017         linkat: support Linux 2.6.17
13018         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
13019         linkat on Linux, but allow cache variable override.
13020         * lib/linkat.c (rpl_linkat): Define override.
13021         * modules/linkat (Depends-on): Add symlinkat.
13022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
13023         * modules/unistd (Makefile.am): Substitute it.
13024         * lib/unistd.in.h (linkat): Declare replacement.
13025         Reported by Pádraig Brady.
13026
13027         quotearg: port test to systems with C.UTF-8 locale
13028         * tests/test-quotearg.c (struct result_strings): Add another
13029         member, differentiating between C.ASCII and C.UTF-8 handling.
13030         (compare_strings): Add parameter.
13031         (main): Adjust all callers.
13032
13033         getopt: avoid clash with FreeBSD _getopt_internal
13034         * lib/getopt.in.h (_getopt_internal): Override the name.
13035         * lib/getopt_int.h (includes): Pick up any overrides.
13036         Reported by Reuben Thomas.
13037
13038         hash: allow C89 compilation
13039         * lib/hash.c (check_tuning): Move declaration before statement.
13040         Reported by Reuben Thomas.
13041
13042 2009-10-05  Karl Berry  <karl@gnu.org>
13043
13044         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
13045
13046 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
13047             Bruno Haible  <bruno@clisp.org>
13048
13049         * lib/uname.c (uname): Use a table-driven algorithm to compute
13050         Windows NT versions.
13051
13052 2009-10-04  Bruno Haible  <bruno@clisp.org>
13053
13054         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
13055         program_invocation_short_name.
13056         * modules/progname (configure.ac): Test for presence of
13057         program_invocation_short_name.
13058         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13059
13060 2009-10-04  Bruno Haible  <bruno@clisp.org>
13061
13062         * lib/progname.c (set_program_name): Fix comment.
13063         Reported by Jim Meyering.
13064
13065 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13066             Bruno Haible  <bruno@clisp.org>
13067
13068         * lib/uname.c: Include <string.h>.
13069         (uname): Do only one call to GetVersionEx in the common case.
13070
13071 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13072             Bruno Haible  <bruno@clisp.org>
13073
13074         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
13075         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
13076         (uname): Add support for Windows CE and various non-x86 CPU types.
13077
13078 2009-10-03  Bruno Haible  <bruno@clisp.org>
13079
13080         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
13081         invocation to tests/configure.ac.
13082         Reported by Ian Beckwith <ianb@erislabs.net>.
13083
13084 2009-10-02  Eric Blake  <ebb9@byu.net>
13085
13086         fchdir: avoid compiler warning
13087         * lib/fchdir.c (canonicalize_file_name)
13088         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
13089
13090         test-open: support mingw errno values
13091         * tests/test-open.h (test_open): Relax test.
13092         * tests/test-fopen.h (test_fopen): Likewise.
13093         * tests/test-openat-safer.c (main): Likewise.
13094
13095         open: fix opening directory on mingw
13096         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
13097
13098         test-open: on GNU/Hurd, /dev/null is a directory
13099         * tests/test-fopen.h (main): Rename...
13100         (test_fopen): ...to this.  Use a guaranteed non-directory when
13101         confirming open behavior on trailing slash.
13102         * tests/test-openat-safer.c (main): Likewise.
13103         * tests/test-open.h (main): Likewise....
13104         (test_open): ...to this.
13105         * tests/test-fopen.c (main): Adjust caller.
13106         * tests/test-fopen-safer.c (main): Likewise.
13107         * tests/test-open.c (main): Likewise.
13108         * tests/test-fcntl-safer.c (main): Likewise.
13109         Reported by Samuel Thibault.
13110
13111         rename, fchdir: don't ignore chdir failure
13112         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
13113         * lib/rename.c (rpl_rename) [W32]: Likewise.
13114         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
13115         an empty destination directory if source cannot be renamed,
13116         although there is still possibility for failure.
13117         * doc/posix-functions/rename.texi (rename): Document the race.
13118         Reported by Jim Meyering.
13119
13120         maint: cleanup whitespace in recent commits
13121         * lib/rename.c (rpl_rename): Remove tabs.
13122         * tests/test-link.h (test_link): Likewise.
13123         * lib/fchdir.c (get_name): Likewise.
13124         Reported by Jim Meyering.
13125
13126 2009-10-02  Ben Pfaff  <blp@gnu.org>
13127
13128         relocatable-prog-wrapper: Add missing dependency on
13129         double-slash-root.
13130         * modules/relocatable-prog-wrapper: Add dependency.
13131         Reported by Ian Beckwith <ianb@erislabs.net>.
13132
13133 2009-10-02  Eric Blake  <ebb9@byu.net>
13134
13135         renameat: fix Solaris bugs
13136         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
13137         needed fixing.
13138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
13139         * modules/stdio (Makefile.am): Substitute it.
13140         * lib/stdio.in.h (renameat): Declare replacement.
13141         * lib/renameat.c (rpl_renameat): Implement fix.
13142
13143         renameat: new module
13144         * modules/renameat: New file.
13145         * lib/renameat.c (renameat): Likewise.
13146         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
13147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13148         * modules/stdio (Makefile.am): Substitute them.
13149         * lib/stdio.in.h (renameat): Declare it.
13150         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13151         * doc/posix-functions/renameat.texi (renameat): Likewise.
13152         * modules/renameat-tests: New test.
13153         * tests/test-renameat.c: Likewise.
13154
13155         rename: fix mingw bugs
13156         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
13157         directory overwrite bugs.
13158
13159         rename: fix another cygwin 1.5 bug
13160         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
13161         checks.
13162         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
13163         unnecessary cygwin workarounds.  Also work around bug with moving
13164         full directory onto an empty one.
13165         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
13166
13167         rename-dest-slash: merge into rename module
13168         * modules/rename-dest-slash (Status): Mark obsolete.
13169         (Depends-on): Add rename.
13170         (Files): Let rename do it all.
13171         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
13172         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
13173         * m4/rename-dest-slash.m4: ...so this file can be deleted.
13174         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
13175         * lib/rename.c (rpl_rename): Update comments.
13176
13177         rename: fix cygwin 1.5.x bugs
13178         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
13179         * lib/rename.c (rpl_rename): Work around them.
13180         * modules/rename (Depends-on): Add same-inode.
13181
13182         rename: fix Solaris 10 bug
13183         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13184         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
13185         was the only bug.
13186
13187         rename: fix Solaris 9 bug
13188         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
13189         on non-directory.  Avoid calling exit.
13190         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
13191         strdup.
13192         * modules/rename-tests (Depends-on): Drop lstat.
13193         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13194         (gl_PREREQ_RENAME): Delete unused macro.
13195
13196         rename-dest-slash: fix NetBSD bug
13197         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
13198         links.
13199         * modules/rename-dest-slash (Depends-on): Add same-inode.
13200
13201         rename-tests: new test, exposes several platform bugs
13202         * modules/rename-tests: New file.
13203         * tests/test-rename.h: Likewise.
13204         * tests/test-rename.c: Likewise.
13205         * doc/posix-functions/rename.texi (rename): Improve documentation,
13206         including bugs that will eventually be fixed in gnulib.
13207
13208 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
13209
13210         * lib/uname.c: Include <stdlib.h>
13211         (uname): Assume version info is available.
13212
13213 2009-10-02  Jim Meyering  <meyering@redhat.com>
13214
13215         gnu-web-doc-update: correct --help output
13216         * build-aux/gnu-web-doc-update: Make --help output relevant.
13217
13218         gnu-web-doc-update: add standard options
13219         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
13220
13221         gnu-web-doc-update: New module.
13222         Use this script to automatically update the on-line web documentation
13223         for your GNU project at http://www.gnu.org/software/$pkg/manual/
13224         * modules/gnu-web-doc-update: New file, from coreutils.
13225         * build-aux/gnu-web-doc-update: New script.
13226
13227 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
13228
13229         link: LoadLibrary is not needed.
13230         * lib/link.c: Use GetModuleHandle.
13231
13232 2009-10-01  Eric Blake  <ebb9@byu.net>
13233
13234         getopt: bump serial number
13235         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
13236         change.
13237
13238         tests: tighten link, rmdir, and remove tests
13239         * tests/test-link.h (includes): No need to use <config.h> here.
13240         Clean up if directory hard link was created, otherwise test for
13241         trailing '.'.
13242         * tests/test-linkat.c (main): Simplify.
13243         * tests/test-remove.c (main): Enhance test for trailing '.'.
13244         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13245
13246 2009-10-01  Jim Meyering  <meyering@redhat.com>
13247
13248         maint.mk: requiring "make major" was annoying, for a "minor" release.
13249         What is intended is "stable", to contrast with alpha and beta,
13250         so require "make stable", not "make major".
13251         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
13252         (get_tool_versions): Likewise.
13253         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
13254
13255 2009-09-30  Ben Pfaff  <blp@gnu.org>
13256
13257         Fix broken build of replacement for Windows tmpfile().
13258         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
13259         flags argument added along with the 'mkostemp' module.
13260
13261 2009-09-28  Bruno Haible  <bruno@clisp.org>
13262
13263         Avoid identifier clash with POSIX function 'remove' defined as a macro.
13264         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
13265         to 'remove_elt'.
13266         (gl_list_remove): Update.
13267         * lib/gl_list.c (gl_list_remove): Update.
13268         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
13269         to 'remove_elt'.
13270         (gl_oset_remove): Update.
13271         * lib/gl_list.c (gl_oset_remove): Update.
13272         Reported by Eric Blake.
13273
13274 2009-09-28  Eric Blake  <ebb9@byu.net>
13275
13276         doc: mention yet more cygwin 1.7 status
13277         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
13278         cygwin.
13279         * doc/glibc-functions/execvpe.texi (execvpe): New file.
13280         * doc/gnulib.texi (Glibc unistd.h): Mention it.
13281
13282         argp: fix test failure
13283         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
13284         that are not upper-case.  Pass correct range to tolower.
13285
13286 2009-09-27  Jim Meyering  <meyering@redhat.com>
13287
13288         test-yesno: work around sparc-dash here-document infelicity
13289         Without this change, the literal \177 byte in a here document
13290         would make dash 0.5.5.1-3 access uninitialized memory.
13291         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
13292         Instead, use a marker, "@", and filter through tr to create the desired
13293         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
13294
13295 2009-09-27  Bruno Haible  <bruno@clisp.org>
13296
13297         Disable untested support for new flavours of ACLs on AIX.
13298         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
13299         progress.
13300         * lib/set-mode-acl.c (qset_acl): Likewise.
13301
13302 2008-12-07  Bruno Haible  <bruno@clisp.org>
13303
13304         Add support for new flavours of ACLs on AIX. (Untested.)
13305         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
13306         (file_has_acl): Add support for newer AIX.
13307         * lib/set-mode-acl.c (qset_acl): Likewise.
13308         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
13309         Rainer Tammer <tammer@tammer.net>.
13310
13311 2009-09-26  Eric Blake  <ebb9@byu.net>
13312
13313         argp: fix compilation of getopt
13314         * lib/getopt.in.h (includes): Use different guard than glibc.
13315         Reported by Sergey Poznyakoff.
13316
13317         doc: mention more cygwin 1.7 status
13318         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
13319         bug.
13320         * doc/posix-functions/execl.texi (execl): Likewise.
13321         * doc/posix-functions/execle.texi (execle): Likewise.
13322         * doc/posix-functions/execlp.texi (execlp): Likewise.
13323         * doc/posix-functions/execv.texi (execv): Likewise.
13324         * doc/posix-functions/execve.texi (execve): Likewise.
13325         * doc/posix-functions/execvp.texi (execvp): Likewise.
13326         * doc/glibc-functions/canonicalize_file_name.texi
13327         (canonicalize_file_name): Cygwin 1.7 now provides this.
13328         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
13329         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
13330         on AT_SYMLINK_NOFOLLOW.
13331
13332 2009-09-24  Eric Blake  <ebb9@byu.net>
13333
13334         test-linkat: make test more robust
13335         * tests/test-linkat.c (main): Avoid collision with EEXIST.
13336
13337         getopt: fix inclusion guards for cygwin
13338         * modules/getopt-posix (Depends-on): Add include-next.
13339         (Makefile.am): Substitute more items in replacement header.
13340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
13341         <getopt.h>.
13342         * lib/getopt.in.h (includes): Use split inclusion guard, and
13343         prefer <getopt.h> over include <unistd.h> when one is present.
13344         (option): Also override name of 'struct option'.
13345
13346         same-inode: revert prior change; it is not yet ready
13347         * NEWS: Undo mention of this change.
13348         * lib/same-inode.h (same-inode.h): Undo tri-state change.
13349         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13350         * lib/cycle-check.c (cycle_check): Likewise.
13351         * lib/same.c (same_name): Likewise.
13352         * lib/at-func2.c (at_func2): Likewise.
13353
13354 2009-09-23  Eric Blake  <ebb9@byu.net>
13355
13356         linkat: new module
13357         * modules/linkat: New file.
13358         * lib/at-func2.c (at_func2): Likewise.
13359         * lib/linkat.c (linkat): Likewise.
13360         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13361         * lib/openat-priv.h (at_func2): Add declaration.
13362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13363         * modules/unistd (Makefile.am): Substitute them.
13364         * lib/unistd.in.h (linkat): Declare it.
13365         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13366         * doc/posix-functions/linkat.texi (linkat): Likewise.
13367         * doc/posix-functions/link.texi (link): Tweak wording.
13368         * tests/test-link.c (main): Move guts...
13369         * tests/test-link.h (test_link): ...into new file.
13370         * modules/linkat-tests: New test.
13371         * tests/test-linkat.c: Likewise.
13372         * modules/link-tests (Files): Ship new file.
13373         (Depends-on): Add stdbool.
13374
13375         dirname: add library-safe mdir_name
13376         * lib/dirname.h (mdir_name): New prototype.
13377         * lib/dirname.c (dir_name): Move guts...
13378         (mdir_name): ...to new function that avoids xalloc_die.
13379
13380         fchdir: another mingw fix
13381         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
13382         * lib/fchdir.c (get_name): New helper method; skips canonicalize
13383         on mingw (where it has not yet been ported), and make it optional
13384         elsewhere.
13385         (_gl_register_fd): Use it.
13386
13387         same-inode: make SAME_INODE tri-state, to port to mingw
13388         * NEWS: Mention this change.
13389         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
13390         st_ino always being 0.
13391         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13392         * lib/cycle-check.c (cycle_check): Likewise.
13393         * lib/same.c (same_name): Likewise.
13394
13395         lstat: avoid mingw compilation error
13396         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
13397         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
13398         lstat ourselves.
13399         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
13400         was adequate.
13401         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
13402         the checks for lstat.
13403         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
13404
13405         link: fix test failure on Solaris 9
13406         * lib/link.c (rpl_link): Don't assume link will catch bogus
13407         trailing slash on source.
13408
13409         test-symlinkat: enhance test
13410         * tests/test-readlink.c (main): Move guts...
13411         * tests/test-readlink.h (test_readlink): ...into new file.
13412         * tests/test-symlink.c (main): Move guts...
13413         * tests/test-symlink.h (test_symlink): ...into new file.
13414         * tests/test-symlinkat.c (main): Use new files for further
13415         coverage.
13416         (do_symlink, do_readlink): New helper functions.
13417         * modules/symlink-tests (Files): Ship new file.
13418         (Depends-on): Add stdbool.
13419         * modules/readlink-tests (Files): Ship new file.
13420         (Depends-on): Add stdbool.
13421         * modules/symlinkat-tests (Files): Use new files.
13422
13423 2009-09-23  Eric Blake  <ebb9@byu.net>
13424
13425         readlink: document portability issue with symlink length
13426         * doc/posix-functions/lstat.texi (lstat): Mention that some file
13427         systems have bogus st_size on symlinks, and mention the
13428         areadlink-with-size module.
13429         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13430         * doc/posix-functions/readlink.texi (readlink): Mention the
13431         areadlink module, and ERANGE failure.
13432         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13433         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
13434
13435         readlink: fix Solaris 9 bug with trailing slash
13436         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
13437         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
13438         * doc/posix-functions/readlink.texi (readlink): Document this.
13439         * modules/readlink-tests: New test.
13440         * tests/test-readlink.c: Likewise.
13441
13442         readlink: fix cygwin 1.5.x bug with return type
13443         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
13444         * lib/unistd.in.h (readlink): Use ssize_t.
13445         * lib/readlink.c (readlink): Likewise.
13446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13447         * modules/unistd (Makefile.am): Substitute it.
13448         * lib/unistd.in.h (readlink): Declare replacement.
13449         * doc/posix-functions/readlink.texi (readlink): Document this.
13450
13451         symlink: use throughout gnulib
13452         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
13453         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
13454         symlink is not used.
13455         * modules/symlinkat (Depends-on): Add symlink.
13456         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13457         * modules/canonicalize-tests (Depends-on): Likewise.
13458         * modules/lstat-tests (Depends-on): Likewise.
13459         * modules/openat-tests (Depends-on): Likewise.
13460         * modules/remove-tests (Depends-on): Likewise.
13461         * modules/rmdir-tests (Depends-on): Likewise.
13462         * modules/unlink-tests (Depends-on): Likewise.
13463         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
13464         * tests/test-canonicalize.c (symlink): Likewise.
13465         * tests/test-fstatat.c (symlink): Likewise.
13466         * tests/test-lstat.c (symlink): Likewise.
13467         * tests/test-remove.c (symlink): Likewise.
13468         * tests/test-rmdir.c (symlink): Likewise.
13469         * tests/test-unlink.c (symlink): Likewise.
13470         * tests/test-unlinkat.c (symlink): Likewise.
13471
13472         symlink: new module, for Solaris 9 bug
13473         * modules/symlink: New file.
13474         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13475         * lib/symlink.c: Likewise.
13476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13477         * modules/unistd (Makefile.am): Substitute them.
13478         * lib/unistd.in.h (symlink): Declare replacement.
13479         * MODULES.html.sh (File system functions): Mention it.
13480         * doc/posix-functions/symlink.texi (symlink): Likewise.
13481         * modules/symlink-tests: New test.
13482         * tests/test-symlink.c: Likewise.
13483
13484 2009-09-23  Bruno Haible  <bruno@clisp.org>
13485
13486         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
13487         when needed.
13488         Test case: gnulib-tool --import --with-tests atexit inttypes.
13489         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13490
13491 2009-09-23  Bruno Haible  <bruno@clisp.org>
13492
13493         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13494         subcommand, not in a subshell.
13495
13496 2009-09-22  Eric Blake  <ebb9@byu.net>
13497
13498         unistd: sort replacement declarations
13499         * lib/unistd.in.h: Sort declarations.
13500
13501         open, openat: minor optimization
13502         * lib/open.c (open): If open succeeded, len is non-zero.
13503         * lib/openat.c (rpl_openat): Likewise.
13504
13505         link-follow: ensure correct result
13506         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13507         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13508         distinguish between possible failures.
13509
13510 2009-09-21  Eric Blake  <ebb9@byu.net>
13511
13512         fts: avoid compiler warning
13513         * lib/fts.c (dirent_inode_sort_may_be_useful)
13514         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13515
13516 2009-09-19  Bruno Haible  <bruno@clisp.org>
13517
13518         * lib/progreloc.c (canonicalize_file_name): New declaration.
13519
13520 2009-09-19  Eric Blake  <ebb9@byu.net>
13521
13522         link: fix quoting
13523         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13524
13525         openat: fix openat bugs on Solaris 9
13526         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13527         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13528         * modules/openat (Depends-on): Add open.
13529         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13530         * modules/fcntl-h (Makefile.am): Substitute it.
13531         * lib/fcntl.in.h (openat): Declare replacement.
13532         * doc/posix-functions/openat.texi (openat): Document this.
13533
13534         openat: move fstatat and unlinkat into correct files
13535         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13536         compiled.
13537         * lib/openat.c (fstatat, unlinkat): Move...
13538         * lib/fstatat.c (fstatat): ...into correct files.
13539         * lib/unlinkat.c (unlinkat): Likewise.
13540
13541         openat: fix unlinkat bugs on Solaris 9
13542         * lib/unlinkat.c (unlinkat): New file.
13543         * modules/openat (Depends-on): Add unlink.
13544         (Files): Distribute it.
13545         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13546         trailing slash behavior is broken.
13547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13548         * modules/unistd (Makefile.am): Substitute it.
13549         * lib/unistd.in.h (unlinkat): Declare replacement.
13550         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13551
13552         openat: fix fstatat bugs on Solaris 9
13553         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13554         stat.
13555         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13556
13557         test-unlinkat: enhance test, to expose Solaris 9 bug
13558         * tests/test-unlink.c (main): Factor guts...
13559         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13560         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13561         * tests/test-rmdir.c (main): Adjust caller.
13562         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13563         (unlinker): New helper function.
13564         (rmdirat): Enhance check.
13565         * modules/rmdir-tests (Depends-on): Add stdbool.
13566         * modules/unlink-tests (Depends-on): Likewise.
13567         (Files): Add test-unlink.h.
13568         * modules/openat-tests (Files): Likewise.
13569         (Depends-on): Add unlinkdir.
13570
13571         test-fstatat: new test, to expose Solaris 9 bugs
13572         * tests/test-stat.c (main): Factor guts...
13573         * tests/test-stat.h (test_stat_func): ...into new file.
13574         * tests/test-lstat.c (main): Factor guts...
13575         * tests/test-lstat.h (test_lstat_func): ...into new file.
13576         * tests/test-fstatat.c: New file.
13577         * modules/stat-tests (Files): Add test-stat.h.
13578         * modules/lstat-tests (Files): Add test-lstat.h.
13579         (Depends-on): Add stdbool.
13580         * modules/openat-tests (Depends-on): Add pathmax.
13581         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13582         (Makefile.am): Run new test.
13583
13584         remove: new module, for mingw and Solaris 9 bugs
13585         * modules/remove: New file.
13586         * lib/remove.c: Likewise.
13587         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13589         * modules/stdio (Makefile.am): Use them.
13590         * lib/stdio.in.h (remove): Declare replacement.
13591         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13592         * doc/posix-functions/remove.texi (remove): Likewise.
13593         * modules/remove-tests: New test.
13594         * tests/test-remove.c: Likewise.
13595
13596         unlink: new module, for Solaris 9 bug
13597         * modules/unlink: New file.
13598         * lib/unlink.c: Likewise.
13599         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13601         * modules/unistd (Makefile.am): Use them.
13602         * lib/unistd.in.h (stat): Declare replacement.
13603         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13604         * doc/posix-functions/unlink.texi (unlink): Likewise.
13605         * modules/unlink-tests: New test.
13606         * tests/test-unlink.c: Likewise.
13607
13608         lstat: fix Solaris 9 bug
13609         * lib/lstat.c (lstat): Also check for trailing slash on
13610         non-symlink, non-directories.  Use stat module to simplify logic.
13611         * doc/posix-functions/lstat.texi (lstat): Document it.
13612         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13613         (configure.ac): Check for symlink.
13614         * tests/test-lstat.c (main): Add more tests.
13615
13616         stat: add as dependency to other modules
13617         * modules/chown (Depends-on): Add stat.
13618         * modules/euidaccess (Depends-on): Likewise.
13619         * modules/fchdir (Depends-on): Likewise.
13620         * modules/isdir (Depends-on): Likewise.
13621         * modules/link (Depends-on): Likewise.
13622         * modules/lstat (Depends-on): Likewise.
13623         * modules/mkdir-p (Depends-on): Likewise.
13624         * modules/modechange (Depends-on): Likewise.
13625         * modules/open (Depends-on): Likewise.
13626         * modules/readlink (Depends-on): Likewise.
13627         * modules/same (Depends-on): Likewise.
13628
13629         stat: fix Solaris 9 bug
13630         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13631         slash.
13632         * lib/stat.c (rpl_stat): Work around it.
13633         * doc/posix-functions/stat.texi (stat): Update documentation.
13634
13635         stat: new module, for mingw bug
13636         * modules/stat: New file.
13637         * lib/stat.c: Likewise.
13638         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13639         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13640         * modules/sys_stat (Makefile.am): Use them.
13641         * lib/sys_stat.in.h (stat): Declare replacement.
13642         * lib/openat.c (fstatat): Deal with lstat and stat being function
13643         macros.
13644         * modules/openat (Depends-on): Add inline.
13645         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13646         * doc/posix-functions/stat.texi (stat): Likewise.
13647         * modules/stat-tests: New test.
13648         * tests/test-stat.c: Likewise.
13649
13650 2009-09-19  Jim Meyering  <meyering@redhat.com>
13651
13652         syntax-check: detect unnecessary inclusion of canonicalize.h
13653         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13654
13655 2009-09-19  Eric Blake  <ebb9@byu.net>
13656
13657         canonicalize-lgpl: adjust clients to use correct header
13658         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13659         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13660         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13661         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13662         * lib/progreloc.c (includes): Likewise.
13663
13664 2009-09-19  Jim Meyering  <meyering@redhat.com>
13665
13666         test-posixtm.c: correct a comment
13667         * tests/test-posixtm.c: Correct first-line comment.
13668         Spotted by Eric Blake.
13669
13670 2009-09-16  Jim Meyering  <meyering@redhat.com>
13671
13672         posixtm-tests: make T const-correct; add a test case
13673         * tests/test-posixtm.c (T): Declare const.
13674         Add a test for -(2^31+1).
13675         Remove useless can-succeed-only-in-2002 test.
13676
13677         posixtm-tests: adjust the sole failing test
13678         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
13679         expected output matches what mktime now produces.  Cross-checked via
13680         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
13681
13682         posixtm: move #ifdef'd tests into a new module
13683         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
13684         * tests/test-posixtm.c: ... this new file.
13685         * modules/posixtm-tests: New module.
13686
13687 2009-09-19  Eric Blake  <ebb9@byu.net>
13688
13689         openat: simplify use of at-func.c
13690         * lib/at-func.c (includes): Include prerequisites here, to
13691         simplify requirements on client files.
13692         * lib/openat-priv.h: Add double-inclusion guard.
13693         * lib/faccessat.c (includes): Simplify.
13694         * lib/fchmodat.c (includes): Likewise.
13695         * lib/fchownat.c (includes): Likewise.
13696         * lib/mkdirat.c (includes): Likewise.
13697         * lib/mkfifoat.c (includes): Likewise.
13698         * lib/symlinkat.c (includes): Likewise.
13699
13700         openat: allow return of fd 0
13701         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
13702         * modules/save-cwd (Depends-on): Replace fcntl-safer with
13703         unistd-safer.
13704         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
13705         <fcntl.h>; this module does not leak fds.
13706         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
13707         must be allowed to return 0, leaving openat_safer to add the
13708         safety.
13709         (openat_permissive): Avoid writing to just-opened fd 2 if
13710         restoring the current directory fails.
13711         * lib/openat-die.c (openat_restore_fail): Add comment.
13712         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
13713         (save_cwd): Guarantee safe fd, but without use of open_safer.
13714         * tests/test-openat.c: New test.
13715         * modules/openat-tests (Files, Makefile.am): Distribute and build
13716         new file.
13717
13718         relocatable-prog-wrapper: fix build
13719         * modules/relocatable-prog-wrapper (Files): Update name of
13720         canonicalize m4 file, broken on 2009-09-17.
13721         Reported by emad hajjar <aleppos@hotmail.com>.
13722
13723 2009-09-19  Bruno Haible  <bruno@clisp.org>
13724
13725         * lib/safe-alloc.h: Use the standard header with GPL copyright.
13726         * lib/safe-alloc.c: Likewise.
13727         Reported by Ian Beckwith <ianb@erislabs.net>.
13728
13729 2009-09-18  Bruno Haible  <bruno@clisp.org>
13730
13731         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
13732         Reported by <erobles@sensacd.com.mx>.
13733
13734 2009-09-17  Eric Blake  <ebb9@byu.net>
13735
13736         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
13737         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
13738         slashes when checking if last component is missing.
13739         * tests/test-canonicalize.c (main): Test this.
13740
13741         canonicalize, canonicalize-lgpl: honor // if distinct from /
13742         * modules/canonicalize (Files): Add double-slash-root.m4.
13743         * modules/canonicalize-lgpl (Files): Likewise.
13744         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13745         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13746         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
13747         fallback definition.
13748         (canonicalize_filename_mode): Use it to protect //.
13749         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
13750         (__realpath): Likewise.
13751         * tests/test-canonicalize.c (main): Test this.
13752         * tests/test-canonicalize-lgpl.c (main): Likewise.
13753         * modules/canonicalize-tests (Depends-on): Add same-inode.
13754         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13755
13756         canonicalize-lgpl: fix glibc bug with trailing slash
13757         * m4/canonicalize-lgpl.m4: Move contents...
13758         * m4/canonicalize.m4: ...here.
13759         (gl_CANONICALIZE_LGPL): Factor realpath check...
13760         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
13761         glibc 2.3.5 bug, fixed 2005-04-27.
13762         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
13763         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
13764         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
13765         * modules/canonicalize-lgpl (Files): Manage file rename.
13766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13767         * modules/stdlib (Makefile.am): Substitute witness.
13768         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
13769         is needed.
13770         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
13771         replacement is required.
13772         * lib/canonicalize.c (canonicalize_file_name): Likewise.
13773         * doc/glibc-functions/canonicalize_file_name.texi
13774         (canonicalize_file_name): Document this.
13775         * doc/posix-functions/realpath.texi (realpath): Likewise.
13776
13777         canonicalize-lgpl: reject non-directory with trailing slash
13778         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
13779         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
13780         catches failures in glibc 2.3.5.
13781         * tests/test-canonicalize.c (main): Likewise.
13782
13783         canonicalize-lgpl: use native realpath if it works
13784         * lib/canonicalize-lgpl.c (realpath): Guard with
13785         FUNC_REALPATH_WORKS.
13786         * lib/stdlib.in.h (realpath): Make declaration optional based on
13787         HAVE_REALPATH.
13788         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
13789         native realpath works.
13790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13791         * modules/stdlib (Makefile.am): Substitute witness.
13792
13793         canonicalize, canonicalize-lgpl: use <stdlib.h>
13794         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
13795         (Include): Mention <stdlib.h>.
13796         (configure.ac): Mention functions we provide.
13797         * modules/canonicalize (configure.ac): Likewise.
13798         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
13799         realpath if canonicalize_file_name is missing.
13800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
13801         * modules/stdlib (Makefile.am): Substitute witnesses.
13802         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
13803         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
13804         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
13805         * NEWS: Document this.
13806         * doc/glibc-functions/canonicalize_file_name.texi
13807         (canonicalize_file_name): Likewise.
13808         * doc/posix-functions/realpath.texi (realpath): Likewise.
13809         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
13810
13811         test-canonicalize: consolidate into single C program
13812         * tests/test-canonicalize.sh: Delete; move setup into...
13813         * tests/test-canonicalize.c (main): ...the program, making it
13814         easier to run in debugger.  Add some tests.
13815         * modules/canonicalize-tests (Files): Remove unused file.
13816         (Depends-on): Add progname.
13817         (configure.ac, Makefile.am): Simplify.
13818
13819         test-canonicalize-lgpl: consolidate into single C program
13820         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
13821         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
13822         easier to run in debugger.  Add some tests.
13823         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
13824         (configure.ac, Makefile.am): Simplify.
13825
13826         canonicalize: avoid resolvepath
13827         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
13828         unnecessary checks.
13829         * lib/canonicalize.c (includes): Simplify.
13830         (canonicalize_file_name): Drop resolvepath implementation.
13831         * modules/canonicalize (Depends-on): Drop filenamecat.
13832
13833         canonicalize: don't lose errno
13834         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
13835         over calls to free.
13836
13837         canonicalize: simplify errno handling
13838         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
13839         assignment.
13840
13841         canonicalize, canonicalize-lgpl: update module dependencies
13842         * modules/canonicalize (Depends-on): Add extensions, lstat,
13843         pathmax, stdlib.
13844         (Files): Drop pathmax.h.
13845         (configure.ac): Adjust macro name.
13846         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
13847         lstat, stdlib, sys_stat.
13848         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
13849         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
13850         extensions.
13851         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
13852         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
13853         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
13854         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
13855         declaration, if available.
13856         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
13857         we can rely on the readlink module.
13858         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
13859         (includes): Use <unistd.h> unconditionally.
13860
13861 2009-09-17  Eric Blake  <ebb9@byu.net>
13862
13863         maint: make Include sections of modules consistent
13864         * modules/alloca: Use only header name; no need to list #include.
13865         * modules/alloca-opt: Likewise.
13866         * modules/arpa_inet: Likewise.
13867         * modules/canon-host: Likewise.
13868         * modules/configmake: Likewise.
13869         * modules/dirent: Likewise.
13870         * modules/eealloc: Likewise.
13871         * modules/environ: Likewise.
13872         * modules/fchdir: Likewise.
13873         * modules/fcntl: Likewise.
13874         * modules/fcntl-h: Likewise.
13875         * modules/gethrxtime: Likewise.
13876         * modules/gettime: Likewise.
13877         * modules/ignore-value: Likewise.
13878         * modules/inet_ntop: Likewise.
13879         * modules/inet_pton: Likewise.
13880         * modules/inttypes: Likewise.
13881         * modules/isnand-nolibm: Likewise.
13882         * modules/isnanf-nolibm: Likewise.
13883         * modules/mbchar: Likewise.
13884         * modules/mbfile: Likewise.
13885         * modules/mbiter: Likewise.
13886         * modules/mbuiter: Likewise.
13887         * modules/netdb: Likewise.
13888         * modules/netinet_in: Likewise.
13889         * modules/nproc: Likewise.
13890         * modules/pagealign_alloc: Likewise.
13891         * modules/poll: Likewise.
13892         * modules/printf-frexp: Likewise.
13893         * modules/pthread: Likewise.
13894         * modules/putenv: Likewise.
13895         * modules/random_r: Likewise.
13896         * modules/relocatable-prog: Likewise.
13897         * modules/search: Likewise.
13898         * modules/select: Likewise.
13899         * modules/selinux-h: Likewise.
13900         * modules/settime: Likewise.
13901         * modules/signal: Likewise.
13902         * modules/size_max: Likewise.
13903         * modules/socklen: Likewise.
13904         * modules/ssize_t: Likewise.
13905         * modules/stdarg: Likewise.
13906         * modules/stdbool: Likewise.
13907         * modules/stddef: Likewise.
13908         * modules/stdint: Likewise.
13909         * modules/stdio: Likewise.
13910         * modules/stdlib: Likewise.
13911         * modules/string: Likewise.
13912         * modules/strings: Likewise.
13913         * modules/sys_file: Likewise.
13914         * modules/sys_ioctl: Likewise.
13915         * modules/sys_select: Likewise.
13916         * modules/sys_socket: Likewise.
13917         * modules/sys_stat: Likewise.
13918         * modules/sys_time: Likewise.
13919         * modules/sys_times: Likewise.
13920         * modules/sys_utsname: Likewise.
13921         * modules/sys_wait: Likewise.
13922         * modules/sysexits: Likewise.
13923         * modules/time: Likewise.
13924         * modules/times: Likewise.
13925         * modules/tmpfile: Likewise.
13926         * modules/trim: Likewise.
13927         * modules/unistd: Likewise.
13928         * modules/wchar: Likewise.
13929         * modules/wctype: Likewise.
13930
13931 2009-09-17  Bruno Haible  <bruno@clisp.org>
13932
13933         Make getdate.y compile on QNX and NetBSD 5 / i386.
13934         * m4/getdate.m4 (gl_GETDATE): Conditionally define
13935         TIME_T_FITS_IN_LONG_INT.
13936         * lib/getdate.y (long_time_t): New type.
13937         (relative_time): Change type of 'seconds' field to long_time_t.
13938         (get_date): Update types of local variables. Check against overflow
13939         during conversion from long_time_t to time_t.
13940         Reported by Matt Kraai <kraai@ftbfs.org>
13941         and Hasso Tepper <hasso@netbsd.org>.
13942
13943 2009-09-17  Bruno Haible  <bruno@clisp.org>
13944
13945         * modules/COPYING: Update copyright years.
13946         * modules/README: Likeiwse.
13947         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
13948         Reported by Ian Beckwith <ianb@erislabs.net>.
13949
13950 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13951
13952         * users.txt: Update references for gnuit package.
13953
13954 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13955
13956         * m4/getdelim.m4: Fix typo in copyright line.
13957
13958 2009-09-17  Bruno Haible  <bruno@clisp.org>
13959
13960         * lib/atoll.c: Use the standard header with GPL copyright.
13961         * lib/argz.in.h: Likewise.
13962         * lib/glob.c: Likewise.
13963         * lib/glob-libc.h: Likewise.
13964         * lib/random_r.c: Likewise.
13965         * lib/siglist.h: Likewise.
13966         * lib/strsignal.c: Likewise.
13967         Reported by Ian Beckwith <ianb@erislabs.net>.
13968
13969 2009-09-17  Eric Blake  <ebb9@byu.net>
13970
13971         rmdir: ensure correct dependency order
13972         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
13973
13974 2009-09-17  Bruno Haible  <bruno@clisp.org>
13975
13976         Disable assertion that fails on NetBSD 5 / i386.
13977         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
13978         Reported by Sam Steingold <sds@gnu.org>
13979         and Hasso Tepper <hasso@netbsd.org>.
13980
13981 2009-09-16  Eric Blake  <ebb9@byu.net>
13982
13983         unlinkdir: port to mingw
13984         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
13985         on which no one can unlink a directory.
13986
13987         stdlib: sort witness names
13988         * modules/stdlib (Makefile.am): Sort replacements.
13989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
13990         * lib/stdlib.in.h: Likewise.
13991
13992         parse-duration-tests: avoid link failure
13993         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
13994         LIBINTL.
13995         Reported by Tom G. Christensen.
13996
13997         openat-tests: ensure unlinkat behaves like rmdir
13998         * tests/test-rmdir.c (main): Factor guts...
13999         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
14000         * modules/rmdir-tests (Files): Ship new file.
14001         * modules/openat-tests: New test.
14002         * tests/test-unlinkat.c: Likewise.
14003
14004         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
14005         * modules/rmdir-errno (Status, Notice): Now obsolete.
14006
14007         rmdir: work around cygwin 1.5.x and mingw bugs
14008         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
14009         * lib/rmdir.c (rmdir): Work around it.
14010         * modules/rmdir (Status, Notice): No longer obsolete.
14011         (Files): Add dos.m4.
14012         (Depends-on): Add unistd.
14013         (configure.ac): Set witnesses.
14014         (License): Relax to LGPLv2+.
14015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
14016         * modules/unistd (Makefile.am): Substitute witnesses.
14017         * lib/unistd.in.h (rmdir): Declare replacement.
14018         * doc/posix-functions/rmdir.texi (rmdir): Document this.
14019         * modules/rmdir-tests: New tests.
14020         * tests/test-rmdir.c: Likewise.
14021
14022 2009-09-15  Eric Blake  <ebb9@byu.net>
14023
14024         fchdir: improve use of replacement functions
14025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
14026         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
14027         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
14028         REPLACE_CLOSEDIR.
14029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
14030         * modules/sys_stat (Makefile.am): Substitute correct witness.
14031         * modules/dirent (Makefile.am): Likewise.
14032         * modules/unistd (Makefile.am): Likewise.
14033         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
14034         * lib/unistd.in.h (dup): Likewise.
14035         * lib/sys_stat.in.h (fstat): Likewise.
14036
14037         maint: ignore gnulib-tool temp files
14038         * .gitignore: Ignore files created during gnulib-tool --test.
14039
14040 2009-09-13  Jim Meyering  <meyering@redhat.com>
14041
14042         posixtm: don't reject a time that specify "60" as the number of seconds
14043         * lib/posixtm.c (posixtime): The code to reject invalid dates
14044         would also reject a time specified with the .60 suffix.
14045         But POSIX allows that, in order to accommodate leap seconds.
14046         So don't reject it.
14047         (main): Adjust tests accordingly.
14048         * modules/posixtm (Depends-on): Add stpcpy.
14049
14050 2009-09-11  Jim Meyering  <meyering@redhat.com>
14051
14052         announce-gen: include [$release_type] in emitted Subject:
14053         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
14054         e.g., [stable] in the emitted Subject: line.
14055
14056 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14057
14058         Remove obsolete macros from several modules.
14059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
14060         obsolete Autoconf macros with their modern counterparts.
14061         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
14062         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
14063         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
14064         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
14065         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
14066         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14068         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14069         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14070         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
14071         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14072         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14073         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14074         * m4/sockets.m4 (gl_SOCKETS): Likewise.
14075         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
14076         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
14077         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14078         * m4/time_r.m4 (gl_TIME_R): Likewise.
14079         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14080         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
14081         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14082
14083         Fix copyright header in build-aux scripts.
14084         * build-aux/git-version-gen: Fix copyright header to match GPLv3
14085         recommendation.
14086         * build-aux/ncftpput-ftp: Likewise.
14087         * build-aux/update-copyright: Likewise.
14088
14089 2009-09-09  Eric Blake  <ebb9@byu.net>
14090
14091         test-link: allow Linux choice of errno
14092         * tests/test-link.c (main): Relax test for alternate error.
14093
14094         strndup: fix improper m4 caching
14095         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
14096         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
14097         (gl_PREREQ_STRNDUP): Delete.
14098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
14099         * modules/string (Makefile.am): Substitute it.
14100         * lib/string.in.h (strndup): Modernize prototype.
14101
14102         getcwd: port to mingw
14103         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
14104         different from the POSIX assumptions made throughout the getcwd
14105         module; fortunately, the mingw getcwd does not need replacement.
14106         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
14107         * modules/getcwd-tests: New test.
14108         * tests/test-getcwd.c: Likewise.
14109
14110         link: fix platform bugs
14111         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
14112         * lib/link.c (link): Work around them.  Fix related mingw bug.
14113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
14114         * modules/unistd (Makefile.am): Substitute it.
14115         * lib/unistd.in.h (link): Declare replacement.
14116         * doc/posix-functions/link.texi (link): Document this.
14117         * modules/link (Depends-on): Add strdup-posix, sys_stat.
14118
14119         test-link: consolidate into single C program, test more cases
14120         * tests/test-link.sh: Delete.
14121         * tests/test-link.c: Test more error conditions.  Exposes bugs on
14122         at least Cygwin and Solaris.
14123         * modules/link-tests (Files): Remove unused file.
14124         (Depends-on): Add errno, sys_stat.
14125         (Makefile.am): Simplify.
14126
14127 2009-09-08  Bruno Haible  <bruno@clisp.org>
14128
14129         Work around towlower, towupper bug on mingw.
14130         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
14131         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
14132         * doc/posix-functions/towlower.texi: Mention the mingw bug.
14133         * doc/posix-functions/towupper.texi: Likewise.
14134         Reported by Eric Blake.
14135
14136 2009-09-08  Jim Meyering  <meyering@redhat.com>
14137
14138         build: don't try to run autoheader if we don't use it
14139         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
14140         is not used in configure.ac.
14141
14142 2009-09-08  Eric Blake  <ebb9@byu.net>
14143
14144         euidaccess: fix compilation error
14145         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
14146
14147         rawmemchr: relax license
14148         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
14149         okay.
14150         Reported by Jim Meyering.
14151
14152         mkfifoat: new module
14153         * modules/mkfifoat: New file.
14154         * lib/mkfifoat.c: Likewise.
14155         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
14156         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14157         * modules/sys_stat (Makefile.am): Use them.
14158         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
14159         * MODULES.html.sh (File system functions): Mention module.
14160         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14161         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14162         * modules/mkfifoat-tests: New test.
14163         * tests/test-mkfifoat.c: Likewise.
14164
14165         strchrnul: relax license
14166         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
14167         okay.
14168         Reported by Jim Meyering.
14169
14170 2009-09-08  Eric Blake  <ebb9@byu.net>
14171
14172         fstatat: fix compilation on Solaris
14173         * lib/fstatat.c (includes): Add fcntl.h.
14174         Reported by Pádraig Brady.
14175
14176 2009-09-07  Eric Blake  <ebb9@byu.net>
14177
14178         rename: modernize replacement
14179         * modules/rename (Depends-on): Add stdio.
14180         (configure.ac): Declare witness.
14181         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
14182         stdio take care of replacement.
14183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
14184         * modules/stdio (Makefile.am): Substitute them.
14185         * lib/stdio.in.h (rename): Declare replacement.
14186         * lib/rename.c (includes): Allow cross-compilation to non-windows
14187         machines.
14188         * doc/posix-functions/rename.texi (rename): Improve
14189         documentation.
14190
14191         stdio: sort witness names
14192         * modules/stdio (Makefile.am): Sort replacements.
14193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14194         * lib/stdio.in.h: Likewise.
14195
14196         getcwd: minor cleanups
14197         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
14198         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
14199
14200         openat: provide more convenience names
14201         * modules/faccessat (configure.ac): Add C witness.
14202         * lib/unistd.in.h (readlinkat): Fix typo.
14203         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
14204         convenience wrappers.
14205         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
14206         wrappers in syntax checks.
14207
14208 2009-09-06  Eric Blake  <ebb9@byu.net>
14209
14210         doc: fix comments in recent patches
14211         * lib/faccessat.c: Mention correct function.
14212         * lib/fchmodat.c: Likewise.
14213         * lib/fchownat.c: Likewise.
14214         * lib/symlinkat.c: Likewise.
14215         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
14216         constants.
14217
14218         faccessat, symlinkat: continue cleanup of previous patch
14219         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
14220         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14221         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
14222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
14223         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
14224         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
14225         set.
14226
14227 2009-09-06  Bruno Haible  <bruno@clisp.org>
14228
14229         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
14230         (fstatat): Declare if GNULIB_FSTATAT is set.
14231         (mkdirat): Declare if GNULIB_MKDIRAT is set.
14232         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
14233         (unlinkat): Declare if GNULIB_UNLINKAT is set.
14234         * modules/fcntl-h (Files): Remove m4/openat.m4.
14235         * modules/sys_stat (Files): Remove m4/openat.m4.
14236         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
14237         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
14238         * modules/unistd (Files): Remove m4/openat.m4.
14239         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
14240         GNULIB_OPENAT.
14241         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
14242         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
14243         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
14244         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
14245         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
14246         gl_OPENAT_DEFAULTS.
14247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
14248         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
14249         Don't require gl_OPENAT_DEFAULTS.
14250         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
14251         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
14252         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
14253         (gl_OPENAT_DEFAULTS): Remove macro.
14254
14255 2009-09-06  Bruno Haible  <bruno@clisp.org>
14256
14257         * modules/openat (configure.ac): Remove unneeded witness.
14258
14259 2009-09-06  Bruno Haible  <bruno@clisp.org>
14260
14261         Set errno to ENOSYS when a function is entirely unsupported.
14262         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
14263         EOPNOTSUPP.
14264         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14265         * modules/chown (Depends-on): Remove errno.
14266
14267 2009-09-06  Bruno Haible  <bruno@clisp.org>
14268
14269         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
14270
14271 2009-09-06  Bruno Haible  <bruno@clisp.org>
14272
14273         * lib/sys_stat.in.h: Fix preprocessor command indentation.
14274
14275 2009-09-06  Ben Pfaff  <blp@gnu.org>
14276             Bruno Haible  <bruno@clisp.org>
14277
14278         Work around a glibc bug in strtok_r.
14279         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
14280         Undefine if UNDEFINE_STRTOK_R is set.
14281         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
14282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14283         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
14284         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
14285         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
14286         UNDEFINE_STRTOK_R.
14287         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
14288
14289 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14290
14291         exclude: minor fix
14292         * lib/exclude.c: Include wctype.h
14293
14294 2009-09-06  Akim Demaille  <demaille@gostai.com>
14295
14296         bootstrap: improve error message
14297         * build-aux/bootstrap (find_tool): Upon failure, report the list
14298         of candidates.
14299         Honor the initial value of the envvar.
14300
14301 2009-09-05  Eric Blake  <ebb9@byu.net>
14302
14303         symlinkat: new module
14304         * modules/symlinkat: New file.
14305         * lib/symlinkat.c: Likewise.
14306         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14308         * modules/unistd (Makefile.am): Use them.
14309         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
14310         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
14311         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
14312         * MODULES.html.sh (File system functions): Mention module.
14313         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14314         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14315         * modules/symlinkat-tests: New test.
14316         * tests/test-symlinkat.c: Likewise.
14317
14318         test-openat-safer: add more checks
14319         * tests/test-openat-safer.c (main): Check more code paths.
14320
14321 2009-09-05  Jim Meyering  <meyering@redhat.com>
14322
14323         syntax-check: detect unnecessary inclusion of openat.h
14324         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
14325
14326 2009-09-05  Bruno Haible  <bruno@clisp.org>
14327
14328         Support towlower, towupper.
14329         * doc/posix-functions/towlower.texi: Mention module wctype.
14330         * doc/posix-functions/towupper.texi: Likewise.
14331         * lib/wctype.in.h (towlower, towupper): New functions.
14332         * tests/test-wctype.c: Include stdio.h, stdlib.h.
14333         (ASSERT): New macro.
14334         (e): New variable.
14335         (main): Test also towlower, towupper. Test WEOF argument.
14336         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14337
14338 2009-09-05  Bruno Haible  <bruno@clisp.org>
14339
14340         Fix conversion behaviour when the input is invalid.
14341         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
14342         mark occurring in first pass of indirect conversion.
14343         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
14344         input.
14345         Found by clang's static analyzer.
14346
14347 2009-09-05  Bruno Haible  <bruno@clisp.org>
14348
14349         * tests/test-striconveh.c (main): Test indirect conversion on platforms
14350         where direct conversion is possible.
14351
14352 2009-09-04  Eric Blake  <ebb9@byu.net>
14353
14354         openat: fail with ENOENT on empty name
14355         * lib/openat-proc.c (openat_proc_name): Special-case the empty
14356         buffer.
14357
14358         link-follow: fix logic bug in prior patch
14359         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
14360         reversed sense of yes and no in prior patch.  Avoid confusing
14361         compilation failure with desired semantics.
14362
14363         link-follow: accomodate mingw and cross-compilation
14364         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
14365         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
14366         cross-compilation results to -1, to make linkat easier to
14367         implement when cross-compiling.  Trivially support mingw.
14368         * modules/link-follow (configure.ac): Call new name.
14369         * NEWS: Mention this.
14370
14371 2009-09-03  Eric Blake  <ebb9@byu.net>
14372
14373         faccessat: compile replacement
14374         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
14375         needed.
14376
14377         fts: fix compilation error
14378         * lib/fts.c (includes): Re-add "openat.h", for
14379         openat_needs_fchdir.
14380
14381         faccessat: new module
14382         * modules/faccessat: New file.
14383         * lib/faccessat.c: Likewise.
14384         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14386         * modules/unistd (Makefile.am): Use it.
14387         * lib/unistd.in.h (faccessat): Declare it.
14388         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
14389         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
14390         * MODULES.html.sh (File system functions): Mention it.
14391         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
14392         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14393
14394         euidaccess: prefer POSIX over non-standard implementation
14395         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
14396         * lib/euidaccess.c (euidaccess): Use it if available.
14397
14398         openat: make template easier to use
14399         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
14400         AT_FUNC_F2 to be undefined.
14401         (VALIDATE_FLAG): New macro; use it to reject bad flags.
14402         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
14403         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
14404         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
14405         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
14406         Likewise.
14407         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
14408         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
14409         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
14410         Likewise.
14411
14412         openat: declare in POSIX headers
14413         * NEWS: Mention this.
14414         * modules/openat (configure.ac): Declare witnesses.
14415         (Depends-on): Add fcntl-h, sys_stat, unistd.
14416         (Include): Mention correct headers.
14417         * modules/fcntl-h (Depends-on): Add link-warning.
14418         (Files): Add openat.m4.
14419         (Makefile.am): Substitute witnesses.
14420         * modules/sys_stat (Files, Makefile.am): Likewise.
14421         * modules/unistd (Files, Makefile.am): Likewise.
14422         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
14423         (gl_OPENAT_DEFAULTS): New macro.
14424         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
14425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
14426         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
14427         (SYS_STAT_H): Remove unused variable.
14428         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
14429         * lib/fcntl--.h (includes): Remove unneeded header.
14430         * lib/openat-safer.c (includes): Likewise.
14431         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
14432         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
14433         appropriate headers.
14434         (__OPENAT_PREFIX): Delete.
14435         * lib/fcntl.in.h (openat): Provide declaration.
14436         (AT_FDCWD): Fix Solaris bug.
14437         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
14438         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
14439         * lib/fchmodat.c (includes):  Adjust to find declaration.
14440         * lib/fchownat.c (includes): Likewise.
14441         * lib/mkdirat.c (includes): Likewise.
14442         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
14443         still visible.
14444
14445 2009-09-02  Eric Blake  <ebb9@byu.net>
14446
14447         errno: use consistently
14448         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
14449         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
14450         * lib/canonicalize.c (ELOOP): Likewise.
14451         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
14452         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
14453         * lib/lchown.c (EOPNOTSUPP): Likewise.
14454         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
14455         * lib/savewd.c (ESTALE): Likewise.
14456         * lib/settime.c (ENOSYS): Likewise.
14457         * lib/utimens.c (ENOSYS): Likewise.
14458         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
14459         * lib/chdir-safer.c (ELOOP): Likewise.
14460         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
14461         * modules/c-stack (Depends-on): Add errno.
14462         * modules/canonicalize (Depends-on): Likewise.
14463         * modules/chdir-safer (Depends-on): Likewise.
14464         * modules/fdopendir (Depends-on): Likewise.
14465         * modules/inet_ntop (Depends-on): Likewise.
14466         * modules/inet_pton (Depends-on): Likewise.
14467         * modules/lchown (Depends-on): Likewise.
14468         * modules/openat (Depends-on): Likewise.
14469         * modules/savewd (Depends-on): Likewise.
14470         * modules/settime (Depends-on): Likewise.
14471         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
14472
14473         fts: avoid leaking fds
14474         * modules/fts (Depends-on): Add cloexec.
14475         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
14476         flag.
14477
14478         fts: make directory fds more robust
14479         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
14480         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
14481
14482         backupfile, chdir-long, fts, savedir: make safer
14483         * lib/backupfile.c (includes): Use "dirent--.h", since
14484         numbered_backup can write to stderr during readdir.
14485         * lib/savedir.c (includes): Likewise.
14486         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
14487         emulation can write to stderr on failure.
14488         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
14489         * lib/getcwd.c: Document why opendir_safer is unused.
14490         * lib/glob.c: Likewise.
14491         * lib/scandir.c: Likewise.
14492         * lib/openat-proc.c: Likewise, for open_safer.
14493         * modules/backupfile (Depends-on): Add dirent-safer.
14494         * modules/savedir (Depends-on): Likewise.
14495         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14496         * modules/chdir-long (Depends-on): Add openat-safer.
14497
14498         openat-safer: new module
14499         * modules/openat-safer: New file.
14500         * lib/openat-safer.c: Likewise.
14501         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14502         * lib/fcntl-safer.h (openat_safer): Declare.
14503         * lib/fcntl--.h (openat): Override.
14504         * MODULES.html.sh (File descriptor based I/O): Mention it.
14505         * lib/openat.h: Add double-inclusion guards.
14506         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14507         "fcntl--.h", so we can implement openat.
14508         * modules/openat-safer-tests: New test.
14509         * tests/test-openat-safer.c: New file.
14510
14511         dirent-safer: new module
14512         * modules/dirent-safer: New file.
14513         * lib/dirent--.h: Likewise.
14514         * lib/dirent-safer.h: Likewise.
14515         * lib/opendir-safer.c: Likewise.
14516         * m4/dirent-safer.m4: Likewise.
14517         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14518         * modules/dirent-safer-tests: New test.
14519         * tests/test-dirent-safer.c: New file.
14520         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14521
14522         fdopendir: optimize on mingw
14523         * lib/unistd.in.h (_gl_directory_name): New prototype.
14524         * lib/fchdir.c (_gl_directory_name): Implement it.
14525         (fchdir): Use it to simplify implementation.
14526         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14527         fchdir, when available, to avoid calling [f]chdir().
14528
14529         fdopendir: split into its own module
14530         * lib/openat.c (fdopendir): Move...
14531         * lib/fdopendir.c: ...into new file.
14532         * modules/fdopendir: New module.
14533         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14534         * modules/openat (Depends-on): Add fdopendir.
14535         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14536         fdopendir here.
14537         * modules/savedir (Depends-on): Only need fdopendir, not full
14538         openat.
14539         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14540         * lib/openat.h (fdopendir): Drop prototype.
14541         * lib/dirent.in.h (fdopendir): Provide prototype.
14542         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14543         * modules/dirent (Makefile.am): Substitute them.
14544         * MODULES.html.sh (File system functions): Mention it.
14545         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14546         * modules/fdopendir-tests: New file.
14547         * tests/test-fdopendir.c: Likewise.
14548
14549         fchdir: use more consistent macro convention
14550         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14551         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14552         REPLACE_FCHDIR, rather than relying on config.h macros.
14553         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14554         inside a single make-time REPLACE_FCHDIR block, rather than using
14555         the config.h FCHDIR_REPLACEMENT.
14556         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14557         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14558         Manage fstat replacement.
14559         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14560         REPLACE_FCHDIR.
14561         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14562         (Makefile.am): Substitute REPLACE_FCHDIR.
14563         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14564         FCHDIR_REPLACEMENT.
14565         * lib/dup-safer.c (dup_safer): Likewise.
14566         * lib/dup2.c (rpl_dup2): Likewise.
14567         * lib/dup3.c (rpl_dup3): Likewise.
14568         * lib/open.c (rpl_open): Likewise.
14569
14570         fchdir: simplify error handling, and support dup3
14571         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14572         stdbool, malloc-posix, realloc-posix.
14573         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14574         (ensure_dirs_slot): Return false on allocation failure.
14575         (rpl_dup2): Delete.
14576         (_gl_register_dup): New function.
14577         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14578         (_gl_register_fd): Close fd on allocation failure.
14579         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14580         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14581         prototype.
14582         (rpl_dup2_fchdir): Delete prototype.
14583         * lib/open.c (open): Update caller.
14584         * lib/dup2.c (dup2): Track fchdir metadata.
14585         * lib/dup3.c (dup3): Likewise.
14586         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14588
14589 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14590
14591         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14592         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14593         don't pass arguments to AC_OUTPUT.
14594
14595 2009-09-02  Bruno Haible  <bruno@clisp.org>
14596
14597         * modules/mkdtemp (License): Relicense under LGPLv2+.
14598         Reported by Paolo Bonzini.
14599
14600 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14601
14602         Replace uses of obsolete autoconf macros in Jim's modules.
14603         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14604         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14605         can evoke a warning from autoconf when run with -Wobsolete
14606         enabled.  They were declared obsolete for good reasons (see
14607         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14608         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14609         should not continue using the deprecated macros.
14610         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14611         obsolete Autoconf macros with modern counterparts.
14612         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14613         * m4/dos.m4 (gl_AC_DOS): Likewise.
14614         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14615         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14616         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14617         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14618         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14619         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14620         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14621         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14622         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14623         Likewise.
14624         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14625         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14626         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14627         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14628         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14629         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14630
14631 2009-09-01  Eric Blake  <ebb9@byu.net>
14632
14633         fchdir: fix off-by-one bug in previous patch
14634         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14635         (_gl_unregister_fd): Delete useless if.
14636
14637 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14638
14639         maint.mk: sort the list of syntax-check rules
14640         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14641         easier to get a sense of progress when the rules are run sequentially
14642         and take a long time.
14643
14644 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14645
14646         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14647         * modules/netinet_in: Likewise.
14648         * modules/sys_file: Likewise.
14649         * modules/sys_ioctl: Likewise.
14650         * modules/sys_select: Likewise.
14651         * modules/sys_socket: Likewise.
14652         * modules/sys_stat: Likewise.
14653         * modules/sys_time: Likewise.
14654         * modules/sys_times: Likewise.
14655         * modules/sys_utsname: Likewise.
14656         * modules/sys_wait: Likewise.
14657
14658 2009-09-01  Jim Meyering  <meyering@redhat.com>
14659
14660         fts: help ensure that return values are not ignored
14661         * lib/fts_.h (__GNUC_PREREQ): Define.
14662         (__attribute_warn_unused_result__): Define.
14663         (fts_children, fts_close, fts_open, fts_read): Declare with
14664         __attribute_warn_unused_result__.
14665
14666         fts: fts_close now fails also when closing a dir file descriptor fails
14667         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14668         and propagate to caller, along with errno.
14669
14670         announce-gen: correct formatting in --help output
14671         * build-aux/announce-gen (usage): Move the one-line description in
14672         --help output "up", to where it belongs, just after Usage:.
14673
14674 2009-08-31  Eric Blake  <ebb9@byu.net>
14675
14676         fchdir: port to mingw
14677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
14678         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
14679         opened, then use a substitute.
14680         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
14681         replacement.
14682         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
14683         (_gl_register_fd): No need to check stat if open already filters
14684         all directories.
14685         (fchdir): Fix error condition to match POSIX.
14686         * modules/fchdir (Depends-on): Add sys_stat.
14687         * doc/posix-functions/open.texi (open): Document the limitation.
14688         * modules/fchdir-tests: New file.
14689         * tests/test-fchdir.c: Likewise.
14690
14691         canonicalize: allow cross-testing from cygwin to mingw
14692         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
14693         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
14694         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
14695         Likewise.
14696         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
14697         target does not support symlinks.
14698         * tests/test-canonicalize-lgpl.sh: Likewise.
14699
14700         chown: avoid compilation warning on mingw
14701         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
14702         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
14703         mingw.
14704         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14705         * modules/chown (Depends-on): Add errno.
14706
14707 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14708
14709         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
14710         command.
14711
14712 2009-08-31  Jim Meyering  <meyering@redhat.com>
14713
14714         canonicalize: remove useless initialization
14715         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
14716         initialization of local, "end".
14717
14718 2009-08-30  Bruno Haible  <bruno@clisp.org>
14719
14720         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
14721         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
14722         ENOSYS.
14723
14724 2009-08-30  Bruno Haible  <bruno@clisp.org>
14725
14726         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
14727         /usr/xpg4/bin/tr when it exists.
14728         * tests/test-pipe-filter-gi1.sh: Likewise.
14729
14730 2009-08-30  Bruno Haible  <bruno@clisp.org>
14731
14732         Work around deficient /usr/bin/id program on Solaris.
14733         * tests/test-file-has-acl.sh (ID): New variable.
14734         * tests/test-set-mode-acl.sh (ID): Likewise.
14735         * tests/test-copy-acl.sh (ID): Likewise.
14736         * tests/test-copy-file.sh (ID): Likewise.
14737
14738 2009-08-30  Bruno Haible  <bruno@clisp.org>
14739
14740         New module 'xstriconveh'.
14741         * lib/xstriconveh.h: New file.
14742         * lib/xstriconveh.c: New file.
14743         * modules/xstriconveh: New file.
14744
14745 2009-08-30  Bruno Haible  <bruno@clisp.org>
14746
14747         Make it easier to use mem_cd_iconveh.
14748         * lib/striconveh.h (iconveh_t): New type.
14749         (iconveh_open, iconveh_close): New declarations.
14750         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14751         with a single 'const iconveh_t *' argument.
14752         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
14753         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14754         with a single 'const iconveh_t *' argument.
14755         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
14756         * tests/test-striconveh.c (main): Update.
14757         * NEWS: Mention the change.
14758
14759 2009-08-30  Bruno Haible  <bruno@clisp.org>
14760
14761         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
14762         problem.
14763
14764 2009-08-30  Bruno Haible  <bruno@clisp.org>
14765
14766         Work around iconv_open problem on Solaris.
14767         * lib/iconv_open-solaris.gperf: New file.
14768         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
14769         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
14770         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
14771         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
14772         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
14773         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
14774
14775 2009-08-29  Jim Meyering  <meyering@redhat.com>
14776
14777         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
14778         * top/maint.mk (cvs-check): Remove target; it was just an alias
14779         to the better-named vc-diff-check.
14780         (maintainer-distcheck): Remove rule.  It was used only from
14781         the (alpha/beta/major) target, and all of its commands but one
14782         were coreutils-specific.
14783         (vc-dist): Remove rule.
14784         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
14785         Run vc-diff-check, not vc-dist.
14786         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
14787
14788 2009-08-27  Bruno Haible  <bruno@clisp.org>
14789
14790         * tests/test-bitrotate.c (main): Remove test that uses a shift count
14791         of 0.
14792
14793 2009-08-27  Bruno Haible  <bruno@clisp.org>
14794
14795         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
14796         compilers.
14797         * doc/func.texi: Document the SunPRO C bug.
14798
14799 2009-08-27  Bruno Haible  <bruno@clisp.org>
14800
14801         Fix link error on Solaris.
14802         * tests/test-parse-duration.c (xstrdup): Remove function.
14803
14804 2009-08-26  Pádraig Brady  <P@draigbrady.com>
14805
14806         ignore-value: handle pointer types, too
14807         * lib/ignore-value.h (__attribute__): Remove definition.
14808         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
14809         of a more concise and more-often effective "(void) i" statement.
14810         (ignore_ptr): New function to suppress warnings from functions that
14811         return pointers, and to make it explicit that one function doesn't
14812         handle all cases.
14813
14814 2009-08-25  Bruno Haible  <bruno@clisp.org>
14815
14816         dup2: work around a Linux bug.
14817         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
14818         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
14819         * doc/posix-functions/dup2.texi: Mention the Linux bug.
14820         Reported by Simon Josefsson.
14821
14822 2009-08-25  Jim Meyering  <meyering@redhat.com>
14823
14824         libguestfs uses gnulib
14825         * users.txt: Add libguestfs.
14826
14827 2009-08-24  Eric Blake  <ebb9@byu.net>
14828
14829         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
14830         * lib/pipe2.c (includes): Add binary-io.h.
14831         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
14832
14833 2009-08-24  Bruno Haible  <bruno@clisp.org>
14834
14835         Tolerate declared but missing accept4 syscall.
14836         * lib/accept4.c (accept4): Invoke original accept4 function first, if
14837         available.
14838         * lib/sys_socket.in.h (accept4): If the function is already present,
14839         override it.
14840         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
14841         * modules/accept4 (Makefile.am): Compile accept4.c always.
14842         Reported by Paolo Bonzini and Eric Blake.
14843
14844 2009-08-23  Bruno Haible  <bruno@clisp.org>
14845
14846         New module 'accept4'.
14847         * lib/sys_socket.in.h (accept4): New declaration.
14848         * lib/accept4.c: New file.
14849         * m4/accept4.m4: New file.
14850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14851         GNULIB_ACCEPT4, HAVE_ACCEPT4.
14852         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
14853         HAVE_ACCEPT4.
14854         * modules/accept4: New file.
14855         * doc/glibc-functions/accept4.texi: Mention the new module.
14856
14857 2009-08-24  Jim Meyering  <meyering@redhat.com>
14858
14859         progname: also set global program_invocation_name, when possible
14860         Before this change, a libtool-enabled program that calls glibc's
14861         error function would report the program name as
14862         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
14863         * modules/progname (configure.ac): Check for a declaration of
14864         program_invocation_name.
14865         * lib/progname.c:  Include <errno.h>.
14866         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
14867         Set program_invocation_name.
14868
14869 2009-08-23  Bruno Haible  <bruno@clisp.org>
14870
14871         * lib/dup3.c: Include <string.h>.
14872
14873 2009-08-23  Bruno Haible  <bruno@clisp.org>
14874
14875         * lib/dup3.c (dup3): Test only once whether the system actually exists.
14876         * lib/pipe2.c (pipe2): Likewise.
14877         Suggested by Eric Blake.
14878
14879 2009-08-23  Bruno Haible  <bruno@clisp.org>
14880
14881         Tolerate declared but missing dup3 syscall.
14882         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
14883         * lib/unistd.in.h (dup3): If the function is already present,
14884         override it.
14885         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
14886         * modules/dup3 (Makefile.am): Compile dup3.c always.
14887         Reported by Paolo Bonzini.
14888
14889 2009-08-23  Bruno Haible  <bruno@clisp.org>
14890
14891         Tolerate declared but missing pipe2 syscall.
14892         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
14893         available.
14894         * lib/unistd.in.h (pipe2): If the function is already present,
14895         override it.
14896         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
14897         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
14898         Reported by Paolo Bonzini.
14899
14900 2009-08-23  Bruno Haible  <bruno@clisp.org>
14901
14902         * lib/pipe2.c (pipe2): Move #ifs inside function.
14903
14904 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14905
14906         quotearg: document limitations of quote_these_too
14907         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
14908         those limitations are created.
14909         * lib/quotearg.h (set_char_quoting): Document that digits and
14910         letters that are special after backslash are not permitted.
14911         (quotearg_char): Cross-reference set_char_quoting documentation.
14912
14913 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
14914
14915         quotearg: implement custom_quoting_style
14916         * lib/quotearg.c: (struct quoting_options): Add left_quote and
14917         right_quote fields.
14918         (set_custom_quoting): New public function.
14919         (quotearg_buffer_restyled): Add left_quote and right_quote
14920         arguments, handle them very much like locale quoting, and update
14921         all uses.
14922         (quotearg_n_custom): New public function.
14923         (quotearg_n_custom_mem): New public function.
14924         (quotearg_custom): New public function.
14925         (quotearg_custom_mem): New public function.
14926         * lib/quotearg.h: Prototype and document new public functions.
14927         (enum quoting_style): For escape_quoting_style and
14928         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
14929         ignored even though they're otherwise like c_quoting_style.
14930         Add custom_quoting_style member and document with comparison to
14931         clocale_quoting_style.
14932         * tests/test-quotearg.c (custom_quotes): New array.
14933         (custom_results): New array.
14934         (main): Extend to test custom quoting.
14935
14936 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14937
14938         quotearg: fix right quote escaping when it's in quote_these_too
14939         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
14940         quote, be sure to prepend only one backslash.
14941         * tests/test-quotearg.c (use_quote_double_quotes): New function.
14942         (main): Test it.
14943
14944 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14945
14946         quotearg-tests: test escaping of embedded locale quotes
14947         * tests/test-quotearg.c (struct result_strings): Add member for
14948         new input.
14949         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
14950         (inputs): Add new input.
14951         (results_g): Add expected results.
14952         (flag_results): Likewise.
14953         (locale_results): Likewise.
14954         (compare_strings): Check those.
14955
14956 2009-08-23  Bruno Haible  <bruno@clisp.org>
14957
14958         Tests for module 'dup3'.
14959         * modules/dup3-tests: New file.
14960         * tests/test-dup3.c: New file.
14961
14962         New module 'dup3'.
14963         * lib/unistd.in.h (dup3): New declaration.
14964         * lib/dup3.c: New file.
14965         * m4/dup3.m4: New file.
14966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
14967         HAVE_DUP3.
14968         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
14969         * modules/dup3: New file.
14970         * doc/glibc-functions/dup3.texi: Mention the new module.
14971
14972 2009-08-23  Bruno Haible  <bruno@clisp.org>
14973
14974         Tweak the dup2 test.
14975         * tests/test-dup2.c (main): Create the test file empty. Verify that an
14976         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
14977         the test file is still empty. Fix argument order of lseek.
14978
14979 2009-08-23  Bruno Haible  <bruno@clisp.org>
14980
14981         Avoid test link errors when the modules getopt-gnu, gettext are used.
14982         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
14983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14984
14985 2009-08-23  Bruno Haible  <bruno@clisp.org>
14986
14987         Fix getdtablesize() on mingw.
14988         * lib/getdtablesize.c (getdtablesize): Implement differently.
14989         * lib/unistd.in.h (getdtablesize): Improve comment.
14990
14991 2009-08-23  Bruno Haible  <bruno@clisp.org>
14992
14993         New module 'mkostemp'.
14994         Based on Ulrich Drepper's 2007-08-10 change in glibc.
14995         * lib/stdlib.in.h (mksotemp): New declaration.
14996         * lib/mkostemp.c: New file, from glibc with modifications.
14997         * lib/tempname.h (GT_FILE): Remove outdated comment.
14998         (gen_tempname): Add flags argument.
14999         * lib/tempname.c (__GT_BIGFILE): Remove macro.
15000         (__GT_FILE): Map to 1.
15001         (small_open, large_open): Remove macros.
15002         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
15003         * lib/mkstemp.c (mkstemp): Update.
15004         * lib/mkdtemp.c (mkdtemp): Likewise.
15005         * m4/mkostemp.m4: New file.
15006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
15007         HAVE_MKOSTEMP.
15008         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
15009         HAVE_MKOSTEMP.
15010         * modules/mkostemp: New file, based on modules/mkstemp.
15011         * doc/glibc-functions/mkostemp.texi: Mention the new module.
15012         * NEWS: Mention the change.
15013
15014 2009-08-23  Bruno Haible  <bruno@clisp.org>
15015
15016         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
15017         Reported by Eric Blake.
15018
15019 2009-08-23  Bruno Haible  <bruno@clisp.org>
15020
15021         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
15022         Reported by Eric Blake.
15023
15024 2009-08-23  Bruno Haible  <bruno@clisp.org>
15025
15026         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
15027         * modules/pipe2 (Depends-on): Likewise.
15028
15029 2009-08-23  Eric Blake  <ebb9@byu.net>
15030
15031         fcntl-h: add O_TTY_INIT support
15032         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
15033         * tests/test-fcntl-h.c (o): Test it.
15034         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15035
15036         fcntl-h: rename from fcntl, in preparation for fcntl(2)
15037         * modules/fcntl: Move <fcntl.h> header replacement...
15038         * modules/fcntl-h: ...to new name, so as not to collide with
15039         like-named function.
15040         * tests/test-fcntl.c: Rename...
15041         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
15042         * modules/fcntl-tests: Rename...
15043         * modules/fcntl-h-tests: ...to this.  Update test file name.
15044         * modules/chdir-long (Depends-on): Update clients.
15045         * modules/chdir-safer (Depends-on): Likewise.
15046         * modules/fcntl-safer (Depends-on): Likewise.
15047         * modules/fts (Depends-on): Likewise.
15048         * modules/mkancesdirs (Depends-on): Likewise.
15049         * modules/mkdir-p (Depends-on): Likewise.
15050         * modules/open (Depends-on): Likewise.
15051         * modules/savewd (Depends-on): Likewise.
15052         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
15053         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15054
15055 2009-08-22  Bruno Haible  <bruno@clisp.org>
15056
15057         * modules/binary-io (License): Relicense under LGPL.
15058         * modules/pipe2 (License): Likewise.
15059
15060 2009-08-22  Bruno Haible  <bruno@clisp.org>
15061
15062         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
15063         return value.
15064         * lib/pipe-filter-gi.c (filter_init): Likewise.
15065         Reported by Eric Blake.
15066
15067 2009-08-22  Bruno Haible  <bruno@clisp.org>
15068
15069         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
15070         * modules/pipe (Depends-on): Add pipe2.
15071
15072 2009-08-22  Bruno Haible  <bruno@clisp.org>
15073
15074         Tests for module 'pipe2'.
15075         * modules/pipe2-tests: New file.
15076         * tests/test-pipe2.c: New file.
15077
15078         New module 'pipe2'.
15079         * lib/unistd.in.h (pipe2): New declaration.
15080         * lib/pipe2.c: New file.
15081         * m4/pipe2.m4: New file.
15082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
15083         HAVE_PIPE2.
15084         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
15085         * modules/pipe2: New file.
15086         * doc/glibc-functions/pipe2.texi: Mention the new module.
15087
15088 2009-08-22  Bruno Haible  <bruno@clisp.org>
15089
15090         Reference some new glibc functions.
15091         * doc/glibc-functions/accept4.texi: New file.
15092         * doc/glibc-functions/dup3.texi: New file.
15093         * doc/glibc-functions/mkostemp.texi: New file.
15094         * doc/glibc-functions/pipe2.texi: New file.
15095         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
15096         (Glibc sys/socket.h): Refer to accept4.
15097         (Glibc unistd.h): Refer to dup3, pipe2.
15098         Reported by Eric Blake.
15099
15100 2009-08-22  Jim Meyering  <meyering@redhat.com>
15101             Bruno Haible  <bruno@clisp.org>
15102
15103         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
15104         This makes it so packages using automake-1.11's silent-rules option
15105         can print e.g., a single "GEN    configmake.h" line, rather than
15106         the 30+ statements that perform the job.  If you want to see the
15107         actual commands, you can still run "make V=1".
15108         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
15109         so that make output is abbreviated when those variables are defined
15110         appropriately.
15111         * modules/argz: Likewise.
15112         * modules/arpa_inet: Likewise.
15113         * modules/byteswap: Likewise.
15114         * modules/configmake: Likewise.
15115         * modules/dirent: Likewise.
15116         * modules/errno: Likewise.
15117         * modules/fcntl: Likewise.
15118         * modules/float: Likewise.
15119         * modules/fnmatch: Likewise.
15120         * modules/getopt-posix: Likewise.
15121         * modules/glob: Likewise.
15122         * modules/iconv_open: Likewise.
15123         * modules/inttypes: Likewise.
15124         * modules/localcharset: Likewise.
15125         * modules/locale: Likewise.
15126         * modules/math: Likewise.
15127         * modules/netdb: Likewise.
15128         * modules/netinet_in: Likewise.
15129         * modules/poll: Likewise.
15130         * modules/posix_spawnp-tests: Likewise.
15131         * modules/sched: Likewise.
15132         * modules/search: Likewise.
15133         * modules/selinux-h: Likewise.
15134         * modules/signal: Likewise.
15135         * modules/spawn: Likewise.
15136         * modules/stdarg: Likewise.
15137         * modules/stdbool: Likewise.
15138         * modules/stddef: Likewise.
15139         * modules/stdint: Likewise.
15140         * modules/stdio: Likewise.
15141         * modules/stdlib: Likewise.
15142         * modules/string: Likewise.
15143         * modules/strings: Likewise.
15144         * modules/sys_file: Likewise.
15145         * modules/sys_ioctl: Likewise.
15146         * modules/sys_select: Likewise.
15147         * modules/sys_socket: Likewise.
15148         * modules/sys_stat: Likewise.
15149         * modules/sys_time: Likewise.
15150         * modules/sys_times: Likewise.
15151         * modules/sys_utsname: Likewise.
15152         * modules/sys_wait: Likewise.
15153         * modules/sysexits: Likewise.
15154         * modules/time: Likewise.
15155         * modules/unistd: Likewise.
15156         * modules/wchar: Likewise.
15157         * modules/wctype: Likewise.
15158
15159 2009-08-22  Jim Meyering  <meyering@redhat.com>
15160
15161         announce-gen: detect write failure
15162         * build-aux/announce-gen: Add Coda at end.
15163         Remove equivalent-but-more-verbose block at top.
15164
15165 2009-08-19  Akim Demaille  <demaille@gostai.com>
15166
15167         bootstrap: --help to stdout.
15168         * bootstrap (usage): Don't send --help to stderr.
15169         Use a here doc instead of a long string.
15170
15171 2009-08-21  Eric Blake  <ebb9@byu.net>
15172
15173         test-popen-safer: split from test-popen
15174         * tests/test-popen.c (main): Move...
15175         * tests/test-popen.h: ...into new file.
15176         * tests/test-popen-safer2.c: New file.
15177         * modules/popen-tests (Files): Add test-popen.h.
15178         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
15179         Suggested by Bruno Haible.
15180
15181         test-fcntl-safer: split from test-open
15182         * tests/test-open.c (main): Move...
15183         * tests/test-open.h: ...into new file.
15184         * tests/test-fcntl-safer.c: New file.
15185         * modules/open-tests (Files): Add test-open.h.
15186         * modules/fcntl-safer-tests: New file.
15187         Suggested by Bruno Haible.
15188
15189         test-fopen-safer: split from test-fopen
15190         * tests/test-fopen.c (main): Move...
15191         * tests/test-fopen.h: ...into new file.
15192         * tests/test-fopen-safer.c: New file.
15193         * modules/fopen-tests (Files): Add test-fopen.h.
15194         * modules/fopen-safer-tests: New file.
15195         Suggested by Bruno Haible.
15196
15197 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15198
15199         popen-safer: test O_CLOEXEC at run-time.
15200         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
15201
15202 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15203
15204         fcntl: move more flags to the header
15205         * lib/cloexec.c: Do not define FD_CLOEXEC here.
15206         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
15207         * lib/fcntl.in.h: Do both things here.
15208
15209 2009-08-21  Jim Meyering  <meyering@redhat.com>
15210
15211         consistently remove $@-t before redirecting to it
15212         * modules/argz: Remove $@-t and $@ before redirecting to the former.
15213         * modules/alloca-opt: Likewise.
15214         * modules/byteswap: Likewise.
15215         * modules/fnmatch: Likewise.
15216         * modules/getopt-posix: Likewise.
15217         * modules/glob: Likewise.
15218         * modules/poll: Likewise.
15219         * modules/posix_spawnp-tests: Likewise.
15220         * modules/sys_socket: Likewise.
15221         * modules/sysexits: Likewise.
15222
15223 2009-08-21  Eric Blake  <ebb9@byu.net>
15224
15225         popen: simplify access to original popen
15226         * lib/popen.c (rpl_popen): No need to worry about popen being a
15227         macro.
15228         Reported by Bruno Haible.
15229
15230 2009-08-20  Eric Blake  <ebb9@byu.net>
15231
15232         build: avoid some compiler warnings
15233         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
15234         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
15235         type.
15236         (new_exclude_segment, excluded_file_pattern_p)
15237         (excluded_file_name_p): Reduce scope.
15238         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
15239         old-style declaration.
15240
15241 2009-08-20  Simon Josefsson  <simon@josefsson.org>
15242
15243         * tests/test-exclude1.sh: Handle Windows EOL.
15244         * tests/test-exclude2.sh: Likewise.
15245         * tests/test-exclude3.sh: Likewise.
15246         * tests/test-exclude4.sh: Likewise.
15247         * tests/test-exclude5.sh: Likewise.
15248         * tests/test-exclude6.sh: Likewise.
15249         * tests/test-exclude7.sh: Likewise.
15250
15251 2009-08-19  Akim Demaille  <demaille@gostai.com>
15252
15253         bootstrap: find sha1sum when named gsha1sum.
15254         * bootstrap (find_tool): New.
15255         ($SHA1SUM): New.
15256         Use it.
15257
15258 2009-08-20  Jim Meyering  <meyering@redhat.com>
15259
15260         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
15261         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
15262         expression that converts "." in a file name to "\." in the resulting
15263         regexp.  Start with a dummy statement, so that prior shell variable
15264         definitions are expanded portably.  Reported by Simon Josefsson.
15265
15266 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
15267
15268         Fix polling for writeability of a screen buffer.
15269         * lib/poll.c: Distinguish input and screen buffers for the
15270         Win32 implementation.
15271         * lib/select.c: Likewise.
15272
15273 2009-08-19  Eric Blake  <ebb9@byu.net>
15274
15275         popen-safer: prevent popen from clobbering std descriptors
15276         * modules/popen-safer: New file.
15277         * lib/popen-safer.c: Likewise.
15278         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
15279         * lib/stdio--.h (popen): Provide override.
15280         * lib/stdio-safer.h (popen_safer): Provide declaration.
15281         * tests/test-popen.c (includes): Partially test this.
15282         * modules/popen-safer-tests: New file, for more tests.
15283         * tests/test-popen-safer.c: Likewise.
15284         * MODULES.html.sh (file stream based Input/Output): Mention it.
15285
15286         tests: test some of the *-safer modules
15287         * modules/fopen-safer (Depends-on): Add fopen.
15288         * modules/fcntl-safer (Depends-on): Add fcntl.
15289         * modules/stdlib-safer (Depends-on): Add stdlib.
15290         (configure.ac): Set indicator.
15291         * modules/unistd-safer (configure.ac): Likewise.
15292         * modules/tmpfile-safer (configure.ac): Likewise.
15293         (Depends-on): Add tmpfile.
15294         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
15295         active.
15296         * tests/test-fopen.c (includes): Test safer versions when they are
15297         in use.
15298         * tests/test-open.c (includes): Likewise.
15299
15300         popen: fix cygwin 1.5 bug when stdin closed
15301         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
15302         * modules/popen: New file.
15303         * modules/popen-tests: Likewise.
15304         * tests/test-popen.c: Likewise.
15305         * m4/popen.m4: Likewise.
15306         * lib/popen.c: Likewise.
15307         * lib/stdio.in.h (popen): New declaration.
15308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
15309         * modules/stdio (Makefile.am): Likewise.
15310         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
15311
15312 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
15313
15314         maint.mk: give full control over update-copyright exclusions
15315         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
15316         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
15317         (update-copyright): Don't force inclusion of top-level
15318         ChangeLog.  Don't force exclusion of all COPYING files, but make
15319         them the default exclusion instead.
15320
15321 2009-08-16  Bruno Haible  <bruno@clisp.org>
15322
15323         Fix test failures on Solaris 10.
15324         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
15325         tests when Solaris iconv() is used.
15326         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15327         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15328         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15329         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15330         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15331
15332 2009-08-16  Bruno Haible  <bruno@clisp.org>
15333
15334         Fix test failures on Solaris 10.
15335         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
15336         'tr' program and pass it as first argument.
15337         * tests/test-pipe-filter-gi1.sh: Likewise.
15338         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
15339         program as first argument.
15340         * tests/test-pipe-filter-gi1.c (main): Likewise.
15341
15342 2009-08-16  Eric Blake  <ebb9@byu.net>
15343
15344         fpurge: fix previous commits
15345         * modules/fpurge (Makefile.am): Make replacement conditional,
15346         partially reverting 2007-04-29 change; missed in previous
15347         attempt.
15348         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
15349         is missing.
15350
15351 2009-08-16  Bruno Haible  <bruno@clisp.org>
15352
15353         Clarify fpurge's effect on the file position.
15354         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
15355         * tests/test-fpurge.c (main): Make a second pass for checking the file
15356         position.
15357
15358 2009-08-16  Bruno Haible  <bruno@clisp.org>
15359
15360         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
15361         declaration of fpurge is missing.
15362         * tests/test-fpurge.c (main): Check that the file has not more contents
15363         than expected. Close the file before removing it.
15364
15365 2009-08-15  Eric Blake  <ebb9@byu.net>
15366
15367         fpurge: don't wrap working cygwin implementation
15368         * lib/fpurge.c (fpurge): Fix comment typo.
15369         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
15370         1.7 to avoid replacement.
15371         * tests/test-fpurge.c (main): Enhance test.
15372
15373 2009-08-15  Eric Blake  <ebb9@byu.net>
15374         and Jim Meyering  <meyering@redhat.com>
15375
15376         test-update-copyright: skip if perl is insufficient
15377         * tests/test-update-copyright.sh: Failure to run maintainer tool
15378         should not cause testsuite failure on cygwin 1.5.
15379
15380 2009-08-14  Eric Blake  <ebb9@byu.net>
15381
15382         doc: mention more functions added in cygwin 1.7.0
15383         * doc/posix-headers/limits.texi (limits.h): Update for recent
15384         cygwin additions.
15385         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
15386         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15387         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
15388         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
15389         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
15390
15391 2009-08-14  Eric Blake  <ebb9@byu.net>
15392
15393         maint.mk: simplify update-copyright rule
15394         * top/maint.mk (update-copyright-local): Delete, and document how
15395         to do it in cfg.mk instead.
15396         (update-copyright-exclude-regexp): Delete, and document how to do
15397         it in .x-update-copyright instead.
15398         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
15399         exclude ChangeLog.
15400
15401 2009-08-14  Bruno Haible  <bruno@clisp.org>
15402
15403         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
15404
15405 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15406
15407         maint.mk: support update-copyright-env
15408         * top/maint.mk (update-copyright-env): Define place-holder.
15409         (update-copyright): Expand $(update-copyright-env) before
15410         invoking update-copyright.
15411
15412 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15413
15414         update-copyright: implement forced reformatting
15415         * build-aux/update-copyright: Implement and document
15416         UPDATE_COPYRIGHT_FORCE.
15417         * tests/test-update-copyright.sh: Test it.
15418
15419 2009-08-14  Eric Blake  <ebb9@byu.net>
15420         and Bruno Haible  <bruno@clisp.org>
15421
15422         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
15423         * tests/test-locale.c: Revert previous patch related to NULL.
15424         * tests/test-stdio.c: Likewise.
15425         * tests/test-stdlib.c: Likewise.
15426         * tests/test-string.c: Likewise.
15427         * tests/test-unistd.c: Likewise.
15428         * modules/time-tests (Depends-on): Add verify.
15429         * modules/wchar-tests (Depends-on): Likewise.
15430         * tests/test-time.c: Test for NULL compliance.
15431         * tests/test-wchar.c: Likewise.
15432         * modules/locale (Depends-on): Add stddef.
15433         * modules/stdio (Depends-on): Likewise.
15434         * modules/stdlib (Depends-on): Likewise.
15435         * modules/string (Depends-on): Likewise.
15436         * modules/time (Depends-on): Likewise.
15437         * modules/unistd (Depends-on): Likewise.
15438         * modules/wchar (Depends-on): Likewise.
15439         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
15440         * lib/stdlib.in.h (includes): Likewise.
15441         * lib/string.in.h (includes): Likewise.
15442         * lib/time.in.h (includes): Likewise.
15443         * lib/unistd.in.h (includes): Likewise.
15444         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
15445         replaced.
15446         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15447         * m4/stddef_h.m4: New file.
15448         * modules/stddef: Likewise.
15449         * lib/stddef.in.h: Likewise.
15450         * modules/stddef-tests: Likewise.
15451         * tests/test-stddef.c: Likewise.
15452         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
15453         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
15454         * doc/posix-headers/locale.texi (locale.h): Likewise.
15455         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
15456         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15457         * doc/posix-headers/string.texi (string.h): Likewise.
15458         * doc/posix-headers/time.texi (time.h): Likewise.
15459         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
15460         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
15461
15462 2009-08-14  Eric Blake  <ebb9@byu.net>
15463
15464         doc: improve git diff of texinfo files
15465         * .gitattributes: Add rule for *.texi files, with hint on how to
15466         use it.
15467         Copied from m4, and based on a report by Bruno Haible.
15468
15469 2009-08-14  Bruno Haible  <bruno@clisp.org>
15470
15471         Disable multithread support by default on Cygwin 1.5.x for real.
15472         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
15473
15474 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15475
15476         update-copyright: much ado about intervals
15477         * build-aux/update-copyright: Implement and document
15478         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
15479         of copyright year intervals.
15480         Also, document UPDATE_COPYRIGHT_YEAR.
15481         * tests/test-update-copyright.sh: Test it.
15482
15483         update-copyright: convert 2-digit to 4-digit years
15484         * build-aux/update-copyright: Implement and document.
15485         * tests/test-update-copyright.sh: Update.
15486
15487 2009-08-14  Jim Meyering  <meyering@redhat.com>
15488
15489         test-exclude: avoid coreutils "make check" failure
15490         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15491         just as in test-argmatch.c.
15492
15493 2009-08-13  Eric Blake  <ebb9@byu.net>
15494
15495         test-dup2: fix bad assumption
15496         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15497         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15498
15499         test-version-etc: fix CRLF portability issue
15500         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15501         recognize \r.
15502         * tests/test-argp-version-etc-1.sh: Likewise.
15503
15504         getopt: update client modules
15505         * modules/argp (Depends-on): Use getopt-gnu.
15506         * modules/git-merge-changelog (Depends-on): Likewise.
15507         * modules/long-options (Depends-on): Likewise.
15508         * modules/xstrtol (Depends-on): Likewise.
15509
15510 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15511
15512         * tests/test-version-etc.sh: Don't fail on different
15513         project/version.  Don't fail on CRLF differences.  Rewrite to use
15514         multiple -e instead of multiple sed forks, suggested by Eric Blake
15515         <ebb9@byu.net>.
15516         * tests/test-argp-version-etc-1.sh: Likewise.
15517
15518 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15519
15520         * tests/test-version-etc.sh: Don't fail on different
15521         project/version.
15522
15523 2009-08-12  Bruno Haible  <bruno@clisp.org>
15524
15525         Tests for modules 'getopt-posix', 'getopt-gnu'.
15526         * modules/getopt-posix-tests: New file.
15527         * tests/test-getopt.c: New file.
15528         * tests/test-getopt.h: New file.
15529         * tests/test-getopt_long.h: New file.
15530
15531         New modules 'getopt-posix', 'getopt-gnu'.
15532         * modules/getopt-gnu: New file, renamed from modules/getopt.
15533         * modules/getopt-posix: New file.
15534         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15535         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15536         (gl_GETOPT): Remove macro.
15537         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15538         Disable the test against BSD systems that declare optreset. Test
15539         against mingw bug. Test against lack of support of optional arguments
15540         on many platforms.
15541         * doc/glibc-headers/getopt.texi: Update module name and list of
15542         relevant platforms.
15543         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15544         'getopt-gnu' and more portability problems.
15545         * NEWS: Mention the changes.
15546
15547 2009-08-12  Bruno Haible  <bruno@clisp.org>
15548
15549         Ensure that optarg etc. get declared by <unistd.h>.
15550         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15551         AC_USE_SYSTEM_EXTENSIONS.
15552         * modules/getopt (Depends-on): Add 'extensions'.
15553
15554 2009-08-12  Bruno Haible  <bruno@clisp.org>
15555
15556         Avoid test link errors.
15557         * modules/pipe-filter-ii-tests (Makefile.am): Define
15558         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15559         * modules/pipe-filter-gi-tests (Makefile.am): Define
15560         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15561         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15562
15563 2009-08-12  Bruno Haible  <bruno@clisp.org>
15564
15565         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15566         gl_GETOPT_SUBSTITUTE before.
15567         (gl_GETOPT): Use it.
15568         * m4/argp.m4 (gl_ARGP): Update.
15569         Reported by Sergey Poznyakoff.
15570
15571         * m4/getopt.m4: Reorder macros.
15572         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15573         (gl_GETOPT_SUBSTITUTE): Remove macro.
15574
15575 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15576
15577         Minor improvement in gitlog-to-changelog
15578
15579         * build-aux/gitlog-to-changelog: New option `--format' makes
15580         output format string configurable.
15581
15582 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15583
15584         Optimize exclude: use hash tables for non-wildcard patterns.
15585
15586         * lib/exclude.c: Include hash.h and mbuiter.h
15587         (struct exclude_pattern, exclude_segment): New data types.
15588         (struct exclude): Rewrite.
15589         (fnmatch_pattern_has_wildcards): New function.
15590         (new_exclude_segment, free_exclude_segment): New functions.
15591         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15592         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15593         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15594         * modules/exclude: Depend on hash and mbuiter.
15595
15596         * modules/exclude-tests: New file.
15597         * tests/test-exclude.c: New file.
15598         * tests/test-exclude1.sh: New file.
15599         * tests/test-exclude2.sh: New file.
15600         * tests/test-exclude3.sh: New file.
15601         * tests/test-exclude4.sh: New file.
15602         * tests/test-exclude5.sh: New file.
15603         * tests/test-exclude6.sh: New file.
15604         * tests/test-exclude7.sh: New file.
15605
15606 2009-08-12  Bruno Haible  <bruno@clisp.org>
15607
15608         Ensure that getopt() gets declared by <unistd.h>.
15609         * lib/unistd.in.h: Conditionally include getopt.h.
15610         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15611         Set GNULIB_UNISTD_H_GETOPT.
15612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15613         GNULIB_UNISTD_H_GETOPT.
15614         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15615
15616 2009-08-12  Bruno Haible  <bruno@clisp.org>
15617
15618         Clarify logic.
15619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15620         gl_replace_getopt instead of GETOPT_H.
15621
15622 2009-08-12  Bruno Haible  <bruno@clisp.org>
15623
15624         * m4/getopt.m4: Add comments.
15625
15626 2009-08-12  Bruno Haible  <bruno@clisp.org>
15627
15628         Disable multithread support by default on Cygwin 1.5.x.
15629         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15630         set gl_use_threads=no if not specified otherwise.
15631
15632 2009-08-11  Bruno Haible  <bruno@clisp.org>
15633
15634         Avoid compilation error on NetBSD 5.0.
15635         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15636         * tests/test-stdio.c: Likewise.
15637         * tests/test-stdlib.c: Likewise.
15638         * tests/test-string.c: Likewise.
15639         * tests/test-unistd.c: Likewise.
15640         Reported by Greg Troxel <gdt@ir.bbn.com>
15641         at <https://savannah.gnu.org/support/?106973>.
15642
15643 2009-08-11  Bruno Haible  <bruno@clisp.org>
15644
15645         * modules/dup2-tests (Depends-on): Remove close.
15646
15647         Undo 2009-07-19 commit.
15648         * modules/acl-tests (Depends-on): Remove close.
15649         * modules/binary-io-tests (Depends-on): Likewise.
15650         * modules/closein-tests (Depends-on): Likewise.
15651         * modules/flock-tests (Depends-on): Likewise.
15652         * modules/fsync-tests (Depends-on): Likewise.
15653         * modules/lseek-tests (Depends-on): Likewise.
15654         * modules/pipe-tests (Depends-on): Likewise.
15655         * modules/posix_spawn-tests (Depends-on): Likewise.
15656         * modules/posix_spawnp-tests (Depends-on): Likewise.
15657         * modules/stat-time-tests (Depends-on): Likewise.
15658         * modules/yesno-tests (Depends-on): Likewise.
15659
15660 2009-08-10  Bruno Haible  <bruno@clisp.org>
15661
15662         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15663
15664 2009-08-10  Bruno Haible  <bruno@clisp.org>
15665
15666         Fix a gcc warning.
15667         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15668
15669 2009-08-10  Bruno Haible  <bruno@clisp.org>
15670
15671         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15672         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15673         not only the first time.
15674         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15675         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15676         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15677         is 1, not only the the first time.
15678
15679 2009-08-10  Bruno Haible  <bruno@clisp.org>
15680
15681         Make it possible to use module 'gethostname' without module 'close'.
15682         * lib/unistd.in.h (close): Evoke a link error only if
15683         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15685         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15686         * modules/unistd (Makefile.am): Substitute
15687         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15688         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
15689         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15690         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15691         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15692         * modules/sys_ioctl (Makefile.am): Substitute
15693         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15694         * modules/socket (configure.ac): On native Windows, set
15695         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
15696         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15697         Reported by Sam Steingold <sds@gnu.org>.
15698
15699 2009-08-10  Bruno Haible  <bruno@clisp.org>
15700
15701         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
15702         * modules/ioctl (configure.ac): Likewise.
15703
15704 2009-08-10  Bruno Haible  <bruno@clisp.org>
15705
15706         Avoid collision between gnulib wrapper and libintl wrapper.
15707         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
15708         already defined in intl/printf.c.
15709         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
15710         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
15711
15712 2009-08-09  Bruno Haible  <bruno@clisp.org>
15713
15714         Make <sys/select.h> really self-contained, also on Solaris 10.
15715         * lib/sys_select.in.h: Include <string.h>.
15716         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
15717         Solaris 10 problem.
15718         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
15719         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
15720         Reported by Jim Meyering.
15721
15722 2009-08-09  Bruno Haible  <bruno@clisp.org>
15723
15724         Avoid warnings from 'aclocal' that are due to a use of macro name
15725         AM_XGETTEXT_OPTION that is not defined in automake.
15726         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
15727         automake.
15728         * modules/error (configure.ac): Likewise.
15729         * modules/propername (configure.ac): Likewise.
15730         * modules/vasprintf (configure.ac): Likewise.
15731         * modules/verror (configure.ac): Likewise.
15732         * modules/xprintf (configure.ac): Likewise.
15733         * modules/xvasprintf (configure.ac): Likewise.
15734
15735 2009-08-08  Bruno Haible  <bruno@clisp.org>
15736
15737         Avoid compilation error in C++ mode.
15738         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
15739         Reported by Sam Steingold <sds@gnu.org>.
15740
15741 2009-08-08  Bruno Haible  <bruno@clisp.org>
15742
15743         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
15744         for the various Unix platforms.
15745         * doc/posix-headers/limits.texi: Update platforms list regarding
15746         HOST_NAME_MAX.
15747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15748
15749 2009-08-07  Jim Meyering  <meyering@redhat.com>
15750
15751         selinux-at: fix typo in a comment
15752         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
15753         Spotted by Paolo Bonzini.
15754
15755         selinux-at: remove redundant m4 code, add documentation
15756         * modules/selinux-at (configure.ac): Remove redundant code.
15757         LIB_SELINUX is already set via the dependent module, selinux-h.
15758         (Include): Add quotes around selinux-at.h.
15759         * lib/selinux-at.h: Add documentation.
15760         Reported by Bruno Haible in
15761         http://marc.info/?l=gnulib-bug&m=124958988300749
15762
15763 2009-08-07  Bruno Haible  <bruno@clisp.org>
15764
15765         Avoid link error on MacOS X 10.3 and 10.4.
15766         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
15767         on non-ELF systems.
15768         * lib/argp-pv.c (argp_program_version): Likewise.
15769         Reported by Simon Josefsson.
15770
15771 2009-08-07  Simon Josefsson  <simon@josefsson.org>
15772
15773         * tests/test-version-etc.sh: Use $EXEEXT.
15774
15775 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
15776
15777         update-copyright: update documentation to point to maint.mk
15778         * build-aux/update-copyright: Here.
15779
15780 2009-08-06  Jim Meyering  <meyering@redhat.com>
15781
15782         maint.mk: support update-copyright-local
15783         * top/maint.mk (update-copyright-local): Define place-holder.
15784         (update-copyright): Depend on $(update-copyright-local).
15785
15786 2009-08-06  Jim Meyering  <meyering@redhat.com>
15787
15788         selinux-at: new module
15789         Initially written for coreutils, this module will soon be
15790         used by findutils, too.
15791         * MODULES.html.sh [Misc]: Add selinux-at.
15792         * lib/selinux-at.h: New file, from coreutils.
15793         * lib/selinux-at.c: Likewise.
15794         * modules/selinux-at: Likewise.
15795         (License): Change from LGPL to GPL, since it depends
15796         on the GPL'd openat module.
15797
15798         doc: update README
15799         * README: Remove references to cogito.
15800         Remove cvs-repo-updating instructions from 2007.
15801         Don't imply that CVS is better if you have limited disk space.
15802
15803 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15804
15805         update-copyright: support C-style comments
15806         * build-aux/update-copyright: Implement and document.
15807         * tests/test-update-copyright.sh: Test.
15808
15809 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15810
15811         update-copyright: support omitted "(C)"
15812         * build-aux/update-copyright: Implement and document.  Also,
15813         allow variable whitespace before "(C)".
15814         * tests/test-update-copyright.sh: Test.
15815
15816 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15817
15818         update-copyright: don't trip on non-FSF copyright statements
15819         * build-aux/update-copyright: Fix so that the first correctly
15820         formatted FSF copyright statement is recognized no matter what
15821         appears before it.  Update documentation.
15822         * tests/test-update-copyright.sh: Test that.
15823
15824 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15825
15826         update-copyright: clean up code a little
15827         * build-aux/update-copyright: Append "_re" to the name of any
15828         variable holding a regular expression.
15829         Replace "old" and "new" with "stmt" in variable names.
15830         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
15831         handled correctly.
15832         Format code more consistently.
15833
15834 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15835
15836         update-copyright-tests: improve portability
15837         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
15838         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
15839
15840 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15841
15842         update-copyright: support @copyright{} and &copy;
15843         * build-aux/update-copyright: Implement and document.
15844         * tests/test-update-copyright.sh: Test.
15845
15846 2009-08-04  Jim Meyering  <meyering@redhat.com>
15847
15848         update-copyright-tests: correctly test EOL=\r\n handling
15849         * tests/test-update-copyright.sh: Put \r at the end of some lines
15850         for the dos-eol tests.  Based on a patch by Joel E. Denny.
15851
15852         maint.mk: make update-copyright exclusion list more configurable
15853         * top/maint.mk (update-copyright): Default to excluding COPYING,
15854         but allow an override, in case someone does want to update that file.
15855
15856         maint.mk: don't update copyright date in COPYING
15857         * top/maint.mk (update-copyright): Exclude COPYING.
15858
15859         maint.mk: add a copyright-updating rule
15860         * top/maint.mk (update-copyright): New rule.
15861         Derived from coreutils/Makefile.am.
15862
15863         update-copyright: rename some variables
15864         * build-aux/update-copyright: Rename a few variables for clarity.
15865         Tweak syntax.  List Joel E. Denny as coauthor.
15866
15867 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15868
15869         update-copyright: fix bug for 2-digit last year and add tests
15870         * build-aux/update-copyright: Fix bug.
15871         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
15872         specified.
15873         * modules/update-copyright-tests: New
15874         * tests/test-update-copyright.sh: New.
15875
15876 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15877
15878         update-copyright: handle leading tabs in line prefix
15879         * build-aux/update-copyright: Count leading tabs as 8 spaces
15880         when computing margin.  This helps with the formatting of
15881         ChangeLogs, for example.
15882         Fix documentation a little.
15883
15884 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15885
15886         update-copyright: support EOL=\r\n
15887         * build-aux/update-copyright: Implement that.
15888
15889 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15890
15891         update-copyright: automatically format copyright statements
15892         * build-aux/update-copyright: Implement that.
15893         Also, be a little more predictable and safer by always failing
15894         when the full copyright format is not perfectly recognized as an
15895         unbroken whole.  Discussed at
15896         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
15897         Rewrite documentation.
15898
15899 2009-08-03  Bruno Haible  <bruno@clisp.org>
15900
15901         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
15902
15903 2009-08-02  Bruno Haible  <bruno@clisp.org>
15904
15905         Tests for module 'uname'.
15906         * modules/uname-tests: New file.
15907         * tests/test-uname.c: New file.
15908
15909         New module 'uname'.
15910         * lib/uname.c: New file.
15911         * m4/uname.m4: New file.
15912         * modules/uname: New file.
15913         * doc/posix-functions/uname.texi: Mention the new module.
15914
15915 2009-08-02  Bruno Haible  <bruno@clisp.org>
15916
15917         Tests for module 'sys_utsname'.
15918         * modules/sys_utsname-tests: New file.
15919         * tests/test-sys_utsname.c: New file.
15920
15921         New module 'sys_utsname'.
15922         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
15923         * m4/sys_utsname_h.m4: New file.
15924         * modules/sys_utsname: New file.
15925         * doc/posix-headers/sys_utsname.texi: Mention the new module.
15926
15927 2009-08-02  Bruno Haible  <bruno@clisp.org>
15928
15929         Implicitly initialize the sockets library.
15930         * lib/gethostname.c: Include sockets.h.
15931         (rpl_gethostname): Invoke gl_sockets_startup.
15932         * lib/socket.c: Include sockets.h.
15933         (rpl_socket): Invoke gl_sockets_startup.
15934         * modules/gethostname (Depends-on): Add sockets.
15935         * modules/socket (Depends-on): Likewise.
15936         * tests/test-poll.c: Don't include sockets.h.
15937         (main): Don't invoke gl_sockets_startup.
15938         * tests/test-select.c: Don't include sockets.h.
15939         (main): Don't invoke gl_sockets_startup.
15940
15941 2009-08-02  Bruno Haible  <bruno@clisp.org>
15942
15943         Allow multiple calls to gl_sockets_startup.
15944         * lib/sockets.c (initialized_sockets_version): New variable.
15945         (gl_sockets_startup): Do nothing if already called for this or a higher
15946         version.
15947         (gl_sockets_cleanup): Reset initialized_sockets_version.
15948
15949 2009-08-03  Simon Josefsson  <simon@josefsson.org>
15950
15951         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
15952         different project/version.
15953
15954 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
15955             Bruno Haible  <bruno@clisp.org>
15956
15957         Tests for module 'pipe-filter-gi'.
15958         * modules/pipe-filter-gi-tests: New file.
15959         * tests/test-pipe-filter-gi1.sh: New file.
15960         * tests/test-pipe-filter-gi1.c: New file.
15961         * tests/test-pipe-filter-gi2.sh: New file.
15962         * tests/test-pipe-filter-gi2-main.c: New file.
15963         * tests/test-pipe-filter-gi2-child.c: New file.
15964
15965         New module 'pipe-filter-gi'.
15966         * lib/pipe-filter-gi.c: New file.
15967         * modules/pipe-filter-gi: New file.
15968
15969 2009-08-02  Bruno Haible  <bruno@clisp.org>
15970             Paolo Bonzini  <bonzini@gnu.org>
15971
15972         Tests for module 'pipe-filter-ii'.
15973         * modules/pipe-filter-ii-tests: New file.
15974         * tests/test-pipe-filter-ii1.sh: New file.
15975         * tests/test-pipe-filter-ii1.c: New file.
15976         * tests/test-pipe-filter-ii2.sh: New file.
15977         * tests/test-pipe-filter-ii2-main.c: New file.
15978         * tests/test-pipe-filter-ii2-child.c: New file.
15979
15980         New module 'pipe-filter-ii'.
15981         * lib/pipe-filter.h: New file.
15982         * lib/pipe-filter-ii.c: New file.
15983         * lib/pipe-filter-aux.h: New file.
15984         * modules/pipe-filter-ii: New file.
15985
15986 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15987
15988         * lib/gc-libgcrypt.c: Change copyright to FSF.
15989         * lib/gc-gnulib.c: Likewise.
15990
15991 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
15992
15993         * lib/gethostname.c: Include limits.h.
15994
15995 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15996             Bruno Haible  <bruno@clisp.org>
15997
15998         Ensure HOST_NAME_MAX as part of the gethostname module.
15999         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
16000         define also HOST_NAME_MAX.
16001         * tests/test-gethostname.c: Include <limits.h>.
16002         (main): Check also HOST_NAME_MAX.
16003         * doc/posix-headers/limits.texi: Document the mingw problem.
16004
16005 2009-08-02  Bruno Haible  <bruno@clisp.org>
16006
16007         * lib/gethostname.c (gethostname): Fix handling of large len argument.
16008         Add comments.
16009
16010 2009-03-31  Simon Josefsson  <simon@josefsson.org>
16011
16012         * lib/gethostname.c: Add Windows wrapper.
16013         * m4/gethostname.m4: Look for gethostname in -lws2_32.
16014         * modules/gethostname: Depend on sys_socket & errno, for also
16015         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
16016         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
16017
16018 2009-07-31  Jim Meyering  <meyering@redhat.com>
16019
16020         getloadavg: fix symbol name in comment
16021         * lib/getloadavg.c: Correct a typo I introduced when adding
16022         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
16023         Matt Kraai spotted the problem.
16024
16025 2009-07-29  Matt Kraai  <mkraai@beckman.com>
16026
16027         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
16028         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
16029         code also if ! defined N_NAME_POINTER.
16030         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
16031         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
16032         but the n_name member is a 12-byte array.
16033
16034 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
16035
16036         update-copyright: generalize comment handling
16037         * build-aux/update-copyright: Handle copyright statements
16038         within more comment styles.
16039         Document usage.
16040         Report any file with an external copyright holder or parse failure.
16041
16042 2009-07-29  Jim Meyering  <meyering@redhat.com>
16043
16044         mktime: correct setting of REPLACE_MKTIME
16045         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
16046
16047         update-copyright: new module
16048         * modules/update-copyright: New file.
16049         * build-aux/update-copyright: New file.
16050         * MODULES.html.sh (maint+release support): Add update-copyright.
16051
16052 2009-07-27  Bruno Haible  <bruno@clisp.org>
16053
16054         Fix compilation error when <ctime> is used and mktime is replaced.
16055         * lib/time.in.h (mktime): New declaration.
16056         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
16057         REPLACE_MKTIME instead of defining mktime in config.h.
16058         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
16059         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
16060         Reported by Ross McFarland <rwmcfa1@neces.com>.
16061
16062 2009-07-27  Bruno Haible  <bruno@clisp.org>
16063
16064         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
16065         Reported by Matt Kraai <mkraai@beckman.com>.
16066
16067 2009-07-25  Jim Meyering  <meyering@redhat.com>
16068
16069         maint.mk: avoid warnings about missing files
16070         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
16071         diagnostic when .prev-version does not exist.
16072         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
16073         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
16074         nonexistent cfg.mk.
16075         Suggestions from Simon Josefsson.
16076
16077 2009-07-25  Bruno Haible  <bruno@clisp.org>
16078
16079         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
16080         defined as macros. Needed on QNX 6.4.1.
16081         Reported by Matt Kraai <mkraai@beckman.com>.
16082
16083 2009-07-23  Jim Meyering  <meyering@redhat.com>
16084
16085         maint.mk: invoke "make dist" with a working value of XZ_OPT
16086         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
16087
16088 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
16089
16090         Make fseeko.c compile on QNX.
16091         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
16092
16093 2009-07-22  Peter Simons  <simons@cryp.to>
16094
16095         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
16096         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
16097         * lib/md4.h: Likewise.
16098         * lib/md5.h: Likewise.
16099         * lib/sha1.h: Likewise.
16100         * lib/sha256.h: Likewise.
16101         * lib/sha512.h: Likewise.
16102
16103         tests-sha1: don't assign literal string to 'char *' variable
16104         * tests/test-sha1.c (main): Declare locals with "const" to match
16105         attributes of the right hand side.
16106
16107 2009-07-21  Eric Blake  <ebb9@byu.net>
16108
16109         dup2: fix more mingw problems
16110         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
16111         fd to itself.
16112         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16113         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
16114         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
16115         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
16116         care of mingw bugs.
16117
16118 2009-07-21  Jim Meyering  <meyering@redhat.com>
16119
16120         vc-list-files: avoid failure when /bin/sh is dash
16121         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
16122         On some Debian based systems, /bin/sh is a symlink to dash, and running
16123         this command would omit the "/" following each 'tests' prefix:
16124           dash -x build-aux/vc-list-files -C . tests
16125         That is because bash and dash work differently:
16126           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
16127           bash ok
16128           dash odd
16129
16130 2009-07-21  Eric Blake  <ebb9@byu.net>
16131
16132         dup2-tests: test previous patch
16133         * modules/dup2-tests: New file.
16134         * tests/test-dup2.c: Likewise.
16135         * tests/test-open.c (main): Avoid unspecified behavior.
16136         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
16137         test.
16138
16139         dup2: work around mingw and cygwin 1.5 bug
16140         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
16141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16142         * modules/unistd (Makefile.am): Substitute it.
16143         * lib/unistd.in.h (dup2): Declare the replacement.
16144         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
16145         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
16146         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
16147         * modules/execute (Depends-on): Add dup2.
16148         * modules/fseterr (Depends-on): Likewise.
16149         * modules/pipe (Depends-on): Likewise.
16150         * modules/posix_spawn-internal (Depends-on): Likewise.
16151
16152 2009-07-21  Bruno Haible  <bruno@clisp.org>
16153
16154         * modules/.gitattributes: New file.
16155
16156 2009-07-20  Bruno Haible  <bruno@clisp.org>
16157
16158         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
16159         (main): Use it.
16160
16161 2009-07-20  Eric Blake  <ebb9@byu.net>
16162
16163         test-pipe: make a bit more robust.
16164         * tests/test-pipe.c (myerr): Allow error messages regardless of
16165         what we do to stderr.
16166         (test_pipe): Rearrange to avoid deadlock.
16167         (child_main): Try a larger read, to ensure we avoided deadlock.
16168         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
16169         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
16170         if misused.
16171
16172 2009-07-19  Jim Meyering  <meyering@redhat.com>
16173
16174         fts: avoid false-positive cycle-detection
16175         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
16176         for each new command line argument.
16177
16178 2009-07-19  Bruno Haible  <bruno@clisp.org>
16179
16180         Fix build error on mingw with the modules sys_select and unistd.
16181         * modules/acl-tests (Depends-on): Add close.
16182         * modules/binary-io-tests (Depends-on): Likewise.
16183         * modules/closein-tests (Depends-on): Likewise.
16184         * modules/flock-tests (Depends-on): Likewise.
16185         * modules/fsync-tests (Depends-on): Likewise.
16186         * modules/lseek-tests (Depends-on): Likewise.
16187         * modules/pipe-tests (Depends-on): Likewise.
16188         * modules/posix_spawn-tests (Depends-on): Likewise.
16189         * modules/posix_spawnp-tests (Depends-on): Likewise.
16190         * modules/stat-time-tests (Depends-on): Likewise.
16191         * modules/yesno-tests (Depends-on): Likewise.
16192
16193 2009-07-19  Bruno Haible  <bruno@clisp.org>
16194
16195         Unify conditionals.
16196         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
16197         macros, not at the compiler macros.
16198         * lib/pipe.c: Likewise.
16199         * lib/execute.c: Likewise.
16200         * lib/spawni.c: Likewise.
16201
16202 2009-07-19  Bruno Haible  <bruno@clisp.org>
16203
16204         Fix handling of closed stdin/stdout/stderr on mingw.
16205         * lib/w32spawn.h: Include unistd.h.
16206         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
16207         file descriptor with O_NOINHERIT flag.
16208         (fd_safer_noinherit): New function, based on fd-safer.c.
16209         (dup_safer_noinherit): New function, based on dup-safer.c.
16210         (undup_safer_noinherit): New function.
16211         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
16212         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
16213         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
16214         instead of fd_safer.
16215         * tests/test-pipe.c: Include <windows.h>.
16216         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
16217
16218         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
16219         from main.
16220         (test_pipe): Pass an extra argument for disambiguation.
16221         (main): Invoke parent_main or child_main.
16222
16223         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
16224         consistently.
16225
16226 2009-07-18  Eric Blake  <ebb9@byu.net>
16227
16228         test-pipe: fix mingw build
16229         * tests/test-pipe.c (main): Avoid fcntl on mingw.
16230
16231 2009-07-18  Bruno Haible  <bruno@clisp.org>
16232
16233         * modules/pipe-tests (Makefile.am): Fix typo.
16234
16235 2009-07-18  Eric Blake  <ebb9@byu.net>
16236
16237         error: fix mingw build
16238         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
16239         Reported by Bruno Haible.
16240
16241         error: avoid undefined use of stdout
16242         * lib/error.c (error, error_at_line): Check that fd 1 is open
16243         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
16244         is handling faults and the close_stdout module wants to report the
16245         detection of closed stdout as an error.
16246
16247 2009-07-17  Eric Blake  <ebb9@byu.net>
16248
16249         pipe: be robust in face of closed fds
16250         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
16251         should cause child to misbehave.
16252         * modules/pipe-tests: New module.
16253         * tests/test-pipe.c: New file.
16254         * tests/test-pipe.sh: New file.
16255         Reported by Akim Demaille.
16256
16257 2009-07-14  Bruno Haible  <bruno@clisp.org>
16258
16259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
16260         Reported by anonymous kc.
16261
16262 2009-07-07  Jim Meyering  <meyering@redhat.com>
16263
16264         maint.mk: don't look for translatable strings in *.m4 or *.mk
16265         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
16266         when searching for translatable strings.
16267
16268 2009-07-05  Jim Meyering  <meyering@redhat.com>
16269
16270         remove superfluous parentheses in STREQ definition
16271         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
16272         * lib/getugroups.c (STREQ): Likewise.
16273         * lib/fnmatch.c (STREQ): Likewise.
16274         Spotted by Bruno Haible.
16275
16276 2009-07-04  Jim Meyering  <meyering@redhat.com>
16277
16278         argv-iter: new module
16279         * MODULES.html.sh: Add argv-iter.
16280         * lib/argv-iter.c, lib/argv-iter.h: New files.
16281         * modules/argv-iter: New file.
16282         * modules/argv-iter-tests: New file.
16283         * tests/test-argv-iter.c: Test it.
16284
16285 2009-07-04  Bruno Haible  <bruno@clisp.org>
16286
16287         Fix assertion.
16288         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
16289         contains more exact copies of a given entry than file2, leave the extra
16290         copies unpaired rather than aborting.
16291         Reported by Eric Blake.
16292
16293 2009-07-02  Bruno Haible  <bruno@clisp.org>
16294
16295         Speedup git-merge-changelog for git cherry-pick.
16296         * lib/git-merge-changelog.c (struct entries_mapping): New type.
16297         (entries_mapping_get): New function, extracted from compute_mapping.
16298         (entries_mapping_reverse_get): New function.
16299         (compute_mapping): Add a 'full' argument. Return the result in a
16300         'struct entries_mapping'.
16301         (main): Update. Access the mappings through entries_mapping_get.
16302         Reported by Eric Blake.
16303
16304 2009-07-02  Bruno Haible  <bruno@clisp.org>
16305
16306         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
16307         best_i.
16308
16309 2009-07-02  Bruno Haible  <bruno@clisp.org>
16310
16311         Speed up approximate search for matching ChangeLog entries.
16312         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
16313         argument. Call fstrcmp_bounded instead of fstrcmp.
16314         (compute_mapping, try_split_merged_entry, main): Update callers.
16315
16316 2009-07-02  Bruno Haible  <bruno@clisp.org>
16317
16318         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
16319
16320 2009-06-30  Bruno Haible  <bruno@clisp.org>
16321
16322         Reduce the number of uc_is_cased calls.
16323         * lib/unicase.h (casing_suffix_context_t): Add
16324         'first_char_except_ignorable' field.
16325         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
16326         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
16327         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
16328         Update initializer.
16329         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
16330         case-ignorable characters.
16331         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
16332         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
16333         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
16334         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
16335         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
16336
16337 2009-06-30  Bruno Haible  <bruno@clisp.org>
16338
16339         Tests for module 'unicase/ignorable'.
16340         * modules/unicase/ignorable-tests: New file.
16341         * tests/unicase/test-ignorable.c: New file, generated by
16342         gen-uni-tables.
16343
16344         Tests for module 'unicase/cased'.
16345         * modules/unicase/cased-tests: New file.
16346         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
16347         * tests/unicase/test-predicate-part1.h: New file, derived from
16348         tests/unictype/test-predicate-part1.h.
16349         * tests/unicase/test-predicate-part2.h: New file, same as
16350         tests/unictype/test-predicate-part2.h.
16351
16352         Fix evaluation of "Before C" condition of FINAL_SIGMA.
16353         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
16354         (output_casing_properties): New function.
16355         (main): Call it.
16356         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
16357         * lib/unicase/cased.c: Include unictype/bitmap.h.
16358         (uc_is_cased): Define through a bitmap lookup.
16359         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
16360         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
16361         (uc_is_case_ignorable): Define through a bitmap lookup.
16362         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
16363         lib/unictype/bitmap.h.
16364         (Depends-on): Add inline. Clean up.
16365         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
16366         lib/unictype/bitmap.h.
16367         (Depends-on): Add inline. Clean up.
16368         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
16369         recognition.
16370         * tests/unicase/test-u16-tolower.c (main): Likewise.
16371         * tests/unicase/test-u32-tolower.c (main): Likewise.
16372
16373 2009-06-30  Bruno Haible  <bruno@clisp.org>
16374
16375         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
16376         * lib/unicase/u16-casemap.c: Likewise.
16377         * lib/unicase/u32-casemap.c: Likewise.
16378
16379 2009-06-29  Bruno Haible  <bruno@clisp.org>
16380
16381         Define u32_casefold as a wrapper around u32_ct_casefold.
16382         * lib/unicase/u32-casefold.c: Update.
16383         * modules/unicase/u32-casefold (Depends-on): Add
16384         unicase/u32-ct-casefold, unicase/empty-prefix-context,
16385         unicase/empty-suffix-context. Clean up.
16386
16387         Define u16_casefold as a wrapper around u16_ct_casefold.
16388         * lib/unicase/u16-casefold.c: Update.
16389         * modules/unicase/u16-casefold (Depends-on): Add
16390         unicase/u16-ct-casefold, unicase/empty-prefix-context,
16391         unicase/empty-suffix-context. Clean up.
16392
16393         Define u8_casefold as a wrapper around u8_ct_casefold.
16394         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
16395         * lib/unicase/u8-casefold.c: Update.
16396         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
16397         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16398
16399         Define u32_totitle as a wrapper around u32_ct_totitle.
16400         * lib/unicase/u32-totitle.c: Update.
16401         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
16402         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16403
16404         Define u16_totitle as a wrapper around u16_ct_totitle.
16405         * lib/unicase/u16-totitle.c: Update.
16406         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
16407         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16408
16409         Define u8_totitle as a wrapper around u8_ct_totitle.
16410         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
16411         functions.
16412         (FUNC): Delegate to U_CT_TOTITLE.
16413         * lib/unicase/u8-totitle.c: Update.
16414         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
16415         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16416
16417         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
16418         invocation.
16419         * modules/unicase/u32-tolower (Depends-on): Add
16420         unicase/empty-prefix-context, unicase/empty-suffix-context.
16421
16422         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
16423         invocation.
16424         * modules/unicase/u16-tolower (Depends-on): Add
16425         unicase/empty-prefix-context, unicase/empty-suffix-context.
16426
16427         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
16428         * modules/unicase/u8-tolower (Depends-on): Add
16429         unicase/empty-prefix-context, unicase/empty-suffix-context.
16430
16431         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
16432         invocation.
16433         * modules/unicase/u32-toupper (Depends-on): Add
16434         unicase/empty-prefix-context, unicase/empty-suffix-context.
16435
16436         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
16437         invocation.
16438         * modules/unicase/u16-toupper (Depends-on): Add
16439         unicase/empty-prefix-context, unicase/empty-suffix-context.
16440
16441         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
16442         * modules/unicase/u8-toupper (Depends-on): Add
16443         unicase/empty-prefix-context, unicase/empty-suffix-context.
16444
16445         New module 'unicase/u32-ct-casefold'.
16446         * lib/unicase/u32-ct-casefold.c: New file.
16447         * modules/unicase/u32-ct-casefold: New file.
16448
16449         New module 'unicase/u16-ct-casefold'.
16450         * lib/unicase/u16-ct-casefold.c: New file.
16451         * modules/unicase/u16-ct-casefold: New file.
16452
16453         New module 'unicase/u8-ct-casefold'.
16454         * lib/unicase/u8-ct-casefold.c: New file.
16455         * lib/unicase/u-ct-casefold.h: New file, derived from
16456         lib/unicase/u-casefold.h.
16457         * modules/unicase/u8-ct-casefold: New file.
16458
16459         New module 'unicase/u32-ct-totitle'.
16460         * lib/unicase/u32-ct-totitle.c: New file.
16461         * modules/unicase/u32-ct-totitle: New file.
16462
16463         New module 'unicase/u16-ct-totitle'.
16464         * lib/unicase/u16-ct-totitle.c: New file.
16465         * modules/unicase/u16-ct-totitle: New file.
16466
16467         New module 'unicase/u8-ct-totitle'.
16468         * lib/unicase/u8-ct-totitle.c: New file.
16469         * lib/unicase/u-ct-totitle.h: New file, derived from
16470         lib/unicase/u-totitle.h.
16471         * modules/unicase/u8-ct-totitle: New file.
16472
16473         New module 'unicase/u32-ct-tolower'.
16474         * lib/unicase/u32-ct-tolower.c: New file.
16475         * modules/unicase/u32-ct-tolower: New file.
16476
16477         New module 'unicase/u16-ct-tolower'.
16478         * lib/unicase/u16-ct-tolower.c: New file.
16479         * modules/unicase/u16-ct-tolower: New file.
16480
16481         New module 'unicase/u8-ct-tolower'.
16482         * lib/unicase/u8-ct-tolower.c: New file.
16483         * modules/unicase/u8-ct-tolower: New file.
16484
16485         New module 'unicase/u32-ct-toupper'.
16486         * lib/unicase/u32-ct-toupper.c: New file.
16487         * modules/unicase/u32-ct-toupper: New file.
16488
16489         New module 'unicase/u16-ct-toupper'.
16490         * lib/unicase/u16-ct-toupper.c: New file.
16491         * modules/unicase/u16-ct-toupper: New file.
16492
16493         New module 'unicase/u8-ct-toupper'.
16494         * lib/unicase/u8-ct-toupper.c: New file.
16495         * modules/unicase/u8-ct-toupper: New file.
16496
16497         Add context arguments to u*_casemap functions.
16498         * lib/unicase/unicasemap.h: Include unicase.h.
16499         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16500         suffix_context arguments.
16501         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16502         functions.
16503         (FUNC): Add prefix_context and suffix_context arguments. Use
16504         uc_is_cased and uc_is_case_ignorable.
16505         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16506         * lib/unicase/u16-casemap.c: Likewise.
16507         * lib/unicase/u32-casemap.c: Likewise.
16508         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16509         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16510         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16511         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16512         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16513         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16514
16515         New module 'unicase/u32-suffix-context'.
16516         * lib/unicase/u32-suffix-context.c: New file.
16517         * modules/unicase/u32-suffix-context: New file.
16518
16519         New module 'unicase/u16-suffix-context'.
16520         * lib/unicase/u16-suffix-context.c: New file.
16521         * modules/unicase/u16-suffix-context: New file.
16522
16523         New module 'unicase/u8-suffix-context'.
16524         * lib/unicase/u8-suffix-context.c: New file.
16525         * lib/unicase/u-suffix-context.h: New file.
16526         * modules/unicase/u8-suffix-context: New file.
16527
16528         New module 'unicase/empty-suffix-context'.
16529         * lib/unicase/empty-suffix-context.c: New file.
16530         * modules/unicase/empty-suffix-context: New file.
16531
16532         New module 'unicase/u32-prefix-context'.
16533         * lib/unicase/u32-prefix-context.c: New file.
16534         * modules/unicase/u32-prefix-context: New file.
16535
16536         New module 'unicase/u16-prefix-context'.
16537         * lib/unicase/u16-prefix-context.c: New file.
16538         * modules/unicase/u16-prefix-context: New file.
16539
16540         New module 'unicase/u8-prefix-context'.
16541         * lib/unicase/u8-prefix-context.c: New file.
16542         * lib/unicase/u-prefix-context.h: New file.
16543         * lib/unicase/context.h: New file.
16544         * modules/unicase/u8-prefix-context: New file.
16545
16546         New module 'unicase/empty-prefix-context'.
16547         * lib/unicase/empty-prefix-context.c: New file.
16548         * modules/unicase/empty-prefix-context: New file.
16549
16550         New module 'unicase/ignorable'.
16551         * lib/unicase/ignorable.c: New file.
16552         * modules/unicase/ignorable: New file.
16553
16554         New module 'unicase/cased'.
16555         * lib/unicase/caseprop.h: New file.
16556         * lib/unicase/cased.c: New file.
16557         * modules/unicase/cased: New file.
16558
16559         New functions for case mapping of substrings.
16560         * lib/unicase.h (casing_prefix_context_t): New type.
16561         (unicase_empty_prefix_context): New variable.
16562         (u8_casing_prefix_context, u16_casing_prefix_context,
16563         u32_casing_prefix_context, u8_casing_prefixes_context,
16564         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16565         declarations.
16566         (casing_suffix_context_t): New type.
16567         (unicase_empty_suffix_context): New variable.
16568         (u8_casing_suffix_context, u16_casing_suffix_context,
16569         u32_casing_suffix_context, u8_casing_suffixes_context,
16570         u16_casing_suffixes_context, u32_casing_suffixes_context,
16571         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16572         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16573         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16574         declarations.
16575
16576 2009-06-28  Jim Meyering  <meyering@redhat.com>
16577
16578         boostrap: indent only with spaces
16579         * build-aux/bootstrap: Indent only with spaces, never TABs.
16580
16581         bootstrap: split long lines
16582         * build-aux/bootstrap: Keep line length < 80.
16583
16584         bootstrap: sync from coreutils
16585         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16586         just as autoreconf does.  Verify a list of prerequisite
16587         package-name,version-number pairs if defined in bootstrap.conf.
16588         Refer to README-prereq, if prerequisites are not satisfied.
16589
16590 2009-06-27  Eric Blake  <ebb9@byu.net>
16591
16592         tests: add test for bogus NULL definition
16593         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16594         * tests/test-stdlib.c: Likewise.
16595         * tests/test-string.c: Likewise.
16596         * tests/test-locale.c: Likewise.
16597         * tests/test-unistd.c: Likewise.
16598         * modules/stdio-tests (Depends-on): Add verify.
16599         * modules/stdlib-tests (Depends-on): Likewise.
16600         * modules/string-tests (Depends-on): Likewise.
16601         * modules/locale-tests (Depends-on): Likewise.
16602         * modules/unistd-tests (Depends-on): Likewise.
16603
16604 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16605
16606         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16607         self-explaining comment.
16608         * m4/selinux-selinux-h: Update serial.
16609         (gl_LIBSELINUX): New macro, adding a warning for missing development
16610         packages to code extracted from...
16611         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16612         Add warning for missing development packages here, too.
16613
16614 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16615
16616         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16617
16618 2009-06-25  Eric Blake  <ebb9@byu.net>
16619
16620         version-etc: fix regression
16621         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16622         gcc.
16623         (version_etc): Use it, to catch bugs with trailing NULL.
16624         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16625         (version_etc_va): Fix logic bug.
16626         * modules/version-etc-tests: Add test.
16627         * tests/test-version-etc.c: New file.
16628         * tests/test-version-etc.sh: Likewise.
16629
16630 2009-06-25  Sam Steingold  <sds@gnu.org>
16631
16632         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16633         mbtowc declaration.
16634
16635 2009-06-25  Eric Blake  <ebb9@byu.net>
16636
16637         fpurge: migrate into <stdio.h>
16638         * lib/fpurge.h: Delete...
16639         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16640         * lib/fpurge.c (fpurge): Change declaring header.
16641         * modules/fpurge (Files): Drop deleted file.
16642         (Depends-on): Add stdio.
16643         (configure.ac): Set witness.
16644         * modules/stdio (Makefile.am): Support fpurge macros.
16645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16646         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16647         * lib/fflush.c: Update client.
16648         * tests/test-fpurge.c: Likewise.
16649         * NEWS: Mention the change.
16650
16651 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16652
16653         * lib/argp-version-etc.c (program_authors): Add const
16654         qualifier.
16655         * lib/version-etc.c: Fix typos in the comments.
16656         * modules/argp-version-etc: Depends on version-etc.
16657
16658 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16659
16660         argp-version-etc: new module.
16661
16662         * lib/argp-version-etc.c: New file.
16663         * lib/argp-version-etc.h: New file.
16664         * modules/argp-version-etc: New file.
16665         * modules/argp-version-etc-tests: New file.
16666         * tests/test-argp-version-etc.c: New test.
16667         * tests/test-argp-version-etc-1.sh: New test.
16668
16669 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16670
16671         Provide additional interfaces and documentation for version-etc
16672         module.
16673
16674         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16675         interfaces.
16676         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16677         prototypes.
16678
16679 2009-06-24  Bruno Haible  <bruno@clisp.org>
16680
16681         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
16682         HAVE_LIB${NAME} macro.
16683         Reported by Sam Steingold <sds@gnu.org>.
16684
16685 2009-06-23  Simon Josefsson  <simon@josefsson.org>
16686
16687         * modules/hash-tests (test_hash_LDADD): Link to libintl when
16688         needed.
16689
16690 2009-06-21  Bruno Haible  <bruno@clisp.org>
16691
16692         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
16693         work.
16694         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
16695         together with LIB${NAME}, LTLIB${NAME}.
16696         Reported by Sam Steingold <sds@gnu.org>.
16697
16698 2009-06-20  Jim Meyering  <meyering@redhat.com>
16699
16700         tests: make sc_require_test_exit_idiom more generic
16701         * top/maint.mk (Exit_witness_file): New overridable variable.
16702         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
16703         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
16704
16705 2009-06-19  Jim Meyering  <meyering@redhat.com>
16706
16707         hash: reverse order of src/dst parameters in an internal interface
16708         * lib/hash.c (transfer_entries): Reverse order of parameters to
16709         put DST before SRC.  Adjust callers.
16710
16711         tests: test-hash: avoid wholesale duplication
16712         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
16713         Instead, use a loop and add a single conditional.
16714
16715         tests: test-hash: allow seed selection via a command line argument
16716         * tests/test-hash.c (get_seed): New function.
16717         (main): Use it.
16718
16719 2009-06-19  Eric Blake  <ebb9@byu.net>
16720
16721         hash: avoid memory leak on allocation failure
16722         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
16723         failure.  Factor repeated algorithm...
16724         (transfer_entries): ...into new helper routine.
16725         (hash_delete): React to hash_rehash return value.
16726
16727         hash: reduce memory pressure in hash_rehash no-op case
16728         * lib/hash.c (next_prime): Avoid overflow.
16729         (hash_initialize): Factor bucket size computation...
16730         (compute_bucket_size): ...into new helper function.
16731         (hash_rehash): Use new function and open coding to reduce memory
16732         pressure, and avoid a memory leak in USE_OBSTACK code.
16733         Reported by Jim Meyering.
16734
16735 2009-06-18  Eric Blake  <ebb9@byu.net>
16736
16737         hash: make rotation more obvious
16738         * modules/hash (Depends-on): Add bitrotate and stdint.
16739         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
16740         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
16741         (SIZE_MAX): Rely on headers for definition.
16742         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
16743         (raw_hasher): Use rotr_sz.
16744         Suggested by Jim Meyering.
16745
16746         hash: fix memory leak in last patch
16747         * lib/hash.c (hash_rehash): Avoid memory leak.
16748
16749         hash: avoid no-op rehashing
16750         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
16751
16752         hash: provide default callback functions
16753         * lib/hash.c (raw_hasher, raw_comparator): New functions.
16754         (hash_initialize): Use them as defaults.
16755         * tests/test-hash.c (main): Test this.
16756
16757         hash: minor optimization
16758         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
16759         when possible.
16760         (hash_initialize): Document this promise.
16761         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
16762         * tests/test-hash.c (hash_compare_strings): Test this.
16763
16764 2009-06-18  Bruno Haible  <bruno@clisp.org>
16765
16766         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
16767         going to be replaced anyway.
16768
16769 2009-06-18  Bruno Haible  <bruno@clisp.org>
16770
16771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
16772         in one place.
16773         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
16774         be replaced anyway.
16775
16776 2009-06-18  Eric Blake  <ebb9@byu.net>
16777
16778         hash: check for resize before insertion
16779         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
16780         threshold before insertion, so that a pathological hash_rehash
16781         that fills every bucket can still trigger another rehash.
16782
16783 2009-06-18  Jim Meyering  <meyering@redhat.com>
16784
16785         hash-tests: add a loop around the small tests
16786         * tests/test-hash.c (main): Repeat small tests with selected
16787         small initial table sizes.
16788
16789 2009-06-17  Eric Blake  <ebb9@byu.net>
16790
16791         hash: minor cleanups
16792         * lib/hash.h (hash_entry): Make opaque, by moving...
16793         * lib/hash.c (hash_entry): ...here.
16794         (hash_insert): Clarify restrictions on what can be inserted.
16795         (hash_get_next): Clarify when it is safe to remove an element
16796         during traversal.
16797         (check_tuning): Skip verification when tuning is known safe.
16798         (hash_initialize): Clarify restrictions on tuning.
16799
16800 2009-06-17  Jim Meyering  <jim@meyering.net>
16801         and Eric Blake  <ebb9@byu.net>
16802
16803         hash-tests: new module
16804         * modules/hash-tests: New file.
16805         * tests/test-hash.c: New file.
16806
16807 2009-06-17  Eric Blake  <ebb9@byu.net>
16808
16809         strstr-simple: document new module
16810         * MODULES.html.sh: Document new module.
16811
16812         strstr, strcasestr: replace on platforms with broken memchr
16813         * modules/strstr: Split into...
16814         * modules/strstr-simple: ...new module that does not care about
16815         performance, but does care about glibc bug.
16816         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
16817         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
16818         if platform memchr is broken, per Debian bug 521737.
16819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
16820         memchr.
16821         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
16822         * doc/posix-functions/strstr.texi (strstr): Document the fix.
16823         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16824         * modules/mountlist (Depends-on): Add strstr-simple.
16825         * modules/gen-uni-tables (Depends-on): Likewise.
16826         * modules/argz (Depends-on): Add strstr.
16827
16828 2009-06-17  Bruno Haible  <bruno@clisp.org>
16829
16830         * modules/posix_spawn-internal (Depends-on): Add errno.
16831
16832 2009-06-17  Bruno Haible  <bruno@clisp.org>
16833
16834         Define missing ESTALE on Interix 3.5.
16835         * lib/errno.in.h (ESTALE): Assign a value if missing.
16836         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
16837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
16838         missing.
16839         * doc/posix-headers/errno.texi: Mention the Interix bug.
16840         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
16841
16842 2009-06-15  Eric Blake  <ebb9@byu.net>
16843
16844         memchr, memchr2: add valgrind exception
16845         * lib/memchr.valgrind: New file.
16846         * lib/memchr2.valgrind: New file.
16847         * modules/memchr (Files): Distribute valgrind file.
16848         * modules/memchr2 (Files): Likewise.
16849
16850         docs: memchr is no longer obsolete
16851         * MODULES.html.sh: Move memchr from obsolete to string.h section.
16852         * lib/string.in.h (memchr): Simplify logic.
16853
16854 2009-06-14  Jim Meyering  <meyering@redhat.com>
16855
16856         link-follow: fix the "checking..." message to not mention trailing slash
16857         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
16858         never considered trailing slashes.
16859
16860 2009-06-14  Bruno Haible  <bruno@clisp.org>
16861
16862         * m4/memchr.m4: Mention also the bug on IA-64.
16863         * doc/posix-functions/memchr.texi: Likewise.
16864
16865 2009-06-12  Eric Blake  <ebb9@byu.net>
16866
16867         memchr: detect broken x86_64 and alpha implementations
16868         * modules/memchr-tests (Depends-on): Move mmap detection...
16869         * modules/memchr (Depends-on): ...here.
16870         (configure.ac): Set indicator.
16871         * lib/string.in.h (memchr): Declare replacement.
16872         * modules/string (Makefile.am): Trigger replacement.
16873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
16874         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
16875         bugs.
16876         * doc/posix-functions/memchr.texi (memchr): Document the bug.
16877         * modules/getpagesize (License): Relax license.
16878
16879 2009-06-11  Bruno Haible  <bruno@clisp.org>
16880
16881         * lib/idpriv.h: Add more references.
16882
16883 2009-06-08  Bruno Haible  <bruno@clisp.org>
16884
16885         Tests for module 'idpriv-droptemp'.
16886         * modules/idpriv-droptemp-tests: New file.
16887         * tests/test-idpriv-droptemp.sh: New file.
16888         * tests/test-idpriv-droptemp.su.sh: New file.
16889         * tests/test-idpriv-droptemp.c: New file.
16890
16891         New module 'idpriv-droptemp'.
16892         * lib/idpriv-droptemp.c: New file.
16893         * modules/idpriv-droptemp: New file.
16894
16895 2009-06-08  Bruno Haible  <bruno@clisp.org>
16896
16897         Tests for module 'idpriv-drop'.
16898         * modules/idpriv-drop-tests: New file.
16899         * tests/test-idpriv-drop.sh: New file.
16900         * tests/test-idpriv-drop.su.sh: New file.
16901         * tests/test-idpriv-drop.c: New file.
16902
16903         New module 'idpriv-drop'.
16904         * lib/idpriv.h: New file.
16905         * lib-idpriv-drop.c: New file.
16906         * m4/idpriv.m4: New file.
16907         * modules/idpriv-drop: New file.
16908
16909 2009-06-08  Bruno Haible  <bruno@clisp.org>
16910
16911         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
16912         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16913         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16914         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16915         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16916         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16917         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16918
16919 2009-06-08  Eric Blake  <ebb9@byu.net>
16920
16921         test-strstr: use memory fence, when possible
16922         * tests/test-strstr.c (main): Use memory fence, in order to be
16923         more likely to trigger Debian bug 521737.
16924         * modules/strstr-tests (Files): Pull in additional files.
16925
16926         memchr: no longer obsolete, for wider field testing
16927         * modules/memchr (Status, Notice): Delete, this module is no
16928         longer obsolete.
16929         * modules/vasnprintf (Depends-on): Add memchr.
16930
16931 2009-06-07  Jim Meyering  <meyering@redhat.com>
16932
16933         hash: declare some functions with the warn_unused_result attribute
16934         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
16935
16936 2009-06-07  Bruno Haible  <bruno@clisp.org>
16937
16938         * tests/test-alignof.c: Don't test int64_t if it does not exist.
16939         Reported by Eric Blake.
16940
16941 2009-06-06  Eric Blake  <ebb9@byu.net>
16942
16943         test-alignof: fix typo with long double
16944         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
16945         compiler error.
16946
16947 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
16948
16949         Escape non-texinfo { and }s.
16950         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
16951         markup error.
16952
16953 2009-06-04  Jim Meyering  <meyering@redhat.com>
16954
16955         gitlog-to-changelog: don't infloop on an empty commit log
16956         * build-aux/gitlog-to-changelog: Warn about an empty log message.
16957         Reported by Boris Petersen <transacid@centerim.org>.
16958
16959 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
16960
16961         version-etc: extend for packagers
16962         Add three new configure options, intended for packagers:
16963           --with-packager="packager name"
16964           --with-packager-version="packager-specific version"
16965           --with-packager-bug-reports="packager bug reporting"
16966         An example with coreutils:
16967           $ ./configure \
16968             --with-packager=Gentoo \
16969             --with-packager-bug-report=http://bugs.gentoo.org/ \
16970             --with-packager-version="patchset 1.6"
16971           $ ./src/ls --version | head -n2
16972           ls (GNU coreutils) 7.1-dirty
16973           Packaged by Gentoo (patchset 1.6)
16974         Note that the bug reporting info via --help doesn't show up because
16975         coreutils uses its own custom emit_bug_reporting_address() implementation
16976         in src/system.h.  If it didn't, it'd look like:
16977           $ ./src/ls --help | tail -n4
16978           Report bugs to <bug-coreutils@gnu.org>.
16979           Report Gentoo bugs to <http://bugs.gentoo.org/>.
16980           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
16981           General help using GNU software: <http://www.gnu.org/gethelp/>.
16982         * lib/version-etc.c: Print new information, if provided.
16983         * m4/version-etc.m4: New file.
16984         * modules/version-etc (Files): Add m4/version-etc.m4.
16985         (configure.ac): Add gl_VERSION_ETC.
16986
16987 2009-05-31  Bruno Haible  <bruno@clisp.org>
16988
16989         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
16990         and 'int64_t'.
16991         * modules/alignof-tests (Dependencies): Add stdint.
16992         Reported by Eric Blake.
16993
16994 2009-05-31  Bruno Haible  <bruno@clisp.org>
16995
16996         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
16997         restriction due to compiler bugs.
16998         Reported by Eric Blake.
16999
17000 2009-05-31  Simon Josefsson  <simon@josefsson.org>
17001             Bruno Haible  <bruno@clisp.org>
17002
17003         Fix test-alignof failure.
17004         * lib/alignof.h (alignof_slot): New macro.
17005         (alignof_type): New macro, with the same semantics as the previous
17006         'alignof'.
17007         (alignof): Alias to alignof_slot.
17008         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
17009         check that the results are usable as constant expressions.
17010
17011 2009-05-31  Bruno Haible  <bruno@clisp.org>
17012
17013         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
17014         * tests/test-memchr.c (main): Check that memchr does not read past the
17015         first occurrence of the byte.
17016         * tests/test-strstr.c (main): Update comment.
17017         Suggested by Eric Blake.
17018
17019 2009-05-30  Bruno Haible  <bruno@clisp.org>
17020
17021         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
17022         detail how to use dumpbin.
17023         Reported by David Byron <dbyron@dbyron.com>.
17024
17025 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17026
17027         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
17028
17029 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17030
17031         * m4/manywarnings.m4: Add GCC 4.4 warnings.
17032
17033 2009-05-28  Bruno Haible  <bruno@clisp.org>
17034
17035         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
17036         build-aux/ files.
17037
17038 2009-05-28  Simon Josefsson  <simon@josefsson.org>
17039
17040         * gnulib-tool (func_import): Transform license on build-aux/ files too.
17041
17042 2009-05-27  Simon Josefsson  <simon@josefsson.org>
17043
17044         * gnulib-tool (sed_transform_main_lib_file)
17045         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
17046         regexps.
17047
17048 2009-05-26  Simon Josefsson  <simon@josefsson.org>
17049
17050         * tests/test-strstr.c: Add another self-test.
17051         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
17052         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
17053
17054 2009-05-23  Bruno Haible  <bruno@clisp.org>
17055
17056         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
17057         change.
17058
17059 2009-05-21  Bruno Haible  <bruno@clisp.org>
17060
17061         Simplify use of mode_t varargs.
17062         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
17063         uses 'mode_t' or 'int'.
17064         * lib/openat.c (openat): Likewise.
17065         * lib/open-safer.c (open_safer): Likewise.
17066         * m4/mode_t.m4: New file.
17067         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
17068         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
17069         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
17070         * modules/open (Files): Add m4/mode_t.m4.
17071         * modules/openat (Files): Likewise.
17072         * modules/fcntl-safer (Files): Likewise.
17073         Suggested by Eric Blake.
17074
17075 2009-05-21  Pádraig Brady  <P@draigbrady.com>
17076
17077         * doc/glibc-functions/fallocate.texi: New file.
17078         * doc/gnulib.texi: Include it.
17079
17080 2009-05-21  Eric Blake  <ebb9@byu.net>
17081             Bruno Haible  <bruno@clisp.org>
17082
17083         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
17084         invocations.
17085         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17086
17087 2009-05-21  Eric Blake  <ebb9@byu.net>
17088             Bruno Haible  <bruno@clisp.org>
17089
17090         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
17091         include_next. Fix of 2008-11-20 commit.
17092         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
17093         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
17094         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
17095         NEXT_MATH_H.
17096         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
17097         instead of NEXT_MATH_H.
17098
17099 2009-05-21  Bruno Haible  <bruno@clisp.org>
17100
17101         Avoid redefinition warnings for SIZE_MAX.
17102         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
17103         Reported by Simon Josefsson.
17104
17105 2009-05-21  Bruno Haible  <bruno@clisp.org>
17106
17107         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
17108         AC_CACHE_VAL.
17109
17110 2009-05-20  Bruno Haible  <bruno@clisp.org>
17111
17112         Make zeroptr.h work on mingw.
17113         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
17114         mprotect.
17115         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
17116         * modules/memchr2-tests (configure.ac): Likewise.
17117         * modules/memcmp-tests (configure.ac): Likewise.
17118         * modules/memmem-tests (configure.ac): Likewise.
17119         * modules/memrchr-tests (configure.ac): Likewise.
17120         Reported by Simon Josefsson.
17121
17122 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17123
17124         * tests/test-glob.c: Include string.h for strcmp prototype.
17125
17126 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17127
17128         * modules/getdelim (Depends-on): Add explicit stdint, although it
17129         was implicitly already pulled in via realloc-posix.
17130         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
17131
17132 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17133
17134         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
17135         G. Christensen" <tgc@jupiterrise.com>.
17136         * m4/sys_socket_h.m4: Check for sa_family_t.
17137         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
17138         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
17139         * tests/test-sys_socket.c: Check that sa_family_t works.
17140
17141 2009-05-18  Eric Blake  <ebb9@byu.net>
17142
17143         maint.mk: allow gnulib_dir in VPATH build
17144         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
17145
17146 2009-05-15  Jim Meyering  <meyering@redhat.com>
17147
17148         maint.mk: Give gnulib_dir a default definition.
17149         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
17150         Thus, most packages no longer need to specify this variable in cfg.mk
17151
17152 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
17153
17154         rename.m4: fix typos that would make non-mingw cross-configure fail
17155         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
17156
17157 2009-05-13  Eric Blake  <ebb9@byu.net>
17158
17159         mmap-anon: avoid out-of-order autoconf expansion
17160         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
17161         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
17162         * modules/memchr-tests (Depends-on): Add extensions.
17163         * modules/memchr2-tests (Depends-on): Add extensions.
17164         * modules/memcmp-tests (Depends-on): Add extensions.
17165         * modules/memmem-tests (Depends-on): Add extensions.
17166         * modules/memrchr-tests (Depends-on): Add extensions.
17167
17168 2009-05-13  Bruno Haible  <bruno@clisp.org>
17169
17170         Make some tests ISO C 99 compliant.
17171         * tests/zerosize-ptr.h: New file.
17172         * tests/test-memchr.c: Include zerosize-ptr.h.
17173         (main): Use a zero-size object pointer instead of NULL.
17174         * tests/test-memchr2.c: Include zerosize-ptr.h.
17175         (main): Use a zero-size object pointer instead of NULL.
17176         * tests/test-memcmp.c: Include zerosize-ptr.h.
17177         (main): Use a zero-size object pointer instead of NULL.
17178         * tests/test-memmem.c: Include zerosize-ptr.h.
17179         (main): Use a zero-size object pointer instead of NULL.
17180         * tests/test-memrchr.c: Include zerosize-ptr.h.
17181         (main): Use a zero-size object pointer instead of NULL.
17182         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
17183         m4/mmap-anon.m4.
17184         (Depends-on): Add getpagesize.
17185         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17186         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
17187         m4/mmap-anon.m4.
17188         (Depends-on): Add getpagesize.
17189         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17190         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
17191         m4/mmap-anon.m4.
17192         (Depends-on): Add getpagesize.
17193         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17194         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
17195         m4/mmap-anon.m4.
17196         (Depends-on): Add getpagesize.
17197         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17198         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
17199         m4/mmap-anon.m4.
17200         (Depends-on): Add getpagesize.
17201         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17202
17203 2009-05-12  Bruno Haible  <bruno@clisp.org>
17204
17205         Tests for module 'alignof'.
17206         * modules/alignof-tests: New file.
17207         * tests/test-alignof.c: New file.
17208
17209 2009-05-12  Bruno Haible  <bruno@clisp.org>
17210
17211         Fix alignof macro.
17212         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
17213         vendor compilers that are always correct.
17214
17215 2009-05-12  Bruno Haible  <bruno@clisp.org>
17216
17217         Make the MAP_ANONYMOUS detection work on HP-UX 11.
17218         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
17219         not whether its fully works.
17220
17221 2009-05-12  Bruno Haible  <bruno@clisp.org>
17222
17223         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
17224
17225 2009-05-12  Jim Meyering  <meyering@redhat.com>
17226
17227         * top/maint.mk: Adjust backslash alignment.
17228
17229 2009-05-11  Simon Josefsson  <simon@josefsson.org>
17230
17231         * top/maint.mk: Make $(srcdir)/build-aux configurable.
17232
17233 2009-05-11  Eric Blake  <ebb9@byu.net>
17234
17235         argp: avoid undefined behavior
17236         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
17237         macros.
17238
17239 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17240
17241         * tests/test-vc-list-files-git.sh: Do git config of user.email and
17242         user.name to prevent git commit from complaining.
17243
17244 2009-05-10  Bruno Haible  <bruno@clisp.org>
17245
17246         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
17247         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
17248         it rewrites every file name only once.
17249         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
17250
17251 2009-05-08  Bruno Haible  <bruno@clisp.org>
17252
17253         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
17254         instead of 'max'.
17255
17256 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17257
17258         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
17259         sockaddr_storage test.
17260
17261 2009-05-07  Simon Josefsson  <simon@josefsson.org>
17262
17263         * modules/sys_socket (Makefile.am): Substitute
17264         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
17265         * m4/sys_socket_h.m4: Check for sockaddr_storage.
17266         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
17267         * tests/test-sys_socket.c: Check sockaddr_storage.
17268
17269 2009-05-08  Bruno Haible  <bruno@clisp.org>
17270
17271         New module 'alignof'.
17272         * lib/alignof.h: New file.
17273         * modules/alignof: New file.
17274
17275 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17276             Bruno Haible  <bruno@clisp.org>
17277
17278         Fix test-file-has-acl on FreeBSD.
17279         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
17280         mask is implicitly added.
17281         * tests/test-file-has-acl.c: Include <signal.h>.
17282         (main): Terminate the test after 5 seconds.
17283         * modules/acl-tests (configure.ac): Check for alarm function.
17284
17285 2009-05-04  Bruno Haible  <bruno@clisp.org>
17286
17287         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
17288         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
17289         * modules/errno (configure.ac): Drop AC_REQUIRE.
17290         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
17291         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
17292
17293 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17294
17295         * modules/glob-tests: New module.
17296         * tests/test-glob.c: Add.
17297
17298 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17299
17300         * modules/fnmatch-tests: New module.
17301         * tests/test-fnmatch.c: Add.
17302
17303 2009-05-04  Eric Blake  <ebb9@byu.net>
17304
17305         maint: make the new no-submodule-changes rule VPATH-safe
17306         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
17307
17308 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17309             Bruno Haible  <bruno@clisp.org>
17310
17311         acl: Fix infinite loop on FreeBSD.
17312         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
17313         of return value from acl_get_entry.
17314         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
17315         Likewise.
17316
17317 2009-05-03  Bruno Haible  <bruno@clisp.org>
17318
17319         * lib/acl-internal.h (acl_entries): Clarify return value.
17320         * lib/acl_entries.c (acl_entries): Likewise.
17321
17322 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17323
17324         Bug fix in acl module.
17325         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
17326
17327 2009-05-03  Bruno Haible  <bruno@clisp.org>
17328
17329         Create gperf-generated file in the source dir, not in the build dir.
17330         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
17331         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
17332         * modules/unicase/locale-language (unicase/locale-languages.h):
17333         Likewise.
17334         * modules/unicase/special-casing (unicase/special-casing-table.h):
17335         Likewise.
17336         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
17337         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
17338         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
17339         Reported by Ralf Wildenhues.
17340
17341 2009-05-03  Bruno Haible  <bruno@clisp.org>
17342
17343         * modules/fnmatch (Description, configure.ac): Taken from
17344         fnmatch-posix.
17345         * modules/fnmatch-posix: Turn into a symbolic reference to the
17346         'fnmatch' module, and deprecate.
17347         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
17348
17349 2009-05-03  Bruno Haible  <bruno@clisp.org>
17350
17351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
17352         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
17353         Reported by Ralf Wildenhues.
17354
17355 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17356
17357         * m4/fnmatch.m4: Fix fnmatch re-define.
17358
17359 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17360
17361         priv-set: new module and tests; adapt write-any-file
17362         * lib/priv-set.c: New file.
17363         * lib/priv-set.h: New file.
17364         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
17365         * lib/write-any-file.c: Simplify by using priv-set module.
17366         * m4/priv-set.m4: New file.
17367         * modules/priv-set: New file.
17368         * modules/unlinkdir: Add dependency on priv-set module.
17369         * modules/write-any-file: Likewise.
17370
17371         Tests for module 'priv-set'.
17372         * modules/priv-set-tests: New file.
17373         * tests/test-priv-set.c: New file.
17374
17375 2009-05-03  Jim Meyering  <meyering@redhat.com>
17376             Bruno Haible  <bruno@clisp.org>
17377
17378         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
17379         use the converted UTF-8 variant of the name instead.
17380
17381 2009-05-03  Jim Meyering  <meyering@redhat.com>
17382
17383         tests: tighten some getdate tests
17384         * tests/test-getdate.c (main): Tighten tests: require equality,
17385         not just greater than.  Set TZ envvar to UTC0.
17386
17387 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17388
17389         getdate: correctly interpret "next monday" when run on a Monday
17390         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
17391         that e.g., "next tues" (when run on a tuesday) results in a date
17392         that is one week in the future, and not today's date.
17393         I.e., add a week when the wday is the same as the current one.
17394         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
17395         and earlier by Martin Bernreuther and Jan Minář.
17396         * tests/test-getdate.c (main): Check that "next DAY" is always in
17397         the future and that "last DAY" is always in the past.
17398
17399 2009-05-02  Jim Meyering  <meyering@redhat.com>
17400
17401         build: ensure that a release build fails when a submodule is unclean
17402         * top/maint.mk (no-submodule-changes): New rule.
17403         (alpha beta major): Depend on it.
17404
17405 2009-05-02  Bruno Haible  <bruno@clisp.org>
17406
17407         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
17408         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
17409         shell variable gl_fnmatch_required to detect which variant is
17410         requested.
17411         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
17412         gl_FUNC_FNMATCH_POSIX.
17413         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
17414         exclude fnmatch-posix.
17415
17416 2009-05-02  Bruno Haible  <bruno@clisp.org>
17417
17418         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
17419         * modules/mbsrtowcs (License): Change to LGPLv2+.
17420         * modules/strnlen1 (License): Likewise.
17421         Reported by Simon Josefsson.
17422
17423 2009-05-02  Bruno Haible  <bruno@clisp.org>
17424
17425         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
17426         "cross".
17427         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
17428         gnulib-tool was called with option --source-base=lib.
17429
17430 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17431
17432         Use automake *-local hooks without commands, for extensibility.
17433         * modules/localcharset (Makefile.am): Rename install-exec-local
17434         rule to install-exec-localcharset, and make it a prerequisite of
17435         install-exec-local.  Likewise, rename the uninstall-local rule to
17436         uninstall-localcharset, and make it a prerequisite of the former.
17437
17438 2009-05-01  Bruno Haible  <bruno@clisp.org>
17439
17440         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
17441         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17442         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
17443         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
17444         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
17445         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17446         m4/locale-zh.m4, m4/codeset.m4.
17447
17448         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17449         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
17450         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17451         m4/locale-zh.m4.
17452
17453         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
17454         REPLACE_WCRTOMB if mbstate_t must be replaced.
17455         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
17456         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
17457
17458 2009-05-01  Bruno Haible  <bruno@clisp.org>
17459
17460         Avoid compiler warnings when redefining macros defined by <libintl.h>.
17461         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
17462         dngettext, dcngettext, textdomain, bindtextdomain,
17463         bind_textdomain_codeset): Undefine before redefining.
17464
17465 2009-04-30  Bruno Haible  <bruno@clisp.org>
17466
17467         Fix bug introduced on 2009-04-25.
17468         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
17469         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
17470         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
17471         is defined.
17472         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
17473         is defined.
17474         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
17475         is defined.
17476         Reported by Elbert_Pol <elbert.pol@gmail.com>.
17477
17478 2009-04-28  Bruno Haible  <bruno@clisp.org>
17479
17480         Comment tweaks.
17481         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
17482         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
17483         * lib/unicase.h (u*_casexfrm): Likewise.
17484         Reported by Paolo Bonzini.
17485
17486 2009-04-28  Bruno Haible  <bruno@clisp.org>
17487
17488         Fix a compilation error.
17489         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17490         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17491         Reported by Jim Meyering.
17492
17493 2009-04-27  Bruno Haible  <bruno@clisp.org>
17494
17495         New module 'libunistring'.
17496         * modules/libunistring: New file.
17497         * m4/libunistring.m4: New file.
17498         * MODULES.html.sh (Unicode string functions): Add it.
17499
17500 2009-04-27  Eric Blake  <ebb9@byu.net>
17501
17502         maint.mk: allow package-specific header to provide <config.h>
17503         * top/maint.mk (sc_require_config_h): New variable.
17504         (sc_require_config_h, sc_require_config_h_first): Use it.
17505
17506 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17507
17508         * top/maint.mk (sc_avoid_if_before_free): Except
17509         useless-if-before-free script.
17510
17511 2009-04-27  Eric Blake  <ebb9@byu.net>
17512
17513         maintainer-makefile: depend on all required helper scripts
17514         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17515         useless-if-before-free.
17516         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17517         version, rather than assuming gnulib checkout is available.
17518         Reported by Simen Josefsson.
17519
17520 2009-04-26  Bruno Haible  <bruno@clisp.org>
17521
17522         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17523         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17524         "../" or "..".
17525
17526 2009-04-26  Bruno Haible  <bruno@clisp.org>
17527
17528         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17529         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17530         AC_LIB_HAVE_LINKFLAGS.
17531
17532 2009-04-26  Bruno Haible  <bruno@clisp.org>
17533
17534         Simplify calling convention of u*_conv_from_encoding.
17535         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17536         u32_conv_from_encoding): Expect a resultbuf argument and return the
17537         result directly as a pointer.
17538         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17539         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17540         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17541         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17542         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17543         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17544         Update.
17545         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17546         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17547         * lib/vasnprintf.c (VASNPRINTF): Update.
17548         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17549         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17550         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17551         * NEWS: Mention the change.
17552
17553 2009-04-26  Bruno Haible  <bruno@clisp.org>
17554
17555         Simplify calling convention of u*_conv_to_encoding.
17556         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17557         u32_conv_to_encoding): Expect a resultbuf argument and return the
17558         result directly as a pointer.
17559         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17560         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17561         freeing scaled_offsets if mem_iconveha failed.
17562         * lib/unicase/u-casexfrm.h (FUNC): Update.
17563         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17564         * lib/vasnprintf.c (VASNPRINTF): Update.
17565         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17566         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17567         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17568         * NEWS: Mention the change.
17569
17570 2009-04-26  Bruno Haible  <bruno@clisp.org>
17571
17572         Avoid test failures on AIX and OSF/1.
17573         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17574         malloc(0).
17575         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17576         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17577         Likewise.
17578         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17579         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17580         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17581         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17582         * doc/posix-functions/malloc.texi: Document the portability problem
17583         related to malloc(0).
17584
17585 2009-04-26  Bruno Haible  <bruno@clisp.org>
17586
17587         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17588         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17589         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17590
17591 2009-04-25  Bruno Haible  <bruno@clisp.org>
17592
17593         Avoid link error when creating a namespace clean library.
17594         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17595         as macro with arguments if already defined as an alias.
17596         * lib/signbitf.c (gl_signbitf): Don't undefine.
17597         * lib/signbitd.c (gl_signbitd): Don't undefine.
17598         * lib/signbitl.c (gl_signbitl): Don't undefine.
17599
17600 2009-04-25  Jim Meyering  <meyering@redhat.com>
17601
17602         vc-list-files: fix another quoting bug
17603         * build-aux/vc-list-files: Avoid sed backslash expansion
17604         of pathological directory names.
17605
17606 2009-04-25  Eric Blake  <ebb9@byu.net>
17607
17608         vc-list-files: fix shell quoting error
17609         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17610         timestamp.
17611
17612 2009-04-25  Jim Meyering  <meyering@redhat.com>
17613
17614         vc-list-files: restore lost functionality with subdir argument
17615         * build-aux/vc-list-files: When given a non-"." sub-directory
17616         argument, substitute the $dir/ prefix back onto each resulting name.
17617         Otherwise, coreutils' root_tests check would fail.
17618
17619 2009-04-24  Eric Blake  <ebb9@byu.net>
17620
17621         vc-list-files: ignore git symlinks
17622         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17623         than ls-files, to ignore git symlinks.
17624
17625         maint.mk: import improvements from m4
17626         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17627         (move_if_change): Delete unused macro.
17628         (news-date-check, vc-diff-check): Support VPATH builds.
17629         (announcement): Likewise.  Split --bootstrap-tools list...
17630         (boostrap-tools): ...into separate list, which can be overridden
17631         in cfg.mk.
17632         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17633         requiring dependency on useless-if-before-free module.
17634         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17635         Support VPATH builds.
17636
17637 2009-04-24  Jim Meyering  <meyering@redhat.com>
17638
17639         maint.mk: remove coreutils-specific rules and variables
17640         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17641         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17642         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17643
17644         maint.mk: remove obsolete rule
17645         * top/maint.mk (rel-check): Remove rule.
17646         (WGET, WGETFLAGS): Remove now-unused variables.
17647
17648 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17649
17650         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17651         consistency.
17652
17653         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17654         '$(PATH_SEPARATOR)' instead of ':'.
17655
17656 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17657
17658         * lib/getopt1.c (main): Use 'const' for static array.
17659
17660 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17661
17662         * top/maint.mk: Sync with coreutils.
17663         * NEWS: Explain incompatibilities.
17664
17665 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17666             Bruno Haible  <bruno@clisp.org>
17667
17668         Fix cross-compilation results.
17669         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17670         statement, as third argument of AC_TRY_RUN.
17671         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17672         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17673         Likewise.
17674         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17675         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17676         Likewise.
17677         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17678         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
17679         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
17680
17681 2009-04-20  Bruno Haible  <bruno@clisp.org>
17682
17683         Avoid test failure on mingw.
17684         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
17685
17686 2009-04-20  Bruno Haible  <bruno@clisp.org>
17687
17688         Avoid compilation error on mingw.
17689         * modules/localename-tests (Depends-on): Add locale.
17690
17691 2009-04-19  Bruno Haible  <bruno@clisp.org>
17692
17693         Support for building a shared library on Windows platforms.
17694         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
17695         (main): Test the presence of UNINORM_NFC here.
17696         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
17697         (main): Test the presence of UNINORM_NFD here.
17698         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
17699         (main): Test the presence of UNINORM_NFKC here.
17700         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
17701         (main): Test the presence of UNINORM_NFKD here.
17702
17703 2009-04-19  Bruno Haible  <bruno@clisp.org>
17704
17705         Avoid a compiler warning.
17706         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
17707         Change type of variable 'sequence'.
17708
17709 2009-04-19  Bruno Haible  <bruno@clisp.org>
17710
17711         * modules/configmake (Makefile.am): When the contents of configmake.h
17712         does not change, arrange to preserve its modification time.
17713
17714 2009-04-17  Simon Josefsson  <simon@josefsson.org>
17715
17716         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
17717         gettext domain.
17718
17719 2009-04-16  Jim Meyering  <meyering@redhat.com>
17720
17721         useless-if-before-free: improve conversion code
17722         * build-aux/useless-if-before-free: Adjust code-in-comment to match
17723         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
17724
17725 2009-04-14  Bruno Haible  <bruno@clisp.org>
17726
17727         * modules/fcntl (Depends-on): Add extensions.
17728         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
17729
17730 2009-04-12  Ben Pfaff  <blp@gnu.org>
17731
17732         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
17733         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
17734
17735 2009-03-20  Ben Pfaff  <blp@gnu.org>
17736
17737         Make rename replace existing destinations on Windows.
17738         * m4/rename.m4: Add test for Mingw.
17739         * lib/rename.c: Add rename replacement that uses MoveFileEx with
17740         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17741         * doc/posix-functions/rename.texi: Document.
17742
17743 2009-04-10  Bruno Haible  <bruno@clisp.org>
17744
17745         New include file "iconveh.h".
17746         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
17747         * lib/striconveh.h: Include it.
17748         (enum iconv_ilseq_handler): Remove definition.
17749         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
17750         striconveh.h.
17751         * lib/striconveha.c: Include striconveh.h.
17752         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
17753         * modules/striconveh (Files): Add lib/iconveh.h.
17754         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
17755         lib/striconveh.h.
17756
17757 2009-04-10  Bruno Haible  <bruno@clisp.org>
17758
17759         * lib/uniconv.h: Update comment.
17760
17761 2009-04-10  Bruno Haible  <bruno@clisp.org>
17762
17763         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
17764         always.
17765         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17766         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17767         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17768         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
17769         "unistring-notinline.h", so that the function gets defined always.
17770         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17771         * lib/unistr/u8-uctomb.c: Likewise.
17772         * lib/unistr/u16-mbtouc.c: Likewise.
17773         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17774         * lib/unistr/u16-uctomb.c: Likewise.
17775         * lib/unistr/u32-mbtouc.c: Likewise.
17776         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17777         * lib/unistr/u32-uctomb.c: Likewise.
17778
17779 2009-04-10  Bruno Haible  <bruno@clisp.org>
17780
17781         Mark 'utime' obsolete.
17782         * modules/utime (Status, Notice): New sections.
17783         Suggested by Jim Meyering.
17784
17785         Fix cross-compile guess for utime test.
17786         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
17787         autoconf.
17788         * doc/posix-functions/utime.texi: Give more precisions.
17789         Reported by Jan <ipif@ymail.com>.
17790
17791 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
17792
17793         filevercmp: correct today's change
17794         * lib/filevercmp.c: Also handle coreutils' test inputs.
17795         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
17796
17797         Fix regression in 'filevercmp' module. Thanks Sven Joachim
17798         for reporting it.
17799         * lib/filevercmp.c: Special handle for "", "." and "..".
17800         * tests/test-filevercmp.c: Enlarge the set suite.
17801
17802 2009-04-07  Jim Meyering  <meyering@redhat.com>
17803
17804         useless-if-before-free: show how to remove braced useless free, too
17805         * build-aux/useless-if-before-free: still only in a comment, though.
17806
17807 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
17808
17809         maint.mk: import changes to syntax-check macros from coreutils
17810         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
17811         Use them in the relevant macros.
17812
17813 2009-04-06  Bruno Haible  <bruno@clisp.org>
17814
17815         Fix unportable use of bit-fields.
17816         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
17817         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
17818         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
17819
17820 2009-04-06  Bruno Haible  <bruno@clisp.org>
17821
17822         Avoid test failures on AIX and OSF/1.
17823         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
17824         that malloc(0) = NULL.
17825         * tests/unicase/test-u8-tolower.c (check): Likewise.
17826         * tests/unicase/test-u8-totitle.c (check): Likewise.
17827         * tests/unicase/test-u8-toupper.c (check): Likewise.
17828         * tests/unicase/test-u16-casefold.c (check): Likewise.
17829         * tests/unicase/test-u16-tolower.c (check): Likewise.
17830         * tests/unicase/test-u16-totitle.c (check): Likewise.
17831         * tests/unicase/test-u16-toupper.c (check): Likewise.
17832         * tests/unicase/test-u32-casefold.c (check): Likewise.
17833         * tests/unicase/test-u32-tolower.c (check): Likewise.
17834         * tests/unicase/test-u32-totitle.c (check): Likewise.
17835         * tests/unicase/test-u32-toupper.c (check): Likewise.
17836         * tests/uninorm/test-u8-nfc.c (check): Likewise.
17837         * tests/uninorm/test-u8-nfd.c (check): Likewise.
17838         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
17839         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
17840         * tests/uninorm/test-u16-nfc.c (check): Likewise.
17841         * tests/uninorm/test-u16-nfd.c (check): Likewise.
17842         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
17843         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
17844         * tests/uninorm/test-u32-nfc.c (check): Likewise.
17845         * tests/uninorm/test-u32-nfd.c (check): Likewise.
17846         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
17847         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
17848
17849 2009-04-05  Bruno Haible  <bruno@clisp.org>
17850
17851         Work around an autoconf limitation.
17852         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
17853         comment line if it would be longer than 3 KB.
17854
17855 2009-04-05  Bruno Haible  <bruno@clisp.org>
17856
17857         Avoid test failure with libiconv-1.13.
17858         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
17859         of the expected test results.
17860
17861 2009-04-05  Bruno Haible  <bruno@clisp.org>
17862
17863         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
17864         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
17865         that it should be installed.
17866
17867 2009-04-05  Bruno Haible  <bruno@clisp.org>
17868
17869         * gnulib-tool: New option --copy-file.
17870         (func_usage): Document it.
17871         (func_dest_tmpfilename): Moved out of func_import.
17872         (func_add_file, func_update_file): New functions, extracted from
17873         func_import.
17874         (func_import): Update.
17875
17876 2009-04-05  Karl Berry  <karl@gnu.org>
17877
17878         * README: prominently mention gnulib-tool.
17879         Rearrange sections so getting the code is near the top.
17880
17881 2009-04-05  Bruno Haible  <bruno@clisp.org>
17882
17883         * lib/unicase.h: Mention u*_cmp2.
17884         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17885         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
17886         * lib/unicase/ulc-casecmp.c: Likewise.
17887         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
17888         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
17889         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
17890         unistr/u8-cmp.
17891         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
17892         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
17893         unistr/u16-cmp.
17894         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
17895         unistr/u32-cmp.
17896
17897         * lib/uninorm.h: Mention u*_cmp2.
17898         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17899         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
17900         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
17901         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
17902         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
17903         unistr/u8-cmp.
17904         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
17905         unistr/u16-cmp.
17906         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
17907         unistr/u32-cmp.
17908
17909         New module 'unistr/u32-cmp2'.
17910         * lib/unistr/u32-cmp2.c: New file.
17911         * modules/unistr/u32-cmp2: New file.
17912
17913         New module 'unistr/u16-cmp2'.
17914         * lib/unistr/u16-cmp2.c: New file.
17915         * modules/unistr/u16-cmp2: New file.
17916
17917         New module 'unistr/u8-cmp2'.
17918         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
17919         * lib/unistr/u8-cmp2.c: New file.
17920         * lib/unistr/u-cmp2.h: New file.
17921         * modules/unistr/u8-cmp2: New file.
17922
17923 2009-04-05  Bruno Haible  <bruno@clisp.org>
17924
17925         * lib/unictype.h (uc_property_is_valid): New macro.
17926         * tests/unictype/test-pr_byname.c (main): Use it.
17927
17928         * lib/unistr.h: Doc fixes.
17929         * lib/uniconv.h: Doc fixes.
17930         * lib/unictype.h: Doc fixes.
17931
17932 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
17933
17934         Port coreutils 7.2 to Solaris 8.
17935
17936         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
17937         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
17938         for Solaris 8.  This is a bit of a hack, as it means it's the
17939         caller's responsibility to add -lnsl if needed, but most likely it
17940         won't be needed since only getaddrinfo uses this and getaddrinfo
17941         isn't needed on Solaris 8.
17942
17943         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
17944         problem to Solaris 8 encountered with coreutils 7.2, which
17945         resulted in a message "fnmatch.c:292: warning: passing argument 4
17946         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
17947         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
17948
17949 2009-04-03  Simon Josefsson  <simon@josefsson.org>
17950
17951         * m4/ld-version-script.m4: Add FIXME comment.
17952
17953 2009-04-02  Simon Josefsson  <simon@josefsson.org>
17954
17955         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
17956         SOVERSION variable.
17957
17958 2009-04-02  Bruno Haible  <bruno@clisp.org>
17959
17960         * Makefile (info, html, dvi, pdf): Combine the rules.
17961         Suggested by Jim Meyering.
17962
17963 2009-04-01  Bruno Haible  <bruno@clisp.org>
17964
17965         * Makefile (info, html, dvi, pdf): New targets.
17966         Reported by Reuben Thomas <rrt@sc3d.org>.
17967
17968 2009-04-01  Bruno Haible  <bruno@clisp.org>
17969
17970         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
17971         can be put into PATH.
17972         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
17973
17974 2009-04-01  Bruno Haible  <bruno@clisp.org>
17975
17976         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
17977
17978 2009-04-01  Bruno Haible  <bruno@clisp.org>
17979
17980         Rename module 'visibility'.
17981         * modules/lib-symbol-visibility: Renamed from modules/visibility.
17982         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
17983         * doc/gnulib.texi: Update.
17984         * MODULES.html.sh (Misc): Update.
17985         * NEWS: Mention the change.
17986
17987 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17988
17989         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
17990         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
17991         Eric Blake <ebb9@byu.net> for review.
17992         * MODULES.html.sh: Add lib-msvc-compat.
17993         * doc/gnulib.texi: Link to new section.
17994         * m4/ld-output-def.m4: New file.
17995         * doc/ld-output-def.texi: New file.
17996
17997 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17998
17999         Rename ld-version-script to lib-symbol-versions.  Suggested by
18000         Bruno Haible <bruno@clisp.org>.
18001         * modules/ld-version-script: Renamed to lib-symbol-versions.
18002         * doc/ld-version-script.texi: Fix module name.
18003         * MODULES.html.sh: Add lib-symbol-versions.
18004
18005 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18006
18007         * modules/u64-tests: New file.
18008         * tests/test-u64.c: New file.
18009
18010 2009-03-04  Simon Josefsson  <simon@josefsson.org>
18011
18012         * MODULES.html.sh: Mention u64.
18013         * modules/u64: New module.
18014         * modules/crypto/sha512: Depend on u64 module instead of providing
18015         u64.h.
18016
18017 2009-03-27  Eric Blake  <ebb9@byu.net>
18018
18019         test-strerror: make debugging EAI_SYSTEM easier
18020         * modules/getaddrinfo-tests (Depends-on): Add strerror.
18021         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
18022         failure was EAI_SYSTEM.
18023
18024 2009-03-25  Bruno Haible  <bruno@clisp.org>
18025
18026         Fix a problem with --enable-relocatable on Solaris 7.
18027         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
18028         since 2008-02-24.
18029
18030 2009-03-25  Eric Blake  <ebb9@byu.net>
18031
18032         test-sockets: avoid gcc warning
18033         * tests/test-sockets.c (main): Silence compiler warning.
18034
18035 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18036
18037         New modules nproc, pthread, contributed by Glen Lenker.
18038
18039         * MODULES.html.sh: Add pthread, nproc.
18040         * lib/nproc.c: New file.
18041         * lib/nproc.h: New file.
18042         * lib/pthread.in.h: New file.
18043         * m4/pthread.m4: New file.
18044         * modules/nproc: New file.
18045         * modules/pthread: New file.
18046
18047 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18048
18049         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
18050         New variable.
18051
18052 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
18053
18054         filevercmp: handle simple~ and numbered.~3~ backup suffixes
18055         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
18056         * tests/test-filevercmp.c: Add tests for backup suffixes.
18057
18058 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18059
18060         * modules/stdlib (Depends-on): Add stdint, needed when defining
18061         struct random_data on, for example, HP-UX 10.20.  Reported by
18062         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18063
18064 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18065
18066         * lib/readline.c (readline): Call fflush on stdout after printing
18067         prompt.
18068
18069 2009-03-20  Bruno Haible  <bruno@clisp.org>
18070
18071         Remove dependency from 'close' module to -lws2_32 on native Windows.
18072         * lib/close-hook.h: New file.
18073         * lib/close-hook.c: New file.
18074         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
18075         w32sock.h.
18076         (_gl_close_fd_maybe_socket): Remove function.
18077         (rpl_close): Invoke execute_all_close_hooks instead of
18078         _gl_close_fd_maybe_socket.
18079         * lib/sockets.c: Include close-hook.h, w32sock.h.
18080         (close_fd_maybe_socket): New function, essentially from lib/close.c.
18081         (close_sockets_hook): New variable.
18082         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
18083         (gl_sockets_cleanup): Unregister it.
18084         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
18085         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
18086         * modules/close-hook: New file.
18087         * modules/close (Files): Remove lib/w32sock.h.
18088         (Depends-on): Add close-hook.
18089         (Link): Remove section.
18090         * modules/sockets (Files): Add lib/w32sock.h.
18091         (Depends-on): Add close-hook.
18092         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
18093         invocation.
18094         * NEWS: Mention that LIB_CLOSE is gone.
18095
18096 2009-03-23  Eric Blake  <ebb9@byu.net>
18097
18098         signal-tests: test previous patch
18099         * tests/test-signal.c: New file.
18100         * modules/signal-tests: Likewise.
18101
18102         signal.h: always support 'volatile sig_atomic_t'
18103         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
18104         (gl_SIGNAL_H_DEFAULTS): Add a default.
18105         * modules/signal (Makefile.am): Substitute if needed.
18106         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
18107         users can blindly add volatile.
18108         * doc/posix-headers/signal.texi (signal.h): Document it.
18109         Reported by Matthew Woehlke.
18110
18111 2009-03-23  Jim Meyering  <meyering@redhat.com>
18112
18113         pathmax: PATH_MAX: use pathconf only when available
18114         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
18115         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
18116         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
18117         This avoids a link failure in a PSP cross-compilation environment
18118         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
18119
18120         * lib/vasnprintf.c (divide): Fix typo in comment.
18121
18122 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18123
18124         * gnulib-tool (func_filter_filelist): Fix comment.
18125
18126 2009-03-20  Bruno Haible  <bruno@clisp.org>
18127
18128         Make sockets.h self-contained.
18129         * lib/sockets.c: Include sockets.h first.
18130         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
18131
18132 2009-03-19  Eric Blake  <ebb9@byu.net>
18133
18134         doc: mention more functions added in cygwin 1.7.0
18135         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
18136         addition.
18137         * doc/posix-functions/log2f.texi: Likewise.
18138
18139 2009-03-19  Jim Meyering  <meyering@redhat.com>
18140
18141         fsusage: avoid syntax error due to statement-before-declaration
18142         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
18143         after all declarations.  Reported by Matthew Woehlke in
18144         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
18145
18146 2009-03-18  Eric Blake  <ebb9@byu.net>
18147
18148         build-aux/compile: sync from automake
18149         * build-aux/compile: New file, from automake.
18150         * config/srclist.txt: Mention build-aux/compile.
18151
18152 2009-03-17  Bruno Haible  <bruno@clisp.org>
18153
18154         * lib/git-merge-changelog.c: Fix typo in comment.
18155         Reported by Reuben Thomas <rrt@sc3d.org>.
18156
18157 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
18158
18159         * m4/regex.m4: update and improve help for
18160         --without-included-regex.
18161
18162 2009-03-17  Simon Josefsson  <simon@josefsson.org>
18163
18164         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
18165         failure on missing include files.
18166
18167 2009-03-17  Eric Blake  <ebb9@byu.net>
18168
18169         doc: mention more functions added in cygwin 1.7.0
18170         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
18171         addition.
18172         * doc/posix-functions/fwscanf.texi: Likewise.
18173         * doc/posix-functions/swprintf.texi: Likewise.
18174         * doc/posix-functions/swscanf.texi: Likewise.
18175         * doc/posix-functions/vfwprintf.texi: Likewise.
18176         * doc/posix-functions/vfwscanf.texi: Likewise.
18177         * doc/posix-functions/vswprintf.texi: Likewise.
18178         * doc/posix-functions/vswscanf.texi: Likewise.
18179         * doc/posix-functions/vwprintf.texi: Likewise.
18180         * doc/posix-functions/vwscanf.texi: Likewise.
18181         * doc/posix-functions/wcscasecmp.texi: Likewise.
18182         * doc/posix-functions/wcsdup.texi: Likewise.
18183         * doc/posix-functions/wcsftime.texi: Likewise.
18184         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18185         * doc/posix-functions/wprintf.texi: Likewise.
18186         * doc/posix-functions/wscanf.texi: Likewise.
18187         * doc/glibc-functions/gethostbyname2.texi: Likewise.
18188
18189 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18190
18191         maint.mk: really add $(AM_MAKEFLAGS)
18192         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
18193         was inadvertently omitted in the last commit.
18194         Spotted by Bruno Haible.
18195
18196         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
18197         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
18198         $(AM_MAKEFLAGS)' rather than plain `make'.
18199
18200         gnulib-tool: execute $MAKE not make
18201         * gnulib-tool: Default $MAKE to 'make'.
18202         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
18203         than make.  Initialize $MAKE in the do-autobuild script.
18204
18205         gnulib-tool: use $MAKE not make in generated files
18206         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
18207         make, in generated files.  Initialize $MAKE in the do-autobuild
18208         script.
18209
18210         * top/GNUmakefile (_have-git-version-gen): Fix typo.
18211
18212         GNUmakefile: disable parallelism only for multiple, recursive targets
18213         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
18214         additions in the Makefile.
18215         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
18216         by Automake.
18217         (.NOTPARALLEL): Only disable parallel builds if multiple targets
18218         are listed on the command line and at least one of them is
18219         listed in $(ALL_RECURSIVE_TARGETS).
18220
18221 2009-03-14  Bruno Haible  <bruno@clisp.org>
18222
18223         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
18224         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
18225         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
18226         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
18227         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
18228         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
18229         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
18230         unistr/u8-uctomb.
18231         * modules/unistr/u8-strchr (Depends-on): Likewise.
18232         * modules/unistr/u8-strrchr (Depends-on): Likewise.
18233         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
18234         unistr/u16-uctomb.
18235         * modules/unistr/u16-strchr (Depends-on): Likewise.
18236         * modules/unistr/u16-strrchr (Depends-on): Likewise.
18237
18238 2009-03-12  Bruno Haible  <bruno@clisp.org>
18239
18240         Work around select() bug on Interix 3.5.
18241         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
18242         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
18243         * m4/select.m4: New file.
18244         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
18245         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
18246         * modules/select (Files): Add m4/select.m4.
18247         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
18248         * modules/nanosleep (Depends-on): Add select.
18249         * modules/poll (Depends-on): Likewise.
18250         * doc/posix-functions/select.texi: Mention the Interix bug.
18251         Reported by Markus Duft <mduft@gentoo.org>.
18252
18253         * lib/select.c: Renamed from lib/winsock-select.c.
18254         * modules/select (Files): Add lib/select.c, remove
18255         lib/winsock-select.c.
18256         (configure.ac): Update.
18257
18258 2009-03-12  Jim Meyering  <meyering@redhat.com>
18259
18260         avoid gcc warnings about unused macro definitions
18261         * lib/readtokens.c (STREQ): Remove unused definition.
18262         * lib/xmalloc.c (SIZE_MAX): Likewise.
18263         * lib/openat-die.c (N_): Likewise.
18264         * lib/mountlist.c (SIZE_MAX): Remove definition.
18265         Instead, include <stdint.h>.
18266         * lib/readutmp.c: Likewise.
18267         * modules/readutmp (Depends-on): Add stdint.
18268         * modules/mountlist (Depends-on): Add stdint.
18269         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
18270
18271 2009-03-10  Bruno Haible  <bruno@clisp.org>
18272
18273         Tests for module 'mbmemcasecoll'.
18274         * modules/mbmemcasecoll-tests: New file.
18275         * tests/test-mbmemcasecoll1.sh: New file.
18276         * tests/test-mbmemcasecoll2.sh: New file.
18277         * tests/test-mbmemcasecoll3.sh: New file.
18278         * tests/test-mbmemcasecoll.c: New file.
18279
18280         New module 'mbmemcasecoll'.
18281         * lib/mbmemcasecoll.h: New file.
18282         * lib/mbmemcasecoll.c: New file.
18283         * modules/mbmemcasecoll: New file.
18284
18285         * tests/test-mbmemcasecmp.h: New file, extracted from
18286         tests/test-mbmemcasecmp.c.
18287         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
18288         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
18289         (main): Update.
18290         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
18291
18292 2009-03-09  Bruno Haible  <bruno@clisp.org>
18293
18294         Tests for module 'mbmemcasecmp'.
18295         * modules/mbmemcasecmp-tests: New file.
18296         * tests/test-mbmemcasecmp1.sh: New file.
18297         * tests/test-mbmemcasecmp2.sh: New file.
18298         * tests/test-mbmemcasecmp3.sh: New file.
18299         * tests/test-mbmemcasecmp.c: New file.
18300
18301         New module 'mbmemcasecmp'.
18302         * lib/mbmemcasecmp.h: New file.
18303         * lib/mbmemcasecmp.c: New file.
18304         * modules/mbmemcasecmp: New file.
18305
18306 2009-03-09  Bruno Haible  <bruno@clisp.org>
18307
18308         Tests for module 'unicase/ulc-casecoll'.
18309         * modules/unicase/ulc-casecoll-tests: New file.
18310         * tests/unicase/test-ulc-casecoll1.sh: New file.
18311         * tests/unicase/test-ulc-casecoll2.sh: New file.
18312         * tests/unicase/test-ulc-casecoll.c: New file.
18313
18314         New module 'unicase/ulc-casecoll'.
18315         * lib/unicase.h (ulc_casecoll): New declaration.
18316         * lib/unicase/ulc-casecoll.c: New file.
18317         * modules/unicase/ulc-casecoll: New file.
18318
18319         New module 'unicase/ulc-casexfrm'.
18320         * lib/unicase.h (ulc_casexfrm): New declaration.
18321         * lib/unicase/ulc-casexfrm.c: New file.
18322         * modules/unicase/ulc-casexfrm: New file.
18323
18324 2009-03-09  Bruno Haible  <bruno@clisp.org>
18325
18326         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
18327         invocations.
18328
18329         * m4/mbscasecmp.m4: Remove file.
18330         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
18331         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
18332
18333         * m4/mbscasestr.m4: Remove file.
18334         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
18335         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
18336
18337         * m4/mbschr.m4: Remove file.
18338         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
18339         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
18340
18341         * m4/mbscspn.m4: Remove file.
18342         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
18343         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
18344
18345         * m4/mbslen.m4: Remove file.
18346         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
18347         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
18348
18349         * m4/mbsncasecmp.m4: Remove file.
18350         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
18351         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
18352
18353         * m4/mbsnlen.m4: Remove file.
18354         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
18355         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
18356
18357         * m4/mbspbrk.m4: Remove file.
18358         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
18359         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
18360
18361         * m4/mbspcasecmp.m4: Remove file.
18362         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
18363         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
18364
18365         * m4/mbsrchr.m4: Remove file.
18366         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
18367         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
18368
18369         * m4/mbssep.m4: Remove file.
18370         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
18371         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
18372
18373         * m4/mbsspn.m4: Remove file.
18374         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
18375         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
18376
18377         * m4/mbsstr.m4: Remove file.
18378         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
18379         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
18380
18381         * m4/mbstok_r.m4: Remove file.
18382         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
18383         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
18384
18385         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
18386
18387         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
18388         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
18389
18390         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
18391
18392 2009-03-08  Bruno Haible  <bruno@clisp.org>
18393
18394         Tests for module 'unicase/ulc-casecmp'.
18395         * modules/unicase/ulc-casecmp-tests: New file.
18396         * tests/unicase/test-ulc-casecmp1.sh: New file.
18397         * tests/unicase/test-ulc-casecmp2.sh: New file.
18398         * tests/unicase/test-ulc-casecmp.c: New file.
18399
18400         New module 'unicase/ulc-casecmp'.
18401         * lib/unicase.h (ulc_casecmp): New declaration.
18402         * lib/unicase/ulc-casecmp.c: New file.
18403         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
18404         'const SRC_UNIT *'.
18405         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
18406         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
18407         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
18408         * modules/unicase/ulc-casecmp: New file.
18409
18410         Tests for module 'unicase/u32-is-cased'.
18411         * modules/unicase/u32-is-cased-tests: New file.
18412         * tests/unicase/test-u32-is-cased.c: New file.
18413
18414         Tests for module 'unicase/u16-is-cased'.
18415         * modules/unicase/u16-is-cased-tests: New file.
18416         * tests/unicase/test-u16-is-cased.c: New file.
18417
18418         Tests for module 'unicase/u8-is-cased'.
18419         * modules/unicase/u8-is-cased-tests: New file.
18420         * tests/unicase/test-u8-is-cased.c: New file.
18421         * tests/unicase/test-is-cased.h: New file.
18422
18423         New module 'unicase/u32-is-cased'.
18424         * lib/unicase/u32-is-cased.c: New file.
18425         * modules/unicase/u32-is-cased: New file.
18426
18427         New module 'unicase/u16-is-cased'.
18428         * lib/unicase/u16-is-cased.c: New file.
18429         * modules/unicase/u16-is-cased: New file.
18430
18431         New module 'unicase/u8-is-cased'.
18432         * lib/unicase/u8-is-cased.c: New file.
18433         * lib/unicase/u-is-cased.h: New file.
18434         * modules/unicase/u8-is-cased: New file.
18435
18436         Tests for module 'unicase/u32-is-casefolded'.
18437         * modules/unicase/u32-is-casefolded-tests: New file.
18438         * tests/unicase/test-u32-is-casefolded.c: New file.
18439
18440         Tests for module 'unicase/u16-is-casefolded'.
18441         * modules/unicase/u16-is-casefolded-tests: New file.
18442         * tests/unicase/test-u16-is-casefolded.c: New file.
18443
18444         Tests for module 'unicase/u8-is-casefolded'.
18445         * modules/unicase/u8-is-casefolded-tests: New file.
18446         * tests/unicase/test-u8-is-casefolded.c: New file.
18447         * tests/unicase/test-is-casefolded.h: New file.
18448
18449         New module 'unicase/u32-is-casefolded'.
18450         * lib/unicase/u32-is-casefolded.c: New file.
18451         * modules/unicase/u32-is-casefolded: New file.
18452
18453         New module 'unicase/u16-is-casefolded'.
18454         * lib/unicase/u16-is-casefolded.c: New file.
18455         * modules/unicase/u16-is-casefolded: New file.
18456
18457         New module 'unicase/u8-is-casefolded'.
18458         * lib/unicase/u8-is-casefolded.c: New file.
18459         * modules/unicase/u8-is-casefolded: New file.
18460
18461         Tests for module 'unicase/u32-is-titlecase'.
18462         * modules/unicase/u32-is-titlecase-tests: New file.
18463         * tests/unicase/test-u32-is-titlecase.c: New file.
18464
18465         Tests for module 'unicase/u16-is-titlecase'.
18466         * modules/unicase/u16-is-titlecase-tests: New file.
18467         * tests/unicase/test-u16-is-titlecase.c: New file.
18468
18469         Tests for module 'unicase/u8-is-titlecase'.
18470         * modules/unicase/u8-is-titlecase-tests: New file.
18471         * tests/unicase/test-u8-is-titlecase.c: New file.
18472         * tests/unicase/test-is-titlecase.h: New file.
18473
18474         New module 'unicase/u32-is-titlecase'.
18475         * lib/unicase/u32-is-titlecase.c: New file.
18476         * modules/unicase/u32-is-titlecase: New file.
18477
18478         New module 'unicase/u16-is-titlecase'.
18479         * lib/unicase/u16-is-titlecase.c: New file.
18480         * modules/unicase/u16-is-titlecase: New file.
18481
18482         New module 'unicase/u8-is-titlecase'.
18483         * lib/unicase/u8-is-titlecase.c: New file.
18484         * modules/unicase/u8-is-titlecase: New file.
18485
18486         Tests for module 'unicase/u32-is-lowercase'.
18487         * modules/unicase/u32-is-lowercase-tests: New file.
18488         * tests/unicase/test-u32-is-lowercase.c: New file.
18489
18490         Tests for module 'unicase/u16-is-lowercase'.
18491         * modules/unicase/u16-is-lowercase-tests: New file.
18492         * tests/unicase/test-u16-is-lowercase.c: New file.
18493
18494         Tests for module 'unicase/u8-is-lowercase'.
18495         * modules/unicase/u8-is-lowercase-tests: New file.
18496         * tests/unicase/test-u8-is-lowercase.c: New file.
18497         * tests/unicase/test-is-lowercase.h: New file.
18498
18499         New module 'unicase/u32-is-lowercase'.
18500         * lib/unicase/u32-is-lowercase.c: New file.
18501         * modules/unicase/u32-is-lowercase: New file.
18502
18503         New module 'unicase/u16-is-lowercase'.
18504         * lib/unicase/u16-is-lowercase.c: New file.
18505         * modules/unicase/u16-is-lowercase: New file.
18506
18507         New module 'unicase/u8-is-lowercase'.
18508         * lib/unicase/u8-is-lowercase.c: New file.
18509         * modules/unicase/u8-is-lowercase: New file.
18510
18511         Tests for module 'unicase/u32-is-uppercase'.
18512         * modules/unicase/u32-is-uppercase-tests: New file.
18513         * tests/unicase/test-u32-is-uppercase.c: New file.
18514
18515         Tests for module 'unicase/u16-is-uppercase'.
18516         * modules/unicase/u16-is-uppercase-tests: New file.
18517         * tests/unicase/test-u16-is-uppercase.c: New file.
18518
18519         Tests for module 'unicase/u8-is-uppercase'.
18520         * modules/unicase/u8-is-uppercase-tests: New file.
18521         * tests/unicase/test-u8-is-uppercase.c: New file.
18522         * tests/unicase/test-is-uppercase.h: New file.
18523
18524         New module 'unicase/u32-is-uppercase'.
18525         * lib/unicase/u32-is-uppercase.c: New file.
18526         * modules/unicase/u32-is-uppercase: New file.
18527
18528         New module 'unicase/u16-is-uppercase'.
18529         * lib/unicase/u16-is-uppercase.c: New file.
18530         * modules/unicase/u16-is-uppercase: New file.
18531
18532         New module 'unicase/u8-is-uppercase'.
18533         * lib/unicase/u8-is-uppercase.c: New file.
18534         * modules/unicase/u8-is-uppercase: New file.
18535
18536         New module 'unicase/u32-is-invariant'.
18537         * lib/unicase/u32-is-invariant.c: New file.
18538         * modules/unicase/u32-is-invariant: New file.
18539
18540         New module 'unicase/u16-is-invariant'.
18541         * lib/unicase/u16-is-invariant.c: New file.
18542         * modules/unicase/u16-is-invariant: New file.
18543
18544         New module 'unicase/u8-is-invariant'.
18545         * lib/unicase/u8-is-invariant.c: New file.
18546         * lib/unicase/invariant.h: New file.
18547         * lib/unicase/u-is-invariant.h: New file.
18548         * modules/unicase/u8-is-invariant: New file.
18549
18550         Tests for module 'unicase/u32-casecoll'.
18551         * modules/unicase/u32-casecoll-tests: New file.
18552         * tests/unicase/test-u32-casecoll.c: New file.
18553
18554         Tests for module 'unicase/u16-casecoll'.
18555         * modules/unicase/u16-casecoll-tests: New file.
18556         * tests/unicase/test-u16-casecoll.c: New file.
18557
18558         Tests for module 'unicase/u8-casecoll'.
18559         * modules/unicase/u8-casecoll-tests: New file.
18560         * tests/unicase/test-u8-casecoll.c: New file.
18561
18562         New module 'unicase/u32-casecoll'.
18563         * lib/unicase/u32-casecoll.c: New file.
18564         * modules/unicase/u32-casecoll: New file.
18565
18566         New module 'unicase/u16-casecoll'.
18567         * lib/unicase/u16-casecoll.c: New file.
18568         * modules/unicase/u16-casecoll: New file.
18569
18570         New module 'unicase/u8-casecoll'.
18571         * lib/unicase/u8-casecoll.c: New file.
18572         * lib/unicase/u-casecoll.h: New file.
18573         * modules/unicase/u8-casecoll: New file.
18574
18575         New module 'unicase/u32-casexfrm'.
18576         * lib/unicase/u32-casexfrm.c: New file.
18577         * modules/unicase/u32-casexfrm: New file.
18578
18579         New module 'unicase/u16-casexfrm'.
18580         * lib/unicase/u16-casexfrm.c: New file.
18581         * modules/unicase/u16-casexfrm: New file.
18582
18583         New module 'unicase/u8-casexfrm'.
18584         * lib/unicase/u8-casexfrm.c: New file.
18585         * lib/unicase/u-casexfrm.h: New file.
18586         * modules/unicase/u8-casexfrm: New file.
18587
18588         Tests for module 'unicase/u32-casecmp'.
18589         * modules/unicase/u32-casecmp-tests: New file.
18590         * tests/unicase/test-u32-casecmp.c: New file.
18591
18592         Tests for module 'unicase/u16-casecmp'.
18593         * modules/unicase/u16-casecmp-tests: New file.
18594         * tests/unicase/test-u16-casecmp.c: New file.
18595
18596         Tests for module 'unicase/u8-casecmp'.
18597         * modules/unicase/u8-casecmp-tests: New file.
18598         * tests/unicase/test-u8-casecmp.c: New file.
18599         * tests/unicase/test-casecmp.h: New file.
18600
18601         New module 'unicase/u32-casecmp'.
18602         * lib/unicase/u32-casecmp.c: New file.
18603         * modules/unicase/u32-casecmp: New file.
18604
18605         New module 'unicase/u16-casecmp'.
18606         * lib/unicase/u16-casecmp.c: New file.
18607         * modules/unicase/u16-casecmp: New file.
18608
18609         New module 'unicase/u8-casecmp'.
18610         * lib/unicase/u8-casecmp.c: New file.
18611         * lib/unicase/u-casecmp.h: New file.
18612         * modules/unicase/u8-casecmp: New file.
18613
18614         Tests for module 'unicase/u32-casefold'.
18615         * modules/unicase/u32-casefold-tests: New file.
18616         * tests/unicase/test-u32-casefold.c: New file.
18617
18618         Tests for module 'unicase/u16-casefold'.
18619         * modules/unicase/u16-casefold-tests: New file.
18620         * tests/unicase/test-u16-casefold.c: New file.
18621
18622         Tests for module 'unicase/u8-casefold'.
18623         * modules/unicase/u8-casefold-tests: New file.
18624         * tests/unicase/test-u8-casefold.c: New file.
18625
18626         New module 'unicase/u32-casefold'.
18627         * lib/unicase/u32-casefold.c: New file.
18628         * modules/unicase/u32-casefold: New file.
18629
18630         New module 'unicase/u16-casefold'.
18631         * lib/unicase/u16-casefold.c: New file.
18632         * modules/unicase/u16-casefold: New file.
18633
18634         New module 'unicase/u8-casefold'.
18635         * lib/unicase/u8-casefold.c: New file.
18636         * lib/unicase/u-casefold.h: New file.
18637         * modules/unicase/u8-casefold: New file.
18638
18639         New module 'unicase/tocasefold'.
18640         * lib/unicase/casefold.h: New file.
18641         * lib/unicase/tocasefold.c: New file.
18642         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18643         * modules/unicase/tocasefold: New file.
18644
18645         Tests for module 'unicase/u32-totitle'.
18646         * modules/unicase/u32-totitle-tests: New file.
18647         * tests/unicase/test-u32-totitle.c: New file.
18648
18649         Tests for module 'unicase/u16-totitle'.
18650         * modules/unicase/u16-totitle-tests: New file.
18651         * tests/unicase/test-u16-totitle.c: New file.
18652
18653         Tests for module 'unicase/u8-totitle'.
18654         * modules/unicase/u8-totitle-tests: New file.
18655         * tests/unicase/test-u8-totitle.c: New file.
18656
18657         New module 'unicase/u32-totitle'.
18658         * lib/unicase/u32-totitle.c: New file.
18659         * modules/unicase/u32-totitle: New file.
18660
18661         New module 'unicase/u16-totitle'.
18662         * lib/unicase/u16-totitle.c: New file.
18663         * modules/unicase/u16-totitle: New file.
18664
18665         New module 'unicase/u8-totitle'.
18666         * lib/unicase/u8-totitle.c: New file.
18667         * lib/unicase/u-totitle.h: New file.
18668         * modules/unicase/u8-totitle: New file.
18669
18670         Tests for module 'unicase/u32-tolower'.
18671         * modules/unicase/u32-tolower-tests: New file.
18672         * tests/unicase/test-u32-tolower.c: New file.
18673
18674         Tests for module 'unicase/u16-tolower'.
18675         * modules/unicase/u16-tolower-tests: New file.
18676         * tests/unicase/test-u16-tolower.c: New file.
18677
18678         Tests for module 'unicase/u8-tolower'.
18679         * modules/unicase/u8-tolower-tests: New file.
18680         * tests/unicase/test-u8-tolower.c: New file.
18681
18682         New module 'unicase/u32-tolower'.
18683         * lib/unicase/u32-tolower.c: New file.
18684         * modules/unicase/u32-tolower: New file.
18685
18686         New module 'unicase/u16-tolower'.
18687         * lib/unicase/u16-tolower.c: New file.
18688         * modules/unicase/u16-tolower: New file.
18689
18690         New module 'unicase/u8-tolower'.
18691         * lib/unicase/u8-tolower.c: New file.
18692         * modules/unicase/u8-tolower: New file.
18693
18694         Tests for module 'unicase/u32-toupper'.
18695         * modules/unicase/u32-toupper-tests: New file.
18696         * tests/unicase/test-u32-toupper.c: New file.
18697
18698         Tests for module 'unicase/u16-toupper'.
18699         * modules/unicase/u16-toupper-tests: New file.
18700         * tests/unicase/test-u16-toupper.c: New file.
18701
18702         Tests for module 'unicase/u8-toupper'.
18703         * modules/unicase/u8-toupper-tests: New file.
18704         * tests/unicase/test-u8-toupper.c: New file.
18705
18706         New module 'unicase/u32-toupper'.
18707         * lib/unicase/u32-toupper.c: New file.
18708         * modules/unicase/u32-toupper: New file.
18709
18710         New module 'unicase/u16-toupper'.
18711         * lib/unicase/u16-toupper.c: New file.
18712         * modules/unicase/u16-toupper: New file.
18713
18714         New module 'unicase/u8-toupper'.
18715         * lib/unicase/u8-toupper.c: New file.
18716         * modules/unicase/u8-toupper: New file.
18717
18718         New module 'unicase/u32-casemap'.
18719         * lib/unicase/u32-casemap.c: New file.
18720         * modules/unicase/u32-casemap: New file.
18721
18722         New module 'unicase/u16-casemap'.
18723         * lib/unicase/u16-casemap.c: New file.
18724         * modules/unicase/u16-casemap: New file.
18725
18726         New module 'unicase/u8-casemap'.
18727         * lib/unicase/unicasemap.h: New file.
18728         * lib/unicase/u8-casemap.c: New file.
18729         * lib/unicase/u-casemap.h: New file.
18730         * modules/unicase/u8-casemap: New file.
18731
18732         New module 'unicase/special-casing'.
18733         * lib/unicase/special-casing.h: New file.
18734         * lib/unicase/special-casing.c: New file.
18735         * lib/unicase/special-casing-table.gperf: New file, generated by
18736         gen-uni-tables.c.
18737         * modules/unicase/special-casing: New file.
18738
18739         Tests for module 'unicase/locale-language'.
18740         * modules/unicase/locale-language-tests: New file.
18741         * tests/unicase/test-locale-language.sh: New file.
18742         * tests/unicase/test-locale-language.c: New file.
18743
18744         New module 'unicase/locale-language'.
18745         * lib/unicase/locale-language.c: New file.
18746         * lib/unicase/locale-languages.gperf: New file.
18747         * modules/unicase/locale-language: New file.
18748
18749         Generate more tables for case conversion and case folding.
18750         * lib/gen-uni-tables.c (SCC_*): New enum items.
18751         (struct special_casing_rule): New type.
18752         (casing_rules, num_casing_rules, allocated_casing_rules): New
18753         variables.
18754         (add_casing_rule, fill_casing_rules): New functions.
18755         (struct casefold_rule): New type.
18756         (casefolding_rules, num_casefolding_rules,
18757         allocated_casefolding_rules): New variables.
18758         (fill_casefolding_rules): New function.
18759         (unicode_casefold): New variable.
18760         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
18761         sort_casing_rules, output_casing_rules): New functions.
18762         (main): Accept to more arguments: SpecialCasing.txt and
18763         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
18764         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
18765         Output mapping for casefolding.
18766
18767         * lib/unicase.h: Include stdbool.h, uninorm.h.
18768         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
18769         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
18770         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
18771         arguments.
18772         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
18773         resultp arguments.
18774         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
18775         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
18776         resultp arguments.
18777         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
18778         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
18779         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
18780         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
18781         declarations.
18782         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
18783
18784 2009-03-08  Bruno Haible  <bruno@clisp.org>
18785
18786         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18787         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
18788         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
18789         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18790
18791 2009-03-07  Bruno Haible  <bruno@clisp.org>
18792
18793         Adjust u*_normcmp, u*_normcoll API.
18794         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18795         u16_normcoll, u32_normcoll): Change failure conventions.
18796         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
18797         errno and return -1.
18798         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18799
18800 2009-03-07  Bruno Haible  <bruno@clisp.org>
18801
18802         Tests for module 'uninorm/u32-normcoll'.
18803         * modules/uninorm/u32-normcoll-tests: New file.
18804         * tests/uninorm/test-u32-normcoll.c: New file.
18805
18806         Tests for module 'uninorm/u16-normcoll'.
18807         * modules/uninorm/u16-normcoll-tests: New file.
18808         * tests/uninorm/test-u16-normcoll.c: New file.
18809
18810         Tests for module 'uninorm/u8-normcoll'.
18811         * modules/uninorm/u8-normcoll-tests: New file.
18812         * tests/uninorm/test-u8-normcoll.c: New file.
18813
18814 2009-03-07  Bruno Haible  <bruno@clisp.org>
18815
18816         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
18817         tests/uninorm/test-u32-normcmp.c.
18818         * tests/uninorm/test-u32-normcmp.c: Include it.
18819         (test_nonascii): New function, extracted from main. Add some more
18820         tests.
18821         (main): Invoke test_ascii and test_nonascii.
18822         * modules/uninorm/u32-normcmp-tests (Files): Add
18823         tests/uninorm/test-u32-normcmp.h.
18824         (Depends-on): Remove uninorm/u32-normcmp.
18825
18826         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
18827         tests/uninorm/test-u16-normcmp.c.
18828         * tests/uninorm/test-u16-normcmp.c: Include it.
18829         (test_nonascii): New function, extracted from main. Add some more
18830         tests.
18831         (main): Invoke test_ascii and test_nonascii.
18832         * modules/uninorm/u16-normcmp-tests (Files): Add
18833         tests/uninorm/test-u16-normcmp.h.
18834         (Depends-on): Remove uninorm/u16-normcmp.
18835
18836         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
18837         tests/uninorm/test-u8-normcmp.c.
18838         * tests/uninorm/test-u8-normcmp.c: Include it.
18839         (test_nonascii): New function, extracted from main. Add some more
18840         tests.
18841         (main): Invoke test_ascii and test_nonascii.
18842         * modules/uninorm/u8-normcmp-tests (Files): Add
18843         tests/uninorm/test-u8-normcmp.h.
18844         (Depends-on): Remove uninorm/u8-normcmp.
18845
18846 2009-03-07  Bruno Haible  <bruno@clisp.org>
18847
18848         New module 'uninorm/u32-normcoll'.
18849         * lib/uninorm/u32-normcoll.c: New file.
18850         * modules/uninorm/u32-normcoll: New file.
18851
18852         New module 'uninorm/u16-normcoll'.
18853         * lib/uninorm/u16-normcoll.c: New file.
18854         * modules/uninorm/u16-normcoll: New file.
18855
18856         New module 'uninorm/u8-normcoll'.
18857         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
18858         declarations.
18859         * lib/uninorm/u8-normcoll.c: New file.
18860         * lib/uninorm/u-normcoll.h: New file.
18861         * modules/uninorm/u8-normcoll: New file.
18862
18863         New module 'uninorm/u32-normxfrm'.
18864         * lib/uninorm/u32-normxfrm.c: New file.
18865         * modules/uninorm/u32-normxfrm: New file.
18866
18867         New module 'uninorm/u16-normxfrm'.
18868         * lib/uninorm/u16-normxfrm.c: New file.
18869         * modules/uninorm/u16-normxfrm: New file.
18870
18871         New module 'uninorm/u8-normxfrm'.
18872         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
18873         declarations.
18874         * lib/uninorm/u8-normxfrm.c: New file.
18875         * lib/uninorm/u-normxfrm.h: New file.
18876         * modules/uninorm/u8-normxfrm: New file.
18877
18878 2009-03-07  Bruno Haible  <bruno@clisp.org>
18879
18880         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
18881         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
18882         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
18883
18884 2009-03-07  Bruno Haible  <bruno@clisp.org>
18885
18886         New module 'memxfrm'.
18887         * lib/memxfrm.h: New file.
18888         * lib/memxfrm.c: New file.
18889         * modules/memxfrm: New file.
18890
18891 2009-03-07  Bruno Haible  <bruno@clisp.org>
18892
18893         New module 'memcmp2'.
18894         * lib/memcmp2.h: New file.
18895         * lib/memcmp2.c: New file.
18896         * modules/memcmp2: New file.
18897
18898 2009-03-07  Bruno Haible  <bruno@clisp.org>
18899
18900         Tests for module 'uninorm/decomposing-form'.
18901         * modules/uninorm/decomposing-form-tests: New file.
18902         * tests/uninorm/test-decomposing-form.c: New file.
18903
18904         New module 'uninorm/decomposing-form'.
18905         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
18906         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
18907         Add 'decomposing_variant' field.
18908         * lib/uninorm/decomposing-form.c: New file.
18909         * lib/uninorm/nfc.c (uninorm_nfc): Update.
18910         * lib/uninorm/nfd.c (uninorm_nfd): Update.
18911         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
18912         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
18913         * modules/uninorm/decomposing-form: New file.
18914         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
18915         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
18916
18917 2009-03-07  Bruno Haible  <bruno@clisp.org>
18918
18919         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
18920         strings.
18921
18922 2009-03-06  Bruno Haible  <bruno@clisp.org>
18923
18924         Tests for module 'uninorm/u32-normcmp'.
18925         * tests/uninorm/test-u32-normcmp.c: New file.
18926         * modules/uninorm/u32-normcmp-tests: New file.
18927
18928         Tests for module 'uninorm/u16-normcmp'.
18929         * tests/uninorm/test-u16-normcmp.c: New file.
18930         * modules/uninorm/u16-normcmp-tests: New file.
18931
18932         Tests for module 'uninorm/u8-normcmp'.
18933         * tests/uninorm/test-u8-normcmp.c: New file.
18934         * modules/uninorm/u8-normcmp-tests: New file.
18935
18936         New module 'uninorm/u32-normcmp'.
18937         * lib/uninorm/u32-normcmp.c: New file.
18938         * modules/uninorm/u32-normcmp: New file.
18939
18940         New module 'uninorm/u16-normcmp'.
18941         * lib/uninorm/u16-normcmp.c: New file.
18942         * modules/uninorm/u16-normcmp: New file.
18943
18944         New module 'uninorm/u8-normcmp'.
18945         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
18946         declarations.
18947         * lib/uninorm/u8-normcmp.c: New file.
18948         * lib/uninorm/u-normcmp.h: New file.
18949         * modules/uninorm/u8-normcmp: New file.
18950
18951 2009-03-06  Bruno Haible  <bruno@clisp.org>
18952
18953         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
18954         Reported by Eric Blake.
18955
18956 2009-03-06  Eric Blake  <ebb9@byu.net>
18957             Bruno Haible  <bruno@clisp.org>
18958
18959         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
18960         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
18961         condition.
18962         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18963         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
18964         condition.
18965         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18966
18967 2009-03-06  Eric Blake  <ebb9@byu.net>
18968
18969         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
18970         to avoid compiler warnings.
18971         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
18972
18973 2009-03-05  Bruno Haible  <bruno@clisp.org>
18974
18975         * tests/test-ftell.c (main): Disable test beyond end of file on
18976         FreeMiNT.
18977         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18978
18979 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
18980
18981         * lib/filevercmp.c: Move hidden files up in ordering.
18982         * tests/test-filevercmp.c: Add tests for hidden files.
18983
18984 2009-03-04  Bruno Haible  <bruno@clisp.org>
18985
18986         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
18987         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
18988         AM_CFLAGS.
18989         Reported by Simon Josefsson.
18990
18991 2009-03-03  Bruno Haible  <bruno@clisp.org>
18992
18993         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
18994         Reported by Simon Josefsson.
18995
18996         * doc/ld-version-script.texi: Update node reference.
18997
18998 2009-03-03  Bruno Haible  <bruno@clisp.org>
18999
19000         * modules/visibility (License): Change to 'unlimited'.
19001         Suggested by Simon Josefsson.
19002
19003 2009-03-03  Jim Meyering  <meyering@redhat.com>
19004
19005         unlinkdir: cannot_unlink_dir may modify process state
19006         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
19007         it's neither thread-safe nor appropriate for use in a library.
19008
19009 2009-03-03  Eric Blake  <ebb9@byu.net>
19010
19011         test-closein: silence test under Darwin
19012         * tests/test-closein.sh: Ignore stderr from cat, since we don't
19013         care if it dies from EPIPE or EBADF.
19014
19015 2009-03-03  Bruno Haible  <bruno@clisp.org>
19016
19017         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
19018         earlier.
19019         * doc/visibility.texi: Fix @node and @section.
19020
19021 2009-03-03  Simon Josefsson  <simon@josefsson.org>
19022
19023         * doc/gnulib.texi: Link to sections for ld version script and
19024         visibility.
19025         * doc/visibility.texi: Add @node and @section.
19026         * modules/ld-version-script: New module.
19027         * m4/ld-version-script.m4: New file.
19028         * doc/ld-version-script.texi: New file.
19029
19030 2009-03-02  David Lutterkort  <lutter@redhat.com>
19031
19032         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
19033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19034
19035 2009-03-02  Bruno Haible  <bruno@clisp.org>
19036
19037         * doc/visibility.texi: Mention libtool's -export-symbols option.
19038
19039 2009-03-02  Jim Meyering  <meyering@redhat.com>
19040
19041         announce-gen: new option: --no-print-checksums
19042         * build-aux/announce-gen (usage): Describe it.
19043         (print_checksums): Print a newline here, not in the [*] footnote.
19044         (main): Honor it.
19045
19046 2009-03-01  Bruno Haible  <bruno@clisp.org>
19047
19048         Use socklen_t in the native Windows replacements prototypes.
19049         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
19050         instead of 'int'.
19051         * lib/getsockopt.c (rpl_getsockopt): Likewise.
19052         * lib/setsockopt.c (rpl_setsockopt): Likewise.
19053         * modules/getsockopt (Depends-on): Add socklen.
19054         * modules/setsockopt (Depends-on): Add socklen.
19055
19056 2009-03-01  Bruno Haible  <bruno@clisp.org>
19057
19058         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
19059         least 4.2.
19060
19061 2009-03-01  Eric Blake  <ebb9@byu.net>
19062             Bruno Haible  <bruno@clisp.org>
19063
19064         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
19065         error messages.
19066         * lib/wait-process.c (wait_subprocess): Omit error message about
19067         deadly signal sent to the child of termsigp != NULL.
19068
19069 2009-03-01  Eric Blake  <ebb9@byu.net>
19070
19071         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
19072
19073 2009-03-01  Bruno Haible  <bruno@clisp.org>
19074
19075         Avoid a gcc warning.
19076         * tests/test-sched.c (b): Make global.
19077         Reported by Eric Blake.
19078
19079 2009-01-19  Martin Lambers  <marlam@marlam.de>
19080
19081         Provide POSIX semantics for socket timeout options on W32.
19082         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
19083         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
19084         * modules/setsockopt: Depend on sys_time module for struct timeval.
19085         * modules/getsockopt: Depend on sys_time module for struct timeval.
19086
19087 2009-03-01  Simon Josefsson  <simon@josefsson.org>
19088
19089         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
19090         __USE_GNU, for consistency with netdb.in.h.
19091         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19092
19093 2009-03-01  Bruno Haible  <bruno@clisp.org>
19094
19095         More support for FreeMiNT.
19096         * lib/fseeko.c (rpl_fseeko): Complete last commit.
19097         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19098
19099 2009-03-01  Bruno Haible  <bruno@clisp.org>
19100
19101         More support for FreeMiNT.
19102         * lib/fpurge.c (fpurge): Correct last commit.
19103         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19104
19105 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19106
19107         Fix unportable awk script in vc-list-files.
19108         * build-aux/vc-list-files: In the replacement awk script, use
19109         substr with a second argument of 1, not zero.
19110         Report by Simon Josefsson.
19111
19112 2009-02-28  Bruno Haible  <bruno@clisp.org>
19113
19114         More support for FreeMiNT.
19115         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
19116         to FreeMiNT today.
19117         * lib/fwriting.c (fwriting): Likewise.
19118         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
19119
19120 2009-02-28  Bruno Haible  <bruno@clisp.org>
19121
19122         * tests/test-freadseek.c (main): Disable test beyond end of file on
19123         FreeMiNT.
19124         * tests/test-ftello.c (main): Likewise.
19125         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19126
19127 2009-02-28  Bruno Haible  <bruno@clisp.org>
19128
19129         Add tentative support for FreeMiNT.
19130         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
19131         * lib/fpurge.c (fpurge): Likewise.
19132         * lib/freadable.c (freadable): Likewise.
19133         * lib/freading.c (freading): Likewise.
19134         * lib/freadptr.c (freadptr): Likewise.
19135         * lib/freadseek.c (freadptrinc): Likewise.
19136         * lib/fseeko.c (rpl_fseeko): Likewise.
19137         * lib/fseterr.c (fseterr): Likewise.
19138         * lib/fwritable.c (fwritable): Likewise.
19139         * lib/fwriting.c (fwriting): Likewise.
19140         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
19141         Hourihane.
19142         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19143
19144 2009-02-28  Bruno Haible  <bruno@clisp.org>
19145
19146         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
19147         SIGCHLD.
19148         Reported by Jim Meyering.
19149
19150 2009-02-28  Bruno Haible  <bruno@clisp.org>
19151
19152         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
19153         Mention the results of these tests on various platforms.
19154         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
19155         order.
19156         * doc/posix-functions/printf.texi: Likewise.
19157         * doc/posix-functions/snprintf.texi: Likewise.
19158         * doc/posix-functions/sprintf.texi: Likewise.
19159         * doc/posix-functions/vfprintf.texi: Likewise.
19160         * doc/posix-functions/vprintf.texi: Likewise.
19161         * doc/posix-functions/vsnprintf.texi: Likewise.
19162         * doc/posix-functions/vsprintf.texi: Likewise.
19163         * doc/glibc-functions/obstack_printf.texi: Likewise.
19164         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19165
19166 2009-02-28  Bruno Haible  <bruno@clisp.org>
19167
19168         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
19169         Reported by Loïc Minier <lool@dooz.org>.
19170
19171 2009-02-27  Bruno Haible  <bruno@clisp.org>
19172
19173         * gnulib-tool (func_import): Make the sed expression used to create the
19174         sed script for updating the .gitignore file POSIX compliant.
19175         Reported by Eric Blake.
19176
19177 2009-02-27  Bruno Haible  <bruno@clisp.org>
19178
19179         * gnulib-tool (sed): Don't alias as "sed --posix".
19180         Reported by Eric Blake.
19181
19182 2009-02-27  Bruno Haible  <bruno@clisp.org>
19183
19184         Avoid test link errors.
19185         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
19186         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
19187         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
19188         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
19189         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19190
19191 2009-02-27  Bruno Haible  <bruno@clisp.org>
19192
19193         Avoid spurious "(cached)" in configure output.
19194         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
19195         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
19196         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19197         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19198         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19199         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19200         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19201         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19202         Reported by Eric Blake.
19203
19204 2009-02-27  Eric Blake  <ebb9@byu.net>
19205
19206         printf: fix regression in previous patch
19207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
19208
19209 2009-02-27  Bruno Haible  <bruno@clisp.org>
19210
19211         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
19212         value.
19213         * lib/stdint.in.h: Likewise.
19214         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
19215
19216 2009-02-27  Eric Blake  <ebb9@byu.net>
19217
19218         doc: mention more functions added in cygwin 1.7.0
19219         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
19220         addition.
19221         * doc/posix-functions/open_wmemstream.texi: Likewise.
19222         * doc/posix-functions/wcsnlen.texi: Likewise.
19223         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19224         * doc/posix-functions/wcstod.texi: Likewise.
19225         * doc/posix-functions/wcstof.texi: Likewise.
19226         * doc/posix-functions/wcstoimax.texi: Likewise.
19227         * doc/posix-functions/wcstok.texi: Likewise.
19228         * doc/posix-functions/wcstoumax.texi: Likewise.
19229
19230         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
19231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
19232         * doc/posix-functions/fprintf.texi: Update.
19233         * doc/posix-functions/printf.texi: Update.
19234         * doc/posix-functions/snprintf.texi: Update.
19235         * doc/posix-functions/sprintf.texi: Update.
19236         * doc/posix-functions/vfprintf.texi: Update.
19237         * doc/posix-functions/vprintf.texi: Update.
19238         * doc/posix-functions/vsnprintf.texi: Update.
19239         * doc/posix-functions/vsprintf.texi: Update.
19240         * doc/glibc-functions/obstack_printf.texi: Update.
19241         * doc/glibc-functions/obstack_vprintf.texi: Update.
19242
19243 2009-02-26  Eric Blake  <ebb9@byu.net>
19244
19245         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
19246         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
19247         compilation bug by using runtime conversion.
19248         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19249         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
19250         * modules/ceill-tests (Files): Use nan.h.
19251         * modules/floorl-tests (Files): Likewise.
19252         * modules/frexpl-tests (Files): Likewise.
19253         * modules/isnanl-tests (Files): Likewise.
19254         * modules/ldexpl-tests (Files): Likewise.
19255         * modules/roundl-tests (Files): Likewise.
19256         * modules/truncl-tests (Files): Likewise.
19257         * tests/test-ceill.c (main): Use a working NaN.
19258         * tests/test-floorl.c (main): Likewise.
19259         * tests/test-frexpl.c (main): Likewise.
19260         * tests/test-isnan.c (test_long_double): Likewise.
19261         * tests/test-isnanl.h (main): Likewise.
19262         * tests/test-ldexpl.h (main): Likewise.
19263         * tests/test-roundl.h (main): Likewise.
19264         * tests/test-truncl.h (main): Likewise.
19265         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
19266
19267 2009-02-26  Eric Blake  <ebb9@byu.net>
19268             Bruno Haible  <bruno@clisp.org>
19269
19270         Work around a *printf bug with %ls on Solaris.
19271         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
19272         precision is specified, sprintf stops converting the wide string
19273         argument when the number of bytes that have been produced by this
19274         conversion equals or exceeds the precision.
19275         * doc/posix-functions/fprintf.texi: Update.
19276         * doc/posix-functions/printf.texi: Update.
19277         * doc/posix-functions/snprintf.texi: Update.
19278         * doc/posix-functions/sprintf.texi: Update.
19279         * doc/posix-functions/vfprintf.texi: Update.
19280         * doc/posix-functions/vprintf.texi: Update.
19281         * doc/posix-functions/vsnprintf.texi: Update.
19282         * doc/posix-functions/vsprintf.texi: Update.
19283         * doc/glibc-functions/obstack_printf.texi: Update.
19284         * doc/glibc-functions/obstack_vprintf.texi: Update.
19285
19286 2009-02-26  Eric Blake  <ebb9@byu.net>
19287
19288         stdlib: favor compiler check of random.h
19289         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
19290         to avoid an ObjC random.h installed by Swarm.
19291
19292 2009-02-26  Bruno Haible  <bruno@clisp.org>
19293
19294         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
19295         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
19296         Reported by Gary V. Vaughan <gary@gnu.org>.
19297
19298 2009-02-26  Bruno Haible  <bruno@clisp.org>
19299
19300         Fix *printf behaviour regarding the %ls directive.
19301         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
19302         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
19303         NEED_PRINTF_DIRECTIVE_LS.
19304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
19305         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19306         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19307         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
19308         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
19309         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
19310         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19315         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
19316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19319         * doc/posix-functions/fprintf.texi: Update.
19320         * doc/posix-functions/printf.texi: Update.
19321         * doc/posix-functions/snprintf.texi: Update.
19322         * doc/posix-functions/sprintf.texi: Update.
19323         * doc/posix-functions/vfprintf.texi: Update.
19324         * doc/posix-functions/vprintf.texi: Update.
19325         * doc/posix-functions/vsnprintf.texi: Update.
19326         * doc/posix-functions/vsprintf.texi: Update.
19327         * doc/glibc-functions/obstack_printf.texi: Update.
19328         * doc/glibc-functions/obstack_vprintf.texi: Update.
19329         Reported by Eric Blake.
19330
19331 2009-02-25  Bruno Haible  <bruno@clisp.org>
19332
19333         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
19334         with known value.
19335         Reported by Gary V. Vaughan <gary@gnu.org>.
19336
19337 2009-02-25  Bruno Haible  <bruno@clisp.org>
19338
19339         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
19340         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
19341         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
19342         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
19343         Reported by Gary V. Vaughan <gary@gnu.org>.
19344
19345 2009-02-25  Bruno Haible  <bruno@clisp.org>
19346
19347         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
19348         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
19349         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
19350         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
19351         Reported by Gary V. Vaughan <gary@gnu.org>.
19352
19353 2009-02-25  Eric Blake  <ebb9@byu.net>
19354
19355         tests: skip fseek/ftell tests if ungetc is broken
19356         * m4/ungetc.m4: New file.
19357         * modules/fseek-tests: Split test, so ungetc dependency is
19358         separate from rest of test.
19359         * modules/fseeko-tests: Likewise.
19360         * modules/ftell-tests: Likewise.
19361         * modules/ftello-tests: Likewise.
19362         * tests/test-fseek.c (main): Isolate ungetc dependency.
19363         * tests/test-fseeko.c (main): Likewise.
19364         * tests/test-ftell.c (main): Likewise.
19365         * tests/test-ftello.c (main): Likewise.
19366         * tests/test-fseek2.sh: New file.
19367         * tests/test-fseeko2.sh: Likewise.
19368         * tests/test-ftell2.sh: Likewise.
19369         * tests/test-ftello2.sh: Likewise.
19370
19371 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
19372
19373         test-getaddrinfo: fix usage of skip return code 77
19374         * tests/test-gettaddrinfo.c: Return skip code 77 only
19375         for first occurance of skip (4x77 is not 77)
19376
19377 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
19378
19379         strtod: avoid C99 decl-after-statement
19380         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
19381
19382 2009-02-24  Eric Blake  <ebb9@byu.net>
19383
19384         strtod: detect HP-UX 11.31 bug
19385         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
19386         Reported by Gary V. Vaughan.
19387
19388 2009-02-23  Bruno Haible  <bruno@clisp.org>
19389
19390         Fix invalid read past end of memory block.
19391         * lib/vasnprintf.c (DCHAR_SET): Define.
19392         (local_wcslen): Define only when needed.
19393         (local_strnlen, local_wcsnlen): New functions.
19394         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
19395         directives that involve a conversion ourselves.
19396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
19397         wcsnlen, mbrtowc, wcrtomb.
19398         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
19399         * tests/test-vasprintf-posix.c (test_function): Likewise.
19400         * tests/test-snprintf-posix.h (test_function): Likewise.
19401         * tests/test-sprintf-posix.h (test_function): Likewise.
19402         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19403
19404 2009-02-22  Bruno Haible  <bruno@clisp.org>
19405
19406         Implement new clarified decomposition of Hangul syllables.
19407         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
19408         of type LTV, return only a pairwise decomposition.
19409         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
19410         Likewise.
19411         * tests/uninorm/test-decomposition.c (main): Updated expected result.
19412         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
19413         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
19414
19415 2009-02-22  Bruno Haible  <bruno@clisp.org>
19416
19417         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
19418         zero-length results and shrink excess allocated memory.
19419         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
19420         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
19421         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
19422         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
19423         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
19424         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
19425         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
19426         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
19427         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
19428         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
19429         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
19430         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
19431
19432 2009-02-21  Bruno Haible  <bruno@clisp.org>
19433
19434         * doc/gnulib.texi: Include safe-alloc.texi earlier.
19435         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
19436         spaces after a period. Put a space between a macro name and its
19437         argument list. Trivial rewordings.
19438         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
19439         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
19440         (main): Return 0 explicitly.
19441
19442 2009-02-21  Bruno Haible  <bruno@clisp.org>
19443
19444         Tests for module 'uninorm/filter'.
19445         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
19446         * modules/uninorm/filter-tests: New file.
19447
19448         New module 'uninorm/filter'.
19449         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
19450         uninorm_filter_flush, uninorm_filter_free): New declarations.
19451         * lib/uninorm/uninorm-filter.c: New file.
19452         * modules/uninorm/filter: New file.
19453
19454 2009-02-21  Bruno Haible  <bruno@clisp.org>
19455
19456         Tests for module 'uninorm/nfkc'.
19457         * tests/uninorm/test-nfkc.c: New file.
19458         * tests/uninorm/test-u8-nfkc.c: New file.
19459         * tests/uninorm/test-u16-nfkc.c: New file.
19460         * tests/uninorm/test-u32-nfkc.c: New file.
19461         * tests/uninorm/test-u32-nfkc-big.sh: New file.
19462         * tests/uninorm/test-u32-nfkc-big.c: New file.
19463         * modules/uninorm/nfkc-tests: New file.
19464
19465         New module 'uninorm/nfkc'.
19466         * lib/uninorm/nfkc.c: New file.
19467         * modules/uninorm/nfkc: New file.
19468
19469         Tests for module 'uninorm/nfkd'.
19470         * tests/uninorm/test-nfkd.c: New file.
19471         * tests/uninorm/test-u8-nfkd.c: New file.
19472         * tests/uninorm/test-u16-nfkd.c: New file.
19473         * tests/uninorm/test-u32-nfkd.c: New file.
19474         * tests/uninorm/test-u32-nfkd-big.sh: New file.
19475         * tests/uninorm/test-u32-nfkd-big.c: New file.
19476         * modules/uninorm/nfkd-tests: New file.
19477
19478         New module 'uninorm/nfkd'.
19479         * lib/uninorm/nfkd.c: New file.
19480         * modules/uninorm/nfkd: New file.
19481
19482         Tests for module 'uninorm/nfc'.
19483         * tests/uninorm/test-nfc.c: New file.
19484         * tests/uninorm/test-u8-nfc.c: New file.
19485         * tests/uninorm/test-u16-nfc.c: New file.
19486         * tests/uninorm/test-u32-nfc.c: New file.
19487         * tests/uninorm/test-u32-nfc-big.sh: New file.
19488         * tests/uninorm/test-u32-nfc-big.c: New file.
19489         * modules/uninorm/nfc-tests: New file.
19490
19491         New module 'uninorm/nfc'.
19492         * lib/uninorm/nfc.c: New file.
19493         * modules/uninorm/nfc: New file.
19494
19495         Tests for module 'uninorm/nfd'.
19496         * tests/uninorm/test-nfd.c: New file.
19497         * tests/uninorm/test-u8-nfd.c: New file.
19498         * tests/uninorm/test-u16-nfd.c: New file.
19499         * tests/uninorm/test-u32-nfd.c: New file.
19500         * tests/uninorm/test-u32-nfd-big.sh: New file.
19501         * tests/uninorm/test-u32-nfd-big.c: New file.
19502         * tests/uninorm/test-u32-normalize-big.h: New file.
19503         * tests/uninorm/test-u32-normalize-big.c: New file.
19504         * tests/uninorm/NormalizationTest.txt: New file, created from
19505         Unicode 5.1.0 NormalizationTest.txt.
19506         * modules/uninorm/nfd-tests: New file.
19507
19508         New module 'uninorm/nfd'.
19509         * lib/uninorm/nfd.c: New file.
19510         * modules/uninorm/nfd: New file.
19511
19512         New module 'uninorm/u32-normalize'.
19513         * lib/uninorm/u32-normalize.c: New file.
19514         * modules/uninorm/u32-normalize: New file.
19515
19516         New module 'uninorm/u16-normalize'.
19517         * lib/uninorm/u16-normalize.c: New file.
19518         * modules/uninorm/u16-normalize: New file.
19519
19520         New module 'uninorm/u8-normalize'.
19521         * lib/uninorm/u8-normalize.c: New file.
19522         * lib/uninorm/normalize-internal.h: New file.
19523         * lib/uninorm/u-normalize-internal.h: New file.
19524         * modules/uninorm/u8-normalize: New file.
19525
19526         New module 'uninorm/decompose-internal'.
19527         * lib/uninorm/decompose-internal.c: New file.
19528         * modules/uninorm/decompose-internal: New file.
19529
19530         Tests for module 'uninorm/composition'.
19531         * tests/uninorm/test-composition.c: New file.
19532         * modules/uninorm/composition-tests: New file.
19533
19534         New module 'uninorm/composition'.
19535         * lib/uninorm/composition.c: New file.
19536         * lib/uninorm/composition-table.gperf: New file, generated by
19537         gen-uni-tables.
19538         * modules/uninorm/composition: New file.
19539
19540         Tests for module 'uninorm/compat-decomposition'.
19541         * tests/uninorm/test-compat-decomposition.c: New file.
19542         * modules/uninorm/compat-decomposition-tests: New file.
19543
19544         New module 'uninorm/compat-decomposition'.
19545         * lib/uninorm/decompose-internal.h: New file.
19546         * lib/uninorm/compat-decomposition.c: New file.
19547         * modules/uninorm/compat-decomposition: New file.
19548
19549         Tests for module 'uninorm/canonical-decomposition'.
19550         * tests/uninorm/test-canonical-decomposition.c: New file.
19551         * modules/uninorm/canonical-decomposition-tests: New file.
19552
19553         New module 'uninorm/canonical-decomposition'.
19554         * lib/uninorm/canonical-decomposition.c: New file.
19555         * modules/uninorm/canonical-decomposition: New file.
19556
19557         Tests for module 'uninorm/decomposition'.
19558         * tests/uninorm/test-decomposition.c: New file.
19559         * modules/uninorm/decomposition-tests: New file.
19560
19561         New module 'uninorm/decomposition'.
19562         * lib/uninorm/decomposition.c: New file.
19563         * modules/uninorm/decomposition: New file.
19564
19565         New module 'uninorm/decomposition-table'.
19566         * lib/uninorm/decomposition-table.h: New file.
19567         * lib/uninorm/decomposition-table.c: New file.
19568         * lib/uninorm/decomposition-table1.h: New file, generated by
19569         gen-uni-tables.
19570         * lib/uninorm/decomposition-table2.h: New file, generated by
19571         gen-uni-tables.
19572         * modules/uninorm/decomposition-table: New file.
19573
19574         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19575         (UC_DECOMP_*): New enumeration items.
19576         (get_decomposition): New function.
19577         (struct decomp_table): New type.
19578         (output_decomposition, output_decomposition_tables): New functions.
19579         (unicode_composition_exclusions): New variable.
19580         (fill_composition_exclusions, debug_output_composition_tables): New
19581         functions.
19582         (main): Accept one more argument. Invoke fill_composition_exclusions.
19583         Output decomposition and composition tables.
19584
19585         New module 'uninorm/base'.
19586         * lib/uninorm.h: New file.
19587         * lib/unictype.h: Update comment.
19588         * modules/uninorm/base: New file.
19589
19590 2009-02-21  David Lutterkort  <lutter@redhat.com>
19591
19592         Tests for module 'safe-alloc'.
19593         * tests/test-safe-alloc.c: New file.
19594         * modules/safe-alloc-tests: New file.
19595
19596         New module 'safe-alloc'.
19597         * lib/safe-alloc.h: New file.
19598         * lib/safe-alloc.c: New file.
19599         * m4/safe-alloc.m4: New file.
19600         * modules/safe-alloc: New file.
19601         * doc/safe-alloc.texi: New file.
19602         * doc/gnulib.texi: Include it.
19603         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19604         safe-alloc.
19605
19606 2009-02-18  Bruno Haible  <bruno@clisp.org>
19607
19608         Fix link error on non-glibc systems.
19609         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19610         variable.
19611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19612
19613 2009-02-18  Jim Meyering  <meyering@redhat.com>
19614
19615         fts: avoid used-uninitialized error due to recent change
19616         * lib/fts.c (fts_read): Guard uses of the new member,
19617         parent->fts_n_dirs_remaining, since it's not relevant for
19618         the parent of a directory specified on the command-line.
19619
19620 2009-02-17  James Youngman  <jay@gnu.org>
19621             Bruno Haible  <bruno@clisp.org>
19622
19623         * m4/include_next.m4: Reformulate comment.
19624
19625 2009-02-16  Jim Meyering  <meyering@redhat.com>
19626
19627         fts: add #if guards so that the fts_lgpl module still builds
19628         * lib/fts.c: Guard just-added hash-table-using parts with
19629         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19630         Reported by Simon Josefsson.
19631
19632 2009-02-15  Bruno Haible  <bruno@clisp.org>
19633
19634         * modules/array-mergesort-tests: New file.
19635         * tests/test-array-mergesort.c: New file.
19636
19637         New module 'array-mergesort'.
19638         * modules/array-mergesort: New file.
19639         * lib/array-mergesort.h: New file.
19640
19641 2009-02-15  Bruno Haible  <bruno@clisp.org>
19642
19643         Fix 2009-02-07 commit.
19644         * lib/gen-uni-tables.c (output_predicate, output_category,
19645         output_combclass, output_bidi_category, output_decimal_digit,
19646         output_digit, output_numeric, output_mirror, output_scripts,
19647         output_ident_category, output_simple_mapping): Fix format directives.
19648         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19649
19650 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19651
19652         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19653         fixes are available from IBM.
19654
19655 2009-02-13  Jim Meyering  <meyering@redhat.com>
19656
19657         fts: arrange not to stat non-directories in more cases
19658         This makes GNU find (when it doesn't need to stat each file)
19659         *much* more efficient at traversing reiserfs file systems.
19660         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19661         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19662         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19663         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19664         (leaf_optimization_applies): New function.
19665         (LCO_hash, LCO_compare): New helper functions.
19666         (link_count_optimize_ok): New function.
19667         (fts_stat): Initialize new member (if dir).
19668         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19669         we've just stat'ed a directory.  Skip the stat call when possible.
19670         ---
19671         Note this AFS-related exchange:
19672         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19673         and note find's pioctl call in find/fstype.c.
19674         But that is necessary only if you want to enable the
19675         optimization for AFS, and for now, I don't.
19676
19677         fts: move a function definition "up" (no semantic change)
19678         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
19679         "up" to precede upcoming use of a related function.
19680
19681 2009-02-11  Jim Meyering  <meyering@redhat.com>
19682
19683         fts: correct internal computation of nlinks (optimization-related)
19684         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
19685         whether the current entry is a directory, so don't test it.
19686
19687 2009-02-10  Bruno Haible  <bruno@clisp.org>
19688
19689         Tests for module 'uniwbrk/ulc-wordbreaks'.
19690         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
19691         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
19692         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
19693
19694         Tests for module 'uniwbrk/u32-wordbreaks'.
19695         * modules/uniwbrk/u32-wordbreaks-tests: New file.
19696         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
19697
19698         Tests for module 'uniwbrk/u16-wordbreaks'.
19699         * modules/uniwbrk/u16-wordbreaks-tests: New file.
19700         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
19701
19702         Tests for module 'uniwbrk/u8-wordbreaks'.
19703         * modules/uniwbrk/u8-wordbreaks-tests: New file.
19704         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
19705
19706 2009-02-10  Bruno Haible  <bruno@clisp.org>
19707
19708         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
19709         property.
19710         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
19711         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
19712         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
19713
19714 2009-02-10  Simon Josefsson  <simon@josefsson.org>
19715
19716         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
19717         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
19718
19719 2009-02-10  Bruno Haible  <bruno@clisp.org>
19720
19721         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
19722         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
19723         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
19724         * lib/unilbrk/u8-possible-linebreaks.c: Update.
19725         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
19726         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
19727
19728 2009-02-09  Simon Josefsson  <simon@josefsson.org>
19729
19730         * lib/sockets.h (gl_fd_to_handle): New function.
19731
19732         * tests/test-sockets.c: Call gl_fd_to_handle.
19733
19734 2009-02-09  Bruno Haible  <bruno@clisp.org>
19735
19736         * doc/havelib.texi: Document the conventions on bi-arch systems.
19737
19738 2009-02-08  Bruno Haible  <bruno@clisp.org>
19739
19740         Document the AC_LIB_LINKFLAGS macro.
19741         * doc/havelib.texi: New file, mostly written on 2005-05-24.
19742         * doc/gnulib.texi: Include it.
19743
19744 2009-02-08  Bruno Haible  <bruno@clisp.org>
19745
19746         Fix wrong order of sections, compared to TOC.
19747         * doc/gnulib.texi: Include relocatable-maint.texi after the
19748         "Regular expressions" node, not before.
19749
19750 2009-02-08  Bruno Haible  <bruno@clisp.org>
19751
19752         Tests for module 'unicase/totitle'.
19753         * modules/unicase/totitle-tests: New file.
19754
19755         Tests for module 'unicase/tolower'.
19756         * modules/unicase/tolower-tests: New file.
19757
19758         Tests for module 'unicase/toupper'.
19759         * modules/unicase/toupper-tests: New file.
19760         * tests/unicase/test-mapping-part1.h: New file.
19761         * tests/unicase/test-mapping-part2.h: New file.
19762
19763         New module 'unicase/totitle'.
19764         * modules/unicase/totitle: New file.
19765         * lib/unicase/totitle.c: New file.
19766
19767         New module 'unicase/tolower'.
19768         * modules/unicase/tolower: New file.
19769         * lib/unicase/tolower.c: New file.
19770
19771         New module 'unicase/toupper'.
19772         * modules/unicase/toupper: New file.
19773         * lib/unicase/toupper.c: New file.
19774         * lib/unicase/simple-mapping.h: New file.
19775
19776         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
19777         (mapping_table): New structure.
19778         (output_simple_mapping): New function.
19779         (main): Invoke output_simple_mapping_test and output_simple_mapping.
19780         * modules/gen-uni-tables (Description): Update.
19781         * lib/unicase/toupper.h: New file, automatically generated by
19782         gen-uni-tables.
19783         * lib/unicase/tolower.h: New file, automatically generated by
19784         gen-uni-tables.
19785         * lib/unicase/totitle.h: New file, automatically generated by
19786         gen-uni-tables.
19787         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
19788         gen-uni-tables.
19789         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
19790         gen-uni-tables.
19791         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
19792         gen-uni-tables.
19793
19794         New module 'unicase/base'.
19795         * modules/unicase/base: New file.
19796         * lib/unicase.h: New file.
19797
19798 2009-02-08  Bruno Haible  <bruno@clisp.org>
19799
19800         New module 'uniwbrk/ulc-wordbreaks'.
19801         * modules/uniwbrk/ulc-wordbreaks: New file.
19802         * lib/uniwbrk/ulc-wordbreaks.c: New file.
19803
19804         New module 'uniwbrk/u32-wordbreaks'.
19805         * modules/uniwbrk/u32-wordbreaks: New file.
19806         * lib/uniwbrk/u32-wordbreaks.c: New file.
19807
19808         New module 'uniwbrk/u16-wordbreaks'.
19809         * modules/uniwbrk/u16-wordbreaks: New file.
19810         * lib/uniwbrk/u16-wordbreaks.c: New file.
19811
19812         New module 'uniwbrk/u8-wordbreaks'.
19813         * modules/uniwbrk/u8-wordbreaks: New file.
19814         * lib/uniwbrk/u8-wordbreaks.c: New file.
19815         * lib/uniwbrk/u-wordbreaks.h: New file.
19816
19817         New module 'uniwbrk/table'.
19818         * modules/uniwbrk/table: New file.
19819         * lib/uniwbrk/wbrktable.h: New file.
19820         * lib/uniwbrk/wbrktable.c: New file.
19821
19822         New module 'uniwbrk/wordbreak-property'.
19823         * modules/uniwbrk/wordbreak-property: New file.
19824         * lib/uniwbrk/wordbreak-property.c: New file.
19825
19826         * lib/gen-uni-tables.c (WBP_*): New enum items.
19827         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
19828         (unicode_org_wbp): New variable.
19829         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
19830         New functions.
19831         (wbp_table): New structure.
19832         (output_wbp, output_wbrk_tables): New functions.
19833         (main): Accept additional argument. Invoke fill_org_wbp,
19834         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
19835         output_wbrk_tables.
19836         * modules/gen-uni-tables (Description): Update.
19837         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
19838         gen-uni-tables.
19839
19840         New module 'uniwbrk/base'.
19841         * modules/uniwbrk/base: New file.
19842         * lib/uniwbrk.h: New file.
19843
19844 2009-02-08  Bruno Haible  <bruno@clisp.org>
19845
19846         Update to Unicode 5.1.0.
19847         * lib/gen-uni-tables.c (is_property_alphabetic): Include
19848         U+2185..U+2188.
19849         (is_property_default_ignorable_code_point): Don't include characters
19850         of category Cc or Cs and not-a-characters.
19851         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
19852         U+0D79, U+109E, U+109F, U+A60C.
19853         * lib/unictype/bidi_of.h: Regenerated.
19854         * lib/unictype/blocks.h: Regenerated.
19855         * lib/unictype/categ_C.h: Regenerated.
19856         * lib/unictype/categ_Cf.h: Regenerated.
19857         * lib/unictype/categ_Cn.h: Regenerated.
19858         * lib/unictype/categ_L.h: Regenerated.
19859         * lib/unictype/categ_Ll.h: Regenerated.
19860         * lib/unictype/categ_Lm.h: Regenerated.
19861         * lib/unictype/categ_Lo.h: Regenerated.
19862         * lib/unictype/categ_Lu.h: Regenerated.
19863         * lib/unictype/categ_M.h: Regenerated.
19864         * lib/unictype/categ_Mc.h: Regenerated.
19865         * lib/unictype/categ_Me.h: Regenerated.
19866         * lib/unictype/categ_Mn.h: Regenerated.
19867         * lib/unictype/categ_N.h: Regenerated.
19868         * lib/unictype/categ_Nd.h: Regenerated.
19869         * lib/unictype/categ_Nl.h: Regenerated.
19870         * lib/unictype/categ_No.h: Regenerated.
19871         * lib/unictype/categ_P.h: Regenerated.
19872         * lib/unictype/categ_Pd.h: Regenerated.
19873         * lib/unictype/categ_Pe.h: Regenerated.
19874         * lib/unictype/categ_Pf.h: Regenerated.
19875         * lib/unictype/categ_Pi.h: Regenerated.
19876         * lib/unictype/categ_Po.h: Regenerated.
19877         * lib/unictype/categ_Ps.h: Regenerated.
19878         * lib/unictype/categ_S.h: Regenerated.
19879         * lib/unictype/categ_Sk.h: Regenerated.
19880         * lib/unictype/categ_Sm.h: Regenerated.
19881         * lib/unictype/categ_So.h: Regenerated.
19882         * lib/unictype/categ_of.h: Regenerated.
19883         * lib/unictype/combining.h: Regenerated.
19884         * lib/unictype/ctype_alnum.h: Regenerated.
19885         * lib/unictype/ctype_alpha.h: Regenerated.
19886         * lib/unictype/ctype_graph.h: Regenerated.
19887         * lib/unictype/ctype_lower.h: Regenerated.
19888         * lib/unictype/ctype_print.h: Regenerated.
19889         * lib/unictype/ctype_punct.h: Regenerated.
19890         * lib/unictype/ctype_upper.h: Regenerated.
19891         * lib/unictype/decdigit.h: Regenerated.
19892         * lib/unictype/digit.h: Regenerated.
19893         * lib/unictype/mirror.h: Regenerated.
19894         * lib/unictype/numeric.h: Regenerated.
19895         * lib/unictype/pr_alphabetic.h: Regenerated.
19896         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
19897         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
19898         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
19899         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
19900         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
19901         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
19902         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
19903         * lib/unictype/pr_combining.h: Regenerated.
19904         * lib/unictype/pr_dash.h: Regenerated.
19905         * lib/unictype/pr_decimal_digit.h: Regenerated.
19906         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
19907         * lib/unictype/pr_deprecated.h: Regenerated.
19908         * lib/unictype/pr_diacritic.h: Regenerated.
19909         * lib/unictype/pr_extender.h: Regenerated.
19910         * lib/unictype/pr_format_control.h: Regenerated.
19911         * lib/unictype/pr_grapheme_base.h: Regenerated.
19912         * lib/unictype/pr_grapheme_extend.h: Regenerated.
19913         * lib/unictype/pr_grapheme_link.h: Regenerated.
19914         * lib/unictype/pr_id_continue.h: Regenerated.
19915         * lib/unictype/pr_id_start.h: Regenerated.
19916         * lib/unictype/pr_ideographic.h: Regenerated.
19917         * lib/unictype/pr_ignorable_control.h: Regenerated.
19918         * lib/unictype/pr_lowercase.h: Regenerated.
19919         * lib/unictype/pr_math.h: Regenerated.
19920         * lib/unictype/pr_numeric.h: Regenerated.
19921         * lib/unictype/pr_other_alphabetic.h: Regenerated.
19922         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
19923         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
19924         * lib/unictype/pr_other_id_continue.h: Regenerated.
19925         * lib/unictype/pr_other_lowercase.h: Regenerated.
19926         * lib/unictype/pr_other_math.h: Regenerated.
19927         * lib/unictype/pr_punctuation.h: Regenerated.
19928         * lib/unictype/pr_sentence_terminal.h: Regenerated.
19929         * lib/unictype/pr_soft_dotted.h: Regenerated.
19930         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
19931         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
19932         * lib/unictype/pr_unified_ideograph.h: Regenerated.
19933         * lib/unictype/pr_uppercase.h: Regenerated.
19934         * lib/unictype/pr_xid_continue.h: Regenerated.
19935         * lib/unictype/pr_xid_start.h: Regenerated.
19936         * lib/unictype/pr_zero_width.h: Regenerated.
19937         * lib/unictype/scripts.h: Regenerated.
19938         * lib/unictype/scripts_byname.gperf: Regenerated.
19939         * lib/unictype/sy_java_ident.h: Regenerated.
19940         * lib/unilbrk/lbrkprop1.h: Regenerated.
19941         * lib/unilbrk/lbrkprop2.h: Regenerated.
19942         * tests/unictype/test-categ_C.c: Regenerated.
19943         * tests/unictype/test-categ_Cf.c: Regenerated.
19944         * tests/unictype/test-categ_Cn.c: Regenerated.
19945         * tests/unictype/test-categ_L.c: Regenerated.
19946         * tests/unictype/test-categ_Ll.c: Regenerated.
19947         * tests/unictype/test-categ_Lm.c: Regenerated.
19948         * tests/unictype/test-categ_Lo.c: Regenerated.
19949         * tests/unictype/test-categ_Lu.c: Regenerated.
19950         * tests/unictype/test-categ_M.c: Regenerated.
19951         * tests/unictype/test-categ_Mc.c: Regenerated.
19952         * tests/unictype/test-categ_Me.c: Regenerated.
19953         * tests/unictype/test-categ_Mn.c: Regenerated.
19954         * tests/unictype/test-categ_N.c: Regenerated.
19955         * tests/unictype/test-categ_Nd.c: Regenerated.
19956         * tests/unictype/test-categ_Nl.c: Regenerated.
19957         * tests/unictype/test-categ_No.c: Regenerated.
19958         * tests/unictype/test-categ_P.c: Regenerated.
19959         * tests/unictype/test-categ_Pd.c: Regenerated.
19960         * tests/unictype/test-categ_Pe.c: Regenerated.
19961         * tests/unictype/test-categ_Pf.c: Regenerated.
19962         * tests/unictype/test-categ_Pi.c: Regenerated.
19963         * tests/unictype/test-categ_Po.c: Regenerated.
19964         * tests/unictype/test-categ_Ps.c: Regenerated.
19965         * tests/unictype/test-categ_S.c: Regenerated.
19966         * tests/unictype/test-categ_Sk.c: Regenerated.
19967         * tests/unictype/test-categ_Sm.c: Regenerated.
19968         * tests/unictype/test-categ_So.c: Regenerated.
19969         * tests/unictype/test-ctype_alnum.c: Regenerated.
19970         * tests/unictype/test-ctype_alpha.c: Regenerated.
19971         * tests/unictype/test-ctype_graph.c: Regenerated.
19972         * tests/unictype/test-ctype_lower.c: Regenerated.
19973         * tests/unictype/test-ctype_print.c: Regenerated.
19974         * tests/unictype/test-ctype_punct.c: Regenerated.
19975         * tests/unictype/test-ctype_upper.c: Regenerated.
19976         * tests/unictype/test-decdigit.h: Regenerated.
19977         * tests/unictype/test-digit.h: Regenerated.
19978         * tests/unictype/test-numeric.h: Regenerated.
19979         * tests/unictype/test-pr_alphabetic.c: Regenerated.
19980         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
19981         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
19982         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
19983         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
19984         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
19985         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
19986         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
19987         * tests/unictype/test-pr_combining.c: Regenerated.
19988         * tests/unictype/test-pr_dash.c: Regenerated.
19989         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
19990         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
19991         * tests/unictype/test-pr_deprecated.c: Regenerated.
19992         * tests/unictype/test-pr_diacritic.c: Regenerated.
19993         * tests/unictype/test-pr_extender.c: Regenerated.
19994         * tests/unictype/test-pr_format_control.c: Regenerated.
19995         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
19996         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
19997         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
19998         * tests/unictype/test-pr_id_continue.c: Regenerated.
19999         * tests/unictype/test-pr_id_start.c: Regenerated.
20000         * tests/unictype/test-pr_ideographic.c: Regenerated.
20001         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
20002         * tests/unictype/test-pr_lowercase.c: Regenerated.
20003         * tests/unictype/test-pr_math.c: Regenerated.
20004         * tests/unictype/test-pr_numeric.c: Regenerated.
20005         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
20006         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
20007         Regenerated.
20008         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
20009         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
20010         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
20011         * tests/unictype/test-pr_other_math.c: Regenerated.
20012         * tests/unictype/test-pr_punctuation.c: Regenerated.
20013         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
20014         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
20015         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
20016         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
20017         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
20018         * tests/unictype/test-pr_uppercase.c: Regenerated.
20019         * tests/unictype/test-pr_xid_continue.c: Regenerated.
20020         * tests/unictype/test-pr_xid_start.c: Regenerated.
20021         * tests/unictype/test-pr_zero_width.c: Regenerated.
20022
20023         Update to Unicode 5.1.0.
20024         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
20025         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
20026         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
20027         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
20028         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
20029         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
20030         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
20031         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
20032         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
20033         (nonspacing_table_ind): Update.
20034         * tests/uniwidth/test-uc_width2.sh: Update expected result.
20035
20036         Update to Unicode 5.1.0.
20037         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
20038         code transform.
20039         * lib/uniname/uniname.c (unicode_character_name,
20040         unicode_name_character): Add the range 0x1Fxxx to the code transform.
20041         * lib/uniname/uninames.h: Regenerated.
20042         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
20043
20044 2009-02-07  Bruno Haible  <bruno@clisp.org>
20045
20046         Merge gen-ctype and gen-lbrk into a single program.
20047         * lib/gen-uni-tables.c: New file, incorporating
20048         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
20049         Add directory prefixes to the names of the generated files.
20050         * lib/unictype/gen-ctype.c: Remove file.
20051         * lib/unilbrk/gen-lbrk.c: Remove file.
20052         * modules/gen-uni-tables: New file.
20053         * modules/unictype/gen-ctype: Remove file.
20054         * modules/unilbrk/gen-lbrk: Remove file.
20055
20056 2009-02-07  Bruno Haible  <bruno@clisp.org>
20057
20058         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
20059
20060         New module 'unistr/u32-strcoll'.
20061         * modules/unistr/u32-strcoll: New file.
20062         * lib/unistr/u32-strcoll.c: New file.
20063
20064         New module 'unistr/u16-strcoll'.
20065         * modules/unistr/u16-strcoll: New file.
20066         * lib/unistr/u16-strcoll.c: New file.
20067
20068         New module 'unistr/u8-strcoll'.
20069         * modules/unistr/u8-strcoll: New file.
20070         * lib/unistr/u8-strcoll.c: New file.
20071         * lib/unistr/u-strcoll.h: New file.
20072
20073 2009-02-07  Bruno Haible  <bruno@clisp.org>
20074
20075         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
20076         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20077         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20078         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
20079         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
20080         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
20081
20082 2009-02-07  Bruno Haible  <bruno@clisp.org>
20083
20084         Make 64-bit clean.
20085         * lib/unictype/gen-ctype.c (output_predicate, output_category,
20086         output_combclass, output_bidi_category, output_decimal_digit,
20087         output_digit, output_numeric, output_mirror, output_scripts,
20088         output_ident_category): Use proper width specifier in format strings.
20089
20090 2009-02-07  Bruno Haible  <bruno@clisp.org>
20091
20092         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
20093         failure behaviour.
20094
20095 2009-02-07  Jim Meyering  <meyering@redhat.com>
20096
20097         regex: avoid compilation failure with upcoming gcc-4.4
20098         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
20099         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
20100         "... error: integer overflow in preprocessor expression".
20101
20102 2009-02-05  Ben Pfaff  <blp@gnu.org>
20103
20104         Fix link errors on Windows when close module is used.
20105         * modules/close: Add $(LIB_CLOSE) to Link section.
20106         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
20107         $(LIB_CLOSE) on Windows.
20108
20109 2009-02-05  Jim Meyering  <meyering@redhat.com>
20110
20111         still avoid unused-parameter warnings, but do it cleanly
20112         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
20113         (get_fs_usage): Cast to void instead.
20114         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
20115         (dev_from_mount_options, read_file_system_list): Cast to void.
20116         Prompted by Bruno Haible.
20117
20118 2009-02-04  Jim Meyering  <meyering@redhat.com>
20119
20120         fsusage.c: correct copyright year
20121         * lib/fsusage.c: Reflect year in which the change is pushed into
20122
20123         avoid misc. warnings
20124         * lib/fsusage.c (UNUSED_PARAM): Define.
20125         (get_fs_usage): Mark parameter "disk" as unused.
20126         * lib/getugroups.c (getgrent): Use "void" in prototype.
20127         * lib/mountlist.c: Mark unused parameters.
20128         (read_file_system_list): Declare a local with "const".
20129         * lib/nanosleep.c (getnow): Declare static.
20130         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
20131
20132         dirfd: set errno upon failure
20133         * lib/dirfd.c: Include <errno.h>.
20134         Set errno to ENOTSUP when returning -1.
20135         * modules/dirfd (Depends-on): Add errno.
20136         Suggested by John Kodis <kodis@comcast.net>.
20137
20138 2009-02-01  Bruno Haible  <bruno@clisp.org>
20139
20140         Don't assume sizeof (long) >= sizeof (void *).
20141         * lib/memcmp.c: Include stdint.h.
20142         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
20143         srcp2 to 'const byte *'.
20144         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
20145         types to uintptr_t.
20146         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
20147         * modules/memcmp (Depends-on): Add stdint.
20148         Reported by Ozkan Sezer <sezeroz@gmail.com>.
20149
20150 2009-01-30  Eric Blake  <ebb9@byu.net>
20151
20152         fix more require-before-expand issues
20153         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
20154         expand, AC_PROG_AWK.
20155         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
20156
20157 2009-01-28  Eric Blake  <ebb9@byu.net>
20158
20159         version-etc: use consistent URL formatting
20160         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
20161         Improve formatting.  Use fputs for string without %.
20162
20163 2009-01-28  Jim Meyering  <meyering@redhat.com>
20164
20165         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
20166         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
20167         "underquoted definition of NAME" from autoconf-2.59.
20168
20169 2009-01-28  Bruno Haible  <bruno@clisp.org>
20170
20171         * doc/gnulib.texi: Add "Obsolete modules" to index.
20172
20173 2009-01-28  Jim Meyering  <meyering@redhat.com>
20174
20175         useless-if-before-free: recognize more variants
20176         * build-aux/useless-if-before-free: Also recognize e.g.,
20177         if (NULL != p) free (p);
20178
20179 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
20180
20181         test-getaddrinfo: skip (don't fail) this test when there's no network
20182         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
20183         on the presumption that it means you lack network access.
20184
20185 2009-01-26  Jim Meyering  <meyering@redhat.com>
20186
20187         fflush: avoid warnings on modern systems
20188         * lib/fflush.c (rpl_fflush): Move declarations of locals,
20189         pos and result, into scopes where they're used.
20190
20191 2009-01-26  Eric Blake  <ebb9@byu.net>
20192
20193         Silence warning reintroduced by recent extensions patch.
20194         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
20195         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
20196         autoconf.
20197
20198         Backport improved autoconf semantics of AC_DEFUN_ONCE.
20199         * m4/00gnulib.m4: New file.
20200         * gnulib-tool (func_get_filelist): Always use it.
20201         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
20202         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
20203
20204 2009-01-25  Bruno Haible  <bruno@clisp.org>
20205
20206         Make test-quotearg work on MacOS X and AIX.
20207         * tests/test-quotearg.sh: New file.
20208         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
20209         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
20210         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
20211         include <libintl.h>.
20212         (fake_locale): Remove variable.
20213         (gettext, dgettext, dcgettext): Remove functions.
20214         (main): Instead of setting a fake locale, set a real locale. Call
20215         textdomain and bindtextdomain.
20216         * modules/quotearg-tests (Files): Add the new files.
20217         (Depends-on): Add gettext, setenv, unsetenv.
20218         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
20219         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
20220         Augment TESTS_ENVIRONMENT.
20221
20222 2009-01-25  Bruno Haible  <bruno@clisp.org>
20223
20224         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
20225         fr_FR.ISO8859-1 locale on MacOS X.
20226         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
20227         ja_JP.eucJP locale on MacOS X.
20228         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
20229         zh_CN.GB18030 locale on MacOS X.
20230
20231 2009-01-25  Bruno Haible  <bruno@clisp.org>
20232
20233         Avoid link errors on MacOS X 10.3.
20234         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
20235         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20236
20237 2009-01-25  Bruno Haible  <bruno@clisp.org>
20238
20239         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20240         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
20241         * modules/pipe (Files): Remove m4/posix_spawn.m4.
20242         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20243         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
20244         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20245         posix_spawnattr_init, posix_spawnattr_setsigmask,
20246         posix_spawnattr_setflags, posix_spawnattr_destroy.
20247
20248         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20249         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
20250         * modules/execute (Files): Remove m4/posix_spawn.m4.
20251         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20252         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20253         posix_spawnattr_init, posix_spawnattr_setsigmask,
20254         posix_spawnattr_setflags, posix_spawnattr_destroy.
20255
20256 2009-01-25  Bruno Haible  <bruno@clisp.org>
20257
20258         * lib/glthread/threadlib.c: Include <stdlib.h>.
20259
20260 2009-01-25  Bruno Haible  <bruno@clisp.org>
20261
20262         * lib/glthread/threadlib.c (dummy): New declaration.
20263
20264 2009-01-25  Bruno Haible  <bruno@clisp.org>
20265
20266         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
20267         multibyte characters also for the GB18030 encoding. Don't crash when
20268         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
20269
20270 2009-01-25  Bruno Haible  <bruno@clisp.org>
20271
20272         Avoid redefining 'struct random_data' on OSF/1 5.1.
20273         * lib/stdlib.in.h: Include <random.h> if it exists.
20274         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
20275         HAVE_RANDOM_H. Include <random.h> when testing whether
20276         'struct random_data' exists.
20277         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
20278
20279 2009-01-25  Bruno Haible  <bruno@clisp.org>
20280
20281         Don't install charset.alias on MacOS X >= 10.3.
20282         * lib/localcharset.c (DARWIN7): New macro.
20283         (get_charset_aliases): Hardcode the result for Darwin7.
20284         * modules/localcharset (install-exec-local): Don't install
20285         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
20286
20287 2009-01-25  Bruno Haible  <bruno@clisp.org>
20288
20289         Don't install charset.alias on mingw and Cygwin.
20290         * modules/localcharset (install-exec-local): Don't install
20291         charset.alias on mingw and Cygwin, if the file does not yet exist.
20292         The result for these platforms is hardcoded in localcharset.c.
20293
20294 2009-01-25  Bruno Haible  <bruno@clisp.org>
20295
20296         Make it possible again to use AC_GNU_SOURCE together with gnulib.
20297         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
20298         before requiring AC_USE_SYSTEM_EXTENSIONS.
20299
20300 2009-01-25  Jim Meyering  <meyering@redhat.com>
20301
20302         c-strtod: avoid warnings
20303         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
20304         "assignment discards qualifiers from pointer target type" warnings.
20305
20306 2009-01-24  Bruno Haible  <bruno@clisp.org>
20307
20308         Add support for non-UTF-8 locales on MacOS X.
20309         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
20310         canonical encodings. For Darwin 7 and newer, don't map traditional
20311         encodings to UTF-8.
20312         Reported by Vincent Lefevre <vincent@vinc17.org>
20313         at <http://savannah.gnu.org/bugs/?25235>.
20314
20315 2009-01-24  Bruno Haible  <bruno@clisp.org>
20316
20317         * doc/gnulib.texi (Obsolete modules): New section.
20318         Reported by Mike Frysinger <vapier@gentoo.org>.
20319
20320 2009-01-24  Bruno Haible  <bruno@clisp.org>
20321
20322         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
20323         (%.dvi): New rule.
20324
20325 2009-01-24  Bruno Haible  <bruno@clisp.org>
20326
20327         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
20328         Reported by Eric Blake.
20329
20330 2009-01-24  Bruno Haible  <bruno@clisp.org>
20331
20332         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
20333         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
20334         Reported by Gary V. Vaughan <gary@gnu.org>.
20335
20336 2009-01-24  Bruno Haible  <bruno@clisp.org>
20337
20338         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
20339
20340 2009-01-23  Bruno Haible  <bruno@clisp.org>
20341
20342         Make c-strtod, c-strtold usable in libraries.
20343         * lib/c-strtod.c: Include string.h instead of xalloc.h.
20344         (C_STRTOD): Call strdup instead of xstrdup.
20345         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
20346         * modules/c-strtold (Depends-on): Likewise.
20347         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
20348         * NEWS: Mention the change.
20349         Reported by Michael Gold <mgold@ncf.ca>.
20350
20351 2009-01-23  Jim Meyering  <meyering@redhat.com>
20352
20353         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
20354         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
20355         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
20356
20357 2009-01-23  Simon Josefsson  <simon@josefsson.org>
20358
20359         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
20360         GNU CoreUtils.
20361         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
20362         * modules/version-etc (Description): Update.
20363
20364 2009-01-22  Bruno Haible  <bruno@clisp.org>
20365
20366         Cache the C locale object.
20367         * lib/c-strtod.c (c_locale_cache): New variable.
20368         (c_locale): New function.
20369         (C_STRTOD): Use it, and don't call freelocale.
20370         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
20371         Suggested by Paolo Bonzini.
20372
20373 2009-01-21  Bruno Haible  <bruno@clisp.org>
20374
20375         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
20376         conditions other than overflow.
20377
20378 2009-01-21  Bruno Haible  <bruno@clisp.org>
20379
20380         * lib/c-strtod.c: Include errno.h.
20381         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
20382         value from STRTOD_L and STRTOD.
20383
20384 2009-01-21  Bruno Haible  <bruno@clisp.org>
20385         and Jim Meyering  <meyering@redhat.com>
20386
20387         nanosleep: skip configure test (fail it) for apple universal builds
20388         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
20389         universal builds, assume that nanosleep does not work.
20390         * modules/nanosleep (Depends-on): Add multiarch.
20391
20392         mktime: skip configure test (fail it) for apple universal builds
20393         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
20394         universal builds, assume that mktime does not work.
20395         * modules/mktime (Depends-on): Add multiarch.
20396
20397 2009-01-21  Eric Blake  <ebb9@byu.net>
20398
20399         multiarch: avoid expand-before-require warning
20400         * modules/multiarch (configure.ac): Require, rather than expand,
20401         gl_MULTIARCH.
20402         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
20403         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
20404         enforce that all clients require it.  Partial reversion of
20405         2008-12-29 patch.
20406
20407         error: avoid expand-before-require warning
20408         * modules/errno (configure.ac): Require, rather than expand,
20409         gl_HEADER_ERRNO_H.
20410         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
20411         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
20412         enforce that all clients require it.
20413
20414         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
20415         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
20416         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
20417         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
20418
20419 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
20420
20421         Revert:
20422         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20423
20424         regex: do not depend on obsolete modules.
20425         * modules/regex: Remove memcmp and memmove.
20426
20427 2009-01-20  Bruno Haible  <bruno@clisp.org>
20428
20429         Make the 'link' module link on Windows NT 4.
20430         * lib/link.c (_WIN32_WINNT): Don't define.
20431         (CreateHardLinkFuncType): New type.
20432         (CreateHardLinkFunc, initialized): New variables.
20433         (initialize): New function.
20434         (link): Invoke CreateHardLink indirectly through the function pointer.
20435
20436 2009-01-20  Bruno Haible  <bruno@clisp.org>
20437
20438         Fix compilation failure on mingw.
20439         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
20440
20441 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
20442
20443         * doc/c-strtod.texi: Mention a couple of restrictions.
20444
20445 2009-01-20  Jim Meyering  <meyering@redhat.com>
20446
20447         gettimeofday: move more declarations out of functions
20448         * lib/gettimeofday.c: Move extern declarations of tzset and
20449         gmtime out of containing functions.  Prompted by Bruno Haible.
20450
20451 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20452
20453         regex: do not depend on obsolete modules.
20454         * modules/regex: Remove memcmp and memmove.
20455
20456 2009-01-19  Bruno Haible  <bruno@clisp.org>
20457
20458         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20459         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
20460         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20461         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
20462         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
20463
20464 2009-01-19  Bruno Haible  <bruno@clisp.org>
20465
20466         * tests/test-link.c: Include <errno.h>.
20467         (main): Exit with code 77 when a hard link cannot be created due to
20468         the file system.
20469         * tests/test-link.sh: Skip test when a hard link cannot be created due
20470         to the file system.
20471         Suggested by Eric Blake.
20472
20473 2009-01-19  Martin Lambers  <marlam@marlam.de>
20474
20475         * modules/link-tests: New file.
20476         * tests/test-link.sh: New file.
20477         * tests/test-link.c: New file.
20478
20479 2009-01-19  Eric Blake  <ebb9@byu.net>
20480
20481         doc: mention another function added in cygwin 1.7.0
20482         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
20483         Another new function in cygwin 1.7.
20484
20485 2009-01-19  Bruno Haible  <bruno@clisp.org>
20486
20487         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20488         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
20489         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20490         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20491         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20492         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20493         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20494         * m4/md4.m4 (gl_MD4): Likewise.
20495         * m4/md5.m4 (gl_MD5): Likewise.
20496         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20497         * m4/sha1.m4 (gl_SHA1): Likewise.
20498         * m4/sha256.m4 (gl_SHA256): Likewise.
20499         * m4/sha512.m4 (gl_SHA512): Likewise.
20500
20501 2009-01-19  Bruno Haible  <bruno@clisp.org>
20502
20503         * modules/uniname/uniname-tests (Depends-on): Add progname.
20504         * tests/uniname/test-uninames.c: Include progname.h.
20505         (main): Call set_program_name.
20506
20507         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20508         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20509         (main): Call set_program_name.
20510
20511         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20512         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20513         (main): Call set_program_name.
20514
20515         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20516         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20517         (main): Call set_program_name.
20518
20519         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20520         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20521         (main): Call set_program_name.
20522
20523         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20524         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20525         (main): Call set_program_name.
20526
20527         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20528         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20529         (main): Call set_program_name.
20530
20531         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20532         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20533         (main): Call set_program_name.
20534
20535         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20536         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20537         (main): Call set_program_name.
20538
20539 2009-01-19  Eric Blake  <ebb9@byu.net>
20540
20541         test-unistd: test previous patch
20542         * tests/test-unistd.c: Test *_FILENO macros.
20543
20544         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20545         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20546         Guarantee a definition.
20547         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20548         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20549         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20550         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20551         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20552         Likewise.
20553         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20554         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20555         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20556         Likewise.
20557         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20558         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20559         (STDERR_FILENO): Likewise.
20560         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20561         (STDERR_FILENO): Likewise.
20562         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20563         (STDERR_FILENO): Likewise.
20564         Reported by Elbert Pol.
20565
20566 2009-01-19  Eric Blake  <ebb9@byu.net>
20567
20568         doc: mention more functions added in cygwin 1.7.0
20569         * doc/posix-functions/abort.texi (abort): Update wording related
20570         to cygwin.
20571         * doc/posix-functions/daylight.texi (daylight): Likewise.
20572         * doc/posix-functions/optarg.texi (optarg): Likewise.
20573         * doc/posix-functions/optarg.texi (opterr): Likewise.
20574         * doc/posix-functions/optarg.texi (optind): Likewise.
20575         * doc/posix-functions/optarg.texi (optopt): Likewise.
20576         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20577         worked in 1.5.x, and was withdrawn in 1.7.
20578         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20579         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20580         cygwin versions.
20581         * doc/posix-functions/perror.texi (perror): Likewise.
20582         * doc/posix-functions/printf.texi (printf): Likewise.
20583         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20584         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20585         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20586         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20587         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20588         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20589         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20590         Likewise.
20591         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20592         Likewise.
20593         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20594         this function.
20595         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20596         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20597         Likewise.
20598         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20599         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20600         * doc/posix-functions/confstr.texi (confstr): Likewise.
20601         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20602         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20603         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20604         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20605         * doc/posix-functions/fputws.texi (fputws): Likewise.
20606         * doc/posix-functions/fwide.texi (fwide): Likewise.
20607         * doc/posix-functions/getwc.texi (getwc): Likewise.
20608         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20609         * doc/posix-functions/putwc.texi (putwc): Likewise.
20610         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20611         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20612         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20613         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20614         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20615         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20616         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20617         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20618         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20619         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20620         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20621
20622 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20623
20624         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20625         * lib/ioctl.c: Include <sys/ioctl.h>.
20626
20627 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20628
20629         * modules/getdate-tests (Depends-on): Add progname.
20630         * tests/test-getdate.c: Use progname module, to avoid link errors
20631         on non-glibc systems.
20632
20633 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20634
20635         * modules/filenamecat-tests (Depends-on): Add progname.
20636         * modules/fstrcmp-tests (Depends-on): Likewise.
20637
20638         * tests/test-filenamecat.c: Use progname module, to avoid link
20639         errors on non-glibc systems.
20640         * tests/test-fstrcmp.c: Likewise.
20641
20642 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20643
20644         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20645         * lib/gettimeofday.c: Move extern declaration out of function.
20646
20647 2009-01-18  Bruno Haible  <bruno@clisp.org>
20648
20649         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20650         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20651         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20652
20653 2009-01-18  Bruno Haible  <bruno@clisp.org>
20654
20655         * lib/strftime.c (MEMPCPY): Remove unused macro.
20656         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20657
20658 2009-01-18  Martin Lambers  <marlam@marlam.de>
20659
20660         New module 'link'.
20661         * lib/unistd.in.h (link): New declaration.
20662         * lib/link.c: New file.
20663         * m4/link.m4: New file.
20664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20665         HAVE_LINK.
20666         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20667         * modules/link: New file.
20668         * doc/posix-functions/link.texi: Mention the new module.
20669
20670 2009-01-18  Bruno Haible  <bruno@clisp.org>
20671
20672         * tests/test-avltree_list.c (main): Call set_program_name.
20673         * tests/test-avltree_oset.c (main): Likewise.
20674         * tests/test-obstack-printf.c: Include progname.h.
20675         (main): Call set_program_name.
20676         * tests/test-quotearg.c: Include progname.h.
20677         (main): Call set_program_name.
20678         * tests/test-xmemdup0.c: Include progname.h.
20679         (main): Call set_program_name.
20680
20681 2009-01-18  Bruno Haible  <bruno@clisp.org>
20682
20683         New module 'alphasort'.
20684         * lib/dirent.in.h (alphasort): New declaration.
20685         * lib/alphasort.c: New file, from glibc with modifications.
20686         * m4/alphasort.m4: New file.
20687         * modules/alphasort: New file.
20688         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
20689         HAVE_ALPHASORT.
20690         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
20691         HAVE_ALPHASORT.
20692         * doc/posix-functions/alphasort.texi: Mention the new module and the
20693         portability problems.
20694
20695 2009-01-18  Bruno Haible  <bruno@clisp.org>
20696
20697         New module 'scandir'.
20698         * lib/dirent.in.h (scandir): New declaration.
20699         * lib/scandir.c: New file, from glibc with modifications.
20700         * m4/scandir.m4: New file.
20701         * modules/scandir: New file.
20702         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
20703         HAVE_SCANDIR.
20704         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
20705         HAVE_SCANDIR.
20706         * doc/posix-functions/scandir.texi: Mention the new module and the
20707         portability problems.
20708
20709 2009-01-17  Bruno Haible  <bruno@clisp.org>
20710
20711         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
20712         Update documentation.
20713         (func_remove_suffix): Escape all dots in the suffix. Update
20714         documentation.
20715         (func_filter_filelist): Update documentation.
20716         Reported by Ralf Wildenhues.
20717
20718 2009-01-17  Bruno Haible  <bruno@clisp.org>
20719
20720         * modules/dprintf-posix-tests: New file.
20721         * tests/test-dprintf-posix.sh: New file.
20722         * tests/test-dprintf-posix.c: New file.
20723
20724         New modules 'dprintf', 'dprintf-posix'.
20725         * lib/stdio.in.h (dprintf): New declaration.
20726         * lib/dprintf.c: New file.
20727         * m4/dprintf.m4: New file.
20728         * m4/dprintf-posix.m4: New file.
20729         * modules/dprintf: New file.
20730         * modules/dprintf-posix: New file.
20731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
20732         HAVE_DPRINTF, REPLACE_DPRINTF.
20733         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
20734         HAVE_DPRINTF, REPLACE_DPRINTF.
20735         * doc/posix-functions/dprintf.texi: Mention the new modules.
20736
20737 2009-01-17  Bruno Haible  <bruno@clisp.org>
20738
20739         * modules/vdprintf-posix-tests: New file.
20740         * tests/test-vdprintf-posix.sh: New file.
20741         * tests/test-vdprintf-posix.c: New file.
20742
20743         New modules 'vdprintf', 'vdprintf-posix'.
20744         * lib/stdio.in.h (vdprintf): New declaration.
20745         * lib/vdprintf.c: New file.
20746         * m4/vdprintf.m4: New file.
20747         * m4/vdprintf-posix.m4: New file.
20748         * modules/vdprintf: New file.
20749         * modules/vdprintf-posix: New file.
20750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
20751         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20752         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
20753         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20754         * doc/posix-functions/vdprintf.texi: Mention the new modules.
20755
20756 2009-01-17  Bruno Haible  <bruno@clisp.org>
20757
20758         Fix replacement of fopen on mingw.
20759         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
20760         mingw.
20761
20762 2009-01-17  Bruno Haible  <bruno@clisp.org>
20763
20764         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
20765         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
20766
20767 2009-01-17  Bruno Haible  <bruno@clisp.org>
20768
20769         Avoid test-fflush2.sh failure on mingw.
20770         * tests/test-fflush2.c: Include binary-io.h.
20771         (main): Put standard input into binary mode.
20772         * modules/fflush-tests (Depends-on): Add binary-io.
20773
20774 2009-01-17  Bruno Haible  <bruno@clisp.org>
20775
20776         * lib/wchar.in.h: In another particular situation, include only the
20777         system's <wchar.h> file.
20778         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
20779         Reported by Albert Chin-A-Young <china@thewrittenword.com>
20780         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
20781
20782 2009-01-17  Bruno Haible  <bruno@clisp.org>
20783
20784         Support for stripping executables in --enable-relocatable.
20785         * build-aux/install-reloc: Expect one more argument, or an environment
20786         variable RELOC_STRIP_PROG. If set, strip the destination program and
20787         its wrapper.
20788         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
20789         RELOC_STRIP_PROG.
20790         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
20791         to set RELOCATABLE_STRIP.
20792         * NEWS: Mention the new Makefile requirement.
20793
20794 2009-01-17  Bruno Haible  <bruno@clisp.org>
20795
20796         * build-aux/install-reloc: Remove debugging information left over by
20797         C compiler on MacOS X.
20798
20799 2009-01-17  Bruno Haible  <bruno@clisp.org>
20800
20801         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
20802         * lib/progreloc.c (find_executable): Fix type of pointer passed to
20803         _NSGetExecutablePath.
20804
20805 2009-01-16  Jim Meyering  <meyering@redhat.com>
20806
20807         strerror: avoid warnings about discarding "const"
20808         * lib/strerror.c (rpl_strerror): Instead of returning a const
20809         string from each and every "case", use a variable, and add a single
20810         cast after the switch.
20811
20812 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
20813
20814         * lib/arpa_inet.in.h: Add extern "C" block for C++.
20815
20816 2009-01-16  Bruno Haible  <bruno@clisp.org>
20817
20818         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
20819         array initializer syntax that also works in C++ mode.
20820         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20821
20822 2009-01-16  Jim Meyering  <meyering@redhat.com>
20823
20824         poll: suppress a warning
20825         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
20826         to ignore "...unsigned expression < 0 is always false" warnings.
20827
20828 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
20829
20830         poll: remove declarations of unused variables
20831         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
20832         sockbuf and optlen.
20833
20834 2009-01-15  Bruno Haible  <bruno@clisp.org>
20835
20836         Make fflush-after-ungetc POSIX compliant on BSD systems.
20837         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
20838         (clear_ungetc_buffer): Implement also for other systems.
20839         (rpl_fflush): On glibc systems, invoke
20840         clear_ungetc_buffer_preserving_position. Otherwise, invoke
20841         clear_ungetc_buffer after fetching the stream's position, not before.
20842
20843 2009-01-15  Bruno Haible  <bruno@clisp.org>
20844
20845         Make fflush-after-ungetc POSIX compliant on glibc systems.
20846         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
20847         after ungetc.
20848         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
20849         (rpl_fflush): On glibc systems, simply call the system's fflush
20850         function after clearing the ungetc buffer.
20851         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
20852         Instead, lseek only to the end of file, then use the system's fseeko
20853         for the rest. On glibc systems, reset the EOF indicator bit.
20854
20855 2009-01-15  Jim Meyering  <meyering@redhat.com>
20856
20857         openmp.m4: revert quote-adding change, for portability to older autoconf
20858         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
20859         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
20860         Simon Josefsson noticed the problem when using autoconf-2.61.
20861
20862 2009-01-15  Bruno Haible  <bruno@clisp.org>
20863
20864         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
20865         * tests/test-fflush2.c (ASSERT): Always fail.
20866         (main): Add two tests for fflush() after ungetc(), taking into account
20867         the Austin Group's clarification.
20868         Suggested by Eric Blake.
20869
20870 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
20871
20872         mktime.m4: remove K&R-style function prototypes
20873         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
20874         for the Sun C++ compiler.
20875
20876 2009-01-14  Bruno Haible  <bruno@clisp.org>
20877
20878         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
20879         while including <wchar.h>.
20880         * lib/wchar.in.h: In two particular situations on HP-UX, include only
20881         the system's <wchar.h> file.
20882         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20883
20884 2009-01-14  Bruno Haible  <bruno@clisp.org>
20885
20886         * m4/csharp.m4: Don't mention gettext on the serial number line.
20887         * m4/csharpexec.m4: Likewise.
20888         * m4/eaccess.m4: Likewise.
20889         * m4/javaexec.m4: Likewise.
20890         * m4/sig_atomic_t.m4: Likewise.
20891         * m4/tmpdir.m4: Likewise.
20892         * m4/intldir.m4: Bump gettext version.
20893         * m4/lib-ld.m4: Likewise.
20894
20895 2009-01-14  Bruno Haible  <bruno@clisp.org>
20896
20897         * lib/progname.c (set_program_name): Add more comments.
20898         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20899
20900 2009-01-14  Simon Josefsson  <simon@josefsson.org>
20901
20902         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
20903         were sys/stat.h does not define it.
20904
20905 2009-01-14  Jim Meyering  <meyering@redhat.com>
20906
20907         many *.m4 files: improve m4 quoting
20908         99% of this change was performed by running the following commands:
20909         git ls-files | grep '\.m4$' | xargs perl -pi \
20910           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
20911           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20912           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20913           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
20914         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
20915         The remainder were to add Copyright dates, increment serial numbers,
20916         undo some changes in comments, exclude m4/intl.m4, and add quotes
20917         around the "1" in ",1" where the unusual spacing prohibited the
20918         above regexps from doing the job.  For more details, see
20919         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
20920         * m4/acl.m4: Modified.
20921         * m4/afs.m4: Likewise.
20922         * m4/alloca.m4: Likewise.
20923         * m4/argp.m4: Likewise.
20924         * m4/argz.m4: Likewise.
20925         * m4/atexit.m4: Likewise.
20926         * m4/bison-i18n.m4: Likewise.
20927         * m4/bison.m4: Likewise.
20928         * m4/byteswap.m4: Likewise.
20929         * m4/c-stack.m4: Likewise.
20930         * m4/c-strtod.m4: Likewise.
20931         * m4/calloc.m4: Likewise.
20932         * m4/canonicalize-lgpl.m4: Likewise.
20933         * m4/chown.m4: Likewise.
20934         * m4/clock_time.m4: Likewise.
20935         * m4/codeset.m4: Likewise.
20936         * m4/copy-file.m4: Likewise.
20937         * m4/csharp.m4: Likewise.
20938         * m4/csharpcomp.m4: Likewise.
20939         * m4/csharpexec.m4: Likewise.
20940         * m4/d-ino.m4: Likewise.
20941         * m4/d-type.m4: Likewise.
20942         * m4/dirfd.m4: Likewise.
20943         * m4/double-slash-root.m4: Likewise.
20944         * m4/eaccess.m4: Likewise.
20945         * m4/eealloc.m4: Likewise.
20946         * m4/environ.m4: Likewise.
20947         * m4/errno_h.m4: Likewise.
20948         * m4/euidaccess.m4: Likewise.
20949         * m4/execute.m4: Likewise.
20950         * m4/fatal-signal.m4: Likewise.
20951         * m4/fchdir.m4: Likewise.
20952         * m4/fcntl_h.m4: Likewise.
20953         * m4/fileblocks.m4: Likewise.
20954         * m4/filenamecat.m4: Likewise.
20955         * m4/findprog.m4: Likewise.
20956         * m4/flexmember.m4: Likewise.
20957         * m4/fnmatch.m4: Likewise.
20958         * m4/fopen.m4: Likewise.
20959         * m4/fpending.m4: Likewise.
20960         * m4/fprintf-posix.m4: Likewise.
20961         * m4/free.m4: Likewise.
20962         * m4/frexp.m4: Likewise.
20963         * m4/frexpl.m4: Likewise.
20964         * m4/fsusage.m4: Likewise.
20965         * m4/ftruncate.m4: Likewise.
20966         * m4/gc-camellia.m4: Likewise.
20967         * m4/gc-random.m4: Likewise.
20968         * m4/gc.m4: Likewise.
20969         * m4/getaddrinfo.m4: Likewise.
20970         * m4/getcwd-abort-bug.m4: Likewise.
20971         * m4/getcwd-path-max.m4: Likewise.
20972         * m4/getdate.m4: Likewise.
20973         * m4/getdomainname.m4: Likewise.
20974         * m4/getgroups.m4: Likewise.
20975         * m4/gethostname.m4: Likewise.
20976         * m4/gethrxtime.m4: Likewise.
20977         * m4/getline.m4: Likewise.
20978         * m4/getloadavg.m4: Likewise.
20979         * m4/getndelim2.m4: Likewise.
20980         * m4/getpass.m4: Likewise.
20981         * m4/gettext.m4: Likewise.
20982         * m4/gettime.m4: Likewise.
20983         * m4/gettimeofday.m4: Likewise.
20984         * m4/gnulib-common.m4: Likewise.
20985         * m4/group-member.m4: Likewise.
20986         * m4/host-os.m4: Likewise.
20987         * m4/iconv.m4: Likewise.
20988         * m4/iconv_open.m4: Likewise.
20989         * m4/inet_ntop.m4: Likewise.
20990         * m4/inet_pton.m4: Likewise.
20991         * m4/inline.m4: Likewise.
20992         * m4/intldir.m4: Likewise.
20993         * m4/intlmacosx.m4: Likewise.
20994         * m4/intmax.m4: Likewise.
20995         * m4/intmax_t.m4: Likewise.
20996         * m4/inttypes.m4: Likewise.
20997         * m4/inttypes_h.m4: Likewise.
20998         * m4/inttypes-pri.m4: Likewise.
20999         * m4/isapipe.m4: Likewise.
21000         * m4/isnand.m4: Likewise.
21001         * m4/isnanf.m4: Likewise.
21002         * m4/isnanl.m4: Likewise.
21003         * m4/javacomp.m4: Likewise.
21004         * m4/javaexec.m4: Likewise.
21005         * m4/jm-winsz1.m4: Likewise.
21006         * m4/jm-winsz2.m4: Likewise.
21007         * m4/lchown.m4: Likewise.
21008         * m4/lcmessage.m4: Likewise.
21009         * m4/ldexpl.m4: Likewise.
21010         * m4/lib-ld.m4: Likewise.
21011         * m4/lib-link.m4: Likewise.
21012         * m4/libsigsegv.m4: Likewise.
21013         * m4/link-follow.m4: Likewise.
21014         * m4/localcharset.m4: Likewise.
21015         * m4/locale-fr.m4: Likewise.
21016         * m4/locale-ja.m4: Likewise.
21017         * m4/locale-tr.m4: Likewise.
21018         * m4/locale-zh.m4: Likewise.
21019         * m4/lock.m4: Likewise.
21020         * m4/longlong.m4: Likewise.
21021         * m4/ls-mntd-fs.m4: Likewise.
21022         * m4/lstat.m4: Likewise.
21023         * m4/malloc.m4: Likewise.
21024         * m4/mathl.m4: Likewise.
21025         * m4/mbrtowc.m4: Likewise.
21026         * m4/mbstate_t.m4: Likewise.
21027         * m4/mbswidth.m4: Likewise.
21028         * m4/memchr.m4: Likewise.
21029         * m4/memcmp.m4: Likewise.
21030         * m4/memcpy.m4: Likewise.
21031         * m4/memmem.m4: Likewise.
21032         * m4/memmove.m4: Likewise.
21033         * m4/mempcpy.m4: Likewise.
21034         * m4/memrchr.m4: Likewise.
21035         * m4/memset.m4: Likewise.
21036         * m4/minmax.m4: Likewise.
21037         * m4/mkdir-slash.m4: Likewise.
21038         * m4/mkdtemp.m4: Likewise.
21039         * m4/mktime.m4: Likewise.
21040         * m4/mmap-anon.m4: Likewise.
21041         * m4/mountlist.m4: Likewise.
21042         * m4/nanosleep.m4: Likewise.
21043         * m4/nls.m4: Likewise.
21044         * m4/nocrash.m4: Likewise.
21045         * m4/open.m4: Likewise.
21046         * m4/openat.m4: Likewise.
21047         * m4/openmp.m4: Likewise.
21048         * m4/pathmax.m4: Likewise.
21049         * m4/perl.m4: Likewise.
21050         * m4/physmem.m4: Likewise.
21051         * m4/pipe.m4: Likewise.
21052         * m4/po.m4: Likewise.
21053         * m4/poll.m4: Likewise.
21054         * m4/posixtm.m4: Likewise.
21055         * m4/posixver.m4: Likewise.
21056         * m4/printf-frexp.m4: Likewise.
21057         * m4/printf-frexpl.m4: Likewise.
21058         * m4/printf-posix.m4: Likewise.
21059         * m4/printf-posix-rpl.m4: Likewise.
21060         * m4/printf.m4: Likewise.
21061         * m4/progtest.m4: Likewise.
21062         * m4/putenv.m4: Likewise.
21063         * m4/readline.m4: Likewise.
21064         * m4/readlink.m4: Likewise.
21065         * m4/readutmp.m4: Likewise.
21066         * m4/realloc.m4: Likewise.
21067         * m4/regex.m4: Likewise.
21068         * m4/relocatable.m4: Likewise.
21069         * m4/relocatable-lib.m4: Likewise.
21070         * m4/rename-dest-slash.m4: Likewise.
21071         * m4/rename.m4: Likewise.
21072         * m4/rmdir-errno.m4: Likewise.
21073         * m4/rmdir.m4: Likewise.
21074         * m4/roundf.m4: Likewise.
21075         * m4/roundl.m4: Likewise.
21076         * m4/rpmatch.m4: Likewise.
21077         * m4/save-cwd.m4: Likewise.
21078         * m4/selinux-selinux-h.m4: Likewise.
21079         * m4/setenv.m4: Likewise.
21080         * m4/settime.m4: Likewise.
21081         * m4/sig2str.m4: Likewise.
21082         * m4/sig_atomic_t.m4: Likewise.
21083         * m4/signalblocking.m4: Likewise.
21084         * m4/signbit.m4: Likewise.
21085         * m4/sigpipe.m4: Likewise.
21086         * m4/sockets.m4: Likewise.
21087         * m4/sockpfaf.m4: Likewise.
21088         * m4/st_dm_mode.m4: Likewise.
21089         * m4/stat-time.m4: Likewise.
21090         * m4/stdbool.m4: Likewise.
21091         * m4/stdint.m4: Likewise.
21092         * m4/stdint_h.m4: Likewise.
21093         * m4/stpcpy.m4: Likewise.
21094         * m4/stpncpy.m4: Likewise.
21095         * m4/strcase.m4: Likewise.
21096         * m4/strchrnul.m4: Likewise.
21097         * m4/strcspn.m4: Likewise.
21098         * m4/strdup.m4: Likewise.
21099         * m4/strftime.m4: Likewise.
21100         * m4/strndup.m4: Likewise.
21101         * m4/strnlen.m4: Likewise.
21102         * m4/strpbrk.m4: Likewise.
21103         * m4/strptime.m4: Likewise.
21104         * m4/strsep.m4: Likewise.
21105         * m4/strtod.m4: Likewise.
21106         * m4/strtoimax.m4: Likewise.
21107         * m4/strtok_r.m4: Likewise.
21108         * m4/strtol.m4: Likewise.
21109         * m4/strtoll.m4: Likewise.
21110         * m4/strtoul.m4: Likewise.
21111         * m4/strtoull.m4: Likewise.
21112         * m4/strtoumax.m4: Likewise.
21113         * m4/strverscmp.m4: Likewise.
21114         * m4/threadlib.m4: Likewise.
21115         * m4/timegm.m4: Likewise.
21116         * m4/tm_gmtoff.m4: Likewise.
21117         * m4/tmpdir.m4: Likewise.
21118         * m4/tmpfile.m4: Likewise.
21119         * m4/tzset.m4: Likewise.
21120         * m4/uintmax_t.m4: Likewise.
21121         * m4/unlinkdir.m4: Likewise.
21122         * m4/unlocked-io.m4: Likewise.
21123         * m4/uptime.m4: Likewise.
21124         * m4/userspec.m4: Likewise.
21125         * m4/utimbuf.m4: Likewise.
21126         * m4/utime.m4: Likewise.
21127         * m4/utimes-null.m4: Likewise.
21128         * m4/utimes.m4: Likewise.
21129         * m4/vararrays.m4: Likewise.
21130         * m4/vasnprintf.m4: Likewise.
21131         * m4/vfprintf-posix.m4: Likewise.
21132         * m4/vprintf-posix.m4: Likewise.
21133         * m4/wait-process.m4: Likewise.
21134         * m4/wchar_t.m4: Likewise.
21135         * m4/wint_t.m4: Likewise.
21136         * m4/write-any-file.m4: Likewise.
21137         * m4/yield.m4: Likewise.
21138
21139 2009-01-13  Bruno Haible  <bruno@clisp.org>
21140
21141         Avoid test-copy-file.sh failures when ACL support insufficient.
21142         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
21143         TESTS_ENVIRONMENT.
21144         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
21145         Reported by Jim Meyering.
21146
21147 2009-01-13  Bruno Haible  <bruno@clisp.org>
21148
21149         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
21150         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
21151         * modules/unistdio/u8-printf-parse (Files): Likewise.
21152         * modules/unistdio/u32-printf-parse (Files): Likewise.
21153         * modules/unistdio/ulc-printf-parse (Files): Likewise.
21154
21155 2009-01-13  Simon Josefsson  <simon@josefsson.org>
21156
21157         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
21158         and m4/inttypes_h.m4 too.
21159
21160 2009-01-12  Eric Blake  <ebb9@byu.net>
21161
21162         tests: IRIX 6.2 cc can't compile -0.0 into .data
21163         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
21164         rather than at compile-time.
21165         * tests/test-floorl.c (minus_zero): Likewise.
21166         * tests/test-frexpl.c (minus_zero): Likewise.
21167         * tests/test-isnan.c (minus_zerol): Likewise.
21168         * tests/test-isnanl.h (minus_zero): Likewise.
21169         * tests/test-ldexpl.c (minus_zero): Likewise.
21170         * tests/test-roundl.c (minus_zero): Likewise.
21171         * tests/test-signbit.c (minus_zerol): Likewise.
21172         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21173         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21174         * tests/test-truncl.c (minus_zero): Likewise.
21175         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21176         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21177         Reported by Tom G. Christensen and Nelson H. F. Beebe.
21178
21179 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21180
21181         regex: fix glibc bug 9697
21182         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
21183         handling.
21184
21185 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21186
21187         regex: fix glibc bug 697
21188         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
21189         being NULL also if there are no backreferences.
21190
21191 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21192
21193         regex: merge glibc changes
21194         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
21195         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
21196         re_string_skip_chars, re_string_reconstruct): Likewise.
21197         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
21198
21199 2009-01-07  Jim Meyering  <meyering@redhat.com>
21200
21201         poll: filter through cppi
21202         * lib/poll.c: Indent cpp directives to reflect nesting.
21203
21204 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
21205
21206         poll: don't return uninitialized
21207         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
21208
21209 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
21210
21211         avoid compile failure on AIX 6.1
21212         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
21213         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
21214
21215 2009-01-04  Jim Meyering  <meyering@redhat.com>
21216
21217         remove duplicate inclusion of <stdio.h>
21218         * tests/test-fprintf-posix.c: Likewise.
21219         * tests/test-printf-posix.c: Likewise.
21220         * tests/test-snprintf-posix.c: Likewise.
21221         * tests/test-sprintf-posix.c: Likewise.
21222         * tests/test-vasprintf-posix.c: Likewise.
21223         * tests/test-vfprintf-posix.c: Likewise.
21224         * tests/test-vprintf-posix.c: Likewise.
21225         * tests/test-vsnprintf-posix.c: Likewise.
21226         * tests/test-vsprintf-posix.c: Likewise.
21227
21228 2009-01-03  Jim Meyering  <meyering@redhat.com>
21229
21230         gnulib-tool: fix sed-based filtering
21231         * gnulib-tool (func_filter_filelist): Remove extra backslash
21232         in sed_fff_filter definition.
21233
21234 2009-01-02  Jim Meyering  <meyering@redhat.com>
21235
21236         strftime: avoid compilation failure on Solaris 2.6
21237         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
21238         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
21239         Don't #define mbrlen or mbsinit, since now they're guaranteed to
21240         be available.  Reported by Tom G. Christensen.  Details in
21241         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
21242
21243 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21244             Bruno Haible  <bruno@clisp.org>
21245
21246         Speed up gnulib-tool by doing more string processing through shell
21247         built-ins.
21248         * gnulib-tool (fast_func_append): New variable.
21249         (func_remove_prefix, func_remove_suffix): New functions.
21250         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
21251         (func_filter_filelist): New function.
21252         (func_get_dependencies): Use func_remove_suffix instead of sed.
21253         (func_get_automake_snippet): Use func_filter_filelist instead of a
21254         subshell and sed invocation.
21255
21256 2009-01-01  Bruno Haible  <bruno@clisp.org>
21257
21258         Fix a security bug.
21259         * gnulib-tool (func_import, import, update): Don't allow the characters
21260         '"', '$', '`', '\' in macro arguments that become part of commands that
21261         are evaluated.
21262
21263 2009-01-01  Bruno Haible  <bruno@clisp.org>
21264
21265         * gnulib-tool (func_reset_sigpipe): Add more comments.
21266
21267 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21268
21269         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
21270         func_emit_tests_Makefile_am, func_import): Abort loops early if we
21271         already know the answer.
21272
21273 2009-01-01  Jim Meyering  <meyering@redhat.com>
21274
21275         * lib/version-etc.c (version_etc_va): Update copyright year.
21276
21277 2008-12-30  Bruno Haible  <bruno@clisp.org>
21278
21279         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
21280         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
21281         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
21282
21283 2008-12-29  Eric Blake  <ebb9@byu.net>
21284
21285         multiarch: avoid autoconf AC_REQUIRE bug
21286         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
21287         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
21288         2.63 and older.
21289         Reported by Bruno Haible, and analyzed in
21290         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
21291
21292 2008-12-29  Bruno Haible  <bruno@clisp.org>
21293
21294         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
21295         files in subdirectories correctly.
21296         Reported by Ralf Wildenhues.
21297
21298 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21299
21300         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
21301         rather than 'join FILE -', for Solaris join.
21302
21303 2008-12-29  Bruno Haible  <bruno@clisp.org>
21304
21305         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
21306         quoting.
21307         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21308         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21309         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21310         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
21311         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21312         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21313         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21314         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21315         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21316         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21317         * m4/nls.m4 (AM_NLS): Likewise.
21318         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
21319         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21320         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21321         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21322         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21323         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21324         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
21325         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21326         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21327         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21328         * m4/xsize.m4 (gl_XSIZE): Likewise.
21329         Suggested by Jim Meyering.
21330
21331 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21332
21333         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
21334         * lib/parse-duration.c: use a switch instead of cascading if's.
21335
21336 2008-12-29  Eric Blake  <ebb9@byu.net>
21337
21338         wchar.h: supply WEOF on Irix 5.3
21339         * lib/wchar.in.h (wint_t): Also supply WEOF.
21340         * lib/wctype.in.h (wint_t): Likewise.
21341         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
21342         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
21343         Reported by Tom G. Christensen.
21344
21345 2008-12-26  Bruno Haible  <bruno@clisp.org>
21346
21347         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
21348         i486, i586, i686.
21349
21350 2008-12-26  Bruno Haible  <bruno@clisp.org>
21351
21352         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
21353
21354 2008-12-26  Bruno Haible  <bruno@clisp.org>
21355
21356         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
21357         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
21358         not __STDC_CONSTANT_MACROS.
21359         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21360
21361 2008-12-25  Bruno Haible  <bruno@clisp.org>
21362
21363         Add support for universal builds to vasnprintf.
21364         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
21365         universal builds, guess no.
21366         * modules/vasnprintf-posix (Depends-on): Add multiarch.
21367         * modules/vasprintf-posix (Depends-on): Likewise.
21368         * modules/fprintf-posix (Depends-on): Likewise.
21369         * modules/vfprintf-posix (Depends-on): Likewise.
21370         * modules/snprintf-posix (Depends-on): Likewise.
21371         * modules/vsnprintf-posix (Depends-on): Likewise.
21372         * modules/sprintf-posix (Depends-on): Likewise.
21373         * modules/vsprintf-posix (Depends-on): Likewise.
21374         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21375         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21376         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21377         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21378         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21379         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21380         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21381
21382         Add support for universal builds to <inttypes.h>.
21383         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
21384         _SCNu64_PREFIX): In Apple
21385         universal builds, define directly, using _LP64.
21386         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
21387         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
21388         * modules/inttypes (Depends-on): Add multiarch.
21389         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21390
21391         Add support for universal builds to <stdint.h>.
21392         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
21393         universal builds, define directly, using _LP64.
21394         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
21395         Apple universal builds, don't test for the size and suffix of ptrdiff_t
21396         and size_t.
21397         * modules/stdint (Depends-on): Add multiarch.
21398         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21399
21400         New module 'multiarch'.
21401         * modules/multiarch: New file.
21402         * m4/multiarch.m4: New file.
21403
21404 2008-12-25  Bruno Haible  <bruno@clisp.org>
21405
21406         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
21407
21408 2008-12-25  Bruno Haible  <bruno@clisp.org>
21409
21410         * modules/btowc (License): Relicense under LGPLv2+.
21411         * modules/mbsinit (License): Likewise.
21412         * modules/mbrtowc (License): Likewise.
21413         * modules/wcrtomb (License): Likewise.
21414         * modules/streq (License): Likewise.
21415         Reported by David Lutterkort <lutter@redhat.com>.
21416
21417 2008-12-23  Bruno Haible  <bruno@clisp.org>
21418
21419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
21420
21421 2008-12-23  Bruno Haible  <bruno@clisp.org>
21422
21423         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
21424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
21425         GETADDRINFO_LIB, not in LIBS.
21426         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
21427         * modules/canon-host (Link): Likewise.
21428         * NEWS: Mention the change.
21429         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
21430         GETADDRINFO_LIB.
21431
21432 2008-12-22  Bruno Haible  <bruno@clisp.org>
21433
21434         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
21435         * doc/posix-functions/iswalpha_l.texi: Likewise.
21436         * doc/posix-functions/iswblank_l.texi: Likewise.
21437         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21438         * doc/posix-functions/iswctype_l.texi: Likewise.
21439         * doc/posix-functions/iswdigit_l.texi: Likewise.
21440         * doc/posix-functions/iswgraph_l.texi: Likewise.
21441         * doc/posix-functions/iswlower_l.texi: Likewise.
21442         * doc/posix-functions/iswprint_l.texi: Likewise.
21443         * doc/posix-functions/iswpunct_l.texi: Likewise.
21444         * doc/posix-functions/iswspace_l.texi: Likewise.
21445         * doc/posix-functions/iswupper_l.texi: Likewise.
21446         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21447         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
21448         * doc/posix-functions/open_wmemstream.texi: Likewise.
21449         * doc/posix-functions/swscanf.texi: Likewise.
21450         * doc/posix-functions/towctrans_l.texi: Likewise.
21451         * doc/posix-functions/towlower.texi: Likewise.
21452         * doc/posix-functions/towlower_l.texi: Likewise.
21453         * doc/posix-functions/towupper.texi: Likewise.
21454         * doc/posix-functions/towupper_l.texi: Likewise.
21455         * doc/posix-functions/vfwprintf.texi: Likewise.
21456         * doc/posix-functions/vfwscanf.texi: Likewise.
21457         * doc/posix-functions/vswscanf.texi: Likewise.
21458         * doc/posix-functions/vwprintf.texi: Likewise.
21459         * doc/posix-functions/vwscanf.texi: Likewise.
21460         * doc/posix-functions/wcpcpy.texi: Likewise.
21461         * doc/posix-functions/wcpncpy.texi: Likewise.
21462         * doc/posix-functions/wcscasecmp.texi: Likewise.
21463         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
21464         * doc/posix-functions/wcscoll_l.texi: Likewise.
21465         * doc/posix-functions/wcsdup.texi: Likewise.
21466         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21467         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
21468         * doc/posix-functions/wcsnlen.texi: Likewise.
21469         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21470         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21471         * doc/posix-functions/wctrans_l.texi: Likewise.
21472         * doc/posix-functions/wctype_l.texi: Likewise.
21473         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
21474         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
21475         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
21476         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
21477         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
21478         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
21479         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
21480         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
21481         * doc/glibc-functions/wcschrnul.texi: Likewise.
21482         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21483         * doc/glibc-functions/wcstod_l.texi: Likewise.
21484         * doc/glibc-functions/wcstof_l.texi: Likewise.
21485         * doc/glibc-functions/wcstol_l.texi: Likewise.
21486         * doc/glibc-functions/wcstold_l.texi: Likewise.
21487         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21488         * doc/glibc-functions/wcstoq.texi: Likewise.
21489         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21490         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21491         * doc/glibc-functions/wcstouq.texi: Likewise.
21492         * doc/glibc-functions/wmempcpy.texi: Likewise.
21493
21494 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21495             Eric Blake  <ebb9@byu.net>
21496             Paolo Bonzini  <bonzini@gnu.org>
21497             Bruno Haible  <bruno@clisp.org>
21498
21499         Make c-stack work on Haiku.
21500         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21501         (c_stack_action): Use SA_ONSTACK flag.
21502
21503 2008-12-22  Bruno Haible  <bruno@clisp.org>
21504
21505         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21506
21507 2008-12-22  Bruno Haible  <bruno@clisp.org>
21508
21509         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21510         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21511         being overridden.
21512         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21513         New macros.
21514         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21516         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21517         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21518
21519 2008-12-22  Bruno Haible  <bruno@clisp.org>
21520
21521         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21522         from test code.
21523
21524 2008-12-22  Eric Blake  <ebb9@byu.net>
21525
21526         Avoid gcc warnings on cygwin.
21527         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21528         Avoid unused variable.
21529         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21530         Likewise.
21531
21532 2008-12-22  Bruno Haible  <bruno@clisp.org>
21533
21534         Remove HAVE_MBRTOWC conditionals.
21535         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21536         (mbscasecmp): Assume mbrtowc function.
21537         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21538         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21539         * lib/mbschr.c: Include mbuiter.h unconditionally.
21540         (mbschr): Assume mbrtowc function.
21541         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21542         (mbscspn): Assume mbrtowc function.
21543         * lib/mbslen.c: Include mbuiter.h unconditionally.
21544         (mbslen): Assume mbrtowc function.
21545         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21546         (mbsncasecmp): Assume mbrtowc function.
21547         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21548         (mbsnlen): Assume mbrtowc function.
21549         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21550         (mbspbrk): Assume mbrtowc function.
21551         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21552         (mbspcasecmp): Assume mbrtowc function.
21553         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21554         (mbsrchr): Assume mbrtowc function.
21555         * lib/mbssep.c: Include mbuiter.h unconditionally.
21556         (mbssep): Assume mbrtowc function.
21557         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21558         (mbsspn): Assume mbrtowc function.
21559         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21560         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21561         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21562         (mbstok_r): Assume mbrtowc function.
21563         * lib/propername.c: Include mbuiter.h unconditionally.
21564         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21565         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21566         (trim2): Assume mbrtowc function.
21567         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21568         (mbsnwidth): Assume mbrtowc function.
21569         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21570         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21571         fallback definitions.
21572         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21573
21574 2008-12-22  Bruno Haible  <bruno@clisp.org>
21575
21576         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21577
21578 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21579
21580         * modules/regex: Request emulations for the mb*/wc* functions we need.
21581         * m4/regex.m4: Don't look for those functions here.
21582         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21583
21584 2008-12-22  Bruno Haible  <bruno@clisp.org>
21585
21586         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21587
21588 2008-12-21  Bruno Haible  <bruno@clisp.org>
21589
21590         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21591         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21592         (Include): Remove conditionalization.
21593         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21594         (Include): Remove conditionalization.
21595         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21596         (Include): Remove conditionalization.
21597         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21598         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21599         * NEWS: Mention the change.
21600         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21601         via Sergey Poznyakoff <gray@gnu.org.ua>.
21602
21603 2008-12-21  Bruno Haible  <bruno@clisp.org>
21604
21605         * MODULES.html.sh (Extended multibyte and wide character utilities
21606         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21607         wcrtomb, wcsrtombs.
21608         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21609         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21610         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21611         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21612
21613 2008-12-21  Bruno Haible  <bruno@clisp.org>
21614
21615         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21616
21617 2008-12-21  Bruno Haible  <bruno@clisp.org>
21618
21619         * modules/wcsnrtombs-tests: New file.
21620         * tests/test-wcsnrtombs1.sh: New file.
21621         * tests/test-wcsnrtombs2.sh: New file.
21622         * tests/test-wcsnrtombs3.sh: New file.
21623         * tests/test-wcsnrtombs4.sh: New file.
21624         * tests/test-wcsnrtombs.c: New file.
21625
21626         New module 'wcsnrtombs'.
21627         * lib/wchar.in.h (wcsnrtombs): New declaration.
21628         * lib/wcsnrtombs.c: New file.
21629         * lib/wcsrtombs-state.c: New file.
21630         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21631         (internal_state): Remove variable.
21632         * m4/wcsnrtombs.m4: New file.
21633         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21634         compilation units.
21635         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21636         HAVE_WCSNRTOMBS.
21637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21638         HAVE_WCSNRTOMBS.
21639         * modules/wcsnrtombs: New file.
21640         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21641         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21642
21643 2008-12-21  Bruno Haible  <bruno@clisp.org>
21644
21645         * modules/wcsrtombs-tests: New file.
21646         * tests/test-wcsrtombs1.sh: New file.
21647         * tests/test-wcsrtombs2.sh: New file.
21648         * tests/test-wcsrtombs3.sh: New file.
21649         * tests/test-wcsrtombs4.sh: New file.
21650         * tests/test-wcsrtombs.c: New file.
21651
21652         New module 'wcsrtombs'.
21653         * lib/wchar.in.h (wcsrtombs): New declaration.
21654         * lib/wcsrtombs.c: New file.
21655         * m4/wcsrtombs.m4: New file.
21656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21657         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21659         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21660         * modules/wcsrtombs: New file.
21661         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21662         bugs.
21663
21664 2008-12-21  Bruno Haible  <bruno@clisp.org>
21665
21666         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21667         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21668         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21669         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21670         if not correct.
21671         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21672         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21673         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21674         m4/locale-zh.m4, m4/codeset.m4.
21675         * doc/posix-functions/wcrtomb.texi: Document the bug.
21676
21677 2008-12-21  Bruno Haible  <bruno@clisp.org>
21678
21679         Work around a btowc() bug on IRIX 6.5.
21680         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
21681         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
21682         REPLACE_WTOBC if not.
21683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
21684         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
21685         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
21686
21687 2008-12-21  Bruno Haible  <bruno@clisp.org>
21688
21689         * modules/wcrtomb-tests: New file.
21690         * tests/test-wcrtomb.sh: New file.
21691         * tests/test-wcrtomb.c: New file.
21692
21693         New module 'wcrtomb'.
21694         * lib/wchar.in.h (wcrtomb): New declaration.
21695         * lib/wcrtomb.c: New file.
21696         * m4/wcrtomb.m4: New file.
21697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
21698         HAVE_WCRTOMB.
21699         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
21700         HAVE_WCRTOMB.
21701         * modules/wcrtomb: New file.
21702         * doc/posix-functions/wcrtomb.texi: Mention the new module.
21703
21704 2008-12-21  Bruno Haible  <bruno@clisp.org>
21705
21706         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
21707         * modules/mbsrtowcs (Files): Likewise.
21708         * modules/wctob (Files): Likewise.
21709         * modules/c-strcase-tests (Files): Likewise.
21710         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21711         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21712         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21713         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21714         * modules/vasnprintf-posix-tests (Files): Likewise.
21715
21716 2008-12-21  William Pursell  <bill.pursell@gmail.com>
21717
21718         gitlog-to-changelog: pass all command-line arguments to git-log
21719         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
21720         it is sometimes convenient to filter the commits in various ways.
21721         gitlog-to-changelog only allows --since to specify a start date,
21722         but git-log itself supports many other filtering mechanisms.
21723         At the moment, I want to filter by branch name.  Rather than
21724         adding a --branch option to gitlog-to-changelog, it seems more
21725         flexible to simply pass all options directly to git-log and let
21726         git do the work.  Notice that this effectively makes --since a
21727         redundant option for gitlog-to-changelog, but removing it would
21728         require current usage to change since calls would then require
21729         an additional '--'.
21730
21731 2008-12-21  Bruno Haible  <bruno@clisp.org>
21732
21733         * modules/mbsnrtowcs-tests: New file.
21734         * tests/test-mbsnrtowcs1.sh: New file.
21735         * tests/test-mbsnrtowcs2.sh: New file.
21736         * tests/test-mbsnrtowcs3.sh: New file.
21737         * tests/test-mbsnrtowcs4.sh: New file.
21738         * tests/test-mbsnrtowcs.c: New file.
21739
21740         New module 'mbsnrtowcs'.
21741         * lib/wchar.in.h (mbsnrtowcs): New declaration.
21742         * lib/mbsnrtowcs.c: New file.
21743         * lib/mbsrtowcs-state.c: New file.
21744         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
21745         (internal_state): Remove variable.
21746         * m4/mbsnrtowcs.m4: New file.
21747         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
21748         compilation units.
21749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
21750         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21751         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
21752         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21753         * modules/mbsnrtowcs: New file.
21754         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
21755         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
21756         portability problem.
21757
21758 2008-12-21  Bruno Haible  <bruno@clisp.org>
21759
21760         Work around mbsrtowcs bug.
21761         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
21762         (gl_FUNC_MBSRTOWCS): Invoke it.
21763         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21764         m4/locale-zh.m4.
21765         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
21766
21767 2008-12-21  Bruno Haible  <bruno@clisp.org>
21768
21769         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
21770
21771 2008-12-21  Bruno Haible  <bruno@clisp.org>
21772
21773         Update doc for AIX.
21774         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
21775         16-bit wchar_t type.
21776         * doc/posix-functions/btowc.texi: Likewise.
21777         * doc/posix-functions/fgetwc.texi: Likewise.
21778         * doc/posix-functions/fgetws.texi: Likewise.
21779         * doc/posix-functions/fputwc.texi: Likewise.
21780         * doc/posix-functions/fputws.texi: Likewise.
21781         * doc/posix-functions/fwide.texi: Likewise.
21782         * doc/posix-functions/fwprintf.texi: Likewise.
21783         * doc/posix-functions/fwscanf.texi: Likewise.
21784         * doc/posix-functions/getwchar.texi: Likewise.
21785         * doc/posix-functions/getwc.texi: Likewise.
21786         * doc/posix-functions/iswalnum.texi: Likewise.
21787         * doc/posix-functions/iswalpha.texi: Likewise.
21788         * doc/posix-functions/iswblank.texi: Likewise.
21789         * doc/posix-functions/iswcntrl.texi: Likewise.
21790         * doc/posix-functions/iswctype.texi: Likewise.
21791         * doc/posix-functions/iswdigit.texi: Likewise.
21792         * doc/posix-functions/iswgraph.texi: Likewise.
21793         * doc/posix-functions/iswlower.texi: Likewise.
21794         * doc/posix-functions/iswprint.texi: Likewise.
21795         * doc/posix-functions/iswpunct.texi: Likewise.
21796         * doc/posix-functions/iswspace.texi: Likewise.
21797         * doc/posix-functions/iswupper.texi: Likewise.
21798         * doc/posix-functions/iswxdigit.texi: Likewise.
21799         * doc/posix-functions/mbrtowc.texi: Likewise.
21800         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21801         * doc/posix-functions/mbstowcs.texi: Likewise.
21802         * doc/posix-functions/mbtowc.texi: Likewise.
21803         * doc/posix-functions/putwchar.texi: Likewise.
21804         * doc/posix-functions/putwc.texi: Likewise.
21805         * doc/posix-functions/swprintf.texi: Likewise.
21806         * doc/posix-functions/tolower.texi: Likewise.
21807         * doc/posix-functions/toupper.texi: Likewise.
21808         * doc/posix-functions/towctrans.texi: Likewise.
21809         * doc/posix-functions/ungetwc.texi: Likewise.
21810         * doc/posix-functions/vswprintf.texi: Likewise.
21811         * doc/posix-functions/wcrtomb.texi: Likewise.
21812         * doc/posix-functions/wcscat.texi: Likewise.
21813         * doc/posix-functions/wcschr.texi: Likewise.
21814         * doc/posix-functions/wcscmp.texi: Likewise.
21815         * doc/posix-functions/wcscoll.texi: Likewise.
21816         * doc/posix-functions/wcscpy.texi: Likewise.
21817         * doc/posix-functions/wcscspn.texi: Likewise.
21818         * doc/posix-functions/wcsftime.texi: Likewise.
21819         * doc/posix-functions/wcslen.texi: Likewise.
21820         * doc/posix-functions/wcsncat.texi: Likewise.
21821         * doc/posix-functions/wcsncmp.texi: Likewise.
21822         * doc/posix-functions/wcsncpy.texi: Likewise.
21823         * doc/posix-functions/wcspbrk.texi: Likewise.
21824         * doc/posix-functions/wcsrchr.texi: Likewise.
21825         * doc/posix-functions/wcsrtombs.texi: Likewise.
21826         * doc/posix-functions/wcsspn.texi: Likewise.
21827         * doc/posix-functions/wcsstr.texi: Likewise.
21828         * doc/posix-functions/wcstod.texi: Likewise.
21829         * doc/posix-functions/wcstof.texi: Likewise.
21830         * doc/posix-functions/wcstoimax.texi: Likewise.
21831         * doc/posix-functions/wcstok.texi: Likewise.
21832         * doc/posix-functions/wcstold.texi: Likewise.
21833         * doc/posix-functions/wcstoll.texi: Likewise.
21834         * doc/posix-functions/wcstol.texi: Likewise.
21835         * doc/posix-functions/wcstombs.texi: Likewise.
21836         * doc/posix-functions/wcstoull.texi: Likewise.
21837         * doc/posix-functions/wcstoul.texi: Likewise.
21838         * doc/posix-functions/wcstoumax.texi: Likewise.
21839         * doc/posix-functions/wcswidth.texi: Likewise.
21840         * doc/posix-functions/wcsxfrm.texi: Likewise.
21841         * doc/posix-functions/wctob.texi: Likewise.
21842         * doc/posix-functions/wctomb.texi: Likewise.
21843         * doc/posix-functions/wctrans.texi: Likewise.
21844         * doc/posix-functions/wctype.texi: Likewise.
21845         * doc/posix-functions/wcwidth.texi: Likewise.
21846         * doc/posix-functions/wmemchr.texi: Likewise.
21847         * doc/posix-functions/wmemcmp.texi: Likewise.
21848         * doc/posix-functions/wmemcpy.texi: Likewise.
21849         * doc/posix-functions/wmemmove.texi: Likewise.
21850         * doc/posix-functions/wmemset.texi: Likewise.
21851         * doc/posix-functions/wprintf.texi: Likewise.
21852         * doc/posix-functions/wscanf.texi: Likewise.
21853
21854 2008-12-21  Bruno Haible  <bruno@clisp.org>
21855
21856         Update doc for HP-UX 11.11.
21857         * doc/posix-functions/btowc.texi: Clarify that the function is missing
21858         in HP-UX version 11.00, not in all versions of HP-UX 11.
21859         * doc/posix-functions/fwide.texi: Likewise.
21860         * doc/posix-functions/fwprintf.texi: Likewise.
21861         * doc/posix-functions/fwscanf.texi: Likewise.
21862         * doc/posix-functions/inet_ntop.texi: Likewise.
21863         * doc/posix-functions/inet_pton.texi: Likewise.
21864         * doc/posix-functions/mbrlen.texi: Likewise.
21865         * doc/posix-functions/mbrtowc.texi: Likewise.
21866         * doc/posix-functions/mbsinit.texi: Likewise.
21867         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21868         * doc/posix-functions/swprintf.texi: Likewise.
21869         * doc/posix-functions/swscanf.texi: Likewise.
21870         * doc/posix-functions/towctrans.texi: Likewise.
21871         * doc/posix-functions/vfwprintf.texi: Likewise.
21872         * doc/posix-functions/vswprintf.texi: Likewise.
21873         * doc/posix-functions/vwprintf.texi: Likewise.
21874         * doc/posix-functions/wcrtomb.texi: Likewise.
21875         * doc/posix-functions/wcsrtombs.texi: Likewise.
21876         * doc/posix-functions/wcsstr.texi: Likewise.
21877         * doc/posix-functions/wctob.texi: Likewise.
21878         * doc/posix-functions/wctrans.texi: Likewise.
21879         * doc/posix-functions/wmemchr.texi: Likewise.
21880         * doc/posix-functions/wmemcmp.texi: Likewise.
21881         * doc/posix-functions/wmemcpy.texi: Likewise.
21882         * doc/posix-functions/wmemmove.texi: Likewise.
21883         * doc/posix-functions/wmemset.texi: Likewise.
21884         * doc/posix-functions/wprintf.texi: Likewise.
21885         * doc/posix-functions/wscanf.texi: Likewise.
21886
21887 2008-12-21  Bruno Haible  <bruno@clisp.org>
21888
21889         Work around a portability problem.
21890         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
21891         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
21892
21893 2008-12-20  Bruno Haible  <bruno@clisp.org>
21894
21895         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
21896         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
21897         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
21898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
21899         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
21900
21901         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
21902         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
21903         set.
21904         (GNULIB_defined_mbstate_t): New macro.
21905         (mbsinit): Redefine if REPLACE_MBSINIT is set.
21906         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
21907         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
21908         reuses the system's mbrtowc function but works around the bugs.
21909         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
21910         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
21911         macros.
21912         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
21913         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
21914         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
21915         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
21916         REPLACE_MBSINIT if mbsinit needs to be overridden.
21917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
21918         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21919         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
21920         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21921         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21922         m4/locale-zh.m4.
21923         (Depends): Add mbsinit.
21924         * modules/mbsinit (Depends): Add mbrtowc.
21925         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
21926
21927 2008-12-20  Bruno Haible  <bruno@clisp.org>
21928
21929         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
21930         so that there are no conversion errors on AIX.
21931         * tests/test-mbsrtowcs.c (main): LIkewise.
21932
21933 2008-12-20  Bruno Haible  <bruno@clisp.org>
21934
21935         Work around wctob bug on Solaris <= 9.
21936         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
21937         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
21938         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
21939         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
21940         * modules/wctob (Files): Add m4/locale-fr.m4.
21941         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
21942
21943 2008-12-20  Bruno Haible  <bruno@clisp.org>
21944
21945         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
21946         /dev/null.
21947         * tests/test-select-in.sh: Likewise.
21948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21949
21950 2008-12-20  Bruno Haible  <bruno@clisp.org>
21951
21952         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
21953         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
21954         Cygwin 1.5.x.
21955
21956 2008-12-20  Bruno Haible  <bruno@clisp.org>
21957
21958         Ensure mbstate_t is defined on HP-UX 11.11.
21959         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
21960         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
21961         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
21962         AC_USE_SYSTEM_EXTENSIONS.
21963         * modules/fnmatch (Depends-on): Add extensions.
21964         * modules/mbrlen (Depends-on): Likewise.
21965         * modules/mbrtowc (Depends-on): Likewise.
21966         * modules/mbsinit (Depends-on): Likewise.
21967         * modules/mbsrtowcs (Depends-on): Likewise.
21968         * modules/mbswidth (Depends-on): Likewise.
21969         * modules/quotearg (Depends-on): Likewise.
21970         * modules/strftime (Depends-on): Likewise.
21971
21972 2008-12-20  Bruno Haible  <bruno@clisp.org>
21973
21974         Ensure wctob is declared on IRIX 6.5.
21975         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
21976         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
21977         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
21978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
21979         of HAVE_WCTOB.
21980         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
21981         HAVE_WCTOB.
21982         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
21983
21984 2008-12-19  Bruno Haible  <bruno@clisp.org>
21985
21986         * modules/mbsrtowcs-tests: New file.
21987         * tests/test-mbsrtowcs1.sh: New file.
21988         * tests/test-mbsrtowcs2.sh: New file.
21989         * tests/test-mbsrtowcs3.sh: New file.
21990         * tests/test-mbsrtowcs4.sh: New file.
21991         * tests/test-mbsrtowcs.c: New file.
21992
21993         New module 'mbsrtowcs'.
21994         * lib/wchar.in.h (mbsrtowcs): New declaration.
21995         * lib/mbsrtowcs.c: New file.
21996         * m4/mbsrtowcs.m4: New file.
21997         * modules/mbsrtowcs: New file.
21998         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
21999         HAVE_MBSRTOWCS.
22000         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
22001         HAVE_MBSRTOWCS.
22002         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
22003
22004 2008-12-19  Bruno Haible  <bruno@clisp.org>
22005
22006         New module 'mbrlen'.
22007         * lib/wchar.in.h (mbrlen): New declaration.
22008         * lib/mbrlen.c: New file.
22009         * m4/mbrlen.m4: New file.
22010         * modules/mbrlen: New file.
22011         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
22012         HAVE_MBRLEN.
22013         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
22014         HAVE_MBRLEN.
22015         * doc/posix-functions/mbrlen.texi: Document the new module.
22016
22017 2008-12-19  Bruno Haible  <bruno@clisp.org>
22018
22019         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
22020         * modules/mbrtowc (Depends-on): Add verify.
22021         Suggested by Paul Eggert.
22022
22023 2008-12-18  Bruno Haible  <bruno@clisp.org>
22024
22025         * modules/mbsinit-tests: New file.
22026         * tests/test-mbsinit.sh: New file.
22027         * tests/test-mbsinit.c: New file.
22028
22029 2008-12-18  Bruno Haible  <bruno@clisp.org>
22030
22031         * modules/mbrtowc-tests: New file.
22032         * tests/test-mbrtowc1.sh: New file.
22033         * tests/test-mbrtowc2.sh: New file.
22034         * tests/test-mbrtowc3.sh: New file.
22035         * tests/test-mbrtowc4.sh: New file.
22036         * tests/test-mbrtowc.c: New file.
22037
22038         New module 'mbrtowc'.
22039         * lib/wchar.in.h (mbstate_t): Override when the system does not have
22040         mbsinit and mbrtowc.
22041         (mbrtowc): New declaration.
22042         * lib/mbrtowc.c: New file.
22043         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
22044         * modules/mbrtowc: New file.
22045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
22046         HAVE_MBRTOWC.
22047         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
22048         HAVE_MBRTOWC.
22049         * doc/posix-functions/mbrtowc.texi: Document the new module.
22050
22051 2008-12-18  Bruno Haible  <bruno@clisp.org>
22052
22053         New module 'wctob'.
22054         * lib/wchar.in.h (wctob): New declaration.
22055         * lib/wctob.c: New file.
22056         * m4/wctob.m4: New file.
22057         * modules/wctob: New file.
22058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
22059         HAVE_WCTOB.
22060         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
22061         * doc/posix-functions/wctob.texi: Document the new module.
22062
22063 2008-12-18  Bruno Haible  <bruno@clisp.org>
22064
22065         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
22066         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
22067
22068 2008-12-18  Simon Josefsson  <simon@josefsson.org>
22069
22070         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
22071         G. Christensen" <tgc@jupiterrise.com>.
22072
22073         * lib/flock.c: Need to include errno.h.  Reported by "Tom
22074         G. Christensen" <tgc@jupiterrise.com>.
22075
22076         * lib/flock.c: Need to include string.h.  Reported by "Tom
22077         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
22078         <ebb9@byu.net>.
22079
22080 2008-12-18  Bruno Haible  <bruno@clisp.org>
22081
22082         * m4/locale-ja.m4: New file, from GNU gettext.
22083
22084 2008-12-17  Bruno Haible  <bruno@clisp.org>
22085
22086         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
22087         Suggested by Eric Blake.
22088
22089 2008-12-17  Bruno Haible  <bruno@clisp.org>
22090
22091         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
22092
22093 2008-12-17  Bruno Haible  <bruno@clisp.org>
22094
22095         * lib/mbsinit.c: Include verify.h. Verify an assumption.
22096         * modules/mbsinit (Depends-on): Add verify.
22097         Suggested by Paul Eggert.
22098
22099 2008-12-17  Bruno Haible  <bruno@clisp.org>
22100
22101         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
22102         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
22103         gl_FUNC_MBRTOWC.
22104         * m4/mbiter.m4 (gl_MBITER): LIkewise.
22105         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
22106         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
22107         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
22108         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
22109         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
22110         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
22111         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
22112         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
22113         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
22114         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
22115         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
22116         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
22117         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
22118         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
22119         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22120         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
22121         * modules/trim (configure.ac): Likewise.
22122
22123 2008-12-17  Bruno Haible  <bruno@clisp.org>
22124
22125         * modules/btowc-tests: New file.
22126         * tests/test-btowc1.sh: New file.
22127         * tests/test-btowc2.sh: New file.
22128         * tests/test-btowc.c: New file.
22129
22130         New module 'btowc'.
22131         * lib/wchar.in.h (btowc): New declaration.
22132         * lib/btowc.c: New file.
22133         * m4/btowc.m4: New file.
22134         * modules/btowc: New file.
22135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
22136         HAVE_BTOWC.
22137         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
22138         * doc/posix-functions/btowc.texi: Document the new module.
22139
22140 2008-12-17  Bruno Haible  <bruno@clisp.org>
22141
22142         New module 'mbsinit'.
22143         * lib/wchar.in.h (mbsinit): New declaration.
22144         * lib/mbsinit.c: New file.
22145         * m4/mbsinit.m4: New file.
22146         * modules/mbsinit: New file.
22147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
22148         HAVE_MBSINIT.
22149         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
22150         HAVE_MBSINIT.
22151         * doc/posix-functions/mbsinit.texi: Document the new module.
22152
22153 2008-12-16  Bruno Haible  <bruno@clisp.org>
22154
22155         * lib/unistd.in.h: Add comment.
22156         * tests/test-environ.c: Don't include <stdlib.h>.
22157
22158 2008-12-16  Bruno Haible  <bruno@clisp.org>
22159
22160         * lib/parse-duration.h (parse_duration): Document return value
22161         convention.
22162         * lib/parse-duration.c: Include specification header first. Add
22163         comments.
22164         (_): Remove macro.
22165         (parse_year_month_day, parse_hour_minute_second): Move side effects
22166         outside of strchr call.
22167         (parse_non_iso8601): Move side effects outside of isspace call.
22168         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
22169         call.
22170
22171 2008-12-16  Bruno Haible  <bruno@clisp.org>
22172
22173         * tests/test-parse-duration.sh: Produce no output when the test
22174         succeeds.
22175
22176 2008-12-16  Bruno Haible  <bruno@clisp.org>
22177
22178         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
22179         expressions.
22180
22181 2008-12-15  Bruno Haible  <bruno@clisp.org>
22182
22183         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
22184         * doc/glibc-functions/flistxattr.texi: Likewise.
22185         * doc/glibc-functions/fopencookie.texi: Likewise.
22186         * doc/glibc-functions/fremovexattr.texi: Likewise.
22187         * doc/glibc-functions/fsetxattr.texi: Likewise.
22188         * doc/glibc-functions/getxattr.texi: Likewise.
22189         * doc/glibc-functions/lgetxattr.texi: Likewise.
22190         * doc/glibc-functions/listxattr.texi: Likewise.
22191         * doc/glibc-functions/llistxattr.texi: Likewise.
22192         * doc/glibc-functions/lremovexattr.texi: Likewise.
22193         * doc/glibc-functions/lsetxattr.texi: Likewise.
22194         * doc/glibc-functions/removexattr.texi: Likewise.
22195         * doc/glibc-functions/setxattr.texi: Likewise.
22196         * doc/posix-functions/open_memstream.texi: Likewise.
22197
22198 2008-12-15  Eric Blake  <ebb9@byu.net>
22199
22200         Update doc for cygwin 1.7.
22201         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
22202         functions.
22203         * doc/posix-functions/fchmodat.texi: Likewise.
22204         * doc/posix-functions/fchownat.texi: Likewise.
22205         * doc/posix-functions/fdopendir.texi: Likewise.
22206         * doc/posix-functions/fmemopen.texi: Likewise.
22207         * doc/posix-functions/freeaddrinfo.texi: Likewise.
22208         * doc/posix-functions/fstatat.texi: Likewise.
22209         * doc/posix-functions/futimens.texi: Likewise.
22210         * doc/posix-functions/gai_strerror.texi: Likewise.
22211         * doc/posix-functions/getaddrinfo.texi: Likewise.
22212         * doc/posix-functions/getnameinfo.texi: Likewise.
22213         * doc/posix-functions/if_freenameindex.texi: Likewise.
22214         * doc/posix-functions/if_indextoname.texi: Likewise.
22215         * doc/posix-functions/if_nameindex.texi: Likewise.
22216         * doc/posix-functions/if_nametoindex.texi: Likewise.
22217         * doc/posix-functions/insque.texi: Likewise.
22218         * doc/posix-functions/linkat.texi: Likewise.
22219         * doc/posix-functions/llrint.texi: Likewise.
22220         * doc/posix-functions/llrintf.texi: Likewise.
22221         * doc/posix-functions/llrintl.texi: Likewise.
22222         * doc/posix-functions/lockf.texi: Likewise.
22223         * doc/posix-functions/lrintl.texi: Likewise.
22224         * doc/posix-functions/mkdirat.texi: Likewise.
22225         * doc/posix-functions/mkfifoat.texi: Likewise.
22226         * doc/posix-functions/mknodat.texi: Likewise.
22227         * doc/posix-functions/mq_close.texi: Likewise.
22228         * doc/posix-functions/mq_getattr.texi: Likewise.
22229         * doc/posix-functions/mq_notify.texi: Likewise.
22230         * doc/posix-functions/mq_open.texi: Likewise.
22231         * doc/posix-functions/mq_receive.texi: Likewise.
22232         * doc/posix-functions/mq_send.texi: Likewise.
22233         * doc/posix-functions/mq_setattr.texi: Likewise.
22234         * doc/posix-functions/mq_timedreceive.texi: Likewise.
22235         * doc/posix-functions/mq_timedsend.texi: Likewise.
22236         * doc/posix-functions/mq_unlink.texi: Likewise.
22237         * doc/posix-functions/open_memstream.texi: Likewise.
22238         * doc/posix-functions/openat.texi: Likewise.
22239         * doc/posix-functions/posix_fadvise.texi: Likewise.
22240         * doc/posix-functions/posix_fallocate.texi: Likewise.
22241         * doc/posix-functions/posix_madvise.texi: Likewise.
22242         * doc/posix-functions/posix_memalign.texi: Likewise.
22243         * doc/posix-functions/posix_openpt.texi: Likewise.
22244         * doc/posix-functions/readlinkat.texi: Likewise.
22245         * doc/posix-functions/remque.texi: Likewise.
22246         * doc/posix-functions/renameat.texi: Likewise.
22247         * doc/posix-functions/rintl.texi: Likewise.
22248         * doc/posix-functions/sem_unlink.texi: Likewise.
22249         * doc/posix-functions/shm_open.texi: Likewise.
22250         * doc/posix-functions/shm_unlink.texi: Likewise.
22251         * doc/posix-functions/signgam.texi: Likewise.
22252         * doc/posix-functions/sigset.texi: Likewise.
22253         * doc/posix-functions/stpcpy.texi: Likewise.
22254         * doc/posix-functions/stpncpy.texi: Likewise.
22255         * doc/posix-functions/strerror.texi: Likewise.
22256         * doc/posix-functions/strtod.texi: Likewise.
22257         * doc/posix-functions/symlinkat.texi: Likewise.
22258         * doc/posix-functions/unlinkat.texi: Likewise.
22259         * doc/posix-functions/utimensat.texi: Likewise.
22260         * doc/glibc-functions/bindresvport.texi: Likewise.
22261         * doc/glibc-functions/dn_expand.texi: Likewise.
22262         * doc/glibc-functions/exp10.texi: Likewise.
22263         * doc/glibc-functions/exp10f.texi: Likewise.
22264         * doc/glibc-functions/fgetxattr.texi: Likewise.
22265         * doc/glibc-functions/flistxattr.texi: Likewise.
22266         * doc/glibc-functions/fopencookie.texi: Likewise.
22267         * doc/glibc-functions/freeifaddrs.texi: Likewise.
22268         * doc/glibc-functions/fremovexattr.texi: Likewise.
22269         * doc/glibc-functions/fsetxattr.texi: Likewise.
22270         * doc/glibc-functions/getifaddrs.texi: Likewise.
22271         * doc/glibc-functions/getxattr.texi: Likewise.
22272         * doc/glibc-functions/lgetxattr.texi: Likewise.
22273         * doc/glibc-functions/listxattr.texi: Likewise.
22274         * doc/glibc-functions/llistxattr.texi: Likewise.
22275         * doc/glibc-functions/lremovexattr.texi: Likewise.
22276         * doc/glibc-functions/lsetxattr.texi: Likewise.
22277         * doc/glibc-functions/pow10.texi: Likewise.
22278         * doc/glibc-functions/pow10f.texi: Likewise.
22279         * doc/glibc-functions/rcmd_af.texi: Likewise.
22280         * doc/glibc-functions/removexattr.texi: Likewise.
22281         * doc/glibc-functions/res_init.texi: Likewise.
22282         * doc/glibc-functions/res_mkquery.texi: Likewise.
22283         * doc/glibc-functions/res_query.texi: Likewise.
22284         * doc/glibc-functions/res_querydomain.texi: Likewise.
22285         * doc/glibc-functions/res_send.texi: Likewise.
22286         * doc/glibc-functions/rresvport_af.texi: Likewise.
22287         * doc/glibc-functions/setxattr.texi: Likewise.
22288         * doc/glibc-functions/strcasestr.texi: Likewise.
22289
22290 2008-12-15  Bruno Haible  <bruno@clisp.org>
22291
22292         Fix compilation error on OSF/1 4.0.
22293         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
22294         <sys/time.h>, simply delegate to the system header.
22295         Reported by Daniel Richard G. <oss@teragram.com>.
22296
22297 2008-12-15  Bruno Haible  <bruno@clisp.org>
22298
22299         * doc/posix-functions/openat.texi: Mention the 'openat' module.
22300         * doc/posix-functions/fchmodat.texi: Likewise.
22301         * doc/posix-functions/fchownat.texi: Likewise.
22302         * doc/posix-functions/fdopendir.texi: Likewise.
22303         * doc/posix-functions/fstatat.texi: Likewise.
22304         * doc/posix-functions/mkdirat.texi: Likewise.
22305         * doc/posix-functions/unlinkat.texi: Likewise.
22306
22307 2008-12-14  Bruno Haible  <bruno@clisp.org>
22308
22309         Update doc for POSIX:2008.
22310         * doc/posix-functions/faccessat.texi: New file.
22311         * doc/posix-functions/fchmodat.texi: New file.
22312         * doc/posix-functions/fchownat.texi: New file.
22313         * doc/posix-functions/fdopendir.texi: New file.
22314         * doc/posix-functions/fstatat.texi: New file.
22315         * doc/posix-functions/futimens.texi: New file.
22316         * doc/posix-functions/linkat.texi: New file.
22317         * doc/posix-functions/mkdirat.texi: New file.
22318         * doc/posix-functions/mkfifoat.texi: New file.
22319         * doc/posix-functions/mknodat.texi: New file.
22320         * doc/posix-functions/open_wmemstream.texi: New file.
22321         * doc/posix-functions/openat.texi: New file.
22322         * doc/posix-functions/psiginfo.texi: New file.
22323         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
22324         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
22325         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
22326         * doc/posix-functions/readlinkat.texi: New file.
22327         * doc/posix-functions/renameat.texi: New file.
22328         * doc/posix-functions/strerror_l.texi: New file.
22329         * doc/posix-functions/symlinkat.texi: New file.
22330         * doc/posix-functions/unlinkat.texi: New file.
22331         * doc/posix-functions/utimensat.texi: New file.
22332         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22333
22334 2008-12-14  Bruno Haible  <bruno@clisp.org>
22335
22336         Update doc for POSIX:2008.
22337         * doc/posix-functions/alphasort.texi: Renamed from
22338         doc/glibc-functions/alphasort.texi.
22339         * doc/posix-functions/dirfd.texi: Renamed from
22340         doc/glibc-functions/dirfd.texi.
22341         * doc/posix-functions/dprintf.texi: Renamed from
22342         doc/glibc-functions/dprintf.texi.
22343         * doc/posix-functions/duplocale.texi: Renamed from
22344         doc/glibc-functions/duplocale.texi.
22345         * doc/posix-functions/fexecve.texi: Renamed from
22346         doc/glibc-functions/fexecve.texi.
22347         * doc/posix-functions/fmemopen.texi: Renamed from
22348         doc/glibc-functions/fmemopen.texi.
22349         * doc/posix-functions/freelocale.texi: Renamed from
22350         doc/glibc-functions/freelocale.texi.
22351         * doc/posix-functions/getdate_err.texi: Renamed from
22352         doc/glibc-functions/getdate_err.texi.
22353         * doc/posix-functions/isalnum_l.texi: Renamed from
22354         doc/glibc-functions/isalnum_l.texi.
22355         * doc/posix-functions/isalpha_l.texi: Renamed from
22356         doc/glibc-functions/isalpha_l.texi.
22357         * doc/posix-functions/isblank_l.texi: Renamed from
22358         doc/glibc-functions/isblank_l.texi.
22359         * doc/posix-functions/iscntrl_l.texi: Renamed from
22360         doc/glibc-functions/iscntrl_l.texi.
22361         * doc/posix-functions/isdigit_l.texi: Renamed from
22362         doc/glibc-functions/isdigit_l.texi.
22363         * doc/posix-functions/isgraph_l.texi: Renamed from
22364         doc/glibc-functions/isgraph_l.texi.
22365         * doc/posix-functions/islower_l.texi: Renamed from
22366         doc/glibc-functions/islower_l.texi.
22367         * doc/posix-functions/isprint_l.texi: Renamed from
22368         doc/glibc-functions/isprint_l.texi.
22369         * doc/posix-functions/ispunct_l.texi: Renamed from
22370         doc/glibc-functions/ispunct_l.texi.
22371         * doc/posix-functions/isspace_l.texi: Renamed from
22372         doc/glibc-functions/isspace_l.texi.
22373         * doc/posix-functions/isupper_l.texi: Renamed from
22374         doc/glibc-functions/isupper_l.texi.
22375         * doc/posix-functions/iswalnum_l.texi: Renamed from
22376         doc/glibc-functions/iswalnum_l.texi.
22377         * doc/posix-functions/iswalpha_l.texi: Renamed from
22378         doc/glibc-functions/iswalpha_l.texi.
22379         * doc/posix-functions/iswblank_l.texi: Renamed from
22380         doc/glibc-functions/iswblank_l.texi.
22381         * doc/posix-functions/iswcntrl_l.texi: Renamed from
22382         doc/glibc-functions/iswcntrl_l.texi.
22383         * doc/posix-functions/iswctype_l.texi: Renamed from
22384         doc/glibc-functions/iswctype_l.texi.
22385         * doc/posix-functions/iswdigit_l.texi: Renamed from
22386         doc/glibc-functions/iswdigit_l.texi.
22387         * doc/posix-functions/iswgraph_l.texi: Renamed from
22388         doc/glibc-functions/iswgraph_l.texi.
22389         * doc/posix-functions/iswlower_l.texi: Renamed from
22390         doc/glibc-functions/iswlower_l.texi.
22391         * doc/posix-functions/iswprint_l.texi: Renamed from
22392         doc/glibc-functions/iswprint_l.texi.
22393         * doc/posix-functions/iswpunct_l.texi: Renamed from
22394         doc/glibc-functions/iswpunct_l.texi.
22395         * doc/posix-functions/iswspace_l.texi: Renamed from
22396         doc/glibc-functions/iswspace_l.texi.
22397         * doc/posix-functions/iswupper_l.texi: Renamed from
22398         doc/glibc-functions/iswupper_l.texi.
22399         * doc/posix-functions/iswxdigit_l.texi: Renamed from
22400         doc/glibc-functions/iswxdigit_l.texi.
22401         * doc/posix-functions/isxdigit_l.texi: Renamed from
22402         doc/glibc-functions/isxdigit_l.texi.
22403         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
22404         doc/glibc-functions/mbsnrtowcs.texi.
22405         * doc/posix-functions/mkdtemp.texi: Renamed from
22406         doc/glibc-functions/mkdtemp.texi.
22407         * doc/posix-functions/newlocale.texi: Renamed from
22408         doc/glibc-functions/newlocale.texi.
22409         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
22410         doc/glibc-functions/nl_langinfo_l.texi.
22411         * doc/posix-functions/open_memstream.texi: Renamed from
22412         doc/glibc-functions/open_memstream.texi.
22413         * doc/posix-functions/opterr.texi: Renamed from
22414         doc/glibc-functions/opterr.texi.
22415         * doc/posix-functions/optind.texi: Renamed from
22416         doc/glibc-functions/optind.texi.
22417         * doc/posix-functions/optopt.texi: Renamed from
22418         doc/glibc-functions/optopt.texi.
22419         * doc/posix-functions/psignal.texi: Renamed from
22420         doc/glibc-functions/psignal.texi.
22421         * doc/posix-functions/scandir.texi: Renamed from
22422         doc/glibc-functions/scandir.texi.
22423         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
22424         doc/glibc-functions/sched_get_priority_min.texi.
22425         * doc/posix-functions/signgam.texi: Renamed from
22426         doc/glibc-functions/signgam.texi.
22427         * doc/posix-functions/stpcpy.texi: Renamed from
22428         doc/glibc-functions/stpcpy.texi.
22429         * doc/posix-functions/stpncpy.texi: Renamed from
22430         doc/glibc-functions/stpncpy.texi.
22431         * doc/posix-functions/strcasecmp_l.texi: Renamed from
22432         doc/glibc-functions/strcasecmp_l.texi.
22433         * doc/posix-functions/strcoll_l.texi: Renamed from
22434         doc/glibc-functions/strcoll_l.texi.
22435         * doc/posix-functions/strfmon_l.texi: Renamed from
22436         doc/glibc-functions/strfmon_l.texi.
22437         * doc/posix-functions/strftime_l.texi: Renamed from
22438         doc/glibc-functions/strftime_l.texi.
22439         * doc/posix-functions/strncasecmp_l.texi: Renamed from
22440         doc/glibc-functions/strncasecmp_l.texi.
22441         * doc/posix-functions/strndup.texi: Renamed from
22442         doc/glibc-functions/strndup.texi.
22443         * doc/posix-functions/strnlen.texi: Renamed from
22444         doc/glibc-functions/strnlen.texi.
22445         * doc/posix-functions/strsignal.texi: Renamed from
22446         doc/glibc-functions/strsignal.texi.
22447         * doc/posix-functions/strxfrm_l.texi: Renamed from
22448         doc/glibc-functions/strxfrm_l.texi.
22449         * doc/posix-functions/timer_gettime.texi: Renamed from
22450         doc/glibc-functions/timer_gettime.texi.
22451         * doc/posix-functions/tolower_l.texi: Renamed from
22452         doc/glibc-functions/tolower_l.texi.
22453         * doc/posix-functions/toupper_l.texi: Renamed from
22454         doc/glibc-functions/toupper_l.texi.
22455         * doc/posix-functions/towctrans_l.texi: Renamed from
22456         doc/glibc-functions/towctrans_l.texi.
22457         * doc/posix-functions/towlower_l.texi: Renamed from
22458         doc/glibc-functions/towlower_l.texi.
22459         * doc/posix-functions/towupper_l.texi: Renamed from
22460         doc/glibc-functions/towupper_l.texi.
22461         * doc/posix-functions/uselocale.texi: Renamed from
22462         doc/glibc-functions/uselocale.texi.
22463         * doc/posix-functions/vdprintf.texi: Renamed from
22464         doc/glibc-functions/vdprintf.texi.
22465         * doc/posix-functions/wcpcpy.texi:
22466         Renamed from doc/glibc-functions/wcpcpy.texi.
22467         * doc/posix-functions/wcpncpy.texi: Renamed from
22468         doc/glibc-functions/wcpncpy.texi.
22469         * doc/posix-functions/wcscasecmp.texi: Renamed from
22470         doc/glibc-functions/wcscasecmp.texi.
22471         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
22472         doc/glibc-functions/wcscasecmp_l.texi.
22473         * doc/posix-functions/wcscoll_l.texi: Renamed from
22474         doc/glibc-functions/wcscoll_l.texi.
22475         * doc/posix-functions/wcsdup.texi: Renamed from
22476         doc/glibc-functions/wcsdup.texi.
22477         * doc/posix-functions/wcsncasecmp.texi: Renamed from
22478         doc/glibc-functions/wcsncasecmp.texi.
22479         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
22480         doc/glibc-functions/wcsncasecmp_l.texi.
22481         * doc/posix-functions/wcsnlen.texi: Renamed from
22482         doc/glibc-functions/wcsnlen.texi.
22483         * doc/posix-functions/wcsnrtombs.texi: Renamed from
22484         doc/glibc-functions/wcsnrtombs.texi.
22485         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
22486         doc/glibc-functions/wcsxfrm_l.texi.
22487         * doc/posix-functions/wctrans_l.texi: Renamed from
22488         doc/glibc-functions/wctrans_l.texi.
22489         * doc/posix-functions/wctype_l.texi: Renamed from
22490         doc/glibc-functions/wctype_l.texi.
22491         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22492         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22493         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22494         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22495         these subsections.
22496         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22497         Remove sections.
22498
22499 2008-12-14  Bruno Haible  <bruno@clisp.org>
22500
22501         Update doc for POSIX:2008.
22502         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22503
22504 2008-12-14  Bruno Haible  <bruno@clisp.org>
22505
22506         Update doc for POSIX:2008.
22507         * doc/pastposix-functions/bcmp.texi: Renamed from
22508         doc/posix-functions/bcmp.texi.
22509         * doc/pastposix-functions/bcopy.texi: Renamed from
22510         doc/posix-functions/bcopy.texi.
22511         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22512         doc/posix-functions/bsd_signal.texi.
22513         * doc/pastposix-functions/bzero.texi: Renamed from
22514         doc/posix-functions/bzero.texi.
22515         * doc/pastposix-functions/ecvt.texi: Renamed from
22516         doc/posix-functions/ecvt.texi.
22517         * doc/pastposix-functions/fcvt.texi: Renamed from
22518         doc/posix-functions/fcvt.texi.
22519         * doc/pastposix-functions/ftime.texi: Renamed from
22520         doc/posix-functions/ftime.texi.
22521         * doc/pastposix-functions/gcvt.texi: Renamed from
22522         doc/posix-functions/gcvt.texi.
22523         * doc/pastposix-functions/getcontext.texi: Renamed from
22524         doc/posix-functions/getcontext.texi.
22525         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22526         doc/posix-functions/gethostbyaddr.texi.
22527         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22528         doc/posix-functions/gethostbyname.texi.
22529         * doc/pastposix-functions/getwd.texi: Renamed from
22530         doc/posix-functions/getwd.texi.
22531         * doc/pastposix-functions/h_errno.texi: Renamed from
22532         doc/posix-functions/h_errno.texi.
22533         * doc/pastposix-functions/index.texi: Renamed from
22534         doc/posix-functions/index.texi.
22535         * doc/pastposix-functions/makecontext.texi: Renamed from
22536         doc/posix-functions/makecontext.texi.
22537         * doc/pastposix-functions/mktemp.texi: Renamed from
22538         doc/posix-functions/mktemp.texi.
22539         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22540         doc/posix-functions/pthread_attr_getstackaddr.texi.
22541         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22542         doc/posix-functions/pthread_attr_setstackaddr.texi.
22543         * doc/pastposix-functions/rindex.texi: Renamed from
22544         doc/posix-functions/rindex.texi.
22545         * doc/pastposix-functions/scalb.texi: Renamed from
22546         doc/posix-functions/scalb.texi.
22547         * doc/pastposix-functions/setcontext.texi: Renamed from
22548         doc/posix-functions/setcontext.texi.
22549         * doc/pastposix-functions/swapcontext.texi: Renamed from
22550         doc/posix-functions/swapcontext.texi.
22551         * doc/pastposix-functions/ualarm.texi: Renamed from
22552         doc/posix-functions/ualarm.texi.
22553         * doc/pastposix-functions/usleep.texi: Renamed from
22554         doc/posix-functions/usleep.texi.
22555         * doc/pastposix-functions/vfork.texi: Renamed from
22556         doc/posix-functions/vfork.texi.
22557         * doc/pastposix-functions/wcswcs.texi: Renamed from
22558         doc/posix-functions/wcswcs.texi.
22559         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22560         (Function Substitutes): Update.
22561
22562 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22563
22564         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22565         m4/strerror.m4.
22566
22567 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22568             Bruno Haible  <bruno@clisp.org>
22569
22570         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22571
22572 2008-12-13  Bruno Haible  <bruno@clisp.org>
22573
22574         * modules/strtoull (Depends-on): Remove unistd.
22575
22576 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22577
22578         * modules/strtoull (Depends-on): Add stdlib.
22579
22580 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22581
22582         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22583
22584 2008-12-10  Jim Meyering  <meyering@redhat.com>
22585
22586         gl_ASSERT: don't say assertions are disabled when they're not
22587         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22588         "checking whether to enable assertions... no", when they are in
22589         fact enabled.  This is solely a bug in the output of configure.
22590         In spite of saying "no", NDEBUG was not defined in that case.
22591         Also, as noted by Eric Blake, leave assertions enabled upon
22592         --enable-assert=INVALID.
22593
22594 2008-12-10  Bruno Haible  <bruno@clisp.org>
22595
22596         Change MODULES.html to refer to POSIX:2008 where possible.
22597         * MODULES.html.sh (POSIX2008_URL): New variable.
22598         (posix_headers): Remove sys/timeb, ucontext.
22599         (posix2001_headers): New variable.
22600         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22601         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22602         index, makecontext, mktemp, pthread_attr_getstackaddr,
22603         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22604         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22605         (posix2001_functions): New variable.
22606         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22607         otherwise.
22608
22609 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22610
22611         add missing include to parse-duration.c
22612         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22613         * modules/parse-duration (Depends-on): Add xalloc.
22614
22615         fix sed script reading maint.mk
22616         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22617         (syntax-check-rules): Use it.
22618
22619 2008-12-09  Bruno Haible  <bruno@clisp.org>
22620
22621         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22622         MacOS X 10.4/PowerPC.
22623         Reported by Simon Josefsson.
22624
22625 2008-12-08  Jim Meyering  <meyering@redhat.com>
22626
22627         work around mingw's lack of some S_IF definitions
22628         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22629         Reported by Simon Josefsson.
22630
22631 2008-12-08  Bruno Haible  <bruno@clisp.org>
22632
22633         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22634         applied to variables. Needed on MacOS X 10.4/PowerPC.
22635         Reported by Simon Josefsson.
22636
22637 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22638         and Eric Blake  <ebb9@byu.net>
22639
22640         assert: honor --enable-assert
22641         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22642         order to honor --enable-assert, rather than treating it as a
22643         synonym for --disable-assert.
22644
22645 2008-12-08  Jim Meyering  <meyering@redhat.com>
22646
22647         * lib/posixtm.c: Remove now-useless declaration of mktime.
22648
22649         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22650
22651 2008-12-07  Bruno Haible  <bruno@clisp.org>
22652
22653         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22654         test_once): Mark functions as static.
22655         * tests/test-tls.c (test_tls): Likewise.
22656
22657 2008-12-07  Bruno Haible  <bruno@clisp.org>
22658
22659         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22660         iconv_register_autodetect.
22661
22662 2008-12-07  Jim Meyering  <meyering@redhat.com>
22663
22664         posixtm.c: avoid a warning
22665         * lib/posixtm.c (posixtime): Don't initialize tm0.
22666         It's no longer needed to placate gcc4's -Wuninitialized,
22667         and the attempt to placate would elicit a new warning.
22668
22669         unicodeio.c: mark unused parameters
22670         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22671         (fallback_failure_callback): Likewise.
22672
22673 2008-12-07  Bruno Haible  <bruno@clisp.org>
22674
22675         * gnulib-tool (func_create_testdir): When building the tests
22676         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22677         Reported by Simon Josefsson.
22678
22679 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22680
22681         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
22682
22683 2008-12-06  Bruno Haible  <bruno@clisp.org>
22684
22685         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
22686         Suggested by Eric Blake.
22687
22688 2008-12-06  Bruno Haible  <bruno@clisp.org>
22689
22690         Fix a c-stack test failure on MacOS X.
22691         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
22692         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
22693         handler for SIGBUS as well.
22694         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
22695         install a signal handler for SIGBUS as well.
22696         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
22697
22698 2008-12-06  Bruno Haible  <bruno@clisp.org>
22699
22700         Advocacy documentation.
22701         * doc/gnulib-intro.texi (Benefits): New section.
22702         * doc/gnulib.texi: Update.
22703
22704 2008-12-06  Bruno Haible  <bruno@clisp.org>
22705
22706         Document the 'manywarnings' module.
22707         * doc/manywarnings.texi: New file.
22708         * doc/gnulib.texi: Include it.
22709
22710 2008-12-05  Eric Blake  <ebb9@byu.net>
22711
22712         tests: silence some gcc warnings
22713         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
22714         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
22715         type mismatches.
22716
22717 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22718             Bruno Haible  <bruno@clisp.org>
22719
22720         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
22721
22722 2008-11-29  Jim Meyering  <meyering@redhat.com>
22723
22724         unicodeio.c: mark unused parameters
22725         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22726         (fallback_failure_callback): Likewise.
22727
22728         fts: fix a thinko
22729         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
22730         (set_stat_type): Return S_IF*-valued "type" directly.
22731         Prompted by James Youngman's spotting a related bug.
22732         Confirmed by further testing through find.
22733
22734         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
22735         * lib/fts.c (D_TYPE): Define.
22736         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
22737         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
22738         (s_ifmt_shift_bits): New function.
22739         (set_stat_type): New function.
22740         (fts_build): When not calling fts_stat, call set_stat_type
22741         to propagate dirent.d_type info to fts_read caller.
22742         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
22743         fts_statp->st_mode type information may be valid.
22744
22745 2008-11-28  Simon Josefsson  <simon@josefsson.org>
22746
22747         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
22748         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
22749         <sds@gnu.org>.
22750
22751 2008-11-20  Bruno Haible  <bruno@clisp.org>
22752
22753         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
22754         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
22755         INCLUDE_NEXT.
22756         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
22757         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
22758         * modules/math (Makefile.am): Substitute
22759         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
22760         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22761
22762 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
22763             Bruno Haible  <bruno@clisp.org>
22764
22765         * lib/stdint.in.h: Define all type macros so that their expansion is
22766         a single typedef'ed token. Fixes a compilation failure in Boost which
22767         does "using ::int8_t;".
22768
22769 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22770
22771         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
22772         gl_MANYWARN_ALL_GCC.
22773         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
22774         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
22775         * modules/manywarnings: New file.
22776         * MODULES.html.sh: Mention manywarnings module.
22777
22778 2008-11-18  Bruno Haible  <bruno@clisp.org>
22779
22780         * doc/gnulib-tool.texi (Unit tests): New section.
22781
22782 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22783
22784         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
22785         paths like 'lib/po/foo.po'.
22786
22787 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22788
22789         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
22790         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
22791
22792 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22793
22794         * m4/warnings.m4: Use CPPFLAGS to really check whether the
22795         parameter works.
22796
22797 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22798
22799         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
22800
22801 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22802
22803         * modules/parse-duration-tests: New file.
22804         * tests/test-parse-duration.sh: New file.
22805         * tests/test-parse-duration.c: New file.
22806
22807         New module 'parse-duration'.
22808         * lib/parse-duration.h: New file.
22809         * lib/parse-duration.c: New file.
22810         * modules/parse-duration: New file.
22811
22812 2008-11-17  Bruno Haible  <bruno@clisp.org>
22813
22814         * tests/test-select-out.sh: Comment out the first pipe test.
22815         Reported by Simon Josefsson.
22816
22817 2008-11-17  Bruno Haible  <bruno@clisp.org>
22818
22819         * modules/getaddrinfo (Depends-on): Add servent, hostent.
22820         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
22821         gl_HOSTENT.
22822
22823 2008-11-17  Bruno Haible  <bruno@clisp.org>
22824
22825         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
22826         -lnetwork and -lnet. Needed for Haiku and BeOS.
22827
22828 2008-11-16  Bruno Haible  <bruno@clisp.org>
22829
22830         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
22831
22832 2008-11-16  Bruno Haible  <bruno@clisp.org>
22833
22834         Avoid test failure on Haiku.
22835         * tests/test-fsync.c: Include <errno.h>.
22836         (main): Don't require that fsync (0) fails.
22837
22838 2008-11-15  Bruno Haible  <bruno@clisp.org>
22839
22840         New module 'hostent'.
22841         * modules/hostent: New file.
22842         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
22843
22844 2008-11-15  Bruno Haible  <bruno@clisp.org>
22845
22846         New module 'servent'.
22847         * modules/servent: New file.
22848         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
22849
22850 2008-11-15  Bruno Haible  <bruno@clisp.org>
22851
22852         Avoid generating same test program with two different rules.
22853         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
22854         test-frexp to test-frexp-nolibm.
22855         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
22856         test-frexpl to test-frexpl-nolibm.
22857
22858 2008-11-15  Bruno Haible  <bruno@clisp.org>
22859
22860         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
22861         $(FREXPL_LIBM).
22862
22863 2008-11-15  Bruno Haible  <bruno@clisp.org>
22864
22865         * lib/netdb.in.h: Activate the definitions also when the system's
22866         <netdb.h> has 'struct addrinfo'.
22867         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
22868         EAI_OVERFLOW or AI_NUMERICSERV.
22869         * doc/posix-headers/netdb.texi: Document the problem.
22870
22871 2008-11-15  Bruno Haible  <bruno@clisp.org>
22872
22873         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
22874
22875         Make the 'sched' module work on platforms where <sched.h> exists but
22876         is incomplete (such as Haiku).
22877         * lib/sched.in.h; Include the system's <sched.h> if it exists.
22878         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
22879         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
22880         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
22881         HAVE_STRUCT_SCHED_PARAM.
22882         * modules/sched (Depends-on): Add include_next.
22883         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
22884         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
22885         * doc/posix-headers/sched.texi: Document the issue.
22886
22887 2008-11-13  Jim Meyering  <meyering@redhat.com>
22888
22889         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
22890         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
22891         test would fail due to the difference in the Report bugs to ...
22892         line.  The expected address is empty, "<>", while the actual
22893         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
22894
22895 2008-11-12  Bruno Haible  <bruno@clisp.org>
22896
22897         lstat: don't compile lstat.c on systems lacking lstat
22898         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
22899         which don't have lstat; this is handled by lib/sys_stat.in.h already.
22900         Reported by Daniel P. Berrange via Jim Meyering.
22901
22902 2008-11-12  Jim Meyering  <meyering@redhat.com>
22903
22904         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
22905
22906 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22907
22908         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
22909         instead.
22910
22911 2008-11-12  Bruno Haible  <bruno@clisp.org>
22912
22913         * lib/unicodeio.c: Include unistr.h.
22914         (utf8_wctomb): Remove function.
22915         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
22916
22917 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22918
22919         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
22920         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
22921         <bruno@clisp.org>.
22922         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
22923
22924 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22925
22926         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
22927         * doc/gnulib.texi: Add section for warnings.
22928
22929 2008-11-11  Bruno Haible  <bruno@clisp.org>
22930
22931         * lib/sockets.h: Add a comment.
22932
22933 2008-11-11  Karl Berry  <karl@gnu.org>
22934
22935         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
22936
22937 2008-11-11  Eric Blake  <ebb9@byu.net>
22938
22939         fdl.texi: avoid git symlinks
22940         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
22941
22942 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22943
22944         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
22945
22946 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22947
22948         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
22949         (gl_WARN_ADD): Substitute $2 if literal.
22950
22951 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22952
22953         * m4/warning.m4: Remove.
22954
22955 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22956
22957         * m4/warnings.m4: Almost complete rewrite. :-)
22958
22959 2008-11-10  Simon Josefsson  <simon@josefsson.org>
22960
22961         * modules/warnings: New module.
22962         * m4/warnings.m4: New file.
22963         * MODULES.html.sh: Mention warnings module.
22964         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
22965         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22966
22967 2008-11-10  Eric Blake  <ebb9@byu.net>
22968
22969         fdl.texi: make a symlink to the latest version
22970         * doc/standards.texi: Revert today's earlier change.
22971         * doc/fdl-1.2.texi: Rename from old fdl.texi...
22972         * doc/fdl.texi: ...and replace this with a symlink to the newer
22973         fdl-1.3.texi.
22974
22975 2008-11-10  Bruno Haible  <bruno@clisp.org>
22976
22977         * tests/test-select-fd.c (main): Accept the result file name as fourth
22978         argument.
22979         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
22980         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
22981
22982 2008-11-10  Bruno Haible  <bruno@clisp.org>
22983
22984         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
22985         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
22986         as autoconf-substituted macros.
22987         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
22988         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
22989         gl_NETDB_H_DEFAULTS. Set these variables.
22990         * modules/netdb (Makefile.am): Substitute these variables.
22991
22992 2008-11-10  Eric Blake  <ebb9@byu.net>
22993
22994         standards.texi: include correct file for FDL 1.3
22995         * doc/standards.texi (GNU Free Documentation License): Change
22996         include file to pull in FDL 1.3, not 1.2.
22997
22998         fdl.texi: revert accidental change to license
22999         * doc/fdl.texi: This is FDL 1.2, not 1.3.
23000
23001 2008-11-10  Bruno Haible  <bruno@clisp.org>
23002
23003         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
23004         cross-compiling guesses also when the native compile gives no result.
23005
23006 2008-11-10  Bruno Haible  <bruno@clisp.org>
23007
23008         * lib/spawni.c (__spawni): Force variable into the stack.
23009
23010 2008-11-10  Bruno Haible  <bruno@clisp.org>
23011
23012         Add support for Haiku.
23013         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
23014         glibc and BeOS, but also on Haiku.
23015         * lib/fpurge.c (fpurge): Likewise.
23016         * lib/freadable.c (freadable): Likewise.
23017         * lib/freadahead.c (freadahead): Likewise.
23018         * lib/freading.c (freading): Likewise.
23019         * lib/freadptr.c (freadptr): Likewise.
23020         * lib/freadseek.c (freadptrinc): Likewise.
23021         * lib/fseeko.c (rpl_fseeko): Likewise.
23022         * lib/fseterr.c (fseterr): Likewise.
23023         * lib/fwritable.c (fwritable): Likewise.
23024         * lib/fwriting.c (fwriting): Likewise.
23025         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
23026
23027 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23028
23029         * lib/config.charset: Treat Haiku like BeOS.
23030
23031 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23032
23033         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
23034         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
23035
23036 2008-11-08  Bruno Haible  <bruno@clisp.org>
23037
23038         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
23039         AC_CACHE_CHECK.
23040
23041 2008-11-08  Bruno Haible  <bruno@clisp.org>
23042
23043         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
23044
23045 2008-11-08  Bruno Haible  <bruno@clisp.org>
23046
23047         * tests/test-select-fd.c: New file.
23048         * tests/test-select-in.sh: New file.
23049         * tests/test-select-out.sh: New file.
23050         * tests/test-select-stdin.c: New file.
23051         * modules/select-tests (Files): Add the new files.
23052         (Depends-on): Add gettimeofday.
23053         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
23054         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
23055         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
23056
23057 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
23058             Bruno Haible  <bruno@clisp.org>
23059
23060         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
23061
23062 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
23063
23064         * build-aux/pmccabe2html: Added support for C++ source files.
23065
23066 2008-11-05  Ben Pfaff  <blp@gnu.org>
23067
23068         Fix lib/close.c build on Windows.
23069         * modules/close (Files): Add lib/w32sock.h.
23070
23071 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
23072
23073         Accept Bison's NEWS format.
23074         * build-aux/announce-gen (print_news_deltas): Tweak
23075         $re_prefix.
23076
23077 2008-11-04  Bruno Haible  <bruno@clisp.org>
23078
23079         * modules/random_r (Maintainer): Add glibc.
23080
23081 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23082
23083         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
23084         by karl@freefriends.org (Karl Berry).
23085         * doc/alloca.texi: Likewise.
23086         * doc/c-ctype.texi: Likewise.
23087         * doc/c-strcase.texi: Likewise.
23088         * doc/c-strcaseeq.texi: Likewise.
23089         * doc/c-strcasestr.texi: Likewise.
23090         * doc/c-strstr.texi: Likewise.
23091         * doc/c-strtod.texi: Likewise.
23092         * doc/c-strtold.texi: Likewise.
23093         * doc/ctime.texi: Likewise.
23094         * doc/error.texi: Likewise.
23095         * doc/fdl.texi: Likewise.
23096         * doc/gcd.texi: Likewise.
23097         * doc/getdate.texi: Likewise.
23098         * doc/gnulib-intro.texi: Likewise.
23099         * doc/gnulib-tool.texi: Likewise.
23100         * doc/gnulib.texi: Likewise.
23101         * doc/inet_ntoa.texi: Likewise.
23102         * doc/maintain.texi: Likewise.
23103         * doc/make-stds.texi: Likewise.
23104         * doc/quote.texi: Likewise.
23105         * doc/regexprops-generic.texi: Likewise.
23106         * doc/standards.texi: Likewise.
23107         * doc/verify.texi: Likewise.
23108         * doc/visibility.texi: Likewise.
23109         * doc/gnulib.texi (GNU Free Documentation License): Include
23110         fdl-1.3.texi instead of fdl.texi.
23111
23112 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23113
23114         * doc/fdl-1.3.texi: New file, from
23115         <http://www.gnu.org/licenses/fdl-1.3.texi>.
23116         * modules/fdl-1.3: Add.
23117         * MODULES.html.sh: Add fdl-1.3.
23118
23119 2008-11-03  Bruno Haible  <bruno@clisp.org>
23120
23121         Make determination of absolute name of header file work with AIX xlc.
23122         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
23123         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
23124         preprocessing.
23125         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23126         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23127
23128 2008-11-03  Simon Josefsson  <simon@josefsson.org>
23129
23130         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
23131         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
23132         <ludo@gnu.org>.
23133
23134 2008-11-02  Bruno Haible  <bruno@clisp.org>
23135
23136         Mark 'strpbrk' obsolete.
23137         * modules/strpbrk (Status, Notice): New sections.
23138         * modules/strtok_r (Depends-on): Add strpbrk.
23139
23140 2008-11-02  Bruno Haible  <bruno@clisp.org>
23141
23142         Mark 'strdup' obsolete.
23143         * modules/strdup (Status, Notice): New sections.
23144         * modules/findprog (Depends-on): Add strdup.
23145         * modules/getaddrinfo (Depends-on): Likewise.
23146         * modules/localename (Depends-on): Likewise.
23147         * modules/relocatable-lib (Depends-on): Likewise.
23148         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
23149         * modules/relocatable-prog (Depends-on): Likewise.
23150         * modules/trim (Depends-on): Likewise.
23151         * modules/unictype/gen-ctype (Depends-on): Likewise.
23152         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23153
23154 2008-11-02  Bruno Haible  <bruno@clisp.org>
23155
23156         Mark 'strcspn' obsolete.
23157         * modules/strcspn (Status, Notice): New sections.
23158
23159 2008-11-02  Bruno Haible  <bruno@clisp.org>
23160
23161         Mark 'rmdir' obsolete.
23162         * modules/rmdir (Status, Notice): New sections.
23163         * modules/clean-temp (Depends-on): Add rmdir.
23164         * modules/openat (Depends-on): Likewise.
23165
23166 2008-11-02  Bruno Haible  <bruno@clisp.org>
23167
23168         Mark 'raise' obsolete.
23169         * modules/raise (Status, Notice): New sections.
23170         (Include): Specify <signal.h>.
23171         * modules/stdio (Depends-on): Add raise.
23172         * modules/write (Depends-on): Likewise.
23173
23174 2008-11-02  Bruno Haible  <bruno@clisp.org>
23175
23176         Mark 'memset' obsolete.
23177         * modules/memset (Status, Notice): New sections.
23178
23179 2008-11-02  Bruno Haible  <bruno@clisp.org>
23180
23181         Mark 'memmove' obsolete.
23182         * modules/memmove (Status, Notice): New sections.
23183         * modules/argp (Depends-on): Add memmove.
23184         * modules/argz (Depends-on): Likewise.
23185         * modules/canonicalize (Depends-on): Likewise.
23186         * modules/canonicalize-lgpl (Depends-on): Likewise.
23187         * modules/fts (Depends-on): Likewise.
23188         * modules/getcwd (Depends-on): Likewise.
23189         * modules/human (Depends-on): Likewise.
23190         * modules/regex (Depends-on): Likewise.
23191         * modules/striconveh (Depends-on): Likewise.
23192         * modules/trim (Depends-on): Likewise.
23193         * modules/unistr/u8-move (Depends-on): Likewise.
23194         * modules/unistr/u16-move (Depends-on): Likewise.
23195         * modules/unistr/u32-move (Depends-on): Likewise.
23196
23197 2008-11-02  Bruno Haible  <bruno@clisp.org>
23198
23199         Mark 'memcpy' obsolete.
23200         * modules/memcpy (Status, Notice): New sections.
23201
23202 2008-11-02  Bruno Haible  <bruno@clisp.org>
23203
23204         Mark 'memcmp' obsolete.
23205         * modules/memcmp (Status, Notice): New sections.
23206         * modules/argmatch (Depends-on): Add memchr.
23207         * modules/backupfile (Depends-on): Likewise.
23208         * modules/c-strcasestr (Depends-on): Likewise.
23209         * modules/crypto/des (Depends-on): Likewise.
23210         * modules/csharpcomp (Depends-on): Likewise.
23211         * modules/fnmatch (Depends-on): Likewise.
23212         * modules/git-merge-changelog (Depends-on): Likewise.
23213         * modules/isnand (Depends-on): Likewise.
23214         * modules/isnand-nolibm (Depends-on): Likewise.
23215         * modules/isnanf (Depends-on): Likewise.
23216         * modules/isnanf-nolibm (Depends-on): Likewise.
23217         * modules/isnanl (Depends-on): Likewise.
23218         * modules/isnanl-nolibm (Depends-on): Likewise.
23219         * modules/mbchar (Depends-on): Likewise.
23220         * modules/memcoll (Depends-on): Likewise.
23221         * modules/quotearg (Depends-on): Likewise.
23222         * modules/regex (Depends-on): Likewise.
23223         * modules/relocatable-prog (Depends-on): Likewise.
23224         * modules/same (Depends-on): Likewise.
23225         * modules/signbit (Depends-on): Likewise.
23226         * modules/strcasestr-simple (Depends-on): Likewise.
23227         * modules/unictype/gen-ctype (Depends-on): Likewise.
23228         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23229         * modules/uniname/uniname (Depends-on): Likewise.
23230         * modules/unistr/u8-cmp (Depends-on): Likewise.
23231
23232 2008-11-02  Bruno Haible  <bruno@clisp.org>
23233
23234         Mark 'memchr' obsolete.
23235         * modules/memchr (Status, Notice): New sections.
23236         * modules/argp (Depends-on): Add memchr.
23237         * modules/base64 (Depends-on): Likewise.
23238         * modules/c-strcasestr (Depends-on): Likewise.
23239         * modules/chdir-long (Depends-on): Likewise.
23240         * modules/fnmatch (Depends-on): Likewise.
23241         * modules/getsubopt (Depends-on): Likewise.
23242         * modules/git-merge-changelog (Depends-on): Likewise.
23243         * modules/glob (Depends-on): Likewise.
23244         * modules/strcasestr-simple (Depends-on): Likewise.
23245         * modules/strnlen (Depends-on): Likewise.
23246
23247 2008-11-02  Bruno Haible  <bruno@clisp.org>
23248
23249         Mark 'atexit' obsolete.
23250         * modules/atexit (Status, Notice): New sections.
23251         * modules/chdir-long (Depends-on): Add atexit.
23252         * modules/wait-process (Depends-on): Likewise.
23253
23254 2008-11-02  Bruno Haible  <bruno@clisp.org>
23255
23256         * gnulib-tool: New option --with-obsolete.
23257         (func_usage): Document it.
23258         (func_modules_transitive_closure): Drop obsolete dependencies if
23259         incobsolete is not true.
23260         (func_import): Read and save the incobsolete variable to the cache.
23261
23262 2008-11-02  Bruno Haible  <bruno@clisp.org>
23263
23264         * modules/TEMPLATE-EXTENDED: New field 'Status'.
23265         * gnulib-tool: New option --extract-status.
23266         (func_usage): Document it.
23267         (sed_extract_prog): Recognize it.
23268         (func_get_status): New function.
23269
23270 2008-10-30  Simon Josefsson  <simon@josefsson.org>
23271
23272         * modules/sockets (License): Change from LGPL to LGPLv2+.
23273
23274 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23275
23276         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
23277
23278 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23279
23280         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23281         Mention times and sys_times.
23282         * modules/sys_times, modules/sys_times-tests: New modules.
23283         * modules/times, modules/times-tests: Likewise
23284         * m4/sys_times_h.m4: New file.
23285         * lib/sys_times.in.h: Likewise
23286         * lib/times.c: Likewise.
23287         * tests/test-sys_times.c: Likewise.
23288         * tests/test-times.c: Likewise.
23289         * doc/posix-headers/sys_times.texi: Update.
23290         * doc/posix-functions/times.texi: Update.
23291
23292 2008-10-28  Jim Meyering  <meyering@redhat.com>
23293
23294         * modules/tempname (Depends-on): Add lstat.
23295
23296         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
23297
23298 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23299
23300         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
23301         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
23302         using idiom used elsewhere in gnulib.
23303
23304 2008-10-27  Jim Meyering  <meyering@redhat.com>
23305
23306         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
23307
23308 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23309
23310         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
23311         TESTS_ENVIRONMENT, for shell scripts that needs to call built
23312         programs.
23313         * tests/test-argp-2.sh: Use $EXEEXT when needed.
23314
23315 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23316
23317         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
23318
23319 2008-10-27  Bruno Haible  <bruno@clisp.org>
23320
23321         * tests/test-lstat.c: Include <stdio.h>.
23322
23323 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23324
23325         * modules/lstat-tests: New module.
23326         * tests/test-lstat.c: New file.
23327
23328 2008-10-26  Jim Meyering  <meyering@redhat.com>
23329
23330         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
23331
23332 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23333             Bruno Haible  <bruno@clisp.org>
23334
23335         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
23336         * modules/configmake (Include): Add a note that the include must come
23337         after all system headers.
23338         * lib/javaversion.c: Include configmake.h after all other includes.
23339
23340 2008-10-26  Bruno Haible  <bruno@clisp.org>
23341
23342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
23343         HAVE_STRUCT_RANDOM_DATA to 1.
23344         (gl_STDLIB_H): Simplify.
23345
23346 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23347
23348         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
23349         substitute HAVE_STRUCT_RANDOM_DATA.
23350         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
23351         random_data.
23352         * modules/stdlib (Makefile.am): Substitute
23353         HAVE_STRUCT_RANDOM_DATA.
23354
23355 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23356
23357         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
23358         * doc/gnulib-intro.texi (Copyright): Likewise.
23359
23360 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23361
23362         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
23363         findings.
23364
23365 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
23366             Bruno Haible  <bruno@clisp.org>
23367
23368         * lib/unistd.in.h: Include <winsock2.h>.
23369         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
23370         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
23371         Provide dummy declarations.
23372         (gethostname): Override.
23373         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
23374         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
23375         gl_PREREQ_SYS_H_WINSOCK2.
23376         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
23377         * doc/posix-functions/gethostname.texi: More details.
23378
23379 2008-10-25  Bruno Haible  <bruno@clisp.org>
23380
23381         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23382         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
23383         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
23384
23385         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
23386         here ...
23387         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
23388         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
23389         gl_UNISTD_H_DEFAULTS.
23390
23391 2008-10-25  Eric Blake  <ebb9@byu.net>
23392
23393         signbit: avoid spurious compiler failure
23394         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
23395         declarations inside function.
23396
23397 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23398             Bruno Haible  <bruno@clisp.org>
23399
23400         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
23401         * modules/random_r (Depends-on): Add stdint.
23402
23403 2008-10-24  Bruno Haible  <bruno@clisp.org>
23404
23405         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
23406         Eggert.
23407         * modules/strerror (License): Likewise.
23408
23409 2008-10-24  Jim Meyering  <meyering@redhat.com>
23410
23411         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
23412         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
23413
23414 2008-10-24  Eric Blake  <ebb9@byu.net>
23415
23416         getgroups: fix compilation when getgroups is available
23417         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
23418         but with <config.h> override of getgroups disabled.
23419
23420 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23421
23422         * doc/gnulib.texi (Header files): Add note about C++ problems.
23423         Explained by Bruno Haible <bruno@clisp.org>.
23424
23425 2008-10-23  Bruno Haible  <bruno@clisp.org>
23426
23427         Define a dummy SA_NODEFER macro on Interix.
23428         * lib/signal.in.h (SA_NODEFER): Define fallback.
23429         Reported by Aleksey Cheusov <cheusov@tut.by> via
23430         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
23431
23432 2008-10-23  Bruno Haible  <bruno@clisp.org>
23433
23434         * modules/freadahead (License): Change to LGPLv2+.
23435         Suggested by Simon Josefsson.
23436
23437 2008-10-23  Jim Meyering  <meyering@redhat.com>
23438
23439         random_r: new module
23440         * modules/random_r: New file.
23441         * m4/random_r.m4: New file.
23442         * lib/random_r.c: New file, from glibc.
23443         * modules/random_r-tests: New file.
23444         * tests/test-random_r.c: New file.
23445         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
23446          Declare.
23447         (RAND_MAX): Define.
23448         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
23449         * modules/stdlib: Substitute them, too.
23450         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
23451         * doc/glibc-functions/initstate_r.texi: Mention the new module.
23452         * doc/glibc-functions/random_r.texi: Likewise.
23453         * doc/glibc-functions/setstate_r.texi: Likewise.
23454         * doc/glibc-functions/srandom_r.texi: Likewise.
23455         * config/srclist.txt: Mention it.
23456
23457 2008-10-23  David Lutterkort  <lutter@redhat.com>
23458
23459         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
23460         link requirement
23461
23462 2008-10-23  Jim Meyering  <meyering@redhat.com>
23463
23464         selinux-h: mark parameters of stub functions as intentionally unused
23465         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
23466         * lib/se-context.in.h: Likewise.
23467
23468 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23469
23470         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
23471
23472 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23473
23474         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
23475
23476 2008-10-22  Eric Blake  <ebb9@byu.net>
23477
23478         glthread/thread: avoid compiler warning
23479         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
23480         Add unreachable abort to silence compiler.
23481
23482 2008-10-22  Eric Blake  <ebb9@byu.net>
23483
23484         netdb: also supply struct addrinfo for cygwin 1.5.x
23485         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
23486         older cygwin.
23487         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
23488         cygwin.
23489         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23490
23491 2008-10-22  Bruno Haible  <bruno@clisp.org>
23492
23493         * users.txt: Update entry about pspp.
23494
23495 2008-10-21  Bruno Haible  <bruno@clisp.org>
23496
23497         Simplification.
23498         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23499         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23500
23501         Simplification.
23502         * lib/ioctl.c (ioctl): Don't undefine.
23503         * lib/socket.c (socket): Don't undefine.
23504
23505         Remove unused module indicator macros.
23506         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23507         GNULIB_$1 as a C macro.
23508
23509         * doc/posix-functions/close.texi: Undo last change.
23510         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23511         Windows platforms.
23512
23513 2008-10-21  Bruno Haible  <bruno@clisp.org>
23514
23515         Add gethostname() declaration to <unistd.h>.
23516         * lib/unistd.in.h (gethostname): New declaration.
23517         * lib/gethostname.c: Include <unistd.h>.
23518         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23519         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23521         and HAVE_GETHOSTNAME.
23522         * modules/gethostname (Depends-on): Add unistd.
23523         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23524         (Include): Specify <unistd.h>.
23525         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23526         HAVE_GETHOSTNAME.
23527         * tests/test-gethostname.c: Include <unistd.h> first.
23528
23529 2008-10-21  Bruno Haible  <bruno@clisp.org>
23530
23531         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23532         * modules/select-tests (Depends-on): Likewise.
23533         Reported by Simon Josefsson.
23534
23535 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23536
23537         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23538         * lib/accept.c: New file, based on winsock.c.
23539         * lib/bind.c: New file, based on winsock.c.
23540         * lib/connect.c: New file, based on winsock.c.
23541         * lib/getpeername.c: New file, based on winsock.c.
23542         * lib/getsockname.c: New file, based on winsock.c.
23543         * lib/getsockopt.c: New file, based on winsock.c.
23544         * lib/ioctl.c: New file, based on winsock.c.
23545         * lib/listen.c: New file, based on winsock.c.
23546         * lib/recv.c: New file, based on winsock.c.
23547         * lib/recvfrom.c: New file, based on winsock.c.
23548         * lib/send.c: New file, based on winsock.c.
23549         * lib/sendto.c: New file, based on winsock.c.
23550         * lib/setsockopt.c: New file, based on winsock.c.
23551         * lib/shutdown.c: New file, based on winsock.c.
23552         * lib/socket.c: New file, based on winsock.c.
23553         * lib/w32sock.h: New file, based on winsock.c.
23554         * lib/winsock.c: Remove file.
23555         * modules/accept: Likewise.
23556         * modules/bind: Likewise.
23557         * modules/connect: Likewise.
23558         * modules/getpeername: Likewise.
23559         * modules/getsockname: Likewise.
23560         * modules/getsockopt: Likewise.
23561         * modules/ioctl: Likewise.
23562         * modules/listen: Likewise.
23563         * modules/recv: Likewise.
23564         * modules/recvfrom: Likewise.
23565         * modules/send: Likewise.
23566         * modules/sendto: Likewise.
23567         * modules/setsockopt: Likewise.
23568         * modules/shutdown: Likewise.
23569         * modules/socket: Use socket.c instead of winsock.c.
23570         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23571         * doc/posix-functions/accept.texi: Doc fix.
23572         * doc/posix-functions/bind.texi: Doc fix.
23573         * doc/posix-functions/close.texi: Doc fix.
23574         * doc/posix-functions/connect.texi: Doc fix.
23575         * doc/posix-functions/getpeername.texi: Doc fix.
23576         * doc/posix-functions/getsockname.texi: Doc fix.
23577         * doc/posix-functions/getsockopt.texi: Doc fix.
23578         * doc/posix-functions/ioctl.texi: Doc fix.
23579         * doc/posix-functions/listen.texi: Doc fix.
23580         * doc/posix-functions/recv.texi: Doc fix.
23581         * doc/posix-functions/recvfrom.texi: Doc fix.
23582         * doc/posix-functions/send.texi: Doc fix.
23583         * doc/posix-functions/sendto.texi: Doc fix.
23584         * doc/posix-functions/setsockopt.texi: Doc fix.
23585         * doc/posix-functions/shutdown.texi: Doc fix.
23586         * doc/posix-functions/socket.texi: Doc fix.
23587
23588 2008-10-20  Bruno Haible  <bruno@clisp.org>
23589
23590         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23591         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23592         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23593         as an alias for SIGABRT.
23594         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23595         (sigaction): Map it to SIGABRT.
23596         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23597
23598 2008-10-20  Bruno Haible  <bruno@clisp.org>
23599
23600         * lib/fts.c: Don't include lstat.h.
23601         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23602
23603         Move the lstat() declaration to <sys/stat.h>.
23604         * lib/lstat.h: Remove file.
23605         * lib/sys_stat.in.h: Add special invocation convention.
23606         (lstat): New declaration.
23607         * lib/lstat.c (orig_lstat): New function.
23608         (rpl_lstat): Use orig_lstat instead of lstat.
23609         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23610         AC_C_INLINE. Set REPLACE_LSTAT.
23611         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23612         and REPLACE_LSTAT.
23613         * modules/lstat (Files): Remove lib/lstat.h.
23614         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23615         (Include): Specify <sys/stat.h> instead of lstat.h.
23616         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23617         REPLACE_LSTAT.
23618         * NEWS: Mention the change.
23619
23620 2008-10-20  Bruno Haible  <bruno@clisp.org>
23621
23622         * modules/posix_spawn-tests: New file.
23623         * tests/test-posix_spawn3.c: New file.
23624
23625 2008-10-20  Bruno Haible  <bruno@clisp.org>
23626
23627         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23628         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23629         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23630         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23631         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23632
23633 2008-10-20  Bruno Haible  <bruno@clisp.org>
23634
23635         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23636         of posix_spawn on AIX 5.3.
23637
23638 2008-10-20  Bruno Haible  <bruno@clisp.org>
23639
23640         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23641
23642 2008-10-20  Bruno Haible  <bruno@clisp.org>
23643
23644         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23645         of AC_LANG_PROGRAM.
23646
23647 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23648
23649         * lib/netdb.in.h: Don't define GNU specific constants until they
23650         are supported or needed.  Reported by Bruno Haible
23651         <bruno@clisp.org>.
23652
23653 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23654
23655         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23656
23657 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23658
23659         * lib/getaddrinfo.h: Remove file.
23660         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23661         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23662         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23663         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23664         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23665         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23666         * tests/test-getaddrinfo.c: Likewise.
23667         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23668         * NEWS: Mention change.
23669
23670 2008-10-19  Bruno Haible  <bruno@clisp.org>
23671
23672         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23673
23674 2008-10-19  Bruno Haible  <bruno@clisp.org>
23675
23676         * lib/wait-process.c: Include simply <sys/wait.h>.
23677         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
23678         WIFSTOPPED): Remove fallback definitions.
23679         * modules/wait-process (Depends-on): Add sys_wait.
23680
23681         New module 'sys_wait'.
23682         * modules/sys_wait: New file.
23683         * lib/sys_wait.in.h: New file, partially copied from
23684         lib/wait-process.c.
23685         * m4/sys_wait_h.m4: New file.
23686         * doc/posix-headers/sys_wait.texi: Mention the new module.
23687
23688 2008-10-19  Bruno Haible  <bruno@clisp.org>
23689
23690         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
23691
23692 2008-10-19  Bruno Haible  <bruno@clisp.org>
23693
23694         Assume that waitpid() fills an 'int' status, not a 'union wait'.
23695         * lib/wait-process.c (WAIT_T): Remove type.
23696         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
23697         (wait_subprocess): Update.
23698
23699 2008-10-19  Bruno Haible  <bruno@clisp.org>
23700
23701         New module 'atoll'.
23702         * modules/atoll: New file.
23703         * lib/stdlib.in.h (atoll): New declaration.
23704         * lib/atoll.c: New file, from glibc with modifications.
23705         * m4/atoll.m4: New file.
23706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
23707         HAVE_ATOLL.
23708         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
23709         * doc/posix-functions/atoll.texi: Mention the new module.
23710
23711 2008-10-19  Bruno Haible  <bruno@clisp.org>
23712
23713         Add strtoull() declaration to <stdlib.h>.
23714         * lib/stdlib.in.h (strtoull): New declaration.
23715         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23716         Set HAVE_STRTOULL.
23717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
23718         HAVE_STRTOULL.
23719         * modules/strtoull (Depends-on): Add stdlib.
23720         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23721         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
23722         HAVE_STRTOULL.
23723
23724 2008-10-19  Bruno Haible  <bruno@clisp.org>
23725
23726         Add strtoll() declaration to <stdlib.h>.
23727         * lib/stdlib.in.h (strtoll): New declaration.
23728         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23729         Set HAVE_STRTOLL.
23730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
23731         HAVE_STRTOLL.
23732         * modules/strtoll (Depends-on): Add stdlib.
23733         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23734         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
23735
23736 2008-10-19  Bruno Haible  <bruno@clisp.org>
23737
23738         * modules/bcopy (Depends-on): Add strings.
23739         (Include): Specify <strings.h>.
23740
23741 2008-10-19  Bruno Haible  <bruno@clisp.org>
23742
23743         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
23744
23745 2008-10-19  Bruno Haible  <bruno@clisp.org>
23746
23747         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
23748         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
23749         mingw.
23750
23751 2008-10-19  Bruno Haible  <bruno@clisp.org>
23752
23753         * lib/atanl.c: Don't include isnanl.h.
23754         * lib/cosl.c: Likewise.
23755         * lib/ldexpl.c: Likewise.
23756         * lib/logl.c: Likewise.
23757         * lib/sinl.c: Likewise.
23758         * lib/sqrtl.c: Likewise.
23759         * lib/tanl.c: Likewise.
23760
23761         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
23762         * lib/isnanf.h: Remove file.
23763         * lib/isnand.h: Remove file.
23764         * lib/isnanl.h: Remove file.
23765         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
23766         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
23767         macros.
23768         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
23769         HAVE_ISNANF, don't define it as a C macro.
23770         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
23771         HAVE_ISNAND, don't define it as a C macro.
23772         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
23773         HAVE_ISNANL, don't define it as a C macro.
23774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
23775         HAVE_ISNAN[FDL].
23776         * modules/isnanf (Files): Remove lib/isnanf.h.
23777         (Depends-on): Add math.
23778         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23779         (Include): Specify <math.h> instead of isnanf.h.
23780         * modules/isnand (Files): Remove lib/isnand.h.
23781         (Depends-on): Add math.
23782         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23783         (Include): Specify <math.h> instead of isnand.h.
23784         * modules/isnanl (Files): Remove lib/isnanl.h.
23785         (Depends-on): Add math.
23786         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23787         (Include): Specify <math.h> instead of isnanl.h.
23788         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
23789         HAVE_ISNAN[FDL].
23790         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
23791         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
23792         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
23793         * NEWS: Mention the change.
23794
23795 2008-10-18  Bruno Haible  <bruno@clisp.org>
23796
23797         Add getusershell(), setusershell(), endusershell() declarations to
23798         <unistd.h>.
23799         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
23800         declarations.
23801         * lib/getusershell.c: Include unistd.h.
23802         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
23803         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23804         HAVE_GETUSERSHELL.
23805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
23806         and HAVE_GETUSERSHELL.
23807         * modules/getusershell (Depends-on): Add unistd, extensions.
23808         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23809         (Include): Specify <unistd.h>.
23810         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
23811         HAVE_GETUSERSHELL.
23812
23813 2008-10-18  Bruno Haible  <bruno@clisp.org>
23814
23815         Add a getloadavg() declaration to <stdlib.h>.
23816         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
23817         getloadavg declaration.
23818         (getloadavg): New declaration.
23819         * lib/getloadavg.c: Include <stdlib.h> first.
23820         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
23821         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
23822         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
23823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
23824         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23825         * modules/getloadavg (Depends-on): Add stdlib, extensions.
23826         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23827         (Include): Specify <stdlib.h>.
23828         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
23829         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23830
23831 2008-10-18  Bruno Haible  <bruno@clisp.org>
23832
23833         * lib/dirchownmod.c: Don't include lchmod.h.
23834
23835         Move the lchmod() declaration to <sys/stat.h>.
23836         * lib/lchmod.h: Remove file.
23837         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
23838         (lchmod): New declaration, moved here from lib/lchown.h.
23839         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
23840         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
23841         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
23842         and HAVE_LCHMOD.
23843         * modules/lchmod (Files): Remove lib/lchmod.h.
23844         (Depends-on): Add sys_stat, extensions.
23845         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23846         (Include): Specify <sys/stat.h> instead of lchmod.h.
23847         * modules/sys_stat (Depends-on): Add link-warning.
23848         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
23849         definition of GL_LINK_WARNING.
23850         * NEWS: Mention the change.
23851
23852 2008-10-18  Bruno Haible  <bruno@clisp.org>
23853
23854         * lib/fchdir.c: Don't include dirfd.h.
23855         * lib/fts.c: Likewise.
23856         * lib/getcwd.c: Likewise.
23857         * lib/glob.c: Likewise.
23858
23859         Move the dirfd() declaration to <dirent.h>.
23860         * lib/dirfd.h: Remove file.
23861         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
23862         (dirfd): New declaration.
23863         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
23864         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
23865         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
23866         HAVE_DECL_DIRFD.
23867         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
23868         HAVE_DECL_DIRFD.
23869         * modules/dirfd (Files): Remove lib/dirfd.h.
23870         (Depends-on): Add dirent, extensions.
23871         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
23872         (Include): Specify <dirent.h> instead of dirfd.h.
23873         * modules/dirent (Depends-on): Add link-warning.
23874         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
23875         definition of GL_LINK_WARNING.
23876         * NEWS: Mention the change.
23877
23878 2008-10-18  Bruno Haible  <bruno@clisp.org>
23879
23880         Move the euidaccess() declaration to <unistd.h>.
23881         * lib/euidaccess.h: Remove file.
23882         * lib/unistd.in.h (euidaccess): New declaration.
23883         * lib/euidaccess.c: Don't include euidaccess.h.
23884         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
23885         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
23886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
23887         and HAVE_EUIDACCESS.
23888         * modules/euidaccess (Files): Remove lib/euidaccess.h.
23889         (Depends-on): Add unistd.
23890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23891         (Include): Specify <unistd.h> instead of euidaccess.h.
23892         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
23893         HAVE_EUIDACCESS.
23894         * NEWS: Mention the change.
23895
23896 2008-10-18  Bruno Haible  <bruno@clisp.org>
23897
23898         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
23899
23900         Move the getdomainname() declaration to <unistd.h>.
23901         * lib/getdomainname.h: Remove file.
23902         * lib/unistd.in.h (getdomainname): New declaration.
23903         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
23904         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23905         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23906         HAVE_GETDOMAINNAME.
23907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23908         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
23909         * modules/getdomainname (Files): Remove lib/getdomainname.h.
23910         (Depends-on): Add unistd, extensions.
23911         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23912         (Includes): Specify <unistd.h> instead of getdomainname.h.
23913         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
23914         HAVE_GETDOMAINNAME.
23915         * NEWS: Mention the change.
23916
23917 2008-10-18  Bruno Haible  <bruno@clisp.org>
23918
23919         * modules/dirent: New file.
23920         * m4/dirent_h.m4: New file.
23921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
23922         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
23923         * modules/fchdir (Files): Remove lib/dirent.in.h.
23924         (Depends-on): Add dirent.
23925         (Makefile.am): Move rules to modules/dirent.
23926         * doc/posix-headers/dirent.texi: Mention the new module.
23927
23928 2008-10-18  Bruno Haible  <bruno@clisp.org>
23929
23930         Avoid -Wunused-parameter warnings in public gnulib header files.
23931         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
23932         macro.
23933         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
23934
23935 2008-10-18  Bruno Haible  <bruno@clisp.org>
23936
23937         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
23938         * doc/glibc-functions/error.texi: Mention the module 'error'.
23939         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
23940         * doc/glibc-functions/getdomainname.texi: Mention the module
23941         'getdomainname'.
23942         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
23943         * doc/glibc-functions/getpagesize.texi: Mention the module
23944         'getpagesize'.
23945         * doc/glibc-functions/getusershell.texi: Mention the module
23946         'getusershell'.
23947         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
23948         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
23949         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
23950         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
23951         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
23952         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
23953         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
23954         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
23955         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
23956         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
23957         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
23958         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
23959         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
23960         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
23961
23962 2008-10-17  Bruno Haible  <bruno@clisp.org>
23963
23964         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
23965         HP-UX and IRIX, use -0.0L.
23966         * tests/test-ceill.c (minus_zero): Likewise.
23967         * tests/test-floorl.c (minus_zero): Likewise.
23968         * tests/test-frexpl.c (minus_zero): Likewise.
23969         * tests/test-isnan.c (minus_zerol): Likewise.
23970         * tests/test-isnanl.h (minus_zero): Likewise.
23971         * tests/test-ldexpl.c (minus_zero): Likewise.
23972         * tests/test-roundl.c (minus_zero): Likewise.
23973         * tests/test-signbit.c (minus_zerol): Likewise.
23974         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23975         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23976         * tests/test-truncl.c (minus_zero): Likewise.
23977         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23978         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23979         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
23980         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23981
23982 2008-10-17  Bruno Haible  <bruno@clisp.org>
23983
23984         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
23985         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
23986         that it gets activated only for gcc >= 3.0.
23987         * lib/dirent.in.h: Likewise.
23988         * lib/errno.in.h: Likewise.
23989         * lib/fcntl.in.h: Likewise.
23990         * lib/float.in.h: Likewise.
23991         * lib/iconv.in.h: Likewise.
23992         * lib/inttypes.in.h: Likewise.
23993         * lib/locale.in.h: Likewise.
23994         * lib/math.in.h: Likewise.
23995         * lib/netdb.in.h: Likewise.
23996         * lib/netinet_in.in.h: Likewise.
23997         * lib/search.in.h: Likewise.
23998         * lib/signal.in.h: Likewise.
23999         * lib/spawn.in.h: Likewise.
24000         * lib/stdarg.in.h: Likewise.
24001         * lib/stdint.in.h: Likewise.
24002         * lib/stdio.in.h: Likewise.
24003         * lib/stdlib.in.h: Likewise.
24004         * lib/string.in.h: Likewise.
24005         * lib/strings.in.h: Likewise.
24006         * lib/sys_file.in.h: Likewise.
24007         * lib/sys_ioctl.in.h: Likewise.
24008         * lib/sys_select.in.h: Likewise.
24009         * lib/sys_socket.in.h: Likewise.
24010         * lib/sys_stat.in.h: Likewise.
24011         * lib/sys_time.in.h: Likewise.
24012         * lib/sysexits.in.h: Likewise.
24013         * lib/time.in.h: Likewise.
24014         * lib/unistd.in.h: Likewise.
24015         * lib/wchar.in.h: Likewise.
24016         * lib/wctype.in.h: Likewise.
24017         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24018
24019 2008-10-17  Jim Meyering  <meyering@redhat.com>
24020
24021         ignore-value: don't depend on inline module
24022         * modules/ignore-value (Depends-on): Remove 'inline'.
24023         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
24024         Suggestion from Bruno Haible.
24025
24026 2008-10-17  Bruno Haible  <bruno@clisp.org>
24027
24028         New implementation of condition variables for Win32.
24029         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
24030         (gl_linked_waitqueue_t): New type.
24031         (gl_cond_t): Use it.
24032         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
24033         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
24034         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
24035         (glthread_cond_init_func, glthread_cond_wait_func,
24036         glthread_cond_timedwait_func, glthread_cond_signal_func,
24037         glthread_cond_broadcast_func, glthread_cond_destroy_func):
24038         Reimplemented on the basis of gl_linked_waitqueue_t.
24039         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
24040         gl_waitqueue_t.
24041         (gl_rwlock_t): Update.
24042         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
24043
24044 2008-10-17  Simon Josefsson  <simon@josefsson.org>
24045
24046         * modules/recvfrom (Depends-on): Add dependency on getpeername.
24047         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24048
24049 2008-10-17  Jim Meyering  <meyering@redhat.com>
24050
24051         ignore-value: new module
24052         * modules/ignore-value: New file.
24053         * lib/ignore-value.h: New file.
24054         * MODULES.html.sh (Compiler warning management): New section,
24055         just for this module.  More to come.
24056
24057 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24058
24059         open-safer.c: avoid 'signed and unsigned in conditional...' warning
24060         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
24061         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
24062
24063 2008-10-16  Jim Meyering  <meyering@redhat.com>
24064
24065         openat-die.c: avoid 'no previous prototype' warning
24066         * lib/openat-die.c: Include "openat.h".
24067         Reported by Reuben Thomas <rrt@sc3d.org>.
24068
24069 2008-10-16  Simon Josefsson  <simon@josefsson.org>
24070
24071         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
24072         * lib/netdb.in.h: Fix typo.
24073         Reported by Bruno Haible  <bruno@clisp.org>
24074
24075         * lib/netdb.in.h: Include sys/socket.h for platforms without
24076         netdb.h, to get structures like hostent on MinGW.
24077         * modules/netdb (Depends-on): Add sys_socket.
24078
24079 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24080
24081         * modules/netdb, modules/netdb-tests: New file.
24082         * m4/netdb_h.m4: New file.
24083         * lib/netdb.in.h: Add, currently just an empty file pending
24084         definitions.
24085         * tests/test-netdb.c: New file.
24086         * doc/posix-headers/netdb.texi: Mention that we replace it if
24087         needed.
24088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24089         netdb.
24090
24091 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24092
24093         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
24094         with code.
24095
24096 2008-10-13  Bruno Haible  <bruno@clisp.org>
24097
24098         * lib/glthread/cond.c (glthread_cond_wait_func,
24099         glthread_cond_timedwait_func): Add a comment.
24100
24101 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24102
24103         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
24104         * tests/test-select.c: Likewise,
24105
24106 2008-10-13  Bruno Haible  <bruno@clisp.org>
24107
24108         * lib/glthread/cond.c (glthread_cond_wait_func,
24109         glthread_cond_timedwait_func): Fix variable name.
24110         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24111
24112 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
24113
24114         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
24115         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
24116         struct sockaddr.sa_len.
24117         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
24118
24119 2008-10-13  Simon Josefsson  <simon@josefsson.org>
24120
24121         * build-aux/pmccabe2html: Add css and css_url parameters.
24122
24123 2008-10-12  Bruno Haible  <bruno@clisp.org>
24124
24125         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
24126         calling aclx_get.
24127         Reported by Rainer Tammer <tammer@tammer.net>.
24128
24129 2008-10-12  Bruno Haible  <bruno@clisp.org>
24130
24131         Use msvcrt aware primitives for creation/termination of Win32 threads.
24132         * lib/glthread/thread.c: Include <process.h>.
24133         (glthread_create_func): Use _beginthreadex instead of CreateThread.
24134         (wrapper_func): Update signature.
24135         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
24136
24137 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24138             Bruno Haible  <bruno@clisp.org>
24139
24140         Provide a Win32 implementation of the 'cond' module.
24141         * lib/glthread/cond.h [USE_WIN32]: New implementation.
24142         * lib/glthread/cond.c (glthread_cond_init_func,
24143         glthread_cond_wait_func, glthread_cond_timedwait_func,
24144         glthread_cond_signal_func, glthread_cond_broadcast_func,
24145         glthread_cond_destroy_func) [USE_WIN32]: New functions.
24146         * modules/cond (Dependencies): Add gettimeofday.
24147
24148 2008-10-11  Bruno Haible  <bruno@clisp.org>
24149
24150         Make sleep work on older versions of mingw.
24151         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
24152         only whether it exists.
24153         * doc/posix-functions/sleep.texi: Mention the problem with older
24154         versions of mingw.
24155
24156 2008-10-11  Bruno Haible  <bruno@clisp.org>
24157
24158         New module 'shutdown'.
24159         * modules/shutdown: New file.
24160         * lib/sys_socket.in.h (shutdown): New declaration.
24161         * lib/winsock.c (shutdown): New function.
24162         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24163         GNULIB_SHUTDOWN.
24164         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
24165         * doc/posix-functions/shutdown.texi: Document the new module.
24166
24167 2008-10-11  Jim Meyering  <meyering@redhat.com>
24168
24169         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
24170
24171 2008-10-11  Bruno Haible  <bruno@clisp.org>
24172
24173         New module 'fclose'.
24174         * modules/fclose: New file.
24175         * lib/stdio.in.h (fclose): New declaration.
24176         * lib/fclose.c: New file.
24177         * m4/fclose.m4: New file.
24178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
24179         REPLACE_FCLOSE.
24180         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
24181         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
24182         REPLACE_FCLOSE.
24183         * modules/close (Depends-on): fclose.
24184         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
24185
24186 2008-10-11  Bruno Haible  <bruno@clisp.org>
24187
24188         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
24189         set errno and don't call _close.
24190
24191 2008-10-10  Bruno Haible  <bruno@clisp.org>
24192
24193         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
24194         ACL, not afterwards. Fixes test failure on Cygwin.
24195
24196 2008-10-09  Ben Pfaff  <blp@gnu.org>
24197
24198         * build-aux/announce-gen: Fix gnulib version related part of usage
24199         message.  Die with a useful error message if no tarballs are
24200         found.
24201
24202 2008-10-10  Jim Meyering  <meyering@redhat.com>
24203
24204         bootstrap: use git's --depth=N option only if it's supported
24205         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
24206         recognize the --depth option.  Reported by Pádraig Brady.
24207
24208 2008-10-09  Bruno Haible  <bruno@clisp.org>
24209
24210         New module 'ioctl'.
24211         * modules/ioctl: New file.
24212         * lib/sys_socket.in.h (ioctl): Remove declaration.
24213         * lib/winsock.c: Include <sys/ioctl.h>.
24214         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
24215         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24216         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
24217         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
24218         * doc/posix-functions/ioctl.texi: Mention the new module.
24219
24220 2008-10-09  Bruno Haible  <bruno@clisp.org>
24221
24222         New module 'sys_ioctl'.
24223         * lib/sys_ioctl.in.h: New file.
24224         * m4/sys_ioctl_h.m4: New file.
24225         * modules/sys_ioctl: New file.
24226         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
24227
24228 2008-10-09  Bruno Haible  <bruno@clisp.org>
24229
24230         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
24231         * lib/winsock.c: Include <stdarg.h>.
24232         (rpl_ioctl): Change to second argument 'int' and then varargs.
24233
24234 2008-10-09  Bruno Haible  <bruno@clisp.org>
24235
24236         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
24237         when the sys_socket module is present and the system has <winsock2.h>.
24238
24239 2008-10-09  Bruno Haible  <bruno@clisp.org>
24240
24241         * doc/posix-functions/close.texi: Mention module 'close' instead of
24242         module 'sys_socket'.
24243
24244 2008-10-09  Bruno Haible  <bruno@clisp.org>
24245
24246         * doc/glibc-headers/sys_ioctl.texi: New file.
24247         * doc/gnulib.texi: Include it.
24248
24249 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24250             Bruno Haible  <bruno@clisp.org>
24251
24252         Combine the two replacements of 'close'.
24253         * lib/sys_socket.in.h (close): Define to a reminder to include
24254         <unistd.h>.
24255         (_gl_close_fd_maybe_socket): New declaration.
24256         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
24257         * lib/winsock.c (close): Remove undefinition.
24258         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
24259         needed for the gnulib module 'close'.
24260         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
24261         define to an error symbol or to a warning, if suitable.
24262         * lib/close.c: Include <sys/socket.h>.
24263         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
24264         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
24265         UNISTD_H_HAVE_WINSOCK2_H.
24266         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
24267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24268         UNISTD_H_HAVE_WINSOCK2_H.
24269         * modules/sys_socket (Files): Add m4/unistd_h.m4.
24270         (configure.ac): Set a module indicator.
24271         (Makefile.am): Substitute GNULIB_CLOSE.
24272         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
24273         * modules/poll-tests (Depends-on): Add close.
24274         * modules/select-tests (Depends-on): Likewise.
24275
24276 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24277             Bruno Haible  <bruno@clisp.org>
24278
24279         New module 'close'.
24280         * modules/close: New file.
24281         * lib/unistd.in.h (close): Move declaration out of the
24282         FCHDIR_REPLACEMENT scope.
24283         (_gl_unregister_fd): New declaration.
24284         * lib/close.c: New file.
24285         * lib/fchdir.c (rpl_close): Remove function.
24286         * m4/close.m4: New file.
24287         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24288         close.
24289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
24290         REPLACE_CLOSE.
24291         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
24292         REPLACE_CLOSE.
24293         * modules/fchdir (Depends-on): Add close.
24294
24295 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24296             Bruno Haible  <bruno@clisp.org>
24297
24298         * lib/fcntl.in.h (open): Simplify conditionals.
24299         (_gl_register_fd): New declaration.
24300         * lib/fchdir.c (rpl_open): Remove function.
24301         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
24302         also.
24303         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
24304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24305         open.
24306
24307 2008-10-09  Jim Meyering  <meyering@redhat.com>
24308
24309         GNUmakefile: use the more name-space-friendly "_version"
24310         * top/GNUmakefile (_dummy): Update.
24311         (_version): Rename from "version".
24312
24313 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24314             Bruno Haible  <bruno@clisp.org>
24315
24316         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
24317         rpl_close.
24318         (_gl_register_fd): New function, extracted from rpl_open.
24319         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
24320         (rpl_open, rpl_opendir): Use _gl_register_fd.
24321
24322 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24323
24324         Fix organization of 'open' replacement.
24325         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
24326         (gl_FUNC_OPEN): Use it.
24327         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
24328
24329 2008-10-08  Bruno Haible  <bruno@clisp.org>
24330
24331         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
24332
24333 2008-10-08  Simon Josefsson  <simon@josefsson.org>
24334
24335         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
24336         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
24337         listen).
24338
24339 2008-10-08  Eric Blake  <ebb9@byu.net>
24340
24341         GNUmakefile: add 'make version' target
24342         * top/GNUmakefile (_curr-ver): Split version update rules...
24343         (version): ...into a target.
24344
24345 2008-10-07  Bruno Haible  <bruno@clisp.org>
24346
24347         Use a more portable replacement expression for -0.0L.
24348         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
24349         instead of -0.0L. Fix m4 quotation.
24350
24351         * tests/test-signbit.c: Include <float.h>.
24352         (minus_zero): New variable.
24353         (test_signbitl): Use minus_zero instead of -zero.
24354         * modules/signbit-tests (Depends-on): Add float.
24355
24356         * tests/test-ceill.c: Include <float.h>.
24357         (zero): Remove variable.
24358         (minus_zero): New variable.
24359         (main): Use minus_zero instead of -zero.
24360         * modules/ceill-tests (Depends-on): Add float.
24361
24362         * tests/test-floorl.c: Include <float.h>.
24363         (zero): Remove variable.
24364         (minus_zero): New variable.
24365         (main): Use minus_zero instead of -zero.
24366         * modules/floorl-tests (Depends-on): Add float.
24367
24368         * tests/test-roundl.c: Include <float.h>.
24369         (zero): Remove variable.
24370         (minus_zero): New variable.
24371         (main): Use minus_zero instead of -zero.
24372         * modules/roundl-tests (Depends-on): Add float.
24373
24374         * tests/test-truncl.c: Include <float.h>.
24375         (zero): Remove variable.
24376         (minus_zero): New variable.
24377         (main): Use minus_zero instead of -zero.
24378         * modules/truncl-tests (Depends-on): Add float.
24379
24380         * tests/test-frexpl.c (zero): Remove variable.
24381         (minus_zero): New variable.
24382         (main): Use minus_zero instead of -zero.
24383         * modules/frexpl-tests (Depends-on): Add float.
24384
24385         * tests/test-isnan.c (zerol): Remove variable.
24386         (minus_zerol): New variable.
24387         (test_long_double): Use minus_zerol instead of -zerol.
24388         * modules/isnan-tests (Depends-on): Add float.
24389
24390         * tests/test-isnanl.h (zero): Remove variable.
24391         (minus_zero): New variable.
24392         (main): Use minus_zero instead of -zero.
24393         * modules/isnanl-nolibm-tests (Depends-on): Add float.
24394         * modules/isnanl-tests (Depends-on): Add float.
24395
24396         * tests/test-ldexpl.c (zero): Remove variable.
24397         (minus_zero): New variable.
24398         (main): Use minus_zero instead of -zero.
24399         * modules/ldexpl-tests (Depends-on): Add float.
24400
24401         * tests/test-snprintf-posix.h (zerol): Remove variable.
24402         (minus_zerol): New variable.
24403         (test_function): Use minus_zerol instead of -zerol.
24404         * modules/snprintf-posix-tests (Depends-on): Add float.
24405         * modules/vsnprintf-posix-tests (Depends-on): Add float.
24406
24407         * tests/test-sprintf-posix.h (zerol): Remove variable.
24408         (minus_zerol): New variable.
24409         (test_function): Use minus_zerol instead of -zerol.
24410         * modules/sprintf-posix-tests (Depends-on): Add float.
24411         * modules/vsprintf-posix-tests (Depends-on): Add float.
24412
24413         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
24414         (minus_zerol): New variable.
24415         (test_function): Use minus_zerol instead of -zerol.
24416         * modules/vasnprintf-posix-tests (Depends-on): Add float.
24417
24418         * tests/test-vasprintf-posix.c (zerol): Remove variable.
24419         (minus_zerol): New variable.
24420         (test_function): Use minus_zerol instead of -zerol.
24421         * modules/vasprintf-posix-tests (Depends-on): Add float.
24422
24423 2008-10-07  Simon Josefsson  <simon@josefsson.org>
24424
24425         * MODULES.html.sh (Support for building documentation): Mention
24426         pmccabe2html.  Sort entries.
24427
24428         Add pmccabe2html module, from gnupdf.
24429         * build-aux/pmccabe.css: New file.
24430         * build-aux/pmccabe2html: New file.
24431         * m4/pmccabe2html.m4: New file.
24432         * modules/pmccabe2html: New file.
24433
24434 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
24435
24436         flock: new module
24437         * MODULES.html.sh: Add to list of modules.
24438         * lib/flock.c: flock implementation for Windows and Unix systems
24439         which have fcntl.
24440         * doc/glibc-functions/flock.texi: Update documentation.
24441         * lib/sys_file.in.h: <sys/file.h> header file.
24442         * m4/flock.m4: M4 macros.
24443         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
24444         * modules/flock: flock module.
24445         * modules/flock-tests: flock tests module.
24446         * modules/sys_file: sys/file.h module.
24447         * tests/test-flock.c: test suite for flock.
24448
24449 2008-10-06  Jim Meyering  <meyering@redhat.com>
24450
24451         bootstrap: check for LT_INIT more portably still ;-)
24452         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
24453         Spotted by Bruno Haible.
24454
24455 2008-10-06  Eric Blake  <ebb9@byu.net>
24456
24457         test-signbit: avoid tripping Irix cc bug on -0.0L
24458         * tests/test-signbit.c (minus_zerol): Delete, and replace with
24459         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
24460         entire testsuite consistent and avoids an Irix 6.2 bug.
24461
24462 2008-10-05  Bruno Haible  <bruno@clisp.org>
24463             Jim Meyering  <jim@meyering.net>
24464
24465         Add an option for ignoring EPIPE during close_stdout.
24466         * lib/closeout.h: Include <stdbool.h>.
24467         (close_stdout_set_ignore_EPIPE): New declaration.
24468         * lib/closeout.c: Include <stdbool.h>.
24469         (ignore_EPIPE): New variable.
24470         (close_stdout_set_ignore_EPIPE): New function.
24471         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
24472         * lib/close-stream.c (close_stream): Mention the possible EPIPE
24473         failure.
24474         * modules/closeout (Depends-on): Add stdbool.
24475
24476 2008-10-05  Bruno Haible  <bruno@clisp.org>
24477
24478         * modules/accept: New file.
24479         * modules/bind: New file.
24480         * modules/connect: New file.
24481         * modules/getpeername: New file.
24482         * modules/getsockname: New file.
24483         * modules/getsockopt: New file.
24484         * modules/listen: New file.
24485         * modules/recv: New file.
24486         * modules/recvfrom: New file.
24487         * modules/send: New file.
24488         * modules/sendto: New file.
24489         * modules/setsockopt: New file.
24490         * modules/socket: New file.
24491         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24492         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24493         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24494         the particular module is requested. Add a link warning when the
24495         particular module is not requested.
24496         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24497         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24498         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24499         the particular module is requested.
24500         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24501         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24502         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24503         * modules/sys_socket (Depends-on): Add link-warning.
24504         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24505         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24506         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24507         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24508         GL_LINK_WARNING.
24509         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24510         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24511         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24512         * doc/posix-functions/getpeername.texi: Mention the new module
24513         'getpeername'.
24514         * doc/posix-functions/getsockname.texi: Mention the new module
24515         'getsockname'.
24516         * doc/posix-functions/getsockopt.texi: Mention the new module
24517         'getsockopt'.
24518         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24519         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24520         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24521         * doc/posix-functions/send.texi: Mention the new module 'send'.
24522         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24523         * doc/posix-functions/setsockopt.texi: Mention the new module
24524         'setsockopt'.
24525         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24526         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24527         listen, connect, accept.
24528         * modules/select-tests (Depends-on): Likewise.
24529
24530 2008-10-05  Bruno Haible  <bruno@clisp.org>
24531
24532         * lib/winsock.c (strerror): Remove unused #undef.
24533         (rpl_close): Remove unused local variable.
24534
24535         * modules/sys_socket (Depends-on); Add errno.
24536
24537 2008-10-05  Bruno Haible  <bruno@clisp.org>
24538
24539         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24540         (select): Add a link warning when the 'select' module is not used.
24541         * modules/sys_select (Depends-on): Add link-warning.
24542         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24543         Suggested by Paolo Bonzini.
24544
24545 2008-10-05  Jim Meyering  <meyering@redhat.com>
24546
24547         bootstrap: check for LT_INIT more portably
24548         * build-aux/bootstrap: Avoid using grep -E, since it's not
24549         portable enough.  Suggestion from Bruno Haible.
24550
24551 2008-10-05  Bruno Haible  <bruno@clisp.org>
24552
24553         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24554         as being fixed by gnulib.
24555
24556 2008-10-05  Bruno Haible  <bruno@clisp.org>
24557
24558         * modules/select-tests: New file, mostly copied from
24559         modules/sys_select-tests.
24560         * tests/test-select.c: New file, mostly copied from
24561         tests/test-sys_select.c.
24562         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24563         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24564         (Makefile.am): Remove test_sys_select_LDADD.
24565
24566         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24567         to an undefined symbol, for an error message.
24568         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24569         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24570         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24571         winsock-select.c here.
24572         * modules/sys_select (Files): Remove lib/winsock-select.c.
24573         (Depends-on): Remove alloca.
24574         (Makefile.am): Substitute GNULIB_SELECT.
24575         * modules/select: New file.
24576         * doc/posix-functions/select.texi: Update.
24577
24578 2008-10-05  Bruno Haible  <bruno@clisp.org>
24579
24580         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24581         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24582         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24583         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24584         getdtablesize.
24585         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24586         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24587
24588 2008-10-05  Bruno Haible  <bruno@clisp.org>
24589
24590         * modules/getdtablesize-tests: New file.
24591         * tests/test-getdtablesize.c: New file.
24592
24593         New module 'getdtablesize'.
24594         * lib/unistd.in.h (getdtablesize): New declaration.
24595         * lib/getdtablesize.c: New file.
24596         * m4/getdtablesize.m4: New file.
24597         * modules/getdtablesize: New file.
24598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24599         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24600         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24601         HAVE_GETDTABLESIZE.
24602         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24603
24604 2008-10-05  Bruno Haible  <bruno@clisp.org>
24605
24606         * modules/sched (Makefile.am): Fix typo.
24607         Reported by Simon Josefsson.
24608
24609 2008-10-05  Jim Meyering  <meyering@redhat.com>
24610
24611         bootstrap: check for LT_INIT, too
24612         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24613         are deprecated.  Suggestion from Ralf Wildenhues.
24614
24615 2008-10-05  Bruno Haible  <bruno@clisp.org>
24616
24617         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24618         overriding them by ours.
24619         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24620
24621 2008-10-05  Jim Meyering  <meyering@redhat.com>
24622
24623         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24624         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24625         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24626
24627 2008-10-04  Bruno Haible  <bruno@clisp.org>
24628
24629         * modules/dup2 (License): Change to LGPLv2+.
24630         * modules/sleep (License): Likewise.
24631         * modules/perror (License): Likewise.
24632         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24633         Blake.
24634         * modules/signal (License): Likewise.
24635         * modules/sigprocmask (License): Likewise.
24636         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24637         Meyering.
24638
24639 2008-10-04  Bruno Haible  <bruno@clisp.org>
24640
24641         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24642         Reported by Rainer Tammer <tammer@tammer.net>.
24643
24644 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24645             Bruno Haible  <bruno@clisp.org>
24646
24647         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24648         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24649         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24650
24651 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24652
24653         filevercmp: new module
24654         * lib/filevercmp.h: New function filevercmp comparing version strings.
24655         * lib/filevercmp.c: Implementation of filevercmp function.
24656         * modules/filevercmp: Module metadata.
24657         * tests/test-filevercmp.c: Unit test for new module.
24658         * modules/filevercmp-tests: Unit test metadata.
24659         * MODULES.html.sh: Add filevercmp module.
24660
24661 2008-10-03  Bruno Haible  <bruno@clisp.org>
24662
24663         * lib/c-ctype.h: Add comment.
24664         Reported by Jim Meyering.
24665
24666 2008-10-02  Bruno Haible  <bruno@clisp.org>
24667
24668         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24669
24670 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24671
24672         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24673         name of bootstrap.conf accordingly.
24674
24675 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24676
24677         * build-aux/bootstrap: Install git-merge-changelog configuration
24678         items into .gitconfig if needed.
24679
24680 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24681
24682         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
24683         git repository, and initialize/update it accordingly.
24684
24685 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
24686
24687         * modules/fsync-tests: New file.
24688         * tests/test-fsync.c: New file.
24689
24690         New module 'fsync'.
24691         * lib/fsync.c: New file.
24692         * m4/fsync.m4: New file.
24693         * modules/fsync: New file.
24694         * lib/unistd.in.h (fsync): New declaration.
24695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
24696         GNULIB_FSYNC and HAVE_FSYNC.
24697         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
24698         * MODULES.html.sh (posix_functions): Add fsync.
24699         * doc/posix-functions/fsync.texi: Mention the new module.
24700
24701 2008-10-02  Jim Meyering  <meyering@redhat.com>
24702
24703         fts.c: sync with similar code from coreutils' remove.c
24704         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
24705         Guard also with "#if defined __linux__", since for now at least,
24706         this code is Linux-kernel-specific.
24707
24708 2008-10-02  Jim Meyering  <meyering@redhat.com>
24709
24710         fts: bug fixes
24711         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
24712         Include <sys/vfs.h>, not <sys/statfs.h>.
24713
24714         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
24715         Include <sys/vfs.h>, not <sys/statfs.h>.
24716
24717 2008-10-01  Bruno Haible  <bruno@clisp.org>
24718
24719         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
24720         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
24721         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
24722         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
24723         * doc/posix-functions/posix_spawnp.texi: Likewise.
24724         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
24725         whether posix_spawn actually works.
24726         * m4/pipe.m4 (gl_PIPE): Likewise.
24727         * modules/execute (Files): Add m4/posix_spawn.m4.
24728         * modules/pipe (Files): Add m4/posix_spawn.m4.
24729         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
24730
24731 2008-10-01  Jim Meyering  <meyering@redhat.com>
24732
24733         remove trailing spaces
24734         * NEWS: Likewise.
24735         * lib/poll.c (poll): Likewise.
24736         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
24737         * lib/winsock.c (rpl_close): Likewise.
24738         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
24739         * modules/yield: Likewise.
24740         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
24741         * tests/test-sys_select.c (connect_to_socket): Likewise.
24742
24743         fts.c: adjust a new interface to be more generally useful
24744         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
24745         (fts_build): Adjust caller.
24746
24747 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24748
24749         * modules/cond-tests: New file.
24750         * tests/test-cond.c: New file.
24751
24752 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24753             Bruno Haible  <bruno@clisp.org>
24754
24755         * modules/cond (Dependencies): Add errno, time.
24756         * lib/glthread/cond.h: Include <time.h>.
24757         (gl_cond_define, gl_cond_define_initialized): Use the same definition
24758         across platforms.
24759
24760 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24761             Bruno Haible  <bruno@clisp.org>
24762
24763         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
24764
24765 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24766             Bruno Haible  <bruno@clisp.org>
24767
24768         * modules/tls-tests (Depends-on): Add thread, yield.
24769         (configure.ac): Remove all checks.
24770         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
24771         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24772         gl_thread_self): Remove definitions. Include glthread/thread.h and
24773         glthread/yield.h instead.
24774         (test_tls): Pass an additional NULL argument to gl_thread_join.
24775
24776 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24777             Bruno Haible  <bruno@clisp.org>
24778
24779         * modules/lock-tests (Depends-on): Add thread, yield.
24780         (configure.ac): Remove all checks.
24781         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
24782         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24783         gl_thread_self): Remove definitions. Include glthread/thread.h and
24784         glthread/yield.h instead.
24785         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
24786         additional NULL argument to gl_thread_join.
24787
24788 2008-09-30  Bruno Haible  <bruno@clisp.org>
24789
24790         Fix the Win32 implementation of the 'thread' module.
24791         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
24792         pointer type.
24793         (gl_thread_self): Invoke gl_thread_self_func.
24794         (gl_thread_self_func): New declaration.
24795         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
24796         (do_init_self_key, init_self_key): New functions.
24797         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
24798         Remove some fields.
24799         (running_threads, running_lock): Remove variables.
24800         (get_current_thread_handle): New function.
24801         (gl_thread_self_func, wrapper_func, glthread_create_func,
24802         glthread_join_func, gl_thread_exit_func): Largely rewritten and
24803         simplified.
24804
24805 2008-09-30  Bruno Haible  <bruno@clisp.org>
24806
24807         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
24808         files.
24809
24810 2008-09-30  Jim Meyering  <meyering@redhat.com>
24811
24812         fts.m4: correct the test for statfs.f_type
24813         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
24814         when checking for statfs.f_type.
24815
24816 2008-09-15  Simon Josefsson  <simon@josefsson.org>
24817
24818         tests: avoid some compiler warnings
24819         * tests/test-memchr.c (main): Pass NULL indirectly.
24820         * tests/test-getdate.c (main): Remove unused variable 'ret'.
24821
24822 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
24823
24824         getdate.y: disallow countable dayshifts like "4 yesterday ago"
24825         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
24826         exactly specified dayshifts.
24827         (dayshift): New rule.
24828         (rel): Add dayshift.
24829         (relative_time_table) [tomorrow, yesterday, today, now]:
24830         Use tDAY_SHIFT in place of tDAY_UNIT.
24831         * tests/test-getdate.c: Add tests for now-disallowed countable
24832         dayshifts, e.g., "4 yesterday ago".
24833
24834 2008-09-29  Bruno Haible  <bruno@clisp.org>
24835
24836         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
24837         * tests/test-posix_spawn1.in.sh: Renamed from
24838         tests/test-posix_spawn.in.sh.
24839         * tests/test-posix_spawn2.c: New file.
24840         * tests/test-posix_spawn2.in.sh: New file.
24841         * modules/posix_spawnp-tests (Files): Update.
24842         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
24843
24844 2008-09-29  Bruno Haible  <bruno@clisp.org>
24845
24846         Propagate effects of putenv/setenv/unsetenv to child processes.
24847         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
24848         * lib/pipe.c (create_pipe): Likewise.
24849
24850 2008-09-29  Bruno Haible  <bruno@clisp.org>
24851
24852         Enable use of shell scripts as executables in mingw.
24853         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
24854         run the program as a shell script.
24855         * lib/pipe.c (create_pipe): Likewise.
24856         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
24857         resulting array.
24858
24859 2008-09-29  Eric Blake  <ebb9@byu.net>
24860
24861         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
24862
24863 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
24864
24865         * doc/posix-functions/accept.texi: Update mingw problems.
24866         * doc/posix-functions/bind.texi: Update mingw problems.
24867         * doc/posix-functions/close.texi: Update mingw problems.
24868         * doc/posix-functions/connect.texi: Update mingw problems.
24869         * doc/posix-functions/getpeername.texi: Update mingw problems.
24870         * doc/posix-functions/getsockname.texi: Update mingw problems.
24871         * doc/posix-functions/getsockopt.texi: Update mingw problems.
24872         * doc/posix-functions/ioctl.texi: Update mingw problems.
24873         * doc/posix-functions/listen.texi: Update mingw problems.
24874         * doc/posix-functions/recv.texi: Update mingw problems.
24875         * doc/posix-functions/recvfrom.texi: Update mingw problems.
24876         * doc/posix-functions/select.texi: Update mingw problems.
24877         * doc/posix-functions/send.texi: Update mingw problems.
24878         * doc/posix-functions/sendto.texi: Update mingw problems.
24879         * doc/posix-functions/setsockopt.texi: Update mingw problems.
24880         * doc/posix-functions/socket.texi: Update mingw problems.
24881
24882 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
24883             Bruno Haible  <bruno@clisp.org>
24884
24885         * lib/sys_select.in.h: Include sys/time.h.
24886         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
24887         * modules/sys_select: Depend on sys_time.
24888         * tests/test-sys_select.c: Test that sys/select.h defines struct
24889         timeval fully.
24890
24891 2008-09-29  Bruno Haible  <bruno@clisp.org>
24892
24893         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
24894         * lib/sys_select.in.h: Likewise.
24895
24896 2008-09-29  Bruno Haible  <bruno@clisp.org>
24897
24898         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
24899
24900 2008-09-29  Bruno Haible  <bruno@clisp.org>
24901
24902         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
24903         Set LIBSOCKET instead of augmenting LIBS.
24904         * modules/sockets (Link): New section.
24905         * modules/sockets-tests (test_sockets_LDADD): New variable.
24906         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
24907         * modules/poll-tests (test_poll_LDADD): New variable.
24908         * NEWS: Document the change.
24909
24910 2008-09-29  Bruno Haible  <bruno@clisp.org>
24911
24912         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
24913         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
24914         ARPA_INET_H directly.
24915         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24916
24917 2008-09-28  Bruno Haible  <bruno@clisp.org>
24918
24919         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
24920         from gl_HEADER_SYS_SOCKET.
24921         (gl_HEADER_SYS_SOCKET): Invoke it.
24922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24923
24924 2008-09-28  Bruno Haible  <bruno@clisp.org>
24925
24926         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
24927         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
24928         Needed on OSF/1 4.0.
24929
24930 2008-09-28  Bruno Haible  <bruno@clisp.org>
24931
24932         Override open more carefully.
24933         * lib/open.c (orig_open): New function.
24934         (rpl_open): Use orig_open instead of open.
24935         * lib/fcntl.in.h: Add special invocation convention.
24936         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
24937         (gl_FUNC_OPEN): Invoke it.
24938
24939         Override freopen more carefully.
24940         * lib/freopen.c (orig_freopen): New function.
24941         (rpl_freopen): Use orig_freopen instead of freopen.
24942         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
24943         (gl_FUNC_FREOPEN): Invoke it.
24944
24945         Override fopen more carefully.
24946         * lib/fopen.c (orig_fopen): New function.
24947         (rpl_fopen): Use orig_fopen instead of fopen.
24948         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
24949         (gl_FUNC_FOPEN): Invoke it.
24950         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
24951
24952 2008-09-28  Bruno Haible  <bruno@clisp.org>
24953
24954         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
24955         SIGPIPE.
24956
24957 2008-09-28  Bruno Haible  <bruno@clisp.org>
24958
24959         * tests/test-sigaction.c (handler, main): Disable the check whether
24960         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
24961         glibc systems with LinuxThreads.
24962
24963 2008-09-28  Bruno Haible  <bruno@clisp.org>
24964
24965         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
24966
24967         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
24968         with AIX xlc.
24969         * lib/fcntl.in.h (open): Likewise.
24970         Reported by Rainer Tammer <tammer@tammer.net>.
24971
24972 2008-09-28  Bruno Haible  <bruno@clisp.org>
24973
24974         * modules/posix_spawnp-tests: New file.
24975         * tests/test-posix_spawn.c: New file.
24976         * tests/test-posix_spawn.in.sh: New file.
24977
24978         New module 'posix_spawnp'.
24979         * modules/posix_spawnp: New file.
24980         * lib/spawnp.c: New file, from GNU libc with modifications.
24981         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
24982
24983         New module 'posix_spawn'.
24984         * modules/posix_spawn: New file.
24985         * lib/spawn.c: New file, from GNU libc with modifications.
24986         * doc/posix-functions/posix_spawn.texi: Mention the new module.
24987
24988         New module 'posix_spawnattr_destroy'.
24989         * modules/posix_spawnattr_destroy: New file.
24990         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
24991         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
24992         module.
24993
24994         New module 'posix_spawnattr_setsigmask'.
24995         * modules/posix_spawnattr_setsigmask: New file.
24996         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
24997         modifications.
24998         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
24999         new module.
25000
25001         New module 'posix_spawnattr_getsigmask'.
25002         * modules/posix_spawnattr_getsigmask: New file.
25003         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
25004         modifications.
25005         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
25006         new module.
25007
25008         New module 'posix_spawnattr_setsigdefault'.
25009         * modules/posix_spawnattr_setsigdefault: New file.
25010         * lib/spawnattr_setdefault.c: New file, from GNU libc with
25011         modifications.
25012         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
25013         new module.
25014
25015         New module 'posix_spawnattr_getsigdefault'.
25016         * modules/posix_spawnattr_getsigdefault: New file.
25017         * lib/spawnattr_getdefault.c: New file, from GNU libc with
25018         modifications.
25019         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
25020         new module.
25021
25022         New module 'posix_spawnattr_setschedpolicy'.
25023         * modules/posix_spawnattr_setschedpolicy: New file.
25024         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
25025         modifications.
25026         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
25027         new module.
25028
25029         New module 'posix_spawnattr_getschedpolicy'.
25030         * modules/posix_spawnattr_getschedpolicy: New file.
25031         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
25032         modifications.
25033         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
25034         new module.
25035
25036         New module 'posix_spawnattr_setschedparam'.
25037         * modules/posix_spawnattr_setschedparam: New file.
25038         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
25039         modifications.
25040         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
25041         new module.
25042
25043         New module 'posix_spawnattr_getschedparam'.
25044         * modules/posix_spawnattr_getschedparam: New file.
25045         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
25046         modifications.
25047         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
25048         new module.
25049
25050         New module 'posix_spawnattr_setpgroup'.
25051         * modules/posix_spawnattr_setpgroup: New file.
25052         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
25053         modifications.
25054         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
25055         module.
25056
25057         New module 'posix_spawnattr_getpgroup'.
25058         * modules/posix_spawnattr_getpgroup: New file.
25059         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
25060         modifications.
25061         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
25062         module.
25063
25064         New module 'posix_spawnattr_setflags'.
25065         * modules/posix_spawnattr_setflags: New file.
25066         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
25067         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
25068         module.
25069
25070         New module 'posix_spawnattr_getflags'.
25071         * modules/posix_spawnattr_getflags: New file.
25072         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
25073         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
25074         module.
25075
25076         New module 'posix_spawnattr_init'.
25077         * modules/posix_spawnattr_init: New file.
25078         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
25079         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
25080         module.
25081
25082         New module 'posix_spawn_file_actions_destroy'.
25083         * modules/posix_spawn_file_actions_destroy: New file.
25084         * lib/spawn_faction_destroy.c: New file, from GNU libc with
25085         modifications.
25086         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
25087         the new module.
25088
25089         New module 'posix_spawn_file_actions_addopen'.
25090         * modules/posix_spawn_file_actions_addopen: New file.
25091         * lib/spawn_faction_addopen.c: New file, from GNU libc with
25092         modifications.
25093         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25094         the new module.
25095
25096         New module 'posix_spawn_file_actions_adddup2'.
25097         * modules/posix_spawn_file_actions_adddup2: New file.
25098         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
25099         modifications.
25100         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25101         the new module.
25102
25103         New module 'posix_spawn_file_actions_addclose'.
25104         * modules/posix_spawn_file_actions_addclose: New file.
25105         * lib/spawn_faction_addclose.c: New file, from GNU libc with
25106         modifications.
25107         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25108         the new module.
25109
25110         New module 'posix_spawn_file_actions_init'.
25111         * modules/posix_spawn_file_actions_init: New file.
25112         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
25113         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
25114         new module.
25115
25116         New module 'posix_spawn-internal'.
25117         * modules/posix_spawn-internal: New file.
25118         * lib/spawn_int.h: New file, from GNU libc with modifications.
25119         * lib/spawni.c: New file, from GNU libc with modifications.
25120         * m4/posix_spawn.m4: New file.
25121
25122         New module 'spawn'.
25123         * modules/spawn: New file.
25124         * lib/spawn.in.h: New file, from GNU libc with modifications.
25125         * m4/spawn_h.m4: New file.
25126         * doc/posix-headers/spawn.texi: Mention the new module.
25127
25128 2008-09-28  Bruno Haible  <bruno@clisp.org>
25129
25130         * modules/sched-tests: New file.
25131         * tests/test-sched.c: New file.
25132
25133         New module 'sched'.
25134         * modules/sched: New file.
25135         * lib/sched.in.h: New file.
25136         * m4/sched_h.m4: New file.
25137         * doc/posix-headers/sched.texi: Mention the new module.
25138
25139 2008-09-27  Eric Blake  <ebb9@byu.net>
25140
25141         Fix previous patch, and tweak references to $0.
25142         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
25143         (func_version, func_gnulib_dir): Don't call this program
25144         gnulib-tool.
25145         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
25146         with using $0 in function.
25147         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
25148         (func_fatal_error): Reuse the name the user invoked us with.
25149
25150 2008-09-27  Bruno Haible  <bruno@clisp.org>
25151
25152         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
25153         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
25154         (gl_ICONV_H): Not here.
25155         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25156         instead of assigning ICONV_H directly.
25157
25158         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
25159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
25160         WCHAR_H directly.
25161
25162 2008-09-27  Bruno Haible  <bruno@clisp.org>
25163
25164         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
25165         * modules/arpa_inet (Depends-on): Add link-warning.
25166         (Makefile.am): Insert the definition of GL_LINK-WARNING.
25167         * modules/unistd (Makefile.am): Likewise.
25168
25169 2008-09-26  Bruno Haible  <bruno@clisp.org>
25170
25171         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
25172         variables.
25173         (func_version): Essentially copied from gnulib-tool.
25174         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
25175         func_readlink): Copied from gnulib-tool.
25176
25177 2008-09-26  Bruno Haible  <bruno@clisp.org>
25178
25179         * gnulib-tool (func_version): Change directory to $gnulib_dir before
25180         invoking git-version-gen.
25181
25182 2008-09-26  Bruno Haible  <bruno@clisp.org>
25183
25184         * posix-modules: Update to directory names changed on 2008-01-19.
25185         Remove commas in output before splitting into words. No more need to
25186         avoid 'ftruncate' since 2007-02-19.
25187
25188 2008-09-26  Bruno Haible  <bruno@clisp.org>
25189
25190         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
25191
25192 2008-09-26  Bruno Haible  <bruno@clisp.org>
25193
25194         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
25195         * modules/fwriteerror (Depends-on): Add errno.
25196
25197 2008-09-26  Bruno Haible  <bruno@clisp.org>
25198
25199         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
25200         * tests/test-vc-list-files-cvs.sh: Likewise.
25201
25202 2008-09-26  Bruno Haible  <bruno@clisp.org>
25203
25204         * doc/posix-headers/sys_resource.texi: Reorder items.
25205
25206 2008-09-26  Jim Meyering  <meyering@redhat.com>
25207
25208         fts: tweak inode comparison function
25209         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
25210         inode numbers, as documented.
25211
25212         fts: sort dirent entries on inode number before traversing
25213         This avoids a quadratic, seek-related performance penalty when
25214         operating on a directory containing many entries (measurable at 10k;
25215         3.5 hours at 2 million entries with a cold cache) on certain types
25216         of file systems, including ext3 and ext4, but not tmpfs.
25217         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
25218         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
25219         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
25220         (fs_handles_readdir_ordered_dirents_efficiently): New function.
25221         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
25222         (fts_build): Set the stat.st_ino member from D_INO.
25223         If it is likely to be useful, sort dirent entries on inode number.
25224
25225         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
25226         and the struct statfs.f_type member.
25227         * modules/fts (Depends-on): Add d-ino.
25228
25229 2008-09-26  Bruno Haible  <bruno@clisp.org>
25230
25231         * modules/sigpipe-die (Depends-on): Add sigpipe.
25232
25233         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
25234         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
25235         and GNULIB_STDIO_H_SIGPIPE are set.
25236         * lib/stdio-write.c: New file.
25237         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
25238         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25239         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25240         REPLACE_STDIO_WRITE_FUNCS.
25241         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
25242         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25243         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25244         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25245         * modules/stdio (Files): Add lib/stdio-write.c.
25246         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
25247         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25248         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25249         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25250         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
25251         REPLACE_FPRINTF_POSIX.
25252         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
25253         REPLACE_PRINTF_POSIX.
25254         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
25255         REPLACE_VFPRINTF_POSIX.
25256         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
25257         REPLACE_VPRINTF_POSIX.
25258         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
25259         SIGPIPE issue.
25260         * doc/posix-functions/fputc.texi: Likewise.
25261         * doc/posix-functions/fputs.texi: Likewise.
25262         * doc/posix-functions/fwrite.texi: Likewise.
25263         * doc/posix-functions/printf.texi: Likewise.
25264         * doc/posix-functions/putc.texi: Likewise.
25265         * doc/posix-functions/putchar.texi: Likewise.
25266         * doc/posix-functions/puts.texi: Likewise.
25267         * doc/posix-functions/vfprintf.texi: Likewise.
25268         * doc/posix-functions/vprintf.texi: Likewise.
25269
25270         * modules/safe-write (Depends-on): Add write.
25271
25272         * modules/sigpipe-tests: New file.
25273         * tests/test-sigpipe.c: New file.
25274         * tests/test-sigpipe.sh: New file.
25275
25276         * modules/write: New file.
25277         * lib/unistd.in.h: Include <sys/types.h>.
25278         (write): New declaration.
25279         * lib/write.c: New file.
25280         * m4/write.m4: New file.
25281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25282         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
25283         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
25284         GNULIB_WRITE, REPLACE_WRITE.
25285         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
25286         and the SIGPIPE issue.
25287
25288         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
25289         (raise): New declaration.
25290         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
25291         (ext_signal): New function.
25292         (rpl_raise): New function.
25293         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25294         GNULIB_SIGNAL_H_SIGPIPE.
25295         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
25296         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
25297
25298         * modules/sigpipe: New file.
25299         * m4/sigpipe.m4: New file.
25300
25301 2008-09-25  Derek Price  <derek@ximbiot.com>
25302             Bruno Haible  <bruno@clisp.org>
25303
25304         * gnulib-tool (func_import): Report all license incompatibilities, not
25305         just the first one.
25306
25307 2008-09-25  Bruno Haible  <bruno@clisp.org>
25308
25309         * gnulib-tool (func_import): When computing the edits, consider not
25310         only the Makefile.ams that exist but also those that will be generated.
25311
25312 2008-09-25  Simon Josefsson  <simon@josefsson.org>
25313
25314         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
25315         fixes gnulib-tool --test warning about duplicate dependency.
25316
25317 2008-09-25  Bruno Haible  <bruno@clisp.org>
25318
25319         * gnulib-tool: Don't ask the user to perform edits in the generated
25320         Makefile.ams.
25321         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
25322         apply to the Makefile.am being generated.
25323         (func_emit_tests_Makefile_am): Execute edits that apply to the
25324         Makefile.am being generated.
25325         (func_import): Setup list of Makefile.am edits before emitting the
25326         Makefile.ams, not at the end.
25327         (func_create_testdir): Update.
25328         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25329
25330 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25331
25332         * gnulib-tool (func_import): Store the --tests-base option in the
25333         comment in gnulib-cache.m4.
25334
25335 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
25336
25337         * NEWS: Document increased portability that sys_select now provides.
25338
25339         * lib/sys_select.in.h: Install select wrapper.
25340         * lib/sys_socket.in.h: Use more descriptive name when there is no
25341         select wrapper.
25342         * lib/winsock-select.c: New.
25343         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
25344         Require gl_HEADER_SYS_SOCKET.
25345         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
25346         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
25347         * tests/test-sys_select.c: Add functional tests.
25348
25349 2008-09-24  Eric Blake  <ebb9@byu.net>
25350
25351         open, fopen: close fd leak in last patch
25352         * lib/open.c (rpl_open): Close fd before returning error.
25353         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25354         * doc/posix-functions/open.texi (open): Document that Irix also
25355         has the bug.
25356         * doc/posix-functions/fopen.texi (fopen): Likewise.
25357         Reported by Paolo Bonzini.
25358
25359 2008-09-24  Bruno Haible  <bruno@clisp.org>
25360
25361         Ensure that a filename ending in a slash cannot be used to access a
25362         non-directory.
25363         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
25364         to check whether it's really a directory.
25365         * lib/fopen.c: Include fcntl.h, unistd.h.
25366         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
25367         and fdopen().
25368         * modules/fopen (Depends-on): Add unistd.
25369         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
25370         * tests/test-fopen.c (main): Likewise.
25371         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
25372         * doc/posix-functions/fopen.texi: Likewise.
25373         Reported by Eric Blake.
25374
25375 2008-09-23  Eric Blake  <ebb9@byu.net>
25376
25377         c-stack: avoid compiler optimizations when provoking overflow
25378         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
25379         recursion harder to optimize, to ensure a stack overflow occurs.
25380         * tests/test-c-stack.c (recurse): Likewise.
25381         Borrowed from libsigsegv.
25382
25383         c-stack: work around Irix sigaltstack bug
25384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
25385         whether sigaltstack uses wrong end of stack_t (copied in part from
25386         libsigsegv).
25387         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
25388         Irix bug, without requiring an over-allocation.
25389         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
25390         bug.
25391
25392         fopen: document mingw bug on directories
25393         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
25394         not allowing a stream visiting a directory, even though reading
25395         from such a stream is not portable.
25396
25397 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25398
25399         * lib/poll.c: Rewrite.
25400         * modules/poll: Depend on alloca.
25401
25402 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25403
25404         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
25405         instead define prototypes for a full set of wrappers.  Ensure
25406         that Cygwin does not use the compatibility code, which is only
25407         for MinGW.
25408         * lib/winsock.c: New.
25409         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
25410         * modules/sys_socket: Add lib/winsock.c.
25411
25412         * modules/poll-tests: Add errno and perror.
25413         * tests/test-poll.c: Use ioctl, not ioctlsocket.
25414
25415 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25416
25417         * tests/test-poll.c: Downgrade minimum needed Winsock version.
25418
25419 2008-09-23  Bruno Haible  <bruno@clisp.org>
25420
25421         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
25422         * doc/glibc-functions/*: Likewise.
25423
25424 2008-09-23  Simon Josefsson  <simon@josefsson.org>
25425
25426         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
25427         success.
25428
25429 2008-09-22  Eric Blake  <ebb9@byu.net>
25430             Bruno Haible  <bruno@clisp.org>
25431
25432         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
25433         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
25434         supply %A but mishandle pseudo-NaN.
25435         Reported by Simon Josefsson.
25436
25437 2008-09-21  Bruno Haible  <bruno@clisp.org>
25438
25439         * tests/test-lock.c (main): Tweak skip message.
25440         * tests/test-tls.c (main): Likewise.
25441
25442 2008-09-21  Bruno Haible  <bruno@clisp.org>
25443
25444         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
25445         whether 'struct sigaction' has sa_sigaction here...
25446         (gl_PREREQ_SIG_HANDLER_H): ... not here.
25447         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
25448
25449 2008-09-21  Bruno Haible  <bruno@clisp.org>
25450
25451         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
25452         section.
25453         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
25454         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
25455         the new section.
25456         (Support for obsolete systems lacking POSIX:2001): New section.
25457         (String handling <string.h>): Move strdup to the new section.
25458         Suggested by Simon Josefsson and Paolo Bonzini.
25459
25460 2008-09-21  Bruno Haible  <bruno@clisp.org>
25461
25462         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
25463         exponents in %e and %g results on 'long double'. Needed for mingw's
25464         improved *printf functions.
25465         * tests/test-vasprintf-posix.c (test_function): Likewise.
25466         * tests/test-snprintf-posix.h (test_function): Likewise.
25467         * tests/test-sprintf-posix.h (test_function): Likewise.
25468         Reported by Eric Blake.
25469
25470 2008-09-21  Bruno Haible  <bruno@clisp.org>
25471
25472         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
25473         * tests/test-sprintf-posix.h (test_function): Likewise.
25474
25475 2008-09-21  Bruno Haible  <bruno@clisp.org>
25476
25477         * modules/getpass (Depends-on): Add strdup-posix.
25478
25479         New module 'strdup-posix'.
25480         * modules/strdup-posix: New file.
25481         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
25482         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
25483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25484         REPLACE_STRDUP.
25485         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
25486         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
25487         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25488         strdup-posix.
25489
25490         * modules/strdup (Depends-on): Remove malloc-posix.
25491
25492 2008-09-20  Bruno Haible  <bruno@clisp.org>
25493
25494         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25495         Wildenhues.
25496
25497 2008-09-20  Bruno Haible  <bruno@clisp.org>
25498
25499         Ensure that wint_t gets defined on IRIX 5.3.
25500         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25501         * lib/wctype.in.h (wint_t): Likewise.
25502         (__wctype_wint_t): Remove type.
25503         (isw*): Use wint_t instead of __wctype_wint_t.
25504         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25505         * modules/wchar (Files): Add m4/wint_t.m4.
25506         (Makefile.am): Substitute HAVE_WINT_T.
25507         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25508         * tests/test-wctype.c: Check that wint_t is defined.
25509         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25510         * doc/posix-headers/wctype.texi: Likewise.
25511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25512
25513 2008-09-18  Bruno Haible  <bruno@clisp.org>
25514
25515         * gnulib-tool (func_exit): Update comment.
25516
25517 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25518
25519         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25520         assumes strdup exists and does not depend on strdup to return
25521         ENOMEM on out of memory conditions.
25522
25523 2008-09-18  Bruno Haible  <bruno@clisp.org>
25524
25525         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
25526         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25527         digits for the exponent.
25528
25529 2008-09-18  Jim Meyering  <meyering@redhat.com>
25530             Bruno Haible  <bruno@clisp.org>
25531
25532         * lib/vasnprintf.c (decimal_point_char): Define also if
25533         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25534
25535 2008-09-16  Bruno Haible  <bruno@clisp.org>
25536         and Eric Blake  <ebb9@byu.net>
25537
25538         vasnprintf: support Irix 5.3
25539         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25540         that mishandle long double infinity.
25541         Reported by Tom G. Christensen.
25542
25543 2008-09-16  Bruno Haible  <bruno@clisp.org>
25544
25545         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25546         Solaris 9.
25547         * doc/glibc-functions/alphasort.texi: Likewise.
25548         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25549
25550 2008-09-16  Jim Meyering  <meyering@redhat.com>
25551
25552         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25553         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25554         a umask modification leak out of a subshell.  Otherwise, the
25555         opensolaris /bin/sh would be accepted and thus cause unwarranted
25556         failures in the coreutils test suite.
25557
25558 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25559
25560         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25561         to succeed.
25562
25563 2008-09-16  Jim Meyering  <meyering@redhat.com>
25564
25565         avoid spurious test failure when library is built without ACL support
25566         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25567         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25568         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25569         * tests/test-copy-acl.sh: Likewise.
25570
25571 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25572
25573         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25574         based on character occurrence counts.
25575
25576 2008-09-15  Eric Blake  <ebb9@byu.net>
25577
25578         tests: avoid some compiler warnings
25579         * tests/test-memchr.c (main): Pass NULL indirectly.
25580         * tests/test-closein.c (main): Avoid unused variable.
25581
25582 2008-09-15  Bruno Haible  <bruno@clisp.org>
25583
25584         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25585         are missing on OpenBSD 4.0 individually.
25586         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25587
25588 2008-09-15  Bruno Haible  <bruno@clisp.org>
25589
25590         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25591         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25592         * doc/posix-functions/perror.texi: Likewise.
25593         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25594         is missing.
25595         Reported by Eric Blake.
25596
25597         * lib/errno.in.h: Use replacement values >= 2000.
25598         Reported by Eric Blake.
25599
25600 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25601
25602         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25603         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25604         limit.
25605         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25606         compareseq was aborted.
25607
25608 2008-09-14  Bruno Haible  <bruno@clisp.org>
25609
25610         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25611         yvec_edit_count.
25612         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25613         (fstrcmp_bounded): Simplify result computation accordingly.
25614
25615 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25616
25617         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25618         (fstrcmp): Define in terms of fstrcmp_bounded.
25619         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25620         lower_bound argument.
25621         Return quickly if the result is certainly < lower_bound.
25622         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25623
25624 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25625
25626         * lib/diffseq.h (EARLY_ABORT): New macro.
25627         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25628         evaluates to true.
25629
25630 2008-09-14  Bruno Haible  <bruno@clisp.org>
25631
25632         * modules/perror-tests: New file.
25633         * tests/test-perror.sh: New file.
25634         * tests/test-perror.c: New file.
25635
25636         New module 'perror'.
25637         * lib/stdio.in.h (perror): New declaration.
25638         * lib/perror.c: New file.
25639         * m4/perror.m4: New file.
25640         * modules/perror: New file.
25641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25642         * doc/posix-functions/perror.texi: Mention the perror module.
25643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25644         REPLACE_PERROR.
25645         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25646         REPLACE_PERROR.
25647
25648 2008-09-14  Bruno Haible  <bruno@clisp.org>
25649
25650         * modules/stdio (Makefile.am): Reorder to match the order in
25651         lib/stdio.in.h.
25652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25653
25654 2008-09-13  Bruno Haible  <bruno@clisp.org>
25655
25656         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25657
25658 2008-09-13  Bruno Haible  <bruno@clisp.org>
25659
25660         Extend strerror to cover the added errno values.
25661         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25662         (rpl_strerror): Provide error messages for the added errno values and
25663         for the WSA* values.
25664         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25665         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25666         strerror.
25667         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25668         * modules/strerror (Depends-on): Add errno.
25669         * doc/posix-functions/strerror.texi: Document the change.
25670         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25671         and EOVERFLOW.
25672
25673 2008-09-13  Bruno Haible  <bruno@clisp.org>
25674
25675         * modules/EOVERFLOW: Remove file.
25676         * m4/eoverflow.m4: Remove file.
25677         * modules/EOVERFLOW-tests: Remove file.
25678         * tests/test-EOVERFLOW.c: Remove file.
25679         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
25680         * modules/ftell (Depends-on): Likewise.
25681         * modules/getdelim (Depends-on): Likewise.
25682         * modules/getugroups (Depends-on): Likewise.
25683         * modules/poll (Depends-on): Likewise.
25684         * modules/snprintf (Depends-on): Likewise.
25685         * modules/sprintf-posix (Depends-on): Likewise.
25686         * modules/vasnprintf (Depends-on): Likewise.
25687         * modules/vasprintf (Depends-on): Likewise.
25688         * modules/vfprintf-posix (Depends-on): Likewise.
25689         * modules/vsnprintf (Depends-on): Likewise.
25690         * modules/vsprintf-posix (Depends-on): Likewise.
25691         * modules/xvasprintf (Depends-on): Likewise.
25692         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25693         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
25694         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
25695         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
25696         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25697         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
25698         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
25699         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
25700         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25701         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
25702         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
25703         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
25704         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25705         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
25706         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
25707         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
25708         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25709         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
25710         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
25711         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
25712         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25713         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
25714         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
25715         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
25716         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
25717         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25718         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
25719         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
25720         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
25721         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
25722         * MODULES.html.sh: Remove EOVERFLOW.
25723         * NEWS: Mention the change.
25724
25725 2008-09-13  Bruno Haible  <bruno@clisp.org>
25726
25727         * modules/errno-tests: New file.
25728         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
25729
25730         * lib/errno.in.h: New file.
25731         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
25732         * modules/errno: New file.
25733         * doc/posix-headers/errno.texi: Update documentation.
25734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
25735
25736 2008-09-13  Bruno Haible  <bruno@clisp.org>
25737
25738         * tests/test-poll.c: Use #if for native Windows, rather than testing
25739         __MSVCRT__.
25740
25741 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25742             Bruno Haible  <bruno@clisp.org>
25743
25744         * lib/glob.c: Don't include <pwd.h> on native Windows.
25745         (WINDOWS32): New macro.
25746         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
25747
25748 2008-09-13  Bruno Haible  <bruno@clisp.org>
25749
25750         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
25751         (ETIMEDOUT): Remove macro.
25752         (glthread_cond_timedwait_multithreaded): New declaration.
25753         (glthread_cond_timedwait): Use it.
25754         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
25755         (glthread_cond_timedwait_multithreaded): New function.
25756
25757 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25758
25759         * modules/poll-tests: Do not check for io.h.
25760         * tests/test-poll.c: Check for __MSVCRT__ instead.
25761
25762 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25763
25764         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
25765         * modules/poll-tests: Add inet_pton, stdbool, sockets.
25766         * tests/test-poll.c: Use them.  Use _pipe on Windows.
25767
25768 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25769
25770         * modules/poll-tests: New.
25771         * tests/test-poll.c: New.
25772
25773 2008-09-12  Eric Blake  <ebb9@byu.net>
25774
25775         frexp: test for NetBSD failure on -0.0
25776         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
25777         not all, bugs from NetBSD 3.0 have been fixed.
25778         * doc/posix-functions/frexp.texi (frexp): Document bug.
25779         Reported by Thomas Klausner.
25780
25781         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
25782         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
25783         literal -0.0.
25784         Reported by Jonathan C. Patschke <jp@centtech.com>.
25785
25786 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25787
25788         * lib/glthread/cond.h: Use dummy implementation also if
25789         USE_WIN32_THREADS.
25790
25791 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25792
25793         * modules/fnmatch-posix (License): Change to LGPLv2+.
25794         * modules/fnmatch-gnu (License): Likewise.
25795
25796 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25797
25798         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
25799
25800 2008-09-11  Jim Meyering  <meyering@redhat.com>
25801
25802         * users.txt: Add gtk-vnc.
25803
25804 2008-09-08  Simon Josefsson  <simon@josefsson.org>
25805
25806         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
25807         rotate amounts.
25808
25809         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
25810         required for 16-bit and 8-bit rotates.
25811         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
25812         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
25813         UINT8_MAX instead of hard-coded constants.
25814         Suggested by Paul Eggert.
25815
25816 2008-09-07  Bruno Haible  <bruno@clisp.org>
25817
25818         * tests/test-striconveh.c (main): Check behaviour when converting from
25819         UTF-7.
25820
25821         Make striconveh work better with stateful encodings.
25822         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
25823         that iconv does not increment the inptr when returning -1/EINVAL.
25824
25825 2008-09-07  Bruno Haible  <bruno@clisp.org>
25826
25827         * build-aux/config.rpath: Update according to libtool-2.2.6.
25828         * build-aux/config.libpath: Likewise.
25829
25830 2008-09-06  Bruno Haible  <bruno@clisp.org>
25831
25832         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
25833         * lib/freadptr.c (freadptr): Likewise.
25834         * lib/freadseek.c (freadptrinc): Likewise.
25835         Reported by Simon Josefsson.
25836
25837 2008-09-06  Bruno Haible  <bruno@clisp.org>
25838
25839         * modules/freadptr (License): Change to LGPLv2+.
25840         * modules/freadseek (License): Likewise.
25841         Suggested by Eric Blake.
25842
25843         * modules/memchr2 (License): Change to LGPLv2+.
25844         Approved by Eric Blake.
25845
25846 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25847             Bruno Haible  <bruno@clisp.org>
25848
25849         Make gnulib-tool work with native 'sed' on AIX.
25850         * gnulib-tool (sed_noop): New variable.
25851         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
25852         func_add_or_update, func_create_testdir): Use it to initialize sed
25853         script variables.
25854         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25855
25856 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
25857             Bruno Haible  <bruno@clisp.org>
25858
25859         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
25860         also works after #include directives.
25861
25862 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
25863
25864         getdate.y: reject an out-of-range timezone value
25865         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
25866         the range [-24...+24].  When specified with only one or two digits,
25867         * tests/test-getdate.c: Tests for the fix.
25868         * doc/getdate.texi: Document this change.
25869
25870 2008-09-03  Bruno Haible  <bruno@clisp.org>
25871
25872         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
25873
25874 2008-09-02  Simon Josefsson  <simon@josefsson.org>
25875
25876         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
25877         <bruce.korb@gmail.com> with ideas from Ben Pfaff
25878         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
25879         Blake <ebb9@byu.net>.
25880
25881         * tests/test-bitrotate.c: Add more test vectors.
25882
25883 2008-09-02  Eric Blake  <ebb9@byu.net>
25884
25885         vasnprintf-posix: handle large precision via %.*d
25886         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
25887         when handling it ourselves.
25888         * tests/test-vasnprintf-posix.c (test_function): Add test.
25889         * tests/test-snprintf-posix.h (test_function): Likewise.
25890         * tests/test-sprintf-posix.h (test_function): Likewise.
25891         * tests/test-vasprintf-posix.c (test_function): Likewise.
25892         Reported by Alain Guibert.
25893
25894 2008-09-01  Eric Blake  <ebb9@byu.net>
25895
25896         c-stack: make configure-time check more robust
25897         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
25898         successful sigaction call.
25899         Reported by Tom G. Christensen.
25900
25901 2008-09-01  Bruno Haible  <bruno@clisp.org>
25902
25903         New module 'findprog-lgpl'.
25904         * modules/findprog-lgpl: New file.
25905         * lib/findprog-lgpl.c: New file.
25906         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
25907         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
25908         to decide whether to use strdup or xstrdup, concatenated_filename or
25909         xconcatenated_filename.
25910
25911 2008-09-01  Bruno Haible  <bruno@clisp.org>
25912
25913         Split module 'concat-filename' into 'concat-filename' (LGPL) and
25914         'xconcat-filename' (GPL).
25915         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
25916         (License): Change to LGPLv2+.
25917         * modules/xconcat-filename: New file.
25918         * lib/concat-filename.h (concatenated_filename): Change specification.
25919         (xconcatenated_filename): New declaration.
25920         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
25921         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
25922         memory situations.
25923         * lib/xconcat-filename.c: New file.
25924         * NEWS: Mention the change.
25925         * lib/findprog.c: Include concat-filename.h, not filename.h.
25926         (find_in_path): Use xconcatenated_filename instead of
25927         concatenated_filename.
25928         * lib/javacomp.c: Include concat-filename.h, not filename.h.
25929         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25930         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25931         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25932         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
25933         instead of concatenated_filename.
25934         * lib/javaexec.c: Include concat-filename.h, not filename.h.
25935         (execute_java_class): Use xconcatenated_filename instead of
25936         concatenated_filename.
25937         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
25938         * modules/javacomp (Depends-on): Likewise.
25939         * modules/javaexec (Depends-on): Likewise.
25940
25941 2008-09-01  Bruno Haible  <bruno@clisp.org>
25942
25943         Split module 'filename' into 'filename' and 'concat-filename'.
25944         * modules/filename: Keep only lib/filename.h.
25945         (License): Change to LGPLv2+.
25946         * modules/concat-filename: New file, extracted from modules/filename.
25947         * lib/filename.h (concatenated_filename): Remove declaration.
25948         * lib/concat-filename.h: New file, extracted from lib/filename.h.
25949         * lib/concat-filename.c: Include concat-filename.h.
25950         * NEWS: Mention the change.
25951
25952 2008-09-01  Simon Josefsson  <simon@josefsson.org>
25953
25954         * lib/bitrotate.h (rotl8, rotr8): Add.
25955
25956         * modules/bitrotate (configure.ac): Need
25957         AC_REQUIRE([AC_C_INLINE]).
25958         (Description): Mention stdint.h.  Reported by Bruno Haible
25959         <bruno@clisp.org>.
25960
25961         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
25962         Paolo Bonzini <bonzini@gnu.org>.
25963
25964 2008-08-31  Bruno Haible  <bruno@clisp.org>
25965
25966         Assume Solaris specific bi-arch conventions on Solaris systems.
25967         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
25968         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
25969         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
25970         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
25971         like acl_libdirstem.
25972         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
25973         acl_libdirstem.
25974         * NEWS: Mention the change.
25975         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
25976
25977 2008-08-31  Jim Meyering  <meyering@redhat.com>
25978
25979         * lib/strftime.h: Add comments describing the two added arguments.
25980
25981         remove duplicate #include directives
25982         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
25983         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
25984
25985 2008-08-31  Bruno Haible  <bruno@clisp.org>
25986
25987         New module 'sigpipe-die'.
25988         * modules/sigpipe-die: New file.
25989         * lib/sigpipe-die.h: New file.
25990         * lib/sigpipe-die.c: New file.
25991         * MODULES.html.sh (Signal handling): Add sigpipe-die.
25992
25993 2008-08-31  Bruno Haible  <bruno@clisp.org>
25994
25995         Don't override previously installed signal handlers.
25996         * lib/fatal-signal.c (saved_sigactions): New variable.
25997         (uninstall_handlers): Reset the signal to the saved handler, not
25998         to SIG_DFL (except when ignored).
25999         (install_handlers): Save the previous handlers.
26000
26001 2008-08-30  Bruno Haible  <bruno@clisp.org>
26002
26003         * gnulib-tool (func_reset_sigpipe): New function.
26004         (func_get_automake_snippet, func_modules_transitive_closure,
26005         func_import): Invoke it before a join command that reads from stdin,
26006         to avoid "echo: write error: Broken pipe" error messages on stderr.
26007         Reported by Sam Steingold <sds@gnu.org>.
26008
26009 2008-08-30  Bruno Haible  <bruno@clisp.org>
26010
26011         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
26012         Code copied from m4/open.m4.
26013         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
26014         access and the filename ends in a slash. Code copied from lib/open.c.
26015         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
26016         * tests/test-fopen.c (main): Check against bug with trailing slash.
26017
26018 2008-08-29  Bruno Haible  <bruno@clisp.org>
26019
26020         Avoid some "gcc -pedantic" warnings.
26021         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
26022         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
26023         * lib/dirent.in.h: Likewise.
26024         * lib/fcntl.in.h: Likewise.
26025         * lib/float.in.h: Likewise.
26026         * lib/iconv.in.h: Likewise.
26027         * lib/inttypes.in.h: Likewise.
26028         * lib/locale.in.h: Likewise.
26029         * lib/math.in.h: Likewise.
26030         * lib/netinet_in.in.h: Likewise.
26031         * lib/search.in.h: Likewise.
26032         * lib/signal.in.h: Likewise.
26033         * lib/stdarg.in.h: Likewise.
26034         * lib/stdint.in.h: Likewise.
26035         * lib/stdio.in.h: Likewise.
26036         * lib/stdlib.in.h: Likewise.
26037         * lib/string.in.h: Likewise.
26038         * lib/strings.in.h: Likewise.
26039         * lib/sys_select.in.h: Likewise.
26040         * lib/sys_socket.in.h: Likewise.
26041         * lib/sys_stat.in.h: Likewise.
26042         * lib/sys_time.in.h: Likewise.
26043         * lib/sysexits.in.h: Likewise.
26044         * lib/time.in.h: Likewise.
26045         * lib/unistd.in.h: Likewise.
26046         * lib/wchar.in.h: Likewise.
26047         * lib/wctype.in.h: Likewise.
26048         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
26049         * modules/fchdir (Makefile.am): Likewise.
26050         * modules/fcntl (Makefile.am): Likewise.
26051         * modules/float (Makefile.am): Likewise.
26052         * modules/iconv_open (Makefile.am): Likewise.
26053         * modules/inttypes (Makefile.am): Likewise.
26054         * modules/locale (Makefile.am): Likewise.
26055         * modules/math (Makefile.am): Likewise.
26056         * modules/netinet_in (Makefile.am): Likewise.
26057         * modules/search (Makefile.am): Likewise.
26058         * modules/signal (Makefile.am): Likewise.
26059         * modules/stdarg (Makefile.am): Likewise.
26060         * modules/stdint (Makefile.am): Likewise.
26061         * modules/stdio (Makefile.am): Likewise.
26062         * modules/stdlib (Makefile.am): Likewise.
26063         * modules/string (Makefile.am): Likewise.
26064         * modules/strings (Makefile.am): Likewise.
26065         * modules/sys_select (Makefile.am): Likewise.
26066         * modules/sys_socket (Makefile.am): Likewise.
26067         * modules/sys_stat (Makefile.am): Likewise.
26068         * modules/sys_time (Makefile.am): Likewise.
26069         * modules/sysexits (Makefile.am): Likewise.
26070         * modules/time (Makefile.am): Likewise.
26071         * modules/unistd (Makefile.am): Likewise.
26072         * modules/wchar (Makefile.am): Likewise.
26073         * modules/wctype (Makefile.am): Likewise.
26074         Reported by Reuben Thomas <rrt@sc3d.org>.
26075
26076 2008-08-29  Bruno Haible  <bruno@clisp.org>
26077
26078         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
26079         any more.
26080
26081 2008-08-29  Simon Josefsson  <simon@josefsson.org>
26082
26083         * MODULES.html.sh (Misc): Add bitrotate.
26084
26085         * modules/bitrotate: New file.
26086
26087         * lib/bitrotate.h: New file.
26088
26089         * modules/bitrotate-tests: New file.
26090
26091         * tests/test-bitrotate.c: New file.
26092
26093         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
26094         on the bitrotate module.
26095
26096         * lib/arctwo.c: Use new bitrotate module.
26097
26098 2008-08-29  Jim Meyering  <meyering@redhat.com>
26099
26100         bootstrap: merge changes from coreutils
26101         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
26102         of copied files.  Remove a kludge, now that this is fixed.
26103         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
26104         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
26105         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
26106
26107 2008-08-29  Bruno Haible  <bruno@clisp.org>
26108
26109         * MODULES.html.sh: Remove --cvs-urls option.
26110
26111 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
26112
26113         maint.mk: adjust to file name change
26114         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
26115
26116 2008-08-28  Jim Meyering  <meyering@redhat.com>
26117
26118         * modules/getndelim2 (License): Relicense to LGPLv2+.
26119         Approved by Richard Stallman for the version of 1995, and by
26120         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
26121
26122 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
26123
26124         * lib/getdelim.c (flockfile, funlockfile): Make all of them
26125         dummy if one is not available.  Do not touch them if
26126         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
26127         (getc_maybe_unlocked): New.
26128         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
26129
26130 2008-08-26  Eric Blake  <ebb9@byu.net>
26131
26132         doc/INSTALL: resync from autoconf
26133         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
26134         (INSTALL_PRELUDE): Delete; this is done more efficiently by
26135         moving...
26136         * install.texi [!autoconf]: ...here.  Resync from autoconf.
26137         * INSTALL: Regenerate.
26138         * INSTALL.ISO: New file.
26139         * INSTALL.UTF-8: Likewise.
26140
26141 2008-08-26  Jim Meyering  <meyering@redhat.com>
26142
26143         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
26144         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
26145         these definitions conditional, so that they may be overridden, too.
26146
26147 2008-08-26  Bruno Haible  <bruno@clisp.org>
26148
26149         Generate INSTALL file variants with prettier quotes.
26150         * doc/Makefile (INSTALL_PRELUDE): New macro.
26151         (INSTALL): Use it.
26152         (INSTALL.ISO, INSTALL.UTF-8): New rules.
26153
26154 2008-08-26  Bruno Haible  <bruno@clisp.org>
26155
26156         Run makeinfo in an English locale.
26157         * doc/Makefile (MAKEINFO): New variable.
26158
26159 2008-08-26  Bruno Haible  <bruno@clisp.org>
26160
26161         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
26162         Suggested by Eric Blake.
26163
26164 2008-08-25  Bruno Haible  <bruno@clisp.org>
26165
26166         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
26167
26168 2008-08-25  Eric Blake  <ebb9@byu.net>
26169
26170         c-stack: test that stack overflow can be caught
26171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
26172         that platform allows handling stack overflow; at least OS/2 EMX
26173         has sigaltstack, but crashes before transferring control to
26174         handler on stack overflow.
26175         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
26176         check for HAVE_STACK_OVERFLOW_HANDLING.
26177         Reported by Elbert Pol.
26178
26179 2008-08-25  Bruno Haible  <bruno@clisp.org>
26180
26181         * doc/posix-functions/strftime.texi: Fix description of strftime
26182         module.
26183
26184 2008-08-24  Bruno Haible  <bruno@clisp.org>
26185
26186         * tests/uniwidth/test-uc_width2.c: New file.
26187         * tests/uniwidth/test-uc_width2.sh: New file.
26188         * modules/uniwidth/width-tests (Files): Add the new files.
26189         (TESTS): Add uniwidth/test-uc_width2.sh.
26190         (TESTS_ENVIRONMENT): New variable.
26191         (check_PROGRAMS): Add test-uc_width2.
26192         (test_uc_width2_SOURCES): New variable.
26193
26194         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
26195         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
26196         not 0x00AB.
26197         Reported by Alexander V. Lukyanov <lav@netis.ru>.
26198
26199 2008-08-22  Eric Blake  <ebb9@byu.net>
26200
26201         test-lock, test-tls: mention why a test is skipped
26202         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
26203         skipped.
26204         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
26205
26206         count-one-bits: relax license
26207         * modules/count-one-bits (License): Relicense to LGPLv2+.
26208         Suggested by Ludovic Courtès, approved by Ben Pfaff.
26209
26210 2008-08-22  Andreas Schwab  <schwab@suse.de>
26211
26212         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26213         Remove spurious space in assignment.
26214
26215 2008-08-21  Simon Josefsson  <simon@josefsson.org>
26216
26217         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
26218         Paul Eggert <eggert@CS.UCLA.EDU>.
26219
26220 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
26221
26222         * modules/gettext: Add m4/threadlib.m4.
26223
26224 2008-08-19  Eric Blake  <ebb9@byu.net>
26225
26226         test-c-stack: fix compilation failure on FreeBSD 5.0
26227         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
26228         headers before <sys/resource.h>.
26229         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
26230         the bug.
26231         Reported by Nelson H. F. Beebe.
26232
26233         strverscmp: migrate from "strverscmp.h" to <string.h>
26234         * modules/string (Makefile.am): Add new hooks.
26235         * modules/strverscmp (Files): Remove strverscmp.h.
26236         (Depends-on): Add string.
26237         (configure.ac): Add indicator.
26238         (Include): Mention new header.
26239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
26240         defaults.
26241         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
26242         results.
26243         * lib/strverscmp.h: Delete.
26244         * lib/string.in.h (strverscmp): Provide declaration, when needed.
26245         * tests/test-strverscmp.c (includes): Adjust client.
26246         * lib/check-version.c (includes): Likewise.
26247         * NEWS: Document the change.
26248
26249         strverscmp: add unit test
26250         * modules/strverscmp-tests: New file.
26251         * tests/test-strverscmp.c: Likewise.
26252
26253 2008-08-19  Simon Josefsson  <simon@josefsson.org>
26254
26255         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
26256         regarding Windows crypto stuff, from Mono.
26257
26258 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
26259
26260         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
26261         if present, for intel RND.  Return error on failures.
26262
26263 2008-08-18  Ben Pfaff  <blp@gnu.org>
26264
26265         gitlog-to-changelog: give better diagnostic for failed pipe-open
26266         * build-aux/gitlog-to-changelog: Improve error message: suggest
26267         that the version of Git may be too old.
26268
26269 2008-08-18  Simon Josefsson  <simon@josefsson.org>
26270
26271         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
26272         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
26273
26274 2008-08-18  Bruno Haible  <bruno@clisp.org>
26275
26276         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
26277         pthread_in_use().
26278
26279 2008-08-18  Bruno Haible  <bruno@clisp.org>
26280
26281         * lib/glthread/threadlib.c: Include <pthread.h>.
26282
26283 2008-08-18  Bruno Haible  <bruno@clisp.org>
26284
26285         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
26286         glthread_recursive_lock_* macros.
26287         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
26288         Fix syntax error.
26289
26290 2008-08-18  Bruno Haible  <bruno@clisp.org>
26291
26292         * lib/glthread/thread.c: Avoid forcing a context switch right after
26293         thread creation.
26294
26295 2008-08-17  Bruno Haible  <bruno@clisp.org>
26296
26297         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
26298         * lib/glthread/thread.h: Provide Win32 specific implementation.
26299         * modules/thread (Files): Add lib/glthread/thread.c.
26300         (Depends-on): Add lock.
26301         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
26302
26303 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26304
26305         New module 'yield'.
26306         * modules/yield: New file.
26307         * lib/glthread/yield.h: New file.
26308         * m4/yield.m4: New file.
26309         * MODULES.html.sh (Multithreading): Add yield.
26310
26311 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26312
26313         New module 'thread'.
26314         * modules/thread: New file.
26315         * lib/glthread/thread.h: New file.
26316         * m4/thread.m4: New file.
26317         * MODULES.html.sh (Multithreading): Add thread.
26318
26319 2008-08-17  Bruno Haible  <bruno@clisp.org>
26320
26321         * lib/glthread/lock.h: Include <stdlib.h> always.
26322         * lib/glthread/tls.h: Likewise.
26323         * lib/glthread/cond.h: Likewise.
26324
26325 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26326
26327         New module 'cond'.
26328         * modules/cond: New file.
26329         * lib/glthread/cond.h: New file.
26330         * lib/glthread/cond.c: New file.
26331         * m4/cond.m4: New file.
26332         * MODULES.html.sh (Multithreading): Add cond.
26333
26334 2008-08-16  Eric Blake  <ebb9@byu.net>
26335
26336         c-stack: fix regression on Irix 5.3 from 2008-06-21
26337         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
26338         sa_sigaction...
26339         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
26340         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
26341         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
26342         * modules/signal (Makefile.am): Use the value.
26343         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
26344         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
26345         * doc/posix-headers/signal.texi (signal.h): Document this
26346         portability issue.
26347         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
26348         Reported by Tom G. Christensen.
26349
26350 2008-08-17  Bruno Haible  <bruno@clisp.org>
26351
26352         New module 'threadlib'.
26353         * modules/threadlib: New file.
26354         * lib/glthread/threadlib.c: New file, extracted from
26355         lib/glthread/lock.c.
26356         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
26357         functions.
26358         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
26359         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
26360         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
26361         macros.
26362         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
26363         (gl_DISABLE_THREADS): Remove macro.
26364         * modules/lock (Files): Remove build-aux/config.rpath.
26365         (Depends-on): Remove havelib. Add threadlib.
26366         (configure.ac-early): Remove section.
26367         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
26368         * modules/tls (Depends-on): Remove lock. Add threadlib.
26369         (Link): New section, copied from threadlib.
26370         * MODULES.html.sh (Multithreading): Add threadlib.
26371
26372 2008-08-14  Bruno Haible  <bruno@clisp.org>
26373
26374         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
26375         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
26376         glthread_rwlock_unlock, glthread_rwlock_destroy,
26377         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
26378         glthread_recursive_lock_destroy): Define as macros always.
26379         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
26380         glthread_lock_lock.
26381         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
26382         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
26383         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
26384         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
26385         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
26386         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
26387         (glthread_recursive_lock_lock_func): Renamed from
26388         glthread_recursive_lock_lock.
26389         (glthread_recursive_lock_unlock_func): Renamed from
26390         glthread_recursive_lock_unlock.
26391         (glthread_recursive_lock_destroy_func): Renamed from
26392         glthread_recursive_lock_destroy.
26393
26394 2008-08-14  Bruno Haible  <bruno@clisp.org>
26395
26396         * lib/glthread/lock.h: Renamed from lib/lock.h.
26397         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
26398         * lib/glthread/tls.h: Renamed from lib/tls.h.
26399         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
26400         * lib/fstrcmp.c: Update includes.
26401         * lib/strsignal.c: Update includes.
26402         * modules/lock (Files, Makefile.am): Update.
26403         (Include): Change to "glthread/lock.h".
26404         * modules/tls (Files, Makefile.am): Update.
26405         (Include): Change to "glthread/tls.h".
26406         * tests/test-lock.c: Update includes.
26407         * tests/test-tls.c: Update includes.
26408         * NEWS: Mention the renamed header files.
26409
26410 2008-08-11  Jim Meyering  <meyering@redhat.com>
26411
26412         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
26413
26414 2008-08-11  Eric Blake  <ebb9@byu.net>
26415
26416         test-c-stack: avoid C99-ism
26417         * tests/test-c-stack.c (main): Fix whitespace, move declaration
26418         before statement.
26419         Reported by Alain Guibert.
26420
26421 2008-08-10  Jim Meyering  <meyering@redhat.com>
26422
26423         ensure that return value of uinttostr et al are not ignored
26424         * lib/inttostr.h (__GNUC_PREREQ): Define.
26425         (__attribute_warn_unused_result__): Define.
26426         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
26427
26428 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
26429
26430         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
26431         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
26432
26433 2008-08-07  Jim Meyering  <meyering@redhat.com>
26434
26435         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
26436
26437         * modules/mkstemp (License): Relicense under LGPLv2+.
26438         * modules/tempname (License): Likewise.
26439
26440 2008-08-06  Bruno Haible  <bruno@clisp.org>
26441
26442         * lib/poll.c (poll): Further micro-optimization.
26443
26444 2008-08-06  Jim Meyering  <meyering@redhat.com>
26445
26446         inet_pton.c: use locale-independent tolower
26447         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
26448         (inet_pton6): Use c_tolower rather than tolower.
26449         * modules/inet_pton (Depends-on): Add c-ctype.
26450
26451 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
26452
26453         * lib/poll.c (poll): Avoid division when timeout is 0, cache
26454         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
26455
26456 2008-08-06  Jim Meyering  <meyering@redhat.com>
26457
26458         * modules/inet_pton (License): Relicense under LGPLv2+.
26459
26460 2008-08-03  Bruno Haible  <bruno@clisp.org>
26461
26462         Additional non-aborting API for lock and tls.
26463         * lib/lock.h: Include <errno.h>.
26464         (glthread_lock_init): New macro/function.
26465         (gl_lock_init): Define as wrapper around glthread_lock_init.
26466         (glthread_lock_lock): New macro/function.
26467         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
26468         (glthread_lock_unlock): New macro/function.
26469         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
26470         (glthread_lock_destroy): New macro/function.
26471         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
26472         (glthread_rwlock_init): New macro/function.
26473         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
26474         (glthread_rwlock_rdlock): New macro/function.
26475         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
26476         (glthread_rwlock_wrlock): New macro/function.
26477         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
26478         (glthread_rwlock_unlock): New macro/function.
26479         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
26480         (glthread_rwlock_destroy): New macro/function.
26481         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
26482         (glthread_recursive_lock_init): New macro/function.
26483         (gl_recursive_lock_init): Define as wrapper around
26484         glthread_recursive_lock_init.
26485         (glthread_recursive_lock_lock): New macro/function.
26486         (gl_recursive_lock_lock): Define as wrapper around
26487         glthread_recursive_lock_lock.
26488         (glthread_recursive_lock_unlock): New macro/function.
26489         (gl_recursive_lock_unlock): Define as wrapper around
26490         glthread_recursive_lock_unlock.
26491         (glthread_recursive_lock_destroy): New macro/function.
26492         (gl_recursive_lock_destroy): Define as wrapper around
26493         glthread_recursive_lock_destroy.
26494         (glthread_once): New macro/function.
26495         (gl_once): Define as wrapper around glthread_once.
26496         Update function declarations.
26497         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26498         glthread_rwlock_init. Return error code.
26499         (glthread_rwlock_rdlock_multithreaded): Renamed from
26500         glthread_rwlock_rdlock. Return error code.
26501         (glthread_rwlock_wrlock_multithreaded): Renamed from
26502         glthread_rwlock_wrlock. Return error code.
26503         (glthread_rwlock_unlock_multithreaded): Renamed from
26504         glthread_rwlock_unlock. Return error code.
26505         (glthread_rwlock_destroy_multithreaded): Renamed from
26506         glthread_rwlock_destroy. Return error code.
26507         (glthread_recursive_lock_init_multithreaded): Renamed from
26508         glthread_recursive_lock_init. Return error code.
26509         (glthread_recursive_lock_lock_multithreaded): Renamed from
26510         glthread_recursive_lock_lock. Return error code.
26511         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26512         glthread_recursive_lock_unlock. Return error code.
26513         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26514         glthread_recursive_lock_destroy. Return error code.
26515         (glthread_once_call): Make static.
26516         (glthread_once_multithreaded): Renamed from glthread_once.
26517         * lib/tls.h: Include <errno.h>.
26518         (glthread_tls_key_init): New macro/function.
26519         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26520         (glthread_tls_set): New macro/function.
26521         (gl_tls_set): Define as wrapper around glthread_tls_set.
26522         (glthread_tls_key_destroy): New macro/function.
26523         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26524         Update function declarations.
26525         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26526         glthread_tls_get.
26527         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26528
26529 2008-08-04  Eric Blake  <ebb9@byu.net>
26530
26531         gnumakefile: use space, not TAB, outside of targets
26532         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26533
26534 2008-08-02  Jim Meyering  <meyering@redhat.com>
26535
26536         getdate.y: avoid locale-dependent date parsing failure
26537         In Turkish locales, getdate would fail to recognize keywords
26538         containing a lowercase "i".  The solution is not to rely on
26539         locale-sensitive case-conversion.
26540         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26541         (lookup_word): Use c_toupper in place of toupper.
26542         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26543         Reported by Vefa Bicakci <bicave@superonline.com> in
26544         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26545         * modules/getdate (Depends-on): Add c-ctype.
26546
26547 2008-08-02  Bruno Haible  <bruno@clisp.org>
26548
26549         * gnulib-tool (func_import): When updating or creating a .gitignore
26550         file, prepend each added line with a slash, and ignore leading slashes
26551         from the existing lines.
26552         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26553
26554 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26555
26556         Portability fix for GNU make 3.79.1.
26557         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26558         versions do not understand.
26559
26560 2008-08-01  Bruno Haible  <bruno@clisp.org>
26561
26562         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26563         * tests/test-isnanf.h (zero): New variable.
26564         (main): Avoid literal -0.0f.
26565         * tests/test-isnand.h (zero): New variable.
26566         (main): Avoid literal -0.0.
26567         * tests/test-isnanl.h (zero): New variable.
26568         (main): Avoid literal -0.0L.
26569         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26570         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26571         -0.0, -0.0L.
26572         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26573         (test_signbitd): Avoid literal -0.0.
26574         (test_signbitl): Avoid literal -0.0L.
26575         * tests/test-ceilf1.c (zero): New variable.
26576         (main): Avoid literal -0.0f.
26577         * tests/test-ceill.c (zero): New variable.
26578         (main): Avoid literal -0.0L.
26579         * tests/test-floorf1.c (zero): New variable.
26580         (main): Avoid literal -0.0f.
26581         * tests/test-floorl.c (zero): New variable.
26582         (main): Avoid literal -0.0L.
26583         * tests/test-roundf1.c (zero): New variable.
26584         (main): Avoid literal -0.0f.
26585         * tests/test-round1.c (zero): New variable.
26586         (main): Avoid literal -0.0.
26587         * tests/test-roundl.c (zero): New variable.
26588         (main): Avoid literal -0.0L.
26589         * tests/test-truncf1.c (zero): New variable.
26590         (main): Avoid literal -0.0f.
26591         * tests/test-trunc1.c (zero): New variable.
26592         (main): Avoid literal -0.0.
26593         * tests/test-truncl.c (zero): New variable.
26594         (main): Avoid literal -0.0L.
26595         * tests/test-frexp.c (zero): New variable.
26596         (main): Avoid literal -0.0.
26597         * tests/test-frexpl.c (zero): New variable.
26598         (main): Avoid literal -0.0L.
26599         * tests/test-ldexpl.c (zero): New variable.
26600         (main): Avoid literal -0.0L.
26601         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26602         (zerod, zerol): New variables.
26603         (test_function): Avoid literals -0.0, -0.0L.
26604         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26605         (zerod, zerol): New variables.
26606         (test_function): Avoid literals -0.0, -0.0L.
26607         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26608         (zerod, zerol): New variables.
26609         (test_function): Avoid literals -0.0, -0.0L.
26610         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26611         (zerod, zerol): New variables.
26612         (test_function): Avoid literals -0.0, -0.0L.
26613         * tests/test-strtod.c (zero): New variable.
26614         (main): Avoid literal -0.0.
26615         Reported by Jonathan C. Patschke <jp@centtech.com>.
26616
26617 2008-07-31  Jim Meyering  <meyering@redhat.com>
26618
26619         sha256.h: correct definition of SHA224_DIGEST_SIZE
26620         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26621         Reported by Paulie Pena IV <paulie4@gmail.com>.
26622         Define as 224 / 8, rather than as a literal.
26623         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26624         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26625         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26626
26627 2008-07-31  Bruno Haible  <bruno@clisp.org>
26628
26629         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26630         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26631         Reported by Jonathan Patschke <jp@centtech.com>.
26632
26633 2008-07-31  Bruno Haible  <bruno@clisp.org>
26634
26635         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26636         Reported by Paolo Bonzini <bonzini@gnu.org>.
26637
26638 2008-07-30  Eric Blake  <ebb9@byu.net>
26639
26640         test-strtod: allow compilation without -lm
26641         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26642         Reported by Dennis Clarke <blastwave@gmail.com>.
26643
26644 2008-07-28  Jim Meyering  <meyering@redhat.com>
26645
26646         bootstrap: work also when there are no .po files in po/
26647         * build-aux/bootstrap (update_po_files): Complete the change
26648         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26649
26650 2008-07-27  Jim Meyering  <meyering@redhat.com>
26651
26652         * users.txt: Add zile.
26653
26654 2008-07-26  Ben Pfaff  <blp@gnu.org>
26655
26656         Add missing dependencies on new m4/exponent[fdl].m4 files.
26657         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26658         * modules/isnand-nolibm: Add m4/exponentd.m4.
26659         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26660         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26661         m4/isnan[fdl].m4, because the macros actually used moved.
26662         Reported by Jim Meyering.
26663
26664 2008-07-14  Ben Pfaff  <blp@gnu.org>
26665
26666         Add isinf module.
26667         * lib/isinf.c: New file.
26668         * lib/math.in.h: Define isinf macro if we have decided to replace
26669         it.
26670         * m4/isinf.m4: New file.
26671         * m4/math_h.m4: Initialize and substitute variables for isinf
26672         module.
26673         * modules/isinf: New file.
26674         * modules/isinf-tests: New file.
26675         * modules/math: Add substitutions for new module.
26676         * tests/test-isinf.c: New file.
26677         * doc/posix-functions/isinf.texi: Mention new module.
26678         * MODULES.html.sh: Mention new module.
26679
26680 2008-07-14  Ben Pfaff  <blp@gnu.org>
26681
26682         Factor out some macros for use by additional modules.
26683         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
26684         exponentf.m4.
26685         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
26686         exponentd.m4.
26687         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
26688         file exponentl.m4.
26689         * m4/exponentf.m4: New file.
26690         * m4/exponentd.m4: New file.
26691         * m4/exponentl.m4: New file.
26692         * modules/isnanf: Use new file m4/exponentf.m4.
26693         * modules/isnand: Use new file m4/exponentd.m4.
26694         * modules/isnanl: Use new file m4/exponentl.m4.
26695
26696 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
26697
26698         mktime.c: normalize tp->tm_isdst value to -1/0/1.
26699         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
26700         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
26701         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
26702
26703         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
26704         readlink on platforms without PATH_MAX.
26705
26706 2008-07-21  Eric Blake  <ebb9@byu.net>
26707
26708         Warn, not fail, on stale version.
26709         * top/GNUmakefile (_curr-ver): Tone down previous patch.
26710
26711         Don't allow installation with stale devel version number.
26712         * top/GNUmakefile (_is-install-target): New macro.
26713         (_curr-ver): Forbid installation with stale version number.
26714
26715 2008-07-20  Bruno Haible  <bruno@clisp.org>
26716
26717         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
26718         TESTS_ENVIRONMENT.
26719         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
26720
26721 2008-07-20  Bruno Haible  <bruno@clisp.org>
26722
26723         * lib/c-stack.h (c_stack_action): Add documentation.
26724         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
26725
26726 2008-07-20  Bruno Haible  <bruno@clisp.org>
26727
26728         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
26729         * modules/readlink (License): Likewise.
26730
26731 2008-07-17  Eric Blake  <ebb9@byu.net>
26732
26733         * modules/c-stack (Link): Fix typo.
26734
26735         Make c-stack use libsigsegv, when available.
26736         * modules/c-stack (Depends-on): Add libsigsegv.
26737         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
26738         needed.
26739         * lib/c-stack.c (SIGSTKSZ): Define fallback.
26740         (segv_handler, overflow_handler, c_stack_action)
26741         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
26742         implementation when libsigsegv is available, but only when using
26743         the library is necessary.
26744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
26745         comment, explaining why XSI check fails on Linux.
26746         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
26747         * tests/test-c-stack2.sh: Tweak skip message.
26748         * NEWS: Document new link-time requirements.
26749
26750 2008-07-16  Eric Blake  <ebb9@byu.net>
26751
26752         c-stack: Expose false positives when not using libsigsegv.
26753         * modules/c-stack-tests (Files): Expand test.
26754         * tests/test-c-stack.c (main): Add means to conditionally trigger
26755         non-overflow SIGSEGV.
26756         * tests/test-c-stack2.sh: New file.
26757
26758 2008-07-14  Bruno Haible  <bruno@clisp.org>
26759
26760         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
26761         Reported by Eric Blake.
26762
26763 2008-07-14  Sam Steingold  <sds@gnu.org>
26764             Bruno Haible  <bruno@clisp.org>
26765
26766         New module libsigsegv.
26767         * modules/libsigsegv: New file.
26768         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
26769         modifications.
26770         * MODULES.html.sh (Signal handling): New section.
26771
26772 2008-07-14  Bruno Haible  <bruno@clisp.org>
26773
26774         * modules/unictype/ctype-* (Description): Add the word "function".
26775         Improves the resulting doc in MODULES.html.
26776
26777 2008-07-12  Ben Pfaff  <blp@gnu.org>
26778
26779         Add longlong module.
26780         * modules/longlong: New file.
26781
26782 2008-07-12  Bruno Haible  <bruno@clisp.org>
26783
26784         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
26785         to empty.
26786
26787 2008-07-10  Ben Pfaff  <blp@gnu.org>
26788
26789         Add isnan module.
26790         * doc/posix-functions/isnan.texi: Mention new module.
26791         * lib/math.in.h: Define isnan macro if we have decided to replace
26792         it.
26793         * m4/isnan.m4: New file.
26794         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
26795         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
26796         also.
26797         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
26798         redundancy.
26799         * m4/math_h.m4: Initialize and substitute variables for isnan
26800         module.
26801         * modules/isnan: New file.
26802         * modules/isnan-tests: New file.
26803         * modules/math: Add substitutions for new module.
26804         * tests/test-isnan.c: New file.
26805         * MODULES.html.sh: Mention new module.
26806
26807 2008-07-10  Ben Pfaff  <blp@gnu.org>
26808
26809         Add isnanf module.
26810         * lib/isnanf.m4: New file.
26811         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
26812         (gl_HAVE_ISNANF_IN_LIBM): New macro.
26813         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
26814         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
26815         * modules/isnanf: New file.
26816         * modules/isnanf-tests: New file.
26817         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
26818         files.
26819         * tests/test-isnanf-nolibm.c: factored most of its contents into
26820         new file tests/test-isnanf.h.
26821         * tests/test-isnanf.h: New file.
26822         * tests/test-isnanf.c: New file.
26823         * MODULES.html.sh: Mention new module.
26824         * doc/glibc-functions/isnanf.texi: Mention new module.
26825
26826 2008-07-10  Ben Pfaff  <blp@gnu.org>
26827
26828         Add isnand module.
26829         * lib/isnand.h: New file.
26830         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
26831         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
26832         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
26833         functionality also.
26834         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
26835         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
26836         (gl_HAVE_ISNAND_IN_LIBM): New macro.
26837         * modules/isnand: New file.
26838         * modules/isnand-tests: New file.
26839         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
26840         files.
26841         * tests/test-isnand-nolibm.c: factored most of its contents into
26842         new file tests/test-isnand.h.
26843         * tests/test-isnand.h: New file.
26844         * tests/test-isnand.c: New file.
26845         * MODULES.html.sh: Mention new module.
26846
26847 2008-07-10  Ben Pfaff  <blp@gnu.org>
26848
26849         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
26850         * lib/isnand.h: Rename lib/isnand-nolibm.h.
26851         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
26852         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
26853         * modules/isnanf-nolibm: Update references to renamed files.
26854         * modules/isnand-nolibm: Likewise.
26855         * modules/isnanf-nolibm-tests: Likewise.
26856         * modules/isnand-nolibm-tests: Likewise.
26857         * lib/frexp.c: Likewise.
26858         * lib/isfinite.c: Likewise.
26859         * lib/signbitd.c: Likewise.
26860         * lib/signbitf.c: Likewise.
26861         * lib/vasnprintf.c: Likewise.
26862         * tests/test-ceilf1.c: Likewise.
26863         * tests/test-ceilf2.c: Likewise.
26864         * tests/test-floorf1.c: Likewise.
26865         * tests/test-floorf2.c: Likewise.
26866         * tests/test-frexp.c: Likewise.
26867         * tests/test-round1.c: Likewise.
26868         * tests/test-round2.c: Likewise.
26869         * tests/test-roundf1.c: Likewise.
26870         * tests/test-strtod.c: Likewise.
26871         * tests/test-trunc1.c: Likewise.
26872         * tests/test-trunc2.c: Likewise.
26873         * tests/test-truncf1.c: Likewise.
26874         * tests/test-truncf2.c: Likewise.
26875         * NEWS: Mention the renamed header files.
26876
26877 2008-07-11  Jim Meyering  <meyering@redhat.com>
26878
26879         vc-list-files: make the last-resort awk code more portable
26880         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
26881         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
26882         does not support it.
26883
26884 2008-07-10  Eric Blake  <ebb9@byu.net>
26885
26886         Work with tar's bootstrap.
26887         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
26888         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
26889         an m4 comment.
26890
26891 2008-07-09  Jim Meyering  <meyering@redhat.com>
26892
26893         posix-shell.m4: fix typo that made this test malfunction
26894         * m4/posix-shell.m4: Remove capitalization in variable name.
26895
26896 2008-07-08  Bruno Haible  <bruno@clisp.org>
26897
26898         * m4/onceonly.m4: Update comments.
26899         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26900
26901 2008-07-04  Jim Meyering  <meyering@redhat.com>
26902
26903         * users.txt: Add vc-dwim.
26904         (bison, coreutils): Use the gitweb URL.
26905
26906 2008-07-03  Jim Meyering  <meyering@redhat.com>
26907
26908         * users.txt: Add libffcall.  From Sam Steingold.
26909
26910 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
26911
26912         getdate.y: do not ignore TZ with relative day, month or year offset
26913         * lib/getdate.y (get_date): Move the tz-handling block to follow the
26914         relative-date-handling, since otherwise, the latter would clobber the
26915         sole output (an updated Start value) of the tz-handling block.
26916         * tests/test-getdate.c: Tests for the fix
26917
26918 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26919
26920         Recognize 'foo_LIBRARIES += libgnu.a'.
26921         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
26922         makefile snippet has already specified an installation location,
26923         also using '+='.
26924
26925 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
26926
26927         getdate.y: factor out common actions
26928         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
26929         Use them in place of open-coded actions.
26930
26931 2008-07-01  Simon Josefsson  <simon@josefsson.org>
26932
26933         Add self-test for getdate module.
26934         * modules/getdate-tests: New file.
26935         * tests/test-getdate.c: New file.
26936
26937 2008-06-29  Bruno Haible  <bruno@clisp.org>
26938
26939         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
26940         .gitignore.
26941         Reported by Sylvain Beucler <beuc@beuc.net>.
26942
26943 2008-06-29  Bruno Haible  <bruno@clisp.org>
26944
26945         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
26946         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
26947
26948 2008-06-29  Bruno Haible  <bruno@clisp.org>
26949
26950         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
26951         EXTRA_DIST.
26952         Reported by Sylvain Beucler <beuc@beuc.net>.
26953
26954 2008-06-26  Jim Meyering  <meyering@redhat.com>
26955
26956         make several modules depend on the "open" module
26957         This provides slightly increased consistency when opening-for-write
26958         the name of a non-directory spelled with a trailing slash.
26959         * modules/chdir-safer: Likewise.
26960         * modules/chown: Likewise.
26961         * modules/clean-temp: Likewise.
26962         * modules/copy-file: Likewise.
26963         * modules/fchdir: Likewise.
26964         * modules/fcntl-safer: Likewise.
26965         * modules/pipe: Likewise.
26966         * modules/utime: Likewise.
26967         Prompted by Eric Blake and Bruno Haible.
26968
26969 2008-06-24  Andreas Schwab  <schwab@suse.de>
26970
26971         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
26972         literals can be used as initializers for global variables.
26973
26974 2008-06-23  Eric Blake  <ebb9@byu.net>
26975
26976         Make gnulib-cache.m4 easier to diff.
26977         * gnulib-tool (func_import): Allow newlines when reading cached
26978         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
26979
26980 2008-06-23  Bruno Haible  <bruno@clisp.org>
26981
26982         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
26983         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
26984         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
26985         m4/signalblocking.m4.
26986         (gl_PREREQ_SIGACTION): Don't invoke it.
26987         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
26988         gl_PREREQ_SIG_HANDLER_H.
26989         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26990         Don't check for sigaction here.
26991
26992 2008-06-23  Bruno Haible  <bruno@clisp.org>
26993
26994         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
26995         (install_handlers): Don't set the SA_RESETHAND flag.
26996
26997 2008-06-23  Bruno Haible  <bruno@clisp.org>
26998
26999         * m4/sigaction.m4: Comment fixes.
27000         * lib/signal.in.h: Likewise.
27001
27002 2008-06-23  Eric Blake  <ebb9@byu.net>
27003
27004         Fix typo.
27005         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
27006
27007         Avoid SA_ namespace.
27008         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
27009         Reported by Ralf Wildenhues.
27010
27011         Avoid test failure due to SA_RESTORER.
27012         * tests/test-sigaction.c (SA_MASK): New macro.
27013         (main): Avoid failing due to extension flags being set.
27014         Reported by Jim Meyering.
27015
27016         Revert use of sig-handler.h in sigprocmask.c.
27017         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
27018         it requires the existence of struct sigaction.
27019         * lib/sigprocmask.c (handler_t): Restore typedef.
27020         (rpl_signal, old_handlers): Use local type.
27021
27022 2008-06-22  Bruno Haible  <bruno@clisp.org>
27023
27024         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
27025         conditionally.
27026         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27027
27028 2008-06-22  Bruno Haible  <bruno@clisp.org>
27029
27030         * doc/posix-functions/siginterrupt.texi: Move note.
27031
27032         * lib/signal.in.h (SA_RESTART): New macro.
27033         * lib/sigaction.c: Update comment.
27034
27035         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
27036
27037         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
27038         (gl_PREREQ_SIGPROCMASK): Invoke it.
27039         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
27040
27041         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
27042
27043         * lib/sigprocmask.c: Update a comment.
27044
27045 2008-06-21  Eric Blake  <ebb9@byu.net>
27046
27047         Use sigaction module rather than signal().
27048         * modules/c-stack (Depends-on): Add sigaction.
27049         * modules/fatal-signal (Depends-on): Likewise.
27050         * modules/nanosleep (Depends-on): Likewise.
27051         * modules/sigprocmask (Files): Add sig-handler.h.
27052         * modules/sigaction (Files): Likewise.
27053         * lib/sig-handler.h (get_handler): New file, suggested by Paul
27054         Eggert.
27055         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
27056         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
27057         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27058         (init_fatal_signals): Likewise.
27059         * lib/nanosleep.c (rpl_nanosleep): Likewise.
27060         (siginterrupt): Delete fallback.
27061         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
27062         instead.
27063         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
27064         siginterrupt.
27065
27066         New module sigaction, for mingw.
27067         * modules/sigaction: New module...
27068         * modules/sigaction-tests: ...and its test.
27069         * m4/sigaction.m4: New file.
27070         * lib/sigaction.c: Likewise.
27071         * tests/test-sigaction.c: Likewise.
27072         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
27073         * modules/signal (Makefile.am): Likewise.
27074         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
27075         needed.
27076         * doc/posix-headers/signal.texi (signal.h): Mention provided
27077         types.
27078         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
27079         that sigaction is preferable.
27080         * doc/posix-functions/sigaction.texi (sigaction): Mention new
27081         module.
27082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27083         sigaction.
27084
27085         Improve robustness of sigprocmask by overriding signal.
27086         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
27087         is in use.
27088         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
27089         (SIGKILL, SIGSTOP): Provide fallbacks.
27090         (rpl_signal): Implement.
27091         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
27092         signal can be called inside handlers.
27093
27094         Fix nanosleep module on mingw.
27095         * modules/nanosleep (Depends-on): Add sys_select.
27096         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
27097
27098         Fix licensing of sigprocmask.
27099         * modules/raise (License): Relicense as LGPL.
27100
27101 2008-06-21  Bruno Haible  <bruno@clisp.org>
27102
27103         * lib/propername.c (proper_name_utf8): Don't use the transliterated
27104         result if it contains question marks.
27105         Reported by Michael Geng <linux@michaelgeng.de>.
27106
27107 2008-06-19  Bruno Haible  <bruno@clisp.org>
27108
27109         Fix CVS-ism.
27110         * doc/gnulib.texi: Include updated-stamp.texi.
27111         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
27112         (updated-stamp.texi): New rule.
27113         (gnulib.info): Depend on it.
27114         * doc/.gitignore: Add updated-stamp.texi.
27115         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
27116
27117 2008-06-19  Bruno Haible  <bruno@clisp.org>
27118
27119         * doc/Makefile (gnulib.info): Update and simplify dependencies.
27120         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27121
27122 2008-06-19  Eric Blake  <ebb9@byu.net>
27123
27124         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
27125         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
27126         Reported by Stepan Kasal.
27127
27128 2008-06-18  Bruno Haible  <bruno@clisp.org>
27129
27130         * lib/fatal-signal.c (init_fatal_signals): Add comment.
27131         Reported by Eric Blake.
27132
27133 2008-06-18  Eric Blake  <ebb9@byu.net>
27134
27135         Work around cygwin 1.5.25 strsignal bug.
27136         * tests/test-strsignal.c: Allow for const char *.
27137         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
27138
27139 2008-06-18  Simon Josefsson  <simon@josefsson.org>
27140
27141         * users.txt: Update URL to article and add author/date
27142         information.
27143
27144 2008-06-17  Bruno Haible  <bruno@clisp.org>
27145
27146         New macro gl_DISABLE_THREADS.
27147         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
27148         if the user did not pass --enable-threads or --disable-threads option.
27149         (gl_DISABLE_THREADS): New macro.
27150         Reported by Eric Blake <ebb9@byu.net>.
27151
27152 2008-06-17  Bruno Haible  <bruno@clisp.org>
27153
27154         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
27155         when the macro ignores it.
27156         Based on a patch by Eric Blake <ebb9@byu.net>.
27157
27158 2008-06-17  Bruno Haible  <bruno@clisp.org>
27159
27160         * modules/tls (License): Change to LGPLv2+.
27161         Reported by Eric Blake.
27162
27163 2008-06-17  Eric Blake  <ebb9@byu.net>
27164
27165         Simplify c-stack prerequisites.
27166         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
27167         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
27168         no longer requires <ucontext.h> to exist.  Optimize setrlimit
27169         check.
27170         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
27171         <sys/resource.h>.
27172
27173         Move c-stack test into testsuite.
27174         * modules/c-stack-tests: New file.
27175         * lib/c-stack.c [DEBUG]: Move test program...
27176         * tests/test-c-stack.c: ...into this new file.  Skip rather than
27177         fail test if sigaltstack is lacking.
27178         * tests/test-c-stack.sh: New driver file.
27179
27180 2008-06-16  Eric Blake  <ebb9@byu.net>
27181
27182         Use raise module consistently.
27183         * modules/fatal-signal (Depends-on): Add raise.
27184         * modules/sigprocmask (Depends-on): Likewise.
27185         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
27186         * lib/sigprocmask.c (sigprocmask): Likewise.
27187         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27188         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
27189
27190         Fix compliance bug in sigpending.
27191         * lib/sigprocmask.c (sigpending): Return pending array via
27192         parameter, not return value.
27193
27194 2008-06-14  Eric Blake  <ebb9@byu.net>
27195
27196         Improve obstack-printf test code.
27197         * tests/test-obstack-printf.c (test_function): Fix comment, and
27198         simplify usage of obstack_* in macros.  Add a test for coverage.
27199         Reported by Bruno Haible.
27200
27201 2008-06-14  Bruno Haible  <bruno@clisp.org>
27202
27203         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
27204         array size as a constant, not as a const variable.
27205         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
27206         AC_USE_SYSTEM_EXTENSIONS.
27207         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27208         Test whether the obstack_printf function actually exists.
27209         * modules/obstack-printf (Depends-on): Add extensions.
27210         (Include): Remove obstack.h.
27211         * modules/obstack-printf-posix (Depends-on): Add extensions.
27212         (Include): Remove obstack.h.
27213
27214 2008-06-13  Eric Blake  <ebb9@byu.net>
27215
27216         Add obstack-printf and obstack-printf-posix modules.
27217         * modules/obstack-printf: New file.
27218         * modules/obstack-printf-posix: Likewise.
27219         * MODULES.html.sh (Misc): Mention them.
27220         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27221         Likewise.
27222         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27223         Likewise.
27224         * modules/stdio (Makefile.am): Accomodate new modules.
27225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27226         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
27227         Declare.
27228         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
27229         functions.
27230         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
27231         (gl_REPLACE_OBSTACK_PRINTF): New macros
27232         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
27233         * tests/test-obstack-printf.c: New file.
27234         * modules/obstack-printf-tests: Likewise.
27235         * modules/obstack-printf-posix-tests: Likewise.
27236
27237 2008-06-11  Bruno Haible  <bruno@clisp.org>
27238
27239         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
27240         * lib/open.c: Include errno.h.
27241         (open): Fail when attempting to write to a file that has a trailing
27242         slash.
27243         * tests/test-open.c (main): Test against trailing slash bug.
27244         * doc/posix-functions/open.texi: Mention the trailing slash bug.
27245
27246 2008-06-10  Bruno Haible  <bruno@clisp.org>
27247
27248         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
27249         for $? to work inside the trap command, with various /bin/sh-s.
27250         * tests/test-vc-list-files-cvs.sh: Likewise.
27251
27252 2008-06-10  Bruno Haible  <bruno@clisp.org>
27253
27254         * lib/acl-internal.h: Don't include gettext.h here.
27255         * lib/set-mode-acl.c: Include gettext.h here.
27256         * lib/copy-acl.c: Likewise.
27257
27258 2008-06-10  Bruno Haible  <bruno@clisp.org>
27259
27260         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
27261         * lib/wait-process.c (wait_subprocess): Likewise.
27262         * lib/execute.h (execute): Add termsigp argument.
27263         * lib/execute.c (execute): Likewise.
27264         * lib/csharpcomp.c (compile_csharp_using_pnet,
27265         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
27266         * lib/csharpexec.c (execute_csharp_using_pnet,
27267         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
27268         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
27269         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
27270         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
27271         is_jikes_present): Update.
27272         * lib/javaexec.c (execute_java_class): Update.
27273         * lib/javaversion.c (execute_and_read_line): Update.
27274         * NEWS: Document the changes.
27275         Reported by Eric Blake.
27276
27277 2008-06-10  Eric Blake  <ebb9@byu.net>
27278
27279         Add missing include.
27280         * tests/test-strstr.c (includes): Add <signal.h>.
27281         * tests/test-strcasestr.c (includes): Likewise.
27282         * tests/test-memmem.c (includes): Likewise.
27283
27284 2008-06-10  Bruno Haible  <bruno@clisp.org>
27285
27286         * lib/wait-process.c (wait_subprocess): Add an assertion.
27287
27288 2008-06-10  Bruno Haible  <bruno@clisp.org>
27289
27290         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
27291
27292 2008-06-10  Bruno Haible  <bruno@clisp.org>
27293
27294         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
27295         using alarm().
27296         * tests/test-strcasestr.c (main): Likewise.
27297         * tests/test-strstr.c (main): Likewise.
27298
27299 2008-06-09  Bruno Haible  <bruno@clisp.org>
27300
27301         Work around the Solaris 10 ACE ACLs ABI change.
27302         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
27303         declare if ACL_NO_TRIVIAL is present.
27304         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
27305         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
27306         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
27307         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
27308         define if ACL_NO_TRIVIAL is present.
27309         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27310         and use the current ABI.
27311         (file_has_acl): Use same #if condition as elsewhere.
27312         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
27313         in use, and use the current ABI.
27314         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
27315         Reported by Jim Meyering.
27316
27317 2008-06-09  Eric Blake  <ebb9@byu.net>
27318
27319         Work around environments that (stupidly) ignore SIGALRM.
27320         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
27321         before using alarm().
27322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27323         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27324         Reported by Ian Beckwith <ianb@erislabs.net>.
27325
27326         Produce autobuild blurb earlier in log.
27327         * modules/autobuild (configure.ac-early): Move AB_INIT here.
27328
27329 2008-06-09  Jim Meyering  <meyering@redhat.com>
27330         and Ondřej Vašík  <ovasik@redhat.com>
27331
27332         utimens.c: correct kernel bug work-around
27333         Ondřej Vašík found that the invalid return value of 280 indicates
27334         failure, not success, and the kernel bug we're trying to work
27335         around affects not just the utimensat call, but also the fallback
27336         futimens call.
27337         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
27338         not success.
27339         [HAVE_FUTIMENS]: Use the same work-around, here.
27340
27341 2008-06-09  Jim Meyering  <meyering@redhat.com>
27342
27343         add more guards around definition of ACE_-related code
27344         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
27345         ALLOW and ACE_OWNER are also defined.
27346
27347 2008-06-08  Bruno Haible  <bruno@clisp.org>
27348
27349         * lib/acl-internal.h: Add me as co-author.
27350         * lib/file-has-acl.c: Likewise.
27351         * lib/set-mode-acl.c: Likewise.
27352         * lib/copy-acl.c: Likewise.
27353
27354 2008-06-08  Bruno Haible  <bruno@clisp.org>
27355
27356         Add support for AIX ACLs.
27357         * lib/acl-internal.h (acl_nontrivial): New declaration.
27358         * lib/file-has-acl.c (acl_nontrivial): New function.
27359         (file_has_acl): Add implementation using AIX 4 ACL API.
27360         * lib/set-mode-acl.c (qset_acl): Likewise.
27361         * lib/copy-acl.c (qcopy_acl): Likewise.
27362
27363 2008-06-08  Bruno Haible  <bruno@clisp.org>
27364
27365         Add support for HP-UX ACLs.
27366         * lib/acl-internal.h (acl_nontrivial): New declaration.
27367         * lib/file-has-acl.c (acl_nontrivial): New function.
27368         (file_has_acl): Add implementation using HP-UX 11 ACL API.
27369         * lib/set-mode-acl.c (qset_acl): Likewise.
27370         * lib/copy-acl.c (qcopy_acl): Likewise.
27371
27372 2008-06-08  Bruno Haible  <bruno@clisp.org>
27373
27374         Add support for Cygwin ACLs.
27375         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
27376         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
27377         the chmod_or_fchmod call.
27378         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
27379
27380 2008-06-08  Bruno Haible  <bruno@clisp.org>
27381
27382         Fix bug with setuid modes in Solaris 10+ code.
27383         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
27384         succeeded, when the mode contains some special bits.
27385
27386 2008-06-08  Bruno Haible  <bruno@clisp.org>
27387
27388         Add support for Solaris 7..10 ACLs.
27389         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
27390         declarations.
27391         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
27392         functions.
27393         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
27394         * lib/set-mode-acl.c (qset_acl): Likewise.
27395         * lib/copy-acl.c (qcopy_acl): Likewise.
27396
27397 2008-06-08  Bruno Haible  <bruno@clisp.org>
27398
27399         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
27400         declaration.
27401         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
27402         (acl_access_nontrivial): Remove MacOS X case.
27403         (file_has_acl): Use acl_extended_nontrivial.
27404         * lib/copy-acl.c (qcopy_acl): Likewise.
27405
27406 2008-06-08  Bruno Haible  <bruno@clisp.org>
27407
27408         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
27409
27410 2008-06-08  Jim Meyering  <meyering@redhat.com>
27411
27412         * modules/acl (Maintainer): Add Bruno Haible.
27413
27414 2008-06-07  Bruno Haible  <bruno@clisp.org>
27415
27416         Improve support for Tru64 ACLs.
27417         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
27418         ACL on OSF/1.
27419
27420 2008-06-07  Bruno Haible  <bruno@clisp.org>
27421
27422         Add support for MacOS X ACLs.
27423         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
27424         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
27425         * lib/set-mode-acl.c (qset_acl): Likewise.
27426         * lib/copy-acl.c (qcopy_acl): Likewise.
27427
27428 2008-06-07  Bruno Haible  <bruno@clisp.org>
27429
27430         Fix memory leak introduced on 2008-05-22.
27431         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
27432         use.
27433
27434 2008-06-07  Bruno Haible  <bruno@clisp.org>
27435
27436         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
27437         to construct an empty ACL.
27438
27439 2008-06-07  Bruno Haible  <bruno@clisp.org>
27440
27441         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
27442         precisely.
27443         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
27444
27445 2008-06-07  Bruno Haible  <bruno@clisp.org>
27446
27447         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
27448         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
27449
27450 2008-06-07  Bruno Haible  <bruno@clisp.org>
27451
27452         * doc/posix-functions/_setjmp.texi: Explain the use of this function
27453         regardless of POSIX.
27454         * doc/posix-functions/_longjmp.texi: Likewise.
27455         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
27456         SystemV platform in this case.
27457
27458 2008-06-06  Eric Blake  <ebb9@byu.net>
27459
27460         Document abort() bugs.
27461         * doc/posix-functions/abort.texi (abort): Mention anomalies.
27462
27463         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
27464         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
27465         sigsetjmp.
27466         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
27467         siglongjmp, but only as a macro.
27468         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
27469         is obsolete.
27470         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
27471
27472         Tweak documentation to cover cygwin argz bugs.
27473         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
27474         argz bug fix; no code change needed since no cygwin releases
27475         occurred between the last fix and the bug being tested.
27476         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
27477         module and recently fixed cygwin bugs.
27478         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
27479         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
27480         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
27481         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
27482         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
27483         Likewise.
27484         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
27485         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
27486         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
27487         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
27488         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
27489         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27490         Likewise.
27491
27492         Avoid gcc warning on cygwin.
27493         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27494         !ACL_NO_TRIVIAL]: Avoid unused variable.
27495
27496 2008-06-05  Eric Blake  <ebb9@byu.net>
27497
27498         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27499         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27500         git-version-gen fails to come up with a version.
27501         Reported by Simon Josefsson.
27502
27503 2008-06-05  Jim Meyering  <meyering@redhat.com>
27504             Paul Eggert  <eggert@cs.ucla.edu>
27505
27506         utimens.c: work around a probable Linux kernel bug
27507         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27508         appears to be a kernel bug that causes utimensat to return 280
27509         instead of 0, indicating success.
27510
27511 2008-06-04  Bruno Haible  <bruno@clisp.org>
27512
27513         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27514         2008-06-01 commit.
27515
27516 2008-06-04  Bruno Haible  <bruno@clisp.org>
27517
27518         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27519         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27520         (file_has_acl): Use it. Save errno afterwards.
27521         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27522
27523 2008-06-03  Bruno Haible  <bruno@clisp.org>
27524
27525         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27526         draft code. Simplify #ifs.
27527         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27528         Put Solaris code after POSIX-draft code. Fix comments regarding
27529         Solaris 10, HP-UX. Mention Cygwin.
27530         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27531
27532 2008-06-03  Eric Blake  <ebb9@byu.net>
27533
27534         Provide fallback for older kernels.
27535         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27536         Provide runtime fallback if kernel lacks support.
27537         Reported by Mike Frysinger.
27538
27539 2008-06-02  Bruno Haible  <bruno@clisp.org>
27540
27541         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27542         it exists.
27543
27544 2008-06-02  Bruno Haible  <bruno@clisp.org>
27545
27546         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27547         * lib/copy-acl.c (qcopy_acl): Update comment.
27548
27549 2008-06-02  Bruno Haible  <bruno@clisp.org>
27550
27551         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27552         like ACL APIs.
27553
27554 2008-06-02  Bruno Haible  <bruno@clisp.org>
27555
27556         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27557         * tests/test-set-mode-acl.sh: Likewise.
27558         * tests/test-copy-acl.sh: Likewise.
27559         * tests/test-copy-file.sh: Likewise.
27560
27561 2008-06-02  Bruno Haible  <bruno@clisp.org>
27562
27563         * tests/test-file-has-acl.sh: Remove unused code.
27564
27565 2008-06-01  Bruno Haible  <bruno@clisp.org>
27566
27567         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27568         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27569         messages.
27570         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27571
27572 2008-06-01  Bruno Haible  <bruno@clisp.org>
27573
27574         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27575         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27576         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27577         APIs.
27578         * modules/acl-tests (configure.ac): Remove tests now contained in
27579         m4/acl.m4.
27580
27581 2008-06-02  Jim Meyering  <meyering@redhat.com>
27582
27583         announce-gen: use a better key-server host name
27584         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27585         it may be more consistently reliable.  Suggested by Werner Koch
27586         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27587
27588 2008-06-01  Bruno Haible  <bruno@clisp.org>
27589
27590         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27591         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27592
27593 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27594
27595         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27596
27597 2008-06-01  Bruno Haible  <bruno@clisp.org>
27598
27599         New ACL tests.
27600         * tests/test-file-has-acl.sh: New file.
27601         * tests/test-file-has-acl.c: New file.
27602         * tests/test-set-mode-acl.sh: New file.
27603         * tests/test-set-mode-acl.c: New file.
27604         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27605         * tests/test-copy-acl.c: New file.
27606         * modules/acl-tests: New file, based on modules/copy-file-tests.
27607         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27608         (Depends-on): Add acl-tests.
27609         (configure.ac): Remove checks.
27610         (Makefile.am): Don't create test-sameacls program here any more.
27611
27612 2008-06-01  Bruno Haible  <bruno@clisp.org>
27613
27614         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27615         * tests/test-sameacls.c: Include progname.h.
27616         (main): Invoke set_program_name. Portability fixes for MacOS X,
27617         Solaris, HP-UX.
27618
27619 2008-06-01  Bruno Haible  <bruno@clisp.org>
27620
27621         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27622         function.
27623         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27624
27625 2008-06-01  Bruno Haible  <bruno@clisp.org>
27626
27627         * modules/rpmatch (Depends-on): Add strdup.
27628
27629 2008-06-01  Bruno Haible  <bruno@clisp.org>
27630
27631         * lib/pipe.c: Include unistd-safer.h.
27632         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27633         * modules/pipe (Depends-on): Add unistd-safer.
27634
27635 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27636
27637         * modules/autobuild (configure.ac): Call AB_INIT.
27638
27639 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27640
27641         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27642         Suggested by Bruno Haible <bruno@clisp.org>.
27643
27644 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27645
27646         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27647         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27648         <bruno@clisp.org>.
27649
27650 2008-05-29  Eric Blake  <ebb9@byu.net>
27651
27652         Prefer new POSIX 200x interfaces over futimesat.
27653         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27654         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27655         when available.
27656         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27657
27658 2008-05-28  Bruno Haible  <bruno@clisp.org>
27659
27660         * modules/stpcpy (License): Change to LGPLv2+.
27661         Requested by David Lutterkort <dlutter@redhat.com>.
27662
27663 2008-05-27  Bruno Haible  <bruno@clisp.org>
27664
27665         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27666         current mingw.
27667         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27668
27669 2008-05-27  Bruno Haible  <bruno@clisp.org>
27670
27671         * modules/iconv_open (Link): New section, from module 'iconv'.
27672         * modules/striconv (Link): Likewise.
27673         * modules/striconveh (Link): Likewise.
27674         * modules/xstriconv (Link): Likewise.
27675         * modules/unicodeio (Link): Likewise.
27676         * modules/propername (Link): Likewise.
27677         Reported by Jim Meyering.
27678
27679 2008-05-26  Jim Meyering  <meyering@redhat.com>
27680
27681         sha256: do not artificially restrict buffer length to be < 2^32
27682         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
27683         uint32_t to size_t.
27684         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
27685         to match.
27686
27687         avoid unaligned access errors, e.g., on sparc
27688         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
27689         direct access through a possibly-unaligned uint64* pointer.
27690         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
27691         direct access through a possibly-unaligned uint32* pointer.
27692         Prompted by this patch from Tom "spot" Callaway:
27693         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
27694
27695         sha512.c: fix typo in comment
27696         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
27697
27698 2008-05-25  Bruno Haible  <bruno@clisp.org>
27699
27700         * lib/set-mode-acl.c: Renamed from lib/acl.c.
27701         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
27702         (Makefile.am): Update lib_SOURCES.
27703
27704 2008-05-25  Bruno Haible  <bruno@clisp.org>
27705
27706         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
27707
27708 2008-05-25  Jim Meyering  <meyering@redhat.com>
27709
27710         useless-if-before-free: freed expr may have white-space differences
27711         * build-aux/useless-if-before-free: Recognize cases in which the
27712         freed expression differs from the tested one in embedded white
27713         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
27714         $1 was used, so we can't make any regexp shy.  Improved tests now
27715         detect this.
27716
27717         useless-if-before-free: accept white space in the expression.
27718         * build-aux/useless-if-before-free: For now, any white space
27719         in the expression must be identical in the free argument.
27720
27721         useless-if-before-free: efficiency tweak
27722         * build-aux/useless-if-before-free: Make the expression-matching
27723         regexp "shy".
27724         Make the *outer* regexp shy, not the expr-matching one.
27725
27726         update code-in-comment to accept cast of free arg
27727         * build-aux/useless-if-before-free: Update regexp.
27728
27729 2008-05-25  Bruno Haible  <bruno@clisp.org>
27730
27731         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
27732         * modules/copy-file-tests (Files, Makefile.am): Update.
27733         * tests/test-copy-file.c (func_test_copy): Update.
27734
27735 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
27736
27737         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
27738
27739 2008-05-23  Bruno Haible  <bruno@clisp.org>
27740
27741         Improve support for ACLs on OSF/1.
27742         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
27743         Remove fallback for unknown flavors of ACLs.
27744
27745 2008-05-22  Bruno Haible  <bruno@clisp.org>
27746
27747         Add support for ACLs on OSF/1.
27748         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
27749         replacements.
27750         (acl_free_text): New macro fallback.
27751         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
27752         acl_free.
27753         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
27754         acl_free_text function. Require AC_C_INLINE.
27755
27756 2008-05-22  Bruno Haible  <bruno@clisp.org>
27757
27758         Make copy_acl work on MacOS X 10.5.
27759         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
27760         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
27761         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
27762         If MODE_INSIDE_ACL, don't assume that every system has the same text
27763         representation for ACLs as FreeBSD.
27764         * lib/copy-acl.c (copy_acl): Add support for platforms with
27765         !MODE_INSIDE_ACL.
27766         * lib/file-has-acl.c (file_has_acl): Likewise.
27767         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
27768         FreeBSD, MacOS X, or IRIX, respectively.
27769
27770 2008-05-22  Bruno Haible  <bruno@clisp.org>
27771
27772         * lib/acl.h: Don't include <sys/acl.h>.
27773         (GETACLCNT): Move fallback to lib/acl-internal.h.
27774         * lib/acl-internal.h: Include <sys/acl.h> here.
27775         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
27776
27777 2008-05-22  Bruno Haible  <bruno@clisp.org>
27778
27779         Split off copy_acl function to separate file.
27780         * lib/copy-acl.c: New file, extracted from lib/acl.c.
27781         * lib/acl.c (copy_acl): Moved function to separate file.
27782         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
27783         * modules/acl (Files): Add lib/copy-acl.c.
27784         (Makefiles.am): Augment lib_SOURCES.
27785
27786 2008-05-22  Bruno Haible  <bruno@clisp.org>
27787
27788         * modules/copy-file-tests: New file.
27789         * tests/test-copy-file.sh: New file.
27790         * tests/test-copy-file.c: New file.
27791         * tests/test-copy-file-sameacls.c: New file.
27792
27793 2008-05-22  Eric Blake  <ebb9@byu.net>
27794
27795         Avoid gcc warning.
27796         * tests/test-memcmp.c (main): Pass NULL indirectly.
27797
27798 2008-05-21  Bruno Haible  <bruno@clisp.org>
27799
27800         Add reference doc about ACLs.
27801         * doc/acl-resources.txt: New file.
27802         * doc/acl-cygwin.txt: New file.
27803
27804 2008-05-21  Bruno Haible  <bruno@clisp.org>
27805
27806         Avoid one more warning from gcc.
27807         * lib/vasnprintf.c (IF_LINT): Update comments.
27808         (VASNPRINTF): Use it also for the 'prefix' array initializer.
27809
27810 2008-05-21  Jim Meyering  <meyering@redhat.com>
27811
27812         avoid a warning from gcc
27813         * lib/vasnprintf.c (IF_LINT): Define.
27814         (scale10_round_decimal_long_double):
27815         Use it to avoid a "may be used uninitialized" warning.
27816         (scale10_round_decimal_double): Likewise.
27817
27818 2008-05-21  Simon Josefsson  <simon@josefsson.org>
27819
27820         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
27821         declared.
27822
27823 2008-05-20  Bruno Haible  <bruno@clisp.org>
27824
27825         * tests/test-memcmp.c (main): Test also the sign of the result. Test
27826         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
27827
27828 2008-05-20  Simon Josefsson  <simon@josefsson.org>
27829
27830         * modules/memcmp-tests: New file.
27831         * tests/test-memcmp.c: New file.
27832
27833 2008-05-19  Bruno Haible  <bruno@clisp.org>
27834
27835         * modules/propername (Notice, configure.ac): Put quoted "..." into
27836         --keyword option.
27837         * lib/propername.h: Update comments accordingly.
27838         Reported by Eric Blake.
27839
27840 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
27841
27842         * modules/getpass-gnu (Depends-on): Add fseeko.
27843
27844 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27845
27846         * modules/base64-tests: New file.
27847
27848 2008-05-19  Bo Borgerson <gigabo@gmail.com>
27849
27850         * lib/base64.c (base64_decode_ctx): If a decode context structure
27851         was passed in use it to ignore newlines.  If a context structure
27852         was _not_ passed in, continue to treat newlines as garbage (this
27853         is the historical behavior).  Formerly base64_decode.
27854         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27855         takes a decode context structure.
27856         * lib/base64.h (base64_decode): Macro for four-argument calls.
27857         (base64_decode_alloc): Likewise.
27858         * lib/base64.c (base64_decode_ctx): If a decode context structure
27859         was passed in use it to ignore newlines.  If a context structure
27860         was _not_ passed in, continue to treat newlines as garbage (this
27861         is the historical behavior).  Formerly base64_decode.
27862         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27863         takes a decode context structure.
27864         * lib/base64.h (base64_decode): Macro for four-argument calls.
27865         (base64_decode_alloc): Likewise.
27866
27867 2008-05-19  Jim Meyering  <meyering@redhat.com>
27868
27869         avoid a warning from gcc
27870         * lib/trim.c (IF_LINT): Define.
27871         (trim2): Use it to avoid a "may be used uninitialized" warning.
27872
27873         Fix doc typo.
27874         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
27875
27876 2008-05-19  Bruno Haible  <bruno@clisp.org>
27877
27878         * doc/glibc-functions/getpass.texi: Document limits of other
27879         implementations.
27880
27881 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27882             Bruno Haible <bruno@clisp.org>
27883
27884         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
27885
27886 2008-05-18  Bruno Haible  <bruno@clisp.org>
27887
27888         * modules/propername: New file, from GNU gettext.
27889         * lib/propername.h: New file, from GNU gettext.
27890         * lib/propername.c: New file, from GNU gettext.
27891         * MODULES.html.sh (Internationalization functions): Add propername.
27892
27893 2008-05-16  Jim Meyering  <meyering@redhat.com>
27894             Bruno Haible  <bruno@clisp.org>
27895
27896         Avoid some warnings from "gcc -Wshadow".
27897         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
27898
27899 2008-05-15  Eric Blake  <ebb9@byu.net>
27900
27901         Extend previous patch to cygwin 1.7.0.
27902         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
27903         fast implementation in cygwin >= 1.7.0.
27904         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27906
27907 2008-05-15  Bruno Haible  <bruno@clisp.org>
27908
27909         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
27910         implementation in glibc >= 2.9.
27911         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27913
27914 2008-05-15  Bruno Haible  <bruno@clisp.org>
27915
27916         * MODULES.html.sh (Internationalization functions): Remove linebreak.
27917         (Unicode string functions): Add unilbrk/*.
27918         Reported by Karl Berry.
27919
27920 2008-05-15  Eric Blake  <ebb9@byu.net>
27921
27922         Fix violation of <stdbool.h> replacement in regex.
27923         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
27924         * lib/regexec.c (re_search_internal): Likewise.
27925         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
27926
27927 2008-05-15  Jim Meyering  <meyering@redhat.com>
27928
27929         avoid distracting test output when git or cvs is not found
27930         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
27931         * tests/test-vc-list-files-git.sh: Likewise.
27932
27933 2008-05-15  Eric Blake  <ebb9@byu.net>
27934
27935         Glibc finally accepted the memmem speedup code, bugzilla #5514.
27936         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
27937         glibc version.
27938         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27939         * doc/posix-functions/strstr.texi (strstr): Likewise.
27940         * lib/str-two-way.h (MAX): Sychronize with glibc.
27941
27942 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
27943
27944         * lib/regcomp.c (optimize_utf8): Add a note on why we test
27945         opr.ctx_type.
27946         (calc_first): Initialize constraint field.
27947         (duplicate_node_closure): Use it instead of special casing ANCHORS.
27948         Fix grammar.
27949         (duplicate_node): Merge constraint field for all node types.
27950         (calc_eclosure_iter): Look at constraint field for all node types.
27951         * lib/regex_internal.c (create_cd_newstate): Don't look at
27952         opr.ctx_type.
27953
27954 2008-05-14  Bruno Haible  <bruno@clisp.org>
27955
27956         Help GCC to do better code generation.
27957         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
27958         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27959         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
27960         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
27961         Declare with attribute 'malloc' if supported.
27962
27963 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
27964
27965         use "echo STR|wc -c" rather than unportable "expr length STR"
27966         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
27967         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
27968
27969 2008-05-14  Jim Meyering  <meyering@redhat.com>
27970
27971         use dd ibs=$n count=1 ... rather than less-portable head -c$n
27972         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
27973         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
27974         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
27975         via Collin Lasse.
27976
27977 2008-05-14  Eric Blake  <ebb9@byu.net>
27978
27979         Avoid quadratic growth in gl_LIBSOURCES.
27980         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
27981         Suggested by Bruno Haible.
27982
27983         Test xmemdup0.
27984         * modules/xmemdup0-tests: New file.
27985         * tests/test-xmemdup0.c: Likewise.
27986
27987 2008-05-13  Eric Blake  <ebb9@byu.net>
27988
27989         Split xmemdup0 into its own module.
27990         * modules/xmemdup0: New file.
27991         * lib/xmemdup0.h: Likewise.
27992         * lib/xmemdup0.c: Likewise.
27993         * MODULES.html.sh (Memory management functions): Add xmemdup0.
27994         * lib/xalloc.h (xmemdup0): Remove.
27995         * lib/xmalloc.c (xmemdup0): Likewise.
27996
27997 2008-05-13  Eric Blake  <ebb9@byu.net>
27998             Bruno Haible  <bruno@clisp.org>
27999
28000         Reduce number of forks required during autoconf.
28001         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
28002         and gl_LIBSOURCES_DIR.
28003         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
28004         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
28005         m4_syscmd per file.
28006         <m4_foreach_w>: Move...
28007         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
28008
28009 2008-05-13  Eric Blake  <ebb9@byu.net>
28010
28011         * gnulib-tool: Fix various comment typos.
28012
28013 2008-05-12  Bruno Haible  <bruno@clisp.org>
28014
28015         Tailor the linebreaking algorithm.
28016         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
28017
28018 2008-05-12  Bruno Haible  <bruno@clisp.org>
28019
28020         Update to Unicode 5.0.0.
28021         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28022         LBP_JV, LBP_JT. Redistribute values.
28023         (unilbrk_table): Change size.
28024         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
28025         Unicode TR#14 rev. 22.
28026         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28027         LBP_JV, LBP_JT. Redistribute values.
28028         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
28029         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
28030         Update.
28031         * lib/unilbrk/lbrkprop1.h: Regenerated.
28032         * lib/unilbrk/lbrkprop2.h: Regenerated.
28033         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
28034         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
28035         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
28036         Likewise.
28037         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
28038         Likewise.
28039         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
28040         result.
28041         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
28042         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
28043         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
28044         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
28045         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
28046         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
28047
28048 2008-05-11  Bruno Haible  <bruno@clisp.org>
28049
28050         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
28051
28052 2008-05-11  Bruno Haible  <bruno@clisp.org>
28053
28054         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
28055         * modules/unilbrk/gen-lbrk: New file.
28056
28057 2008-05-11  Bruno Haible  <bruno@clisp.org>
28058
28059         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
28060         * m4/sha512.m4 (gl_SHA512): Likewise.
28061
28062 2008-05-11  Jim Meyering  <meyering@redhat.com>
28063
28064         New modules: crypto/sha256, crypto/sha512 (from coreutils)
28065         * modules/crypto/sha256: New file.
28066         * modules/crypto/sha512: Likewise.
28067         * lib/sha256.c: Likewise.
28068         * lib/sha256.h: Likewise.
28069         * lib/sha512.c: Likewise.
28070         * lib/sha512.h: Likewise.
28071         * lib/u64.h: Likewise.
28072         * m4/sha256.m4: Likewise.
28073         * m4/sha512.m4: Likewise.
28074         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
28075
28076 2008-05-10  Bruno Haible  <bruno@clisp.org>
28077
28078         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
28079         (Input/Output <stdio.h>): Add xprintf.
28080         (Signal handling <signal.h>): Add strsignal.
28081         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
28082         (Core language properties): Add func.
28083         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
28084         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
28085         strings.
28086         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
28087         (Input/output): New section.
28088         (File system functions): Add openat-die, stat-macros.
28089         (Networking functions): Add sockets.
28090         (Unicode string functions): Add unictype/*.
28091         (Support for building libraries and executables): Add gperf.
28092         (Support for building documentation): Add agpl-3.0.
28093         (Misc): Add nocrash.
28094
28095 2008-05-10  Bruno Haible  <bruno@clisp.org>
28096
28097         * modules/unictype/gen-ctype: New file.
28098
28099 2008-05-10  Jim Meyering  <meyering@redhat.com>
28100
28101         Make chdir-safer.c more efficient on a system with no symlinks.
28102         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
28103         also if ELOOP is zero.  Suggested by Bruno Haible.
28104
28105         Make chdir-safer.c slightly safer.
28106         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
28107         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
28108
28109         Avoid compile failure on systems without ELOOP (like mingw).
28110         * lib/chdir-safer.c (ELOOP): Define if not already defined.
28111         Reported by Bruno Haible.
28112
28113 2008-05-10  Bruno Haible  <bruno@clisp.org>
28114
28115         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
28116         (is_utf8_encoding): Use a case-insensitive comparison.
28117         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
28118         streq.
28119
28120 2008-05-10  Bruno Haible  <bruno@clisp.org>
28121
28122         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
28123         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
28124         * lib/unilbrk/ulc-common.h (iconv_string_length,
28125         iconv_string_keeping_offsets): Remove declarations.
28126         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
28127         Don't include <iconv.h>, streq.h, xsize.h.
28128         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
28129         conversion.
28130         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
28131         <iconv.h>, streq.h, xsize.h.
28132         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
28133         conversion.
28134         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
28135         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
28136         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
28137         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
28138
28139 2008-05-10  Bruno Haible  <bruno@clisp.org>
28140
28141         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
28142         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
28143
28144         * modules/unilbrk/u32-width-linebreaks-tests: New file.
28145         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
28146
28147         * modules/unilbrk/u16-width-linebreaks-tests: New file.
28148         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
28149
28150         * modules/unilbrk/u8-width-linebreaks-tests: New file.
28151         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
28152
28153         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
28154         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
28155
28156         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
28157         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
28158
28159         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
28160         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
28161
28162         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
28163         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
28164
28165 2008-05-10  Bruno Haible  <bruno@clisp.org>
28166
28167         Split up 'linebreak' module.
28168         * lib/unilbrk.h: New file, based on lib/linebreak.h.
28169         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
28170         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
28171         modifications.
28172         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
28173         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
28174         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
28175         lib/linebreak.c.
28176         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
28177         lib/linebreak.c.
28178         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
28179         lib/linebreak.c.
28180         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
28181         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
28182         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
28183         lib/linebreak.c.
28184         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
28185         lib/linebreak.c.
28186         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
28187         lib/linebreak.c.
28188         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
28189         lib/linebreak.c.
28190         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
28191         lib/linebreak.c.
28192         * modules/unilbrk/base: New file.
28193         * modules/unilbrk/tables: New file.
28194         * modules/unilbrk/u8-possible-linebreaks: New file.
28195         * modules/unilbrk/u16-possible-linebreaks: New file.
28196         * modules/unilbrk/u32-possible-linebreaks: New file.
28197         * modules/unilbrk/ulc-common: New file.
28198         * modules/unilbrk/ulc-possible-linebreaks: New file.
28199         * modules/unilbrk/u8-width-linebreaks: New file.
28200         * modules/unilbrk/u16-width-linebreaks: New file.
28201         * modules/unilbrk/u32-width-linebreaks: New file.
28202         * modules/unilbrk/ulc-width-linebreaks: New file.
28203         * lib/linebreak.h: Remove file.
28204         * lib/linebreak.c: Remove file.
28205         * m4/linebreak.m4: Remove file.
28206         * modules/linebreak: Remove file.
28207         * NEWS: Mention the changes.
28208
28209 2008-05-09  Eric Blake  <ebb9@byu.net>
28210
28211         Add xmemdup0.
28212         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
28213         implementation.
28214         * lib/xmalloc.c (xmemdup0): New C implementation.
28215
28216 2008-05-08  Bruno Haible  <bruno@clisp.org>
28217
28218         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
28219
28220 2008-05-07  Eric Blake  <ebb9@byu.net>
28221
28222         Support cross-compilation of <wctype.h>.
28223         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
28224         AC_CACHE_CHECK.
28225
28226 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
28227
28228         * build-aux/vc-list-files: Add support for bzr.
28229
28230 2008-05-03  Jim Meyering  <meyering@redhat.com>
28231
28232         avoid failed assertion with tight malloc
28233         * tests/test-getndelim2.c: Correct an off-by-one assertion.
28234
28235 2008-05-03  Simon Josefsson  <simon@josefsson.org>
28236
28237         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
28238         are needed from arpa/inet.h.
28239         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
28240         Reported by Bruno Haible.
28241
28242 2008-05-02  Jim Meyering  <meyering@redhat.com>
28243
28244         avoid compilation error on FreeBSD 6
28245         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
28246
28247 2008-05-01  Jim Meyering  <meyering@redhat.com>
28248
28249         useless-if-before-free: correct --help's exit status description
28250         * build-aux/useless-if-before-free (usage): Like grep, exit 0
28251         for one or more matches, etc.  Reported by Bruno Haible.
28252
28253         vc-list-files: make the stand-alone gnulib test work
28254         * modules/vc-list-files-tests (configure.ac):
28255         Define and AC_SUBST abs_aux_dir.
28256         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
28257         $(abs_top_srcdir) to each script and having each of them
28258         duplicate the work of setting PATH, set PATH here, using
28259         the new variable, abs_aux_dir instead.
28260         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
28261         * tests/test-vc-list-files-git.sh: Likewise.
28262         Reported by Bruno Haible.
28263
28264 2008-05-01  Bruno Haible  <bruno@clisp.org>
28265
28266         * lib/getndelim2.c (getndelim2): Fix newsize computation during
28267         reallocation. Rename 'done' to 'found_delimiter'.
28268
28269 2008-05-01  Jim Meyering  <meyering@redhat.com>
28270
28271         vc-list-files: accommodate /bin/sh like the one from Solaris 10
28272         * build-aux/vc-list-files: Use `...`, not $(...).
28273
28274 2008-04-30  Jim Meyering  <meyering@redhat.com>
28275
28276         add tests for vc-list-files
28277         * modules/vc-list-files-tests: New module.
28278         * tests/test-vc-list-files-cvs.sh: New file.
28279         * tests/test-vc-list-files-git.sh: New file.
28280
28281         avoid a warning from gcc
28282         * lib/getndelim2.c (IF_LINT): Define.
28283         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
28284
28285         vc-list-files: work properly with build-aux/cvsu, too
28286         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
28287         to all cvs-based clauses.
28288
28289         vc-list-files: work properly in the CVS+awk case, too
28290         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
28291
28292         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
28293         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
28294         take more than one file argument, so .  Add quotes, just in case $dir
28295         ever contains a shell meta-character.  Prompted by Soren Hansen in
28296         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
28297
28298 2008-04-29  Eric Blake  <ebb9@byu.net>
28299
28300         Optimize getndelim2 to use block operations when possible.
28301         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
28302         freadseek, and memchr2.
28303         * lib/getndelim2.c (getndelim2): Use them for block reads.
28304
28305 2008-04-29  Bruno Haible  <bruno@clisp.org>
28306
28307         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
28308         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28309         * modules/inet_ntop (Depends-on): Add extensions.
28310         * modules/inet_pton (Depends-on): Likewise.
28311         Reported by Simon Josefsson.
28312
28313 2008-04-29  Jim Meyering  <meyering@redhat.com>
28314
28315         When the is more than one match in a block, match all of them.
28316         * build-aux/useless-if-before-free: Iterate through each block
28317         until there are no more matches.
28318
28319         Fix broken useless-if-before-free script.
28320         * build-aux/useless-if-before-free: Fix typo: missing "?" after
28321         the expression to match cast of argument to free-like function.
28322
28323 2008-04-29  Eric Blake  <ebb9@byu.net>
28324
28325         Use new header.
28326         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
28327
28328 2008-04-29  Jim Meyering  <meyering@redhat.com>
28329
28330         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
28331         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
28332         by gnulib to exist and to declare e.g., inet_ntop.
28333         Don't include "inet_ntop.h", now removed.
28334
28335         * m4/arpa_inet_h.m4: Remove trailing blanks.
28336
28337 2008-04-29  Eric Blake  <ebb9@byu.net>
28338
28339         Silence valgrind on safe reads beyond potential array bounds.
28340         * lib/rawmemchr.valgrind: New file.
28341         * lib/strchrnul.valgrind: Likewise.
28342         * modules/rawmemchr (Files): Distribute new file.
28343         * modules/strchrnul (Files): Likewise.
28344         Suggested by Bruno Haible.
28345
28346 2008-04-29  Bruno Haible  <bruno@clisp.org>
28347
28348         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
28349         (inet_ntop, inet_pton): Change portability warning's wording.
28350         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
28351         Invoke gl_CHECK_NEXT_HEADERS.
28352         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
28353         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
28354         set ARPA_INET_H.
28355         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28356         * modules/arpa_inet (Description): No longer only for systems that
28357         lack it.
28358         (Depends-on): Add include_next.
28359         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
28360         HAVE_ARPA_INET_H.
28361
28362 2008-04-29  Jim Meyering  <meyering@redhat.com>
28363
28364         * modules/mkdir (License): Re-license as LGPLv2+.
28365
28366 2008-04-29  Bruno Haible  <bruno@clisp.org>
28367
28368         * modules/rawmemchr (Maintainer): Set to Eric.
28369         * modules/strchrnul (Maintainer): Likewise.
28370
28371 2008-04-29  Simon Josefsson  <simon@josefsson.org>
28372
28373         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
28374         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
28375
28376         * modules/arpa_inet (arpa/inet.h): Use them.
28377
28378 2008-04-28  Eric Blake  <ebb9@byu.net>
28379
28380         Test getndelim2.
28381         * modules/getndelim2-tests: New file.
28382         * tests/test-getndelim2.c: Likewise.
28383         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
28384         stream.
28385         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
28386
28387         * MODULES.html.sh: Document new module.
28388
28389 2008-04-20  Bruno Haible  <bruno@clisp.org>
28390
28391         * lib/c-stack.c (die): Use raise.
28392         * modules/c-stack (Depends-on): Add raise.
28393
28394 2008-04-28  Bruno Haible  <bruno@clisp.org>
28395
28396         Expect rpmatch to be declared.
28397         * lib/yesno.c (rpmatch): Remove declaration.
28398
28399         Declare rpmatch.
28400         * lib/stdlib.in.h (rpmatch): New declaration.
28401         * lib/rpmatch.c: Include <stdlib.h> first.
28402         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
28403         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
28404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
28405         HAVE_RPMATCH.
28406         * modules/rpmatch (Depends-on): Add stdlib, extensions.
28407         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28408         (Include): Set to <stdlib.h>.
28409         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
28410         HAVE_RPMATCH.
28411         * NEWS: Document the change.
28412
28413 2008-04-28  Bruno Haible  <bruno@clisp.org>
28414
28415         Change rpmatch to use nl_langinfo when appropriate.
28416         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
28417         (N_): New macro.
28418         (localized_pattern): New function/macro.
28419         (try): Remove match, nomatch arguments. Copy the pattern into safe
28420         memory before caching it.
28421         (rpmatch): Use localized_pattern. Add translator comments.
28422         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
28423         Suggested by Eric Blake.
28424         * modules/rpmatch (Depends-on): Add stdbool.
28425
28426 2008-04-28  Eric Blake  <ebb9@byu.net>
28427
28428         Add rawmemchr module, matching glibc.
28429         * modules/string (Makefile.am): New indicator.
28430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
28431         * lib/string.in.h (rawmemchr): Declare when appropriate.
28432         * modules/rawmemchr: New file.
28433         * m4/rawmemchr.m4: Likewise.
28434         * lib/rawmemchr.c: Likewise.
28435         * modules/rawmemchr-tests: Likewise.
28436         * tests/test-rawmemchr.c: Likewise.
28437         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
28438         module.
28439         * modules/strchrnul (Depends-on): Add rawmemchr.
28440         * lib/strchrnul.c (strchrnul): Optimize a corner case.
28441
28442         Whitespace cleanup.
28443         * tests/test-strchrnul.c: Reindent.
28444         * lib/strchrnul.c: Likewise.
28445
28446         Optimize and test strchrnul.
28447         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
28448         * modules/strchrnul-tests: New file.
28449         * tests/test-strchrnul.c: Likewise.
28450
28451         Remove intprops dependency.
28452         * modules/memchr (Depends-on): Remove intprops.
28453         * modules/memrchr (Depends-on): Likewise.
28454         * modules/memchr2 (Depends-on): Likewise.
28455         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
28456         * lib/memrchr.c (__memrchr): Likewise.
28457         * lib/memrchr2.c (memchr2): Likewise.
28458         Reported by Simon Josefsson.
28459
28460 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28461
28462         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
28463         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28464
28465 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28466
28467         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
28468
28469         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
28470
28471         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
28472
28473         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
28474         declarations.
28475         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
28476
28477         * m4/inet_pton.m4: Don't check for header files.
28478
28479         * m4/inet_ntop.m4: Don't check for header files.
28480
28481 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28482
28483         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
28484         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
28485         trigger for cygwin).
28486         Reported by Bruno Haible  <bruno@clisp.org>.
28487
28488 2008-04-28  Bruno Haible  <bruno@clisp.org>
28489
28490         * doc/posix-functions/strdup.texi: Mention mingw problem.
28491
28492 2008-04-27  Bruno Haible  <bruno@clisp.org>
28493
28494         * modules/stat-time-tests (Depends-on): Add sleep.
28495         * tests/test-stat-time.c (force_unlink): New function.
28496         (cleanup): Use it.
28497         (test_mtime): Remove the ctime related tests.
28498         (test_ctime): New function, containing the ctime related tests.
28499         (main): Call test_ctime, except on native Windows platforms.
28500
28501 2008-04-27  Bruno Haible  <bruno@clisp.org>
28502
28503         * lib/rpmatch.c (rpmatch): Add some comments.
28504         Reported by James Youngman <jay@gnu.org>.
28505
28506 2008-04-27  Bruno Haible  <bruno@clisp.org>
28507
28508         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28509         quiet NaNs.
28510
28511 2008-04-27  Bruno Haible  <bruno@clisp.org>
28512
28513         Make test-yesno.sh work on mingw.
28514         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28515         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28516         (main): Set stdin to binary mode.
28517         * modules/yesno-tests (Depends-on): Add binary-io.
28518
28519 2008-04-27  Bruno Haible  <bruno@clisp.org>
28520
28521         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28522         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28523         argument that lie outside the IEEE 854 domain.
28524         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28525         (gl_ISFINITE): Use it.
28526         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28527
28528 2008-04-27  Bruno Haible  <bruno@clisp.org>
28529
28530         Allow local renaming in config.h.
28531         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28532
28533 2008-04-27  Bruno Haible  <bruno@clisp.org>
28534
28535         * lib/memchr.c (__memchr): Change type of 'i'.
28536         * lib/memchr2.c (memchr2): Likewise.
28537
28538 2008-04-26  Eric Blake  <ebb9@byu.net>
28539         and Bruno Haible  <bruno@clisp.org>
28540
28541         Optimize and test memrchr.
28542         * modules/memrchr (Depends-on): Add intprops.
28543         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28544         * modules/memrchr-tests: New file.
28545         * tests/test-memrchr.c: New file.
28546
28547 2008-04-26  Bruno Haible  <bruno@clisp.org>
28548
28549         Add tentative support for DragonFly BSD.
28550         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28551         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28552         fp.
28553         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28554         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28555         * lib/fpurge.c (fpurge): Likewise.
28556         * lib/freadable.c (freaadable): Likewise.
28557         * lib/freadahead.c (freadahead): Likewise.
28558         * lib/freading.c (freading): Likewise.
28559         * lib/freadptr.c (freadptr): Likewise.
28560         * lib/freadseek.c (freadptrinc): Likewise.
28561         * lib/fseeko.c (fseeko): Likewise.
28562         * lib/fseterr.c (fseterr): Likewise.
28563         * lib/fwritable.c (fwritable): Likewise.
28564         * lib/fwriting.c (fwriting): Likewise.
28565
28566 2008-04-26  Bruno Haible  <bruno@clisp.org>
28567
28568         * lib/stdio-impl.h: New file.
28569         * lib/fbufmode.c: Include stdio-impl.h.
28570         (fbufmode): Use fp_, remove redundant #defines.
28571         * lib/fflush.c: Include stdio-impl.h.
28572         (clear_ungetc_buffer): Remove redundant #defines.
28573         * lib/fpurge.c: Include stdio-impl.h.
28574         (fpurge): Remove redundant #defines.
28575         * lib/freadable.c: Include stdio-impl.h.
28576         (freadable): Remove redundant #defines.
28577         * lib/freadahead.c: Include stdio-impl.h.
28578         (freadahead): Remove redundant #defines.
28579         * lib/freading.c: Include stdio-impl.h.
28580         (freading): Remove redundant #defines.
28581         * lib/freadptr.c: Include stdio-impl.h.
28582         (freadptr): Remove redundant #defines.
28583         * lib/freadseek.c: Include stdio-impl.h.
28584         (freadptrinc): Remove redundant #defines.
28585         * lib/fseeko.c: Include stdio-impl.h.
28586         (rpl_fseeko): Remove redundant #defines.
28587         * lib/fseterr.c: Include stdio-impl.h.
28588         (fseterr): Remove redundant #defines.
28589         * lib/fwritable.c: Include stdio-impl.h.
28590         (fwritable: Remove redundant #defines.
28591         * lib/fwriting.c: Include stdio-impl.h.
28592         (fwriting): Remove redundant #defines.
28593         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28594         * modules/fflush (Files): Likewise.
28595         * modules/fpurge (Files): Likewise.
28596         * modules/freadable (Files): Likewise.
28597         * modules/freadahead (Files): Likewise.
28598         * modules/freading (Files): Likewise.
28599         * modules/freadptr (Files): Likewise.
28600         * modules/freadseek (Files): Likewise.
28601         * modules/fseeko (Files): Likewise.
28602         * modules/fseterr (Files): Likewise.
28603         * modules/fwritable (Files): Likewise.
28604         * modules/fwriting (Files): Likewise.
28605
28606 2008-04-26  Bruno Haible  <bruno@clisp.org>
28607
28608         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28609         restore_seek_optimization, update_fpos_cache): New functions, extracted
28610         from rpl_fflush.
28611         (rpl_fflush): Use them.
28612         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28613         (gl_REPLACE_FFLUSH): Use it.
28614
28615 2008-04-26  Bruno Haible  <bruno@clisp.org>
28616
28617         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28618         on Solaris.
28619         * tests/test-xstrtoimax.sh: Likewise.
28620         * tests/test-xstrtoumax.sh: Likewise.
28621         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28622
28623 2008-04-26  Bruno Haible  <bruno@clisp.org>
28624
28625         * modules/memchr-tests: New file.
28626         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28627
28628 2008-04-26  Eric Blake  <ebb9@byu.net>
28629             Bruno Haible  <bruno@clisp.org>
28630
28631         * lib/memchr.c: Include intprops.h.
28632         (__memchr): Optimize parallel detection of matching bytes. Rename local
28633         variables. Add explanatory comments.
28634
28635 2008-04-26  Bruno Haible  <bruno@clisp.org>
28636
28637         Fix module 'memchr', broken since 2000-10-28.
28638         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28639
28640 2008-04-26  Bruno Haible  <bruno@clisp.org>
28641
28642         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28643         comments.
28644
28645 2008-04-25  Eric Blake  <ebb9@byu.net>
28646
28647         Use native fstatat on cygwin 1.7.0.
28648         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28649         first.
28650
28651 2008-04-23  Eric Blake  <ebb9@byu.net>
28652
28653         Improve memchr2 performance.
28654         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28655         NUL bytes.
28656         * modules/memchr2 (Depends-on): Use intprops.h.
28657
28658 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28659
28660         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28661         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28662         <blp@cs.stanford.edu>.
28663
28664 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28665
28666         * lib/arpa_inet.in.h: New file.
28667
28668         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28669         (Makefile.am): Sed in substitute header file.
28670
28671         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28672         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28673
28674         * modules/inet_ntop (configure.ac): Use
28675         gl_ARPA_INET_MODULE_INDICATOR.
28676
28677         * modules/inet_pton (configure.ac): Use
28678         gl_ARPA_INET_MODULE_INDICATOR.
28679
28680 2008-04-22  Jim Meyering  <meyering@redhat.com>
28681
28682         * modules/verify (License): Re-license as LGPLv2+.
28683
28684 2008-04-22  Simon Josefsson  <simon@josefsson.org>
28685
28686         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
28687         parameter to void* as per POSIX standard (MinGW uses char*).
28688
28689 2008-04-21  Bruno Haible  <bruno@clisp.org>
28690
28691         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
28692         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
28693         Define to replacements if REPLACE_ISWCNTRL is 1.
28694         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
28695         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
28696         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
28697         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
28698         what it fixes.
28699         * doc/posix-functions/iswalpha.texi: Likewise.
28700         * doc/posix-functions/iswblank.texi: Likewise.
28701         * doc/posix-functions/iswcntrl.texi: Likewise.
28702         * doc/posix-functions/iswdigit.texi: Likewise.
28703         * doc/posix-functions/iswgraph.texi: Likewise.
28704         * doc/posix-functions/iswlower.texi: Likewise.
28705         * doc/posix-functions/iswprint.texi: Likewise.
28706         * doc/posix-functions/iswpunct.texi: Likewise.
28707         * doc/posix-functions/iswspace.texi: Likewise.
28708         * doc/posix-functions/iswupper.texi: Likewise.
28709         * doc/posix-functions/iswxdigit.texi: Likewise.
28710         Reported by Alain Guibert.
28711
28712 2008-04-21  Bruno Haible  <bruno@clisp.org>
28713
28714         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
28715         Patch by Alain Guibert.
28716
28717 2008-04-21  Bruno Haible  <bruno@clisp.org>
28718
28719         Fix test failures on mingw.
28720         * tests/test-xstrtol.c (print_no_progname): New function.
28721         (main): Install it in error_print_progname hook.
28722         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
28723         * tests/test-xstrtoimax.sh: Likewise.
28724         * tests/test-xstrtoumax.sh: Likewise.
28725
28726 2008-04-21  Bruno Haible  <bruno@clisp.org>
28727
28728         Fix test failure on mingw.
28729         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
28730
28731 2008-04-21  Bruno Haible  <bruno@clisp.org>
28732
28733         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
28734         Actually assign a value.
28735
28736 2008-04-20  Bruno Haible  <bruno@clisp.org>
28737
28738         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
28739         take 2.
28740         * lib/canonicalize.c (canonicalize_file_name): Elide if the
28741         'canonicalize-lgpl' module is also used.
28742         * lib/canonicalize-lgpl.c: Undo last change.
28743         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
28744
28745 2008-04-20  Bruno Haible  <bruno@clisp.org>
28746
28747         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
28748         config.h. Provide _mkdir based fallback for mingw.
28749         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
28750         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
28751         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
28752         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
28753         rather than defining mkdir in config.h.
28754         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
28755         (gl_SYS_STAT_H_DEFAULTS): New macro.
28756         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
28757         HAVE_IO_H any more.
28758         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
28759         HAVE_DECL_MKDIR and HAVE_IO_H.
28760
28761 2008-04-20  Bruno Haible  <bruno@clisp.org>
28762
28763         * lib/isapipe.c: Port to native Windows platforms.
28764
28765 2008-04-20  Bruno Haible  <bruno@clisp.org>
28766
28767         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
28768
28769 2008-04-21  Eric Blake  <ebb9@byu.net>
28770
28771         Work around preprocessors that don't handle UINTMAX_MAX.
28772         * lib/memchr2.c (memchr2): Avoid embedded #if.
28773         Reported by Alain Guibert, fix suggested by Bruno Haible.
28774
28775 2008-04-21  Simon Josefsson  <simon@josefsson.org>
28776
28777         * doc/posix-functions/strftime.texi (strftime): Explain better
28778         Windows incompatibility.  Suggested by Micah Cowan
28779         <micah@cowan.name>.
28780
28781 2008-04-20  Bruno Haible  <bruno@clisp.org>
28782
28783         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
28784         unistr/u8-mblen.
28785
28786 2008-04-20  Bruno Haible  <bruno@clisp.org>
28787
28788         Fix test failure on platforms with non-GNU iconv.
28789         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
28790         (U_TO_U8): Use it, rather than u16_to_u8.
28791         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
28792         units at the end of the input string.
28793         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
28794
28795 2008-04-20  Bruno Haible  <bruno@clisp.org>
28796
28797         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
28798         when the resulting length is 0.
28799         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
28800
28801 2008-04-20  Bruno Haible  <bruno@clisp.org>
28802
28803         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
28804         works.
28805         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
28806
28807 2008-04-20  Bruno Haible  <bruno@clisp.org>
28808
28809         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
28810         * modules/tsearch-tests (configure.ac): Test for initstate function.
28811
28812 2008-04-20  Bruno Haible  <bruno@clisp.org>
28813
28814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
28815         for nlink_t if missing.
28816         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
28817
28818 2008-04-19  Bruno Haible  <bruno@clisp.org>
28819
28820         Work around snprintf bug on Linux libc5.
28821         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
28822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28823         gl_SNPRINTF_SIZE1.
28824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28825         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
28826         that test failed.
28827         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
28828         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
28829         * modules/snprintf (Files): Add m4/printf.m4.
28830         * modules/vsnprintf (Files): Likewise.
28831         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
28832         * doc/posix-functions/vsnprintf.texi: Likewise.
28833
28834 2008-04-19  Bruno Haible  <bruno@clisp.org>
28835
28836         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
28837         from 0.0058 to less than 10^-7.
28838
28839 2008-04-19  Bruno Haible  <bruno@clisp.org>
28840
28841         Fix rounding when a precision is given.
28842         * lib/vasnprintf.c (is_borderline): New function.
28843         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
28844         9...9x.
28845         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
28846         %e, %g.
28847         * tests/test-vasprintf-posix.c (test_function): Likewise.
28848         * tests/test-snprintf-posix.h (test_function): Likewise.
28849         * tests/test-sprintf-posix.h (test_function): Likewise.
28850         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
28851         * tests/test-printf-posix.h (test_function): Likewise.
28852         * tests/test-printf-posix.output: Update.
28853         Reported by John Darrington <john@darrington.wattle.id.au> via
28854         Ben Pfaff <blp@cs.stanford.edu>.
28855
28856 2008-04-18  Simon Josefsson  <simon@josefsson.org>
28857
28858         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
28859         Suggested by Bruno Haible <bruno@clisp.org>.
28860
28861 2008-04-17  Bruno Haible  <bruno@clisp.org>
28862
28863         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
28864         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
28865         implementation.
28866         Patch by Bruce Merry <bmerry@gmail.com>.
28867
28868 2008-04-17  Simon Josefsson  <simon@josefsson.org>
28869
28870         * doc/posix-functions/strftime.texi (strftime): Mention that %e
28871         doesn't work under Windows.
28872
28873 2008-04-16  Bruno Haible  <bruno@clisp.org>
28874
28875         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
28876         New macros.
28877         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
28878         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
28879         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
28880         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
28881         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
28882         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
28883         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
28884         macros.
28885         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
28886         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
28887         Northern Sotho, Uighur.
28888
28889 2008-04-16  Bruno Haible  <bruno@clisp.org>
28890
28891         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
28892         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
28893         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
28894         Reported by Daniel Bergström <daniel@octocode.com>.
28895
28896 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
28897             Bruno Haible  <bruno@clisp.org>
28898
28899         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
28900         function.
28901         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
28902         New functions, mostly extracted from gl_locale_name_default.
28903         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
28904
28905 2008-04-16  Eric Blake  <ebb9@byu.net>
28906
28907         Adjust strtod detection to catch glibc 2.7 bug.
28908         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
28909         Reported by John Gatewood Ham.
28910
28911 2008-04-16  Bruno Haible  <bruno@clisp.org>
28912
28913         Add tentative support for Linux libc5.
28914         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
28915         * lib/fpurge.c (fpurge): Likewise.
28916         * lib/freadable.c (freadable): Likewise.
28917         * lib/freadahead.c (freadahead): Likewise.
28918         * lib/freading.c (freading): Likewise.
28919         * lib/freadptr.c (freadptr): Likewise.
28920         * lib/freadseek.c (freadptrinc): Likewise.
28921         * lib/fseeko.c (rpl_fseeko): Likewise.
28922         * lib/fseterr.c (fseterr): Likewise.
28923         * lib/fwritable.c (fwritable): Likewise.
28924         * lib/fwriting.c (fwriting): Likewise.
28925         Reported by Alain Guibert <alguibert+bts@free.fr>.
28926
28927 2008-04-15  Bruno Haible  <bruno@clisp.org>
28928
28929         * modules/mathl (configure.ac): Define module indicator.
28930
28931 2008-04-15  Bruno Haible  <bruno@clisp.org>
28932
28933         * lib/logl.c (logl): Remove unused variables.
28934
28935 2008-04-15  Bruno Haible  <bruno@clisp.org>
28936
28937         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
28938         fails.
28939
28940 2008-04-15  Bruno Haible  <bruno@clisp.org>
28941
28942         * lib/trim.c (trim2): Fix argument of isspace() macro.
28943
28944 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
28945
28946         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
28947         to 0.
28948         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
28949
28950 2008-04-14  Bruno Haible  <bruno@clisp.org>
28951
28952         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
28953         AC_LANG_PROGRAM argument.
28954         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
28955         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
28956         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28957         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28958         * m4/math_h.m4 (gl_MATH_H): Likewise.
28959         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28960         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28961         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
28962         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
28963         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28964         * m4/regex.m4 (gl_REGEX): Likewise.
28965         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
28966         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
28967         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28968         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
28969         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28970         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28971         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28973
28974 2008-04-14  Jim Meyering  <meyering@redhat.com>
28975
28976         test-strtod: fix typos: s/abs/fabs/
28977         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
28978
28979 2008-04-13  Bruno Haible  <bruno@clisp.org>
28980
28981         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
28982         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
28983         module is also used and while not building the reloc-wrapper.
28984
28985 2008-04-13  Bruno Haible  <bruno@clisp.org>
28986
28987         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
28988
28989 2008-04-13  Bruno Haible  <bruno@clisp.org>
28990
28991         Fix AIX compilation failure introduced on 2008-04-02.
28992         * tests/test-frexp.c (exp): Undefine before redefining.
28993         * tests/test-frexpl.c (exp): Likewise.
28994
28995 2008-04-13  Bruno Haible  <bruno@clisp.org>
28996
28997         Work around a HP-UX stdio bug.
28998         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
28999         * tests/test-ftello.c (main): Likewise.
29000         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
29001         * doc/posix-functions/ftello.texi: Likewise.
29002
29003 2008-04-13  Bruno Haible  <bruno@clisp.org>
29004
29005         Make test-signbit pass on HP-UX/hppa.
29006         * tests/test-signbit.c (minus_zerol): New variable.
29007         (test_signbitl): Use it.
29008
29009 2008-04-13  Bruno Haible  <bruno@clisp.org>
29010
29011         Make truncl work on OSF/1 4.0.
29012         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
29013         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29014         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
29016         HAVE_DECL_TRUNCL.
29017         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
29018         HAVE_DECL_TRUNCL.
29019         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
29020
29021 2008-04-13  Bruno Haible  <bruno@clisp.org>
29022
29023         * lib/unictype.h: Remove trailing comma from enumeration definitions.
29024
29025 2008-04-13  Bruno Haible  <bruno@clisp.org>
29026
29027         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
29028         expression, so as to avoid HP-UX 11 cc compiler bug.
29029
29030 2008-04-13  Bruno Haible  <bruno@clisp.org>
29031
29032         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
29033
29034 2008-04-13  Bruno Haible  <bruno@clisp.org>
29035
29036         * lib/git-merge-changelog.c: Remove empty declaration outside of
29037         functions.
29038
29039 2008-04-13  Bruno Haible  <bruno@clisp.org>
29040
29041         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
29042
29043 2008-04-13  Bruno Haible  <bruno@clisp.org>
29044
29045         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
29046         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
29047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
29048         also if it exists but lacks definitions of the SHUT_* macros.
29049         * modules/sys_socket (Description): Update.
29050         Reported by Elbert Pol <e.pol@chello.nl>.
29051
29052 2008-04-13  Bruno Haible  <bruno@clisp.org>
29053
29054         * lib/localcharset.c (OS2): Don't redefine if already defined.
29055         Reported by Elbert Pol <e.pol@chello.nl>.
29056
29057 2008-04-13  Bruno Haible  <bruno@clisp.org>
29058
29059         * lib/binary-io.h [__EMX__]: Include <io.h>.
29060         Reported by Elbert Pol <e.pol@chello.nl>.
29061
29062 2008-04-12  Bruno Haible  <bruno@clisp.org>
29063
29064         * lib/fpucw.h: Enable the definitions also for x86_64.
29065         Needed for NetBSD/x86_64.
29066         Reported by Thomas Klausner <tk@giga.or.at>.
29067
29068 2008-04-12  Bruno Haible  <bruno@clisp.org>
29069
29070         * tests/test-strtod.c: Include isnand.h.
29071         (main): Use isnand instead of isnan.
29072         Reported by Jim Meyering.
29073
29074 2008-04-12  Bruno Haible  <bruno@clisp.org>
29075
29076         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
29077         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29078
29079 2008-04-12  Jim Meyering  <meyering@redhat.com>
29080
29081         * m4/math_h.m4 (gl_MATH_H): Fix typos.
29082
29083 2008-04-12  Bruno Haible  <bruno@clisp.org>
29084
29085         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
29086         Reported by Elbert Pol <e.pol@chello.nl>.
29087
29088 2008-04-12  Eric Blake  <ebb9@byu.net>
29089
29090         Work around Solaris 10 math.h bug.
29091         * m4/math_h.m4 (gl_MATH_H): Check for bug.
29092         (gl_MATH_H_DEFAULTS): Set up default.
29093         * modules/math (Makefile.am): Replace new indicators.
29094         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
29095         * tests/test-math.c (main): Test this.
29096         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
29097         * doc/posix-headers/math.texi (math.h): Mention bug.
29098         Reported by Nelson H. F. Beebe and Jim Meyering.
29099
29100 2008-04-11  Bruno Haible  <bruno@clisp.org>
29101
29102         Adapt to future versions of Apple GCC.
29103         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
29104         Reported by Peter O'Gorman <peter@pogma.com>.
29105
29106 2008-04-11  Bruno Haible  <bruno@clisp.org>
29107
29108         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
29109
29110 2008-04-11  Bruno Haible  <bruno@clisp.org>
29111
29112         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
29113
29114         * modules/getaddrinfo-tests (Makefile.am): Define
29115         test_getaddrinfo_LDADD.
29116
29117 2008-04-11  Bruno Haible  <bruno@clisp.org>
29118
29119         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
29120         (init): Fix syntax error.
29121         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
29122         is declared.
29123
29124 2008-04-11  Bruno Haible  <bruno@clisp.org>
29125
29126         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
29127         * modules/glob (Depends-on): Add stdbool.
29128
29129 2008-04-11  Bruno Haible  <bruno@clisp.org>
29130
29131         * lib/trim.c: Include <string.h>.
29132
29133 2008-04-11  Eric Blake  <ebb9@byu.net>
29134
29135         Avoid compile failure on OS/2.
29136         * lib/regex_internal.h (internal_function): Disable optimization
29137         on OS/2 (__EMX__), where it caused compiler error.
29138         Reported by Elbert Pol.
29139
29140 2008-04-11  Bruno Haible  <bruno@clisp.org>
29141
29142         Flush the standard error stream before aborting. Needed on mingw.
29143         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
29144         * tests/test-array_list.c (ASSERT): Likewise.
29145         * tests/test-array_oset.c (ASSERT): Likewise.
29146         * tests/test-avltree_list.c (ASSERT): Likewise.
29147         * tests/test-avltree_oset.c (ASSERT): Likewise.
29148         * tests/test-avltreehash_list.c (ASSERT): Likewise.
29149         * tests/test-binary-io.c (ASSERT): Likewise.
29150         * tests/test-byteswap.c (ASSERT): Likewise.
29151         * tests/test-c-ctype.c (ASSERT): Likewise.
29152         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
29153         * tests/test-c-strcasestr.c (ASSERT): Likewise.
29154         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
29155         * tests/test-c-strstr.c (ASSERT): Likewise.
29156         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
29157         * tests/test-canonicalize.c (ASSERT): Likewise.
29158         * tests/test-carray_list.c (ASSERT): Likewise.
29159         * tests/test-ceilf1.c (ASSERT): Likewise.
29160         * tests/test-ceilf2.c (ASSERT): Likewise.
29161         * tests/test-ceill.c (ASSERT): Likewise.
29162         * tests/test-count-one-bits.c (ASSERT): Likewise.
29163         * tests/test-fbufmode.c (ASSERT): Likewise.
29164         * tests/test-fflush2.c (ASSERT): Likewise.
29165         * tests/test-floorf1.c (ASSERT): Likewise.
29166         * tests/test-floorf2.c (ASSERT): Likewise.
29167         * tests/test-floorl.c (ASSERT): Likewise.
29168         * tests/test-fopen.c (ASSERT): Likewise.
29169         * tests/test-fpending.c (ASSERT): Likewise.
29170         * tests/test-fprintf-posix.c (ASSERT): Likewise.
29171         * tests/test-fpurge.c (ASSERT): Likewise.
29172         * tests/test-freadable.c (ASSERT): Likewise.
29173         * tests/test-freadahead.c (ASSERT): Likewise.
29174         * tests/test-freading.c (ASSERT): Likewise.
29175         * tests/test-freadptr.c (ASSERT): Likewise.
29176         * tests/test-freadptr2.c (ASSERT): Likewise.
29177         * tests/test-freadseek.c (ASSERT): Likewise.
29178         * tests/test-freopen.c (ASSERT): Likewise.
29179         * tests/test-frexp.c (ASSERT): Likewise.
29180         * tests/test-frexpl.c (ASSERT): Likewise.
29181         * tests/test-fseek.c (ASSERT): Likewise.
29182         * tests/test-fseeko.c (ASSERT): Likewise.
29183         * tests/test-fstrcmp.c (ASSERT): Likewise.
29184         * tests/test-ftell.c (ASSERT): Likewise.
29185         * tests/test-ftello.c (ASSERT): Likewise.
29186         * tests/test-func.c (ASSERT): Likewise.
29187         * tests/test-fwritable.c (ASSERT): Likewise.
29188         * tests/test-fwriting.c (ASSERT): Likewise.
29189         * tests/test-getdelim.c (ASSERT): Likewise.
29190         * tests/test-getline.c (ASSERT): Likewise.
29191         * tests/test-i-ring.c (ASSERT): Likewise.
29192         * tests/test-iconv-utf.c (ASSERT): Likewise.
29193         * tests/test-iconv.c (ASSERT): Likewise.
29194         * tests/test-isfinite.c (ASSERT): Likewise.
29195         * tests/test-isnand.c (ASSERT): Likewise.
29196         * tests/test-isnanf.c (ASSERT): Likewise.
29197         * tests/test-isnanl.h (ASSERT): Likewise.
29198         * tests/test-ldexpl.c (ASSERT): Likewise.
29199         * tests/test-linked_list.c (ASSERT): Likewise.
29200         * tests/test-linkedhash_list.c (ASSERT): Likewise.
29201         * tests/test-localename.c (ASSERT): Likewise.
29202         * tests/test-lseek.c (ASSERT): Likewise.
29203         * tests/test-mbscasecmp.c (ASSERT): Likewise.
29204         * tests/test-mbscasestr1.c (ASSERT): Likewise.
29205         * tests/test-mbscasestr2.c (ASSERT): Likewise.
29206         * tests/test-mbscasestr3.c (ASSERT): Likewise.
29207         * tests/test-mbscasestr4.c (ASSERT): Likewise.
29208         * tests/test-mbschr.c (ASSERT): Likewise.
29209         * tests/test-mbscspn.c (ASSERT): Likewise.
29210         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
29211         * tests/test-mbspbrk.c (ASSERT): Likewise.
29212         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
29213         * tests/test-mbsrchr.c (ASSERT): Likewise.
29214         * tests/test-mbsspn.c (ASSERT): Likewise.
29215         * tests/test-mbsstr1.c (ASSERT): Likewise.
29216         * tests/test-mbsstr2.c (ASSERT): Likewise.
29217         * tests/test-mbsstr3.c (ASSERT): Likewise.
29218         * tests/test-memchr2.c (ASSERT): Likewise.
29219         * tests/test-memmem.c (ASSERT): Likewise.
29220         * tests/test-open.c (ASSERT): Likewise.
29221         * tests/test-printf-frexp.c (ASSERT): Likewise.
29222         * tests/test-printf-frexpl.c (ASSERT): Likewise.
29223         * tests/test-printf-posix.c (ASSERT): Likewise.
29224         * tests/test-quotearg.c (ASSERT): Likewise.
29225         * tests/test-rbtree_list.c (ASSERT): Likewise.
29226         * tests/test-rbtree_oset.c (ASSERT): Likewise.
29227         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
29228         * tests/test-round1.c (ASSERT): Likewise.
29229         * tests/test-roundf1.c (ASSERT): Likewise.
29230         * tests/test-roundl.c (ASSERT): Likewise.
29231         * tests/test-signbit.c (ASSERT): Likewise.
29232         * tests/test-sleep.c (ASSERT): Likewise.
29233         * tests/test-snprintf-posix.c (ASSERT): Likewise.
29234         * tests/test-snprintf.c (ASSERT): Likewise.
29235         * tests/test-sprintf-posix.c (ASSERT): Likewise.
29236         * tests/test-stat-time.c (ASSERT): Likewise.
29237         * tests/test-strcasestr.c (ASSERT): Likewise.
29238         * tests/test-strerror.c (ASSERT): Likewise.
29239         * tests/test-striconv.c (ASSERT): Likewise.
29240         * tests/test-striconveh.c (ASSERT): Likewise.
29241         * tests/test-striconveha.c (ASSERT): Likewise.
29242         * tests/test-strsignal.c (ASSERT): Likewise.
29243         * tests/test-strstr.c (ASSERT): Likewise.
29244         * tests/test-strtod.c (ASSERT): Likewise.
29245         * tests/test-trunc1.c (ASSERT): Likewise.
29246         * tests/test-trunc2.c (ASSERT): Likewise.
29247         * tests/test-truncf1.c (ASSERT): Likewise.
29248         * tests/test-truncf2.c (ASSERT): Likewise.
29249         * tests/test-truncl.c (ASSERT): Likewise.
29250         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
29251         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
29252         * tests/test-vasnprintf.c (ASSERT): Likewise.
29253         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
29254         * tests/test-vasprintf.c (ASSERT): Likewise.
29255         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
29256         * tests/test-vprintf-posix.c (ASSERT): Likewise.
29257         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
29258         * tests/test-vsnprintf.c (ASSERT): Likewise.
29259         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
29260         * tests/test-wcwidth.c (ASSERT): Likewise.
29261         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
29262         * tests/test-xprintf-posix.c (ASSERT): Likewise.
29263         * tests/test-xvasprintf.c (ASSERT): Likewise.
29264         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
29265         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
29266         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
29267         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
29268         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
29269         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
29270         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
29271         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
29272         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
29273         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
29274         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
29275         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
29276         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
29277         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
29278         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
29279         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
29280         * tests/unictype/test-block_list.c (ASSERT): Likewise.
29281         * tests/unictype/test-block_of.c (ASSERT): Likewise.
29282         * tests/unictype/test-block_test.c (ASSERT): Likewise.
29283         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
29284         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
29285         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
29286         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
29287         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
29288         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
29289         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
29290         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
29291         * tests/unictype/test-combining.c (ASSERT): Likewise.
29292         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
29293         * tests/unictype/test-digit.c (ASSERT): Likewise.
29294         * tests/unictype/test-mirror.c (ASSERT): Likewise.
29295         * tests/unictype/test-numeric.c (ASSERT): Likewise.
29296         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
29297         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
29298         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
29299         * tests/unictype/test-scripts.c (ASSERT): Likewise.
29300         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
29301         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
29302         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
29303         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
29304         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
29305         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
29306         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
29307         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
29308         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
29309         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
29310         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
29311         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
29312         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
29313         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
29314         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
29315         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
29316         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
29317         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
29318         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
29319         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
29320         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
29321         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
29322         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
29323         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
29324         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
29325         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
29326         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
29327         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
29328         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
29329         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
29330         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
29331         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
29332         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
29333         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
29334         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
29335         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
29336         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
29337         Reported by Eric Blake.
29338
29339 2008-04-11  Bruno Haible  <bruno@clisp.org>
29340
29341         * lib/wchar.in.h: Tweak comment.
29342
29343 2008-04-11  Bruno Haible  <bruno@clisp.org>
29344
29345         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
29346         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
29347         gl_COMMON.
29348         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
29349
29350 2008-04-11  Bruno Haible  <bruno@clisp.org>
29351
29352         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
29353
29354 2008-04-11  Simon Josefsson  <simon@josefsson.org>
29355
29356         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
29357         of attempting to use non-existing /dev/*random.  Based on patch
29358         from Adam Strzelecki <ono@java.pl> in
29359         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
29360
29361 2008-04-08  Bruno Haible  <bruno@clisp.org>
29362
29363         Add tentative support for emx+gcc.
29364         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
29365         * lib/fpurge.c (fpurge): Likewise.
29366         * lib/freadable.c (freadable): Likewise.
29367         * lib/freadahead.c (freadahead): Likewise.
29368         * lib/freading.c (freading): Likewise.
29369         * lib/freadptr.c (freadptr): Likewise.
29370         * lib/freadseek.c (freadptrinc): Likewise.
29371         * lib/fseeko.c (rpl_fseeko): Likewise.
29372         * lib/fseterr.c (fseterr): Likewise.
29373         * lib/fwritable.c (fwritable): Likewise.
29374         * lib/fwriting.c (fwriting): Likewise.
29375         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
29376
29377 2008-04-09  Eric Blake  <ebb9@byu.net>
29378
29379         Avoid some autoconf warnings.
29380         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
29381         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
29382         * m4/afs.m4 (gl_AFS): Likewise.
29383         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
29384         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
29385         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29386         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
29387         (gl_INTEGER_TYPE_SUFFIX): Likewise.
29388         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
29389         (AC_CHECK_DECLS_ONCE): Likewise.
29390         Rename file...
29391         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
29392         gnulib-tool requires autoconf 2.59 or better.
29393         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
29394
29395 2008-04-08  Eric Blake  <ebb9@byu.net>
29396
29397         Use 'git describe --match' if present (added in git 1.5.5).
29398         * build-aux/git-version-gen: Limit result to tags that match 'v*'
29399         if possible.
29400
29401 2008-04-08  Bruno Haible  <bruno@clisp.org>
29402
29403         Add tentative support for OpenServer.
29404         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
29405         _ptr, _cnt.
29406         * lib/fpurge.c (fpurge): Likewise.
29407         * lib/freadable.c (freadable): Likewise.
29408         * lib/freadahead.c (freadahead): Likewise.
29409         * lib/freading.c (freading): Likewise.
29410         * lib/freadptr.c (freadptr): Likewise.
29411         * lib/freadseek.c (freadptrinc): Likewise.
29412         * lib/fseeko.c (rpl_fseeko): Likewise.
29413         * lib/fseterr.c (fseterr): Likewise.
29414         * lib/fwritable.c (fwritable): Likewise.
29415         * lib/fwriting.c (fwriting): Likewise.
29416         Reported by Roger Cornelius <rac@tenzing.org> and
29417         Brian K. White <brian@aljex.com>.
29418
29419 2008-04-06  Jim Meyering  <meyering@redhat.com>
29420
29421         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
29422
29423 2008-04-06  Bruno Haible  <bruno@clisp.org>
29424
29425         Avoid possible error with non-ASCII bytes in UTF-8 locales.
29426         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
29427         * tests/test-printf-posix.sh: Likewise.
29428         * tests/test-vfprintf-posix.sh: Likewise.
29429         * tests/test-vprintf-posix.sh: Likewise.
29430         * tests/test-xprintf-posix.sh: Likewise.
29431
29432 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29433
29434         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
29435         hide error from 'ls', needed on OS/2.
29436         Report by Elbert Pol <elbert.pol@gmail.com>.
29437
29438 2008-04-04  Eric Blake  <ebb9@byu.net>
29439
29440         Make test-fseeko.c failures meaningful.
29441         * tests/test-fseeko.c: Print line number on failure.
29442         * tests/test-fseek.c: Likewise.
29443         Reported by Nelson H. F. Beebe.
29444
29445         Improve strtod bug detection check.
29446         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
29447         required for Solaris 10.
29448         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
29449
29450 2008-04-04  Bruno Haible  <bruno@clisp.org>
29451
29452         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
29453         by m4/setenv.m4.
29454
29455 2008-04-03  Eric Blake  <ebb9@byu.net>
29456
29457         Ensure sane .version contents.
29458         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
29459         version string.
29460         * build-aux/git-version-gen: Improve documentation.
29461
29462         Make GNU make output nicer.
29463         * top/GNUmakefile [!_have-Makefile]: Add dependency on
29464         MAKECMDGOALS to enforce message for all command line targets.  Set
29465         srcdir for use in maint.mk.
29466
29467         Another maintainer tweak.
29468         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
29469         a target that regenerates version.
29470
29471 2008-04-03  Jim Meyering  <meyering@redhat.com>
29472
29473         vc-list-files: don't cause coreutils "make po-check" failure
29474         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
29475
29476 2008-04-03  Eric Blake  <ebb9@byu.net>
29477
29478         Allow VPATH usage of vc-list-files.
29479         * build-aux/vc-list-files (scriptversion): Add timestamp.
29480         (options): Add --help, --version, -C.
29481         (CVS): Support installed cvsu.
29482
29483 2008-04-02  Bruno Haible  <bruno@clisp.org>
29484
29485         Avoid some "statement with no effect" warnings from gcc.
29486         * tests/test-wctype.c (main): Explicitly ignore unused values.
29487         Reported by Jim Meyering.
29488
29489 2008-04-02  Jim Meyering  <meyering@redhat.com>
29490
29491         Avoid some warnings from "gcc -Wshadow".
29492         * tests/test-frexp.c (exp): Define to a different identifier.
29493         * tests/test-frexpl.c (exp): Likewise.
29494
29495 2008-04-03  Jim Meyering  <meyering@redhat.com>
29496
29497         bootstrap: remove dangling *.[ch] symlinks from lib
29498         * build-aux/bootstrap [dangling symlink removal]: Move find's
29499         -depth option to precede all others, to avoid a warning.
29500         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29501
29502 2008-04-02  Bruno Haible  <bruno@clisp.org>
29503
29504         Avoid some warnings from "gcc -Wshadow".
29505         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29506         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29507         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29508         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29509         Reported by Jim Meyering.
29510
29511 2008-04-01  Bruno Haible  <bruno@clisp.org>
29512
29513         Fix test to work on IRIX 6.5 with cc.
29514         * tests/test-math.c (numeric_equal): New function.
29515         (main): Use it.
29516
29517 2008-04-01  Bruno Haible  <bruno@clisp.org>
29518
29519         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29520
29521 2008-04-01  Bruno Haible  <bruno@clisp.org>
29522
29523         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29524         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29525         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29526         (Depends-on): Remove math.
29527
29528         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29529         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29530         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29531         (Depends-on): Remove math.
29532
29533         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29534         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29535         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29536         (Depends-on): Remove math.
29537         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29538         (Depends-on): Remove math.
29539
29540         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29541         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29542         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29543         (Depends-on): Remove math.
29544         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29545         (Depends-on): Remove math.
29546
29547         * tests/test-round1.c: Include nan.h.
29548         (main): Use NaNd instead of NAN.
29549         * modules/round-tests (Files): Add tests/nan.h.
29550
29551         * tests/test-trunc1.c: Include nan.h.
29552         (main): Use NaNd instead of NAN.
29553         * modules/trunc-tests (Files): Add tests/nan.h.
29554
29555         * tests/test-roundf1.c: Include nan.h.
29556         (main): Use NaNf instead of NAN.
29557         * modules/roundf-tests (Files): Add tests/nan.h.
29558
29559         * tests/test-truncf1.c: Include nan.h.
29560         (main): Use NaNf instead of NAN.
29561         * modules/truncf-tests (Files): Add tests/nan.h.
29562
29563         * tests/test-ceilf1.c: Include nan.h.
29564         (main): Use NaNf instead of NAN.
29565         * modules/ceilf-tests (Files): Add tests/nan.h.
29566
29567         * tests/test-floorf1.c: Include nan.h.
29568         (main): Use NaNf instead of NAN.
29569         * modules/floorf-tests (Files): Add tests/nan.h.
29570
29571         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29572         (main): Use NaNf instead of NAN.
29573         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29574
29575         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29576         (main): Use NaNd instead of NAN.
29577         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29578
29579         * tests/test-frexp.c: Include nan.h.
29580         (main): Use NaNd instead of NAN.
29581         * modules/frexp-tests (Files): Add tests/nan.h.
29582
29583         * lib/isnan.c: Don't include <math.h>.
29584         (FUNC): Don't use NAN macro.
29585         * modules/isnand-nolibm (Depends-on): Remove math.
29586         * modules/isnanf-nolibm (Depends-on): Remove math.
29587         * modules/isnanl (Depends-on): Remove math.
29588         * modules/isnanl-nolibm (Depends-on): Remove math.
29589
29590         * tests/nan.h: New file.
29591
29592 2008-04-01  Eric Blake  <ebb9@byu.net>
29593
29594         Fix typos.
29595         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29596         values to be the right type.
29597
29598         For now, cater to gnulib strtod inaccuracies.
29599         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29600         fractional results.  While not as nice from a QoI perspective, it
29601         is a quicker patch than correctly implementing decimal to binary
29602         rounding.
29603
29604 2008-03-31  Eric Blake  <ebb9@byu.net>
29605
29606         Guarantee a definition of NAN.
29607         * lib/math.in.h (NAN): Define if missing.
29608         * tests/test-math.c (main): Test it.
29609         * doc/posix-headers/math.texi (math.h): Document this.
29610         * lib/isnan.c (rpl_isnand): Use it.
29611         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29612         * tests/test-floorf1.c (NaN): Likewise.
29613         * tests/test-frexp.c (NaN): Likewise.
29614         * tests/test-isnand.c (NaN): Likewise.
29615         * tests/test-isnanf.c (NaN): Likewise.
29616         * tests/test-round1.c (NaN): Likewise.
29617         * tests/test-roundf1.c (NaN): Likewise.
29618         * tests/test-snprintf-posix.h (NaN): Likewise.
29619         * tests/test-sprintf-posix.h (NaN): Likewise.
29620         * tests/test-trunc1.c (NaN): Likewise.
29621         * tests/test-truncf1.c (NaN): Likewise.
29622         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29623         * tests/test-vasprintf-posix.c (NaN): Likewise.
29624         * modules/isnand-nolibm (Depends-on): Add math.
29625         * modules/isnanf-nolibm (Depends-on): Likewise.
29626         * modules/isnanl (Depends-on): Likewise.
29627         * modules/isnanl-nolibm (Depends-on): Likewise.
29628         * modules/snprintf-posix-tests (Depends-on): Likewise.
29629         * modules/sprintf-posix-tests (Depends-on): Likewise.
29630         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29631         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29632         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29633         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29634
29635 2008-03-31  Bruno Haible  <bruno@clisp.org>
29636
29637         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29638         * doc/posix-functions/strtod.texi: Likewise.
29639
29640 2008-03-31  Bruno Haible  <bruno@clisp.org>
29641
29642         * tests/test-strtod.c (main): Don't use C99 syntax.
29643
29644 2008-03-31  Bruno Haible  <bruno@clisp.org>
29645
29646         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29647         Reported by Eric Blake.
29648
29649 2008-03-31  Jim Meyering  <meyering@redhat.com>
29650
29651         Don't compare actual signbit return values.
29652         * tests/test-strtod.c (main): Rather, compare only their
29653         zero/non-zero nature.
29654
29655 2008-03-31  Eric Blake  <ebb9@byu.net>
29656
29657         More strtod documentation.
29658         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29659         failures as distinct bugs.
29660
29661 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29662
29663         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29664         Problem reported by Erik Benada in
29665         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29666
29667 2008-03-30  Bruno Haible  <bruno@clisp.org>
29668
29669         * tests/test-strtod.c: Add comments about which assertion fails on which
29670         platform.
29671         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29672
29673 2008-03-30  Eric Blake  <ebb9@byu.net>
29674
29675         Test signbit behavior on zeros.
29676         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29677         (test_signbitd, test_signbitl): Likewise.
29678
29679         More strtod touchups.
29680         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
29681         sign of negative underflow, for now.  Use .5, not .1.
29682         * doc/posix-functions/strtod.texi (strtod): Mention these
29683         limitations.
29684         Reported by Jim Meyering.
29685
29686 2008-03-30  Bruno Haible  <bruno@clisp.org>
29687
29688         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
29689         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
29690
29691 2008-03-30  Bruno Haible  <bruno@clisp.org>
29692
29693         Avoid failure when attempting to return empty iconv results on some
29694         platforms.
29695         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
29696         allocation, don't report ENOMEM when the resulting string is empty.
29697
29698 2008-03-30  Bruno Haible  <bruno@clisp.org>
29699
29700         Fix buffer overrun.
29701         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
29702         Don't consider the width for tmp_length. Check count against tmp_length
29703         before doing the padding. Ensure enough allocation during padding.
29704
29705 2008-03-30  Eric Blake  <ebb9@byu.net>
29706
29707         strtod touchups.
29708         * lib/strtod.c (strtod): Avoid compiler warnings.
29709         Reported by Jim Meyering.
29710
29711 2008-03-30  Bruno Haible  <bruno@clisp.org>
29712
29713         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29714         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
29715         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
29716         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
29717         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
29718         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
29719         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
29720         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
29721
29722         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
29723         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
29724         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
29725         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
29726         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
29727         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
29728         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
29729         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
29730
29731         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
29732         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
29733         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
29734         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
29735         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
29736         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
29737         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
29738         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
29739
29740         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
29741         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
29742
29743         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
29744         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
29745
29746         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
29747         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
29748
29749         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
29750         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
29751         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
29752
29753         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
29754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
29755         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
29756
29757         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
29758         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
29759         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
29760
29761         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
29762         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
29763         * modules/vasprintf (Depends-on): Add EOVERFLOW.
29764
29765         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
29766         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
29767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
29768         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
29769         (Depends-on): Add EOVERFLOW.
29770         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
29771         (Depends-on): Add EOVERFLOW.
29772         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29773         (Depends-on): Add EOVERFLOW.
29774         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29775         (Depends-on): Add EOVERFLOW.
29776         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29777         (Depends-on): Add EOVERFLOW.
29778         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29779         (Depends-on): Add EOVERFLOW.
29780         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29781         (Depends-on): Add EOVERFLOW.
29782         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29783         (Depends-on): Add EOVERFLOW.
29784
29785         * lib/sprintf.c (EOVERFLOW): Remove fallback.
29786         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
29787         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
29788
29789         * lib/snprintf.c (EOVERFLOW): Remove fallback.
29790         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
29791         * modules/snprintf (Depends-on): Add EOVERFLOW.
29792
29793         * lib/poll.c (EOVERFLOW): Remove fallback.
29794         * modules/poll (Depends-on): Add EOVERFLOW.
29795
29796         * lib/getugroups.c (EOVERFLOW): Remove fallback.
29797         * modules/getugroups (Depends-on): Add EOVERFLOW.
29798
29799         * lib/getdelim.c (EOVERFLOW): Remove fallback.
29800         * modules/getdelim (Depends-on): Add EOVERFLOW.
29801
29802         * lib/ftell.c (EOVERFLOW): Remove fallback.
29803         * modules/ftell (Depends-on): Add EOVERFLOW.
29804
29805         * lib/fprintf.c (EOVERFLOW): Remove fallback.
29806         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
29807         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
29808
29809         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
29810
29811         * modules/EOVERFLOW-tests: New file.
29812         * tests/test-EOVERFLOW.c: New file.
29813
29814         * modules/EOVERFLOW: New file.
29815         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
29816
29817 2008-03-30  Bruno Haible  <bruno@clisp.org>
29818
29819         Fix bug introduced on 2007-06-10.
29820         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
29821         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
29822
29823 2008-03-30  Bruno Haible  <bruno@clisp.org>
29824
29825         Improve freadseek's efficiency after ungetc.
29826         * lib/freadseek.c: Include freadahead.h.
29827         (freadptrinc): New function, extracted from freadseek.
29828         (freadseek): Use it in a loop. Use freadahead to determine the number
29829         of loop iterations.
29830         * modules/freadseek (Depends-on): Add freadahead.
29831         (configure.ac): Require AC_C_INLINE.
29832
29833 2008-03-30  Bruno Haible  <bruno@clisp.org>
29834
29835         * lib/freadseek.c (freadseek): Don't ignore the return value of
29836         freadptr.
29837
29838 2008-03-29  Eric Blake  <ebb9@byu.net>
29839
29840         Add hex float support.
29841         * modules/strtod (Depends-on): Add c-ctype.
29842         (Link): Mention POW_LIB.
29843         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
29844         whitespace between 'e' and exponent.
29845         * tests/test-strtod.c (main): Enable hex float tests.
29846         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
29847         now provides.
29848
29849         Document various strtod bugs, with some fixes.
29850         * doc/posix-functions/strtod.texi (strtod): Document bugs with
29851         "-0x", "inf", "nan", and hex constants.
29852         * doc/posix-functions/atof.texi (atof): Likewise.
29853         * modules/stdlib (Makefile.am): Support strtod.
29854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29855         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
29856         detect additional strtod bugs.
29857         * lib/stdlib.in.h (rpl_strtod): Add declarations.
29858         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
29859         bool where appropriate.  Parse 'inf' and 'nan'.
29860         * tests/test-strtod.c: New file.
29861         * modules/strtod (Depends-on): Add stdbool, stdlib.
29862         (configure.ac): Turn on module indicator.
29863         * modules/strtod-tests: New module.
29864
29865 2008-03-29  Eric Blake  <ebb9@byu.net>
29866
29867         Fix ftell on mingw.
29868         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
29869         * modules/ftell-tests (Depends-on): Add binary-io.
29870         * modules/ftello-tests (Depends-on): Likewise.
29871         * tests/test-ftell.c (main): Enhance test to cover behavior after
29872         ungetc.  Enforce binary mode.
29873         * tests/test-ftello.c (main): Likewise.
29874
29875         Pass test-freadseek on cygwin.
29876         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
29877         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
29878         ungetc buffer.
29879
29880         * tests/test-fflush2.c (main): Fix typo.
29881
29882 2008-03-29  Bruno Haible  <bruno@clisp.org>
29883
29884         * tests/test-fflush2.c (main): Temporarily disable the contents of
29885         this test.
29886         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
29887         Reported by Eric Blake.
29888
29889 2008-03-28  Simon Josefsson  <simon@josefsson.org>
29890
29891         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
29892         (GC_SHA224_DIGEST_SIZE): Add.
29893
29894         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
29895         (gc_hash_digest_length): Likewise.
29896         (gc_hash_buffer): Likewise.
29897
29898 2008-03-25  Bruno Haible  <bruno@clisp.org>
29899
29900         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
29901         detail which gettext release to use.
29902         Reported by Simon Josefsson.
29903
29904 2008-03-26  Jim Meyering  <meyering@redhat.com>
29905
29906         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
29907         * modules/gnumakefile (clean-GNUmakefile): Also, use
29908         test ... && ... || : syntax rather than if-then ... fi.
29909
29910         gnumakefile: Don't double-quote-expand $(VPATH) value.
29911         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
29912
29913 2008-03-24  Eric Blake  <ebb9@byu.net>
29914
29915         Alter GNUmakefile to install into top directory.
29916         * modules/maintainer-makefile: Split, and add dependency...
29917         * modules/gnumakefile: to this new module.
29918         * build-aux/GNUmakefile: Move...
29919         * top/GNUmakefile: ...here.
29920         * build-aux/maint.mk: Move...
29921         * top/maint.mk: ...here.
29922         * MODULES.html.sh (Support for maintaining...): Document new
29923         module.
29924
29925 2008-03-23  Bruno Haible  <bruno@clisp.org>
29926
29927         * gnulib-tool: New options --vc-files, --no-vc-files.
29928         (func_usage): Document them.
29929         (vc_files): New variable.
29930         (func_import): Consider vc_files.
29931         (func_create_testdir): Set vc_files to empty.
29932         Suggested by Jim Meyering and Karl Berry.
29933
29934 2008-03-23  Bruno Haible  <bruno@clisp.org>
29935
29936         Fix regex compilation error on HP-UX 11.
29937         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
29938         * modules/regex (Files): Add m4/mbstate_t.m4.
29939         Reported by Ton Voon <ton.voon@altinity.com>.
29940
29941 2008-03-23  Bruno Haible  <bruno@clisp.org>
29942
29943         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
29944
29945 2008-03-23  Eric Blake  <ebb9@byu.net>
29946             Bruno Haible  <bruno@clisp.org>
29947
29948         Install files from top/ in the destination directory.
29949         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29950         augmentation also for the files from top/.
29951         (func_import, func_create_testdir): Rewrite file names:
29952         top/filename -> filename.
29953
29954 2008-03-23  Bruno Haible  <bruno@clisp.org>
29955
29956         Tweak "gnulib --version" output.
29957         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
29958
29959 2008-03-23  Bruno Haible  <bruno@clisp.org>
29960
29961         Tweak "gnulib --version" output.
29962         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
29963         rather than contents of ChangeLog, when possible.
29964
29965 2008-03-21  Eric Blake  <ebb9@byu.net>
29966
29967         More --version tweaks.
29968         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
29969         date of last ChangeLog entry.
29970
29971 2008-03-21  Jim Meyering  <meyering@redhat.com>
29972
29973         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
29974
29975 2008-03-20  Eric Blake  <ebb9@byu.net>
29976
29977         VPATH fix.
29978         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
29979
29980 2008-03-20  Simon Josefsson  <simon@josefsson.org>
29981
29982         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
29983         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
29984
29985 2008-03-20  Eric Blake  <ebb9@byu.net>
29986
29987         Sync GNUmakefile with coreutils.
29988         * build-aux/GNUmakefile (have-Makefile): Rename...
29989         (_have-Makefile): ...to this, for namespace consideration.
29990         (GNUmakefile.cfg): Include, if present.
29991         (_autoreconf): Define a default.
29992         (_is-dist-target): New rule for rebuilds to pick up intra-release
29993         version.
29994         (maint-cfg.mk): Rename...
29995         (cfg.mk): ...to this.
29996
29997 2008-03-18  Jim Meyering  <meyering@redhat.com>
29998
29999         New script and module: mktempd
30000         * MODULES.html.sh (maint+release support): Add mktempd.
30001         * build-aux/mktempd: New file.
30002         * modules/mktempd: New file.
30003
30004 2008-03-15  Jim Meyering  <meyering@redhat.com>
30005
30006         Undo last change.
30007         * lib/sha1.c, lib/md5.c: 63 != ~63.
30008         Reported by Andreas Schwab.
30009
30010         sha1.c, md5.c: Hoist a redundant expression.
30011         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
30012         "ctx->buflen" only once, before calling *_process_block.
30013         * lib/md5.c (md5_process_bytes): Likewise.
30014
30015 2008-03-14  Eric Blake  <ebb9@byu.net>
30016
30017         Bump copyright year in files generated by gnulib-tool.
30018         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
30019         gnulib-tool, rather than hard-coding it.
30020
30021         Fix 'gnulib-tool --version' output to work with git.
30022         * gnulib-tool (func_gnulib_dir): New function, extracted from...
30023         (startup): ...here.
30024         (func_version): Use it to invoke git-version-gen, rather than
30025         relying on CVS keyword expansion.  Modernize wording.
30026         (cvsdatestamp, last_checkin_date, version): Kill unused
30027         variables.
30028
30029 2008-03-12  Jim Meyering  <meyering@redhat.com>
30030
30031         Recognize optional cast of the argument to free.
30032         * build-aux/useless-if-before-free: Update regexps.
30033
30034         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
30035
30036 2008-03-11  Bruno Haible  <bruno@clisp.org>
30037
30038         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
30039         by a single package.
30040         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
30041         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
30042         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
30043         Reported by Sam Steingold <sds@gnu.org>.
30044
30045 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30046
30047         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
30048         repositories.
30049
30050 2008-03-11  Bruno Haible  <bruno@clisp.org>
30051
30052         Avoid conflicts between local macro definitions.
30053         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30054         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
30055
30056 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
30057             Bruno Haible  <bruno@clisp.org>
30058
30059         Make va_copy work with some version of xlc on AIX 5.1.
30060         * lib/stdarg.in.h: New file.
30061         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
30062         On AIX, use a <stdarg.h> file substitute.
30063         * modules/stdarg (Files): Add lib/stdarg.in.h.
30064         (Depends-on): Add include_next.
30065         (Makefile.am): Build a stdarg.h substitute if requested.
30066         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
30067
30068 2008-03-10  Bruno Haible  <bruno@clisp.org>
30069
30070         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
30071         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30072         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30073
30074 2008-03-10  Bruno Haible  <bruno@clisp.org>
30075
30076         * modules/stdlib (Depends-on): Add include_next, remove
30077         absolute-header.
30078
30079 2008-03-09  Bruno Haible  <bruno@clisp.org>
30080
30081         * lib/freadahead.h (freadahead): Document more precisely.
30082         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
30083         the sum of both buffer sizes.
30084         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
30085         * NEWS: Document the change.
30086
30087 2008-03-09  Bruno Haible  <bruno@clisp.org>
30088
30089         Extend freadptr to return also the buffer size.
30090         * lib/freadptr.h (freadptr): Add sizep argument.
30091         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
30092         (freadptr): Add sizep argument. Determine buffer size like freadahead
30093         does.
30094         * tests/test-freadptr.c: Don't include freadahead.h.
30095         (main): Adapt for new calling convention of freadptr.
30096         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
30097         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
30098         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
30099         tests/test-freadptr2.sh.
30100         (Depends): Remove freadahead.
30101         (TESTS): Add test-freadptr2.sh.
30102         (check_PROGRAMS): Add test-freadptr2.
30103
30104 2008-03-09  Bruno Haible  <bruno@clisp.org>
30105
30106         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
30107         Report and solution by Simon Josefsson.
30108
30109 2008-03-06  Bruno Haible  <bruno@clisp.org>
30110
30111         Make fflush after ungetc work on BSD platforms.
30112         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
30113         * tests/test-fflush2.c: New file.
30114         * tests/test-fflush2.sh: New file.
30115         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
30116         tests/test-fflush2.c.
30117         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
30118         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
30119
30120 2008-03-06  Eric Blake  <ebb9@byu.net>
30121
30122         Likewise for ftello.
30123         * modules/ftello (Dependencies): Add extensions.
30124         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
30125
30126 2008-03-06  Bruno Haible  <bruno@clisp.org>
30127
30128         * modules/fseeko (Dependencies): Add extensions.
30129         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
30130         Needed on glibc systems.
30131
30132 2008-03-06  Bruno Haible  <bruno@clisp.org>
30133
30134         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
30135         email address.
30136         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30137
30138 2008-03-06  Bruno Haible  <bruno@clisp.org>
30139
30140         * users.txt: Add libgnupdf.
30141
30142 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30143
30144         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
30145         (Header File Substitutes, Function Substitutes,
30146         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
30147         (Build robot for gnulib): Fix typo.
30148
30149 2008-03-06  Bruno Haible  <bruno@clisp.org>
30150
30151         * doc/gnulib-tool.texi (VCS Issues): Small updates.
30152         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30153
30154 2008-03-06  Bruno Haible  <bruno@clisp.org>
30155
30156         * doc/func.texi: New file, extracted from doc/gnulib.texi.
30157         * doc/gnulib.texi: Include it.
30158
30159 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30160
30161         * modules/func (License): Change license to unlimited; there was
30162         no LGPL parts in the module anyway.
30163
30164 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30165
30166         * modules/__func__: Renamed to modules/func.
30167         * modules/__func__-tests: Renamed to modules/func-tests.
30168         * tests/test-__func__.c: Renamed to tests/test-func.c.
30169         * m4/__func__.m4: Renamed to m4/func.m4.
30170         * doc/gnulib.texi (__func__): Section renamed to func.
30171         Suggested by Eric Blake <ebb9@byu.net>.
30172
30173 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30174
30175         * doc/gnulib.texi (__func__): Use C99 terminology when talking
30176         about __func__.  Make example self-contained.  Suggested by Eric
30177         Blake <ebb9@byu.net>.
30178
30179         * tests/test-__func__.c (main): Avoid extraneous () around __func.
30180         Suggested by Eric Blake <ebb9@byu.net>.
30181
30182 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30183
30184         * modules/__func__: New file.
30185         * modules/__func__-tests: New file.
30186         * tests/test-__func__.c: New file.
30187         * m4/__func__.m4: New file.
30188         * doc/gnulib.texi (__func__): Document __func__ module.
30189
30190 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30191
30192         * modules/byteswap (License): Re-license as LGPLv2+.
30193
30194 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30195
30196         * doc/Makefile: Add pdf target.
30197
30198 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30199
30200         * modules/inline (License): Use 'unlimited', since there are only
30201         *.m4 files in this module.
30202
30203 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30204             Bruno Haible  <bruno@clisp.org>
30205
30206         Add support for HP C 7.1 on OpenVMS 8.3.
30207         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
30208
30209 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30210
30211         Update VMS specifics.
30212         * lib/getopt.c [VMS]: Remove include of unixlib.h.
30213
30214 2008-03-02  Jim Meyering  <meyering@redhat.com>
30215
30216         Remove the last dependency on the "free" module.
30217         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
30218         Reported by Bob Proulx.
30219
30220         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
30221
30222         Remove useless "if" tests before free.  Deprecate "free" module.
30223         * doc/posix-functions/free.texi: Mention that this
30224         module is no longer useful.
30225         * modules/free (Notice): Say this module is obsolete.
30226         * modules/readutmp (Depends-on): Remove free.
30227         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
30228         * lib/putenv.c (putenv): Likewise.
30229         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
30230         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
30231         * tests/test-c-strcasestr.c (main): Likewise.
30232         * tests/test-c-strstr.c (main): Likewise.
30233         * tests/test-mbscasestr1.c (main): Likewise.
30234         * tests/test-mbscasestr2.c (main): Likewise.
30235         * tests/test-mbsstr1.c (main): Likewise.
30236         * tests/test-mbsstr2.c (main): Likewise.
30237         * tests/test-memmem.c (main): Likewise.
30238         * tests/test-strcasestr.c (main): Likewise.
30239         * tests/test-striconv.c (main): Likewise.
30240         * tests/test-striconveh.c (main): Likewise.
30241         * tests/test-striconveha.c (main): Likewise.
30242         * tests/test-strstr.c (main): Likewise.
30243
30244         * build-aux/git-version-gen: Adjust a comment and the Usage string.
30245
30246         bootstrap: sync from coreutils again
30247         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
30248
30249 2008-03-01  Jim Meyering  <meyering@redhat.com>
30250
30251         bootstrap: sync from coreutils
30252         * build-aux/bootstrap (update_po_files): Copy a .po file into place
30253         also when the target doesn't exist.
30254
30255 2008-03-01  Eric Blake  <ebb9@byu.net>
30256
30257         Fix bugs in last patch.
30258         * lib/memchr2.c (memchr2): Fix typo.
30259         * tests/test-memchr2.c: Test previous bug, and don't use GNU
30260         extension.
30261         Reported by Bruce Korb.
30262
30263         New module 'memchr2'.
30264         * modules/memchr2: New file.
30265         * modules/memchr2-tests: Likewise.
30266         * lib/memchr2.h: Likewise.
30267         * lib/memchr2.c: Likewise, based on memchr.c.
30268         * tests/test-memchr2.c: New test.
30269         * MODULES.html.sh (String handling): Add memchr2.
30270
30271 2008-02-29  Bruno Haible  <bruno@clisp.org>
30272
30273         * modules/freadseek-tests: New file.
30274         * tests/test-freadseek.sh: New file.
30275         * tests/test-freadseek.c: New file.
30276
30277         New module 'freadseek'.
30278         * modules/freadseek: New file.
30279         * lib/freadseek.h: New file.
30280         * lib/freadseek.c: New file.
30281         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
30282
30283 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30284
30285         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
30286         wydawca.
30287
30288         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
30289         program_invocation_name and program_invocation_short_name are
30290         present.
30291
30292 2008-02-28  Bruno Haible  <bruno@clisp.org>
30293
30294         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
30295         * tests/test-freadptr.sh: Also test non-seekable stdin.
30296
30297 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
30298
30299         * build-aux/bootstrap (source_base, m4_base)
30300         (doc_base, tests_base): New variables.
30301         (gnulib_tool_options): Do not hardcode base directories, use
30302         the above variables instead.
30303
30304 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
30305
30306         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
30307
30308 2008-02-28  Bruno Haible  <bruno@clisp.org>
30309
30310         * modules/freadptr-tests: New file.
30311         * tests/test-freadptr.sh: New file.
30312         * tests/test-freadptr.c: New file.
30313
30314         New module 'freadptr'.
30315         * modules/freadptr: New file.
30316         * lib/freadptr.h: New file.
30317         * lib/freadptr.c: New file.
30318         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
30319
30320 2008-02-26  Karl Berry  <karl@freefriends.org>
30321
30322         Sync from Libtool:
30323         * libltdl/argz.c (argz_add, argz_count): New functions.
30324         * libltdl/argz.in.h: Declare them.
30325         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
30326
30327 2008-02-22  Bruno Haible  <bruno@clisp.org>
30328
30329         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
30330         is a pointer type.  Needed for HP-UX 10.
30331         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
30332         * doc/posix-functions/gmtime_r.texi: Likewise.
30333         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30334
30335 2008-02-24  Bruno Haible  <bruno@clisp.org>
30336
30337         * modules/environ-tests: New file.
30338         * tests/test-environ.c: New file.
30339
30340         New module 'environ'.
30341         * modules/environ: New file.
30342         * lib/unistd.in.h (environ): New declaration.
30343         * m4/environ.m4: New file.
30344         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
30345         after use.
30346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
30347         HAVE_DECL_ENVIRON.
30348         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
30349         HAVE_DECL_ENVIRON.
30350         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
30351         wrong claim that 'environ' is missing on some systems.
30352         * modules/execute (Depends-on): Add environ.
30353         * lib/execute.c (environ): Remove fallback declaration.
30354         * modules/pipe (Depends-on): Add environ.
30355         * lib/pipe.c (environ): Remove fallback declaration.
30356         * modules/setenv (Depends-on): Add environ.
30357         * lib/setenv.c (environ): Remove fallback declaration.
30358         * modules/unsetenv (Depends-on): Add environ.
30359         * lib/unsetenv.c (environ): Remove fallback declaration.
30360         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
30361         m4/environ.m4.
30362         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
30363         (gl_PREREQ_UNSETENV): Likewise.
30364
30365 2008-02-24  Bruno Haible  <bruno@clisp.org>
30366
30367         * doc/posix-functions/environ.texi: Document the MacOS X problem.
30368
30369 2008-02-20  Bob Proulx  <bob@proulx.com>
30370
30371         Enable use of older two part flavor 'git describe'.
30372         * build-aux/git-version-gen: If using the older two part flavor of
30373         git version then recreate the third part now present in the
30374         newer three part flavor of git describe.
30375
30376 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
30377
30378         * lib/fts.c (fts_build): Typo correction to comment.
30379
30380 2008-02-17  Bruno Haible  <bruno@clisp.org>
30381
30382         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
30383         generating no-op conflicts.
30384
30385 2008-02-17  Bruno Haible  <bruno@clisp.org>
30386
30387         Speed up by 10%.
30388         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
30389         result_entries, rather than an index-based loop.
30390
30391 2008-02-17  Bruno Haible  <bruno@clisp.org>
30392
30393         Speed up by 25%.
30394         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
30395         'hashcode_cached'.
30396         (entry_create): New function.
30397         (entry_hashcode): Use the cached hashcode if possible.
30398         (read_changelog_file, try_split_merged_entry): Use entry_create.
30399
30400 2008-02-17  Bruno Haible  <bruno@clisp.org>
30401
30402         Speed up from O(n^2) to O(n) for long ChangeLog files.
30403         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
30404         (read_changelog_file): Change implementation of entries_reversed list
30405         to rbtreehash.
30406         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
30407
30408 2008-02-17  Bruno Haible  <bruno@clisp.org>
30409
30410         New option --split-merged-entry.
30411         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
30412         (find_paragraph_end, try_split_merged_entry): New functions.
30413         (long_options): Add option --split-merged-entry.
30414         (usage): Document option --split-merged-entry.
30415         (main): Implement option --split-merged-entry.
30416         Reported by Eric Blake.
30417
30418 2008-02-17  Bruno Haible  <bruno@clisp.org>
30419
30420         * lib/git-merge-changelog.c: Include c-strstr.h.
30421         (main): Support the "git pull --rebase" situation.
30422         * modules/git-merge-changelog (Depends-on): Add c-strstr.
30423         Reported by Eric Blake.
30424
30425 2008-02-16  Eric Blake  <ebb9@byu.net>
30426
30427         Avoid doubling \ in common case of "c-maybe" quoting style.
30428         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
30429         eliding outer quotes.
30430         * lib/quotearg.h: Document this.
30431         * tests/test-quotearg.c (result_strings, inputs, results_g)
30432         (flag_results, locale_results): Test it by adding a new string to
30433         each test group.
30434         (compare_strings): Test new string.
30435
30436 2008-02-13  Eric Blake  <ebb9@byu.net>
30437
30438         Avoid trigraph quoting in default output.
30439         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
30440         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
30441         unless explicitly requested.
30442         * tests/test-quotearg.c (flag_results, main): Add additional tests.
30443
30444 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
30445
30446         Don't rely on signed integer overflowing to negative value.
30447         * lib/getugroups.c (getugroups): Include <limits.h>.
30448         Instead, compare against INT_MAX, and increment only if the test passes.
30449
30450 2008-02-13  Jim Meyering  <meyering@redhat.com>
30451         and Eric Blake  <ebb9@byu.net>
30452
30453         Avoid shadowing warning and compile errors on Linux.
30454         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
30455         forwarding macros on Linux.
30456         (dcgettext): Define a stub, for Linux.
30457         (results_g, main): Avoid warnings.
30458
30459 2008-02-12  Eric Blake  <ebb9@byu.net>
30460
30461         Silence warning in last patch.
30462         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
30463
30464         Quotearg part 4: add tests, fix c-maybe colon quoting.
30465         * lib/quotearg.h: Improve documentation.
30466         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
30467         escapes when adding outer quotes.  When quoting trigraphs, use
30468         valid C notation.  When quoting NUL, omit extra characters if next
30469         character is not digit.  Alter prototype.
30470         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
30471         callers.
30472         * modules/quotearg-tests: New module.
30473         * tests/test-quotearg.c: New test.
30474
30475 2008-02-07  Eric Blake  <ebb9@byu.net>
30476
30477         Quotearg part 3: add flag to control outer quote elision.
30478         * lib/quotearg.h (c_maybe_quoting_style): New style.
30479         (enum quoting_flags): Better documentation of flags.
30480         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
30481         c-maybe style.
30482         (quotearg_buffer_restyled): Handle new flag to elide outer
30483         quotes.
30484
30485         Quotearg part 2: add flag that can control NUL elision.
30486         * lib/quotearg.h (set_quoting_flags): New prototype.
30487         * lib/quotearg.c (struct quoting_options): Add flag field.
30488         (set_quoting_flags): New function.
30489         (quotearg_buffer_restyled): Add flags parameter.
30490         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30491         (quotearg_n_options): Set the flag, since length cannot be
30492         returned.
30493         (quoting_options_from_style): Default flags correctly.
30494
30495         Quotearg part 1: more wrappers, restore quotearg_char state.
30496         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30497         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30498         (quotearg_colon_mem): New wrappers.
30499         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30500         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30501         functions.
30502         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30503         (quotearg_colon_mem): New functions.
30504
30505 2008-02-11  Bruno Haible  <bruno@clisp.org>
30506
30507         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30508         library in the current directory: it does not work with parallel make.
30509         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30510
30511 2008-02-11  Bruno Haible  <bruno@clisp.org>
30512
30513         * .gitattributes: New file.
30514
30515 2008-02-11  Jim Meyering  <meyering@redhat.com>
30516
30517         useless-if-before-free: Fix reversed exit values.
30518         * build-aux/useless-if-before-free: Use correct values
30519         for EXIT_MATCH and EXIT_NO_MATCH.
30520
30521         * build-aux/useless-if-before-free: Close stdout carefully.
30522
30523 2008-02-10  Bruno Haible  <bruno@clisp.org>
30524
30525         New module 'git-merge-changelog'.
30526         * modules/git-merge-changelog: New file.
30527         * lib/git-merge-changelog.c: New file.
30528
30529 2008-02-10  Jim Meyering  <meyering@redhat.com>
30530
30531         useless-if-before-free: New option: --list (-l).
30532
30533         useless-if-before-free: Don't exit immediately upon open failure.
30534         * build-aux/useless-if-before-free: Exit 2 for errors.
30535         Upon failure to open a file, don't exit immediately.
30536         Rather, just warn and continue with any remaining files.
30537
30538 2008-02-10  Bruno Haible  <bruno@clisp.org>
30539
30540         New abstract list operation 'node_set_value'.
30541         * lib/gl_list.h (gl_list_node_set_value): New function.
30542         (struct gl_list_implementation): New field node_set_value.
30543         * lib/gl_list.c (gl_list_node_set_value): New function.
30544         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30545         (gl_array_list_implementation): Update.
30546         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30547         (gl_carray_list_implementation): Update.
30548         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30549         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30550         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30551         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30552         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30553         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30554         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30555         Update.
30556         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30557         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30558         (gl_sublist_list_implementation): Update.
30559
30560 2008-02-10  Bruno Haible  <bruno@clisp.org>
30561
30562         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30563         Needed when ELEMENT is #defined to 'some_type *'.
30564
30565 2008-02-10  Jim Meyering  <meyering@redhat.com>
30566
30567         New script and module: useless-if-before-free
30568         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30569         * build-aux/useless-if-before-free: New file.
30570         * modules/useless-if-before-free: New file.
30571
30572         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30573
30574         xstrtol_error: Fix typo.
30575         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30576         s/exit_failure/exit_status/.
30577
30578 2008-02-09  Jim Meyering  <meyering@redhat.com>
30579
30580         New script and module: gitlog-to-changelog
30581         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30582         * modules/gitlog-to-changelog: New file.
30583         * build-aux/gitlog-to-changelog: New file.
30584
30585 2008-02-08  Jim Meyering  <meyering@redhat.com>
30586
30587         Avoid two "parameter unused" warnings.
30588         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30589         Mark "st" as used.
30590
30591         Use "git COMMAND", not "git-COMMAND".
30592         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30593         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30594         * build-aux/git-version-gen: Use "git status", not "git-status".
30595
30596 2008-02-07  Bruno Haible  <bruno@clisp.org>
30597
30598         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30599         Avoids a crash on Windows Vista.
30600         Reported by Adam Strzelecki <ono@java.pl> via
30601         Simon Josefsson <simon@josefsson.org>.
30602
30603 2008-02-06  Bruno Haible  <bruno@clisp.org>
30604
30605         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30606         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30607         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30609         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30611         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30612         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30613         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30614         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30615         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30616         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30620         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30621         left-adjust flag.
30622         * tests/test-snprintf-posix.h (test_function): Likewise.
30623         * tests/test-sprintf-posix.h (test_function): Likewise.
30624         * tests/test-vasprintf-posix.c (test_function): Likewise.
30625         * doc/posix-functions/fprintf.texi: Update.
30626         * doc/posix-functions/printf.texi: Update.
30627         * doc/posix-functions/snprintf.texi: Update.
30628         * doc/posix-functions/sprintf.texi: Update.
30629         * doc/posix-functions/vfprintf.texi: Update.
30630         * doc/posix-functions/vprintf.texi: Update.
30631         * doc/posix-functions/vsnprintf.texi: Update.
30632         * doc/posix-functions/vsprintf.texi: Update.
30633         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30634
30635 2008-02-06  Bruno Haible  <bruno@clisp.org>
30636
30637         Fix bug introduced on 2008-01-26.
30638         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30639
30640 2008-02-06  Bruno Haible  <bruno@clisp.org>
30641
30642         Fix bug introduced on 2007-06-10.
30643         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30644         !NEED_PRINTF_FLAG_ZERO.
30645
30646 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30647
30648         getloadavg: use libperfstat on AIX5
30649         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30650
30651 2008-02-03  Bruno Haible  <bruno@clisp.org>
30652
30653         * lib/diffseq.h: Add comments about required #includes.
30654         Reported by Michael Biggs <gnulib@doubleplum.net>.
30655
30656 2008-02-01  Bruno Haible  <bruno@clisp.org>
30657
30658         * users.txt: Add gnuit.
30659
30660 2008-01-31  Bruno Haible  <bruno@clisp.org>
30661
30662         * lib/md4.c (set_uint32): Mark as inline.
30663         * lib/md5.c (set_uint32): Likewise.
30664         * lib/sha1.c (set_uint32): Likewise.
30665         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30666         * m4/md5.m4 (gl_MD5): Likewise.
30667         * m4/sha1.m4 (gl_SHA1): Likewise.
30668
30669 2008-01-31  Jim Meyering  <meyering@redhat.com>
30670
30671         Use "sizeof VAR", rather than a literal "4".
30672         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30673         * lib/md4.c (md4_read_ctx): Likewise.
30674         * lib/sha1.c (sha1_read_ctx): Likewise.
30675
30676 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30677
30678         * tests/test-sha1.c: New file, based on test-md5.c.
30679
30680         * modules/crypto/sha1-tests: New file.
30681
30682 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30683
30684         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
30685
30686 2008-01-31  Jim Meyering  <meyering@redhat.com>
30687
30688         Prefer "sizeof v" over the equivalent "4".
30689         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
30690         * lib/md5.c (set_uint32): Likewise.
30691         * lib/sha1.c (set_uint32): Likewise.
30692
30693 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30694
30695         * lib/sha1.c (set_uint32): Mark function as static.
30696
30697 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30698
30699         md2: clarify comments to say that alignment is not required.
30700         * lib/md2.h: Remove warning about alignment in comment.
30701         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
30702         never been required.
30703
30704 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30705
30706         md4: adapt alignment constraint fix from sha1.
30707         * lib/md4.c (set_uint32): New function, from sha1.c
30708         (md4_read_ctx): Use it.
30709         (md4_finish_ctx): Doc fix.
30710         * lib/md4.h: Doc fix.
30711
30712 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30713
30714         md5: adapt alignment constraint fix from sha1.
30715         * lib/md5.c (set_uint32): New function, from sha1.c
30716         (md5_read_ctx): Use it.
30717         (md5_finish_ctx): Doc fix.
30718         * lib/md5.h: Doc fix.
30719
30720 2008-01-30  Peter Palfrader  <weasel@debian.org>
30721
30722         sha1: remove the result buffer alignment constraint
30723         * lib/sha1.c (set_uint32): New function.
30724         (sha1_read_ctx): Rewrite to remove the result buffer alignment
30725         constraint.
30726         (sha1_finish_ctx): Remove comment warning about alignment constraint.
30727         * lib/sha1.h: Likewise.
30728
30729 2008-01-30  Andreas Schwab  <schwab@suse.de>
30730             Bruno Haible  <bruno@clisp.org>
30731
30732         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
30733         correct definition of LDBL_MIN_EXP.
30734
30735 2008-01-30  Karl Berry  <karl@gnu.org>
30736
30737         * config/srclist-update: try to preserve x bit on updates.
30738         * config/srclistvars.sh: update for karl.
30739
30740 2008-01-29  Jim Meyering  <meyering@redhat.com>
30741
30742         vasnprintf.c: Avoid warning about unused label
30743         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
30744         "overflow" label definition and associated code with the
30745         same cpp condition that guards the sole use of that label.
30746
30747 2008-01-26  Bruno Haible  <bruno@clisp.org>
30748
30749         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
30750         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
30751         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
30752         * lib/isnanl-nolibm.h (isnanl): Likewise.
30753         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30754
30755 2008-01-26  Bruno Haible  <bruno@clisp.org>
30756
30757         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
30758         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
30759
30760 2008-01-26  Bruno Haible  <bruno@clisp.org>
30761
30762         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
30763         GCC >= 4.0 built-in.
30764         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
30765
30766 2008-01-26  Bruno Haible  <bruno@clisp.org>
30767
30768         Rename isnan, applicable to 'double' only, to isnand.
30769         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
30770         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
30771         (configure.ac): Update.
30772         (Include): Replace "isnan.h" with "isnand.h".
30773         * m4/isnand.m4: Renamed from m4/isnan.m4.
30774         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
30775         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
30776         instead of isnan.c.
30777         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
30778         instead of HAVE_ISNAN_IN_LIBC.
30779         (isnand): Renamed from isnan.
30780         * lib/isnand.c: New file.
30781         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
30782         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
30783         (Makefile.am): Update.
30784         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
30785         Include isnand.h instead of isnan.h.
30786         (main): Test isnand instead of isnan.
30787         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
30788         isnan-nolibm.
30789         * modules/frexp (Depends-on): Likewise.
30790         * modules/frexp-tests (Depends-on): Likewise.
30791         * modules/frexp-nolibm (Depends-on): Likewise.
30792         * modules/frexp-nolibm-tests (Depends-on): Likewise.
30793         * modules/isfinite (Depends-on): Likewise.
30794         * modules/round-tests (Depends-on): Likewise.
30795         * modules/signbit (Depends-on): Likewise.
30796         * modules/signbit-tests (Depends-on): Likewise.
30797         * modules/snprintf-posix (Depends-on): Likewise.
30798         * modules/sprintf-posix (Depends-on): Likewise.
30799         * modules/trunc-tests (Depends-on): Likewise.
30800         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30801         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30802         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30803         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30804         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30805         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30806         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30807         * modules/vasnprintf-posix (Depends-on): Likewise.
30808         * modules/vasprintf-posix (Depends-on): Likewise.
30809         * modules/vfprintf-posix (Depends-on): Likewise.
30810         * modules/vsnprintf-posix (Depends-on): Likewise.
30811         * modules/vsprintf-posix (Depends-on): Likewise.
30812         * lib/frexp.c: Include isnand.h instead of isnan.h.
30813         (ISNAN): Set to isnand instead of isnan.
30814         * lib/isfinite.c: Include isnand.h instead of isnan.h.
30815         (gl_isfinited): Use isnand instead of isnan.
30816         * lib/signbitd.c: Include isnand.h instead of isnan.h.
30817         (gl_signbitd): Use isnand instead of isnan.
30818         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
30819         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
30820         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
30821         (main): Use isnand instead of isnan.
30822         * tests/test-round1.c: Include isnand.h.
30823         (main): Use isnand instead of isnan.
30824         * tests/test-round2.c: Include isnand.h instead of isnan.h.
30825         (ISNAN): Set to isnand instead of isnan.
30826         * tests/test-trunc1.c: Include isnand.h.
30827         (main): Use isnand instead of isnan.
30828         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
30829         (equal): Use isnand instead of isnan.
30830         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
30831         isnand-nolibm.
30832         * NEWS: Mention the change.
30833
30834 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
30835             Bruno Haible  <bruno@clisp.org>
30836
30837         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
30838         the GCC builtins for signbits are present and set
30839         REPLACE_SIGNBIT_USING_GCC if so.
30840         * lib/math.in.h (signbit): Define using GCC builtins if
30841         REPLACE_SIGNBIT_USING_GCC is set.
30842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
30843         REPLACE_SIGNBIT_USING_GCC.
30844         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
30845
30846 2008-01-25  Jim Meyering  <meyering@redhat.com>
30847
30848         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
30849         * lib/poll.c: Include <config.h>, not "config.h".
30850         * tests/test-getaddrinfo.c: Likewise.
30851
30852 2008-01-25  Simon Josefsson  <simon@josefsson.org>
30853
30854         * modules/sockets-tests: New file.
30855
30856 2008-01-24  Simon Josefsson  <simon@josefsson.org>
30857
30858         * modules/sockets: New module, can be used to call WSA_Startup and
30859         WSA_Cleanup when needed.
30860
30861         * lib/sockets.h, lib/sockets.c: New files.
30862
30863         * m4/sockets.m4: New file.
30864
30865         * tests/test-sockets.c: New file.
30866
30867 2008-01-19  Bruno Haible  <bruno@clisp.org>
30868
30869         * doc/posix-headers: Renamed from doc/headers.
30870         * doc/posix-functions: Renamed from doc/functions.
30871         * doc/gnulib.texi: Update.
30872
30873 2008-01-19  Bruno Haible  <bruno@clisp.org>
30874
30875         * doc/glibc-functions/strcasestr.texi: Include contents of
30876         doc/functions/strcasestr.texi, fixing the list of platforms.
30877         * doc/functions/strcasestr.texi: Remove file.
30878
30879 2008-01-19  Bruno Haible  <bruno@clisp.org>
30880
30881         * doc/glibc-functions/memmem.texi: Include contents of
30882         doc/functions/memmem.texi.
30883         * doc/functions/memmem.texi: Remove file.
30884
30885 2008-01-18  Bruno Haible  <bruno@clisp.org>
30886
30887         * doc/glibc-functions/*.texi: New files.
30888         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
30889         to use the new files.
30890
30891 2008-01-17  Bruno Haible  <bruno@clisp.org>
30892
30893         * tests/test-gethostname.c (main): Fix printf statement.
30894
30895 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30896
30897         * modules/gethostname-tests: New file.
30898
30899         * tests/test-gethostname.c: New file.
30900
30901 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30902
30903         * lib/gethostname.c: Include string.h unconditionally, strncpy is
30904         used by the UNAME case.  Reported by Bruno Haible
30905         <bruno@clisp.org>.
30906
30907 2008-01-17  Eric Blake  <ebb9@byu.net>
30908
30909         Convert c-strcasestr to be more efficient.
30910         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
30911         (Depends-on): Add c-strcase, remove malloca, strnlen.
30912         * tests/test-c-strcasestr.c (main): Enhance test.
30913         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
30914
30915 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
30916
30917         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
30918         Use it in creating po/Makevars.
30919
30920 2008-01-15  Simon Josefsson  <simon@josefsson.org>
30921
30922         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
30923         Applications that requires it should initialize libgcrypt
30924         manually.
30925
30926 2008-01-16  Simon Josefsson  <simon@josefsson.org>
30927
30928         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
30929
30930 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30931
30932         Fix problem with getdate on mingw32 reported by Simon Josefsson
30933         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
30934         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
30935         tzname", when deciding whether to declare tzname.
30936         * lib/strftime.c (tzname): Likewise.
30937
30938 2008-01-15  Bruno Haible  <bruno@clisp.org>
30939
30940         Work around a MacOS X 10.5 bug in frexpl().
30941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
30942         * doc/functions/frexpl.texi: Document the bug.
30943         Reported by Elias Pipping <pipping@gentoo.org>.
30944
30945 2008-01-14  Eric Blake  <ebb9@byu.net>
30946
30947         Touch up previous patch.
30948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
30949         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
30950
30951         Convert strcasestr module to use Two-Way algorithm.
30952         * modules/strcasestr-simple: New module, based on the old
30953         strcasestr, but with Two-Way rather than KMP.
30954         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
30955         * lib/string.in.h (rpl_strcasestr): Declare.
30956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
30957         performance.
30958         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
30959         * modules/string (Makefile.am): Support strcasestr.
30960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30961         * modules/strcasestr-tests (Depends-on): Check for alarm.
30962         * tests/test-strcasestr.c: Augment test.
30963         * lib/str-two-way.h: Clean up stray macro.
30964         * NEWS: Document new module.
30965         * MODULES.html.sh (string handling): Likewise.
30966         * doc/functions/strcasestr.texi: New file.
30967         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
30968         here, since it is not a POSIX function.
30969
30970 2008-01-14  Colin Watson  <cjwatson@debian.org>
30971             Bruno Haible  <bruno@clisp.org>
30972
30973         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
30974         works fine; if not, set REPLACE_STRSIGNAL.
30975         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
30976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30977         REPLACE_STRSIGNAL.
30978         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
30979         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
30980         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
30981
30982 2008-01-14  Bruno Haible  <bruno@clisp.org>
30983
30984         * modules/strsignal (Include): Change to <string.h>.
30985
30986 2008-01-14  Colin Watson  <cjwatson@debian.org>
30987
30988         * modules/argp (Notice): Add a notice recommending to change
30989         XGETTEXT_OPTIONS.
30990         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
30991
30992 2008-01-13  Colin Watson  <cjwatson@debian.org>
30993
30994         * modules/strsignal-tests: New file.
30995         * tests/test-strsignal.c: New file.
30996
30997         * lib/strsignal.c: New file, from glibc with modifications.
30998         * lib/siglist.h: New file, from glibc with modifications.
30999         * lib/string.in.h (strsignal): New declaration.
31000         * m4/strsignal.m4: New file.
31001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31002         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
31003         * modules/strsignal: New file.
31004         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
31005         HAVE_DECL_STRSIGNAL.
31006
31007 2008-01-13  Bruno Haible  <bruno@clisp.org>
31008
31009         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
31010         locale encoding is not ASCII. Needed for OpenBSD 4.0.
31011         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31012         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31013
31014 2008-01-13  Bruno Haible  <bruno@clisp.org>
31015
31016         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
31017         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
31018         * lib/argp.h (__attribute__): Likewise.
31019         * lib/c-stack.c (__attribute__): Likewise.
31020         * lib/error.h (__attribute__): Likewise.
31021         * lib/fts.c (__attribute__): Likewise.
31022         * lib/openat.h (__attribute__): Likewise.
31023         * lib/stdio.in.h (__attribute__): Likewise.
31024         * lib/string.in.h (__attribute__): Likewise.
31025         * lib/utimens.c (__attribute__): Likewise.
31026         * lib/vasnprintf.h (__attribute__): Likewise.
31027         * lib/xalloc.h (__attribute__): Likewise.
31028         * lib/xprintf.h (__attribute__): Likewise.
31029         * lib/xstrtol.h (__attribute__): Likewise.
31030         * lib/xvasprintf.h (__attribute__): Likewise.
31031
31032 2008-01-12  Bruno Haible  <bruno@clisp.org>
31033
31034         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
31035         * doc/glibc-headers/a.out.texi: New file.
31036         * doc/glibc-headers/aliases.texi: New file.
31037         * doc/glibc-headers/alloca.texi: New file.
31038         * doc/glibc-headers/ar.texi: New file.
31039         * doc/glibc-headers/argp.texi: New file.
31040         * doc/glibc-headers/argz.texi: New file.
31041         * doc/glibc-headers/byteswap.texi: New file.
31042         * doc/glibc-headers/crypt.texi: New file.
31043         * doc/glibc-headers/endian.texi: New file.
31044         * doc/glibc-headers/envz.texi: New file.
31045         * doc/glibc-headers/err.texi: New file.
31046         * doc/glibc-headers/error.texi: New file.
31047         * doc/glibc-headers/execinfo.texi: New file.
31048         * doc/glibc-headers/fpu_control.texi: New file.
31049         * doc/glibc-headers/fstab.texi: New file.
31050         * doc/glibc-headers/fts.texi: New file.
31051         * doc/glibc-headers/getopt.texi: New file.
31052         * doc/glibc-headers/ieee754.texi: New file.
31053         * doc/glibc-headers/ifaddrs.texi: New file.
31054         * doc/glibc-headers/libintl.texi: New file.
31055         * doc/glibc-headers/mcheck.texi: New file.
31056         * doc/glibc-headers/mntent.texi: New file.
31057         * doc/glibc-headers/obstack.texi: New file.
31058         * doc/glibc-headers/paths.texi: New file.
31059         * doc/glibc-headers/printf.texi: New file.
31060         * doc/glibc-headers/pty.texi: New file.
31061         * doc/glibc-headers/resolv.texi: New file.
31062         * doc/glibc-headers/shadow.texi: New file.
31063         * doc/glibc-headers/sysexits.texi: New file.
31064         * doc/glibc-headers/ttyent.texi: New file.
31065
31066 2008-01-12  Jim Meyering  <meyering@redhat.com>
31067
31068         announce-gen: emit Gnulib's git-based version string.
31069         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
31070         New option --gnulib-version=V, where V is expected to be
31071         the output of running git describe in the gnulib directory.
31072         (get_tool_versions): Request feedback on xdelta.  I suspect it's
31073         not useful, and plan to stop publishing an xdelta file with each
31074         coreutils release.
31075
31076         * build-aux/announce-gen: Also check for lzma-compressed files.
31077
31078 2008-01-11  Bruno Haible  <bruno@clisp.org>
31079
31080         * tests/test-memmem.c (main): Increase maximum allowed time.
31081         * tests/test-strstr.c (main): Likewise.
31082
31083 2008-01-11  Bruno Haible  <bruno@clisp.org>
31084
31085         * doc/functions/memmem.texi: Add more precisions about platforms.
31086         * doc/functions/strstr.texi: Likewise.
31087
31088 2008-01-10  Eric Blake  <ebb9@byu.net>
31089
31090         * m4/strstr.m4: Delete cruft from copy-n-paste.
31091         Reported by Bruno Haible.
31092
31093 2008-01-10  Bruno Haible  <bruno@clisp.org>
31094
31095         Make c-strstr rely on strstr.
31096         * lib/c-strstr.c: Don't include str-kmp.h.
31097         (c_strstr): Define in terms of strstr.
31098         * modules/c-strstr (Files): Remove lib/str-kmp.h.
31099         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
31100
31101 2008-01-10  Bruno Haible  <bruno@clisp.org>
31102
31103         * doc/gnulib.texi (String Functions in C Locale): New section.
31104         * doc/c-ctype.texi: New file.
31105         * doc/c-strcase.texi: New file.
31106         * doc/c-strcaseeq.texi: New file.
31107         * doc/c-strcasestr.texi: New file.
31108         * doc/c-strstr.texi: New file.
31109         * doc/c-strtod.texi: New file.
31110         * doc/c-strtold.texi: New file.
31111
31112 2008-01-10  Eric Blake  <ebb9@byu.net>
31113
31114         * lib/relocatable.h: Fix a comment.
31115
31116 2008-01-10  Eric Blake  <ebb9@byu.net>
31117
31118         Share two-way algorithm.
31119         * lib/str-two-way.h: New file, merged from...
31120         * lib/memmem.c: ...here...
31121         * lib/strstr.c: ...and here.
31122         * modules/memmem (Files): Use it.
31123         * modules/strstr (Files): Likewise.
31124
31125         Avoid quadratic strstr implementations.
31126         * lib/strstr.c: New file.
31127         * m4/strstr.m4: Likewise.
31128         * modules/strstr: Likewise.
31129         * modules/strstr-tests: Likewise.
31130         * tests/test-strstr.c: Likewise.
31131         * lib/string.in.h (rpl_strstr): Declare.
31132         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
31133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
31134         * modules/string (Makefile.am): Likewise.
31135         * MODULES.html.sh (string handling): Mention new module.
31136         * doc/functions/strstr.texi (strstr): Document the bug.
31137
31138 2008-01-10  Bruno Haible  <bruno@clisp.org>
31139
31140         * lib/relocatable.h (relocate): State whether result is freshly
31141         allocated or not.
31142         * lib/relocatable.c (relocate): Return a freshly allocated string
31143         instead of a pointer to a privately held string.
31144         Reported by Sylvain Beucler <beuc@gnu.org>.
31145
31146 2008-01-10  Colin Watson  <cjwatson@debian.org>
31147
31148         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
31149         s/S_ISNLK/S_ISLNK/.
31150
31151 2008-01-09  Bruno Haible  <bruno@clisp.org>
31152
31153         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
31154         and other files.
31155         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
31156         if it's only a guess.
31157         * modules/memmem: Simplify by depending on memmem-simple.
31158
31159 2008-01-09  Bruno Haible  <bruno@clisp.org>
31160
31161         Work around OpenBSD 4.0 tdelete() bug.
31162         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
31163         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
31164         macros and don't redefine the enum values.
31165         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
31166         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
31167         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
31168
31169 2008-01-09  Bruno Haible  <bruno@clisp.org>
31170
31171         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
31172         (main): Don't perform the tests if setlocale did not install a UTF-8
31173         locale. Needed on OpenBSD 4.0.
31174         * modules/wcwidth-tests (Depends-on): Add localcharset.
31175
31176 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31177
31178         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
31179         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
31180         * NEWS: announce this.
31181         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
31182
31183 2008-01-09  Simon Josefsson  <simon@josefsson.org>
31184         and Eric Blake  <ebb9@byu.net>
31185
31186         Add memmem-simple module.
31187         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
31188         (gl_FUNC_MEMMEM): Separate performance from presence checks.
31189         * modules/memmem-simple: New file.
31190         * modules/memmem (Description): Tweak.
31191         * MODULES.html.sh (string handling): Mention new module.
31192         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
31193         addressed by memmem-simple.
31194         * NEWS: Document the difference.
31195
31196 2008-01-09  Eric Blake  <ebb9@byu.net>
31197
31198         Give gcc some memmem optimization hints.
31199         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
31200         (strcasestr): Declare as pure.
31201         * modules/memmem (Maintainer): Claim my implementation.
31202
31203 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31204
31205         Support AIX 6.1 and higher.
31206         * build-aux/config.libpath: Likewise.
31207         * build-aux/config.rpath: Likewise.
31208
31209 2008-01-08  Jim Meyering  <meyering@redhat.com>
31210             Bruno Haible  <bruno@clisp.org>
31211
31212         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
31213         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
31214         Reported by Peter Fales in
31215         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
31216
31217 2008-01-08  Bruno Haible  <bruno@clisp.org>
31218
31219         * modules/unictype/category-of (Depends-on): Add
31220         unictype/category-none.
31221         * modules/unictype/category-and-tests (Depends-on): Add
31222         unictype/category-{L,N,Lu,Nd}.
31223         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
31224         * modules/unictype/category-or-tests (Depends-on): Add
31225         unictype/category-{L,N}.
31226         * modules/unictype/category-name-tests (Depends-on): Add
31227         unictype/category-{Z,Nl}.
31228         Reported by Simon Josefsson.
31229
31230 2008-01-08  Bruno Haible  <bruno@clisp.org>
31231
31232         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
31233         convention better.
31234         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
31235         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
31236         Reported by Peter Miller <millerp@canb.auug.org.au>.
31237
31238 2008-01-08  Eric Blake  <ebb9@byu.net>
31239
31240         Rewrite memmem to guarantee linear complexity without malloc.
31241         * lib/memmem.c (memmem): Use Two-Way rather than
31242         Knuth-Morris-Pratt, to allow O(1) space usage.
31243         (critical_factorization, two_way_short_needle)
31244         (two_way_long_needle): New functions.
31245         (knuth_morris_pratt): Delete.
31246         * modules/memmem (Depends-on): No longer need malloca or stdbool.
31247         Add stdint.
31248         * tests/test-memmem.c (main): Add tests for periodic needle and
31249         sublinear performance.
31250         * doc/functions/memmem.texi (memmem): Document other deficiencies
31251         in cygwin and older glibc.
31252
31253 2008-01-08  Bruno Haible  <bruno@clisp.org>
31254
31255         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
31256         augmentation.
31257
31258 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
31259
31260         Add a configure time option: --disable-acl.
31261         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
31262         AC_ARG_ENABLE(acl).
31263
31264 2008-01-06  Simon Josefsson  <simon@josefsson.org>
31265
31266         * tests/test-localename.c: Don't include obsolete "setenv.h".
31267
31268         * modules/localename-tests (Depends-on): Need unsetenv.
31269
31270 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31271
31272         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
31273
31274 2008-01-06  Colin Watson  <cjwatson@debian.org>
31275
31276         * users.txt: Add man-db.
31277
31278 2008-01-07  Bruno Haible  <bruno@clisp.org>
31279
31280         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
31281         previous section name.
31282
31283 2008-01-07  Bruno Haible  <bruno@clisp.org>
31284
31285         * lib/progname.c (set_program_name): Don't strip off a leading
31286         "lt-" prefix outside a .libs directory.
31287         Suggested by Paul Eggert.
31288
31289 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
31290             Bruno Haible  <bruno@clisp.org>
31291
31292         Improve memory cleanup in 'relocatable' module.
31293         * lib/relocatable.h (compute_curr_prefix): Change return type to
31294         'char *'.
31295         * lib/relocatable.c (compute_curr_prefix): Change return type to
31296         'char *'. Free curr_installdir after use.
31297         (relocate): Free curr_prefix_better after use.
31298         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
31299
31300 2008-01-01  Bruno Haible  <bruno@clisp.org>
31301
31302         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
31303         failure on older glibc systems.
31304         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31305
31306 2008-01-05  Eric Blake  <ebb9@byu.net>
31307
31308         Avoid quadratic system memmem.
31309         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
31310         Reported by Ralf Wildenhues.
31311
31312         Fix memmem test for mingw.
31313         * modules/memmem-tests (configure.ac): Check for alarm.
31314         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
31315         it.
31316         * doc/functions/memmem.texi: New file.
31317         * doc/gnulib.texi (Function Substitutes): Add memmem.
31318         Reported by Bruno Haible.
31319
31320 2008-01-04  Bruno Haible  <bruno@clisp.org>
31321
31322         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
31323         Require gl_HEADER_STRINGS_H_DEFAULTS, not
31324         gl_HEADER_STRING_H_DEFAULTS.
31325
31326 2008-01-04  Eric Blake  <ebb9@byu.net>
31327
31328         Shorten duration of memmem test.
31329         * tests/test-memmem.c (main): Use alarm to declare failure if test
31330         is taking too long.
31331         Reported by Ralf Wildenhues.
31332
31333 2007-12-21  Simon Josefsson  <simon@josefsson.org>
31334
31335         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
31336         string, needed by strerror.
31337
31338 2008-01-03  Colin Watson  <cjwatson@debian.org>
31339             Bruno Haible  <bruno@clisp.org>
31340
31341         * doc/gnulib-tool.texi (Localization): New section.
31342
31343 2008-01-02  Bruno Haible  <bruno@clisp.org>
31344
31345         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
31346         variables to 'unsigned char *' type.
31347         Reported by Paul Eggert.
31348
31349 2008-01-02  Jim Meyering  <jim@meyering.net>
31350
31351         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
31352
31353 2007-12-31  Jim Meyering  <jim@meyering.net>
31354
31355         Avoid use of private FTS type name.
31356         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
31357
31358 2007-12-30  Karl Berry  <karl@gnu.org>
31359
31360         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
31361         work around defect in Texinfo and/or the standalone Info browser.
31362
31363 2007-12-30  Bruno Haible  <bruno@clisp.org>
31364
31365         Unify 5 copies of the KMP code.
31366         * lib/str-kmp.h: New file.
31367         * lib/c-strcasestr.c: Include str-kmp.h.
31368         (knuth_morris_pratt): Remove function.
31369         (c_strcasestr): Update.
31370         * lib/c-strstr.c: Include str-kmp.h.
31371         (knuth_morris_pratt): Remove function.
31372         (c_strcasestr): Update.
31373         * lib/mbscasestr.c: Include str-kmp.h.
31374         (knuth_morris_pratt_unibyte): Remove function.
31375         * lib/mbsstr.c: Include str-kmp.h.
31376         (knuth_morris_pratt_unibyte): Remove function.
31377         * lib/strcasestr.c: Include str-kmp.h.
31378         (knuth_morris_pratt): Remove function.
31379         (strcasestr): Update.
31380         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
31381         * modules/c-strstr (Files): Likewise.
31382         * modules/mbscasestr (Files): Likewise.
31383         * modules/mbsstr (Files): Likewise.
31384         * modules/strcasestr (Files): Likewise.
31385         Suggested by Paul Eggert.
31386
31387 2007-12-30  Bruno Haible  <bruno@clisp.org>
31388
31389         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
31390         defined.
31391
31392 2007-12-30  Bruno Haible  <bruno@clisp.org>
31393
31394         * lib/xmalloca.h: Include xalloc.h.
31395         (xnmalloca): New macro.
31396
31397 2007-12-30  Bruno Haible  <bruno@clisp.org>
31398
31399         * lib/malloca.h (nmalloca): New macro.
31400         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
31401         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
31402         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
31403         knuth_morris_pratt_multibyte): Likewise.
31404         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
31405         knuth_morris_pratt_multibyte): Likewise.
31406         * lib/memmem.c (knuth_morris_pratt): Likewise.
31407         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
31408
31409 2007-12-25  Bruno Haible  <bruno@clisp.org>
31410
31411         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
31412         * lib/glob.c: Don't include openat.h.
31413         (link_exists2_p): Add back the code that deals with the
31414         !GLOB_ALTDIRFUNC case.
31415         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
31416         let it do the filename concatenation.
31417         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
31418         * modules/glob (Depends-on): Remove openat.
31419
31420 2007-12-31  Bruno Haible  <bruno@clisp.org>
31421
31422         * modules/dirfd (License): Change to LGPLv2+.
31423         Approved by Jim Meyering.
31424
31425 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31426
31427         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
31428         when multiplying M by sizeof (size_t).
31429
31430 2007-12-10  Martin Lambers  <marlam@marlam.de>
31431
31432         Override getpagesize on mingw.
31433         * lib/getpagesize.c: New file.
31434         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
31435         * modules/getpagesize (Files): Add lib/getpagesize.c.
31436         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
31437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31438         REPLACE_GETPAGESIZE.
31439         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
31440
31441 2007-12-25  Bruno Haible  <bruno@clisp.org>
31442
31443         * modules/localcharset (Notice): New field.
31444         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
31445         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31446
31447 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31448             Bruno Haible  <bruno@clisp.org>
31449
31450         Avoid using the syntax symbol() in formatted documentation.
31451         * MODULES.html.sh (func_module): When replacing symbol() with a
31452         hyperlink, remove the parentheses. Show an error if some remain.
31453         Recognize and render the '...' syntax.
31454         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
31455         Rework. Add paragraph about GCC's inlining.
31456         * doc/alloca.texi: Likewise.
31457         * doc/error.texi: Remove parentheses from symbol reference.
31458         * doc/gnulib-intro.texi: Likewise.
31459         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
31460         * modules/fnmatch (Description): Reword to say "the ... function".
31461         * modules/full-read (Description): Likewise.
31462         * modules/full-write (Description): Likewise.
31463         * modules/safe-read (Description): Likewise.
31464         * modules/safe-write (Description): Likewise.
31465         * modules/strchrnul (Description): Likewise.
31466         * modules/trim (Description): Likewise.
31467         * modules/error (Description): Remove parentheses from symbol
31468         references.
31469         * modules/verror (Description): Likewise.
31470         Reported by Karl Berry.
31471
31472 2007-12-25  Bruno Haible  <bruno@clisp.org>
31473
31474         Fixup after 2007-10-16 commit.
31475         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
31476
31477 2007-12-24  Bruno Haible  <bruno@clisp.org>
31478
31479         Make --enable-relocatable work with DESTDIR.
31480         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
31481         to compute installdir from destprog.
31482         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
31483         also set the RELOC_DESTDIR variable.
31484         Reported by Левашев Иван <octagram@bluebottle.com>.
31485
31486 2007-12-24  Bruno Haible  <bruno@clisp.org>
31487
31488         Fix link error due to xalloc_die().
31489         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31490         of xreadlink.
31491         * lib/relocwrapper.c: Update comments.
31492         * build-aux/install-reloc: Remove xreadlink.c from file list.
31493         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31494         xreadlink.c.
31495         Reported by Левашев Иван <octagram@bluebottle.com>.
31496
31497 2007-12-24  Bruno Haible  <bruno@clisp.org>
31498
31499         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31500         * lib/setenv.h: Remove file.
31501         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31502         lib/setenv.h.
31503         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31504         (Depends-on): Add stdlib.
31505         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31506         gl_FUNC_UNSETENV.
31507         (Include): Replace setenv.h with <stdlib.h>.
31508         * modules/unsetenv: New file.
31509         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31510         * lib/unsetenv.c: Include <stdlib.h> first.
31511         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31512         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31513         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31514         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31515         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31516         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31518         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31519         * doc/functions/unsetenv.texi: Update.
31520         * modules/xsetenv (Depends-on): Add unsetenv.
31521         * modules/getdate (Depends-on): Likewise.
31522         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31523         * lib/xsetenv.c: Don't include setenv.h.
31524         * lib/getdate.y: Likewise.
31525         * lib/relocwrapper.c: Likewise.
31526         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31527         (Depends-on): Add stdlib.
31528         * NEWS: Mention the changes.
31529         Reported by Левашев Иван <octagram@bluebottle.com>.
31530
31531 2007-12-23  Bruno Haible  <bruno@clisp.org>
31532
31533         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31534         indentation.
31535
31536 2007-12-23  Bruno Haible  <bruno@clisp.org>
31537
31538         * lib/c-strcasestr.c: Add more comments.
31539         * lib/c-strstr.c: Likewise.
31540         * lib/mbscasestr.c: Likewise.
31541         * lib/mbsstr.c: Likewise.
31542         * lib/strcasestr.c: Likewise.
31543         * lib/memmem.c: Likewise.
31544
31545 2007-12-23  Bruno Haible  <bruno@clisp.org>
31546
31547         * tests/test-memmem.c: Include <string.h> first.
31548
31549 2007-12-22  Bruno Haible  <bruno@clisp.org>
31550
31551         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31552         the contents of $testsbase.
31553         Reported by Ralf Wildenhues.
31554
31555 2007-12-22  Bruno Haible  <bruno@clisp.org>
31556
31557         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31558         two variables local_ldadd_before, local_ldadd_last.
31559
31560 2007-12-20  Eric Blake  <ebb9@byu.net>
31561
31562         Work around circular library issue when cross-compiling.
31563         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31564         that progname.o does not need to pull in rpl_memcmp.
31565
31566 2007-12-19  Eric Blake  <ebb9@byu.net>
31567
31568         Fix memmem to avoid O(n^2) worst-case complexity.
31569         * lib/memmem.c (knuth_morris_pratt): New function.
31570         (memmem): Use it if first few naive iterations fail.
31571         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31572         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31573         * modules/memchr (License): Likewise.
31574         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31575         malloca.
31576         * tests/test-memmem.c: Rewrite, borrowing ideas from
31577         test-mbsstr1.c; the old version wouldn't even compile!
31578         * modules/memmem-tests: New file.
31579         * lib/string.in.h (rpl_memmem): Add declaration.
31580         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31582         REPLACE_MEMMEM.
31583
31584 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31585
31586         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31587         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31588         before any system include files, and undef after them all.  This
31589         should fix a problem on VMS reported by John E. Malmberg in
31590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31591
31592 2007-12-17  Eric Blake  <ebb9@byu.net>
31593
31594         Revert addition of verify, for BSD/OS.
31595         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31596         can't handle large files, for the sake of obsolete platforms.
31597         * modules/fseeko (Depends-on): Remove verify.
31598         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31599         * doc/functions/ftello.texi (ftello): Likewise.
31600         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31601         Reported by Larry Jones.
31602
31603 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31604
31605         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31606         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31607
31608 2007-12-17  Jim Meyering  <meyering@redhat.com>
31609
31610         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31611         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31612         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31613         * modules/getcwd (Depends-on): Add openat.
31614         Reported by Petr Salinger.
31615
31616 2007-12-17  Bruno Haible  <bruno@clisp.org>
31617
31618         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31619         avoid a segmentation fault of the configure test on x86_64 systems.
31620
31621 2007-12-15  Jim Meyering  <meyering@redhat.com>
31622
31623         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31624
31625 2007-12-13  Eric Blake  <ebb9@byu.net>
31626
31627         Another fseek test.
31628         * tests/test-fseek.c (main): Also test ungetc handling.
31629         * tests/test-fseeko.c (main): Likewise.
31630         * modules/fseeko (Depends-on): Add verify.
31631         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31632         large.
31633         Reported by Larry Jones.
31634
31635         Fix fseeko on mingw.
31636         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31637         seek.
31638
31639         Beef up fseek tests.
31640         * tests/test-fseek.c (main): Also test eof handling.
31641         * tests/test-fseeko.c (main): Likewise.
31642         Reported by Larry Jones.
31643
31644 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31645
31646         Fix fseeko on BSD-based platforms.
31647         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31648         successful seek.
31649
31650 2007-12-12  Eric Blake  <ebb9@byu.net>
31651
31652         Allow circular dependency of separate libtests.a
31653         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31654         when use_libtests.
31655
31656 2007-12-11  Eric Blake  <ebb9@byu.net>
31657
31658         Fix bug with -0.0L in previous patch.
31659         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31660         * tests/test-isnan.c (main): Also test on zeroes.
31661         * tests/test-isnanf.c (main): Likewise.
31662         * tests/test-isnanl.h (main): Likewise.
31663
31664         Detect pseudo-denormals on x86 even when cross-compiling.
31665         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31666         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31667         invalid bit patterns that happen to satisfy ==.
31668
31669         Avoid link failures with separate libtests.a.
31670         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31671         last, to satisfy circular dependencies.
31672
31673 2007-12-11  Eric Blake  <ebb9@byu.net>
31674         and Bruno Haible  <bruno@clisp.org>
31675
31676         Fix OpenBSD 4.0 <float.h> handling of long double.
31677         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
31678         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
31679         * doc/headers/float.texi (float.h): Document OpenBSD bug.
31680
31681 2007-12-11  Jim Meyering  <meyering@redhat.com>
31682
31683         * users.txt: Add libvirt.
31684
31685         Support versions of autoconf prior to 2.59c.
31686         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
31687         if it is not already defined.
31688
31689 2007-12-09  Bruno Haible  <bruno@clisp.org>
31690
31691         Let 'gnulib-tool --import' collect sources needed for the tests in
31692         tests/ rather than in lib/.
31693         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
31694         argument. If true, add rules to generate libtests.a, and put libtests.a
31695         into $(LDADD). Consider source files in subdirectories and set
31696         uses_subdirs.
31697         (func_emit_initmacro_start, func_emit_initmacro_end,
31698         func_emit_initmacro_done): Pass all arguments explicitly.
31699         (func_import): Determine two module lists main_modules,
31700         testsrelated_modules. Determine use_libtests. Determine two variables
31701         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
31702         instead of just sed_transform_lib_file. Determine two variables
31703         main_files and testsrelated_files. Compute 'files' as the union of
31704         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
31705         func_add_or_update. In the generated gnulib-comp.m4, collect the
31706         object files for tests/ in different variables than those for lib/.
31707         Substitute LIBTESTS_LIBDEPS.
31708         (func_create_testdir): Combine the uses_subdirs results from
31709         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
31710
31711 2007-12-09  Bruno Haible  <bruno@clisp.org>
31712
31713         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
31714         the build-aux directory.
31715
31716 2007-12-09  Bruno Haible  <bruno@clisp.org>
31717
31718         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
31719         introduced on 2006-09-09.
31720
31721 2007-12-07  Jim Meyering  <meyering@redhat.com>
31722
31723         Let these macros work also with autoconf-2.59.
31724         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
31725         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
31726         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31727
31728 2007-12-06  Jim Meyering  <meyering@redhat.com>
31729
31730         Avoid a configure-time syntax error in gl_FUNC_ACL.
31731         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
31732         function in each branch, before testing the cache variable.
31733
31734 2007-12-04  Eric Blake  <ebb9@byu.net>
31735
31736         Make scripts executable.
31737         * build-aux/config.guess: Add execute permissions.
31738         * build-aux/config.sub: Likewise.
31739         * build-aux/gendocs.sh: Likewise.
31740
31741         Fix frexp on mingw.
31742         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
31743         cross-compiling.
31744         * doc/functions/frexp.texi (frexp): Document the bug.
31745
31746         Make cygwin fseeko check more reliable.
31747         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
31748         version numbers, rather than unrelated feature check.
31749         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
31750         * doc/functions/ftello.texi (ftello): Likewise.
31751         Reported by Bruno Haible.
31752
31753         * m4/strerror.m4: Bump version number.
31754
31755 2007-12-03  Bruno Haible  <bruno@clisp.org>
31756
31757         * doc/functions/mprotect.texi: Mention the mingw problem.
31758
31759 2007-12-03  Eric Blake  <ebb9@byu.net>
31760
31761         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
31762         REPLACE_STRERROR is initialized before this macro.
31763
31764 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
31765
31766         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
31767         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
31768         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
31769         put -lsec in even for programs other than 'ls'.  This fixes a problem
31770         for gettext reported by Bruno Haible in
31771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
31772         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
31773         Add support for Solaris 10.  This isn't efficient, but should get the
31774         job done for now.
31775
31776 2007-12-03  James Youngman  <jay@gnu.org>
31777
31778         * doc/regexprops-generic.texi: change "an close-group" to "a
31779         close-group" and "illegal" to "not allowed".
31780
31781 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31782
31783         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
31784         pr_byname.h. Needed for the rare case when the maintainer has done
31785         "make maintainer-clean" in the source directory and then attempts a
31786         build outside the source directory.
31787         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
31788         scripts_byname.h.
31789
31790 2007-12-02  Martin Lambers <marlam@marlam.de>
31791             Bruno Haible  <bruno@clisp.org>
31792
31793         * lib/getpagesize.h: Remove file.
31794         * lib/unistd.in.h: Include declaration of getpagesize here.
31795         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
31796         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
31797         HAVE_SYS_PARAM_H.
31798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
31799         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31800         * modules/getpagesize (Files): Remove lib/getpagesize.h.
31801         (Depends-on): Add unistd.
31802         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31803         (Include): Use <unistd.h> instead of getpagesize.h.
31804         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
31805         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31806         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
31807         gl_GETPAGESIZE invocation, already handled by module dependency.
31808         * lib/pagealign_alloc.c: Don't include getpagesize.h.
31809
31810 2007-12-02  Bruno Haible  <bruno@clisp.org>
31811
31812         * modules/strings-tests: New file.
31813         * tests/test-strings.c: New file.
31814
31815         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
31816         * lib/strings.in.h: New file.
31817         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
31818         * m4/strings_h.m4: New file.
31819         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
31820         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
31821         * modules/strings: New file.
31822         * modules/string (Makefile.am): Update.
31823         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
31824         Reported by Karl Berry.
31825
31826 2007-12-01  Eric Blake  <ebb9@byu.net>
31827
31828         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
31829         accomodate fix in cygwin 1.5.25.
31830
31831 2007-12-01  Jim Meyering  <meyering@redhat.com>
31832
31833         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
31834         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
31835         that would inhibit utf8-optimization of a regexp containing line-
31836         or buffer-anchors, e.g., `^', `$'.
31837
31838 2007-11-30  Bruno Haible  <bruno@clisp.org>
31839
31840         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
31841         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
31842         glthread_recursive_lock_init.
31843         * lib/lock.c (glthread_recursive_lock_init)
31844         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
31845         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31846
31847 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
31848
31849         New function qset_acl, like set_acl but with syscall semantics.
31850         * lib/acl.h (qset_acl): New decl.
31851         * lib/acl.c (qset_acl): New function.
31852         (set_acl): Use new function.  Use more-consistent diagnostics.
31853
31854 2007-11-28  Jim Meyering  <meyering@redhat.com>
31855
31856         * modules/physmem (License): Change from GPL to LGPLv2+.
31857
31858 2007-11-26  Bruno Haible  <bruno@clisp.org>
31859
31860         * lib/vasnprintf.c (decode_long_double): Don't abort if the
31861         'long double' type has excess precision.
31862         Reported by Jim Meyering in
31863         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
31864
31865 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31866
31867         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
31868         Sync from <http://gnu.org/licenses>.
31869         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
31870         with license text from same location.
31871         * doc/maintain.texi, doc/standards.texi:  Sync from
31872         <http://savannah.gnu.org/projects/gnustandards>.
31873
31874 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
31875         and Jim Meyering  <meyering@redhat.com>
31876
31877         Adjust getdate' grammar to accept a slightly more regular language.
31878         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
31879         Before, the former was rejected.
31880         * lib/getdate.y (digits_to_date_time): New function, factored
31881         out of ...
31882         (number): ...here.  Just call digits_to_date_time.
31883         (hybrid): New non-terminal to handle an <unsigned number,
31884         signed relative offset> sequence consistently.
31885
31886 2007-11-18  Jim Meyering  <meyering@redhat.com>
31887
31888         Pull my changes from coreutils:
31889         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
31890         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
31891         use of $gnulib_tool_option_extras, so that it's separated from the
31892         preceding argument.
31893
31894         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
31895         * build-aux/bootstrap (cp_mark_as_generated): Create any required
31896         parent destination directories before copying a file into place.
31897
31898 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31899
31900         bootstrap: work also with 4-argument variant of AC_INIT
31901         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
31902
31903 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31904
31905         Port test-getaddrinfo to Solaris.
31906         Problem reported by Bruno Haible in
31907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
31908         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
31909         explanation of setting 'hints'.
31910         Don't reject an implementation merely because it returns EAI_SERVICE.
31911         (EAI_SERVICE): Define to 0 if not defined.
31912
31913 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
31914
31915         The license of gnu-make and posix-shell is now "GPLed build tool".
31916         * modules/gnu-make (License): Likewise.
31917         * modules/posix-shell (License): Likewise.
31918
31919         New module posix-shell, for determining a POSIX shell
31920         or perhaps something that is close enough to a POSIX shell.
31921         * m4/posix-shell.m4: New file.
31922         * modules/posix-shell: New file.
31923
31924         * MODULES.html.sh: Mention new module.
31925
31926         New module gnu-make, for determining whether we're using GNU Make.
31927         * m4/gnu-make.m4: New file.
31928         * modules/gnu-make: New file.
31929         * MODULES.html.sh: Mention new module.
31930
31931 2007-11-14  Jim Meyering  <meyering@redhat.com>
31932
31933         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
31934         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
31935         use this macro to create a function _definition_.
31936         Remove useless "#undef ARGMATCH_DIE".
31937
31938 2007-11-14  Bruno Haible  <bruno@clisp.org>
31939
31940         * lib/config.charset: Update for OpenBSD 4.1.
31941         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
31942
31943 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
31944
31945         Document 64-bit #if problems in stdint.texi.
31946         * doc/headers/stdint.texi (stdint.h): Mention problems with
31947         64-bit-#if, and how to work around them.
31948
31949         Don't insist on 'long long int' support in the preprocessor.  It
31950         breaks too many things.  For example, PRIdMAX still uses a 'long
31951         long int' format with the latest Sun compiler, even though
31952         HAVE_LONG_LONG_INT isn't defined due to that compiler's
31953         preprocessor problem.  This causes the latest coreutils to dump
31954         core on Solaris 10 sparc with the Sun C compiler.
31955         Instead, fix the 2007-10-16 problem in a different way, by evaluating
31956         the troublesome expressions at configure-time, not at #if-time.
31957         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
31958         preprocessor.
31959         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
31960         compile-time C checks, done at 'configure'-time.
31961         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
31962         * modules/inttypes (Makefile): Substitute the new symbols that
31963         gl_INTTYPES_H now generates.
31964         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
31965
31966 2007-11-12  Bruno Haible  <bruno@clisp.org>
31967
31968         Tests for Unicode character classification functions.
31969
31970         * modules/unictype/bidicategory-byname-tests: New file.
31971         * modules/unictype/bidicategory-name-tests: New file.
31972         * modules/unictype/bidicategory-of-tests: New file.
31973         * modules/unictype/bidicategory-test-tests: New file.
31974         * modules/unictype/block-list-tests: New file.
31975         * modules/unictype/block-of-tests: New file.
31976         * modules/unictype/block-test-tests: New file.
31977         * modules/unictype/category-C-tests: New file.
31978         * modules/unictype/category-Cc-tests: New file.
31979         * modules/unictype/category-Cf-tests: New file.
31980         * modules/unictype/category-Cn-tests: New file.
31981         * modules/unictype/category-Co-tests: New file.
31982         * modules/unictype/category-Cs-tests: New file.
31983         * modules/unictype/category-L-tests: New file.
31984         * modules/unictype/category-Ll-tests: New file.
31985         * modules/unictype/category-Lm-tests: New file.
31986         * modules/unictype/category-Lo-tests: New file.
31987         * modules/unictype/category-Lt-tests: New file.
31988         * modules/unictype/category-Lu-tests: New file.
31989         * modules/unictype/category-M-tests: New file.
31990         * modules/unictype/category-Mc-tests: New file.
31991         * modules/unictype/category-Me-tests: New file.
31992         * modules/unictype/category-Mn-tests: New file.
31993         * modules/unictype/category-N-tests: New file.
31994         * modules/unictype/category-Nd-tests: New file.
31995         * modules/unictype/category-Nl-tests: New file.
31996         * modules/unictype/category-No-tests: New file.
31997         * modules/unictype/category-P-tests: New file.
31998         * modules/unictype/category-Pc-tests: New file.
31999         * modules/unictype/category-Pd-tests: New file.
32000         * modules/unictype/category-Pe-tests: New file.
32001         * modules/unictype/category-Pf-tests: New file.
32002         * modules/unictype/category-Pi-tests: New file.
32003         * modules/unictype/category-Po-tests: New file.
32004         * modules/unictype/category-Ps-tests: New file.
32005         * modules/unictype/category-S-tests: New file.
32006         * modules/unictype/category-Sc-tests: New file.
32007         * modules/unictype/category-Sk-tests: New file.
32008         * modules/unictype/category-Sm-tests: New file.
32009         * modules/unictype/category-So-tests: New file.
32010         * modules/unictype/category-Z-tests: New file.
32011         * modules/unictype/category-Zl-tests: New file.
32012         * modules/unictype/category-Zp-tests: New file.
32013         * modules/unictype/category-Zs-tests: New file.
32014         * modules/unictype/category-and-not-tests: New file.
32015         * modules/unictype/category-and-tests: New file.
32016         * modules/unictype/category-byname-tests: New file.
32017         * modules/unictype/category-name-tests: New file.
32018         * modules/unictype/category-none-tests: New file.
32019         * modules/unictype/category-of-tests: New file.
32020         * modules/unictype/category-or-tests: New file.
32021         * modules/unictype/category-test-withtable-tests: New file.
32022         * modules/unictype/combining-class-tests: New file.
32023         * modules/unictype/ctype-alnum-tests: New file.
32024         * modules/unictype/ctype-alpha-tests: New file.
32025         * modules/unictype/ctype-blank-tests: New file.
32026         * modules/unictype/ctype-cntrl-tests: New file.
32027         * modules/unictype/ctype-digit-tests: New file.
32028         * modules/unictype/ctype-graph-tests: New file.
32029         * modules/unictype/ctype-lower-tests: New file.
32030         * modules/unictype/ctype-print-tests: New file.
32031         * modules/unictype/ctype-punct-tests: New file.
32032         * modules/unictype/ctype-space-tests: New file.
32033         * modules/unictype/ctype-upper-tests: New file.
32034         * modules/unictype/ctype-xdigit-tests: New file.
32035         * modules/unictype/decimal-digit-tests: New file.
32036         * modules/unictype/digit-tests: New file.
32037         * modules/unictype/mirror-tests: New file.
32038         * modules/unictype/numeric-tests: New file.
32039         * modules/unictype/property-alphabetic-tests: New file.
32040         * modules/unictype/property-ascii-hex-digit-tests: New file.
32041         * modules/unictype/property-bidi-arabic-digit-tests: New file.
32042         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
32043         * modules/unictype/property-bidi-block-separator-tests: New file.
32044         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
32045         * modules/unictype/property-bidi-common-separator-tests: New file.
32046         * modules/unictype/property-bidi-control-tests: New file.
32047         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
32048         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
32049         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
32050         * modules/unictype/property-bidi-european-digit-tests: New file.
32051         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
32052         * modules/unictype/property-bidi-left-to-right-tests: New file.
32053         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
32054         * modules/unictype/property-bidi-other-neutral-tests: New file.
32055         * modules/unictype/property-bidi-pdf-tests: New file.
32056         * modules/unictype/property-bidi-segment-separator-tests: New file.
32057         * modules/unictype/property-bidi-whitespace-tests: New file.
32058         * modules/unictype/property-byname-tests: New file.
32059         * modules/unictype/property-combining-tests: New file.
32060         * modules/unictype/property-composite-tests: New file.
32061         * modules/unictype/property-currency-symbol-tests: New file.
32062         * modules/unictype/property-dash-tests: New file.
32063         * modules/unictype/property-decimal-digit-tests: New file.
32064         * modules/unictype/property-default-ignorable-code-point-tests: New file.
32065         * modules/unictype/property-deprecated-tests: New file.
32066         * modules/unictype/property-diacritic-tests: New file.
32067         * modules/unictype/property-extender-tests: New file.
32068         * modules/unictype/property-format-control-tests: New file.
32069         * modules/unictype/property-grapheme-base-tests: New file.
32070         * modules/unictype/property-grapheme-extend-tests: New file.
32071         * modules/unictype/property-grapheme-link-tests: New file.
32072         * modules/unictype/property-hex-digit-tests: New file.
32073         * modules/unictype/property-hyphen-tests: New file.
32074         * modules/unictype/property-id-continue-tests: New file.
32075         * modules/unictype/property-id-start-tests: New file.
32076         * modules/unictype/property-ideographic-tests: New file.
32077         * modules/unictype/property-ids-binary-operator-tests: New file.
32078         * modules/unictype/property-ids-trinary-operator-tests: New file.
32079         * modules/unictype/property-ignorable-control-tests: New file.
32080         * modules/unictype/property-iso-control-tests: New file.
32081         * modules/unictype/property-join-control-tests: New file.
32082         * modules/unictype/property-left-of-pair-tests: New file.
32083         * modules/unictype/property-line-separator-tests: New file.
32084         * modules/unictype/property-logical-order-exception-tests: New file.
32085         * modules/unictype/property-lowercase-tests: New file.
32086         * modules/unictype/property-math-tests: New file.
32087         * modules/unictype/property-non-break-tests: New file.
32088         * modules/unictype/property-not-a-character-tests: New file.
32089         * modules/unictype/property-numeric-tests: New file.
32090         * modules/unictype/property-other-alphabetic-tests: New file.
32091         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
32092         * modules/unictype/property-other-grapheme-extend-tests: New file.
32093         * modules/unictype/property-other-id-continue-tests: New file.
32094         * modules/unictype/property-other-id-start-tests: New file.
32095         * modules/unictype/property-other-lowercase-tests: New file.
32096         * modules/unictype/property-other-math-tests: New file.
32097         * modules/unictype/property-other-uppercase-tests: New file.
32098         * modules/unictype/property-paired-punctuation-tests: New file.
32099         * modules/unictype/property-paragraph-separator-tests: New file.
32100         * modules/unictype/property-pattern-syntax-tests: New file.
32101         * modules/unictype/property-pattern-white-space-tests: New file.
32102         * modules/unictype/property-private-use-tests: New file.
32103         * modules/unictype/property-punctuation-tests: New file.
32104         * modules/unictype/property-quotation-mark-tests: New file.
32105         * modules/unictype/property-radical-tests: New file.
32106         * modules/unictype/property-sentence-terminal-tests: New file.
32107         * modules/unictype/property-soft-dotted-tests: New file.
32108         * modules/unictype/property-space-tests: New file.
32109         * modules/unictype/property-terminal-punctuation-tests: New file.
32110         * modules/unictype/property-test-tests: New file.
32111         * modules/unictype/property-titlecase-tests: New file.
32112         * modules/unictype/property-unassigned-code-value-tests: New file.
32113         * modules/unictype/property-unified-ideograph-tests: New file.
32114         * modules/unictype/property-uppercase-tests: New file.
32115         * modules/unictype/property-variation-selector-tests: New file.
32116         * modules/unictype/property-white-space-tests: New file.
32117         * modules/unictype/property-xid-continue-tests: New file.
32118         * modules/unictype/property-xid-start-tests: New file.
32119         * modules/unictype/property-zero-width-tests: New file.
32120         * modules/unictype/scripts-tests: New file.
32121         * modules/unictype/syntax-c-ident-tests: New file.
32122         * modules/unictype/syntax-c-whitespace-tests: New file.
32123         * modules/unictype/syntax-java-ident-tests: New file.
32124         * modules/unictype/syntax-java-whitespace-tests: New file.
32125         * tests/unictype/test-bidi_byname.c: New file.
32126         * tests/unictype/test-bidi_name.c: New file.
32127         * tests/unictype/test-bidi_of.c: New file.
32128         * tests/unictype/test-bidi_test.c: New file.
32129         * tests/unictype/test-block_list.c: New file.
32130         * tests/unictype/test-block_of.c: New file.
32131         * tests/unictype/test-block_test.c: New file.
32132         * tests/unictype/test-categ_and.c: New file.
32133         * tests/unictype/test-categ_and_not.c: New file.
32134         * tests/unictype/test-categ_byname.c: New file.
32135         * tests/unictype/test-categ_name.c: New file.
32136         * tests/unictype/test-categ_none.c: New file.
32137         * tests/unictype/test-categ_of.c: New file.
32138         * tests/unictype/test-categ_or.c: New file.
32139         * tests/unictype/test-categ_test_withtable.c: New file.
32140         * tests/unictype/test-combining.c: New file.
32141         * tests/unictype/test-decdigit.c: New file.
32142         * tests/unictype/test-digit.c: New file.
32143         * tests/unictype/test-mirror.c: New file.
32144         * tests/unictype/test-numeric.c: New file.
32145         * tests/unictype/test-pr_byname.c: New file.
32146         * tests/unictype/test-pr_test.c: New file.
32147         * tests/unictype/test-predicate-part1.h: New file.
32148         * tests/unictype/test-predicate-part2.h: New file.
32149         * tests/unictype/test-scripts.c: New file.
32150         * tests/unictype/test-sy_c_ident.c: New file.
32151         * tests/unictype/test-sy_java_ident.c: New file.
32152
32153         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
32154         for Unicode 5.0.0.
32155         * tests/unictype/test-categ_Cc.c: Likewise.
32156         * tests/unictype/test-categ_Cf.c: Likewise.
32157         * tests/unictype/test-categ_Cn.c: Likewise.
32158         * tests/unictype/test-categ_Co.c: Likewise.
32159         * tests/unictype/test-categ_Cs.c: Likewise.
32160         * tests/unictype/test-categ_L.c: Likewise.
32161         * tests/unictype/test-categ_Ll.c: Likewise.
32162         * tests/unictype/test-categ_Lm.c: Likewise.
32163         * tests/unictype/test-categ_Lo.c: Likewise.
32164         * tests/unictype/test-categ_Lt.c: Likewise.
32165         * tests/unictype/test-categ_Lu.c: Likewise.
32166         * tests/unictype/test-categ_M.c: Likewise.
32167         * tests/unictype/test-categ_Mc.c: Likewise.
32168         * tests/unictype/test-categ_Me.c: Likewise.
32169         * tests/unictype/test-categ_Mn.c: Likewise.
32170         * tests/unictype/test-categ_N.c: Likewise.
32171         * tests/unictype/test-categ_Nd.c: Likewise.
32172         * tests/unictype/test-categ_Nl.c: Likewise.
32173         * tests/unictype/test-categ_No.c: Likewise.
32174         * tests/unictype/test-categ_P.c: Likewise.
32175         * tests/unictype/test-categ_Pc.c: Likewise.
32176         * tests/unictype/test-categ_Pd.c: Likewise.
32177         * tests/unictype/test-categ_Pe.c: Likewise.
32178         * tests/unictype/test-categ_Pf.c: Likewise.
32179         * tests/unictype/test-categ_Pi.c: Likewise.
32180         * tests/unictype/test-categ_Po.c: Likewise.
32181         * tests/unictype/test-categ_Ps.c: Likewise.
32182         * tests/unictype/test-categ_S.c: Likewise.
32183         * tests/unictype/test-categ_Sc.c: Likewise.
32184         * tests/unictype/test-categ_Sk.c: Likewise.
32185         * tests/unictype/test-categ_Sm.c: Likewise.
32186         * tests/unictype/test-categ_So.c: Likewise.
32187         * tests/unictype/test-categ_Z.c: Likewise.
32188         * tests/unictype/test-categ_Zl.c: Likewise.
32189         * tests/unictype/test-categ_Zp.c: Likewise.
32190         * tests/unictype/test-categ_Zs.c: Likewise.
32191         * tests/unictype/test-ctype_alnum.c: Likewise.
32192         * tests/unictype/test-ctype_alpha.c: Likewise.
32193         * tests/unictype/test-ctype_blank.c: Likewise.
32194         * tests/unictype/test-ctype_cntrl.c: Likewise.
32195         * tests/unictype/test-ctype_digit.c: Likewise.
32196         * tests/unictype/test-ctype_graph.c: Likewise.
32197         * tests/unictype/test-ctype_lower.c: Likewise.
32198         * tests/unictype/test-ctype_print.c: Likewise.
32199         * tests/unictype/test-ctype_punct.c: Likewise.
32200         * tests/unictype/test-ctype_space.c: Likewise.
32201         * tests/unictype/test-ctype_upper.c: Likewise.
32202         * tests/unictype/test-ctype_xdigit.c: Likewise.
32203         * tests/unictype/test-decdigit.h: Likewise.
32204         * tests/unictype/test-digit.h: Likewise.
32205         * tests/unictype/test-numeric.h: Likewise.
32206         * tests/unictype/test-pr_alphabetic.c: Likewise.
32207         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
32208         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
32209         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
32210         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
32211         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
32212         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
32213         * tests/unictype/test-pr_bidi_control.c: Likewise.
32214         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
32215         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
32216         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
32217         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
32218         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
32219         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
32220         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
32221         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
32222         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
32223         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
32224         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
32225         * tests/unictype/test-pr_combining.c: Likewise.
32226         * tests/unictype/test-pr_composite.c: Likewise.
32227         * tests/unictype/test-pr_currency_symbol.c: Likewise.
32228         * tests/unictype/test-pr_dash.c: Likewise.
32229         * tests/unictype/test-pr_decimal_digit.c: Likewise.
32230         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
32231         * tests/unictype/test-pr_deprecated.c: Likewise.
32232         * tests/unictype/test-pr_diacritic.c: Likewise.
32233         * tests/unictype/test-pr_extender.c: Likewise.
32234         * tests/unictype/test-pr_format_control.c: Likewise.
32235         * tests/unictype/test-pr_grapheme_base.c: Likewise.
32236         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
32237         * tests/unictype/test-pr_grapheme_link.c: Likewise.
32238         * tests/unictype/test-pr_hex_digit.c: Likewise.
32239         * tests/unictype/test-pr_hyphen.c: Likewise.
32240         * tests/unictype/test-pr_id_continue.c: Likewise.
32241         * tests/unictype/test-pr_id_start.c: Likewise.
32242         * tests/unictype/test-pr_ideographic.c: Likewise.
32243         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
32244         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
32245         * tests/unictype/test-pr_ignorable_control.c: Likewise.
32246         * tests/unictype/test-pr_iso_control.c: Likewise.
32247         * tests/unictype/test-pr_join_control.c: Likewise.
32248         * tests/unictype/test-pr_left_of_pair.c: Likewise.
32249         * tests/unictype/test-pr_line_separator.c: Likewise.
32250         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
32251         * tests/unictype/test-pr_lowercase.c: Likewise.
32252         * tests/unictype/test-pr_math.c: Likewise.
32253         * tests/unictype/test-pr_non_break.c: Likewise.
32254         * tests/unictype/test-pr_not_a_character.c: Likewise.
32255         * tests/unictype/test-pr_numeric.c: Likewise.
32256         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
32257         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
32258         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
32259         * tests/unictype/test-pr_other_id_continue.c: Likewise.
32260         * tests/unictype/test-pr_other_id_start.c: Likewise.
32261         * tests/unictype/test-pr_other_lowercase.c: Likewise.
32262         * tests/unictype/test-pr_other_math.c: Likewise.
32263         * tests/unictype/test-pr_other_uppercase.c: Likewise.
32264         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
32265         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
32266         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
32267         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
32268         * tests/unictype/test-pr_private_use.c: Likewise.
32269         * tests/unictype/test-pr_punctuation.c: Likewise.
32270         * tests/unictype/test-pr_quotation_mark.c: Likewise.
32271         * tests/unictype/test-pr_radical.c: Likewise.
32272         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
32273         * tests/unictype/test-pr_soft_dotted.c: Likewise.
32274         * tests/unictype/test-pr_space.c: Likewise.
32275         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
32276         * tests/unictype/test-pr_titlecase.c: Likewise.
32277         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
32278         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
32279         * tests/unictype/test-pr_uppercase.c: Likewise.
32280         * tests/unictype/test-pr_variation_selector.c: Likewise.
32281         * tests/unictype/test-pr_white_space.c: Likewise.
32282         * tests/unictype/test-pr_xid_continue.c: Likewise.
32283         * tests/unictype/test-pr_xid_start.c: Likewise.
32284         * tests/unictype/test-pr_zero_width.c: Likewise.
32285         * tests/unictype/test-sy_c_whitespace.c: Likewise.
32286         * tests/unictype/test-sy_java_whitespace.c: Likewise.
32287
32288 2007-11-12  Bruno Haible  <bruno@clisp.org>
32289
32290         Unicode character classification functions.
32291         * lib/unictype.h: New file.
32292         * modules/unictype/base: New file.
32293         * modules/unictype/category-L: New file.
32294         * modules/unictype/category-Lu: New file.
32295         * modules/unictype/category-Ll: New file.
32296         * modules/unictype/category-Lt: New file.
32297         * modules/unictype/category-Lm: New file.
32298         * modules/unictype/category-Lo: New file.
32299         * modules/unictype/category-M: New file.
32300         * modules/unictype/category-Mn: New file.
32301         * modules/unictype/category-Mc: New file.
32302         * modules/unictype/category-Me: New file.
32303         * modules/unictype/category-N: New file.
32304         * modules/unictype/category-Nd: New file.
32305         * modules/unictype/category-Nl: New file.
32306         * modules/unictype/category-No: New file.
32307         * modules/unictype/category-P: New file.
32308         * modules/unictype/category-Pc: New file.
32309         * modules/unictype/category-Pd: New file.
32310         * modules/unictype/category-Ps: New file.
32311         * modules/unictype/category-Pe: New file.
32312         * modules/unictype/category-Pi: New file.
32313         * modules/unictype/category-Pf: New file.
32314         * modules/unictype/category-Po: New file.
32315         * modules/unictype/category-S: New file.
32316         * modules/unictype/category-Sm: New file.
32317         * modules/unictype/category-Sc: New file.
32318         * modules/unictype/category-Sk: New file.
32319         * modules/unictype/category-So: New file.
32320         * modules/unictype/category-Z: New file.
32321         * modules/unictype/category-Zs: New file.
32322         * modules/unictype/category-Zl: New file.
32323         * modules/unictype/category-Zp: New file.
32324         * modules/unictype/category-C: New file.
32325         * modules/unictype/category-Cc: New file.
32326         * modules/unictype/category-Cf: New file.
32327         * modules/unictype/category-Cs: New file.
32328         * modules/unictype/category-Co: New file.
32329         * modules/unictype/category-Cn: New file.
32330         * modules/unictype/category-or: New file.
32331         * modules/unictype/category-of: New file.
32332         * modules/unictype/category-test: New file.
32333         * modules/unictype/category-test-withtable: New file.
32334         * modules/unictype/category-byname: New file.
32335         * modules/unictype/category-none: New file.
32336         * modules/unictype/category-and: New file.
32337         * modules/unictype/category-and-not: New file.
32338         * modules/unictype/category-name: New file.
32339         * modules/unictype/combining-class: New file.
32340         * modules/unictype/category-all: New file.
32341         * modules/unictype/bidicategory-all: New file.
32342         * modules/unictype/bidicategory-byname: New file.
32343         * modules/unictype/bidicategory-name: New file.
32344         * modules/unictype/bidicategory-of: New file.
32345         * modules/unictype/bidicategory-test: New file.
32346         * modules/unictype/decimal-digit: New file.
32347         * modules/unictype/digit: New file.
32348         * modules/unictype/numeric: New file.
32349         * modules/unictype/mirror: New file.
32350         * modules/unictype/property-white-space: New file.
32351         * modules/unictype/property-alphabetic: New file.
32352         * modules/unictype/property-other-alphabetic: New file.
32353         * modules/unictype/property-not-a-character: New file.
32354         * modules/unictype/property-default-ignorable-code-point: New file.
32355         * modules/unictype/property-other-default-ignorable-code-point: New
32356         file.
32357         * modules/unictype/property-deprecated: New file.
32358         * modules/unictype/property-logical-order-exception: New file.
32359         * modules/unictype/property-variation-selector: New file.
32360         * modules/unictype/property-private-use: New file.
32361         * modules/unictype/property-unassigned-code-value: New file.
32362         * modules/unictype/property-uppercase: New file.
32363         * modules/unictype/property-other-uppercase: New file.
32364         * modules/unictype/property-lowercase: New file.
32365         * modules/unictype/property-other-lowercase: New file.
32366         * modules/unictype/property-titlecase: New file.
32367         * modules/unictype/property-soft-dotted: New file.
32368         * modules/unictype/property-id-start: New file.
32369         * modules/unictype/property-other-id-start: New file.
32370         * modules/unictype/property-id-continue: New file.
32371         * modules/unictype/property-other-id-continue: New file.
32372         * modules/unictype/property-xid-start: New file.
32373         * modules/unictype/property-xid-continue: New file.
32374         * modules/unictype/property-pattern-white-space: New file.
32375         * modules/unictype/property-pattern-syntax: New file.
32376         * modules/unictype/property-join-control: New file.
32377         * modules/unictype/property-grapheme-base: New file.
32378         * modules/unictype/property-grapheme-extend: New file.
32379         * modules/unictype/property-other-grapheme-extend: New file.
32380         * modules/unictype/property-grapheme-link: New file.
32381         * modules/unictype/property-bidi-control: New file.
32382         * modules/unictype/property-bidi-left-to-right: New file.
32383         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
32384         * modules/unictype/property-bidi-arabic-right-to-left: New file.
32385         * modules/unictype/property-bidi-european-digit: New file.
32386         * modules/unictype/property-bidi-eur-num-separator: New file.
32387         * modules/unictype/property-bidi-eur-num-terminator: New file.
32388         * modules/unictype/property-bidi-arabic-digit: New file.
32389         * modules/unictype/property-bidi-common-separator: New file.
32390         * modules/unictype/property-bidi-block-separator: New file.
32391         * modules/unictype/property-bidi-segment-separator: New file.
32392         * modules/unictype/property-bidi-whitespace: New file.
32393         * modules/unictype/property-bidi-non-spacing-mark: New file.
32394         * modules/unictype/property-bidi-boundary-neutral: New file.
32395         * modules/unictype/property-bidi-pdf: New file.
32396         * modules/unictype/property-bidi-embedding-or-override: New file.
32397         * modules/unictype/property-bidi-other-neutral: New file.
32398         * modules/unictype/property-hex-digit: New file.
32399         * modules/unictype/property-ascii-hex-digit: New file.
32400         * modules/unictype/property-ideographic: New file.
32401         * modules/unictype/property-unified-ideograph: New file.
32402         * modules/unictype/property-radical: New file.
32403         * modules/unictype/property-ids-binary-operator: New file.
32404         * modules/unictype/property-ids-trinary-operator: New file.
32405         * modules/unictype/property-zero-width: New file.
32406         * modules/unictype/property-space: New file.
32407         * modules/unictype/property-non-break: New file.
32408         * modules/unictype/property-iso-control: New file.
32409         * modules/unictype/property-format-control: New file.
32410         * modules/unictype/property-dash: New file.
32411         * modules/unictype/property-hyphen: New file.
32412         * modules/unictype/property-punctuation: New file.
32413         * modules/unictype/property-line-separator: New file.
32414         * modules/unictype/property-paragraph-separator: New file.
32415         * modules/unictype/property-quotation-mark: New file.
32416         * modules/unictype/property-sentence-terminal: New file.
32417         * modules/unictype/property-terminal-punctuation: New file.
32418         * modules/unictype/property-currency-symbol: New file.
32419         * modules/unictype/property-math: New file.
32420         * modules/unictype/property-other-math: New file.
32421         * modules/unictype/property-paired-punctuation: New file.
32422         * modules/unictype/property-left-of-pair: New file.
32423         * modules/unictype/property-combining: New file.
32424         * modules/unictype/property-composite: New file.
32425         * modules/unictype/property-decimal-digit: New file.
32426         * modules/unictype/property-numeric: New file.
32427         * modules/unictype/property-diacritic: New file.
32428         * modules/unictype/property-extender: New file.
32429         * modules/unictype/property-ignorable-control: New file.
32430         * modules/unictype/property-test: New file.
32431         * modules/unictype/property-byname: New file.
32432         * modules/unictype/property-all: New file.
32433         * modules/unictype/scripts: New file.
32434         * modules/unictype/scripts-all: New file.
32435         * modules/unictype/block-of: New file.
32436         * modules/unictype/block-test: New file.
32437         * modules/unictype/block-list: New file.
32438         * modules/unictype/block-all: New file.
32439         * modules/unictype/syntax-c-whitespace: New file.
32440         * modules/unictype/syntax-java-whitespace: New file.
32441         * modules/unictype/syntax-c-ident: New file.
32442         * modules/unictype/syntax-java-ident: New file.
32443         * modules/unictype/ctype-alnum: New file.
32444         * modules/unictype/ctype-alpha: New file.
32445         * modules/unictype/ctype-cntrl: New file.
32446         * modules/unictype/ctype-digit: New file.
32447         * modules/unictype/ctype-graph: New file.
32448         * modules/unictype/ctype-lower: New file.
32449         * modules/unictype/ctype-print: New file.
32450         * modules/unictype/ctype-punct: New file.
32451         * modules/unictype/ctype-space: New file.
32452         * modules/unictype/ctype-upper: New file.
32453         * modules/unictype/ctype-xdigit: New file.
32454         * modules/unictype/ctype-blank: New file.
32455         * lib/unictype/bidi_byname.c: New file.
32456         * lib/unictype/bidi_name.c: New file.
32457         * lib/unictype/bidi_of.c: New file.
32458         * lib/unictype/bidi_test.c: New file.
32459         * lib/unictype/bitmap.h: New file.
32460         * lib/unictype/block_test.c: New file.
32461         * lib/unictype/blocks.c: New file.
32462         * lib/unictype/categ_C.c: New file.
32463         * lib/unictype/categ_Cc.c: New file.
32464         * lib/unictype/categ_Cf.c: New file.
32465         * lib/unictype/categ_Cn.c: New file.
32466         * lib/unictype/categ_Co.c: New file.
32467         * lib/unictype/categ_Cs.c: New file.
32468         * lib/unictype/categ_L.c: New file.
32469         * lib/unictype/categ_Ll.c: New file.
32470         * lib/unictype/categ_Lm.c: New file.
32471         * lib/unictype/categ_Lo.c: New file.
32472         * lib/unictype/categ_Lt.c: New file.
32473         * lib/unictype/categ_Lu.c: New file.
32474         * lib/unictype/categ_M.c: New file.
32475         * lib/unictype/categ_Mc.c: New file.
32476         * lib/unictype/categ_Me.c: New file.
32477         * lib/unictype/categ_Mn.c: New file.
32478         * lib/unictype/categ_N.c: New file.
32479         * lib/unictype/categ_Nd.c: New file.
32480         * lib/unictype/categ_Nl.c: New file.
32481         * lib/unictype/categ_No.c: New file.
32482         * lib/unictype/categ_P.c: New file.
32483         * lib/unictype/categ_Pc.c: New file.
32484         * lib/unictype/categ_Pd.c: New file.
32485         * lib/unictype/categ_Pe.c: New file.
32486         * lib/unictype/categ_Pf.c: New file.
32487         * lib/unictype/categ_Pi.c: New file.
32488         * lib/unictype/categ_Po.c: New file.
32489         * lib/unictype/categ_Ps.c: New file.
32490         * lib/unictype/categ_S.c: New file.
32491         * lib/unictype/categ_Sc.c: New file.
32492         * lib/unictype/categ_Sk.c: New file.
32493         * lib/unictype/categ_Sm.c: New file.
32494         * lib/unictype/categ_So.c: New file.
32495         * lib/unictype/categ_Z.c: New file.
32496         * lib/unictype/categ_Zl.c: New file.
32497         * lib/unictype/categ_Zp.c: New file.
32498         * lib/unictype/categ_Zs.c: New file.
32499         * lib/unictype/categ_and.c: New file.
32500         * lib/unictype/categ_and_not.c: New file.
32501         * lib/unictype/categ_byname.c: New file.
32502         * lib/unictype/categ_name.c: New file.
32503         * lib/unictype/categ_none.c: New file.
32504         * lib/unictype/categ_of.c: New file.
32505         * lib/unictype/categ_or.c: New file.
32506         * lib/unictype/categ_test.c: New file.
32507         * lib/unictype/combining.c: New file.
32508         * lib/unictype/ctype_alnum.c: New file.
32509         * lib/unictype/ctype_alpha.c: New file.
32510         * lib/unictype/ctype_blank.c: New file.
32511         * lib/unictype/ctype_cntrl.c: New file.
32512         * lib/unictype/ctype_digit.c: New file.
32513         * lib/unictype/ctype_graph.c: New file.
32514         * lib/unictype/ctype_lower.c: New file.
32515         * lib/unictype/ctype_print.c: New file.
32516         * lib/unictype/ctype_punct.c: New file.
32517         * lib/unictype/ctype_space.c: New file.
32518         * lib/unictype/ctype_upper.c: New file.
32519         * lib/unictype/ctype_xdigit.c: New file.
32520         * lib/unictype/decdigit.c: New file.
32521         * lib/unictype/digit.c: New file.
32522         * lib/unictype/identsyntaxmap.h: New file.
32523         * lib/unictype/mirror.c: New file.
32524         * lib/unictype/numeric.c: New file.
32525         * lib/unictype/pr_alphabetic.c: New file.
32526         * lib/unictype/pr_ascii_hex_digit.c: New file.
32527         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32528         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32529         * lib/unictype/pr_bidi_block_separator.c: New file.
32530         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32531         * lib/unictype/pr_bidi_common_separator.c: New file.
32532         * lib/unictype/pr_bidi_control.c: New file.
32533         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32534         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32535         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32536         * lib/unictype/pr_bidi_european_digit.c: New file.
32537         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32538         * lib/unictype/pr_bidi_left_to_right.c: New file.
32539         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32540         * lib/unictype/pr_bidi_other_neutral.c: New file.
32541         * lib/unictype/pr_bidi_pdf.c: New file.
32542         * lib/unictype/pr_bidi_segment_separator.c: New file.
32543         * lib/unictype/pr_bidi_whitespace.c: New file.
32544         * lib/unictype/pr_byname.c: New file.
32545         * lib/unictype/pr_byname.gperf: New file.
32546         * lib/unictype/pr_combining.c: New file.
32547         * lib/unictype/pr_composite.c: New file.
32548         * lib/unictype/pr_currency_symbol.c: New file.
32549         * lib/unictype/pr_dash.c: New file.
32550         * lib/unictype/pr_decimal_digit.c: New file.
32551         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32552         * lib/unictype/pr_deprecated.c: New file.
32553         * lib/unictype/pr_diacritic.c: New file.
32554         * lib/unictype/pr_extender.c: New file.
32555         * lib/unictype/pr_format_control.c: New file.
32556         * lib/unictype/pr_grapheme_base.c: New file.
32557         * lib/unictype/pr_grapheme_extend.c: New file.
32558         * lib/unictype/pr_grapheme_link.c: New file.
32559         * lib/unictype/pr_hex_digit.c: New file.
32560         * lib/unictype/pr_hyphen.c: New file.
32561         * lib/unictype/pr_id_continue.c: New file.
32562         * lib/unictype/pr_id_start.c: New file.
32563         * lib/unictype/pr_ideographic.c: New file.
32564         * lib/unictype/pr_ids_binary_operator.c: New file.
32565         * lib/unictype/pr_ids_trinary_operator.c: New file.
32566         * lib/unictype/pr_ignorable_control.c: New file.
32567         * lib/unictype/pr_iso_control.c: New file.
32568         * lib/unictype/pr_join_control.c: New file.
32569         * lib/unictype/pr_left_of_pair.c: New file.
32570         * lib/unictype/pr_line_separator.c: New file.
32571         * lib/unictype/pr_logical_order_exception.c: New file.
32572         * lib/unictype/pr_lowercase.c: New file.
32573         * lib/unictype/pr_math.c: New file.
32574         * lib/unictype/pr_non_break.c: New file.
32575         * lib/unictype/pr_not_a_character.c: New file.
32576         * lib/unictype/pr_numeric.c: New file.
32577         * lib/unictype/pr_other_alphabetic.c: New file.
32578         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32579         * lib/unictype/pr_other_grapheme_extend.c: New file.
32580         * lib/unictype/pr_other_id_continue.c: New file.
32581         * lib/unictype/pr_other_id_start.c: New file.
32582         * lib/unictype/pr_other_lowercase.c: New file.
32583         * lib/unictype/pr_other_math.c: New file.
32584         * lib/unictype/pr_other_uppercase.c: New file.
32585         * lib/unictype/pr_paired_punctuation.c: New file.
32586         * lib/unictype/pr_paragraph_separator.c: New file.
32587         * lib/unictype/pr_pattern_syntax.c: New file.
32588         * lib/unictype/pr_pattern_white_space.c: New file.
32589         * lib/unictype/pr_private_use.c: New file.
32590         * lib/unictype/pr_punctuation.c: New file.
32591         * lib/unictype/pr_quotation_mark.c: New file.
32592         * lib/unictype/pr_radical.c: New file.
32593         * lib/unictype/pr_sentence_terminal.c: New file.
32594         * lib/unictype/pr_soft_dotted.c: New file.
32595         * lib/unictype/pr_space.c: New file.
32596         * lib/unictype/pr_terminal_punctuation.c: New file.
32597         * lib/unictype/pr_test.c: New file.
32598         * lib/unictype/pr_titlecase.c: New file.
32599         * lib/unictype/pr_unassigned_code_value.c: New file.
32600         * lib/unictype/pr_unified_ideograph.c: New file.
32601         * lib/unictype/pr_uppercase.c: New file.
32602         * lib/unictype/pr_variation_selector.c: New file.
32603         * lib/unictype/pr_white_space.c: New file.
32604         * lib/unictype/pr_xid_continue.c: New file.
32605         * lib/unictype/pr_xid_start.c: New file.
32606         * lib/unictype/pr_zero_width.c: New file.
32607         * lib/unictype/scripts.c: New file.
32608         * lib/unictype/sy_c_ident.c: New file.
32609         * lib/unictype/sy_c_whitespace.c: New file.
32610         * lib/unictype/sy_java_ident.c: New file.
32611         * lib/unictype/sy_java_whitespace.c: New file.
32612
32613         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32614         Unicode 5.0.0.
32615         * lib/unictype/blocks.h: Likewise.
32616         * lib/unictype/categ_C.h: Likewise.
32617         * lib/unictype/categ_Cc.h: Likewise.
32618         * lib/unictype/categ_Cf.h: Likewise.
32619         * lib/unictype/categ_Cn.h: Likewise.
32620         * lib/unictype/categ_Co.h: Likewise.
32621         * lib/unictype/categ_Cs.h: Likewise.
32622         * lib/unictype/categ_L.h: Likewise.
32623         * lib/unictype/categ_Ll.h: Likewise.
32624         * lib/unictype/categ_Lm.h: Likewise.
32625         * lib/unictype/categ_Lo.h: Likewise.
32626         * lib/unictype/categ_Lt.h: Likewise.
32627         * lib/unictype/categ_Lu.h: Likewise.
32628         * lib/unictype/categ_M.h: Likewise.
32629         * lib/unictype/categ_Mc.h: Likewise.
32630         * lib/unictype/categ_Me.h: Likewise.
32631         * lib/unictype/categ_Mn.h: Likewise.
32632         * lib/unictype/categ_N.h: Likewise.
32633         * lib/unictype/categ_Nd.h: Likewise.
32634         * lib/unictype/categ_Nl.h: Likewise.
32635         * lib/unictype/categ_No.h: Likewise.
32636         * lib/unictype/categ_P.h: Likewise.
32637         * lib/unictype/categ_Pc.h: Likewise.
32638         * lib/unictype/categ_Pd.h: Likewise.
32639         * lib/unictype/categ_Pe.h: Likewise.
32640         * lib/unictype/categ_Pf.h: Likewise.
32641         * lib/unictype/categ_Pi.h: Likewise.
32642         * lib/unictype/categ_Po.h: Likewise.
32643         * lib/unictype/categ_Ps.h: Likewise.
32644         * lib/unictype/categ_S.h: Likewise.
32645         * lib/unictype/categ_Sc.h: Likewise.
32646         * lib/unictype/categ_Sk.h: Likewise.
32647         * lib/unictype/categ_Sm.h: Likewise.
32648         * lib/unictype/categ_So.h: Likewise.
32649         * lib/unictype/categ_Z.h: Likewise.
32650         * lib/unictype/categ_Zl.h: Likewise.
32651         * lib/unictype/categ_Zp.h: Likewise.
32652         * lib/unictype/categ_Zs.h: Likewise.
32653         * lib/unictype/categ_of.h: Likewise.
32654         * lib/unictype/combining.h: Likewise.
32655         * lib/unictype/ctype_alnum.h: Likewise.
32656         * lib/unictype/ctype_alpha.h: Likewise.
32657         * lib/unictype/ctype_blank.h: Likewise.
32658         * lib/unictype/ctype_cntrl.h: Likewise.
32659         * lib/unictype/ctype_digit.h: Likewise.
32660         * lib/unictype/ctype_graph.h: Likewise.
32661         * lib/unictype/ctype_lower.h: Likewise.
32662         * lib/unictype/ctype_print.h: Likewise.
32663         * lib/unictype/ctype_punct.h: Likewise.
32664         * lib/unictype/ctype_space.h: Likewise.
32665         * lib/unictype/ctype_upper.h: Likewise.
32666         * lib/unictype/ctype_xdigit.h: Likewise.
32667         * lib/unictype/decdigit.h: Likewise.
32668         * lib/unictype/digit.h: Likewise.
32669         * lib/unictype/mirror.h: Likewise.
32670         * lib/unictype/numeric.h: Likewise.
32671         * lib/unictype/pr_alphabetic.h: Likewise.
32672         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32673         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32674         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32675         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32676         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32677         * lib/unictype/pr_bidi_common_separator.h: Likewise.
32678         * lib/unictype/pr_bidi_control.h: Likewise.
32679         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
32680         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
32681         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
32682         * lib/unictype/pr_bidi_european_digit.h: Likewise.
32683         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
32684         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
32685         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
32686         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
32687         * lib/unictype/pr_bidi_pdf.h: Likewise.
32688         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
32689         * lib/unictype/pr_bidi_whitespace.h: Likewise.
32690         * lib/unictype/pr_combining.h: Likewise.
32691         * lib/unictype/pr_composite.h: Likewise.
32692         * lib/unictype/pr_currency_symbol.h: Likewise.
32693         * lib/unictype/pr_dash.h: Likewise.
32694         * lib/unictype/pr_decimal_digit.h: Likewise.
32695         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
32696         * lib/unictype/pr_deprecated.h: Likewise.
32697         * lib/unictype/pr_diacritic.h: Likewise.
32698         * lib/unictype/pr_extender.h: Likewise.
32699         * lib/unictype/pr_format_control.h: Likewise.
32700         * lib/unictype/pr_grapheme_base.h: Likewise.
32701         * lib/unictype/pr_grapheme_extend.h: Likewise.
32702         * lib/unictype/pr_grapheme_link.h: Likewise.
32703         * lib/unictype/pr_hex_digit.h: Likewise.
32704         * lib/unictype/pr_hyphen.h: Likewise.
32705         * lib/unictype/pr_id_continue.h: Likewise.
32706         * lib/unictype/pr_id_start.h: Likewise.
32707         * lib/unictype/pr_ideographic.h: Likewise.
32708         * lib/unictype/pr_ids_binary_operator.h: Likewise.
32709         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
32710         * lib/unictype/pr_ignorable_control.h: Likewise.
32711         * lib/unictype/pr_iso_control.h: Likewise.
32712         * lib/unictype/pr_join_control.h: Likewise.
32713         * lib/unictype/pr_left_of_pair.h: Likewise.
32714         * lib/unictype/pr_line_separator.h: Likewise.
32715         * lib/unictype/pr_logical_order_exception.h: Likewise.
32716         * lib/unictype/pr_lowercase.h: Likewise.
32717         * lib/unictype/pr_math.h: Likewise.
32718         * lib/unictype/pr_non_break.h: Likewise.
32719         * lib/unictype/pr_not_a_character.h: Likewise.
32720         * lib/unictype/pr_numeric.h: Likewise.
32721         * lib/unictype/pr_other_alphabetic.h: Likewise.
32722         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
32723         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
32724         * lib/unictype/pr_other_id_continue.h: Likewise.
32725         * lib/unictype/pr_other_id_start.h: Likewise.
32726         * lib/unictype/pr_other_lowercase.h: Likewise.
32727         * lib/unictype/pr_other_math.h: Likewise.
32728         * lib/unictype/pr_other_uppercase.h: Likewise.
32729         * lib/unictype/pr_paired_punctuation.h: Likewise.
32730         * lib/unictype/pr_paragraph_separator.h: Likewise.
32731         * lib/unictype/pr_pattern_syntax.h: Likewise.
32732         * lib/unictype/pr_pattern_white_space.h: Likewise.
32733         * lib/unictype/pr_private_use.h: Likewise.
32734         * lib/unictype/pr_punctuation.h: Likewise.
32735         * lib/unictype/pr_quotation_mark.h: Likewise.
32736         * lib/unictype/pr_radical.h: Likewise.
32737         * lib/unictype/pr_sentence_terminal.h: Likewise.
32738         * lib/unictype/pr_soft_dotted.h: Likewise.
32739         * lib/unictype/pr_space.h: Likewise.
32740         * lib/unictype/pr_terminal_punctuation.h: Likewise.
32741         * lib/unictype/pr_titlecase.h: Likewise.
32742         * lib/unictype/pr_unassigned_code_value.h: Likewise.
32743         * lib/unictype/pr_unified_ideograph.h: Likewise.
32744         * lib/unictype/pr_uppercase.h: Likewise.
32745         * lib/unictype/pr_variation_selector.h: Likewise.
32746         * lib/unictype/pr_white_space.h: Likewise.
32747         * lib/unictype/pr_xid_continue.h: Likewise.
32748         * lib/unictype/pr_xid_start.h: Likewise.
32749         * lib/unictype/pr_zero_width.h: Likewise.
32750         * lib/unictype/scripts.h: Likewise.
32751         * lib/unictype/scripts_byname.gperf: Likewise.
32752         * lib/unictype/sy_c_ident.h: Likewise.
32753         * lib/unictype/sy_c_whitespace.h: Likewise.
32754         * lib/unictype/sy_java_ident.h: Likewise.
32755         * lib/unictype/sy_java_whitespace.h: Likewise.
32756
32757         * lib/unictype/Makefile: New file.
32758         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
32759         glibc.
32760         * lib/unictype/3level.h: New file, copied from glibc.
32761         * lib/unictype/3levelbit.h: New file.
32762
32763 2007-11-11  Bruno Haible  <bruno@clisp.org>
32764
32765         * modules/gperf: New file.
32766         * modules/iconv_open (Depends-on): Add it.
32767         (Makefile.am): Remove the GPERF definition.
32768
32769 2007-11-11  Bruno Haible  <bruno@clisp.org>
32770
32771         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
32772         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
32773
32774 2007-11-11  Bruno Haible  <bruno@clisp.org>
32775
32776         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
32777         (usage): Remove function.
32778
32779 2007-11-11  Bruno Haible  <bruno@clisp.org>
32780
32781         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
32782         gl_FUNC_CEILF_LIBS.
32783         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
32784         gl_FUNC_CEIL_LIBS.
32785         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
32786         gl_FUNC_CEILL_LIBS.
32787         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
32788         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
32789         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
32790
32791 2007-11-11  Bruno Haible  <bruno@clisp.org>
32792
32793         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
32794         roundf were declared but do not exist on functions.
32795         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
32796         roundl were declared but do not exist on functions.
32797         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
32798         HAVE_FLOORL_AND_CEILL, respectively.
32799         Needed for Sun C on Solaris 10.
32800
32801 2007-11-11  Bruno Haible  <bruno@clisp.org>
32802
32803         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
32804         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
32805         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
32806         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
32807         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
32808         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
32809         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
32810         HAVE_DECL_ROUNDF.
32811         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
32812         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
32813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
32814         of HAVE_DECL_ROUND*.
32815         * modules/math (Makefile.am): Update.
32816
32817 2007-11-10  Bruno Haible  <bruno@clisp.org>
32818
32819         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
32820         ptrdiff_t as m4/intl.m4.
32821
32822 2007-11-10  Jim Meyering  <meyering@redhat.com>
32823
32824         Avoid link failure for the argmatch test.
32825         * tests/test-argmatch.c (usage): Define function to avoid a link
32826         failure: argmatch_die requires a usage function.
32827
32828 2007-11-09  Bruno Haible  <bruno@clisp.org>
32829
32830         * doc/functions/snprintf.texi: Mention BeOS deficiency.
32831         * doc/functions/vsnprintf.texi: Likewise.
32832         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
32833         with a size argument < 2.
32834
32835 2007-11-09  Bruno Haible  <bruno@clisp.org>
32836
32837         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
32838         buffer. Fixes an inefficiency introduced on 2007-11-03.
32839
32840 2007-11-09  Bruno Haible  <bruno@clisp.org>
32841
32842         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
32843         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
32844
32845 2007-11-08  Jim Meyering  <meyering@redhat.com>
32846
32847         Change cache variable name prefix "jm_" to "gl_" everywhere.
32848         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
32849         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
32850         * m4/uptime.m4: s/gl_/jm_/
32851
32852 2007-11-07  Bruno Haible  <bruno@clisp.org>
32853
32854         Update to GNU gettext 0.17.
32855         * m4/intl.m4: Update to GNU gettext 0.17.
32856         * m4/po.m4: Likewise.
32857         * modules/gettext (Files): Remove m4/ulonglong.m4.
32858         (configure.ac): Require gettext infrastructure from version 0.17.
32859
32860 2007-11-06  Bruno Haible  <bruno@clisp.org>
32861
32862         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
32863         symbolic values are not defined in a public header.
32864         * lib/freadable.c (freadable) [QNX]: Likewise.
32865         * lib/freadahead.c (freadahead) [QNX]: Likewise.
32866         * lib/freading.c (freading) [QNX]: Likewise.
32867         * lib/fseterr.c (fseterr) [QNX]: Likewise.
32868         * lib/fwritable.c (fwritable) [QNX]: Likewise.
32869         * lib/fwriting.c (fwriting) [QNX]: Likewise.
32870         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
32871         Reported by Alain Magloire.
32872
32873         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
32874
32875 2007-11-05  Bruno Haible  <bruno@clisp.org>
32876
32877         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
32878         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
32879         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
32880         Reported by Eric Blake.
32881
32882 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32883             Bruno Haible  <bruno@clisp.org>
32884
32885         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
32886         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
32887         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
32888         (malloc): Undefine also before including <stdlib.h>.
32889         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
32890         Needed on OSF/1 4.0.
32891
32892 2007-11-05  Jim Meyering  <meyering@redhat.com>
32893
32894         git-version-gen: sync from coreutils.
32895         * build-aux/git-version-gen: Add comments.
32896         Change the first '-' to '.' in the snapshot version string,
32897         e.g., 6.9-377-08144 -> 6.9.377-08144
32898         Remove first parameter.
32899         Don't declare a version "-dirty" merely because a time
32900         stamp has changed.
32901
32902 2007-11-04  Bruno Haible  <bruno@clisp.org>
32903
32904         * lib/lock.h: Protect all macro definitions containing an 'if'
32905         statement through a "do { ... } while (0)".
32906         * lib/tls.h: Likewise.
32907
32908 2007-11-04  Bruno Haible  <bruno@clisp.org>
32909
32910         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
32911
32912 2007-11-04  Bruno Haible  <bruno@clisp.org>
32913
32914         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
32915         * modules/fprintf-posix (Depends-on): Add nocrash.
32916         * modules/snprintf-posix (Depends-on): Likewise.
32917         * modules/sprintf-posix (Depends-on): Likewise.
32918         * modules/vasnprintf-posix (Depends-on): Likewise.
32919         * modules/vasprintf-posix (Depends-on): Likewise.
32920         * modules/vfprintf-posix (Depends-on): Likewise.
32921         * modules/vsnprintf-posix (Depends-on): Likewise.
32922         * modules/vsprintf-posix (Depends-on): Likewise.
32923         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32924         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32925         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32926         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32927         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32928         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32929         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32930
32931 2007-11-04  Bruno Haible  <bruno@clisp.org>
32932
32933         * modules/nocrash: New file.
32934         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
32935         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
32936
32937 2007-11-04  Bruno Haible  <bruno@clisp.org>
32938
32939         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
32940         precision handling.
32941         * tests/test-vasprintf-posix.c (test_function): Likewise.
32942         * tests/test-snprintf-posix.h (test_function): Likewise.
32943         * tests/test-sprintf-posix.h (test_function): Likewise.
32944
32945         Fix *printf behaviour for large precisions on mingw and BeOS.
32946         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
32947         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
32948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
32949         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32950         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32951         gl_PRINTF_PRECISION and test its result. Invoke
32952         gl_PREREQ_VASNPRINTF_PRECISION.
32953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32954         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32956         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32957         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32959         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32960         * doc/functions/fprintf.texi: Update.
32961         * doc/functions/printf.texi: Update.
32962         * doc/functions/snprintf.texi: Update.
32963         * doc/functions/sprintf.texi: Update.
32964         * doc/functions/vfprintf.texi: Update.
32965         * doc/functions/vprintf.texi: Update.
32966         * doc/functions/vsnprintf.texi: Update.
32967         * doc/functions/vsprintf.texi: Update.
32968
32969 2007-11-04  Bruno Haible  <bruno@clisp.org>
32970
32971         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
32972
32973 2007-11-04  Bruno Haible  <bruno@clisp.org>
32974
32975         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
32976         Reported by Sylvain Beucler <beuc@gnu.org>.
32977
32978 2007-11-03  Bruno Haible  <bruno@clisp.org>
32979
32980         * tests/test-fprintf-posix2.sh: New file.
32981         * tests/test-fprintf-posix2.c: New file.
32982         * modules/fprintf-posix-tests (Files): Add them.
32983         (TESTS): Add test-fprintf-posix2.sh.
32984         (configure.ac): Check for getrlimit and setrlimit.
32985         (check_PROGRAMS): Add test-fprintf-posix2.
32986
32987         * tests/test-printf-posix2.sh: New file.
32988         * tests/test-printf-posix2.c: New file.
32989         * modules/printf-posix-tests (Files): Add them.
32990         (TESTS): Add test-printf-posix2.sh.
32991         (configure.ac): Check for getrlimit and setrlimit.
32992         (check_PROGRAMS): Add test-printf-posix2.
32993
32994         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
32995         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
32996         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
32997         (decode_double): New function, copied from decode_long_double.
32998         (scale10_round_decimal_decoded): New function, extracted from
32999         scale10_round_decimal_long_double.
33000         (scale10_round_decimal_long_double): Use it.
33001         (scale10_round_decimal_double): New function.
33002         (floorlog10): New function.
33003         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
33004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
33005         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33006         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33007         gl_PRINTF_ENOMEM and test its result. Invoke
33008         gl_PREREQ_VASNPRINTF_ENOMEM.
33009         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33010         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33011         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33012         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33013         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33014         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33015         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33016         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
33017         * modules/snprintf-posix (Depends-on): Likewise.
33018         * modules/sprintf-posix (Depends-on): Likewise.
33019         * modules/vasnprintf-posix (Depends-on): Likewise.
33020         * modules/vasprintf-posix (Depends-on): Likewise.
33021         * modules/vfprintf-posix (Depends-on): Likewise.
33022         * modules/vsnprintf-posix (Depends-on): Likewise.
33023         * modules/vsprintf-posix (Depends-on): Likewise.
33024         * doc/functions/fprintf.texi: Update.
33025         * doc/functions/printf.texi: Update.
33026         * doc/functions/snprintf.texi: Update.
33027         * doc/functions/sprintf.texi: Update.
33028         * doc/functions/vfprintf.texi: Update.
33029         * doc/functions/vprintf.texi: Update.
33030         * doc/functions/vsnprintf.texi: Update.
33031         * doc/functions/vsprintf.texi: Update.
33032
33033 2007-11-03  Bruno Haible  <bruno@clisp.org>
33034
33035         * modules/frexp-nolibm-tests: New file.
33036
33037         * modules/frexp-nolibm: New file.
33038         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
33039
33040 2007-11-03  Bruno Haible  <bruno@clisp.org>
33041
33042         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
33043         value is C99 compliant.
33044         Needed for OSF/1 5.1.
33045
33046 2007-11-03  Bruno Haible  <bruno@clisp.org>
33047
33048         Fix out-of-memory handling of vasnprintf.
33049         * lib/printf-parse.c: Include <errno.h>.
33050         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
33051         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
33052         is already set.
33053
33054 2007-11-02  Eric Blake  <ebb9@byu.net>
33055
33056         Fix tests on cygwin.
33057         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
33058
33059 2007-11-01  Bruno Haible  <bruno@clisp.org>
33060
33061         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
33062         warning.
33063         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
33064         needed for POSIX compatibility.
33065
33066 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33067
33068         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
33069         for compatibility with GNU.
33070
33071 2007-11-01  Bruno Haible  <bruno@clisp.org>
33072
33073         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
33074         (putenv): Renamed from rpl_putenv. Change argument type from
33075         'const char *' to 'char *'.
33076         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
33077         of defining putenv in config.h, just set REPLACE_PUTENV.
33078         * modules/putenv (Depends-on): Add stdlib.
33079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33080         (Include): Use <stdlib.h>.
33081         * lib/stdlib.in.h (putenv): New declaration.
33082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
33083         REPLACE_PUTENV.
33084         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
33085         REPLACE_PUTENV.
33086         Needed for MacOS X 10.5.0.
33087         Reported by Peter O'Gorman <peter@pogma.com>.
33088
33089 2007-11-01  Jim Meyering  <meyering@redhat.com>
33090
33091         Treat an empty date string exactly like "0".
33092         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
33093         if the remaining date string (to be parsed) is empty, use "0".
33094         Reported by Mischa Molhoek and discussed in this thread:
33095         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
33096
33097 2007-10-31  Bruno Haible  <bruno@clisp.org>
33098
33099         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
33100         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
33101         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
33102         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
33103         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
33104         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
33105
33106 2007-10-31  Bruno Haible  <bruno@clisp.org>
33107
33108         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
33109         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
33110         (AC_TYPE_LONG_LONG_INT): Use it.
33111         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
33112         it as well.
33113         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
33114         to m4/longlong.m4.
33115         * modules/stdint (Files): Remove m4/ulonglong.m4.
33116         * modules/strtoull (Files): Use m4/longlong.m4 instead of
33117         m4/ulonglong.m4.
33118         * modules/strtoumax (Files): Likewise.
33119
33120 2007-10-30  Bruno Haible  <bruno@clisp.org>
33121
33122         * modules/xvasprintf-posix: New file.
33123         Suggested by Eric Blake.
33124
33125 2007-10-30  Bruno Haible  <bruno@clisp.org>
33126
33127         * modules/xprintf-posix-tests: New file.
33128         * tests/test-xprintf-posix.sh: New file.
33129         * tests/test-xprintf-posix.c: New file.
33130         * tests/test-xfprintf-posix.c: New file.
33131
33132         * modules/xprintf-posix: New file.
33133
33134 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33135
33136         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
33137         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
33138         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
33139
33140 2007-10-29  Bruno Haible  <bruno@clisp.org>
33141
33142         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
33143         contain the special marker '_cv_'.
33144         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33145         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33146         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33147         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
33148         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33149         Reported by Ralf Wildenhues.
33150
33151 2007-10-29  Bruno Haible  <bruno@clisp.org>
33152
33153         * gnulib-tool (func_import): When --lgpl is not specified, set
33154         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
33155         GPLv3.
33156         Reported by Simon Josefsson.
33157
33158 2007-10-28  Bruno Haible  <bruno@clisp.org>
33159
33160         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
33161         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
33162         HAVE_DECL_ISFINITE.
33163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33164         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
33165         HAVE_DECL_ISFINITE.
33166
33167 2007-10-28  Bruno Haible  <bruno@clisp.org>
33168
33169         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
33170         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
33171
33172 2007-10-28  Bruno Haible  <bruno@clisp.org>
33173
33174         Fix link errors with Sun C 5.0 on Solaris 10.
33175         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
33176         function is declared but not present in the compiler's libm.
33177         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33178         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33179         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
33180         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
33181         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
33182         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
33183         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
33184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33185         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
33186         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
33187         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
33188         HAVE_DECL_FLOORL.
33189
33190 2007-10-28  Bruno Haible  <bruno@clisp.org>
33191
33192         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
33193         gl_FUNC_FLOORL. Cache the result.
33194         (gl_FUNC_FLOORL): Use it.
33195         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
33196         gl_FUNC_CEILL. Cache the result.
33197         (gl_FUNC_CEILL): Use it.
33198
33199         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
33200         gl_FUNC_FLOOR. Cache the result.
33201         (gl_FUNC_FLOOR): Use it.
33202         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
33203         gl_FUNC_CEIL. Cache the result.
33204         (gl_FUNC_CEIL): Use it.
33205
33206         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
33207         gl_FUNC_FLOORF. Cache the result.
33208         (gl_FUNC_FLOORF): Use it.
33209         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
33210         gl_FUNC_CEILF. Cache the result.
33211         (gl_FUNC_CEILF): Use it.
33212
33213 2007-10-28  Bruno Haible  <bruno@clisp.org>
33214
33215         * gnulib-tool: Allow specifying the LGPL version number through
33216         --lgpl=2 or --lgpl=3.
33217         (func_usage): Document --lgpl with argument.
33218         Handle --lgpl=... arguments.
33219         (func_import): Recognize also gl_LGPL calls with an argument. When
33220         --lgpl=2 is used and the module's license is just LGPL, report an
33221         error. Set sed_transform_lib_file according to the lgpl variable. In
33222         the generated files, use --lgpl or gl_LGPL invocations with argument,
33223         if necessary.
33224         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
33225         an LGPv2+ license.
33226         * doc/gnulib-tool.texi (Modified imports): Update explanation of
33227         gl_LGPL macro.
33228
33229 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33230             Bruno Haible  <bruno@clisp.org>
33231
33232         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
33233         (u16_uctomb_aux): Likewise.
33234         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
33235         !HAVE_INLINE.
33236         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
33237
33238 2007-10-28  Bruno Haible  <bruno@clisp.org>
33239
33240         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
33241         Invoke AM_GETTEXT_OPTION if it exists.
33242         * modules/vasprintf: Likewise.
33243         * modules/verror: Likewise.
33244         * modules/xprintf: Likewise.
33245         * modules/xvasprintf: Likewise.
33246
33247 2007-10-27  Ben Pfaff  <blp@gnu.org>
33248
33249         * lib/math.in.h: Define isfinite macro and prototypes for
33250         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
33251         implementations.
33252         * m4/math_h.m4: New substitutions for isfinite module.
33253         * lib/isfinite.c: New file.
33254         * m4/isfinite.m4: New file.
33255         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
33256         * modules/isfinite: New file.
33257         * modules/isfinite-tests: New file.
33258         * tests/tests-isfinite.c: New file.
33259         * doc/functions/isfinite.texi: Mention isfinite module.
33260         * MODULES.html.sh: Mention new module.
33261
33262 2007-10-27  Ben Pfaff  <blp@gnu.org>
33263
33264         Ralf Wildenhues reported that Tru64 4.0D declares the round
33265         functions but does not have definitions.
33266         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
33267         cannot be found in any library, set the output variable to
33268         "missing" instead of "".
33269         * m4/round.m4: Also use our substitute if we cannot find round in
33270         any library, even if it is declared.
33271         * m4/roundf.m4: Likewise for roundf.
33272         * m4/roundl.m4: Likewise for roundl.
33273         * lib/math.in.h: Undefine roundf, round, roundl before defining
33274         their replacements, to allow for hypothetical systems where these
33275         may be defined as macros but not available in libraries.
33276
33277 2007-10-27  Bruno Haible  <bruno@clisp.org>
33278
33279         * doc/gnulib.texi: Invoke @firstparagraphindent.
33280         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
33281         changes in gnulib.
33282         (Source changes): New section.
33283
33284 2007-10-26  Bruno Haible  <bruno@clisp.org>
33285
33286         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
33287         borrowed from autoconf.
33288
33289 2007-10-26  Bruno Haible  <bruno@clisp.org>
33290
33291         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
33292         strerror returned the empty string. Needed on HP-UX 11.00.
33293
33294 2007-10-24  Micah Cowan  <micah@cowan.name>
33295
33296         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
33297         * build-aux/bootstrap: Remove support for now-unnecessary option,
33298         --cvs-user, and envvars CVS_USER, CVS_RSH.
33299
33300 2007-10-24  Jim Meyering  <meyering@redhat.com>
33301
33302         Avoid diagnostics from sha1sum when there is no cached checksum.
33303         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
33304         if the po.s1 file hasn't been created yet.
33305
33306         * build-aux/bootstrap: Sync from coreutils:
33307         2007-10-24  Jim Meyering  <meyering@redhat.com>
33308         Get gnulib from the git repository, not from an obsolete cvs one.
33309         * build-aux/bootstrap: Suggestion from Micah Cowan.
33310         2007-10-04  Jim Meyering  <jim@meyering.net>
33311         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
33312         (update_po_files): Work also when there are no .po files in po/.
33313
33314 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33315
33316         * README: Append ".git" to git and cg examples.
33317         Problem reported by Benoit Sigoure.
33318
33319 2007-10-23  Micah Cowan  <micah@cowan.name>
33320
33321         * users.txt: Add wget.
33322
33323 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33324
33325         Fix linking of some unistdio tests on FreeBSD.
33326         * modules/unistdio/u16-vsnprintf-tests
33327         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
33328         * modules/unistdio/u16-vsprintf-tests
33329         (test_u16_vsnprintf1_LDADD): Likewise.
33330         * modules/unistdio/u32-vsnprintf-tests
33331         (test_u32_vsnprintf1_LDADD): Likewise.
33332         * modules/unistdio/u32-vsprintf-tests
33333         (test_u32_vsprintf1_LDADD): Likewise.
33334         * modules/unistdio/u8-vsnprintf-tests
33335         (test_u8_vsnprintf1_LDADD): Likewise.
33336         * modules/unistdio/u8-vsprintf-tests
33337         (test_u8_vsprintf1_LDADD): Likewise.
33338         * modules/unistdio/ulc-vsnprintf-tests
33339         (test_ulc_vsnprintf1_LDADD): Likewise.
33340         * modules/unistdio/ulc-vsprintf-tests
33341         (test_ulc_vsprintf1_LDADD): Likewise.
33342
33343         Fix linking of some uniconv tests on FreeBSD.
33344         * modules/uniconv/u16-conv-from-enc-tests
33345         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
33346         * modules/uniconv/u16-conv-to-enc-tests
33347         (test_u16_conv_to_enc_LDADD): Likewise.
33348         * modules/uniconv/u16-strconv-from-enc-tests
33349         (test_u16_strconv_from_enc_LDADD): Likewise.
33350         * modules/uniconv/u16-strconv-to-enc-tests
33351         (test_u16_strconv_to_enc_LDADD): Likewise.
33352         * modules/uniconv/u32-conv-from-enc-tests
33353         (test_u32_conv_from_enc_LDADD): Likewise.
33354         * modules/uniconv/u32-conv-to-enc-tests
33355         (test_u32_conv_to_enc_LDADD): Likewise.
33356         * modules/uniconv/u32-strconv-from-enc-tests
33357         (test_u32_strconv_from_enc_LDADD): Likewise.
33358         * modules/uniconv/u32-strconv-to-enc-tests
33359         (test_u32_strconv_to_enc_LDADD): Likewise.
33360         * modules/uniconv/u8-conv-from-enc-tests
33361         (test_u8_conv_from_enc_LDADD): Likewise.
33362         * modules/uniconv/u8-conv-to-enc-tests
33363         (test_u8_conv_to_enc_LDADD): Likewise.
33364         * modules/uniconv/u8-strconv-from-enc-tests
33365         (test_u8_strconv_from_enc_LDADD): Likewise.
33366         * modules/uniconv/u8-strconv-to-enc-tests
33367         (test_u8_strconv_to_enc_LDADD): Likewise.
33368
33369 2007-10-22  Bruno Haible  <bruno@clisp.org>
33370
33371         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
33372         size.
33373
33374 2007-10-22  Eric Blake  <ebb9@byu.net>
33375
33376         Tweak x*printf documentation.
33377         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
33378         variable name and comments.
33379         Suggested by Bruno Haible.
33380
33381 2007-10-22  Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/acl.c (copy_acl): Fix file name in comment.
33384
33385 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33386
33387         Fix Tru64 problem with stdbool.h.
33388         * lib/stdbool.in.h (false, true):
33389         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
33390         Don't declare as an enum in this situation; it runs afoul of Tru64.
33391         Problem reported by Steven M. Schweda in
33392         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
33393
33394 2007-10-22  Eric Blake  <ebb9@byu.net>
33395
33396         Also wrap vf?printf.
33397         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
33398         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
33399         (xvprintf, xvfprintf): New functions.
33400
33401 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33402
33403         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
33404         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
33405
33406         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
33407         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
33408
33409 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33410
33411         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
33412         by Bruno Haible.
33413
33414 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33415
33416         * lib/getloadavg.c
33417         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
33418         Undef `sys' after including sys/table.h, for Tru64 4.0D.
33419
33420         * tests/test-i-ring.c: Work for C89.
33421
33422 2007-10-22  Bruno Haible  <bruno@clisp.org>
33423
33424         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
33425         -1u, in preprocessor expression, so that we don't test for the bug
33426         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
33427         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33428
33429 2007-10-22  Eric Blake  <ebb9@byu.net>
33430
33431         * tests/test-yesno.sh: Silence stderr during test.
33432
33433 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33434
33435         * modules/crypto/gc-camellia: New file.
33436
33437         * m4/gc-camellia.m4: New file.
33438
33439         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
33440
33441         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
33442
33443 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33444
33445         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
33446         --help to stdout.  Reported by sms@antinode.org (Steven
33447         M. Schweda).
33448
33449 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33450
33451         * users.txt: Fix link to libksba.
33452
33453 2007-10-21  Ben Pfaff  <blp@gnu.org>
33454
33455         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
33456         round.c roundf implementation that depends on floorf and ceilf to
33457         be tested unconditionally.
33458
33459 2007-10-21  Ben Pfaff  <blp@gnu.org>
33460
33461         * m4/check-libm-func.m4: Removed.
33462         * m4/check-math-lib.m4: New file.
33463         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
33464         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
33465         definition and lack of AC_LIBOBJ([roundf]).
33466         * m4/roundl.m4: Ditto, and similarly for roundl.
33467         * modules/round: Reference new m4 file.
33468         * modules/roundf: Ditto.
33469         * modules/roundl: Ditto.
33470         * tests/test-round2.c (main): Use ROUND instead of round.
33471         Bug report from Bruno Haible.
33472
33473 2007-10-21  Bruno Haible  <bruno@clisp.org>
33474
33475         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
33476         context.
33477
33478 2007-10-21  Bruno Haible  <bruno@clisp.org>
33479
33480         * tests/test-wcwidth.c (main): Allow negative result for some control
33481         characters.
33482
33483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
33484         Needed on OSF/1 5.1.
33485
33486 2007-10-21  Bruno Haible  <bruno@clisp.org>
33487
33488         * tests/test-floorf1.c: Include isnanf.h.
33489         (main): Use isnanf() instead of isnan().
33490         * tests/test-ceilf1.c: Include isnanf.h.
33491         (main): Use isnanf() instead of isnan().
33492         * tests/test-truncf1.c: Include isnanf.h.
33493         (main): Use isnanf() instead of isnan().
33494         * tests/test-roundf1.c: Include isnanf.h.
33495         (main): Use isnanf() instead of isnan().
33496
33497 2007-10-21  Eric Blake  <ebb9@byu.net>
33498
33499         * users.txt: Update URL for m4.
33500
33501 2007-10-21  Bruno Haible  <bruno@clisp.org>
33502
33503         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33504
33505 2007-10-21  Bruno Haible  <bruno@clisp.org>
33506
33507         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33508         Git's management files if the CVS files are not present.
33509
33510 2007-10-20  Bruno Haible  <bruno@clisp.org>
33511
33512         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33513         gcc-3.4.x.
33514
33515 2007-10-20  Ben Pfaff  <blp@gnu.org>
33516
33517         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33518         implementations.
33519         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33520         * lib/round.c: New file.
33521         * lib/roundf.c: New file.
33522         * lib/roundl.c: New file.
33523         * m4/round.m4: New file.
33524         * m4/roundf.m4: New file.
33525         * m4/roundl.m4: New file.
33526         * m4/check-libm-func-m4: New file.
33527         * modules/math: Replace round, roundf, roundl related @VARS@ in
33528         math.in.h.
33529         * modules/round: New file.
33530         * modules/round-tests: New file.
33531         * modules/roundf: New file.
33532         * modules/roundf-tests: New file.
33533         * modules/roundl: New file.
33534         * modules/roundl-tests: New file.
33535         * tests/test-round1.c: New file.
33536         * tests/test-round2.c: New file.
33537         * tests/test-roundf1.c: New file.
33538         * tests/test-roundf2.c: New file.
33539         * tests/test-roundl.c: New file.
33540         * doc/functions/round.texi: Mention round module.
33541         * doc/functions/roundf.texi: Mention roundf module.
33542         * doc/functions/roundl.texi: Mention roundl module.
33543         * MODULES.html.sh: Mention new modules.
33544         Thanks to Bruno Haible for suggestions.
33545
33546 2007-10-20  Jim Meyering  <meyering@redhat.com>
33547
33548         * lib/xprintf.c: Include <config.h> unconditionally.
33549
33550         Change xprintf's license to GPL.
33551         * modules/xprintf (License): s/LGPL/GPL/, since this module
33552         depends on modules (exit and exitfail) which are GPL.
33553         Suggestion from Bruno Haible.
33554
33555         xprintf fixes.
33556         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33557         Use a clearer diagnostic.
33558         Patch from Bruno Haible.
33559
33560 2007-10-20  Bruno Haible  <bruno@clisp.org>
33561
33562         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33563         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33564         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33565
33566 2007-10-20  Bruno Haible  <bruno@clisp.org>
33567
33568         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33569         precision in the comparison result > x - 1 or similar.
33570         * tests/test-ceilf2.c (correct_result_p): Likewise.
33571         * tests/test-truncf2.c (correct_result_p): Likewise.
33572         * tests/test-trunc2.c (correct_result_p): Likewise.
33573         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33574
33575 2007-10-20  Bruno Haible  <bruno@clisp.org>
33576
33577         * modules/ceil: New file.
33578         * m4/ceil.m4: New file.
33579         * doc/functions/ceil.texi: Mention the 'ceil' module.
33580
33581 2007-10-20  Bruno Haible  <bruno@clisp.org>
33582
33583         * modules/floor: New file.
33584         * m4/floor.m4: New file.
33585         * doc/functions/floor.texi: Mention the 'floor' module.
33586
33587 2007-10-20  Bruno Haible  <bruno@clisp.org>
33588
33589         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33590         of %a.
33591         * modules/floorf-tests (Depends-on): Likewise.
33592         * modules/truncf-tests (Depends-on): Likewise.
33593         * modules/trunc-tests (Depends-on): Likewise.
33594         Reported by Ben Pfaff.
33595
33596 2007-10-19  Jim Meyering  <meyering@redhat.com>
33597
33598         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33599         Don't bother testing specific errno values.  Just test ferror.
33600
33601         New module: xprintf
33602         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33603
33604 2007-10-19  Bruno Haible  <bruno@clisp.org>
33605
33606         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33607         syntax.
33608         * modules/javaexec (Makefile.am): Likewise.
33609         * modules/relocatable-prog (Makefile.am): Likewise.
33610         Suggested by Jim Meyering.
33611
33612 2007-10-18  Bruno Haible  <bruno@clisp.org>
33613
33614         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33615         Reported by Jim Meyering.
33616
33617 2007-10-18  Eric Blake  <ebb9@byu.net>
33618
33619         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33620
33621 2007-10-18  Bruno Haible  <bruno@clisp.org>
33622
33623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33624         the format string into writable memory. Needed in Fortify conditions.
33625
33626 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33627             Bruno Haible  <bruno@clisp.org>
33628
33629         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33630         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33631         * modules/trim (Depends-on): Add mbchar.
33632         (configure.ac): Add gl_FUNC_MBRTOWC.
33633         (Makefile.am): Augment lib_SOURCES.
33634
33635 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33636
33637         Modify glob.c to use fstatat and dirfd, to simplify it.
33638         Suggested by Eric Blake.
33639         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33640         Don't include <stdbool.h>; not used.
33641         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33642         (link_exists_p): Simplify implementation, since we can now assume
33643         dirfd and fstatat.
33644         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33645
33646 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33647
33648         * gnulib-tool (func_get_dependencies): Fix sed script to
33649         match only tests.
33650
33651 2007-10-17  Bruno Haible  <bruno@clisp.org>
33652
33653         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33654         allow locale names without encoding suffix.
33655         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33656         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33657
33658 2007-10-16  Bruno Haible  <bruno@clisp.org>
33659
33660         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33661         * lib/getgroups.c (getgroups): Likewise.
33662         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33663
33664 2007-10-16  Bruno Haible  <bruno@clisp.org>
33665
33666         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33667         * modules/malloc-posix (License): Likewise.
33668         * modules/realloc-posix (License): Likewise.
33669         * modules/calloc-posix (License): Likewise.
33670         * modules/intprops (License): Change from GPL to LGPL, with
33671         Paul Eggert's approval.
33672
33673 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33674
33675         Merge glibc changes into lib/glob.c.
33676
33677         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
33678         2007-10-15 04:59:03 UTC.  Here are the changes:
33679
33680         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
33681
33682         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
33683
33684         * lib/glob.c: Add some branch prediction throughout.
33685
33686         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
33687
33688         [BZ #5103]
33689         * lib/glob.c (glob): Recognize patterns starting \/.
33690
33691         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
33692
33693         [BZ #3996]
33694         * lib/glob.c (attribute_hidden): Define if not defined.
33695         (glob): Unescape dirname, filename or username when needed and not
33696         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
33697         is NULL.  Handle unescaped [ in pattern without closing ].
33698         Don't pass GLOB_CHECK down to recursive glob for directories.
33699         (__glob_pattern_type): New function.
33700         (__glob_pattern_p): Implement using __glob_pattern_type.
33701         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
33702         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
33703         Remove unreachable code.
33704
33705         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
33706
33707         * lib/glob.c (glob_in_dir): Add some comments and asserts to
33708         explain why there are no leaks.
33709
33710         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
33711
33712         [BZ #3253]
33713         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
33714         time, rather allocate increasingly bigger arrays of pointers, if
33715         possible with alloca, if too large with malloc.
33716
33717 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33718
33719         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
33720         Problem reported by H.Merijn Brand in
33721         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
33722         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
33723         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33724
33725 2007-10-15  Bruno Haible  <bruno@clisp.org>
33726
33727         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
33728         with explicit rpl_ prefix.
33729         * lib/fopen.c (fopen): Likewise.
33730         * lib/freopen.c (freopen): Likewise.
33731         * lib/iconv.c (iconv): Likewise.
33732         * lib/iconv_close.c (iconv_close): Likewise.
33733
33734 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33735
33736         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
33737
33738 2007-10-15  Bruno Haible  <bruno@clisp.org>
33739
33740         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
33741         <stddef.h> instead of <stdlib.h> since we only need NULL.
33742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33743
33744 2007-10-15  Bruno Haible  <bruno@clisp.org>
33745
33746         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
33747         Replace paragraph talking about LIBOBJS.
33748         Reported by Colin Watson <cjwatson@debian.org>.
33749
33750 2007-10-15  Bruno Haible  <bruno@clisp.org>
33751
33752         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
33753         <stdlib.h> before using NULL.
33754
33755 2007-10-15  Simon Josefsson  <simon@josefsson.org>
33756
33757         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
33758         Reported by Albert Chin <china@thewrittenword.com>.
33759
33760 2007-10-14  Bruno Haible  <bruno@clisp.org>
33761
33762         * modules/iconv_open-utf-tests: New file.
33763         * tests/test-iconv-utf.c: New file.
33764
33765         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
33766         * modules/iconv_open-utf: New file.
33767         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
33768         (iconv, iconv_close): New declarations.
33769         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
33770         be defined.
33771         (iconv_open): Add special handling of conversion between UTF-8 and
33772         UTF-{16,32}{BE,LE}.
33773         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
33774         * lib/iconv_close.c: New file.
33775         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
33776         gl_FUNC_ICONV_OPEN.
33777         (gl_FUNC_ICONV_OPEN): Use it.
33778         (gl_FUNC_ICONV_OPEN_UTF): New macro.
33779         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
33780         and REPLACE_ICONV_UTF.
33781         * modules/iconv_open (Depends-on): Add c-strcase.
33782         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
33783         ICONV_CONST.
33784         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
33785
33786 2007-10-13  Albert Chin  <china@thewrittenword.com>
33787             Bruno Haible  <bruno@clisp.org>
33788
33789         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
33790         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
33791
33792 2007-10-13  Bruno Haible  <bruno@clisp.org>
33793
33794         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
33795         defined, use the ISO C99 inline semantics.
33796         * lib/argp.h (ARGP_EI): Likewise.
33797
33798 2007-10-13  Bruno Haible  <bruno@clisp.org>
33799
33800         Handle 'inline' change in gcc 4.3.0.
33801         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
33802         argp_fmtstream_write, argp_fmtstream_set_lmargin,
33803         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
33804         argp_fmtstream_point): Disable 'extern' declaration if the function
33805         definition is going to be provided inline.
33806         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
33807         semantics, not the ISO C99 inline semantics.
33808         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
33809         'extern' declaration if the function definition is going to be provided
33810         inline.
33811         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
33812         the GNU C inline semantics, not the ISO C99 inline semantics. With
33813         GCC 4.2, avoid a warning.
33814
33815 2007-10-13  Bruno Haible  <bruno@clisp.org>
33816
33817         * lib/freading.h (freading): Enable the use of __freading for
33818         glibc >= 2.7.
33819         * lib/freading.c (freading): Likewise.
33820
33821 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33822
33823         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
33824         "warning: C99 inline functions are not supported; using GNU89".
33825
33826 2007-10-12  Bruno Haible  <bruno@clisp.org>
33827
33828         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
33829         of 2.
33830         * tests/test-ceilf2.c: New file.
33831         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
33832
33833         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
33834         * modules/ceilf-tests: Update.
33835
33836 2007-10-12  Bruno Haible  <bruno@clisp.org>
33837
33838         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
33839         of 2.
33840         * tests/test-floorf2.c: New file.
33841         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
33842
33843         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
33844         * modules/floorf-tests: Update.
33845
33846 2007-10-12  Bruno Haible  <bruno@clisp.org>
33847
33848         * tests/test-trunc2.c: New file.
33849         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
33850
33851         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
33852         * modules/trunc-tests: Update.
33853
33854 2007-10-12  Bruno Haible  <bruno@clisp.org>
33855
33856         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
33857         of 2.
33858         * tests/test-truncf2.c: New file.
33859         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
33860
33861         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
33862         * modules/truncf-tests: Update.
33863
33864 2007-10-11  Eric Blake  <ebb9@byu.net>
33865
33866         Don't claim strerror is broken on Interix.
33867         * doc/functions/strerror.texi (strerror): Known broken systems are
33868         now Solaris 8, and not Interix.
33869         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
33870         Interix on cross-compile.
33871         Reported by Martin Koeppe in
33872         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
33873
33874 2007-10-11  Bruno Haible  <bruno@clisp.org>
33875
33876         * modules/i-ring-tests: New file.
33877         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
33878         instead of assert.
33879
33880 2007-10-11  Bruno Haible  <bruno@clisp.org>
33881
33882         * modules/filenamecat-tests: New file.
33883         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
33884         * lib/filenamecat.c: Remove test code.
33885
33886 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33887
33888         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
33889
33890         * lib/strerror.c: Include <string.h> always, to test interface,
33891         and to remove the need for the dummy.
33892         Include intprops.h to compute width instead of doing it ourselves
33893         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
33894         (strerror): Define it to return NULL if there's no system strerror.
33895         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
33896         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
33897         ancient pre-strerror Unix systems well any more.  Saying "unknown
33898         system error" is enough.
33899         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
33900         simpler strerror.c implementation.
33901         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
33902         Simplify the tests to reflect the simpler strerror implementation.
33903         * modules/strerror (Depends-on): Add intprops.
33904
33905 2007-10-09  Eric Blake  <ebb9@byu.net>
33906
33907         Silence test-fpending.
33908         * modules/fpending-tests (Files): Add wrapper script.
33909         * tests/test-fpending.sh: New file.
33910
33911 2007-10-09  Bruno Haible  <bruno@clisp.org>
33912
33913         * MODULES.html.sh (func_module): Don't create a hyperlink for
33914         function names like 'printf_frexp'.
33915         (Misc): Add crc, memxor.
33916         (Characteristics of floating types): New section.
33917         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
33918         isnanf-nolibm, signbit, trunc, truncf, truncl.
33919         (Enhancements for ISO C 99 functions): New subsection Input/output.
33920         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
33921         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
33922         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
33923         (Compatibility checks for POSIX:2001 functions): Add clock-time.
33924         (Enhancements for POSIX:2001 functions): Add chdir-long.
33925         (File system functions): Add areadlink, chdir-safer, read-file.
33926         Remove cycle-check.
33927         (File system as inode set): New section.
33928         (Date and time): Add gethrxtime.
33929         (Multithreading): Add openmp.
33930         (Internationalization functions): Add localename.
33931         (Unicode string functions): Add unistr/u*-mbsnlen.
33932         (Support for maintaining and releasing projects): Add git-version-gen.
33933         (Lone files): Remove directories.
33934
33935 2007-10-08  Ben Pfaff  <blp@gnu.org>
33936
33937         * lib/xmalloca.h: Fix typo in comment.
33938
33939 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33940
33941         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
33942         when avoiding problems with integer overflow.  Use a portable test
33943         instead.
33944
33945 2007-10-08  Simon Josefsson  <simon@josefsson.org>
33946
33947         * modules/dummy (License): Change to LGPLv2+.
33948         * modules/float (License): Likewise
33949         * modules/realloc (License): Likewise
33950         * modules/stdlib (License): Likewise
33951
33952 2007-10-07  Bruno Haible  <bruno@clisp.org>
33953
33954         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
33955         * floor.c (TWO_MANT_DIG): Likewise.
33956         * ceil.c (TWO_MANT_DIG): Likewise.
33957         Reported by Ben Pfaff.
33958
33959 2007-10-07  Bruno Haible  <bruno@clisp.org>
33960
33961         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
33962         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
33963         * lib/frexp.c (FUNC): Likewise.
33964         * lib/printf-frexp.h (printf_frexp): Likewise.
33965         * lib/printf-frexpl.h (printf_frexpl): Likewise.
33966         * lib/printf-frexp.c (FUNC): Likewise.
33967         Suggested by Jim Meyering.
33968
33969 2007-10-07  Jim Meyering  <meyering@redhat.com>
33970
33971         Make xnanosleep's integer overflow test more robust.
33972         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
33973         so that gcc-4.3.0 doesn't optimize away this test for overflow.
33974
33975 2007-10-07  Bruno Haible  <bruno@clisp.org>
33976
33977         * NEWS: Mention the license change.
33978
33979         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
33980         abbreviations in the modules files.
33981
33982         Change copyright notice from GPLv2+ to GPLv3+.
33983         * README: Change copyright notice.
33984         * MODULES.html.sh: Likewise.
33985         * build-aux/bootstrap.conf: Likewise.
33986         * build-aux/config.libpath: Likewise.
33987         * build-aux/csharpcomp.sh.in: Likewise.
33988         * build-aux/csharpexec.sh.in: Likewise.
33989         * build-aux/install-reloc: Likewise.
33990         * build-aux/javacomp.sh.in: Likewise.
33991         * build-aux/javaexec.sh.in: Likewise.
33992         * build-aux/ldd.sh.in: Likewise.
33993         * build-aux/reloc-ldflags: Likewise.
33994         * build-aux/relocatable.sh.in: Likewise.
33995         * build-aux/x-to-1.in: Likewise.
33996         * check-module: Likewise.
33997         * config/srclistvars.sh: Likewise.
33998         * gnulib-tool: Likewise.
33999         * lib/acl-internal.h: Likewise.
34000         * lib/acl.c: Likewise.
34001         * lib/acl.h: Likewise.
34002         * lib/acl_entries.c: Likewise.
34003         * lib/areadlink-with-size.c: Likewise.
34004         * lib/areadlink.c: Likewise.
34005         * lib/areadlink.h: Likewise.
34006         * lib/argmatch.c: Likewise.
34007         * lib/argmatch.h: Likewise.
34008         * lib/argp-ba.c: Likewise.
34009         * lib/argp-eexst.c: Likewise.
34010         * lib/argp-fmtstream.c: Likewise.
34011         * lib/argp-fmtstream.h: Likewise.
34012         * lib/argp-fs-xinl.c: Likewise.
34013         * lib/argp-help.c: Likewise.
34014         * lib/argp-namefrob.h: Likewise.
34015         * lib/argp-parse.c: Likewise.
34016         * lib/argp-pin.c: Likewise.
34017         * lib/argp-pv.c: Likewise.
34018         * lib/argp-pvh.c: Likewise.
34019         * lib/argp-xinl.c: Likewise.
34020         * lib/argp.h: Likewise.
34021         * lib/at-func.c: Likewise.
34022         * lib/atanl.c: Likewise.
34023         * lib/backupfile.c: Likewise.
34024         * lib/backupfile.h: Likewise.
34025         * lib/basename.c: Likewise.
34026         * lib/binary-io.h: Likewise.
34027         * lib/byteswap.in.h: Likewise.
34028         * lib/c-stack.c: Likewise.
34029         * lib/c-stack.h: Likewise.
34030         * lib/c-strcasestr.c: Likewise.
34031         * lib/c-strcasestr.h: Likewise.
34032         * lib/c-strstr.c: Likewise.
34033         * lib/c-strstr.h: Likewise.
34034         * lib/c-strtod.c: Likewise.
34035         * lib/calloc.c: Likewise.
34036         * lib/canon-host.c: Likewise.
34037         * lib/canon-host.h: Likewise.
34038         * lib/canonicalize-lgpl.c: Likewise.
34039         * lib/canonicalize.c: Likewise.
34040         * lib/canonicalize.h: Likewise.
34041         * lib/ceil.c: Likewise.
34042         * lib/ceilf.c: Likewise.
34043         * lib/ceill.c: Likewise.
34044         * lib/chdir-long.c: Likewise.
34045         * lib/chdir-long.h: Likewise.
34046         * lib/chdir-safer.c: Likewise.
34047         * lib/chdir-safer.h: Likewise.
34048         * lib/chown.c: Likewise.
34049         * lib/classpath.c: Likewise.
34050         * lib/classpath.h: Likewise.
34051         * lib/clean-temp.c: Likewise.
34052         * lib/clean-temp.h: Likewise.
34053         * lib/cloexec.c: Likewise.
34054         * lib/close-stream.c: Likewise.
34055         * lib/closein.c: Likewise.
34056         * lib/closein.h: Likewise.
34057         * lib/closeout.c: Likewise.
34058         * lib/closeout.h: Likewise.
34059         * lib/concat-filename.c: Likewise.
34060         * lib/copy-file.c: Likewise.
34061         * lib/copy-file.h: Likewise.
34062         * lib/count-one-bits.h: Likewise.
34063         * lib/crc.c: Likewise.
34064         * lib/crc.h: Likewise.
34065         * lib/creat-safer.c: Likewise.
34066         * lib/csharpcomp.c: Likewise.
34067         * lib/csharpcomp.h: Likewise.
34068         * lib/csharpexec.c: Likewise.
34069         * lib/csharpexec.h: Likewise.
34070         * lib/cycle-check.c: Likewise.
34071         * lib/cycle-check.h: Likewise.
34072         * lib/diacrit.c: Likewise.
34073         * lib/diacrit.h: Likewise.
34074         * lib/diffseq.h: Likewise.
34075         * lib/dirchownmod.c: Likewise.
34076         * lib/dirent.in.h: Likewise.
34077         * lib/dirfd.c: Likewise.
34078         * lib/dirfd.h: Likewise.
34079         * lib/dirname.c: Likewise.
34080         * lib/dirname.h: Likewise.
34081         * lib/dummy.c: Likewise.
34082         * lib/dup-safer.c: Likewise.
34083         * lib/dup2.c: Likewise.
34084         * lib/eealloc.h: Likewise.
34085         * lib/error.c: Likewise.
34086         * lib/error.h: Likewise.
34087         * lib/euidaccess.c: Likewise.
34088         * lib/exclude.c: Likewise.
34089         * lib/exclude.h: Likewise.
34090         * lib/execute.c: Likewise.
34091         * lib/execute.h: Likewise.
34092         * lib/exitfail.c: Likewise.
34093         * lib/exitfail.h: Likewise.
34094         * lib/expl.c: Likewise.
34095         * lib/fatal-signal.c: Likewise.
34096         * lib/fatal-signal.h: Likewise.
34097         * lib/fbufmode.c: Likewise.
34098         * lib/fbufmode.h: Likewise.
34099         * lib/fchdir.c: Likewise.
34100         * lib/fchmodat.c: Likewise.
34101         * lib/fchownat.c: Likewise.
34102         * lib/fcntl--.h: Likewise.
34103         * lib/fcntl-safer.h: Likewise.
34104         * lib/fcntl.in.h: Likewise.
34105         * lib/fd-safer.c: Likewise.
34106         * lib/fflush.c: Likewise.
34107         * lib/file-has-acl.c: Likewise.
34108         * lib/file-set.c: Likewise.
34109         * lib/file-type.c: Likewise.
34110         * lib/file-type.h: Likewise.
34111         * lib/fileblocks.c: Likewise.
34112         * lib/filemode.c: Likewise.
34113         * lib/filemode.h: Likewise.
34114         * lib/filename.h: Likewise.
34115         * lib/filenamecat.c: Likewise.
34116         * lib/filenamecat.h: Likewise.
34117         * lib/findprog.c: Likewise.
34118         * lib/findprog.h: Likewise.
34119         * lib/float.in.h: Likewise.
34120         * lib/floor.c: Likewise.
34121         * lib/floorf.c: Likewise.
34122         * lib/floorl.c: Likewise.
34123         * lib/fopen-safer.c: Likewise.
34124         * lib/fopen.c: Likewise.
34125         * lib/fpending.c: Likewise.
34126         * lib/fpending.h: Likewise.
34127         * lib/fprintf.c: Likewise.
34128         * lib/fprintftime.h: Likewise.
34129         * lib/fpucw.h: Likewise.
34130         * lib/fpurge.c: Likewise.
34131         * lib/fpurge.h: Likewise.
34132         * lib/freadable.c: Likewise.
34133         * lib/freadable.h: Likewise.
34134         * lib/freadahead.c: Likewise.
34135         * lib/freadahead.h: Likewise.
34136         * lib/freading.c: Likewise.
34137         * lib/freading.h: Likewise.
34138         * lib/free.c: Likewise.
34139         * lib/freopen.c: Likewise.
34140         * lib/frexp.c: Likewise.
34141         * lib/frexpl.c: Likewise.
34142         * lib/fseek.c: Likewise.
34143         * lib/fseterr.c: Likewise.
34144         * lib/fseterr.h: Likewise.
34145         * lib/fstatat.c: Likewise.
34146         * lib/fstrcmp.c: Likewise.
34147         * lib/fstrcmp.h: Likewise.
34148         * lib/fsusage.c: Likewise.
34149         * lib/fsusage.h: Likewise.
34150         * lib/ftell.c: Likewise.
34151         * lib/ftello.c: Likewise.
34152         * lib/fts-cycle.c: Likewise.
34153         * lib/fts.c: Likewise.
34154         * lib/fts_.h: Likewise.
34155         * lib/full-read.c: Likewise.
34156         * lib/full-read.h: Likewise.
34157         * lib/full-write.c: Likewise.
34158         * lib/full-write.h: Likewise.
34159         * lib/fwritable.c: Likewise.
34160         * lib/fwritable.h: Likewise.
34161         * lib/fwriteerror.c: Likewise.
34162         * lib/fwriteerror.h: Likewise.
34163         * lib/fwriting.c: Likewise.
34164         * lib/fwriting.h: Likewise.
34165         * lib/gcd.c: Likewise.
34166         * lib/gcd.h: Likewise.
34167         * lib/getcwd.c: Likewise.
34168         * lib/getdate.h: Likewise.
34169         * lib/getdate.y: Likewise.
34170         * lib/getdomainname.c: Likewise.
34171         * lib/getdomainname.h: Likewise.
34172         * lib/getgroups.c: Likewise.
34173         * lib/gethostname.c: Likewise.
34174         * lib/gethrxtime.c: Likewise.
34175         * lib/gethrxtime.h: Likewise.
34176         * lib/getloadavg.c: Likewise.
34177         * lib/getndelim2.c: Likewise.
34178         * lib/getndelim2.h: Likewise.
34179         * lib/getnline.c: Likewise.
34180         * lib/getnline.h: Likewise.
34181         * lib/getopt.c: Likewise.
34182         * lib/getopt.in.h: Likewise.
34183         * lib/getopt1.c: Likewise.
34184         * lib/getopt_int.h: Likewise.
34185         * lib/getpagesize.h: Likewise.
34186         * lib/getsubopt.c: Likewise.
34187         * lib/gettime.c: Likewise.
34188         * lib/getugroups.c: Likewise.
34189         * lib/getugroups.h: Likewise.
34190         * lib/getusershell.c: Likewise.
34191         * lib/gl_anyavltree_list1.h: Likewise.
34192         * lib/gl_anyavltree_list2.h: Likewise.
34193         * lib/gl_anyhash_list1.h: Likewise.
34194         * lib/gl_anyhash_list2.h: Likewise.
34195         * lib/gl_anylinked_list1.h: Likewise.
34196         * lib/gl_anylinked_list2.h: Likewise.
34197         * lib/gl_anyrbtree_list1.h: Likewise.
34198         * lib/gl_anyrbtree_list2.h: Likewise.
34199         * lib/gl_anytree_list1.h: Likewise.
34200         * lib/gl_anytree_list2.h: Likewise.
34201         * lib/gl_anytree_oset.h: Likewise.
34202         * lib/gl_anytreehash_list1.h: Likewise.
34203         * lib/gl_anytreehash_list2.h: Likewise.
34204         * lib/gl_array_list.c: Likewise.
34205         * lib/gl_array_list.h: Likewise.
34206         * lib/gl_array_oset.c: Likewise.
34207         * lib/gl_array_oset.h: Likewise.
34208         * lib/gl_avltree_list.c: Likewise.
34209         * lib/gl_avltree_list.h: Likewise.
34210         * lib/gl_avltree_oset.c: Likewise.
34211         * lib/gl_avltree_oset.h: Likewise.
34212         * lib/gl_avltreehash_list.c: Likewise.
34213         * lib/gl_avltreehash_list.h: Likewise.
34214         * lib/gl_carray_list.c: Likewise.
34215         * lib/gl_carray_list.h: Likewise.
34216         * lib/gl_linked_list.c: Likewise.
34217         * lib/gl_linked_list.h: Likewise.
34218         * lib/gl_linkedhash_list.c: Likewise.
34219         * lib/gl_linkedhash_list.h: Likewise.
34220         * lib/gl_list.c: Likewise.
34221         * lib/gl_list.h: Likewise.
34222         * lib/gl_oset.c: Likewise.
34223         * lib/gl_oset.h: Likewise.
34224         * lib/gl_rbtree_list.c: Likewise.
34225         * lib/gl_rbtree_list.h: Likewise.
34226         * lib/gl_rbtree_oset.c: Likewise.
34227         * lib/gl_rbtree_oset.h: Likewise.
34228         * lib/gl_rbtreehash_list.c: Likewise.
34229         * lib/gl_rbtreehash_list.h: Likewise.
34230         * lib/gl_sublist.c: Likewise.
34231         * lib/gl_sublist.h: Likewise.
34232         * lib/group-member.c: Likewise.
34233         * lib/group-member.h: Likewise.
34234         * lib/hard-locale.c: Likewise.
34235         * lib/hard-locale.h: Likewise.
34236         * lib/hash-pjw.c: Likewise.
34237         * lib/hash-pjw.h: Likewise.
34238         * lib/hash-triple.c: Likewise.
34239         * lib/hash.c: Likewise.
34240         * lib/hash.h: Likewise.
34241         * lib/human.c: Likewise.
34242         * lib/human.h: Likewise.
34243         * lib/i-ring.c: Likewise.
34244         * lib/i-ring.h: Likewise.
34245         * lib/idcache.c: Likewise.
34246         * lib/imaxabs.c: Likewise.
34247         * lib/imaxdiv.c: Likewise.
34248         * lib/inet_pton.c: Likewise.
34249         * lib/inet_pton.h: Likewise.
34250         * lib/intprops.h: Likewise.
34251         * lib/inttostr.c: Likewise.
34252         * lib/inttostr.h: Likewise.
34253         * lib/inttypes.in.h: Likewise.
34254         * lib/isapipe.c: Likewise.
34255         * lib/isdir.c: Likewise.
34256         * lib/isnan.c: Likewise.
34257         * lib/isnan.h: Likewise.
34258         * lib/isnanf.c: Likewise.
34259         * lib/isnanf.h: Likewise.
34260         * lib/isnanl-nolibm.h: Likewise.
34261         * lib/isnanl.c: Likewise.
34262         * lib/isnanl.h: Likewise.
34263         * lib/javacomp.c: Likewise.
34264         * lib/javacomp.h: Likewise.
34265         * lib/javaexec.c: Likewise.
34266         * lib/javaexec.h: Likewise.
34267         * lib/javaversion.c: Likewise.
34268         * lib/javaversion.h: Likewise.
34269         * lib/javaversion.java: Likewise.
34270         * lib/lbrkprop.h: Likewise.
34271         * lib/lchmod.h: Likewise.
34272         * lib/lchown.c: Likewise.
34273         * lib/ldexpl.c: Likewise.
34274         * lib/linebreak.c: Likewise.
34275         * lib/linebreak.h: Likewise.
34276         * lib/linebuffer.c: Likewise.
34277         * lib/linebuffer.h: Likewise.
34278         * lib/locale.in.h: Likewise.
34279         * lib/logl.c: Likewise.
34280         * lib/long-options.c: Likewise.
34281         * lib/long-options.h: Likewise.
34282         * lib/lstat.c: Likewise.
34283         * lib/lstat.h: Likewise.
34284         * lib/math.in.h: Likewise.
34285         * lib/mbchar.c: Likewise.
34286         * lib/mbchar.h: Likewise.
34287         * lib/mbfile.h: Likewise.
34288         * lib/mbiter.h: Likewise.
34289         * lib/mbscasecmp.c: Likewise.
34290         * lib/mbscasestr.c: Likewise.
34291         * lib/mbschr.c: Likewise.
34292         * lib/mbscspn.c: Likewise.
34293         * lib/mbslen.c: Likewise.
34294         * lib/mbsncasecmp.c: Likewise.
34295         * lib/mbsnlen.c: Likewise.
34296         * lib/mbspbrk.c: Likewise.
34297         * lib/mbspcasecmp.c: Likewise.
34298         * lib/mbsrchr.c: Likewise.
34299         * lib/mbssep.c: Likewise.
34300         * lib/mbsspn.c: Likewise.
34301         * lib/mbsstr.c: Likewise.
34302         * lib/mbstok_r.c: Likewise.
34303         * lib/mbswidth.c: Likewise.
34304         * lib/mbswidth.h: Likewise.
34305         * lib/mbuiter.h: Likewise.
34306         * lib/memcasecmp.c: Likewise.
34307         * lib/memcasecmp.h: Likewise.
34308         * lib/memchr.c: Likewise.
34309         * lib/memcmp.c: Likewise.
34310         * lib/memcoll.c: Likewise.
34311         * lib/memcoll.h: Likewise.
34312         * lib/memcpy.c: Likewise.
34313         * lib/memrchr.c: Likewise.
34314         * lib/mkancesdirs.c: Likewise.
34315         * lib/mkdir-p.c: Likewise.
34316         * lib/mkdir-p.h: Likewise.
34317         * lib/mkdir.c: Likewise.
34318         * lib/mkdirat.c: Likewise.
34319         * lib/mkdtemp.c: Likewise.
34320         * lib/mkstemp-safer.c: Likewise.
34321         * lib/mkstemp.c: Likewise.
34322         * lib/modechange.c: Likewise.
34323         * lib/modechange.h: Likewise.
34324         * lib/mountlist.c: Likewise.
34325         * lib/mountlist.h: Likewise.
34326         * lib/mpsort.c: Likewise.
34327         * lib/nanosleep.c: Likewise.
34328         * lib/obstack.c: Likewise.
34329         * lib/obstack.h: Likewise.
34330         * lib/open-safer.c: Likewise.
34331         * lib/open.c: Likewise.
34332         * lib/openat-die.c: Likewise.
34333         * lib/openat-priv.h: Likewise.
34334         * lib/openat-proc.c: Likewise.
34335         * lib/openat.c: Likewise.
34336         * lib/openat.h: Likewise.
34337         * lib/pagealign_alloc.c: Likewise.
34338         * lib/pagealign_alloc.h: Likewise.
34339         * lib/physmem.c: Likewise.
34340         * lib/physmem.h: Likewise.
34341         * lib/pipe-safer.c: Likewise.
34342         * lib/pipe.c: Likewise.
34343         * lib/pipe.h: Likewise.
34344         * lib/posixtm.c: Likewise.
34345         * lib/posixtm.h: Likewise.
34346         * lib/posixver.c: Likewise.
34347         * lib/printf-frexp.c: Likewise.
34348         * lib/printf-frexp.h: Likewise.
34349         * lib/printf-frexpl.c: Likewise.
34350         * lib/printf-frexpl.h: Likewise.
34351         * lib/printf.c: Likewise.
34352         * lib/progname.c: Likewise.
34353         * lib/progname.h: Likewise.
34354         * lib/progreloc.c: Likewise.
34355         * lib/putenv.c: Likewise.
34356         * lib/quote.c: Likewise.
34357         * lib/quote.h: Likewise.
34358         * lib/quotearg.c: Likewise.
34359         * lib/quotearg.h: Likewise.
34360         * lib/raise.c: Likewise.
34361         * lib/readline.c: Likewise.
34362         * lib/readline.h: Likewise.
34363         * lib/readlink.c: Likewise.
34364         * lib/readtokens.c: Likewise.
34365         * lib/readtokens.h: Likewise.
34366         * lib/readtokens0.c: Likewise.
34367         * lib/readtokens0.h: Likewise.
34368         * lib/readutmp.c: Likewise.
34369         * lib/readutmp.h: Likewise.
34370         * lib/realloc.c: Likewise.
34371         * lib/relocwrapper.c: Likewise.
34372         * lib/rename-dest-slash.c: Likewise.
34373         * lib/rename.c: Likewise.
34374         * lib/rmdir.c: Likewise.
34375         * lib/rpmatch.c: Likewise.
34376         * lib/safe-read.c: Likewise.
34377         * lib/safe-read.h: Likewise.
34378         * lib/safe-write.c: Likewise.
34379         * lib/safe-write.h: Likewise.
34380         * lib/same-inode.h: Likewise.
34381         * lib/same.c: Likewise.
34382         * lib/same.h: Likewise.
34383         * lib/save-cwd.c: Likewise.
34384         * lib/save-cwd.h: Likewise.
34385         * lib/savedir.c: Likewise.
34386         * lib/savedir.h: Likewise.
34387         * lib/savewd.c: Likewise.
34388         * lib/savewd.h: Likewise.
34389         * lib/search.in.h: Likewise.
34390         * lib/setenv.c: Likewise.
34391         * lib/setenv.h: Likewise.
34392         * lib/settime.c: Likewise.
34393         * lib/sh-quote.c: Likewise.
34394         * lib/sh-quote.h: Likewise.
34395         * lib/sig2str.c: Likewise.
34396         * lib/sig2str.h: Likewise.
34397         * lib/signal.in.h: Likewise.
34398         * lib/signbitd.c: Likewise.
34399         * lib/signbitf.c: Likewise.
34400         * lib/signbitl.c: Likewise.
34401         * lib/sigprocmask.c: Likewise.
34402         * lib/sincosl.c: Likewise.
34403         * lib/sleep.c: Likewise.
34404         * lib/sprintf.c: Likewise.
34405         * lib/sqrtl.c: Likewise.
34406         * lib/stat-time.h: Likewise.
34407         * lib/stdio--.h: Likewise.
34408         * lib/stdio-safer.h: Likewise.
34409         * lib/stdlib--.h: Likewise.
34410         * lib/stdlib-safer.h: Likewise.
34411         * lib/stdlib.in.h: Likewise.
34412         * lib/stpcpy.c: Likewise.
34413         * lib/stpncpy.c: Likewise.
34414         * lib/strchrnul.c: Likewise.
34415         * lib/strcspn.c: Likewise.
34416         * lib/strerror.c: Likewise.
34417         * lib/strftime.c: Likewise.
34418         * lib/strftime.h: Likewise.
34419         * lib/striconveh.c: Likewise.
34420         * lib/striconveh.h: Likewise.
34421         * lib/striconveha.c: Likewise.
34422         * lib/striconveha.h: Likewise.
34423         * lib/stripslash.c: Likewise.
34424         * lib/strnlen1.c: Likewise.
34425         * lib/strnlen1.h: Likewise.
34426         * lib/strtod.c: Likewise.
34427         * lib/strtoimax.c: Likewise.
34428         * lib/strtok_r.c: Likewise.
34429         * lib/strtol.c: Likewise.
34430         * lib/strtoll.c: Likewise.
34431         * lib/strtoul.c: Likewise.
34432         * lib/strtoull.c: Likewise.
34433         * lib/sysexits.in.h: Likewise.
34434         * lib/tempname.c: Likewise.
34435         * lib/tempname.h: Likewise.
34436         * lib/timespec.h: Likewise.
34437         * lib/tls.c: Likewise.
34438         * lib/tls.h: Likewise.
34439         * lib/tmpdir.c: Likewise.
34440         * lib/tmpdir.h: Likewise.
34441         * lib/tmpfile-safer.c: Likewise.
34442         * lib/tmpfile.c: Likewise.
34443         * lib/trigl.c: Likewise.
34444         * lib/trigl.h: Likewise.
34445         * lib/trim.c: Likewise.
34446         * lib/trim.h: Likewise.
34447         * lib/trunc.c: Likewise.
34448         * lib/truncf.c: Likewise.
34449         * lib/truncl.c: Likewise.
34450         * lib/tsearch.c: Likewise.
34451         * lib/unicodeio.c: Likewise.
34452         * lib/unicodeio.h: Likewise.
34453         * lib/unistd--.h: Likewise.
34454         * lib/unistd-safer.h: Likewise.
34455         * lib/unistdio/ulc-fprintf.c: Likewise.
34456         * lib/unistdio/ulc-vfprintf.c: Likewise.
34457         * lib/unlinkdir.c: Likewise.
34458         * lib/unlinkdir.h: Likewise.
34459         * lib/unlocked-io.h: Likewise.
34460         * lib/unsetenv.c: Likewise.
34461         * lib/userspec.c: Likewise.
34462         * lib/utime.c: Likewise.
34463         * lib/utimecmp.c: Likewise.
34464         * lib/utimecmp.h: Likewise.
34465         * lib/utimens.c: Likewise.
34466         * lib/verify.h: Likewise.
34467         * lib/verror.c: Likewise.
34468         * lib/verror.h: Likewise.
34469         * lib/version-etc-fsf.c: Likewise.
34470         * lib/version-etc.c: Likewise.
34471         * lib/version-etc.h: Likewise.
34472         * lib/vfprintf.c: Likewise.
34473         * lib/vprintf.c: Likewise.
34474         * lib/vsprintf.c: Likewise.
34475         * lib/w32spawn.h: Likewise.
34476         * lib/wait-process.c: Likewise.
34477         * lib/wait-process.h: Likewise.
34478         * lib/wcwidth.c: Likewise.
34479         * lib/write-any-file.c: Likewise.
34480         * lib/xalloc-die.c: Likewise.
34481         * lib/xalloc.h: Likewise.
34482         * lib/xasprintf.c: Likewise.
34483         * lib/xgetcwd.c: Likewise.
34484         * lib/xgetcwd.h: Likewise.
34485         * lib/xgetdomainname.c: Likewise.
34486         * lib/xgetdomainname.h: Likewise.
34487         * lib/xgethostname.c: Likewise.
34488         * lib/xmalloc.c: Likewise.
34489         * lib/xmalloca.c: Likewise.
34490         * lib/xmalloca.h: Likewise.
34491         * lib/xmemcoll.c: Likewise.
34492         * lib/xnanosleep.c: Likewise.
34493         * lib/xreadlink.c: Likewise.
34494         * lib/xreadlink.h: Likewise.
34495         * lib/xsetenv.c: Likewise.
34496         * lib/xsetenv.h: Likewise.
34497         * lib/xstriconv.c: Likewise.
34498         * lib/xstriconv.h: Likewise.
34499         * lib/xstrndup.c: Likewise.
34500         * lib/xstrndup.h: Likewise.
34501         * lib/xstrtod.c: Likewise.
34502         * lib/xstrtod.h: Likewise.
34503         * lib/xstrtol-error.c: Likewise.
34504         * lib/xstrtol.c: Likewise.
34505         * lib/xstrtol.h: Likewise.
34506         * lib/xtime.h: Likewise.
34507         * lib/xvasprintf.c: Likewise.
34508         * lib/xvasprintf.h: Likewise.
34509         * lib/yesno.c: Likewise.
34510         * lib/yesno.h: Likewise.
34511         * posix-modules: Likewise.
34512         * tests/test-alloca-opt.c: Likewise.
34513         * tests/test-arcfour.c: Likewise.
34514         * tests/test-arctwo.c: Likewise.
34515         * tests/test-argmatch.c: Likewise.
34516         * tests/test-argp-2.sh: Likewise.
34517         * tests/test-argp.c: Likewise.
34518         * tests/test-arpa_inet.c: Likewise.
34519         * tests/test-array_list.c: Likewise.
34520         * tests/test-array_oset.c: Likewise.
34521         * tests/test-atexit.c: Likewise.
34522         * tests/test-avltree_list.c: Likewise.
34523         * tests/test-avltree_oset.c: Likewise.
34524         * tests/test-avltreehash_list.c: Likewise.
34525         * tests/test-base64.c: Likewise.
34526         * tests/test-binary-io.c: Likewise.
34527         * tests/test-byteswap.c: Likewise.
34528         * tests/test-c-ctype.c: Likewise.
34529         * tests/test-c-strcasecmp.c: Likewise.
34530         * tests/test-c-strcasestr.c: Likewise.
34531         * tests/test-c-strncasecmp.c: Likewise.
34532         * tests/test-c-strstr.c: Likewise.
34533         * tests/test-canonicalize-lgpl.c: Likewise.
34534         * tests/test-canonicalize.c: Likewise.
34535         * tests/test-carray_list.c: Likewise.
34536         * tests/test-ceilf.c: Likewise.
34537         * tests/test-ceill.c: Likewise.
34538         * tests/test-count-one-bits.c: Likewise.
34539         * tests/test-crc.c: Likewise.
34540         * tests/test-dirname.c: Likewise.
34541         * tests/test-fbufmode.c: Likewise.
34542         * tests/test-fcntl.c: Likewise.
34543         * tests/test-fflush.c: Likewise.
34544         * tests/test-floorf.c: Likewise.
34545         * tests/test-floorl.c: Likewise.
34546         * tests/test-fopen.c: Likewise.
34547         * tests/test-fprintf-posix.c: Likewise.
34548         * tests/test-fprintf-posix.h: Likewise.
34549         * tests/test-fpurge.c: Likewise.
34550         * tests/test-freadable.c: Likewise.
34551         * tests/test-freadahead.c: Likewise.
34552         * tests/test-freading.c: Likewise.
34553         * tests/test-freopen.c: Likewise.
34554         * tests/test-frexp.c: Likewise.
34555         * tests/test-frexpl.c: Likewise.
34556         * tests/test-fseek.c: Likewise.
34557         * tests/test-fseeko.c: Likewise.
34558         * tests/test-fseterr.c: Likewise.
34559         * tests/test-fstrcmp.c: Likewise.
34560         * tests/test-ftell.c: Likewise.
34561         * tests/test-ftello.c: Likewise.
34562         * tests/test-fwritable.c: Likewise.
34563         * tests/test-fwriting.c: Likewise.
34564         * tests/test-getaddrinfo.c: Likewise.
34565         * tests/test-getpass.c: Likewise.
34566         * tests/test-gettimeofday.c: Likewise.
34567         * tests/test-hmac-md5.c: Likewise.
34568         * tests/test-hmac-sha1.c: Likewise.
34569         * tests/test-iconv.c: Likewise.
34570         * tests/test-iconvme.c: Likewise.
34571         * tests/test-inttypes.c: Likewise.
34572         * tests/test-isnan.c: Likewise.
34573         * tests/test-isnanf.c: Likewise.
34574         * tests/test-isnanl-nolibm.c: Likewise.
34575         * tests/test-isnanl.c: Likewise.
34576         * tests/test-isnanl.h: Likewise.
34577         * tests/test-ldexpl.c: Likewise.
34578         * tests/test-linked_list.c: Likewise.
34579         * tests/test-linkedhash_list.c: Likewise.
34580         * tests/test-locale.c: Likewise.
34581         * tests/test-localename.c: Likewise.
34582         * tests/test-lock.c: Likewise.
34583         * tests/test-lseek.c: Likewise.
34584         * tests/test-malloca.c: Likewise.
34585         * tests/test-math.c: Likewise.
34586         * tests/test-mbscasecmp.c: Likewise.
34587         * tests/test-mbscasestr1.c: Likewise.
34588         * tests/test-mbscasestr2.c: Likewise.
34589         * tests/test-mbscasestr3.c: Likewise.
34590         * tests/test-mbscasestr4.c: Likewise.
34591         * tests/test-mbschr.c: Likewise.
34592         * tests/test-mbscspn.c: Likewise.
34593         * tests/test-mbsncasecmp.c: Likewise.
34594         * tests/test-mbspbrk.c: Likewise.
34595         * tests/test-mbspcasecmp.c: Likewise.
34596         * tests/test-mbsrchr.c: Likewise.
34597         * tests/test-mbsspn.c: Likewise.
34598         * tests/test-mbsstr1.c: Likewise.
34599         * tests/test-mbsstr2.c: Likewise.
34600         * tests/test-mbsstr3.c: Likewise.
34601         * tests/test-md5.c: Likewise.
34602         * tests/test-memmem.c: Likewise.
34603         * tests/test-netinet_in.c: Likewise.
34604         * tests/test-open.c: Likewise.
34605         * tests/test-printf-frexp.c: Likewise.
34606         * tests/test-printf-frexpl.c: Likewise.
34607         * tests/test-printf-posix.c: Likewise.
34608         * tests/test-printf-posix.h: Likewise.
34609         * tests/test-rbtree_list.c: Likewise.
34610         * tests/test-rbtree_oset.c: Likewise.
34611         * tests/test-rbtreehash_list.c: Likewise.
34612         * tests/test-read-file.c: Likewise.
34613         * tests/test-rijndael.c: Likewise.
34614         * tests/test-search.c: Likewise.
34615         * tests/test-signbit.c: Likewise.
34616         * tests/test-sleep.c: Likewise.
34617         * tests/test-snprintf-posix.c: Likewise.
34618         * tests/test-snprintf-posix.h: Likewise.
34619         * tests/test-snprintf.c: Likewise.
34620         * tests/test-sprintf-posix.c: Likewise.
34621         * tests/test-sprintf-posix.h: Likewise.
34622         * tests/test-stat-time.c: Likewise.
34623         * tests/test-stdbool.c: Likewise.
34624         * tests/test-stdint.c: Likewise.
34625         * tests/test-stdio.c: Likewise.
34626         * tests/test-stdlib.c: Likewise.
34627         * tests/test-stpncpy.c: Likewise.
34628         * tests/test-strcasestr.c: Likewise.
34629         * tests/test-striconv.c: Likewise.
34630         * tests/test-striconveh.c: Likewise.
34631         * tests/test-striconveha.c: Likewise.
34632         * tests/test-string.c: Likewise.
34633         * tests/test-sys_select.c: Likewise.
34634         * tests/test-sys_socket.c: Likewise.
34635         * tests/test-sys_stat.c: Likewise.
34636         * tests/test-sys_time.c: Likewise.
34637         * tests/test-sysexits.c: Likewise.
34638         * tests/test-time.c: Likewise.
34639         * tests/test-tls.c: Likewise.
34640         * tests/test-trunc.c: Likewise.
34641         * tests/test-truncf.c: Likewise.
34642         * tests/test-truncl.c: Likewise.
34643         * tests/test-unistd.c: Likewise.
34644         * tests/test-vasnprintf-posix.c: Likewise.
34645         * tests/test-vasnprintf-posix2.c: Likewise.
34646         * tests/test-vasnprintf.c: Likewise.
34647         * tests/test-vasprintf-posix.c: Likewise.
34648         * tests/test-vasprintf.c: Likewise.
34649         * tests/test-verify.c: Likewise.
34650         * tests/test-vfprintf-posix.c: Likewise.
34651         * tests/test-vprintf-posix.c: Likewise.
34652         * tests/test-vsnprintf-posix.c: Likewise.
34653         * tests/test-vsnprintf.c: Likewise.
34654         * tests/test-vsprintf-posix.c: Likewise.
34655         * tests/test-wchar.c: Likewise.
34656         * tests/test-wctype.c: Likewise.
34657         * tests/test-wcwidth.c: Likewise.
34658         * tests/test-xstrtol.c: Likewise.
34659         * tests/test-xvasprintf.c: Likewise.
34660         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34661         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34662         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34663         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34664         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34665         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34666         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34667         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34668         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34669         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34670         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34671         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34672         * tests/uniname/test-uninames.c: Likewise.
34673         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34674         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34675         * tests/unistdio/test-u16-printf1.h: Likewise.
34676         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34677         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34678         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34679         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34680         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34681         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34682         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34683         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
34684         * tests/unistdio/test-u32-printf1.h: Likewise.
34685         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34686         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34687         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34688         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34689         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34690         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34691         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34692         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
34693         * tests/unistdio/test-u8-printf1.h: Likewise.
34694         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34695         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34696         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34697         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34698         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34699         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34700         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34701         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
34702         * tests/unistdio/test-ulc-printf1.h: Likewise.
34703         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34704         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34705         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34706         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34707         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34708         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34709         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34710         * tests/uniwidth/test-u16-width.c: Likewise.
34711         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34712         * tests/uniwidth/test-u32-width.c: Likewise.
34713         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34714         * tests/uniwidth/test-u8-width.c: Likewise.
34715         * tests/uniwidth/test-uc_width.c: Likewise.
34716         * config/srclist-update: Likewise.
34717         (fixlicense): Update to GPLv3+.
34718
34719         Change copyright notice from LGPLv2.1+ to LGPLv3+.
34720         * tests/test-tsearch.c: Change copyright notice.
34721
34722         Change copyright notice from LGPLv2.0+ to LGPLv3+.
34723         * lib/c-strcaseeq.h: Change copyright notice.
34724         * lib/streq.h: Likewise.
34725         * lib/uniconv.h: Likewise.
34726         * lib/uniconv/u-conv-from-enc.h: Likewise.
34727         * lib/uniconv/u-conv-to-enc.h: Likewise.
34728         * lib/uniconv/u-strconv-from-enc.h: Likewise.
34729         * lib/uniconv/u-strconv-to-enc.h: Likewise.
34730         * lib/uniconv/u16-conv-from-enc.c: Likewise.
34731         * lib/uniconv/u16-conv-to-enc.c: Likewise.
34732         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
34733         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
34734         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
34735         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
34736         * lib/uniconv/u32-conv-from-enc.c: Likewise.
34737         * lib/uniconv/u32-conv-to-enc.c: Likewise.
34738         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
34739         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
34740         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
34741         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
34742         * lib/uniconv/u8-conv-from-enc.c: Likewise.
34743         * lib/uniconv/u8-conv-to-enc.c: Likewise.
34744         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
34745         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
34746         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
34747         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
34748         * lib/uniname.h: Likewise.
34749         * lib/uniname/uniname.c: Likewise.
34750         * lib/unistdio.h: Likewise.
34751         * lib/unistdio/u-asnprintf.h: Likewise.
34752         * lib/unistdio/u-asprintf.h: Likewise.
34753         * lib/unistdio/u-printf-args.c: Likewise.
34754         * lib/unistdio/u-printf-args.h: Likewise.
34755         * lib/unistdio/u-printf-parse.h: Likewise.
34756         * lib/unistdio/u-snprintf.h: Likewise.
34757         * lib/unistdio/u-sprintf.h: Likewise.
34758         * lib/unistdio/u-vasprintf.h: Likewise.
34759         * lib/unistdio/u-vsnprintf.h: Likewise.
34760         * lib/unistdio/u-vsprintf.h: Likewise.
34761         * lib/unistdio/u16-asnprintf.c: Likewise.
34762         * lib/unistdio/u16-asprintf.c: Likewise.
34763         * lib/unistdio/u16-printf-parse.c: Likewise.
34764         * lib/unistdio/u16-snprintf.c: Likewise.
34765         * lib/unistdio/u16-sprintf.c: Likewise.
34766         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
34767         * lib/unistdio/u16-u16-asprintf.c: Likewise.
34768         * lib/unistdio/u16-u16-snprintf.c: Likewise.
34769         * lib/unistdio/u16-u16-sprintf.c: Likewise.
34770         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
34771         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
34772         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
34773         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
34774         * lib/unistdio/u16-vasnprintf.c: Likewise.
34775         * lib/unistdio/u16-vasprintf.c: Likewise.
34776         * lib/unistdio/u16-vsnprintf.c: Likewise.
34777         * lib/unistdio/u16-vsprintf.c: Likewise.
34778         * lib/unistdio/u32-asnprintf.c: Likewise.
34779         * lib/unistdio/u32-asprintf.c: Likewise.
34780         * lib/unistdio/u32-printf-parse.c: Likewise.
34781         * lib/unistdio/u32-snprintf.c: Likewise.
34782         * lib/unistdio/u32-sprintf.c: Likewise.
34783         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
34784         * lib/unistdio/u32-u32-asprintf.c: Likewise.
34785         * lib/unistdio/u32-u32-snprintf.c: Likewise.
34786         * lib/unistdio/u32-u32-sprintf.c: Likewise.
34787         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
34788         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
34789         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
34790         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
34791         * lib/unistdio/u32-vasnprintf.c: Likewise.
34792         * lib/unistdio/u32-vasprintf.c: Likewise.
34793         * lib/unistdio/u32-vsnprintf.c: Likewise.
34794         * lib/unistdio/u32-vsprintf.c: Likewise.
34795         * lib/unistdio/u8-asnprintf.c: Likewise.
34796         * lib/unistdio/u8-asprintf.c: Likewise.
34797         * lib/unistdio/u8-printf-parse.c: Likewise.
34798         * lib/unistdio/u8-snprintf.c: Likewise.
34799         * lib/unistdio/u8-sprintf.c: Likewise.
34800         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
34801         * lib/unistdio/u8-u8-asprintf.c: Likewise.
34802         * lib/unistdio/u8-u8-snprintf.c: Likewise.
34803         * lib/unistdio/u8-u8-sprintf.c: Likewise.
34804         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
34805         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
34806         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
34807         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
34808         * lib/unistdio/u8-vasnprintf.c: Likewise.
34809         * lib/unistdio/u8-vasprintf.c: Likewise.
34810         * lib/unistdio/u8-vsnprintf.c: Likewise.
34811         * lib/unistdio/u8-vsprintf.c: Likewise.
34812         * lib/unistdio/ulc-asnprintf.c: Likewise.
34813         * lib/unistdio/ulc-asprintf.c: Likewise.
34814         * lib/unistdio/ulc-printf-parse.c: Likewise.
34815         * lib/unistdio/ulc-snprintf.c: Likewise.
34816         * lib/unistdio/ulc-sprintf.c: Likewise.
34817         * lib/unistdio/ulc-vasnprintf.c: Likewise.
34818         * lib/unistdio/ulc-vasprintf.c: Likewise.
34819         * lib/unistdio/ulc-vsnprintf.c: Likewise.
34820         * lib/unistdio/ulc-vsprintf.c: Likewise.
34821         * lib/unistr.h: Likewise.
34822         * lib/unistr/u-cpy-alloc.h: Likewise.
34823         * lib/unistr/u-cpy.h: Likewise.
34824         * lib/unistr/u-endswith.h: Likewise.
34825         * lib/unistr/u-move.h: Likewise.
34826         * lib/unistr/u-set.h: Likewise.
34827         * lib/unistr/u-startswith.h: Likewise.
34828         * lib/unistr/u-stpcpy.h: Likewise.
34829         * lib/unistr/u-stpncpy.h: Likewise.
34830         * lib/unistr/u-strcat.h: Likewise.
34831         * lib/unistr/u-strcpy.h: Likewise.
34832         * lib/unistr/u-strcspn.h: Likewise.
34833         * lib/unistr/u-strdup.h: Likewise.
34834         * lib/unistr/u-strlen.h: Likewise.
34835         * lib/unistr/u-strncat.h: Likewise.
34836         * lib/unistr/u-strncpy.h: Likewise.
34837         * lib/unistr/u-strnlen.h: Likewise.
34838         * lib/unistr/u-strpbrk.h: Likewise.
34839         * lib/unistr/u-strspn.h: Likewise.
34840         * lib/unistr/u-strstr.h: Likewise.
34841         * lib/unistr/u-strtok.h: Likewise.
34842         * lib/unistr/u16-check.c: Likewise.
34843         * lib/unistr/u16-chr.c: Likewise.
34844         * lib/unistr/u16-cmp.c: Likewise.
34845         * lib/unistr/u16-cpy-alloc.c: Likewise.
34846         * lib/unistr/u16-cpy.c: Likewise.
34847         * lib/unistr/u16-endswith.c: Likewise.
34848         * lib/unistr/u16-mblen.c: Likewise.
34849         * lib/unistr/u16-mbsnlen.c: Likewise.
34850         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34851         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34852         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34853         * lib/unistr/u16-mbtouc.c: Likewise.
34854         * lib/unistr/u16-mbtoucr.c: Likewise.
34855         * lib/unistr/u16-move.c: Likewise.
34856         * lib/unistr/u16-next.c: Likewise.
34857         * lib/unistr/u16-prev.c: Likewise.
34858         * lib/unistr/u16-set.c: Likewise.
34859         * lib/unistr/u16-startswith.c: Likewise.
34860         * lib/unistr/u16-stpcpy.c: Likewise.
34861         * lib/unistr/u16-stpncpy.c: Likewise.
34862         * lib/unistr/u16-strcat.c: Likewise.
34863         * lib/unistr/u16-strchr.c: Likewise.
34864         * lib/unistr/u16-strcmp.c: Likewise.
34865         * lib/unistr/u16-strcpy.c: Likewise.
34866         * lib/unistr/u16-strcspn.c: Likewise.
34867         * lib/unistr/u16-strdup.c: Likewise.
34868         * lib/unistr/u16-strlen.c: Likewise.
34869         * lib/unistr/u16-strmblen.c: Likewise.
34870         * lib/unistr/u16-strmbtouc.c: Likewise.
34871         * lib/unistr/u16-strncat.c: Likewise.
34872         * lib/unistr/u16-strncmp.c: Likewise.
34873         * lib/unistr/u16-strncpy.c: Likewise.
34874         * lib/unistr/u16-strnlen.c: Likewise.
34875         * lib/unistr/u16-strpbrk.c: Likewise.
34876         * lib/unistr/u16-strrchr.c: Likewise.
34877         * lib/unistr/u16-strspn.c: Likewise.
34878         * lib/unistr/u16-strstr.c: Likewise.
34879         * lib/unistr/u16-strtok.c: Likewise.
34880         * lib/unistr/u16-to-u32.c: Likewise.
34881         * lib/unistr/u16-to-u8.c: Likewise.
34882         * lib/unistr/u16-uctomb-aux.c: Likewise.
34883         * lib/unistr/u16-uctomb.c: Likewise.
34884         * lib/unistr/u32-check.c: Likewise.
34885         * lib/unistr/u32-chr.c: Likewise.
34886         * lib/unistr/u32-cmp.c: Likewise.
34887         * lib/unistr/u32-cpy-alloc.c: Likewise.
34888         * lib/unistr/u32-cpy.c: Likewise.
34889         * lib/unistr/u32-endswith.c: Likewise.
34890         * lib/unistr/u32-mblen.c: Likewise.
34891         * lib/unistr/u32-mbsnlen.c: Likewise.
34892         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34893         * lib/unistr/u32-mbtouc.c: Likewise.
34894         * lib/unistr/u32-mbtoucr.c: Likewise.
34895         * lib/unistr/u32-move.c: Likewise.
34896         * lib/unistr/u32-next.c: Likewise.
34897         * lib/unistr/u32-prev.c: Likewise.
34898         * lib/unistr/u32-set.c: Likewise.
34899         * lib/unistr/u32-startswith.c: Likewise.
34900         * lib/unistr/u32-stpcpy.c: Likewise.
34901         * lib/unistr/u32-stpncpy.c: Likewise.
34902         * lib/unistr/u32-strcat.c: Likewise.
34903         * lib/unistr/u32-strchr.c: Likewise.
34904         * lib/unistr/u32-strcmp.c: Likewise.
34905         * lib/unistr/u32-strcpy.c: Likewise.
34906         * lib/unistr/u32-strcspn.c: Likewise.
34907         * lib/unistr/u32-strdup.c: Likewise.
34908         * lib/unistr/u32-strlen.c: Likewise.
34909         * lib/unistr/u32-strmblen.c: Likewise.
34910         * lib/unistr/u32-strmbtouc.c: Likewise.
34911         * lib/unistr/u32-strncat.c: Likewise.
34912         * lib/unistr/u32-strncmp.c: Likewise.
34913         * lib/unistr/u32-strncpy.c: Likewise.
34914         * lib/unistr/u32-strnlen.c: Likewise.
34915         * lib/unistr/u32-strpbrk.c: Likewise.
34916         * lib/unistr/u32-strrchr.c: Likewise.
34917         * lib/unistr/u32-strspn.c: Likewise.
34918         * lib/unistr/u32-strstr.c: Likewise.
34919         * lib/unistr/u32-strtok.c: Likewise.
34920         * lib/unistr/u32-to-u16.c: Likewise.
34921         * lib/unistr/u32-to-u8.c: Likewise.
34922         * lib/unistr/u32-uctomb.c: Likewise.
34923         * lib/unistr/u8-check.c: Likewise.
34924         * lib/unistr/u8-chr.c: Likewise.
34925         * lib/unistr/u8-cmp.c: Likewise.
34926         * lib/unistr/u8-cpy-alloc.c: Likewise.
34927         * lib/unistr/u8-cpy.c: Likewise.
34928         * lib/unistr/u8-endswith.c: Likewise.
34929         * lib/unistr/u8-mblen.c: Likewise.
34930         * lib/unistr/u8-mbsnlen.c: Likewise.
34931         * lib/unistr/u8-mbtouc-aux.c: Likewise.
34932         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34933         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34934         * lib/unistr/u8-mbtouc.c: Likewise.
34935         * lib/unistr/u8-mbtoucr.c: Likewise.
34936         * lib/unistr/u8-move.c: Likewise.
34937         * lib/unistr/u8-next.c: Likewise.
34938         * lib/unistr/u8-prev.c: Likewise.
34939         * lib/unistr/u8-set.c: Likewise.
34940         * lib/unistr/u8-startswith.c: Likewise.
34941         * lib/unistr/u8-stpcpy.c: Likewise.
34942         * lib/unistr/u8-stpncpy.c: Likewise.
34943         * lib/unistr/u8-strcat.c: Likewise.
34944         * lib/unistr/u8-strchr.c: Likewise.
34945         * lib/unistr/u8-strcmp.c: Likewise.
34946         * lib/unistr/u8-strcpy.c: Likewise.
34947         * lib/unistr/u8-strcspn.c: Likewise.
34948         * lib/unistr/u8-strdup.c: Likewise.
34949         * lib/unistr/u8-strlen.c: Likewise.
34950         * lib/unistr/u8-strmblen.c: Likewise.
34951         * lib/unistr/u8-strmbtouc.c: Likewise.
34952         * lib/unistr/u8-strncat.c: Likewise.
34953         * lib/unistr/u8-strncmp.c: Likewise.
34954         * lib/unistr/u8-strncpy.c: Likewise.
34955         * lib/unistr/u8-strnlen.c: Likewise.
34956         * lib/unistr/u8-strpbrk.c: Likewise.
34957         * lib/unistr/u8-strrchr.c: Likewise.
34958         * lib/unistr/u8-strspn.c: Likewise.
34959         * lib/unistr/u8-strstr.c: Likewise.
34960         * lib/unistr/u8-strtok.c: Likewise.
34961         * lib/unistr/u8-to-u16.c: Likewise.
34962         * lib/unistr/u8-to-u32.c: Likewise.
34963         * lib/unistr/u8-uctomb-aux.c: Likewise.
34964         * lib/unistr/u8-uctomb.c: Likewise.
34965         * lib/unitypes.h: Likewise.
34966         * lib/uniwidth.h: Likewise.
34967         * lib/uniwidth/cjk.h: Likewise.
34968         * lib/uniwidth/u16-strwidth.c: Likewise.
34969         * lib/uniwidth/u16-width.c: Likewise.
34970         * lib/uniwidth/u32-strwidth.c: Likewise.
34971         * lib/uniwidth/u32-width.c: Likewise.
34972         * lib/uniwidth/u8-strwidth.c: Likewise.
34973         * lib/uniwidth/u8-width.c: Likewise.
34974         * lib/uniwidth/width.c: Likewise.
34975
34976 2007-10-07  Bruno Haible  <bruno@clisp.org>
34977
34978         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
34979         The file is still under LGPL (see modules/inttypes).
34980
34981 2007-10-06  Bruno Haible  <bruno@clisp.org>
34982
34983         * modules/trunc (Dependencies): Add 'extensions'.
34984         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
34985         Reported by Ben Pfaff <blp@gnu.org>.
34986
34987 2007-10-06  Bruno Haible  <bruno@clisp.org>
34988
34989         * modules/freopen-tests: New file.
34990         * tests/test-freopen.c: New file.
34991
34992         * modules/fopen-tests: New file.
34993         * tests/test-fopen.c: New file.
34994
34995         * modules/fopen: New file.
34996         * lib/fopen.c: New file.
34997         * m4/fopen.m4: New file.
34998         * modules/freopen: New file.
34999         * lib/freopen.c: New file.
35000         * m4/freopen.m4: New file.
35001         * lib/stdio.in.h (fopen, freopen): New declarations.
35002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
35003         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35004         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
35005         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35006         * doc/functions/fopen.texi: Mention the 'fopen' module.
35007         * doc/functions/freopen.texi: Mention the 'freopen' module.
35008
35009 2007-10-06  Bruno Haible  <bruno@clisp.org>
35010
35011         * modules/open-tests: New file.
35012         * tests/test-open.c: New file.
35013
35014         * modules/open: New file.
35015         * lib/open.c: New file.
35016         * m4/open.m4: New file.
35017         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
35018         lib/open.c does.
35019         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
35020         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
35021         macros.
35022         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
35023         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
35024         REPLACE_OPEN.
35025         * doc/functions/open.texi: Mention the 'open' module.
35026
35027 2007-10-04  Bruno Haible  <bruno@clisp.org>
35028
35029         * modules/ceill-tests: New file.
35030         * tests/test-ceill.c: New file.
35031
35032         * modules/ceill: New file.
35033         * lib/ceill.c: Replace entire file.
35034         * m4/ceill.m4: New file.
35035         * lib/math.in.h (ceill): Replace declaration.
35036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
35037         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
35038         * doc/functions/ceill.texi: Mention the 'ceill' module.
35039         * modules/mathl (Files): Remove lib/ceill.c.
35040         (Depends-on): Add ceill.
35041
35042 2007-10-04  Bruno Haible  <bruno@clisp.org>
35043
35044         * modules/ceilf-tests: New file.
35045         * tests/test-ceilf.c: New file.
35046
35047         * modules/ceilf: New file.
35048         * lib/ceil.c: New file.
35049         * lib/ceilf.c: New file.
35050         * m4/ceilf.m4: New file.
35051         * lib/math.in.h (ceilf): New declaration.
35052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
35053         HAVE_DECL_CEILF.
35054         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
35055         HAVE_DECL_CEILF.
35056         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
35057
35058 2007-10-04  Bruno Haible  <bruno@clisp.org>
35059
35060         * modules/floorl-tests: New file.
35061         * tests/test-floorl.c: New file.
35062
35063         * modules/floorl: New file.
35064         * lib/floorl.c: Replace entire file.
35065         * m4/floorl.m4: New file.
35066         * lib/math.in.h (floorl): Replace declaration.
35067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
35068         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
35069         * doc/functions/floorl.texi: Mention the 'floorl' module.
35070         * modules/mathl (Files): Remove lib/floorl.c.
35071         (Depends-on): Add floorl.
35072
35073 2007-10-04  Bruno Haible  <bruno@clisp.org>
35074
35075         * modules/floorf-tests: New file.
35076         * tests/test-floorf.c: New file.
35077
35078         * modules/floorf: New file.
35079         * lib/floor.c: New file.
35080         * lib/floorf.c: New file.
35081         * m4/floorf.m4: New file.
35082         * lib/math.in.h (floorf): New declaration.
35083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
35084         HAVE_DECL_FLOORF.
35085         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
35086         HAVE_DECL_FLOORF.
35087         * doc/functions/floorf.texi: Mention the 'floorf' module.
35088
35089 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
35090             Bruno Haible  <bruno@clisp.org>
35091
35092         Advertise for the Git server instead of the CVS server.
35093         * doc/gnulib-intro.texi (Steady Development): Mention the Git
35094         repository instead of the CVS one.
35095         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
35096         about all VCS systems generically.
35097         * doc/gnulib.texi (Introduction): Capitalize `Git'.
35098
35099 2007-10-04  Bruno Haible  <bruno@clisp.org>
35100
35101         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
35102         means.
35103         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
35104
35105 2007-10-04  Bruno Haible  <bruno@clisp.org>
35106
35107         * modules/truncl-tests: New file.
35108         * tests/test-truncl.c: New file.
35109
35110         * modules/truncl: New file.
35111         * lib/truncl.c: New file.
35112         * m4/truncl.m4: New file.
35113         * lib/math.in.h (truncl): New declaration.
35114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
35115         HAVE_DECL_TRUNCL.
35116         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
35117         HAVE_DECL_TRUNCL.
35118         * doc/functions/truncl.texi: Mention the 'truncl' module.
35119
35120 2007-10-04  Bruno Haible  <bruno@clisp.org>
35121
35122         * modules/truncf-tests: New file.
35123         * tests/test-truncf.c: New file.
35124
35125         * modules/truncf: New file.
35126         * lib/trunc.c: Make paramerizable through USE_* macros.
35127         * lib/truncf.c: New file.
35128         * m4/truncf.m4: New file.
35129         * lib/math.in.h (truncf): New declaration.
35130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
35131         HAVE_DECL_TRUNCF.
35132         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
35133         HAVE_DECL_TRUNCF.
35134         * doc/functions/truncf.texi: Mention the 'truncf' module.
35135
35136 2007-10-03  Bruno Haible  <bruno@clisp.org>
35137
35138         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35139         augmentation also for tests modules.
35140         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
35141         * modules/atexit-tests (Makefile.am): Likewise.
35142         * modules/binary-io-tests (Makefile.am): Likewise.
35143         * modules/c-strcase-tests (Makefile.am): Likewise.
35144         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
35145         * modules/canonicalize-tests (Makefile.am): Likewise.
35146         * modules/closein-tests (Makefile.am): Likewise.
35147         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35148         * modules/freadahead-tests (Makefile.am): Likewise.
35149         * modules/fseek-tests (Makefile.am): Likewise.
35150         * modules/fseeko-tests (Makefile.am): Likewise.
35151         * modules/ftell-tests (Makefile.am): Likewise.
35152         * modules/ftello-tests (Makefile.am): Likewise.
35153         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
35154         * modules/isnanl-tests (Makefile.am): Likewise.
35155         * modules/lseek-tests (Makefile.am): Likewise.
35156         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35157         * modules/mbscasestr-tests (Makefile.am): Likewise.
35158         * modules/mbschr-tests (Makefile.am): Likewise.
35159         * modules/mbscspn-tests (Makefile.am): Likewise.
35160         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35161         * modules/mbspbrk-tests (Makefile.am): Likewise.
35162         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35163         * modules/mbsrchr-tests (Makefile.am): Likewise.
35164         * modules/mbsspn-tests (Makefile.am): Likewise.
35165         * modules/mbsstr-tests (Makefile.am): Likewise.
35166         * modules/printf-posix-tests (Makefile.am): Likewise.
35167         * modules/snprintf-posix-tests (Makefile.am): Likewise.
35168         * modules/sprintf-posix-tests (Makefile.am): Likewise.
35169         * modules/tsearch-tests (Makefile.am): Likewise.
35170         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35171         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35172         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35173         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35174         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35175         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35176         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35177         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35178         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
35179         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
35180         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35181         * modules/xstrtol-tests (Makefile.am): Likewise.
35182         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35183         * modules/yesno-tests (Makefile.am): Likewise.
35184
35185 2007-10-03  Bruno Haible  <bruno@clisp.org>
35186
35187         * modules/trunc-tests: New file.
35188         * tests/test-trunc.c: New file.
35189
35190         * modules/trunc: New file.
35191         * lib/trunc.c: New file.
35192         * m4/trunc.m4: New file.
35193         * lib/math.in.h (trunc): New declaration.
35194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
35195         HAVE_DECL_TRUNC.
35196         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
35197         HAVE_DECL_TRUNC.
35198         * doc/functions/trunc.texi: Mention the 'trunc' module.
35199
35200 2007-10-03  Bruno Haible  <bruno@clisp.org>
35201
35202         * tests/test-fpending.c: New file, mostly copied
35203         from coreutils/lib/t-fpending.c.
35204         * modules/fpending-tests: New file.
35205
35206 2007-10-03  Bruno Haible  <bruno@clisp.org>
35207
35208         Port the stdio extensions to QNX (untested).
35209         * lib/fseterr.c (fseterr): Add support for QNX.
35210         * lib/fbufmode.c (fbufmode): Likewise.
35211         * lib/freadable.c (freadable): Likewise.
35212         * lib/fwritable.c (fwritable): Likewise.
35213         * lib/freading.c (freading): Likewise.
35214         * lib/fwriting.c (fwriting): Likewise.
35215         * lib/freadahead.c (freadahed): Likewise.
35216         * lib/fpurge.c (fpurge): Likewise.
35217         * lib/fseeko.c (rpl_fseeko): Likewise.
35218
35219 2007-10-03  Bruno Haible  <bruno@clisp.org>
35220             Jim Meyering  <jim@meyering.net>
35221             Eric Blake  <ebb9@byu.net>
35222
35223         * doc/relocatable.texi: Use @command instead of @program.
35224
35225 2007-10-02  Jim Meyering  <jim@meyering.net>
35226
35227         Perform one more "_.h" -> ".in.h" substitution.
35228         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
35229         instead of unistd_.h here, too.
35230
35231 2007-10-01  Bruno Haible  <bruno@clisp.org>
35232
35233         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
35234         Needed for the alloca-opt module.
35235
35236 2007-09-30  Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/alloca.in.h: Renamed from lib/alloca_.h.
35239         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
35240         alloca_.h.
35241         * lib/argz.in.h: Renamed from lib/argz_.h.
35242         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
35243         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
35244         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
35245         byteswap_.h.
35246         * lib/dirent.in.h: Renamed from lib/dirent_.h.
35247         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
35248         dirent_.h.
35249         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
35250         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
35251         fcntl_.h.
35252         * lib/float.in.h: Renamed from lib/float_.h.
35253         * modules/float (Files, Makefile.am): Use float.in.h instead of
35254         float_.h.
35255         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
35256         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
35257         fnmatch_.h.
35258         * lib/getopt.in.h: Renamed from lib/getopt_.h.
35259         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
35260         getopt_.h.
35261         * lib/glob.in.h: Renamed from lib/glob_.h.
35262         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
35263         * lib/iconv.in.h: Renamed from lib/iconv_.h.
35264         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
35265         iconv_.h.
35266         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
35267         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
35268         inttypes_.h.
35269         * lib/locale.in.h: Renamed from lib/locale_.h.
35270         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
35271         locale_.h.
35272         * lib/math.in.h: Renamed from lib/math_.h.
35273         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
35274         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
35275         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
35276         of netinet_in_.h. Add dependency.
35277         * lib/poll.in.h: Renamed from lib/poll_.h.
35278         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
35279         * lib/search.in.h: Renamed from lib/search_.h.
35280         * modules/search (Files, Makefile.am): Use search.in.h instead of
35281         search_.h.
35282         * lib/signal.in.h: Renamed from lib/signal_.h.
35283         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
35284         _signal.h.
35285         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
35286         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
35287         stdbool_.h.
35288         * lib/stdint.in.h: Renamed from lib/stdint_.h.
35289         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
35290         stdint_.h.
35291         * lib/stdio.in.h: Renamed from lib/stdio_.h.
35292         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
35293         stdio_.h.
35294         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
35295         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
35296         stdlib_.h.
35297         * lib/string.in.h: Renamed from lib/string_.h.
35298         * modules/string (Files, Makefile.am): Use string.in.h instead of
35299         string_.h.
35300         * doc/gnulib-tool.texi (Initial import): Update.
35301         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
35302         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
35303         of sys_select_.h. Add dependency.
35304         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
35305         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
35306         of sys_socket_.h.
35307         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
35308         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
35309         sys_stat_.h.
35310         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
35311         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
35312         sys_time_.h.
35313         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
35314         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
35315         sysexits_.h.
35316         * lib/time.in.h: Renamed from lib/time_.h.
35317         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
35318         * lib/unistd.in.h: Renamed from lib/unistd_.h.
35319         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
35320         unistd_.h.
35321         * lib/wchar.in.h: Renamed from lib/wchar_.h.
35322         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
35323         wchar_.h.
35324         * lib/wctype.in.h: Renamed from lib/wctype_.h.
35325         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
35326         wctype_.h.
35327         * build-aux/bootstrap (slurp): Update.
35328         * lib/.cppi-disable: Update.
35329
35330 2007-09-30  Bruno Haible  <bruno@clisp.org>
35331
35332         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
35333         Needed on BeOS.
35334
35335 2007-09-30  Bruno Haible  <bruno@clisp.org>
35336
35337         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
35338
35339 2007-09-29  Bruno Haible  <bruno@clisp.org>
35340
35341         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
35342
35343 2007-09-29  Bruno Haible  <bruno@clisp.org>
35344
35345         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
35346         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
35347         * build-aux/install-reloc: Compile also areadlink.c.
35348         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
35349
35350 2007-09-29  Bruno Haible  <bruno@clisp.org>
35351
35352         * gnulib-tool (func_emit_initmacro_done): Indentation.
35353
35354 2007-09-29  Bruno Haible  <bruno@clisp.org>
35355
35356         * README: Add CVS checkout update instructions.
35357         Info from Bob Proulx <bob@proulx.com>.
35358
35359 2007-09-28  Eric Blake  <ebb9@byu.net>
35360
35361         Provide move-if-change.
35362         * build-aux/move-if-change: New file, based on best practice
35363         rather than any canonical upstream location.
35364
35365 2007-09-28  Jim Meyering  <jim@meyering.net>
35366
35367         Fix canonicalize loop-detection corner case.
35368         Do not attempt to stat the symlink values stored via seen_triple.
35369         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
35370         on linux-2.6.18, (but not 2.6.22).
35371         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
35372         triple_compare.  The former compares dev,ino,filename, while the latter
35373         would actually stat dirname(filename) when dev and ino were equal.
35374         * lib/hash-triple.c: Install <string.h>.
35375         (STREQ): Define.
35376         (triple_compare_ino_str): New function.
35377         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
35378
35379 2007-09-28  Eric Blake  <ebb9@byu.net>
35380
35381         Enforce that AC_REPLACE_FUNCS files exist.
35382         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
35383         override check for typos.
35384
35385         Fix test-closein on Solaris 10.
35386         * tests/test-closein.c (main): Don't assume stdin can be inherited
35387         closed on all systems.
35388         * tests/test-closein.sh: Likewise.
35389         Reported by Piotr Tarnowski.
35390
35391 2007-09-28  Jim Meyering  <jim@meyering.net>
35392
35393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
35394
35395 2007-09-27  Jim Meyering  <jim@meyering.net>
35396
35397         canonicalize: Avoid a false-positive cycle failure.
35398         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
35399         Sort.  Remove cycle-check.
35400         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
35401         not cycle-check.h.
35402         (seen_triple): New function.
35403         (canonicalize_filename_mode): Use it instead of cycle-check.
35404         * tests/test-canonicalize.c: Add a test for this bug.
35405         * tests/test-canonicalize.sh: Set up and run the test.
35406
35407         New module, file-set, from coreutils.
35408         * modules/file-set: Define it.
35409         * lib/file-set.c, lib/file-set.h: Implement.
35410
35411         New module, hash-triple, from coreutils.
35412         * modules/hash-triple: Define it.
35413         * lib/hash-triple.c, lib/hash-triple.h: Implement.
35414
35415 2007-09-25  Eric Blake  <ebb9@byu.net>
35416
35417         Fix strerror on Interix.
35418         * lib/string_.h (strerror): Declare replacement.
35419         * doc/functions/strerror.texi (strerror): Document the Interix
35420         shortcoming.
35421         * modules/string (Makefile.am): Support new hooks.
35422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
35423         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
35424         gl_FUNC_STRERROR_SEPARATE.
35425         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
35426         * lib/strerror.c (rpl_strerror): Provide replacement.
35427         * modules/strerror (Depends-on): Add string.
35428         (configure.ac): Detect use of module.
35429         * tests/test-strerror.c: New file.
35430         * modules/strerror-tests: New test module.
35431         * modules/argp (Depends-on): Add strerror.
35432         * modules/error (Depends-on): Likewise.
35433         Reported by Martin Koeppe.
35434
35435 2007-09-24  Bruno Haible  <bruno@clisp.org>
35436
35437         * README: Update git instructions.
35438
35439 2007-09-24  Eric Blake  <ebb9@byu.net>
35440
35441         Revert fpending breakage from 2007-09-08.
35442         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
35443         __fpending.c.
35444
35445 2007-09-24  Jim Meyering  <jim@meyering.net>
35446
35447         filenamecat.c: Add a test.
35448         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
35449         showing how the function works when DIR is the empty string.
35450
35451 2007-09-21  Simon Josefsson  <simon@josefsson.org>
35452
35453         * tests/test-canonicalize.sh: Turn on executable bit.
35454
35455 2007-09-19  Eric Blake  <ebb9@byu.net>
35456
35457         * README: Update CVS instructions.
35458
35459 2007-09-18  Bruno Haible  <bruno@clisp.org>
35460
35461         * modules/areadlink: New file.
35462         * lib/areadlink.h (areadlink): New declaration.
35463         * lib/areadlink.c: New file, based on lib/xreadlink.c.
35464
35465 2007-09-17  Jim Meyering  <jim@meyering.net>
35466
35467         * lib/savewd.c (ESTALE) [!defined]: Define.
35468         Reported to be required on Interix by Martin Koeppe.
35469
35470 2007-09-17  Bruno Haible  <bruno@clisp.org>
35471
35472         * gnulib-tool (func_version): Use $version.
35473
35474 2007-09-16  Bruno Haible  <bruno@clisp.org>
35475
35476         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
35477         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
35478         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
35479         Reported by Greg Schafer <gschafer@zip.com.au>.
35480
35481 2007-09-15  Bruno Haible  <bruno@clisp.org>
35482
35483         * gnulib-tool (sed): Try a little harder to make bash understand the
35484         alias.
35485         Reported by Bruce Korb <bruce.korb@gmail.com>.
35486
35487 2007-09-13  Eric Blake  <ebb9@byu.net>
35488
35489         * ChangeLog: Remove conflict markers.
35490
35491 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35492
35493         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35494         Reported by Bruno Haible <bruno@clisp.org>.
35495
35496 2007-09-12  Bruno Haible  <bruno@clisp.org>
35497
35498         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35499         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35500         is not defined.
35501
35502 2007-09-12  Eric Blake  <ebb9@byu.net>
35503
35504         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35505         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35506         Autoconf definition.
35507         * modules/euidaccess (Depends-on): Add extensions, for
35508         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35509         * modules/fnmatch (Depends-on): Likewise.
35510         * modules/getaddrinfo (Depends-on): Likewise.
35511         * modules/getdelim (Depends-on): Likewise.
35512         * modules/getline (Depends-on): Likewise.
35513         * modules/getsubopt (Depends-on): Likewise.
35514         * modules/gettext (Depends-on): Likewise.
35515         * modules/group-member (Depends-on): Likewise.
35516         * modules/mbchar (Depends-on): Likewise.
35517         * modules/memmem (Depends-on): Likewise.
35518         * modules/mempcpy (Depends-on): Likewise.
35519         * modules/memrchr (Depends-on): Likewise.
35520         * modules/pagealign_alloc (Depends-on): Likewise.
35521         * modules/readutmp (Depends-on): Likewise.
35522         * modules/stpcpy (Depends-on): Likewise.
35523         * modules/stpncpy (Depends-on): Likewise.
35524         * modules/strchrnul (Depends-on): Likewise.
35525         * modules/strndup (Depends-on): Likewise.
35526         * modules/strsep (Depends-on): Likewise.
35527         * modules/strverscmp (Depends-on): Likewise.
35528         * modules/vasprintf (Depends-on): Likewise.
35529         * modules/wcwidth (Depends-on): Likewise.
35530         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35531         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35532         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35533         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35534         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35535         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35536         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35537         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35538         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35539         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35540         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35541         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35542         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35543         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35544         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35545         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35546         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35547         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35548         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35549         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35550         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35551         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35552         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35553         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35554         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35556         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35557         so that lock.m4 can be used in gettext without extensions module.
35558
35559 2007-09-11  Bruno Haible  <bruno@clisp.org>
35560
35561         * m4/isc-posix.m4: Remove file.
35562         Suggested by Eric Blake.
35563
35564 2007-09-11  Eric Blake  <ebb9@byu.net>
35565
35566         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35567
35568 2007-09-10  Bruno Haible  <bruno@clisp.org>
35569
35570         * posix-modules: Fix typo in error message.
35571         Reported by Matt <mkraai@beckman.com>.
35572
35573 2007-09-09  Bruno Haible  <bruno@clisp.org>
35574
35575         * doc/functions/getdelim.texi: Update list of platforms lacking the
35576         function.
35577         * doc/functions/getline.texi: Likewise.
35578
35579 2007-09-09  Jim Meyering  <jim@meyering.net>
35580
35581         * lib/hash.c (hash_initialize): Detect calloc failure.
35582         Reported by Bruno Haible.
35583
35584 2007-09-09  Bruno Haible  <bruno@clisp.org>
35585
35586         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35587         malloc or realloc fails.
35588
35589 2007-09-09  Bruno Haible  <bruno@clisp.org>
35590
35591         * modules/getcwd (Depends-on): Add malloc-posix.
35592         * modules/glob (Depends-on): Likewise.
35593         * modules/putenv (Depends-on): Likewise.
35594         * modules/strdup (Depends-on): Likewise.
35595         * modules/getdelim (Depends-on): Add realloc-posix.
35596         * modules/read-file (Depends-on): Likewise.
35597
35598 2007-09-09  Bruno Haible  <bruno@clisp.org>
35599
35600         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35601         (gl_FUNC_MALLOC_POSIX): Require it.
35602         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35603         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35604         * modules/realloc (Files): Add m4/malloc.m4.
35605         * modules/calloc (Files): Likewise.
35606
35607 2007-09-09  Bruno Haible  <bruno@clisp.org>
35608
35609         * modules/malloc-posix: New file.
35610         * modules/malloc (Depends-on): Add malloc-posix.
35611         * lib/malloc.c: Include errno.h.
35612         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35613         and a POSIX-compatible malloc into a single function. Set ENOMEM
35614         when returning NULL.
35615         * m4/malloc.m4: New file.
35616         * doc/functions/malloc.texi: Mention the malloc-posix module.
35617         * lib/stdlib_.h (malloc): New declaration.
35618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35619         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35620         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35621         and HAVE_MALLOC_POSIX.
35622
35623 2007-09-09  Bruno Haible  <bruno@clisp.org>
35624
35625         * modules/realloc-posix: New file.
35626         * modules/realloc (Depends-on): Add realloc-posix.
35627         * lib/realloc.c: Include errno.h.
35628         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35629         and a POSIX-compatible realloc into a single function. Set ENOMEM
35630         when returning NULL.
35631         * m4/realloc.m4: New file.
35632         * doc/functions/realloc.texi: Mention the realloc-posix module.
35633         * lib/stdlib_.h (realloc): New declaration.
35634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35635         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35636         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35637         and HAVE_REALLOC_POSIX.
35638
35639 2007-09-09  Bruno Haible  <bruno@clisp.org>
35640
35641         * modules/calloc-posix: New file.
35642         * modules/calloc (Depends-on): Add calloc-posix.
35643         * lib/calloc.c: Include errno.h.
35644         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35645         and a POSIX-compatible calloc into a single function. Set ENOMEM
35646         when returning NULL.
35647         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35648         * doc/functions/calloc.texi: Mention the calloc-posix module.
35649         * lib/stdlib_.h (calloc): New declaration.
35650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35651         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35652         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35653         and HAVE_CALLOC_POSIX.
35654
35655 2007-09-09  Bruno Haible  <bruno@clisp.org>
35656
35657         Allow for modules to show an arbitrary notice.
35658         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35659         * gnulib-tool: New option --extract-notice.
35660         (func_usage): Document it.
35661         (sed_extract_prog): Update.
35662         (func_get_notice): New function.
35663         (func_modules_notice): New function.
35664         (func_import, func_create_testdir): Invoke it.
35665         Suggested by Jim Meyering.
35666
35667 2007-09-09  Bruno Haible  <bruno@clisp.org>
35668
35669         * gnulib-tool: New options --verbose, --quiet.
35670         (func_usage): Document them.
35671         (verbose): New variable.
35672         (func_execute_command): New function.
35673         (func_import): Don't show the module list and the file list if
35674         $verbose < 0.
35675         (func_create_testdir): Likewise. Use func_execute_command.
35676         (func_create_megatestdir): Use func_execute_command.
35677
35678 2007-09-08  Bruno Haible  <bruno@clisp.org>
35679
35680         * gnulib-tool (func_import): Prefer rsync over wget when available,
35681         for fetching the PO files.
35682
35683 2007-09-08  Bruno Haible  <bruno@clisp.org>
35684
35685         * posix-modules: New file. Portions copied from gnulib-tool.
35686         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
35687
35688 2007-09-08  Jim Meyering  <jim@meyering.net>
35689
35690         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
35691         * lib/fpending.h: Rename from __fpending.h.
35692         * lib/fpending.c: Rename from __fpending.c.
35693         Include "fpending.h", not "__fpending.h".
35694         * lib/__fpending.h, lib/__fpending.c: Remove files.
35695         * modules/fpending (Files): Reflect new file names.
35696         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
35697
35698 2007-09-08  Bruno Haible  <bruno@clisp.org>
35699
35700         * m4/inttypes-h.m4: Remove stub file.
35701
35702 2007-09-07  Simon Josefsson  <simon@josefsson.org>
35703
35704         * doc/headers/stdint.texi: Discuss #include_next issue.
35705
35706 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35707
35708         * build-aux/bootstrap: Remove obsolete comment about wget --help.
35709
35710 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35711
35712         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
35713         in variable name.
35714
35715 2007-09-03  Jim Meyering  <jim@meyering.net>
35716
35717         New module: git-version-gen.
35718         * modules/git-version-gen: New file.
35719
35720         Import changes from coreutils for bootstrap script.
35721
35722         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
35723
35724         bootstrap: uses rsync to download the .po files
35725         * build-aux/bootstrap (po_download_command_format): New global.
35726         (download_po_files): Use rsync.
35727         (update_po_files): Don't remove .po files after download,
35728         so future rsync runs can take advantage of the copies.
35729
35730         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
35731
35732         Solve the unnecessary-.po-file-regeneration problem once and for all.
35733         * build-aux/bootstrap (download_po_files): New function, renamed from
35734         get_translations.  Now, downloads, but doesn't update LINGUAS.
35735         (update_po_files): New function.
35736
35737         bootstrap: Ignore more.
35738         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
35739         uniwidth to e.g., lib/.gitignore.
35740         (slurp): Handle the sys_stat_.h -> sys mapping, too.
35741
35742         * build-aux/bootstrap: New setting: vc_ignore.
35743         (insert_sorted_if_absent): Create $file if absent.
35744         Adapt to new, possibly empty, list: $vc_ignore.
35745
35746         bootstrap: generate more ignorable names
35747         * build-aux/bootstrap (slurp): When generating ignorable names,
35748         also map .sin to .sed, .gperf to .c, and .y to .c.
35749
35750 2007-09-03  Jim Meyering  <jim@meyering.net>
35751
35752         * build-aux/git-version-gen: New file, from coreutils.  For details, see
35753         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
35754
35755 2007-09-02  Bruno Haible  <bruno@clisp.org>
35756
35757         Fix mis-recognition of 'mcs' on QNX 6.
35758         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
35759         output contains the string "Mono".
35760         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
35761         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
35762
35763 2007-09-01  Bruno Haible  <bruno@clisp.org>
35764
35765         Fix collision between uniwidth/* and linebreak modules.
35766         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
35767         u32_width): Remove declarations.
35768         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
35769         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
35770         streq3, streq2, streq1, streq0): Remove functions.
35771         (STREQ): Remove macro.
35772         (is_cjk_encoding): Remove function.
35773         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
35774         (uc_width, u8_width, u16_width, u32_width): Remove functions.
35775         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
35776         * NEWS: Document the change.
35777
35778 2007-09-01  Bruno Haible  <bruno@clisp.org>
35779
35780         * lib/streq.h: Add double-inclusion guard.
35781
35782 2007-09-01  Karl Berry  <karl@gnu.org>
35783
35784         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
35785
35786 2007-08-28  Jim Meyering  <jim@meyering.net>
35787
35788         Rename mreadlink_with_size to areadlink_with_size.
35789         * NEWS: Document the change.
35790         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
35791         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
35792         * lib/mreadlink.h: Rename this to...
35793         * lib/areadlink.h: ...this.
35794         * modules/mreadlink-with-size: Rename this to...
35795         * modules/areadlink-with-size: ...this.
35796         * lib/canonicalize.c: Reflect the renaming.
35797         * modules/canonicalize: Likewise.
35798
35799 2007-08-26  Bruno Haible  <bruno@clisp.org>
35800
35801         * gnulib-tool (func_import): When deciding which files to remove,
35802         consider also dangling symbolic links.
35803         Reported by Eric Blake.
35804
35805 2007-08-26  Bruno Haible  <bruno@clisp.org>
35806
35807         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
35808
35809 2007-08-23  Simon Josefsson  <simon@josefsson.org>
35810
35811         * lib/readline.c: Don't include getline.h, the prototype is now
35812         found in stdio.h.
35813
35814 2007-08-23  Jim Meyering  <jim@meyering.net>
35815
35816         Getdelim touchup.
35817         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
35818         around the funlockfile call, since funlockfile never sets errno.
35819         Don't set errno upon failed realloc.
35820
35821 2007-08-22  Eric Blake  <ebb9@byu.net>
35822
35823         Getline touchups.
35824         * lib/getdelim.c (getdelim): Revert regression that required *n to
35825         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
35826         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
35827         getdelim, rather than whether implementation is missing.
35828         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
35829         * lib/stdio_.h (getline): Also declare if replacement is
35830         required.
35831         * doc/functions/getdelim.texi: New file.
35832         * doc/functions/getline.texi: Likewise.
35833         * doc/gnulib.texi (Function Substitutes): Add new files.
35834         Reported by Bruno Haible.
35835
35836 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
35837
35838         * users.txt: Add Guile.
35839
35840 2007-08-22  Eric Blake  <ebb9@byu.net>
35841
35842         * tests/test-getdelim.c (main): Use remove, not unlink.
35843         * tests/test-getline.c (main): Likewise.
35844
35845         Move getline and getdelim into stdio.h, per POSIX 200x.
35846         * modules/getline (Files): Remove getline.h.
35847         (Depends-on): Add stdio.
35848         (configure.ac): Add module indicator.
35849         * modules/getdelim (Files): Remove getdelim.h.
35850         (Depends-on): Add stdio.
35851         (configure.ac): Add module indicator.
35852         * modules/stdio (Makefile.am): Work with new indicators.
35853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35854         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
35855         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35856         * lib/getdelim.h: Delete.
35857         * lib/getline.h: Delete.
35858         * lib/stdio_.h (getdelim, getline): Declare.
35859         * modules/getdelim-tests: New module.
35860         * modules/getline-tests: Likewise.
35861         * tests/test-getdelim.c: New file.
35862         * tests/test-getline.c: Likewise.
35863         * NEWS: Document the change.
35864         * lib/getline.c: Update choice of header.
35865         * lib/csharpcomp.c: Likewise.
35866         * lib/getpass.c: Likewise.
35867         * lib/javacomp.c: Likewise.
35868         * lib/javaversion.c: Likewise.
35869         * lib/yesno.c: Likewise.
35870         * lib/getdelim.c: Likewise.
35871         (getdelim): Set errno on failure, and avoid memory leak.
35872
35873 2007-08-19  Bruno Haible  <bruno@clisp.org>
35874
35875         * modules/closein (Depends-on): Add freadahead.
35876         * lib/closein.c: Include freadahead.h.
35877         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
35878         is zero.
35879
35880 2007-08-19  Bruno Haible  <bruno@clisp.org>
35881
35882         * modules/freadahead-tests: New file.
35883         * tests/test-freadahead.sh: New file.
35884         * tests/test-freadahead.c: New file.
35885
35886         * modules/freadahead: New file.
35887         * lib/freadahead.h: New file.
35888         * lib/freadahead.c: New file.
35889         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
35890         fbufmode, fpurge, freadable, fwritable.
35891
35892 2007-08-19  Eric Blake  <ebb9@byu.net>
35893
35894         Test yesno in combination with closein.
35895         * lib/yesno.c (yesno): Document use of stdin.
35896         * modules/yesno-tests (Files): New module.
35897         * tests/test-yesno.c (main): New file.
35898         * tests/test-yesno.sh: Likewise.
35899
35900 2007-08-19  Bruno Haible  <bruno@clisp.org>
35901
35902         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
35903         * lib/fseeko.c (rpl_fseeko): Likewise.
35904         * lib/fseterr.c (fseterr): Likewise.
35905
35906 2007-08-19  Bruno Haible  <bruno@clisp.org>
35907
35908         * tests/test-lseek.c (main): Disable a test for BeOS.
35909         * doc/functions/lseek.texi: Document the BeOS bug.
35910
35911 2007-08-19  Bruno Haible  <bruno@clisp.org>
35912             Eric Blake  <ebb9@byu.net>
35913
35914         * lib/lseek.c: Include <sys/stat.h>.
35915         (rpl_lseek): Add workaround code also for Unix platforms.
35916         Needed for BeOS.
35917         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
35918         * doc/functions/lseek.texi: Document BeOS definiency.
35919
35920 2007-08-18  Bruno Haible  <bruno@clisp.org>
35921
35922         * modules/fstrcmp-tests: New file.
35923         * tests/test-fstrcmp.c: New file.
35924
35925 2007-08-18  Bruno Haible  <bruno@clisp.org>
35926
35927         * modules/fstrcmp: New file, from GNU gettext with modifications.
35928         * lib/fstrcmp.h: New file, from GNU gettext.
35929         * lib/fstrcmp.c: New file, from GNU gettext.
35930         * MODULES.html.sh (String handling): Add fstrcmp.
35931
35932 2007-08-18  Bruno Haible  <bruno@clisp.org>
35933
35934         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
35935         'bool'.
35936         (diag, compareseq): Remove const from the ctxt argument.
35937         (USE_HEURISTIC): Undefine at the end.
35938
35939 2007-08-18  Jim Meyering  <jim@meyering.net>
35940
35941         New file: lib/idcache.h
35942         * NEWS: Mention the addition.
35943         * modules/idcache (Files): Add lib/idcache.h
35944         * lib/idcache.c: Include "idcache.h".
35945         Don't include <sys/types.h>.
35946         Add a FIXME comment.
35947         Move file-scoped "static" declarations to the top.
35948         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
35949
35950 2007-08-17  Bruno Haible  <bruno@clisp.org>
35951         and Paul Eggert  <eggert@cs.ucla.edu>
35952
35953         * MODULES.html.sh: Add diffseq.
35954         * modules/diffseq: New file.
35955         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
35956         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
35957
35958 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35959
35960         Import changes from coreutils for bootstrap script.
35961
35962         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
35963
35964         * build-aux/bootstrap (slurp): Work even in environments where
35965         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
35966         current code does not slurp files whose names start with ".", and
35967         this looks like it might be a troublesome area.
35968
35969         2007-07-11  Jim Meyering  <jim@meyering.net>
35970
35971         If there's a GPL vN copyright comment, require that N == 3.
35972
35973         2007-07-08  Jim Meyering  <jim@meyering.net>
35974
35975         Run the coreutils-specific code only if tests/Makefile.am.in exists.
35976         * build-aux/bootstrap (mam_template): Move definition out of loop.
35977
35978         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
35979
35980         * build-aux/bootstrap (symlink_to_dir): Rename function from
35981         symlink_to_gnulib.  Add a directory parameter.  Update all
35982         callers.
35983         (cp_mark_as_generated): Also check for -- and link to -- files in
35984         gl/.
35985
35986         2007-07-08  Jim Meyering  <jim@meyering.net>
35987
35988         Adapt to deeper hierarchy in gnulib.
35989         * build-aux/bootstrap (symlink_to_dir): If the destination
35990         directory doesn't exist, create it. This is required at least for
35991         "lib/uniwidth/cjk.h".
35992
35993         2007-05-15  Jim Meyering  <jim@meyering.net>
35994
35995         * build-aux/bootstrap: Now that generated Makefile.am files
35996         are no longer under version control, they must be created at
35997         bootstrap time.
35998
35999 2007-08-14  Ben Pfaff  <blp@gnu.org>
36000
36001         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
36002
36003 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36004
36005         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
36006         given the changes below.
36007         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
36008         even on hosts that have padding bits beyond the supported 64.
36009
36010 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36011
36012         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
36013         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
36014         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
36015         depends on it.
36016         (xstrtol_error): Remove.
36017         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
36018         but with a different signature.
36019         (ATTRIBUTE_NORETURN, __attribute__): New macros.
36020         * lib/xstrtol-error.c: Include exitfail.h.
36021         (xstrtol_fatal): New function, with a different signature from the
36022         old xstrtol_error, so that the caller need not worry about passing
36023         in an exit status, or about storage management of the option argument.
36024         (xstrtol_error): Now a static function.  Redo signature to
36025         implement xstrtol_fatal.  Output the correct number of hyphens in
36026         front of the option so that the caller need not worry about
36027         storage management.
36028         (N_): New macro.
36029         (_): Remove; not used now.
36030         * modules/xstrtol: Depend on getopt.
36031         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
36032         of old STRTOL_FATAL_ERROR macro.
36033         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
36034         of test program.
36035         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
36036         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
36037
36038 2007-08-08  Eric Blake  <ebb9@byu.net>
36039
36040         * lib/xstrtol-error.c: Add missing include.
36041
36042         Move xstrtol messages into gnulib domain, when --pobase is used.
36043         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
36044         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
36045         * modules/xstrtol (Files): Distribute new file.
36046         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
36047         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
36048         * tests/test-xstrtol.c: ...into new file.
36049         * tests/test-xstrtoul.c: Also test xstrtoul.
36050         * tests/test-xstrtoimax.c: Also test xstrtoimax.
36051         * tests/test-xstrtoumax.c: Also test xstrtoumax.
36052         * tests/test-xstrtol.sh: Drive the tests.
36053         * tests/test-xstrtoimax.sh: Likewise.
36054         * tests/test-xstrtoumax.sh: Likewise.
36055         * modules/xstrtol-tests: New module.
36056         * modules/xstrtoimax-tests: Likewise.
36057         * modules/xstrtoumax-tests: Likewise.
36058
36059 2007-08-08  Jim Meyering  <jim@meyering.net>
36060
36061         New function: mfile_name_concat.
36062         * lib/filenamecat.c (mfile_name_concat): New function, just like
36063         file_name_concat, but return NULL upon failure rather than exiting
36064         with a diagnostic.
36065         * lib/filenamecat.h: Declare it.
36066
36067 2007-08-07  Bruno Haible  <bruno@clisp.org>
36068
36069         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
36070         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
36071         warning from gcc.
36072         Reported by Eric Blake.
36073
36074 2007-08-07  Simon Josefsson  <simon@josefsson.org>
36075
36076         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
36077         * modules/crypto/arcfour (License): Likewise.
36078         * modules/crypto/des-tests (License): Likewise.
36079         * modules/crypto/gc-arctwo-tests (License): Likewise.
36080         * modules/crypto/gc-des-tests (License): Likewise.
36081         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
36082         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
36083         * modules/crypto/gc-md2-tests (License): Likewise.
36084         * modules/crypto/gc-md4-tests (License): Likewise.
36085         * modules/crypto/gc-md5-tests (License): Likewise.
36086         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
36087         * modules/crypto/gc-rijndael-tests (License): Likewise.
36088         * modules/crypto/gc-sha1-tests (License): Likewise.
36089         * modules/crypto/gc-tests (License): Likewise.
36090         * modules/crypto/hmac-md5 (License): Likewise.
36091         * modules/crypto/hmac-sha1 (License): Likewise.
36092         * modules/crypto/md2-tests (License): Likewise.
36093         * modules/crypto/md4-tests (License): Likewise.
36094         * modules/crypto/md5 (License): Likewise.
36095         * modules/crypto/rijndael (License): Likewise.
36096         * modules/crypto/sha1 (License): Likewise.
36097         * modules/memxor (License): Likewise.
36098
36099 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
36100         and Bruno Haible  <bruno@clisp.org>
36101
36102         * NEWS: Describe interface changes to human, xstrtol.
36103         * lib/human.h: Include <xstrtol.h>.
36104         (human_options): Return enum strtol_error, not int.  Remove
36105         bool arg; take int * instead.
36106         * lib/human.c: Don't include "gettext.h".
36107         (_): Remove; no longer used.
36108         Don't include <xstrtol.h>, since human.h does it.
36109         (human_options): Adjust to abovementioned interface changes.
36110         Do not report error to stderr; that's now the caller's
36111         responsibility.
36112         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
36113         interface change.
36114         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
36115         Str, Argument_type_string.  All uses changed.  Put " argument"
36116         in diagnostics to make them clearer.  Change wording of suffix
36117         message for clarity.
36118         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
36119         Argument_type_string.
36120         (STRTOL_FATAL_WARN): Remove; no longer used.
36121         * modules/human (Depends-on): Remove gettext-h.
36122
36123 2007-08-06  Simon Josefsson  <simon@josefsson.org>
36124
36125         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
36126
36127 2007-07-31  Bruno Haible  <bruno@clisp.org>
36128
36129         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
36130         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
36131         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
36132
36133 2007-07-31  Bruno Haible  <bruno@clisp.org>
36134
36135         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
36136         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
36137
36138 2007-07-30  Bruno Haible  <bruno@clisp.org>
36139
36140         * modules/base64 (License): Use the synonymous term "LGPLv2+".
36141         * modules/c-ctype (License): Likewise.
36142         * modules/c-strcase (License): Likewise.
36143         * modules/check-version (License): Likewise.
36144         * modules/iconv (License): Likewise.
36145         * modules/iconv_open (License): Likewise.
36146         * modules/read-file (License): Likewise.
36147         * modules/striconv (License): Likewise.
36148         * modules/strverscmp (License): Likewise.
36149         * modules/vasprintf (License): Likewise.
36150         * modules/crypto/des (License): Likewise.
36151         * modules/crypto/gc (License): Likewise.
36152         * modules/crypto/gc-arcfour (License): Likewise.
36153         * modules/crypto/gc-arctwo (License): Likewise.
36154         * modules/crypto/gc-des (License): Likewise.
36155         * modules/crypto/gc-hmac-md5 (License): Likewise.
36156         * modules/crypto/gc-hmac-sha1 (License): Likewise.
36157         * modules/crypto/gc-md2 (License): Likewise.
36158         * modules/crypto/gc-md4 (License): Likewise.
36159         * modules/crypto/gc-md5 (License): Likewise.
36160         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
36161         * modules/crypto/gc-random (License): Likewise.
36162         * modules/crypto/gc-rijndael (License): Likewise.
36163         * modules/crypto/gc-sha1 (License): Likewise.
36164         * modules/crypto/md2 (License): Likewise.
36165         * modules/crypto/md4 (License): Likewise.
36166
36167 2007-07-30  Jim Meyering  <jim@meyering.net>
36168
36169         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
36170         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
36171         it has valid stat data.  This bug would cause du not to count the
36172         sizes of inaccessible directories.
36173         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
36174         in <http://bugzilla.redhat.com/250077>.
36175
36176 2007-07-25  Peter O'Gorman  <peter@pogma.com>
36177             Bruno Haible  <bruno@clisp.org>
36178
36179         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
36180         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
36181         #include_next, gives a diagnostic about it, but reports no error in
36182         the exit code.
36183         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36184
36185 2007-07-24  Ben Pfaff  <blp@gnu.org>
36186
36187         Improve name: "count-one-bits" is better than "popcount".
36188         * MODULES.html.sh: Update name.
36189         * lib/popcount.h: Renamed lib/count-one-bits.h.
36190         (popcount): Renamed count_one_bits.
36191         (popcountl): Renamed count_one_bits_l.
36192         (popcountll): Renamed count_one_bits_ll.
36193         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
36194         * modules/popcount: Renamed module/count-one-bits.
36195         * modules/popcount-tests: Renamed module/count-one-bits-tests.
36196         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
36197
36198 2007-07-23  Ben Pfaff  <blp@gnu.org>
36199
36200         * lib/popcount.h (popcount32): Reduce size of constants, to allow
36201         better code generation, and add U to large constants to avoid
36202         warnings, in non-GCC case.
36203         Suggested by Bruno Haible.
36204
36205 2007-07-23  Ben Pfaff  <blp@gnu.org>
36206
36207         * lib/popcount.h: Use verify_true instead of if...abort.
36208         * modules/popcount: Depend on verify module.
36209         Suggested by Jim Meyering.
36210
36211 2007-07-23  Bruno Haible  <bruno@clisp.org>
36212
36213         * gnulib-tool (func_import): Create a .cvsignore file also when the
36214         directory is not yet in CVS but the toplevel directory is. When
36215         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
36216         Reported by Karl Berry.
36217
36218 2007-07-22  Ben Pfaff  <blp@gnu.org>
36219
36220         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
36221         case.
36222         Suggested by Eric Blake.
36223
36224 2007-07-22  Ben Pfaff  <blp@gnu.org>
36225
36226         New module: popcount.
36227         * MODULES.html.sh: Add popcount.
36228         * modules/popcount: New file.
36229         * modules/popcount-tests: New file.
36230         * tests/test-popcount.c: New file.
36231         * lib/popcount.h: New file.
36232         * m4/popcount.m4: New file.
36233
36234 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36235
36236         * build-aux/announce-gen: Update to GPLv3.
36237
36238         * build-aux/config.guess: Update from config.
36239
36240 2007-07-21  Bruno Haible  <bruno@clisp.org>
36241
36242         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
36243         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
36244
36245 2007-07-20  Jim Meyering  <jim@meyering.net>
36246
36247         * check-module: Diagnose a self-dependency.
36248
36249 2007-07-19  Bruno Haible  <bruno@clisp.org>
36250
36251         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
36252         empty.
36253         Reported by Eric Blake.
36254
36255 2007-07-18  Bruno Haible  <bruno@clisp.org>
36256
36257         * gnulib-tool: New options --po-base, --po-domain.
36258         (func_usage): Document them.
36259         (pobase, po_domain): New variables.
36260         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
36261         DEFAULT_TEXT_DOMAIN.
36262         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
36263         (func_import): Consider pobase and po_domain. Create a po/ directory.
36264         (func_create_testdir): Set pobase and po_domain to empty.
36265         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
36266         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
36267
36268 2007-07-18  Bruno Haible  <bruno@clisp.org>
36269
36270         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36271         EXTRA_DIST augmentation for files in build-aux/.
36272
36273 2007-07-16  Bruno Haible  <bruno@clisp.org>
36274
36275         * modules/lseek (License): Use the synonymous term "LGPLv2+".
36276         * modules/getdelim (License): Likewise.
36277
36278 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36279
36280         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
36281         * modules/d-type (License): Likewise.
36282         * modules/extensions (License): Likewise.
36283         * modules/fnmatch (License): Likewise.
36284         * modules/fseeko (License): Likewise.
36285         * modules/getaddrinfo (License): Likewise.
36286         * modules/getline (License): Likewise.
36287         * modules/getlogin_r (License): Likewise.
36288         * modules/getpass (License): Likewise.
36289         * modules/gettimeofday (License): Likewise.
36290         * modules/glob (License): Likewise.
36291         * modules/inet_ntop (License): Likewise.
36292         * modules/malloc (License): Likewise.
36293         * modules/malloca (License): Likewise.
36294         * modules/memmem (License): Likewise.
36295         * modules/mempcpy (License): Likewise.
36296         * modules/memset (License): Likewise.
36297         * modules/minmax (License): Likewise.
36298         * modules/mktime (License): Likewise.
36299         * modules/netinet_in (License): Likewise.
36300         * modules/pathmax (License): Likewise.
36301         * modules/poll (License): Likewise.
36302         * modules/regex (License): Likewise.
36303         * modules/snprintf (License): Likewise.
36304         * modules/stdbool (License): Likewise.
36305         * modules/stdint (License): Likewise.
36306         * modules/stdio (License): Likewise.
36307         * modules/strcase (License): Likewise.
36308         * modules/strcasestr (License): Likewise.
36309         * modules/strdup (License): Likewise.
36310         * modules/string (License): Likewise.
36311         * modules/strndup (License): Likewise.
36312         * modules/strnlen (License): Likewise.
36313         * modules/strpbrk (License): Likewise.
36314         * modules/strptime (License): Likewise.
36315         * modules/strsep (License): Likewise.
36316         * modules/sys_select (License): Likewise.
36317         * modules/sys_socket (License): Likewise.
36318         * modules/sys_stat (License): Likewise.
36319         * modules/sys_time (License): Likewise.
36320         * modules/time (License): Likewise.
36321         * modules/time_r (License): Likewise.
36322         * modules/timegm (License): Likewise.
36323         * modules/unistd (License): Likewise.
36324         * modules/vsnprintf (License): Likewise.
36325         * modules/wctype (License): Likewise.
36326
36327 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36328
36329         * modules/argz (License): LGPLv2+.
36330
36331 2007-07-15  Karl Berry  <karl@gnu.org>
36332
36333         * doc/gnulib.texi: revise node structure per new fdl.texi.
36334
36335 2007-07-14  Bruno Haible  <bruno@clisp.org>
36336
36337         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
36338         the output file.
36339         * lib/uniname/uninames.h: Regenerated.
36340
36341 2007-07-14  Karl Berry  <karl@gnu.org>
36342
36343         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
36344         omitting sectioning and index commands.
36345
36346 2007-07-13  Bruno Haible  <bruno@clisp.org>
36347
36348         New gnulib-tool option --more-symlinks.
36349         * gnulib-tool (func_usage): Document --more-symlinks.
36350         (do_copyrights): New variable.
36351         Recognize option --more-symlinks.
36352         (func_import): Don't add a copyright notice transform to
36353         sed_transform_lib_file if do_copyrights is empty.
36354
36355 2007-07-13  Bruno Haible  <bruno@clisp.org>
36356
36357         * lib/vasnprintf.c (decimal_point_char): Define also if
36358         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
36359         && !NEED_PRINTF_DIRECTIVE_A.
36360         Reported by Clemens Koller <clemens.koller@anagramm.de> via
36361         Gary V. Vaughan <gary@gnu.org>.
36362
36363 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
36364
36365         * lib/inttypes_.h: Undo previous change, since it was fixed
36366         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
36367
36368 2007-07-13  Bruno Haible  <bruno@clisp.org>
36369
36370         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
36371         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
36372
36373 2007-07-13  Jim Meyering  <jim@meyering.net>
36374
36375         df: Don't fail for Tru64's "file-on-file mount".
36376         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
36377         so we fall through and use statfs instead.  Details here:
36378         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
36379         Reported by Albert Chin.
36380
36381 2007-07-13  Bruno Haible  <bruno@clisp.org>
36382
36383         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
36384         * modules/configmake (License): Likewise.
36385         * modules/gettext (License): Likewise.
36386         * modules/gettext-h (License): Likewise.
36387         * modules/include_next (License): Likewise.
36388         * modules/link-warning (License): Likewise.
36389         * modules/localcharset (License): Likewise.
36390         * modules/localename (License): Likewise.
36391         * modules/lock (License): Likewise.
36392         * modules/relocatable-lib-lgpl (License): Likewise.
36393         * modules/size_max (License): Likewise.
36394         * modules/vasnprintf (License): Likewise.
36395         * modules/wchar (License): Likewise.
36396         * modules/xsize (License): Likewise.
36397
36398 2007-07-13  Bruno Haible  <bruno@clisp.org>
36399
36400         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
36401         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
36402
36403 2007-07-12  Bruno Haible  <bruno@clisp.org>
36404
36405         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
36406         in the modules files.
36407
36408 2007-07-11  Karl Berry  <karl@gnu.org>
36409
36410         * MODULES.html.sh (func_module): use
36411          sed -e '\|^'"${includefile}"'$|d'
36412          instead of /.../d, to avoid errors on $includefile's containing /.
36413
36414 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36415
36416         * gnulib-tool (func_import): Avoid duplication of --avoid
36417         statements
36418         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
36419         names to `_' in variable names.
36420
36421 2007-07-10  Eric Blake  <ebb9@byu.net>
36422
36423         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
36424         * NEWS: Document this change.
36425
36426 2007-07-08  Bruno Haible  <bruno@clisp.org>
36427
36428         Update to Unicode 5.0.
36429         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
36430         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
36431         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
36432         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
36433         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
36434         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
36435         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
36436         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
36437         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
36438         U+10A3F, U+1D242..U+1D244.
36439         (nonspacing_table_ind): Update.
36440         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
36441         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
36442
36443 2007-07-08  Bruno Haible  <bruno@clisp.org>
36444
36445         Update to Unicode 5.0.
36446         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
36447         code transform. Extend the name index field of unicode_name_to_code and
36448         unicode_code_to_name from 16 to 24 bits.
36449         * lib/uniname/uniname.c (unicode_character_name,
36450         unicode_name_character): Add the range 0x12xxx to the code transform.
36451         * lib/uniname/uninames.h: Regenerated.
36452         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
36453
36454 2007-07-07  Bruno Haible  <bruno@clisp.org>
36455
36456         * modules/wcwidth-tests: New file.
36457         * tests/test-wcwidth.c: New file.
36458
36459         Work around MacOS X wcwidth() bug.
36460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
36461         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
36462         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
36463         original wcwidth in non-UTF-8 locales.
36464         * modules/wcwidth (Depends-on): Add localcharset, streq,
36465         uniwidth/width.
36466         * doc/functions/wcwidth.texi: Update.
36467
36468 2007-07-07  Bruno Haible  <bruno@clisp.org>
36469
36470         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
36471         (wcwidth): New declaration.
36472         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
36473         macros.
36474         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
36475         here. Prepare for creating <wchar.h> unconditionally.
36476         * modules/wchar (Depends-on): Add link-warning.
36477         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
36478         REPLACE_WCWIDTH, and GL_LINK_WARNING.
36479         * lib/wcwidth.h: Remove file.
36480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
36481         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
36482         * modules/wcwidth (Files): Remove lib/wcwidth.h.
36483         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
36484         (Include): Replace wcwidth.h with <wchar.h>.
36485         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
36486         * lib/mbchar.h: Don't include wcwidth.h.
36487         * lib/mbswidth.c: Likewise.
36488         * NEWS: Mention the change.
36489
36490 2007-07-07  Bruno Haible  <bruno@clisp.org>
36491
36492         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36493         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36494         definition with an external declaration.
36495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36496         defined as a function. Remove AC_C_INLINE requirement.
36497         * modules/wcwidth (Files): Add lib/wcwidth.c.
36498         (Makefile.am): Remove redundant statement.
36499
36500 2007-07-07  Bruno Haible  <bruno@clisp.org>
36501
36502         * MODULES.html.sh (Unicode string functions): Add the new modules.
36503
36504         * tests/uniwidth/test-u32-strwidth.c: New file.
36505         * modules/uniwidth/u32-strwidth-tests: New file.
36506
36507         * lib/uniwidth/u32-strwidth.c: New file.
36508         * modules/uniwidth/u32-strwidth: New file.
36509
36510         * tests/uniwidth/test-u16-strwidth.c: New file.
36511         * modules/uniwidth/u16-strwidth-tests: New file.
36512
36513         * lib/uniwidth/u16-strwidth.c: New file.
36514         * modules/uniwidth/u16-strwidth: New file.
36515
36516         * tests/uniwidth/test-u8-strwidth.c: New file.
36517         * modules/uniwidth/u8-strwidth-tests: New file.
36518
36519         * lib/uniwidth/u8-strwidth.c: New file.
36520         * modules/uniwidth/u8-strwidth: New file.
36521
36522         * tests/uniwidth/test-u32-width.c: New file.
36523         * modules/uniwidth/u32-width-tests: New file.
36524
36525         * lib/uniwidth/u32-width.c: New file.
36526         * modules/uniwidth/u32-width: New file.
36527
36528         * tests/uniwidth/test-u16-width.c: New file.
36529         * modules/uniwidth/u16-width-tests: New file.
36530
36531         * lib/uniwidth/u16-width.c: New file.
36532         * modules/uniwidth/u16-width: New file.
36533
36534         * tests/uniwidth/test-u8-width.c: New file.
36535         * modules/uniwidth/u8-width-tests: New file.
36536
36537         * lib/uniwidth/u8-width.c: New file.
36538         * modules/uniwidth/u8-width: New file.
36539
36540         * tests/uniwidth/test-uc_width.c: New file.
36541         * modules/uniwidth/width-tests: New file.
36542
36543         * lib/uniwidth/width.c: New file, from GNU libiconv.
36544         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36545         * modules/uniwidth/width: New file.
36546
36547         * lib/uniwidth.h: New file, from GNU libiconv.
36548         * modules/uniwidth/base: New file.
36549
36550 2007-07-07  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/uniname.h: New file, from GNU gettext.
36553         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36554         * lib/uniname/uninames.h: New file, from GNU gettext.
36555         * lib/uniname/uniname.c: New file, from GNU gettext.
36556         * tests/uniname/test-uninames.sh: New file.
36557         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36558         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36559         * modules/uniname/base: New file.
36560         * modules/uniname/uniname: New file.
36561         * modules/uniname/uniname-tests: New file.
36562         * MODULES.html.sh (Unicode string functions): Add the new modules.
36563
36564 2007-07-06  Bruno Haible  <bruno@clisp.org>
36565
36566         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36567
36568 2007-07-06  Bruno Haible  <bruno@clisp.org>
36569
36570         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36571         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36572         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36573         include <sys/time.h>.
36574         Reported by Eric Blake.
36575
36576 2007-07-06  Eric Blake  <ebb9@byu.net>
36577
36578         Fix testing canonicalize on cygwin.
36579         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36580         Revert patch from 2007-06-19.
36581         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36582         canonicalize module is also in use.
36583         * tests/test-canonicalize.c: New file.
36584         * tests/test-canonicalize.sh: Likewise.
36585         * modules/canonicalize-tests: Likewise.
36586
36587 2007-07-06  Jim Meyering  <jim@meyering.net>
36588
36589         * lib/getugroups.c (getugroups): Detect getgrent failure.
36590         Adjust comment to reflect reality: this function may return -1.
36591
36592 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36593
36594         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36595         the new TP address.
36596         (usage): Fix typo
36597         (gnulib_mk): New variable.
36598
36599 2007-07-05  Jim Meyering  <jim@meyering.net>
36600
36601         Don't let endgrent clobber errno, no matter how improbable.
36602         * lib/getugroups.c (getugroups): Save and restore errno around
36603         endgrent call.
36604
36605         Close the group DB even when failing with 2^31 or more members.
36606         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36607
36608 2007-07-04  Jim Meyering  <jim@meyering.net>
36609
36610         * lib/getugroups.h: New file.
36611         * lib/getugroups.c: Include "getugroups.h".
36612         Remove uses of "register" keyword.
36613         Move local variable, "cp", down into scope where used.
36614         Give "username" parameter the "const" attribute.
36615         * modules/getugroups (Files): Add lib/getugroups.h
36616
36617 2007-07-04  Karl Berry  <karl@gnu.org>
36618
36619         * MODULES.html.sh (func_all_modules): Complete rename of
36620         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36621
36622 2007-07-02  Bruno Haible  <bruno@clisp.org>
36623
36624         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36625         mode, when inttypes.h comes from gnulib.
36626         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36627
36628 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36629
36630         * NEWS: Mention lgpl module name change.
36631
36632         * modules/lgpl-2.1: Renamed from lgpl.
36633
36634         * NEWS: Mention gpl module name change.
36635
36636         * modules/gpl-3.0: New file, based on gpl-2.0.
36637
36638         * modules/gpl-2.0: Renamed from gpl.
36639
36640         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36641         doc/gpl-2.0.texi.
36642
36643 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36644
36645         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36646         #define __STDC_LIMIT_MACROS temporarily while including
36647         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36648         Problem reported by Joel E. Denny in
36649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36650
36651 2007-07-01  Bruno Haible  <bruno@clisp.org>
36652
36653         * lib/unistdio.h: New file.
36654         * lib/unistdio/u-asnprintf.h: New file.
36655         * lib/unistdio/u-asprintf.h: New file.
36656         * lib/unistdio/u-printf-args.c: New file.
36657         * lib/unistdio/u-printf-args.h: New file.
36658         * lib/unistdio/u-printf-parse.h: New file.
36659         * lib/unistdio/u-snprintf.h: New file.
36660         * lib/unistdio/u-sprintf.h: New file.
36661         * lib/unistdio/u-vasprintf.h: New file.
36662         * lib/unistdio/u-vsnprintf.h: New file.
36663         * lib/unistdio/u-vsprintf.h: New file.
36664         * lib/unistdio/ulc-asnprintf.c: New file.
36665         * lib/unistdio/ulc-asprintf.c: New file.
36666         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36667         * lib/unistdio/ulc-printf-parse.c: New file.
36668         * lib/unistdio/ulc-snprintf.c: New file.
36669         * lib/unistdio/ulc-sprintf.c: New file.
36670         * lib/unistdio/ulc-vasnprintf.c: New file.
36671         * lib/unistdio/ulc-vasprintf.c: New file.
36672         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36673         * lib/unistdio/ulc-vsnprintf.c: New file.
36674         * lib/unistdio/ulc-vsprintf.c: New file.
36675         * lib/unistdio/u8-asnprintf.c: New file.
36676         * lib/unistdio/u8-asprintf.c: New file.
36677         * lib/unistdio/u8-printf-parse.c: New file.
36678         * lib/unistdio/u8-snprintf.c: New file.
36679         * lib/unistdio/u8-sprintf.c: New file.
36680         * lib/unistdio/u8-vasnprintf.c: New file.
36681         * lib/unistdio/u8-vasprintf.c: New file.
36682         * lib/unistdio/u8-vsnprintf.c: New file.
36683         * lib/unistdio/u8-vsprintf.c: New file.
36684         * lib/unistdio/u8-u8-asnprintf.c: New file.
36685         * lib/unistdio/u8-u8-asprintf.c: New file.
36686         * lib/unistdio/u8-u8-snprintf.c: New file.
36687         * lib/unistdio/u8-u8-sprintf.c: New file.
36688         * lib/unistdio/u8-u8-vasnprintf.c: New file.
36689         * lib/unistdio/u8-u8-vasprintf.c: New file.
36690         * lib/unistdio/u8-u8-vsnprintf.c: New file.
36691         * lib/unistdio/u8-u8-vsprintf.c: New file.
36692         * lib/unistdio/u16-asnprintf.c: New file.
36693         * lib/unistdio/u16-asprintf.c: New file.
36694         * lib/unistdio/u16-printf-parse.c: New file.
36695         * lib/unistdio/u16-snprintf.c: New file.
36696         * lib/unistdio/u16-sprintf.c: New file.
36697         * lib/unistdio/u16-vasnprintf.c: New file.
36698         * lib/unistdio/u16-vasprintf.c: New file.
36699         * lib/unistdio/u16-vsnprintf.c: New file.
36700         * lib/unistdio/u16-vsprintf.c: New file.
36701         * lib/unistdio/u16-u16-asnprintf.c: New file.
36702         * lib/unistdio/u16-u16-asprintf.c: New file.
36703         * lib/unistdio/u16-u16-snprintf.c: New file.
36704         * lib/unistdio/u16-u16-sprintf.c: New file.
36705         * lib/unistdio/u16-u16-vasnprintf.c: New file.
36706         * lib/unistdio/u16-u16-vasprintf.c: New file.
36707         * lib/unistdio/u16-u16-vsnprintf.c: New file.
36708         * lib/unistdio/u16-u16-vsprintf.c: New file.
36709         * lib/unistdio/u32-asnprintf.c: New file.
36710         * lib/unistdio/u32-asprintf.c: New file.
36711         * lib/unistdio/u32-printf-parse.c: New file.
36712         * lib/unistdio/u32-snprintf.c: New file.
36713         * lib/unistdio/u32-sprintf.c: New file.
36714         * lib/unistdio/u32-vasnprintf.c: New file.
36715         * lib/unistdio/u32-vasprintf.c: New file.
36716         * lib/unistdio/u32-vsnprintf.c: New file.
36717         * lib/unistdio/u32-vsprintf.c: New file.
36718         * lib/unistdio/u32-u32-asnprintf.c: New file.
36719         * lib/unistdio/u32-u32-asprintf.c: New file.
36720         * lib/unistdio/u32-u32-snprintf.c: New file.
36721         * lib/unistdio/u32-u32-sprintf.c: New file.
36722         * lib/unistdio/u32-u32-vasnprintf.c: New file.
36723         * lib/unistdio/u32-u32-vasprintf.c: New file.
36724         * lib/unistdio/u32-u32-vsnprintf.c: New file.
36725         * lib/unistdio/u32-u32-vsprintf.c: New file.
36726         * tests/unistdio/test-ulc-asnprintf1.c: New file.
36727         * tests/unistdio/test-ulc-asnprintf1.h: New file.
36728         * tests/unistdio/test-ulc-printf1.h: New file.
36729         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
36730         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
36731         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
36732         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
36733         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
36734         * tests/unistdio/test-ulc-vasprintf1.c: New file.
36735         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
36736         * tests/unistdio/test-ulc-vsprintf1.c: New file.
36737         * tests/unistdio/test-u8-asnprintf1.c: New file.
36738         * tests/unistdio/test-u8-asnprintf1.h: New file.
36739         * tests/unistdio/test-u8-printf1.h: New file.
36740         * tests/unistdio/test-u8-vasnprintf1.c: New file.
36741         * tests/unistdio/test-u8-vasnprintf2.c: New file.
36742         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
36743         * tests/unistdio/test-u8-vasnprintf3.c: New file.
36744         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
36745         * tests/unistdio/test-u8-vasprintf1.c: New file.
36746         * tests/unistdio/test-u8-vsnprintf1.c: New file.
36747         * tests/unistdio/test-u8-vsprintf1.c: New file.
36748         * tests/unistdio/test-u16-asnprintf1.c: New file.
36749         * tests/unistdio/test-u16-asnprintf1.h: New file.
36750         * tests/unistdio/test-u16-printf1.h: New file.
36751         * tests/unistdio/test-u16-vasnprintf1.c: New file.
36752         * tests/unistdio/test-u16-vasnprintf2.c: New file.
36753         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
36754         * tests/unistdio/test-u16-vasnprintf3.c: New file.
36755         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
36756         * tests/unistdio/test-u16-vasprintf1.c: New file.
36757         * tests/unistdio/test-u16-vsnprintf1.c: New file.
36758         * tests/unistdio/test-u16-vsprintf1.c: New file.
36759         * tests/unistdio/test-u32-asnprintf1.c: New file.
36760         * tests/unistdio/test-u32-asnprintf1.h: New file.
36761         * tests/unistdio/test-u32-printf1.h: New file.
36762         * tests/unistdio/test-u32-vasnprintf1.c: New file.
36763         * tests/unistdio/test-u32-vasnprintf2.c: New file.
36764         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
36765         * tests/unistdio/test-u32-vasnprintf3.c: New file.
36766         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
36767         * tests/unistdio/test-u32-vasprintf1.c: New file.
36768         * tests/unistdio/test-u32-vsnprintf1.c: New file.
36769         * tests/unistdio/test-u32-vsprintf1.c: New file.
36770         * modules/unistdio/base: New file.
36771         * modules/unistdio/u-printf-args: New file.
36772         * modules/unistdio/ulc-asnprintf: New file.
36773         * modules/unistdio/ulc-asprintf: New file.
36774         * modules/unistdio/ulc-fprintf: New file.
36775         * modules/unistdio/ulc-printf-parse: New file.
36776         * modules/unistdio/ulc-snprintf: New file.
36777         * modules/unistdio/ulc-sprintf: New file.
36778         * modules/unistdio/ulc-vasnprintf: New file.
36779         * modules/unistdio/ulc-vasprintf: New file.
36780         * modules/unistdio/ulc-vfprintf: New file.
36781         * modules/unistdio/ulc-vsnprintf: New file.
36782         * modules/unistdio/ulc-vsprintf: New file.
36783         * modules/unistdio/u8-asnprintf: New file.
36784         * modules/unistdio/u8-asprintf: New file.
36785         * modules/unistdio/u8-printf-parse: New file.
36786         * modules/unistdio/u8-snprintf: New file.
36787         * modules/unistdio/u8-sprintf: New file.
36788         * modules/unistdio/u8-vasnprintf: New file.
36789         * modules/unistdio/u8-vasprintf: New file.
36790         * modules/unistdio/u8-vsnprintf: New file.
36791         * modules/unistdio/u8-vsprintf: New file.
36792         * modules/unistdio/u8-u8-asnprintf: New file.
36793         * modules/unistdio/u8-u8-asprintf: New file.
36794         * modules/unistdio/u8-u8-snprintf: New file.
36795         * modules/unistdio/u8-u8-sprintf: New file.
36796         * modules/unistdio/u8-u8-vasnprintf: New file.
36797         * modules/unistdio/u8-u8-vasprintf: New file.
36798         * modules/unistdio/u8-u8-vsnprintf: New file.
36799         * modules/unistdio/u8-u8-vsprintf: New file.
36800         * modules/unistdio/u16-asnprintf: New file.
36801         * modules/unistdio/u16-asprintf: New file.
36802         * modules/unistdio/u16-printf-parse: New file.
36803         * modules/unistdio/u16-snprintf: New file.
36804         * modules/unistdio/u16-sprintf: New file.
36805         * modules/unistdio/u16-vasnprintf: New file.
36806         * modules/unistdio/u16-vasprintf: New file.
36807         * modules/unistdio/u16-vsnprintf: New file.
36808         * modules/unistdio/u16-vsprintf: New file.
36809         * modules/unistdio/u16-u16-asnprintf: New file.
36810         * modules/unistdio/u16-u16-asprintf: New file.
36811         * modules/unistdio/u16-u16-snprintf: New file.
36812         * modules/unistdio/u16-u16-sprintf: New file.
36813         * modules/unistdio/u16-u16-vasnprintf: New file.
36814         * modules/unistdio/u16-u16-vasprintf: New file.
36815         * modules/unistdio/u16-u16-vsnprintf: New file.
36816         * modules/unistdio/u16-u16-vsprintf: New file.
36817         * modules/unistdio/u32-asnprintf: New file.
36818         * modules/unistdio/u32-asprintf: New file.
36819         * modules/unistdio/u32-printf-parse: New file.
36820         * modules/unistdio/u32-snprintf: New file.
36821         * modules/unistdio/u32-sprintf: New file.
36822         * modules/unistdio/u32-vasnprintf: New file.
36823         * modules/unistdio/u32-vasprintf: New file.
36824         * modules/unistdio/u32-vsnprintf: New file.
36825         * modules/unistdio/u32-vsprintf: New file.
36826         * modules/unistdio/u32-u32-asnprintf: New file.
36827         * modules/unistdio/u32-u32-asprintf: New file.
36828         * modules/unistdio/u32-u32-snprintf: New file.
36829         * modules/unistdio/u32-u32-sprintf: New file.
36830         * modules/unistdio/u32-u32-vasnprintf: New file.
36831         * modules/unistdio/u32-u32-vasprintf: New file.
36832         * modules/unistdio/u32-u32-vsnprintf: New file.
36833         * modules/unistdio/u32-u32-vsprintf: New file.
36834         * modules/unistdio/ulc-asnprintf-tests: New file.
36835         * modules/unistdio/ulc-vasnprintf-tests: New file.
36836         * modules/unistdio/ulc-vasprintf-tests: New file.
36837         * modules/unistdio/ulc-vsnprintf-tests: New file.
36838         * modules/unistdio/ulc-vsprintf-tests: New file.
36839         * modules/unistdio/u8-asnprintf-tests: New file.
36840         * modules/unistdio/u8-vasnprintf-tests: New file.
36841         * modules/unistdio/u8-vasprintf-tests: New file.
36842         * modules/unistdio/u8-vsnprintf-tests: New file.
36843         * modules/unistdio/u8-vsprintf-tests: New file.
36844         * modules/unistdio/u16-asnprintf-tests: New file.
36845         * modules/unistdio/u16-vasnprintf-tests: New file.
36846         * modules/unistdio/u16-vasprintf-tests: New file.
36847         * modules/unistdio/u16-vsnprintf-tests: New file.
36848         * modules/unistdio/u16-vsprintf-tests: New file.
36849         * modules/unistdio/u32-asnprintf-tests: New file.
36850         * modules/unistdio/u32-vasnprintf-tests: New file.
36851         * modules/unistdio/u32-vasprintf-tests: New file.
36852         * modules/unistdio/u32-vsnprintf-tests: New file.
36853         * modules/unistdio/u32-vsprintf-tests: New file.
36854         * MODULES.html.sh (Unicode string functions): Add the new modules.
36855
36856 2007-07-01  Bruno Haible  <bruno@clisp.org>
36857
36858         * lib/sprintf.c (sprintf): Limit the available length estimation,
36859         to avoid address wraparound.
36860         * lib/vsprintf.c (vsprintf): Likewise.
36861         * modules/sprintf-posix (Dependencies): Add stdint.
36862         * modules/vsprintf-posix (Dependencies): Likewise.
36863
36864 2007-07-01  Bruno Haible  <bruno@clisp.org>
36865
36866         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
36867         Windows PATH as well. Conservative double-quoting. Comments.
36868
36869 2007-07-01  Bruno Haible  <bruno@clisp.org>
36870             Eric Blake  <ebb9@byu.net>
36871             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36872
36873         * gnulib-tool (self_abspathname): Fix algorithm to cope with
36874         empty components in $PATH, denoting '.'.
36875
36876 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36877
36878         * gnulib-tool: Fix indentation.
36879         (func_create_megatestdir): Likewise.
36880         Report by Bruno Haible.
36881
36882 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36883
36884         Sync from Automake.
36885         * build-aux/gnupload: Fix shell portability issues with for loops.
36886         Report by Karl Berry.
36887
36888 2007-06-29  Simon Josefsson  <simon@josefsson.org>
36889
36890         * build-aux/maint.mk (POURL): Use translationproject.org.
36891
36892 2007-06-27  Simon Josefsson  <simon@josefsson.org>
36893             Bruno Haible  <bruno@clisp.org>
36894
36895         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
36896         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
36897         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
36898         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
36899         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
36900
36901 2007-06-27  Bruno Haible  <bruno@clisp.org>
36902
36903         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
36904         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
36905
36906 2007-06-26  Karl Berry  <karl@gnu.org>
36907
36908         * MODULES.html.sh: remove xreadlink-with-size.
36909
36910 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36911
36912         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
36913         method that I hope also handles the double-include problem noted
36914         by Bruno Haible in
36915         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
36916
36917 2007-06-23  Bruno Haible  <bruno@clisp.org>
36918
36919         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36920         Don't let the 'mostlyclean' target fail if the last subdirectory could
36921         not be removed.
36922         Reported by Karl Berry.
36923
36924 2007-06-23  Bruno Haible  <bruno@clisp.org>
36925
36926         * gnulib-tool (echo): Add a speedier workaround for ksh.
36927         * tests/test-echo.sh: Likewise.
36928
36929 2007-06-23  Bruno Haible  <bruno@clisp.org>
36930
36931         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
36932         * tests/test-echo.sh: Likewise.
36933
36934 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36935
36936         * gnulib-tool (IFS): Initialize early, so we don't set it to
36937         empty later.
36938         (self_abspathname): Rewrite algorithm to set it, reindent.
36939         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
36940         (func_create_megatestdir): Merge some sed scripts.
36941
36942 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36943
36944         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
36945         exposed by Sun Studio 11 cc on Solaris 8.
36946
36947 2007-06-22  Bruno Haible  <bruno@clisp.org>
36948
36949         * gnulib-tool (echo): Ensure the echo primitive does not interpret
36950         backslashes.
36951         * tests/test-echo.sh: New file.
36952
36953 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36954
36955         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
36956         simplify `sed_replace_build_aux' scripts, they are portable but
36957         echoing them with `echo' is not.
36958         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
36959
36960 2007-06-21  Karl Berry  <karl@gnu.org>
36961
36962         * config/srclist.txt: guess we can't handle the licenses via
36963         srclist at the moment.
36964
36965 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36966
36967         * MODULES.html.sh: Add include_next.
36968         * modules/include_next: New file.
36969
36970 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36971
36972         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
36973         INCLUDE_NEXT.
36974         (gl_CHECK_NEXT_HEADERS): New macro.
36975         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
36976         the obsolescent gl_ABSOLUTE_HEADER.
36977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
36978         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
36979         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36980         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36981         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36982         * m4/math_h.m4 (gl_MATH_H): Likewise.
36983         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36984         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36985         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36986         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36987         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36988         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36989         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36990         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36991         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36992         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36993         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36994         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36995         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
36996         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36997         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36998         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36999         * m4/inttypes.m4 (gl_INTTYPES_H): Define
37000         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
37001         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
37002         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
37003         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
37004         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
37005         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
37006         * lib/float_.h: Likewise.
37007         * lib/inttypes_.h: Likewise.
37008         * lib/math_.h: Likewise.
37009         * lib/search_.h: Likewise.
37010         * lib/signal_.h: Likewise.
37011         * lib/stdint_.h: Likewise.
37012         * lib/stdio_.h: Likewise.
37013         * lib/stdlib_.h: Likewise.
37014         * lib/string_.h: Likewise.
37015         * lib/sys_stat_.h: Likewise.
37016         * lib/sys_time_.h: Likewise.
37017         * lib/time_.h: Likewise.
37018         * lib/unistd_.h: Likewise.
37019         * lib/wchar_.h: Likewise.
37020         * lib/wctype_.h: Likewise.
37021         * lib/dirent_.h: Likewise.
37022         * lib/iconv_.h: Likewise.
37023         * lib/locale_.h: Likewise.
37024         * lib/netinet_in_.h: Likewise.
37025         * lib/sys_select_.h: Likewise.
37026         * lib/sys_socket_.h: Likewise.
37027         * lib/sysexits_.h: Likewise.
37028         * modules/fcntl (Depends-on): Depend on include_next, not
37029         absolute_header.
37030         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
37031         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
37032         * modules/fchdir: Likewise.
37033         * modules/float: Likewise.
37034         * modules/iconv_open: Likewise.
37035         * modules/inttypes: Likewise.
37036         * modules/locale: Likewise.
37037         * modules/math: Likewise.
37038         * modules/netinet_in: Likewise.
37039         * modules/search: Likewise.
37040         * modules/signal: Likewise.
37041         * modules/stdint: Likewise.
37042         * modules/stdio: Likewise.
37043         * modules/stdlib: Likewise.
37044         * modules/string: Likewise.
37045         * modules/sys_select: Likewise.
37046         * modules/sys_socket: Likewise.
37047         * modules/sys_stat: Likewise.
37048         * modules/sys_time: Likewise.
37049         * modules/sysexits: Likewise.
37050         * modules/time: Likewise.
37051         * modules/unistd: Likewise.
37052         * modules/wchar: Likewise.
37053         * modules/wctype: Likewise.
37054         * modules/sys_stat: Change maintainer to "all".
37055         * modules/unistd: Likewise.
37056
37057 2007-06-20  Karl Berry  <karl@gnu.org>
37058
37059         * config/srclist.txt: track www changes in license files.
37060
37061 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
37062
37063         * build-aux/bootstrap: Remove stray dot.
37064         Make sure build_aux settings are honored when linking
37065         gnulib_extra_files.
37066
37067 2007-06-19  Eric Blake  <ebb9@byu.net>
37068
37069         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37070         Allow compilation on cygwin.
37071
37072 2007-06-19  Jim Meyering  <jim@meyering.net>
37073
37074         xreadlink-with-size: Remove module.  No longer used.
37075         Ex-callers now use xreadlink or mreadlink-with-size.
37076         * modules/xreadlink-with-size: Remove module.
37077         * lib/xreadlink-with-size.c: Remove file.
37078         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
37079         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
37080         just before the function definition *is* accurate.
37081
37082         Eliminate one way canonicalize_filename_mode could exit.
37083         * lib/canonicalize.c (canonicalize_filename_mode):
37084         Use mreadlink_with_size, not xreadlink_with_size.
37085
37086 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
37087
37088         Detect porting problems to FreeBSD/arm, which has time_t wider than
37089         long int.  Original problem reported for GNU diff by Xin Li in
37090         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
37091         * modules/getdate (Depends-on): Add intprops, verify.
37092         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
37093         is an integer type no wider than long int.
37094
37095 2007-06-18  Jim Meyering  <jim@meyering.net>
37096
37097         New module: mreadlink-with-size.
37098         * MODULES.html.sh: Add mreadlink-with-size.
37099         * modules/mreadlink-with-size: New module
37100         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
37101         not xreadlink-with-size.
37102         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
37103
37104 2007-06-16  Bruno Haible  <bruno@clisp.org>
37105
37106         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
37107         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
37108         Reported by Gary V. Vaughan <gary@gnu.org>.
37109
37110 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
37111
37112         Revamp lchown so that it lives in unistd.h where it belongs.
37113         * lib/lchown.h: Remove.
37114         * lib/dirchownmod.c: Don't include lib/lchown.h.
37115         * lib/fchownat.c: Likewise.
37116         * lib/openat.c: Likewise.
37117         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
37118         does not follow symlinks.
37119         (EOPNOTSUPP): Define if not defined.
37120         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
37121         is defined to 0.
37122         (lchown): New decl.
37123         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
37124         Do not check for lchown decl.
37125         Set REPLACE_LCHOWN.
37126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
37127         REPLACE_LCHOWN.
37128         * modules/chown: Make it clear it follows symlinks.
37129         * modules/lchown: Make it clear it doesn't follow symlinks.
37130         (Files): Remove lib/lchown.h
37131         (Depends-on): Add unistd.
37132         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
37133         (Include): Include <unistd.h>, not "lchown.h".
37134         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
37135         REPLACE_LCHOWN.
37136
37137 2007-06-15  Jim Meyering  <jim@meyering.net>
37138
37139         Change license (GPL to LGPL) of fsusage and dependents.
37140         * modules/fsusage (License): Change to LGPL.
37141         * modules/full-read (License): Likewise.
37142         * modules/full-write (License): Likewise.
37143         * modules/safe-read (License): Likewise.
37144         * modules/safe-write (License): Likewise.
37145
37146 2007-06-14  Ben Pfaff  <blp@gnu.org>
37147
37148         Missing part of allocsa -> malloca transition.
37149         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
37150         gl_MALLOCA.
37151
37152 2007-06-12  Bruno Haible  <bruno@clisp.org>
37153
37154         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
37155         to ia64, x86_64, i386.
37156         Reported by Eric Blake.
37157
37158 2007-06-12  Bruno Haible  <bruno@clisp.org>
37159
37160         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
37161         cross-compiling to x86_64.
37162
37163 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
37164
37165         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
37166         glitch reported by Ralf Wildenhues in
37167         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
37168
37169         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
37170         Vin Shelton.
37171
37172 2007-06-11  Bruno Haible  <bruno@clisp.org>
37173
37174         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
37175         replacement string.
37176         Reported by Eric Blake.
37177
37178 2007-06-10  Bruno Haible  <bruno@clisp.org>
37179
37180         Prepare vasnprintf code for use with Unicode strings.
37181         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
37182         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
37183         TYPE_U32_STRING.
37184         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
37185         a_u32_string variants.
37186         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37187         * lib/printf-args.c: Don't include config.h and the specification
37188         header if PRINTF_FETCHARGS is already defined.
37189         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37190         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
37191         TYPE_U16_STRING, TYPE_U32_STRING.
37192         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
37193         u16_directive, u16_directives, u32_directive, u32_directives): New
37194         types.
37195         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
37196         New declarations.
37197         * lib/printf-parse.c: Don't include config.h and the specification
37198         header if PRINTF_PARSE is already defined. Eliminate the set of
37199         parameters for WIDE_CHAR_VERSION; the user of this file must provide
37200         them now. Include c-ctype.h.
37201         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
37202         directive and CHAR_T_ONLY_ASCII.
37203         * lib/vasnprintf.c: Don't include config.h and the specification header
37204         if VASNPRINTF is already defined.
37205         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
37206         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
37207         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
37208         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
37209         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
37210         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
37211         code accordingly.
37212         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
37213         pad_ourselves also in this case, with the 'c' and 's' directives, and
37214         with a different notion of "width".
37215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
37216
37217 2007-06-10  Bruno Haible  <bruno@clisp.org>
37218
37219         * modules/unistr/u32-mbsnlen: New file.
37220         * lib/unistr/u32-mbsnlen.c: New file.
37221
37222         * modules/unistr/u16-mbsnlen: New file.
37223         * lib/unistr/u16-mbsnlen.c: New file.
37224
37225         * modules/unistr/u8-mbsnlen: New file.
37226         * lib/unistr/u8-mbsnlen.c: New file.
37227
37228         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
37229         declarations.
37230
37231 2007-06-10  Bruno Haible  <bruno@clisp.org>
37232
37233         * lib/string_.h (mbsnlen): New declaration.
37234         * lib/mbsnlen.c: New file.
37235         * m4/mbsnlen.m4: New file.
37236         * modules/mbsnlen: New file.
37237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
37238         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
37239         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
37240
37241 2007-06-10  Bruno Haible  <bruno@clisp.org>
37242
37243         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
37244
37245 2007-06-10  Bruno Haible  <bruno@clisp.org>
37246
37247         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
37248         * lib/mbuiter.h: Likewise.
37249
37250 2007-06-10  Bruno Haible  <bruno@clisp.org>
37251
37252         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
37253         declaration.
37254
37255 2007-06-10  Karl Berry  <karl@gnu.org>
37256
37257         * config/srclist.txt: remove gettext entries, Bruno prefers
37258         to update individually.
37259
37260 2007-06-10  Bruno Haible  <bruno@clisp.org>
37261
37262         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
37263         'maxlen'. Ensure only length + width bytes are allocated, not
37264         length + 1 + width.
37265
37266 2007-06-09  Bruno Haible  <bruno@clisp.org>
37267
37268         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
37269         (CHAR_T): Remove macro.
37270         (VASNPRINTF): Update.
37271
37272 2007-06-09  Bruno Haible  <bruno@clisp.org>
37273
37274         * MODULES.html.sh (Unicode string functions): Add the new modules.
37275
37276         * modules/uniconv/u32-conv-to-enc: New file.
37277         * lib/uniconv/u32-conv-to-enc.c: New file.
37278         * modules/uniconv/u32-conv-to-enc-tests: New file.
37279         * tests/uniconv/test-u32-conv-to-enc.c: New file.
37280
37281         * modules/uniconv/u16-conv-to-enc: New file.
37282         * lib/uniconv/u16-conv-to-enc.c: New file.
37283         * lib/uniconv/u-conv-to-enc.h: New file.
37284         * modules/uniconv/u16-conv-to-enc-tests: New file.
37285         * tests/uniconv/test-u16-conv-to-enc.c: New file.
37286
37287         * modules/uniconv/u8-conv-to-enc: New file.
37288         * lib/uniconv/u8-conv-to-enc.c: New file.
37289         * modules/uniconv/u8-conv-to-enc-tests: New file.
37290         * tests/uniconv/test-u8-conv-to-enc.c: New file.
37291
37292         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37293         u32_conv_to_encoding): New declarations.
37294
37295 2007-06-09  Bruno Haible  <bruno@clisp.org>
37296
37297         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
37298
37299 2007-06-09  Bruno Haible  <bruno@clisp.org>
37300
37301         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
37302         * modules/malloca: Renamed from modules/allocsa, updated.
37303         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
37304         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
37305         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
37306         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
37307         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
37308         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
37309         * modules/xmalloca: Renamed from modules/xallocsa, updated.
37310         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
37311         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
37312         * modules/c-strcasestr (Depends-on): Update.
37313         * lib/c-strcasestr.c: Update.
37314         * modules/c-strstr (Depends-on): Update.
37315         * lib/c-strstr.c: Update.
37316         * modules/canonicalize-lgpl (Depends-on): Update.
37317         * lib/canonicalize-lgpl.c: Update.
37318         * modules/clean-temp (Depends-on): Update.
37319         * lib/clean-temp.c: Update.
37320         * modules/csharpcomp (Depends-on): Update.
37321         * lib/csharpcomp.c: Update.
37322         * modules/csharpexec (Depends-on): Update.
37323         * lib/csharpexec.c: Update.
37324         * modules/javacomp (Depends-on): Update.
37325         * lib/javacomp.c: Update.
37326         * modules/javaexec (Depends-on): Update.
37327         * lib/javaexec.c: Update.
37328         * modules/mbscasestr (Depends-on): Update.
37329         * lib/mbscasestr.c: Update.
37330         * modules/mbsstr (Depends-on): Update.
37331         * lib/mbsstr.c: Update.
37332         * modules/setenv (Depends-on): Update.
37333         * lib/setenv.c: Update.
37334         * modules/strcasestr (Depends-on): Update.
37335         * lib/strcasestr.c: Update.
37336         * modules/striconveha (Depends-on): Update.
37337         * lib/striconveha.c: Update.
37338         * modules/relocatable-prog-wrapper (Files): Update.
37339         * lib/relocwrapper.c: Update.
37340         * build-aux/install-reloc: Update.
37341         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
37342
37343 2007-06-08  Bruno Haible  <bruno@clisp.org>
37344
37345         Port to uClibc.
37346         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
37347         * lib/fpurge.c (fpurge): Likewise.
37348         * lib/freading.c (freading): Likewise.
37349         * lib/fseeko.c (rpl_fseeko): Likewise.
37350         * lib/fseterr.c (fseterr): Likewise.
37351         * lib/fwriting.c (fwriting): Likewise.
37352         * tests/test-fflush.c (main): Avoid a failure on uClibc.
37353
37354 2007-06-08  Bruno Haible  <bruno@clisp.org>
37355
37356         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
37357         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
37358         * modules/gettext (Files): Add m4/intlmacosx.m4.
37359
37360 2007-06-07  Bruno Haible  <bruno@clisp.org>
37361
37362         * modules/localename-tests: New file.
37363         * tests/test-localename.c: New file.
37364
37365         New module 'localename'.
37366         * lib/localename.h: New file.
37367         * lib/localename.c: New file, from GNU gettext.
37368         * m4/localename.m4: New file.
37369         * modules/localename: New file.
37370
37371 2007-06-07  Bruno Haible  <bruno@clisp.org>
37372
37373         Work around the lack of <wchar.h> on some builds of uClibc.
37374         * doc/headers/wchar.texi: Update.
37375         * lib/wchar_.h: Include <wchar.h> only if it exists.
37376         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
37377         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
37378         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
37379         doesn't exist.
37380         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
37381         * modules/mbfile (Depends-on): Add wchar.
37382         * modules/mbiter (Depends-on): Likewise.
37383         * modules/mbuiter (Depends-on): Likewise.
37384         Reported by Simon Josefsson.
37385
37386 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37387
37388         Work around problem reported by Steven M. Schweda in
37389         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
37390         Tru64 5.1B with the Compaq compiler environment installed declares
37391         an 'isblank' function but does not define it in the C library.
37392         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
37393         * lib/regex_internal.h (isblank): Likewise.
37394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
37395         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37396
37397 2007-06-05  Bruno Haible  <bruno@clisp.org>
37398
37399         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
37400         ia64.
37401         * modules/printf-safe: New file.
37402         * modules/fprintf-posix (Depends-on): Add printf-safe.
37403         * modules/printf-posix (Depends-on): Likewise.
37404         * modules/snprintf-posix (Depends-on): Likewise.
37405         * modules/sprintf-posix (Depends-on): Likewise.
37406         * modules/vasnprintf-posix (Depends-on): Likewise.
37407         * modules/vasprintf-posix (Depends-on): Likewise.
37408         * modules/vfprintf-posix (Depends-on): Likewise.
37409         * modules/vprintf-posix (Depends-on): Likewise.
37410         * modules/vsnprintf-posix (Depends-on): Likewise.
37411         * modules/vsprintf-posix (Depends-on): Likewise.
37412         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
37413         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
37414         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
37415         "no" on i386, x86_64, ia64.
37416         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
37417         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37418         on i386, x86_64, ia64.
37419         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
37420         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37421         on i386, x86_64, ia64.
37422         * tests/test-vasnprintf-posix.c: Include float.h.
37423         (LDBL80_WORDS): New macro.
37424         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37425         on i386, x86_64, ia64.
37426         * tests/test-vasprintf-posix.c: Include float.h.
37427         (LDBL80_WORDS): New macro.
37428         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37429         on i386, x86_64, ia64.
37430         * tests/test-snprintf-posix.c: Include float.h.
37431         * tests/test-sprintf-posix.c: Likewise.
37432         * tests/test-vsnprintf-posix.c: Likewise.
37433         * tests/test-vsprintf-posix.c: Likewise.
37434
37435 2007-06-05  Bruno Haible  <bruno@clisp.org>
37436
37437         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
37438         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
37439         non-IEEE numbers on i386, x86_64, ia64.
37440         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
37441         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
37442         * tests/test-isnanl.h: Include float.h.
37443         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
37444
37445 2007-06-05  Bruno Haible  <bruno@clisp.org>
37446
37447         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
37448         also the %a / %A. Handle the %a / %A code before this extra handling.
37449
37450 2007-06-05  Bruno Haible  <bruno@clisp.org>
37451
37452         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
37453         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
37454
37455 2007-06-05  Bruno Haible  <bruno@clisp.org>
37456
37457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
37458         typo in variable name.
37459
37460 2007-06-05  Eric Blake  <ebb9@byu.net>
37461
37462         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
37463         Reported by Simon Josefsson.
37464
37465 2007-06-04  Bruno Haible  <bruno@clisp.org>
37466
37467         Avoid test failures on some PowerPC platforms.
37468         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
37469         Define differently for PowerPC.
37470         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
37471         Reported by Gary V. Vaughan <gary@gnu.org>.
37472
37473 2007-06-02  Bruno Haible  <bruno@clisp.org>
37474
37475         Fix test-stdint failure on FreeBSD/ia64.
37476         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
37477         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
37478         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
37479         * doc/headers/stdint.texi: Update.
37480
37481 2007-06-01  Bruno Haible  <bruno@clisp.org>
37482
37483         * tests/test-binary-io.c (main): Pass a third argument to open().
37484         Reported by Gary V. Vaughan <gary@gnu.org>.
37485
37486 2007-06-01  Bruno Haible  <bruno@clisp.org>
37487
37488         * doc/functions/frexpl.texi: Update for mingw.
37489
37490 2007-06-01  Bruno Haible  <bruno@clisp.org>
37491
37492         * tests/test-lseek.c (main): Disable test of errno for invalid third
37493         argument.
37494         * doc/functions/lseek.texi: Update.
37495         Reported by Gary V. Vaughan <gary@gnu.org>.
37496
37497 2007-05-28  Bruno Haible  <bruno@clisp.org>
37498
37499         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37500
37501 2007-05-31  Eric Blake  <ebb9@byu.net>
37502
37503         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37504         cross compiling.
37505
37506 2007-05-30  Eric Blake  <ebb9@byu.net>
37507         and Bruno Haible  <bruno@clisp.org>
37508
37509         Work around mingw test failures exposed by m4-1.4.9b.
37510         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37511         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37512         moment.
37513
37514 2007-05-30  Bruno Haible  <bruno@clisp.org>
37515
37516         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37517         assuming that they are closed. Needed on HP-UX 11.
37518
37519 2007-05-29  Bruno Haible  <bruno@clisp.org>
37520
37521         Fix a problem with #include_next.
37522         * lib/dirent_.h: Split the double-inclusion guard.
37523         * lib/fcntl_.h: Likewise.
37524         * lib/float_.h: Likewise.
37525         * lib/iconv_.h: Likewise.
37526         * lib/inttypes_.h: Likewise.
37527         * lib/locale_.h: Likewise.
37528         * lib/math_.h: Likewise.
37529         * lib/netinet_in_.h: Likewise.
37530         * lib/search_.h: Likewise.
37531         * lib/signal_.h: Likewise.
37532         * lib/stdint_.h: Likewise.
37533         * lib/stdio_.h: Likewise.
37534         * lib/stdlib_.h: Likewise.
37535         * lib/string_.h: Likewise.
37536         * lib/sys_select_.h: Likewise.
37537         * lib/sys_socket_.h: Likewise.
37538         * lib/sys_stat_.h: Likewise.
37539         * lib/sys_time_.h: Likewise.
37540         * lib/sysexits_.h: Likewise.
37541         * lib/time_.h: Likewise.
37542         * lib/unistd_.h: Likewise.
37543         * lib/wchar_.h: Likewise.
37544         * lib/wctype_.h: Likewise.
37545
37546 2007-05-29  Bruno Haible  <bruno@clisp.org>
37547
37548         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37549         for the moment.
37550
37551 2007-05-29  Bruno Haible  <bruno@clisp.org>
37552
37553         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37554         invocation.
37555         Reported by Eric Blake.
37556
37557 2007-05-29  Bruno Haible  <bruno@clisp.org>
37558
37559         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37560         compiling case.
37561
37562 2007-05-29  Eric Blake  <ebb9@byu.net>
37563             Bruno Haible  <bruno@clisp.org>
37564
37565         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37566         cross compiles.
37567
37568 2007-05-28  Eric Blake  <ebb9@byu.net>
37569
37570         * modules/closein-tests (test_closein_LDADD): Support test on
37571         cygwin with libtool.
37572
37573 2007-05-28  Bruno Haible  <bruno@clisp.org>
37574
37575         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37576         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37577         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37578         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37579         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37580         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37581         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37582         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37583         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37584
37585 2007-05-28  Eric Blake  <ebb9@byu.net>
37586
37587         Unconditionally include <config.h> in unit tests.
37588         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37589         * tests/test-allocsa.c, tests/test-arcfour.c,
37590         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37591         tests/test-array_list.c, tests/test-array_oset.c,
37592         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37593         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37594         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37595         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37596         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37597         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37598         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37599         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37600         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37601         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37602         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37603         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37604         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37605         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37606         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37607         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37608         test-md5.c, test-memmem.c, test-printf-posix.c,
37609         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37610         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37611         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37612         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37613         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37614         test-vasnprintf-posix2.c, test-vasnprintf.c,
37615         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37616         test-vfprintf-posix.c, test-vprintf-posix.c,
37617         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37618         test-xvasprintf.c: Likewise.
37619
37620 2007-05-28  Bruno Haible  <bruno@clisp.org>
37621
37622         * gnulib-tool (func_import): Remember the --with-tests command-line
37623         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37624         Reported by Eric Blake.
37625
37626 2007-05-28  Bruno Haible  <bruno@clisp.org>
37627
37628         * modules/ftell-tests: New file.
37629         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37630         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37631
37632         * lib/ftell.c: New file.
37633         * modules/ftell: New file.
37634         * m4/ftell.m4: New file.
37635         * doc/functions/ftell.texi: Update.
37636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37637         REPLACE_FTELL.
37638         * lib/stdio_.h (rpl_ftell): New declaration.
37639         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37640         REPLACE_FTELL.
37641
37642 2007-05-28  Eric Blake  <ebb9@byu.net>
37643
37644         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37645
37646 2007-05-28  Bruno Haible  <bruno@clisp.org>
37647
37648         * modules/fseek-tests: New file.
37649         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37650         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37651
37652         * lib/fseek.c: New file.
37653         * modules/fseek: New file.
37654         * m4/fseek.m4: New file.
37655         * doc/functions/fseek.texi: Update.
37656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37657         REPLACE_FSEEK.
37658         * lib/stdio_.h (rpl_fseek): New declaration.
37659         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37660         REPLACE_FSEEK.
37661
37662 2007-05-28  Bruno Haible  <bruno@clisp.org>
37663
37664         * lib/stdio_.h (fflush): More comments.
37665
37666 2007-05-28  Bruno Haible  <bruno@clisp.org>
37667
37668         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37669         runtime test.
37670
37671 2007-05-28  Eric Blake  <ebb9@byu.net>
37672
37673         Improve lseek module.
37674         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37675         * lib/unistd_.h (lseek): Scale back link warning message.
37676         * tests/test-lseek.c: Beef up test.
37677         * tests/test-lseek.sh: Exercise more facets of lseek.
37678         Reported by Bruno Haible.
37679
37680 2007-05-28  Bruno Haible  <bruno@clisp.org>
37681
37682         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
37683         to define.
37684
37685 2007-05-27  Bruno Haible  <bruno@clisp.org>
37686
37687         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
37688
37689 2007-05-27  Bruno Haible  <bruno@clisp.org>
37690
37691         * modules/openmp: New file.
37692         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
37693         Noah Misch.
37694
37695 2007-05-26  Bruno Haible  <bruno@clisp.org>
37696
37697         * modules/chdir-long (Depends-on): Add fchdir.
37698         * modules/chdir-safer (Depends-on): Likewise.
37699         * modules/fts (Depends-on): Likewise.
37700         * modules/fts-lgpl (Depends-on): Likewise.
37701         * modules/openat (Depends-on): Likewise.
37702         * modules/savewd (Depends-on): Likewise.
37703
37704 2007-05-24  Eric Blake  <ebb9@byu.net>
37705
37706         Fix lseek on mingw.
37707         * modules/lseek: New module.
37708         * m4/lseek.m4: New file.
37709         * lib/lseek.c: New file.
37710         * modules/lseek-tests: New file.
37711         * tests/test-lseek.c: New file.
37712         * tests/test-lseek.sh: New file.
37713         * MODULES.html.sh: Document lseek module.
37714         * modules/fflush (Depends-on): Add lseek, fseeko.
37715         * modules/fseeko (Depends-on): Likewise.
37716         * modules/ftello (Depends-on): Likewise.
37717         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
37718         broken.
37719         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
37720         broken.
37721         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
37722         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
37723         * lib/ftello.c (rpl_ftello): Likewise.
37724         * tests/test-fseeko.c (main): Test this.
37725         * tests/test-fseeko.sh: Likewise.
37726         * tests/test-ftello.c (main): Likewise.
37727         * tests/test-ftello.sh: Likewise.
37728         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
37729         implies replacing fseek.
37730         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
37731         HAVE_FTELLO.
37732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
37733         * modules/unistd (Makefile.am): Likewise.
37734         * lib/unistd_.h (lseek): Declare a replacement.
37735         * doc/functions/lseek.texi (lseek): Document this fix.
37736         * doc/functions/fseek.texi (fseek): Likewise.
37737         * doc/functions/ftell.texi (ftell): Likewise.
37738
37739 2007-05-24  Bruno Haible  <bruno@clisp.org>
37740
37741         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
37742         in the printed representation of a NaN.
37743         * tests/test-vasprintf-posix.c (test_function): Likewise.
37744         * tests/test-snprintf-posix.h (test_function): Likewise.
37745         * tests/test-sprintf-posix.h (test_function): Likewise.
37746         Reported by Eric Blake.
37747
37748 2007-05-23  Eric Blake  <ebb9@byu.net>
37749
37750         Fix fseeko/ftello on cygwin 1.5.24.
37751         * doc/functions/fseeko.texi (fseeko): Document the fix.
37752         * doc/functions/ftello.texi (ftello): Document the fix.
37753         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
37754         * doc/functions/stdout.text (stdout): New file.
37755         * doc/functions/stderr.text (stderr): New file.
37756         * doc/gnulib.texi (Function Substitutes): Use new files.
37757         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
37758         prior to 1.7.0.
37759         * tests/test-ftello.c (main): Likewise for ftello.
37760         * tests/test-fseeko.sh: New file.
37761         * tests/test-ftello.sh: New file.
37762         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
37763         with seekable stdin.
37764         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
37765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
37766         (gl_REPLACE_FSEEKO): New macro.
37767         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
37768         * modules/fseeko (Files): Distribute fseeko.c.
37769         * modules/ftello (Files): Distribute ftello.c.
37770         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
37771         mode.
37772         * lib/ftello.c (rpl_ftello): New file.
37773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
37774         fseeko, ftello.
37775         (gl_STDIN_LARGE_OFFSET): New macro.
37776         * modules/stdio (Makefile.am): Perform the replacement.
37777         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
37778
37779 2007-05-23  Bruno Haible  <bruno@clisp.org>
37780
37781         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
37782         GNULIB_POSIXCHECK is defined.
37783
37784 2007-05-21  Bruno Haible  <bruno@clisp.org>
37785
37786         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
37787         Check also the output for NaN arguments. When cross-compiling, guess
37788         no on IRIX.
37789         * lib/vasnprintf.c: Update comments.
37790         * tests/test-vasnprintf-posix.c (strisnan): New function.
37791         (test_function): Use it.
37792         * tests/test-vasprintf-posix.c (strisnan): New function.
37793         (test_function): Use it.
37794         * tests/test-snprintf-posix.h (strisnan): New function.
37795         (test_function): Use it.
37796         * tests/test-sprintf-posix.h (strisnan): New function.
37797         (test_function): Use it.
37798         Reported by Eric Blake.
37799
37800 2007-05-20  Bruno Haible  <bruno@clisp.org>
37801
37802         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
37803         numbers that fails on BeOS.
37804         * doc/functions/frexpl.texi: Update.
37805
37806 2007-05-20  Jim Meyering  <jim@meyering.net>
37807
37808         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
37809         forced upon us by glibc-2.6.
37810
37811 2007-05-20  Bruno Haible  <bruno@clisp.org>
37812
37813         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
37814         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
37815         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
37816         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
37817         NEED_PRINTF_INFINITE.
37818         (is_infinitel): New function.
37819         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
37820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
37821         gl_PREREQ_VASNPRINTF_INFINITE.
37822         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
37823         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37824         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
37825         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
37826         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
37827         gl_PREREQ_VASNPRINTF_INFINITE.
37828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37829         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37830         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37831         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37832         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37833         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37834         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37835         * doc/functions/fprintf.texi: Update.
37836         * doc/functions/printf.texi: Update.
37837         * doc/functions/snprintf.texi: Update.
37838         * doc/functions/sprintf.texi: Update.
37839         * doc/functions/vfprintf.texi: Update.
37840         * doc/functions/vprintf.texi: Update.
37841         * doc/functions/vsnprintf.texi: Update.
37842         * doc/functions/vsprintf.texi: Update.
37843
37844 2007-05-20  Bruno Haible  <bruno@clisp.org>
37845
37846         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
37847         was not found in libc.
37848         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
37849
37850 2007-05-20  Bruno Haible  <bruno@clisp.org>
37851
37852         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37853         printed as "-nan" instead of "nan".
37854         * tests/test-vasprintf-posix.c (test_function): Likewise.
37855         * tests/test-snprintf-posix.h (test_function): Likewise.
37856         * tests/test-sprintf-posix.h (test_function): Likewise.
37857         Needed for HP-UX 11.
37858
37859 2007-05-20  Jim Meyering  <jim@meyering.net>
37860
37861         Fix buggy test for the fchownat-deref bug.
37862         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
37863         symlink required for the run-test.  Without it, this test would
37864         always declare that fchownat doesn't work, and client code would
37865         unnecessarily use the replacement function with fixed libc.
37866         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
37867         Reported by Greg Schafer.
37868
37869 2007-05-19  Bruno Haible  <bruno@clisp.org>
37870
37871         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
37872         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
37873         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
37874         Needed for IRIX 6.5 and Solaris 2.5.1.
37875
37876 2007-05-19  Bruno Haible  <bruno@clisp.org>
37877
37878         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
37879         (test_function): Skip tests involving -0.0 on platforms where
37880         -0.0 = 0.0.
37881         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
37882         (test_function): Skip tests involving -0.0 on platforms where
37883         -0.0 = 0.0.
37884         * tests/test-snprintf-posix.h (have_minus_zero): New function.
37885         (test_function): Skip tests involving -0.0 on platforms where
37886         -0.0 = 0.0.
37887         * tests/test-sprintf-posix.h (have_minus_zero): New function.
37888         (test_function): Skip tests involving -0.0 on platforms where
37889         -0.0 = 0.0.
37890         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
37891         tests.
37892         * tests/test-printf-posix.h (test_function): Likewise.
37893         * tests/test-printf-posix.output: Remove all -0.0 related results.
37894         Needed for IRIX 6.5.
37895
37896 2007-05-19  Bruno Haible  <bruno@clisp.org>
37897
37898         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37899         printed as "nan0x7fffffff" instead of "nan".
37900         * tests/test-vasprintf-posix.c (test_function): Likewise.
37901         * tests/test-snprintf-posix.h (test_function): Likewise.
37902         * tests/test-sprintf-posix.h (test_function): Likewise.
37903         * tests/test-fprintf-posix.h (NaN): Remove macro.
37904         (test_function): Remove all NaN related tests.
37905         * tests/test-printf-posix.h (NaN): Remove macro.
37906         (test_function): Remove all NaN related tests.
37907         * tests/test-printf-posix.output: Remove all NaN related results.
37908         Needed for IRIX 6.5.
37909
37910 2007-05-19  Bruno Haible  <bruno@clisp.org>
37911
37912         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
37913         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
37914
37915 2007-05-19  Bruno Haible  <bruno@clisp.org>
37916
37917         * lib/float_.h: New file.
37918         * m4/float_h.m4: New file.
37919         * modules/float: New file.
37920         * modules/isnanl (Dependencies): Add float.
37921         * modules/isnanl-nolibm (Dependencies): Likewise.
37922         * modules/mathl (Dependencies): Likewise.
37923         * modules/printf-frexpl (Dependencies): Likewise.
37924         * modules/signbit (Dependencies): Likewise.
37925         * modules/vasnprintf (Dependencies): Likewise.
37926         * doc/headers/float.texi: Update.
37927
37928 2007-05-19  Jim Meyering  <jim@meyering.net>
37929
37930         * lib/utimens.c (gl_futimens): Rename from futimens,
37931         now that glibc-2.6 declares futimens.
37932         * lib/utimens.h: Likewise.
37933
37934 2007-05-19  Bruno Haible  <bruno@clisp.org>
37935
37936         Avoid test failures on mingw.
37937         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
37938         * tests/test-printf-posix.sh: Likewise.
37939         * tests/test-vfprintf-posix.sh: Likewise.
37940         * tests/test-vprintf-posix.sh: Likewise.
37941
37942 2007-05-19  Bruno Haible  <bruno@clisp.org>
37943
37944         Fix *printf result for NaN, Inf, -0.0 on mingw.
37945         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
37946         * lib/vasnprintf.c: Include math.h and isnan.h.
37947         (is_infinite_or_zero): New function.
37948         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
37949         values in the %f, %F, %e, %E, %g, %G directives.
37950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
37951         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37952         gl_PRINTF_INFINITE and test its result. Invoke
37953         gl_PREREQ_VASNPRINTF_INFINITE.
37954         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37955         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37956         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37957         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37958         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37960         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37961         * doc/functions/fprintf.texi: Update.
37962         * doc/functions/printf.texi: Update.
37963         * doc/functions/snprintf.texi: Update.
37964         * doc/functions/sprintf.texi: Update.
37965         * doc/functions/vfprintf.texi: Update.
37966         * doc/functions/vprintf.texi: Update.
37967         * doc/functions/vsnprintf.texi: Update.
37968         * doc/functions/vsprintf.texi: Update.
37969
37970 2007-05-19  Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
37973         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
37974         Instead of multiplying with 10^k, set extra_zeroes to k.
37975         (scale10_round_long_double): Remove function.
37976
37977 2007-05-18  Bruno Haible  <bruno@clisp.org>
37978
37979         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
37980         introduced on 2007-05-06.
37981
37982 2007-05-18  Bruno Haible  <bruno@clisp.org>
37983
37984         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
37985         %g directives.
37986         * tests/test-vasprintf-posix.c (test_function): Likewise.
37987         * tests/test-snprintf-posix.h (test_function): Likewise.
37988         * tests/test-sprintf-posix.h (test_function): Likewise.
37989
37990 2007-05-18  Bruno Haible  <bruno@clisp.org>
37991
37992         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
37993         (strmatch): New function.
37994         (test_function): Test the %f directive on numbers of various exponents.
37995         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
37996         (strmatch): New function.
37997         (test_function): Test the %f directive on numbers of various exponents.
37998         * tests/test-snprintf-posix.h (strmatch): New function.
37999         (test_function): Test the %f directive on numbers of various exponents.
38000         * tests/test-sprintf-posix.h (strmatch): New function.
38001         (test_function): Test the %f directive on numbers of various exponents.
38002         * tests/test-snprintf-posix.c (SIZEOF): New macro.
38003         * tests/test-sprintf-posix.c (SIZEOF): New macro.
38004         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
38005         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
38006
38007 2007-05-18  Bruno Haible  <bruno@clisp.org>
38008
38009         Add support for 'long double' number output.
38010         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
38011         * lib/vasnprintf.c: Include math.h and float+.h.
38012         (mp_limb_t): New type.
38013         (GMP_LIMB_BITS): New macro.
38014         (mp_twolimb_t): New type.
38015         (GMP_TWOLIMB_BITS): New macro.
38016         (mpn_t): New type.
38017         (multiply, divide, convert_to_decimal, decode_long_double,
38018         scale10_round_long_double, scale10_round_decimal_long_double,
38019         floorlog10l): New functions.
38020         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
38021         for the %f, %F, %e, %E, %g, %G directives.
38022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
38023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38024         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
38025         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
38026         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38030         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38032         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38033         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
38034         * modules/snprintf-posix (Depends-on): Likewise.
38035         * modules/sprintf-posix (Depends-on): Likewise.
38036         * modules/vasnprintf-posix (Depends-on): Likewise.
38037         * modules/vasprintf-posix (Depends-on): Likewise.
38038         * modules/vfprintf-posix (Depends-on): Likewise.
38039         * modules/vsnprintf-posix (Depends-on): Likewise.
38040         * modules/vsprintf-posix (Depends-on): Likewise.
38041         * modules/vasnprintf (Files): Add lib/float+.h.
38042         * doc/functions/fprintf.texi: Update.
38043         * doc/functions/printf.texi: Update.
38044         * doc/functions/snprintf.texi: Update.
38045         * doc/functions/sprintf.texi: Update.
38046         * doc/functions/vfprintf.texi: Update.
38047         * doc/functions/vprintf.texi: Update.
38048         * doc/functions/vsnprintf.texi: Update.
38049         * doc/functions/vsprintf.texi: Update.
38050
38051 2007-05-18  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
38054
38055 2007-05-18  Bruno Haible  <bruno@clisp.org>
38056
38057         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
38058         for printing 64-bit integers. Needed for mingw.
38059
38060 2007-05-18  Bruno Haible  <bruno@clisp.org>
38061
38062         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
38063         gl_FUNC_FREXPL_WORKS.
38064         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
38065
38066 2007-05-18  Bruno Haible  <bruno@clisp.org>
38067
38068         * modules/frexpl-nolibm-tests: New file.
38069
38070         * modules/frexpl-nolibm: New file.
38071         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
38072
38073 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
38074
38075         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
38076         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38077         GCC 4.2, which otherwise issues a lot of warnings.
38078         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
38079         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
38080         Likewise.
38081         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
38082         * modules/iconv_open (iconv.h): Likewise.
38083         * modules/locale (locale.h): Likewise.
38084         * modules/netinet_in (netinet/in.h): Likewise.
38085         * modules/sys_select (sys_select.h): Likewise.
38086         * modules/sys_socket (sys/socket.h): Likewise.
38087         * modules/sys_stat (sys/stat.h): Likewise.
38088         * modules/sysexits (sysexits.h): Likewise.
38089         * modules/unistd (unistd.h): Likewise.
38090
38091 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38092
38093         * modules/closein-tests (Makefile.am): Distribute
38094         `test-closein.sh'.
38095
38096 2007-05-17  Bruno Haible  <bruno@clisp.org>
38097
38098         * tests/test-printf-posix.output: Renamed from
38099         tests/test-fprintf-posix.out.
38100         * modules/fprintf-posix-tests: Update.
38101         * modules/printf-posix-tests: Update.
38102         * modules/vfprintf-posix-tests: Update.
38103         * modules/vprintf-posix-tests: Update.
38104         * tests/test-fprintf-posix.sh: Update.
38105         * tests/test-printf-posix.sh: Update.
38106         * tests/test-vfprintf-posix.sh: Update.
38107         * tests/test-vprintf-posix.sh: Update.
38108         Reported by Ralf Wildenhues.
38109
38110 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
38111
38112         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
38113         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38114         GCC 4.2, which otherwise issues a lot of warnings.
38115         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
38116         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
38117         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
38118         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
38119         it should no longer be needed.
38120         * lib/string_.h: Likewise.
38121         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
38122         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
38123         * modules/inttypes (inttypes.h): Likewise.
38124         * modules/math (math.h): Likewise.
38125         * modules/search (search.h): Likewise.
38126         * modules/signal (signal.h): Likewise.
38127         * modules/stdint (stdint.h): Likewise.
38128         * modules/stdio (stdio.h): Likewise.
38129         * modules/stdlib (stdlib.h): Likewise.
38130         * modules/string (string.h): Likewise.
38131         * modules/sys_time (sys/time.h): Likewise.
38132         * modules/time (time.h): Likewise.
38133         * modules/wchar (wchar.h): Likewise.
38134         * modules/wctype (wtype.h): Likewise.
38135
38136 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38137
38138         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
38139
38140 2007-05-13  Bruno Haible  <bruno@clisp.org>
38141
38142         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
38143         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38144         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
38145         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38146         (gl_PREREQ_STRTOK_R): Don't require it here.
38147
38148 2007-05-13  Bruno Haible  <bruno@clisp.org>
38149
38150         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
38151         when used in C++ mode.
38152
38153 2007-05-12  Bruno Haible  <bruno@clisp.org>
38154
38155         * lib/linebuffer.h: Tweak doc.
38156         * lib/linebuffer.c: Likewise.
38157
38158 2007-05-12  James Youngman  <jay@gnu.org>
38159
38160         * lib/linebuffer.c (readlinebuffer_delim): New function,
38161         like readlinebuffer, but use a caller-specified delimiter.
38162         (readlinebuffer): Just call readlinebuffer_delim with '\n'
38163         as the delimiter.
38164         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
38165
38166 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38167
38168         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
38169         * modules/openat (Files): Remove openat-die.c.
38170         (Depends-on): Add openat-die.
38171         * modules/openat-die: New module.
38172
38173 2007-05-06  Bruno Haible  <bruno@clisp.org>
38174
38175         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
38176         Update with info about Cygwin.
38177         * doc/functions/fprintf.texi: Update.
38178         * doc/functions/printf.texi: Update.
38179         * doc/functions/snprintf.texi: Update.
38180         * doc/functions/sprintf.texi: Update.
38181         * doc/functions/vfprintf.texi: Update.
38182         * doc/functions/vprintf.texi: Update.
38183         * doc/functions/vsnprintf.texi: Update.
38184         * doc/functions/vsprintf.texi: Update.
38185         Reported by Eric Blake.
38186
38187 2007-05-06  Bruno Haible  <bruno@clisp.org>
38188
38189         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
38190         padding ourselves for the floating-point directives.
38191         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
38192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
38193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38194         gl_PRINTF_FLAG_ZERO and test its result. Invoke
38195         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
38196         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38197         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38198         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38199         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38200         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38201         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38202         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38203         * tests/test-snprintf-posix.h (test_function): Also check the width
38204         and some flags in the %f directive.
38205         * tests/test-sprintf-posix.h (test_function): Likewise.
38206         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38207         * tests/test-vasprintf-posix.c (test_function): Likewise.
38208         * doc/functions/fprintf.texi: Update.
38209         * doc/functions/printf.texi: Update.
38210         * doc/functions/snprintf.texi: Update.
38211         * doc/functions/sprintf.texi: Update.
38212         * doc/functions/vfprintf.texi: Update.
38213         * doc/functions/vprintf.texi: Update.
38214         * doc/functions/vsnprintf.texi: Update.
38215         * doc/functions/vsprintf.texi: Update.
38216
38217 2007-05-06  Bruno Haible  <bruno@clisp.org>
38218
38219         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
38220         pass the ' flag character to sprintf or snprintf.
38221         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
38222         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
38223         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38224         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
38225         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
38226         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38229         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38230         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38231         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38232         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38233         * tests/test-snprintf-posix.h (test_function): Also check the grouping
38234         flag.
38235         * tests/test-sprintf-posix.h (test_function): Likewise.
38236         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38237         * tests/test-vasprintf-posix.c (test_function): Likewise.
38238         * doc/functions/fprintf.texi: Update.
38239         * doc/functions/printf.texi: Update.
38240         * doc/functions/snprintf.texi: Update.
38241         * doc/functions/sprintf.texi: Update.
38242         * doc/functions/vfprintf.texi: Update.
38243         * doc/functions/vprintf.texi: Update.
38244         * doc/functions/vsnprintf.texi: Update.
38245         * doc/functions/vsprintf.texi: Update.
38246
38247 2007-05-01  Bruno Haible  <bruno@clisp.org>
38248
38249         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
38250
38251 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
38252
38253         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
38254         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
38255
38256 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38257
38258         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
38259         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
38260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
38261
38262 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
38263
38264         * lib/argp-help.c (struct hol_entry): New member `ord'.
38265         (HOL_ENTRY_PTRCMP): Use ord for comparison
38266         (hol_sort): Initialize ord.
38267
38268 2007-05-01  Bruno Haible  <bruno@clisp.org>
38269
38270         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
38271         Reported by Eric Blake.
38272         * doc/gnulib.texi (Function Substitutes): Update.
38273
38274 2007-05-01  Bruno Haible  <bruno@clisp.org>
38275
38276         * doc/functions.texi: Remove file, now redundant through
38277         doc/functions/*.texi.
38278
38279 2007-05-01  Bruno Haible  <bruno@clisp.org>
38280
38281         * modules/argp (Depends-on): Add sleep.
38282
38283 2007-05-01  Bruno Haible  <bruno@clisp.org>
38284
38285         * modules/sleep-tests: New file.
38286         * tests/test-sleep.c: New file.
38287
38288         * modules/sleep: New file.
38289         * lib/sleep.c: New file.
38290         * m4/sleep.m4: New file.
38291         * lib/unistd_.h (sleep): New declaration.
38292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
38293         HAVE_SLEEP.
38294         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
38295         * doc/functions/sleep.texi: Document the sleep module.
38296
38297 2007-05-01  Bruno Haible  <bruno@clisp.org>
38298
38299         * lib/sigprocmask.h: Remove file.
38300         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
38301         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
38302         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
38303         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
38304         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
38305         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
38306         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
38307         HAVE_SIGSET_T as a shell variable.
38308         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
38309         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
38310         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
38311         (Depends-on): Add signal. Remove verify.
38312         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
38313         (Include): Mention <signal.h> instead of sigprocmask.h.
38314         * NEWS: Mention the change.
38315         * lib/fatal-signal.c: Don't include sigprocmask.h.
38316
38317 2007-05-01  Bruno Haible  <bruno@clisp.org>
38318
38319         * modules/signal: New file.
38320         * lib/signal_.h: New file.
38321         * m4/signal_h.m4: New file.
38322
38323 2007-05-01  Bruno Haible  <bruno@clisp.org>
38324
38325         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
38326         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
38327         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
38328         HAVE_WCTYPE_CTMP_BUG into wctype.h.
38329
38330 2007-05-01  Bruno Haible  <bruno@clisp.org>
38331
38332         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
38333         configure time.
38334         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
38335         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
38336         * modules/sys_stat (Makefile.am): Substitute their values into
38337         sys/stat.h.
38338
38339 2007-05-01  Bruno Haible  <bruno@clisp.org>
38340
38341         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
38342         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
38343         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
38344
38345 2007-05-01  Bruno Haible  <bruno@clisp.org>
38346
38347         * doc/header/assert.texi: Undo last change: don't mention the gnulib
38348         'assert' module here.
38349
38350 2007-05-01  Bruno Haible  <bruno@clisp.org>
38351
38352         * doc/functions/*.texi: New files.
38353         * doc/functions/google-ranking.txt: New file.
38354         * doc/gnulib.texi (Function Substitutes): New chapter.
38355         (ctime, inet_ntoa): Remove sections.
38356         * doc/ctime.texi: Remove file.
38357         * doc/inet_ntoa.texi: Remove file.
38358         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
38359         dependencies.
38360         (%.info): New rule, specifying a --reference-limit.
38361
38362 2007-05-01  Bruno Haible  <bruno@clisp.org>
38363
38364         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
38365
38366 2007-05-01  Bruno Haible  <bruno@clisp.org>
38367
38368         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
38369         the portability of 'mkdir' to mingw systems.
38370
38371 2007-05-01  Bruno Haible  <bruno@clisp.org>
38372
38373         * doc/headers/google-ranking.txt: New file.
38374
38375 2007-04-30  Eric Blake  <ebb9@byu.net>
38376
38377         Prefer fseeko to fseek.
38378         * modules/getpass (Depends-on): Add fseeko.
38379         * lib/getpass.c (getpass): Use fseeko, not fseek.
38380
38381 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
38382
38383         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
38384         assumes the sorting is stable, while most qsort implementations
38385         are not.  Use argument addresses to ensure they never compare as
38386         equal.
38387
38388         * tests/test-argp-2.sh (usage-indent test): Fix output
38389         (func_compare): Restore diff options
38390         * tests/test-argp.c: Restore #include "progname.h"
38391
38392 2007-04-29  Bruno Haible  <bruno@clisp.org>
38393
38394         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
38395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38396         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
38397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38398         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
38399         (configure.ac): Define CHECK_SNPRINTF_POSIX.
38400         (TESTS, check_PROGRAMS): Add test-snprintf.
38401         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
38402         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
38403         (TESTS, check_PROGRAMS): Add test-vsnprintf.
38404         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
38405         assertions that fail on HP-UX, OSF/1, or IRIX.
38406         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
38407
38408 2007-04-29  Bruno Haible  <bruno@clisp.org>
38409
38410         * MODULES.html.sh (posix_functions): Remove 'contents'.
38411
38412 2007-04-29  Karl Berry  <karl@gnu.org>
38413
38414         * config/srclist.txt (gendocs_template_min): new entry.
38415
38416 2007-04-29  Bruno Haible  <bruno@clisp.org>
38417
38418         Work around fpurge bug on BSD systems.
38419         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
38420         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
38421         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
38422         fpurge to rpl_fpurge if the system already has this function.
38423         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
38424         the case where the system already has this function. Correct invariants
38425         on BSD systems.
38426         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
38427         BSD systems.
38428
38429 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38430
38431         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
38432         proposed by Sven Verdoolaege.
38433
38434         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
38435         options.
38436         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
38437         (usage and help tests): Update
38438
38439 2007-04-29  Bruno Haible  <bruno@clisp.org>
38440
38441         * tests/test-fflush.c (main): Use a file of size 17, not 10.
38442         Print more information in case of failure. Disable a test on BeOS.
38443
38444 2007-04-29  Bruno Haible  <bruno@clisp.org>
38445
38446         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
38447         This helps debugging on systems on which no gdb is available.
38448
38449 2007-04-29  Bruno Haible  <bruno@clisp.org>
38450
38451         * lib/freading.h: Improve comments.
38452         * lib/fwriting.h: Likewise.
38453         * tests/test-freading.c (main): Don't check freading immediately after
38454         repositioning. Needed for glibc.
38455
38456 2007-04-29  Bruno Haible  <bruno@clisp.org>
38457
38458         * lib/freading.c (freading): Trivial simplification.
38459
38460 2007-04-28  Bruno Haible  <bruno@clisp.org>
38461
38462         * tests/test-fwriting.c (main): Also test the interaction between
38463         fflush and fwriting.
38464         * modules/fwriting-tests (Depends-on): Add fflush.
38465
38466         * tests/test-freading.c (main): Also test the interaction between
38467         fflush and freading.
38468         * modules/freading-tests (Depends-on): Add fflush.
38469
38470 2007-04-28  Bruno Haible  <bruno@clisp.org>
38471
38472         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
38473         fseeko and ftello.
38474         Suggested by Eric Blake.
38475
38476 2007-04-28  Jim Meyering  <jim@meyering.net>
38477
38478         Avoid false-negative in gl_STDINT_H's C99 conformance test.
38479         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
38480         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
38481
38482 2007-04-27  Eric Blake  <ebb9@byu.net>
38483
38484         * doc/headers/assert.texi (assert.h): Document assert module use.
38485
38486 2007-04-27  Bruno Haible  <bruno@clisp.org>
38487
38488         * doc/headers/*.texi: New files.
38489         * doc/gnulib.texi (Header File Substitutes): New chapter.
38490         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38491         dependencies.
38492         (standards.info ,standards.html, standards.dvi): Update dependencies.
38493         (mostlyclean, clean): New targets.
38494
38495 2007-04-27  Bruno Haible  <bruno@clisp.org>
38496
38497         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38498         * modules/sysexits (Files, Makefile.am): Update.
38499
38500         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38501         * modules/sys_socket (Files, Makefile.am): Update.
38502
38503         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38504         * modules/sys_stat (Files, Makefile.am): Update.
38505
38506 2007-04-27  Eric Blake  <ebb9@byu.net>
38507
38508         * lib/freading.h: Improve comments.
38509         * lib/fwriting.h: Likewise.
38510         * lib/fflush.c: Likewise.
38511
38512         Fix closein for mingw.
38513         * modules/closein-tests: Add tests for closein.
38514         * tests/test-closein.c: New file.
38515         * tests/test-closein.sh: Likewise.
38516         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38517         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38518
38519 2007-04-27  Bruno Haible  <bruno@clisp.org>
38520
38521         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38522         version is < 6.
38523         * lib/math_.h [__DECC]: Likewise.
38524         * lib/stdio_.h [__DECC]: Likewise.
38525         * lib/stdlib_.h [__DECC]: Likewise.
38526         * lib/string_.h [__DECC]: Likewise.
38527         * lib/time_.h [__DECC]: Likewise.
38528         * lib/wchar_.h [__DECC]: Likewise.
38529         * lib/wctype_.h [__DECC]: Likewise.
38530
38531 2007-04-27  Bruno Haible  <bruno@clisp.org>
38532
38533         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38534
38535 2007-04-27  Bruno Haible  <bruno@clisp.org>
38536
38537         * lib/fflush.c: Add comments.
38538         * modules/fpurge-tests (Depends-on): Add fflush.
38539         * modules/freadable-tests (Depends-on): Likewise.
38540         * modules/fwritable-tests (Depends-on): Likewise.
38541
38542 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38543
38544         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38545         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38546         Report by Bruno Haible <bruno@clisp.org>.
38547
38548 2007-04-26  Eric Blake  <ebb9@byu.net>
38549
38550         Fix fflush on mingw.
38551         * modules/fflush (Depends-on): Add freading.
38552         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38553         but unread data.
38554
38555 2007-04-26  Eric Blake  <ebb9@byu.net>
38556         and Bruno Haible  <bruno@clisp.org>
38557
38558         Implement freading and fwriting.
38559         * lib/freading.c: New file.
38560         * lib/freading.h: Likewise.
38561         * m4/freading.m4: Likewise.
38562         * modules/freading: Likewise.
38563         * modules/freading-tests: Likewise.
38564         * tests/test-freading.c: Likewise.
38565         * lib/fwriting.c: New file.
38566         * lib/fwriting.h: Likewise.
38567         * m4/fwriting.m4: Likewise.
38568         * modules/fwriting: Likewise.
38569         * modules/fwriting-tests: Likewise.
38570         * tests/test-fwriting.c: Likewise.
38571         * MODULES.html.sh (File stream based Input/Output): Mention them.
38572
38573 2007-04-26  Bruno Haible  <bruno@clisp.org>
38574
38575         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38576         'long' when we assume it.
38577         Suggested by Eric Blake.
38578
38579 2007-04-26  Bruno Haible  <bruno@clisp.org>
38580
38581         Ensure fseeko, ftello are declared on glibc systems.
38582         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38583         * modules/fseeko (configure.ac-early): Likewise.
38584         * modules/ftello (configure.ac-early): Likewise.
38585         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38586         AC_FUNC_FSEEKO for this.
38587         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38588         (gl_CHECK_FSEEKO): Remove macro.
38589
38590 2007-04-26  Bruno Haible  <bruno@clisp.org>
38591
38592         * tests/test-fflush.c (main): Also check the ftell result after
38593         fflush and fseek/fseeko.
38594         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38595         file descriptor position cache in the stream.
38596         * lib/fseeko.c (rpl_fseeko): Likewise.
38597
38598 2007-04-26  Bruno Haible  <bruno@clisp.org>
38599
38600         * modules/fflush-tests (Depends-on): Add fseeko.
38601
38602 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38603             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38604
38605         * lib/argz_.h: ensure error_t definition is obtained in same
38606         mechanism system argz.h would have.
38607         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38608         argz facilities are known bad.  Err on the side of caution if
38609         cross-compiling.
38610
38611 2007-04-25  Eric Blake  <ebb9@byu.net>
38612
38613         * lib/fpurge.c (includes): Use stdlib.h for free.
38614         * tests/test-fflush.c (main): Also test fflush-fseeko.
38615
38616 2007-04-25  Bruno Haible  <bruno@clisp.org>
38617
38618         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38619         * lib/fseeko.c: New file.
38620         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38621         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38622         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38623         gl_FUNC_FSEEKO.
38624         (gl_FUNC_FSEEKO): Invoke it.
38625         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38626         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38627         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38628
38629 2007-04-25  Bruno Haible  <bruno@clisp.org>
38630
38631         * modules/fflush (Depends-on): Add ftello.
38632
38633 2007-04-25  Bruno Haible  <bruno@clisp.org>
38634
38635         * modules/ftello-tests: New file.
38636         * tests/test-ftello.c: New file.
38637
38638         * modules/ftello: New file.
38639         * m4/ftello.m4: New file.
38640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38641         HAVE_FTELLO.
38642         * lib/stdio_.h (ftello): New declaration.
38643         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38644         HAVE_FTELLO.
38645
38646 2007-04-25  Bruno Haible  <bruno@clisp.org>
38647
38648         * modules/fseeko-tests: New file.
38649         * tests/test-fseeko.c: New file.
38650
38651         * modules/fseeko: New file.
38652         * m4/fseeko.m4: New file.
38653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38654         HAVE_FSEEKO.
38655         * lib/stdio_.h (fseeko): New declaration.
38656         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38657         HAVE_FSEEKO.
38658
38659 2007-04-25  Bruno Haible  <bruno@clisp.org>
38660
38661         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38662
38663 2007-04-25  Bruno Haible  <bruno@clisp.org>
38664
38665         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38666         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38667         * tests/test-unistd.c: Likewise.
38668         * tests/test-fcntl.c: Likewise.
38669
38670 2007-04-23  Eric Blake  <ebb9@byu.net>
38671
38672         * lib/fflush.c: Fix missing include.
38673         Reported by Bruno Haible.
38674
38675 2007-04-23  Bruno Haible  <bruno@clisp.org>
38676
38677         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
38678         Reported by Eric Blake.
38679
38680 2007-04-23  Bruno Haible  <bruno@clisp.org>
38681
38682         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
38683
38684 2007-04-23  Bruno Haible  <bruno@clisp.org>
38685
38686         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
38687
38688 2007-04-23  Bruno Haible  <bruno@clisp.org>
38689
38690         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
38691         Needed on HP-UX 11.
38692
38693 2007-04-16  Eric Blake  <ebb9@byu.net>
38694
38695         Make fflush rely on fpurge.
38696         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
38697         open coding all variants.
38698         * modules/fflush (Depends-on): Add fpurge and unistd.
38699         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
38700         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
38701
38702         Fix --with-tests compilation on cygwin.
38703         * modules/argmatch-tests (Makefile.am): List gnulib library first
38704         in LDADD.
38705         * modules/argp-tests (Makefile.am): Likewise.
38706         * modules/array-list-tests (Makefile.am): Likewise.
38707         * modules/array-oset-tests (Makefile.am): Likewise.
38708         * modules/avltree-list-tests (Makefile.am): Likewise.
38709         * modules/avltree-oset-tests (Makefile.am): Likewise.
38710         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38711         * modules/carray-list-tests (Makefile.am): Likewise.
38712         * modules/dirname-tests (Makefile.am): Likewise.
38713         * modules/frexp-tests (Makefile.am): Likewise.
38714         * modules/isnanl-tests (Makefile.am): Likewise.
38715         * modules/linked-list-tests (Makefile.am): Likewise.
38716         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38717         * modules/lock-tests (Makefile.am): Likewise.
38718         * modules/rbtree-list-tests (Makefile.am): Likewise.
38719         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38720         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38721         * modules/tls-tests (Makefile.am): Likewise.
38722         * modules/tsearch-tests (Makefile.am): Likewise.
38723         * modules/xvasprintf-tests (Makefile.am): Likewise.
38724
38725         Fix fpurge for cygwin.
38726         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
38727         value.
38728         * modules/fpurge-tests (Depends-on): Clean up trash.
38729
38730 2007-04-16  Simon Josefsson  <simon@josefsson.org>
38731
38732         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
38733
38734         * m4/autobuild.m4: Re-indent.
38735
38736 2007-04-13  Bruno Haible  <bruno@clisp.org>
38737
38738         * modules/fpurge-tests: New file.
38739         * tests/test-fpurge.c: New file.
38740
38741         * modules/fpurge: New file.
38742         * lib/fpurge.h: New file.
38743         * lib/fpurge.c: New file.
38744         * m4/fpurge.m4: New file.
38745
38746 2007-04-13  Bruno Haible  <bruno@clisp.org>
38747
38748         * modules/fbufmode-tests: New file.
38749         * tests/test-fbufmode.c: New file.
38750
38751         * modules/fbufmode: New file.
38752         * lib/fbufmode.h: New file.
38753         * lib/fbufmode.c: New file.
38754         * m4/fbufmode.m4: New file.
38755
38756 2007-04-13  Bruno Haible  <bruno@clisp.org>
38757
38758         * modules/fwritable-tests: New file.
38759         * tests/test-fwritable.c: New file.
38760
38761         * modules/fwritable: New file.
38762         * lib/fwritable.h: New file.
38763         * lib/fwritable.c: New file.
38764         * m4/fwritable.m4: New file.
38765
38766 2007-04-13  Bruno Haible  <bruno@clisp.org>
38767
38768         * modules/freadable-tests: New file.
38769         * tests/test-freadable.c: New file.
38770
38771         * modules/freadable: New file.
38772         * lib/freadable.h: New file.
38773         * lib/freadable.c: New file.
38774         * m4/freadable.m4: New file.
38775
38776 2007-04-13  Bruno Haible  <bruno@clisp.org>
38777
38778         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
38779         MOSTLYCLEANFILES.
38780
38781 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38782
38783         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
38784         gzip bootstrap.conf to avoid dragging in i18n machinery.
38785         (gnulib_tool_option): Use it.
38786
38787 2007-04-13  Bruno Haible  <bruno@clisp.org>
38788
38789         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
38790         %F directives.
38791         * tests/test-vasprintf-posix.c (test_function): Likewise.
38792         * tests/test-snprintf-posix.h (test_function): Likewise.
38793         * tests/test-sprintf-posix.h (test_function): Likewise.
38794         * tests/test-fprintf-posix.h (test_function): Likewise.
38795         * tests/test-printf-posix.h (test_function): Likewise.
38796         * tests/test-fprintf-posix.out: Likewise.
38797
38798 2007-04-13  Bruno Haible  <bruno@clisp.org>
38799
38800         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
38801         * modules/tls-tests (configure.ac): Likewise.
38802         Reported by Arto C. Nirkko <anirkko@insel.ch>.
38803
38804 2007-04-13  Bruno Haible  <bruno@clisp.org>
38805
38806         * lib/tls.c (glthread_tls_get): Fix return type.
38807         Patch by Arto C. Nirkko <anirkko@insel.ch>.
38808
38809 2007-04-12  Eric Blake  <ebb9@byu.net>
38810
38811         * modules/gettime (Depends-on): Remove gettime.
38812         Reported by Dmitry V. Levin.
38813
38814 2007-04-12  Bruno Haible  <bruno@clisp.org>
38815
38816         * modules/fflush (Include): Mention <stdio.h>.
38817         * modules/strtoimax (Include): Mention <inttypes.h>.
38818         * modules/strtoumax (Include): Likewise.
38819
38820 2007-04-12  Eric Blake  <ebb9@byu.net>
38821
38822         * .cvsignore: New file.
38823         * .gitignore: Likewise.
38824
38825 2007-04-12  Bruno Haible  <bruno@clisp.org>
38826
38827         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
38828         not before, since $(LDADD) often contains libgnu.a.
38829         * modules/striconv-tests (test_striconv_LDADD): Likewise.
38830         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
38831         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
38832         Needed on Cygwin.
38833
38834 2007-04-12  Eric Blake  <ebb9@byu.net>
38835
38836         Work around glibc's failure to flush stdin on fclose.
38837         * lib/closein.c (close_stdin): Flush stdin before closing.
38838
38839         Work around glibc's failure to reset seekable stdin on exit.
38840         * modules/closein: New module.
38841         * lib/closein.c: New file.
38842         * lib/closein.h: Likewise.
38843         * m4/closein.m4: Likewise.
38844         * MODULES.html.sh (File stream based Input/Output): Document it.
38845
38846 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38847
38848         * gnulib-tool: Rename generated 'autobuild' script to
38849         'do-autobuild' in --create-megatestdir output.
38850
38851         * doc/gnulib.texi (Build robot for gnulib): Fix.
38852
38853 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38854
38855         * modules/sysexits (Depends-on): Add absolute-header.
38856
38857 2007-04-12  Eric Blake  <ebb9@byu.net>
38858
38859         No need to preserve errno on success.
38860         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
38861         Reported by Bruno Haible.
38862
38863 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38864
38865         * MODULES.html.sh (Support for maintaining and releasing
38866         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
38867
38868 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38869
38870         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
38871
38872 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38873
38874         * modules/autobuild: New module.
38875
38876         * m4/autobuild.m4: New file.
38877
38878 2007-04-11  Bruno Haible  <bruno@clisp.org>
38879
38880         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
38881         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
38882         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
38883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
38884         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38885         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38886         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38887         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38888         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38889         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38890         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
38891         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38892         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38893         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
38894         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38895         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38896         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
38897         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38898         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38899         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
38900         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38901         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
38903         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38904         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38905         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
38906         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38907         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38908         Reported by Eric Blake.
38909
38910 2007-04-11  Bruno Haible  <bruno@clisp.org>
38911
38912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
38913
38914 2007-04-10  Bruno Haible  <bruno@clisp.org>
38915
38916         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
38917         for NaN and Infinity. Needed on FreeBSD 6.1.
38918         * tests/test-vasnprintf-posix.c (test_function): Undo last change
38919         regarding results for "%010a" of Infinity and NaN.
38920         * tests/test-vasprintf-posix.c (test_function): Likewise.
38921         * tests/test-snprintf-posix.h (test_function): Likewise.
38922         * tests/test-sprintf-posix.h (test_function): Likewise.
38923         * tests/test-fprintf-posix.h (test_function): Likewise.
38924         * tests/test-printf-posix.h (test_function): Likewise.
38925         * tests/test-fprintf-posix.out: Likewise.
38926
38927 2007-04-10  Bruno Haible  <bruno@clisp.org>
38928
38929         * modules/locale-tests: New file.
38930         * tests/test-locale.c: New file.
38931
38932         * modules/locale: New file.
38933         * lib/locale_.h: New file.
38934         * m4/locale_h.m4: New file.
38935
38936 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
38937             Bruno Haible  <bruno@clisp.org>
38938
38939         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
38940         be determined, test for availability of the copysignf, copysign,
38941         copysignl functions.
38942         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
38943         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
38944         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
38945
38946 2007-04-09  Eric Blake  <ebb9@byu.net>
38947
38948         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
38949         * modules/stdio (Makefile.am): Support fflush.
38950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38951         * modules/fflush: New file.
38952         * lib/fflush.c: Likewise.
38953         * m4/fflush.m4: Likewise.
38954         * modules/fflush-tests: New test.
38955         * tests/test-fflush.c: Likewise.
38956         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
38957
38958 2007-04-06  Bruno Haible  <bruno@clisp.org>
38959
38960         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
38961         (VASNPRINTF): Use signbit for faster determination whether to print a
38962         minus sign.
38963         * modules/vasnprintf (Files): Remove lib/float+.h.
38964         * modules/fprintf-posix (Depends-on): Add signbit.
38965         * modules/snprintf-posix (Depends-on): Likewise.
38966         * modules/sprintf-posix (Depends-on): Likewise.
38967         * modules/vasnprintf-posix (Depends-on): Likewise.
38968         * modules/vasprintf-posix (Depends-on): Likewise.
38969         * modules/vfprintf-posix (Depends-on): Likewise.
38970         * modules/vsnprintf-posix (Depends-on): Likewise.
38971         * modules/vsprintf-posix (Depends-on): Likewise.
38972
38973 2007-04-06  Bruno Haible  <bruno@clisp.org>
38974
38975         * tests/test-frexp.c (main): Test also the sign bit of zero results.
38976         * tests/test-frexpl.c (main): Likewise.
38977         * tests/test-ldexpl.c (main): Likewise.
38978         * modules/frexp-tests (Depends-on): Add signbit.
38979         * modules/frexpl-tests (Depdends-on): Likewise.
38980         * modules/ldexpl-tests (Depdends-on): Likewise.
38981
38982 2007-04-06  Bruno Haible  <bruno@clisp.org>
38983
38984         * modules/signbit-tests: New file.
38985         * tests/test-signbit.c: New file.
38986
38987         * modules/signbit: New file.
38988         * lib/signbitf.c: New file.
38989         * lib/signbitd.c: New file.
38990         * lib/signbitl.c: New file.
38991         * m4/signbit.m4: New file.
38992         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
38993         (signbit): New macro.
38994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
38995         REPLACE_SIGNBIT.
38996         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
38997         REPLACE_FREXPL into math.h.
38998
38999 2007-04-06  Bruno Haible  <bruno@clisp.org>
39000
39001         * modules/isnanf-nolibm-tests: New file.
39002         * tests/test-isnanf.c: New file.
39003
39004         * modules/isnanf-nolibm: New file.
39005         * lib/isnanf.h: New file.
39006         * lib/isnanf.c: New file.
39007         * lib/isnan.c: Consider the USE_FLOAT macro.
39008         * m4/isnanf.m4: New file.
39009
39010 2007-04-06  Bruno Haible  <bruno@clisp.org>
39011
39012         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
39013         (Link): New section.
39014
39015         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
39016
39017 2007-04-06  Bruno Haible  <bruno@clisp.org>
39018
39019         Assume the 'long double' type.
39020         * m4/longdouble.m4: Remove file.
39021         * config/srclist.txt: Don't mention longdouble.m4.
39022         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
39023         * lib/float+.h: Likewise.
39024         * lib/frexp.c: Likewise.
39025         * lib/printf-args.h: Likewise.
39026         * lib/printf-args.c: Likewise.
39027         * lib/printf-frexp.c: Likewise.
39028         * lib/printf-parse.c: Likewise.
39029         * lib/vasnprintf.c: Likewise.
39030         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
39031         * m4/intl.m4: Likewise.
39032         * m4/isnanl.m4: Likewise.
39033         * m4/printf.m4: Likewise.
39034         * m4/printf-frexpl.m4: Likewise.
39035         * m4/vasnprintf.m4: Likewise.
39036         * modules/allocsa (Files): Remove m4/longdouble.m4.
39037         * modules/gettext (Files): Likewise.
39038         * modules/relocatable-prog-wrapper (Files): Likewise.
39039         * modules/vasnprintf (Files): Likewise.
39040         * modules/isnanl (Files): Likewise.
39041         (Include): Simplify.
39042         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
39043         (Include): Simplify.
39044         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
39045         (Include): Simplify.
39046         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
39047         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39048         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
39049         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39050         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39051         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39052         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
39053         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39054         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39055         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39056         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
39057         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39058         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
39059         * tests/test-isnanl.c: Likewise.
39060         * tests/test-snprintf-posix.h: Likewise.
39061         * tests/test-sprintf-posix.h: Likewise.
39062         * tests/test-vasnprintf-posix.c: Likewise.
39063         * tests/test-vasnprintf-posix2.c: Likewise.
39064         * tests/test-vasprintf-posix.c: Likewise.
39065
39066 2007-04-06  Bruno Haible  <bruno@clisp.org>
39067
39068         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
39069         * lib/math_.h [__DECC]: Include the overridden include file through
39070         #include_next, outside the double-inclusion guard.
39071         * lib/stdio_.h [__DECC]: Likewise.
39072         * lib/stdlib_.h [__DECC]: Likewise.
39073         * lib/string_.h [__DECC]: Likewise.
39074         * lib/time_.h [__DECC]: Likewise.
39075         * lib/wchar_.h [__DECC]: Likewise.
39076         * lib/wctype_.h [__DECC]: Likewise.
39077         * lib/inttypes_.h [__DECC]: Likewise.
39078         Reported by Albert Chin <china@thewrittenword.com> in
39079         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
39080
39081 2007-04-04  Eric Blake  <ebb9@byu.net>
39082
39083         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
39084         1.5.x.
39085
39086 2007-04-04  Bruno Haible  <bruno@clisp.org>
39087
39088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
39089         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
39090
39091 2007-04-04  Bruno Haible  <bruno@clisp.org>
39092
39093         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
39094         results for "%010a" of Infinity and NaN.
39095         * tests/test-vasprintf-posix.c (test_function): Likewise.
39096         * tests/test-snprintf-posix.h (test_function): Likewise.
39097         * tests/test-sprintf-posix.h (test_function): Likewise.
39098         * tests/test-fprintf-posix.h (test_function): Remove these tests.
39099         * tests/test-printf-posix.h (test_function): Likewise.
39100         * tests/test-fprintf-posix.out: Update.
39101         Needed for FreeBSD 6.1.
39102
39103 2007-04-04  Bruno Haible  <bruno@clisp.org>
39104
39105         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
39106         directly used by the gnulib modules nor by gnulib-tool.
39107
39108 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39109
39110         * DEPENDENCIES: Give overall description of version dependency
39111         desirability.  Use more-typical names for apps.
39112         Add shell, coreutils, diffutils, grep, tar, gzip.
39113
39114 2007-04-04  Simon Josefsson  <simon@josefsson.org>
39115
39116         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
39117
39118 2007-04-04  Karl Berry  <karl@gnu.org>
39119
39120         * MODULES.html.sh (func_module): missing '.
39121
39122 2007-04-03  Bruno Haible  <bruno@clisp.org>
39123
39124         * modules/argmatch-tests (Makefile.am): New variable
39125         test_argmatch_LDADD.
39126         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
39127         * modules/array-list-tests (Makefile.am): New variable
39128         test_array_list_LDADD.
39129         * modules/array-oset-tests (Makefile.am): New variable
39130         test_array_oset_LDADD.
39131         * modules/avltree-list-tests (Makefile.am): New variable
39132         test_avltree_list_LDADD.
39133         * modules/avltree-oset-tests (Makefile.am): New variable
39134         test_avltree_oset_LDADD.
39135         * modules/avltreehash-list-tests (Makefile.am): New variable
39136         test_avltreehash_list_LDADD.
39137         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
39138         test_canonicalize_lgpl_LDADD.
39139         * modules/carray-list-tests (Makefile.am): New variable
39140         test_carray_list_LDADD.
39141         * modules/dirname-tests (Makefile.am): New variable
39142         test_dirname_LDADD.
39143         * modules/linked-list-tests (Makefile.am): New variable
39144         test_linked_list_LDADD.
39145         * modules/linkedhash-list-tests (Makefile.am): New variable
39146         test_linkedhash_list_LDADD.
39147         * modules/rbtree-list-tests (Makefile.am): New variable
39148         test_rbtree_list_LDADD.
39149         * modules/rbtree-oset-tests (Makefile.am): New variable
39150         test_rbtree_oset_LDADD.
39151         * modules/rbtreehash-list-tests (Makefile.am): New variable
39152         test_rbtreehash_list_LDADD.
39153         * modules/xvasprintf-tests (Makefile.am): New variable
39154         test_xvasprintf_LDADD.
39155         Reported by Eric Blake.
39156
39157 2007-04-03  Eric Blake  <ebb9@byu.net>
39158
39159         * DEPENDENCIES: Weaken m4 requirements.
39160
39161 2007-04-03  Bruno Haible  <bruno@clisp.org>
39162
39163         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
39164         * modules/isnanl-tests (configure.ac): Likewise.
39165
39166 2007-04-03  Ben Pfaff  <blp@gnu.org>
39167
39168         * modules/iconv_open: Add $(srcdir)/ to source directory
39169         references in Makefile fragments that call gperf, to fix VPATH
39170         builds.
39171
39172 2007-04-03  Bruno Haible  <bruno@clisp.org>
39173
39174         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
39175         * lib/ldexpl.c: Undo last change.
39176
39177 2007-04-03  Bruno Haible  <bruno@clisp.org>
39178
39179         * modules/printf-frexpl (Depends-on): Undo last change.
39180         (Files): Add m4/ldexpl.m4.
39181
39182 2007-04-03  Bruno Haible  <bruno@clisp.org>
39183
39184         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
39185         * modules/isnanl (Link): New section.
39186
39187         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
39188         * modules/frexp (Link): New section.
39189
39190         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
39191         * modules/frexpl (Link): New section.
39192
39193         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
39194         * modules/ldexpl (Link): New section.
39195
39196 2007-04-03  Bruno Haible  <bruno@clisp.org>
39197
39198         * modules/TEMPLATE-EXTENDED: New file.
39199         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
39200
39201 2007-04-03  Bruno Haible  <bruno@clisp.org>
39202
39203         * DEPENDENCIES: New file.
39204         Suggested by Simon Josefsson.
39205
39206 2007-04-03  Bruno Haible  <bruno@clisp.org>
39207
39208         * doc/gnulib.texi: Escape @.
39209
39210 2007-04-03  James Youngman  <jay@gnu.org>
39211         and Paul Eggert  <eggert@cs.ucla.edu>
39212
39213         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
39214         birthtime on all systems that have birthtime, not just those which
39215         use st_birthtimensec rather than st_birthtim.  Putting zero in
39216         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
39217         that the birth time is not available for files on an NFS mount.
39218
39219 2007-04-03  Simon Josefsson  <simon@josefsson.org>
39220
39221         * modules/memxor: Move back from crypto/, suggested by Bruno.
39222         * modules/crypto/hmac-sha1: Fix memxor dependency.
39223
39224         * modules/crypto/gc: Moved from ../.
39225
39226 2007-04-02  Eric Blake  <ebb9@byu.net>
39227
39228         * lib/ldexpl.c (includes): Avoid libm.
39229
39230         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
39231
39232 2007-04-02  Bruno Haible  <bruno@clisp.org>
39233
39234         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
39235         on IRIX.
39236
39237 2007-04-02  Bruno Haible  <bruno@clisp.org>
39238
39239         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
39240         x86 or x86_64 platforms running MacOS X.
39241         Reported by Ryan Schmidt <@ryandesign.com>.
39242
39243 2007-04-02  Bruno Haible  <bruno@clisp.org>
39244
39245         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
39246         i386.
39247
39248 2007-04-01  Simon Josefsson  <simon@josefsson.org>
39249
39250         * modules/crypto/arcfour: Moved from ../.
39251         * modules/crypto/arcfour-tests: Moved from ../.
39252         * modules/crypto/arctwo: Moved from ../.
39253         * modules/crypto/arctwo-tests: Moved from ../.
39254         * modules/crypto/des: Moved from ../.
39255         * modules/crypto/des-tests: Moved from ../.
39256         * modules/crypto/gc-arcfour: Moved from ../.
39257         * modules/crypto/gc-arcfour-tests: Moved from ../.
39258         * modules/crypto/gc-arctwo: Moved from ../.
39259         * modules/crypto/gc-arctwo-tests: Moved from ../.
39260         * modules/crypto/gc-des: Moved from ../.
39261         * modules/crypto/gc-des-tests: Moved from ../.
39262         * modules/crypto/gc-hmac-md5: Moved from ../.
39263         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
39264         * modules/crypto/gc-hmac-sha1: Moved from ../.
39265         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
39266         * modules/crypto/gc-md2: Moved from ../.
39267         * modules/crypto/gc-md2-tests: Moved from ../.
39268         * modules/crypto/gc-md4: Moved from ../.
39269         * modules/crypto/gc-md4-tests: Moved from ../.
39270         * modules/crypto/gc-md5: Moved from ../.
39271         * modules/crypto/gc-md5-tests: Moved from ../.
39272         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
39273         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
39274         * modules/crypto/gc-random: Moved from ../.
39275         * modules/crypto/gc-rijndael: Moved from ../.
39276         * modules/crypto/gc-rijndael-tests: Moved from ../.
39277         * modules/crypto/gc-sha1: Moved from ../.
39278         * modules/crypto/gc-sha1-tests: Moved from ../.
39279         * modules/crypto/gc-tests: Moved from ../.
39280         * modules/crypto/hmac-md5: Moved from ../.
39281         * modules/crypto/hmac-md5-tests: Moved from ../.
39282         * modules/crypto/hmac-sha1: Moved from ../.
39283         * modules/crypto/hmac-sha1-tests: Moved from ../.
39284         * modules/crypto/md2: Moved from ../.
39285         * modules/crypto/md2-tests: Moved from ../.
39286         * modules/crypto/md4: Moved from ../.
39287         * modules/crypto/md4-tests: Moved from ../.
39288         * modules/crypto/md5: Moved from ../.
39289         * modules/crypto/md5-tests: Moved from ../.
39290         * modules/crypto/memxor: Moved from ../.
39291         * modules/crypto/rijndael: Moved from ../.
39292         * modules/crypto/rijndael-tests: Moved from ../.
39293         * modules/crypto/sha1: Moved from ../.
39294
39295 2007-03-30  James Youngman  <jay@gnu.org>
39296
39297         * tests/test-stat-time.c (prepare_test): use chmod() rather than
39298         rename() to change the ctime of a file (because ctime is unaffected
39299         by rename on jfs2 on AIX 5.1).
39300         (main): Start by doing cleanup, in case a previous run failed leaving
39301         test files behind.
39302
39303 2007-03-31  Bruno Haible  <bruno@clisp.org>
39304
39305         Support old proprietary implementations of iconv.
39306         * modules/iconv_open: New file.
39307         * lib/iconv_.h: New file.
39308         * m4/iconv_h.m4: New file.
39309         * lib/iconv_open.c: New file.
39310         * lib/iconv_open-aix.gperf: New file.
39311         * lib/iconv_open-hpux.gperf: New file.
39312         * lib/iconv_open-irix.gperf: New file.
39313         * lib/iconv_open-osf.gperf: New file.
39314         * m4/iconv_open.m4: New file.
39315         * modules/linebreak (Depends-on): Add iconv_open.
39316         * modules/striconv (Depends-on): Likewise.
39317         * modules/striconveh (Depends-on): Likewise.
39318         * modules/unicodeio (Depends-on): Likewise.
39319         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
39320         (iconv_t)(-1).
39321         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
39322         conversion if cd is (iconv_t)(-1).
39323         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
39324         is not possible.
39325
39326 2007-03-31  Bruno Haible  <bruno@clisp.org>
39327
39328         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39329         work on Solaris either. Protect also second use of "autodetect_jp".
39330
39331 2007-03-31  Bruno Haible  <bruno@clisp.org>
39332
39333         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
39334         the function is not present.
39335
39336 2007-03-31  Bruno Haible  <bruno@clisp.org>
39337
39338         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
39339         the function is not present.
39340
39341 2007-03-31  Bruno Haible  <bruno@clisp.org>
39342
39343         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
39344         a bug in HP-UX iconv_open().
39345
39346 2007-03-31  Bruno Haible  <bruno@clisp.org>
39347
39348         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
39349         (Mathematics <math.h>): New section, add fpieee.
39350         (Input/output <stdio.h>): Add fseterr.
39351         (Mathematics <math.h>): New section, add printf-frexp.
39352         (Container data structures): Add sublist.
39353         (Core language properties): Add fpucw, inline.
39354         (Functions for greatest-width integer types <inttypes.h>): Add
39355         imaxabs, imaxdiv, inttypes.
39356         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
39357         isnanl-nolibm, ldexp.
39358         (Mathematics <math.h>): New section, add printf-frexpl.
39359         (Support for systems lacking POSIX:2001): Add fprintf-posix,
39360         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
39361         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
39362         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
39363         (Unicode string functions): Add unistr/u*-mbtoucr.
39364         (Java): Add javacomp-script, javaexec-script.
39365         (C#): Add csharpcomp-script, csharpexec-script.
39366         (Support for building libraries and executables): Add havelib,
39367         relocatable-*.
39368         (Support for maintaining and releasing projects): Renamed from
39369         'Support for maintaining and release projects'. Add announce-gen.
39370
39371 2007-03-31  Bruno Haible  <bruno@clisp.org>
39372
39373         * README: Talk primarily about git.
39374         (git and CVS): Renamed from CVS.
39375         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
39376         gnulib is available through git.
39377         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
39378
39379 2007-03-30  Bruno Haible  <bruno@clisp.org>
39380
39381         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
39382         * lib/poll_.h: Likewise.
39383         * lib/stat_.h: Likewise.
39384         * lib/sys_time_.h: Likewise.
39385         * lib/sysexit_.h: Likewise.
39386         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
39387         * lib/stdbool_.h: Likewise.
39388         * lib/byteswap_.h: Add double-inclusion guard.
39389
39390 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
39391
39392         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
39393
39394 2007-03-30  Karl Berry  <karl@gnu.org>
39395
39396         * config/srclist-update: double space after USA in the license
39397         substitution, since that's how it's usually (?) written.
39398
39399 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39400
39401         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
39402         reported by Bruno Haible.
39403
39404 2007-03-29  Bruno Haible  <bruno@clisp.org>
39405
39406         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
39407         a bug in AIX iconv().
39408
39409 2007-03-29  Bruno Haible  <bruno@clisp.org>
39410
39411         * modules/ldexpl-tests: New file.
39412         * tests/test-ldexpl.c: New file.
39413
39414 2007-03-29  Bruno Haible  <bruno@clisp.org>
39415
39416         * lib/ldexpl.c: Include fpucw.h.
39417         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
39418         multiplication.
39419         * modules/ldexpl (Depends-on): Add fpucw.
39420
39421 2007-03-29  Bruno Haible  <bruno@clisp.org>
39422
39423         * modules/ldexpl: New file.
39424         * m4/ldexpl.m4: New file.
39425         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
39426         set.
39427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
39428         REPLACE_LDEXPL.
39429         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
39430         REPLACE_LDEXPL.
39431         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39432         gl_FUNC_LDEXPL_WORKS.
39433         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
39434         * modules/mathl (Files): Remove lib/ldexpl.c.
39435         (Depends-on): Add ldexpl.
39436
39437 2007-03-29  Bruno Haible  <bruno@clisp.org>
39438
39439         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
39440
39441 2007-03-29  Bruno Haible  <bruno@clisp.org>
39442
39443         * tests/test-striconveh.c (main): Don't assume that a direct conversion
39444         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
39445         and possibly also HP-UX.
39446         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39447         work on AIX, IRIX, HP-UX, OSF/1.
39448         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39449         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39450         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39451         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39452         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
39453         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39454
39455 2007-03-29  Bruno Haible  <bruno@clisp.org>
39456
39457         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
39458
39459 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39460
39461         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
39462         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
39463
39464 2007-03-29  Eric Blake  <ebb9@byu.net>
39465
39466         * lib/acl-internal.h: Remove redundant include.
39467         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
39468         Cygwin when a file is locked.
39469
39470 2007-03-29  Bruno Haible  <bruno@clisp.org>
39471
39472         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
39473         file.
39474         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
39475
39476 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39477
39478         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
39479         try to remove a parent directory if the child couldn't be removed
39480         (except for the first rmdir, which could fail because the child
39481         doesn't exist).  Problem reported by Jeff Blaine in
39482         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
39483
39484 2007-03-28  Bruno Haible  <bruno@clisp.org>
39485
39486         * lib/striconveh.c (utf8conv_carefully): New function.
39487         (mem_cd_iconveh_internal): Invoke it.
39488
39489 2007-03-28  Bruno Haible  <bruno@clisp.org>
39490
39491         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39492         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39493         input.
39494         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39495         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39496         unistr/u8-uctomb.
39497
39498 2007-03-28  Bruno Haible  <bruno@clisp.org>
39499
39500         * modules/unistr/u8-mbtoucr: New file.
39501         * lib/unistr/u8-mbtoucr.c: New file.
39502         * modules/unistr/u16-mbtoucr: New file.
39503         * lib/unistr/u16-mbtoucr.c: New file.
39504         * modules/unistr/u16-mbtoucr: New file.
39505         * lib/unistr/u16-mbtoucr.c: New file.
39506         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39507
39508 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39509             Bruno Haible  <bruno@clisp.org>
39510
39511         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39512         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39513         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39514
39515         * m4/stdio_h.m4: Add stubs for vasprintf too.
39516
39517         * modules/stdio: Support vasprintf in sed command.
39518
39519         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39520         vasprintf.h.  Add stdio module indicator.
39521
39522         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39523         vasprintf.h.
39524
39525         * lib/vasprintf.h: File removed.
39526
39527         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39528         * lib/vasprintf.c: Ditto.
39529         * lib/xvasprintf.c: Ditto.
39530         * tests/test-vasprintf-posix.c: Ditto.
39531         * tests/test-vasprintf.c: Ditto.
39532
39533 2007-03-27  Bruno Haible  <bruno@clisp.org>
39534
39535         Make vasnprintf multithread-safe.
39536         * lib/vasnprintf.c (decimal_point_char): New function.
39537         (VASNPRINTF): Use it.
39538         Suggested by Simon Josefsson.
39539
39540 2007-03-27  Eric Blake  <ebb9@byu.net>
39541
39542         Support sub-second birthtime on cygwin.
39543         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39544         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39545         (get_stat_birthtime): Also work with st_birthtim.
39546
39547 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39548
39549         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39550         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39551         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39552         (get_stat_birthtime_ns): Simplify compile-time tests.
39553         (get_stat_birthtime): Change the API to look like
39554         get_stat_mtime etc., except return a negative tv_nsec on error.
39555         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39556         Don't check for "spare" fields.
39557         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39558         or for struct stat.st_birthtime, as these tests aren't used.
39559         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39560
39561 2007-03-27  Bruno Haible  <bruno@clisp.org>
39562
39563         * lib/stat-time.h: Include <sys/stat.h>.
39564
39565 2007-03-27  James Youngman  <jay@gnu.org>
39566
39567         * lib/stat-time.h (get_stat_birthtime): New function for
39568           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39569         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39570           and its variants.
39571         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39572         * modules/stat-time-test: New file.
39573         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39574
39575 2007-03-26  Bruno Haible  <bruno@clisp.org>
39576
39577         Better support of signalling NaNs.
39578         * lib/atanl.c: Include isnanl.h.
39579         (atanl): Perform test for NaN at the beginning of the function and
39580         through a call to isnanl.
39581         * lib/cosl.c: Include isnanl.h.
39582         (cosl): Perform test for NaN at the beginning of the function and
39583         through a call to isnanl.
39584         * lib/ldexpl.c: Include isnanl.h.
39585         (ldexpl): Perform test for NaN through a call to isnanl.
39586         * lib/logl.c: Include isnanl.h.
39587         (logl): Perform test for NaN at the beginning of the function and
39588         through a call to isnanl.
39589         * lib/sinl.c: Include isnanl.h.
39590         (sinl): Perform test for NaN at the beginning of the function and
39591         through a call to isnanl.
39592         * lib/sqrtl.c: Include isnanl.h.
39593         (sqrtl): Perform test for NaN at the beginning of the function and
39594         through a call to isnanl.
39595         * lib/tanl.c: Include isnanl.h.
39596         (tanl): Perform test for NaN at the beginning of the function and
39597         through a call to isnanl.
39598         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39599         * modules/mathl (Depends-on): Add isnanl.
39600
39601 2007-03-26  Eric Blake  <ebb9@byu.net>
39602
39603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39604         regression in logic sense of previous patch.
39605
39606 2007-03-26  Bruno Haible  <bruno@clisp.org>
39607
39608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39609         unportable shell command "if ! ...".
39610         Reported by Ralf Wildenhues.
39611
39612 2007-03-25  Bruno Haible  <bruno@clisp.org>
39613
39614         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39615         <sysexits.h> file, and only add EX_CONFIG.
39616         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39617         absolute file name and whether it is sufficient. Substitute also
39618         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39619         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39620         ABSOLUTE_SYSEXITS_H into sysexits.h.
39621
39622 2007-03-25  Bruno Haible  <bruno@clisp.org>
39623
39624         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39625         hints is NULL.
39626
39627 2007-03-25  Bruno Haible  <bruno@clisp.org>
39628
39629         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39630         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39631
39632 2007-03-25  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/vasnprintf.c: Include langinfo.h.
39635         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39636         multithread-safe.
39637         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39638         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39640         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39641         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39646         Reported by Simon Josefsson.
39647
39648 2007-03-25  Bruno Haible  <bruno@clisp.org>
39649
39650         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39651         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39652         * modules/vasnprintf (Depends-on): Add stdint.
39653
39654 2007-03-25  Bruno Haible  <bruno@clisp.org>
39655
39656         * modules/fpieee: New file.
39657         * m4/fpieee.m4: New file.
39658         * modules/isnan-nolibm (Depends-on): Add fpieee.
39659         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39660         * modules/isnanl (Depends-on): Add fpieee.
39661
39662 2007-03-25  Bruno Haible  <bruno@clisp.org>
39663
39664         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39665
39666 2007-03-25  Bruno Haible  <bruno@clisp.org>
39667
39668         Avoid test failures on IRIX 6.5.
39669         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39670         (main): Use it.
39671         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39672         macros.
39673         (main): Use them.
39674
39675 2007-03-25  Bruno Haible  <bruno@clisp.org>
39676
39677         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
39678         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
39679         exists but doesn't work.
39680         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
39681         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
39682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
39683         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
39684
39685 2007-03-25  Bruno Haible  <bruno@clisp.org>
39686
39687         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
39688         returns inf. Needed on IRIX 6.5.
39689
39690 2007-03-25  Bruno Haible  <bruno@clisp.org>
39691
39692         * tests/test-frexpl.c: Include isnanl-nolibm.h.
39693         (main): Use isnanl instead of x != x idiom.
39694         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
39695
39696         * tests/test-frexp.c: Include isnan.h.
39697         (main): Use isnan instead of x != x idiom.
39698         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
39699
39700 2007-03-25  Bruno Haible  <bruno@clisp.org>
39701
39702         * tests/test-frexp.c (NaN): New function/macro.
39703         (main): Use it instead of 0.0 / 0.0.
39704         * tests/test-isnan.c (NaN): New function/macro.
39705         (main): Use it instead of 0.0 / 0.0.
39706         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
39707         (test_function): Use it instead of 0.0 / 0.0.
39708         * tests/test-vasprintf-posix.c (NaN): New function/macro.
39709         (test_function): Use it instead of 0.0 / 0.0.
39710         * tests/test-snprintf-posix.h (NaN): New function/macro.
39711         (test_function): Use it instead of 0.0 / 0.0.
39712         * tests/test-sprintf-posix.h (NaN): New function/macro.
39713         (test_function): Use it instead of 0.0 / 0.0.
39714         * tests/test-fprintf-posix.h (NaN): New function/macro.
39715         (test_function): Use it instead of 0.0 / 0.0.
39716         * tests/test-printf-posix.h (NaN): New function/macro.
39717         (test_function): Use it instead of 0.0 / 0.0.
39718
39719         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
39720
39721 2007-03-25  Bruno Haible  <bruno@clisp.org>
39722
39723         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
39724
39725 2007-03-25  Bruno Haible  <bruno@clisp.org>
39726
39727         * lib/regexec.c (merge_state_with_log): Make static.
39728
39729 2007-03-25  Bruno Haible  <bruno@clisp.org>
39730
39731         * lib/trigl.c (kernel_rem_pio2): Make static.
39732
39733 2007-03-25  Bruno Haible  <bruno@clisp.org>
39734
39735         * lib/sincosl.c (sincosl_table): Make static.
39736
39737 2007-03-25  Bruno Haible  <bruno@clisp.org>
39738
39739         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
39740         if the compiler does not support C99.
39741
39742 2007-03-25  Bruno Haible  <bruno@clisp.org>
39743
39744         * modules/time (Makefile.am): Ensure all rule action lines start with a
39745         tab.
39746
39747 2007-03-24  Bruno Haible  <bruno@clisp.org>
39748
39749         * modules/tsearch-tests: New file.
39750         * tests/test-tsearch.sh: New file.
39751         * tests/test-tsearch.c: New file, mostly copied from glibc.
39752
39753         * modules/search-tests: New file.
39754         * tests/test-search.c: New file.
39755
39756         * modules/search: New file.
39757         * lib/search_.h: New file, incorporating lib/tsearch.h.
39758         * m4/search_h.m4: New file.
39759         * lib/tsearch.h: Remove file.
39760         * lib/tsearch.c: Include search.h instead of tsearch.h.
39761         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
39762         HAVE_TSEARCH.
39763         * modules/tsearch (Files): Remove lib/tsearch.h.
39764         (Depends-on): Add search.
39765         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
39766         (Include): Change tsearch.h into search.h.
39767
39768 2007-03-24  Bruno Haible  <bruno@clisp.org>
39769
39770         * modules/fpucw: New file.
39771         * lib/fpucw.h: New file.
39772         * lib/frexp.c: Include fpucw.h.
39773         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39774         (FUNC): Use them.
39775         * lib/printf-frexp.c: Include fpucw.h.
39776         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39777         (FUNC): Use them.
39778         * lib/vasnprintf.c: Include fpucw.h.
39779         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
39780         'long double' calculations.
39781         * tests/test-frexpl.c: Include fpucw.h.
39782         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39783         * tests/test-printf-frexpl.c: Include fpucw.h.
39784         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39785         * modules/frexpl (Depends-on): Add fpucw.
39786         * modules/printf-frexpl (Depends-on): Likewise.
39787         * modules/fprintf-posix (Depends-on): Likewise.
39788         * modules/snprintf-posix (Depends-on): Likewise.
39789         * modules/sprintf-posix (Depends-on): Likewise.
39790         * modules/vasnprintf-posix (Depends-on): Likewise.
39791         * modules/vasprintf-posix (Depends-on): Likewise.
39792         * modules/vfprintf-posix (Depends-on): Likewise.
39793         * modules/vsnprintf-posix (Depends-on): Likewise.
39794         * modules/vsprintf-posix (Depends-on): Likewise.
39795         * modules/frexpl-tests (Depends-on): Likewise.
39796         * modules/printf-frexpl-tests (Depends-on): Likewise.
39797
39798 2007-03-24  Bruno Haible  <bruno@clisp.org>
39799
39800         * lib/float+.h: New file.
39801         * lib/isnan.c: Include float+.h.
39802         (SIZE): New macro.
39803         (FUNC): Compare only SIZE bytes of the value.
39804         * lib/vasnprintf.c: Include float+.h.
39805         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
39806         SIZEOF_LDBL or SIZEOF_DBL bytes.
39807         * modules/isnan-nolibm (Files): Add lib/float+.h.
39808         * modules/isnanl-nolibm (Files): Add lib/float+.h.
39809         * modules/isnanl (Files): Add lib/float+.h.
39810         * modules/vasnprintf (Files): Add lib/float+.h.
39811
39812 2007-03-24  Bruno Haible  <bruno@clisp.org>
39813
39814         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
39815         include isnanl-nolibm.h.
39816
39817 2007-03-24  Bruno Haible  <bruno@clisp.org>
39818
39819         * tests/test-read-file.c (main): Don't produce spurious output for
39820         expected situations. Make the test fail if it encountered unexpected
39821         results.
39822
39823 2007-03-24  Bruno Haible  <bruno@clisp.org>
39824
39825         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
39826         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
39827
39828 2007-03-24  Bruno Haible  <bruno@clisp.org>
39829
39830         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
39831
39832 2007-03-24  Bruno Haible  <bruno@clisp.org>
39833
39834         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
39835         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
39836
39837         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
39838         * modules/utf8-ucs4: Turn into a symbolic link to module
39839         unistr/u8-mbtouc.
39840
39841         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
39842         utf8-ucs4-unsafe.
39843         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
39844         unistr/u8-mbtouc-unsafe.
39845
39846         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
39847         * modules/utf16-ucs4: Turn into a symbolic link to module
39848         unistr/u16-mbtouc.
39849
39850         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
39851         utf16-ucs4-unsafe.
39852         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
39853         unistr/u16-mbtouc-unsafe.
39854
39855         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
39856         * modules/ucs4-utf8: Turn into a symbolic link to module
39857         unistr/u8-ubtomb.
39858
39859         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
39860         * modules/ucs4-utf16: Turn into a symbolic link to module
39861         unistr/u16-ubtomb.
39862
39863 2007-03-24  Bruno Haible  <bruno@clisp.org>
39864
39865         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
39866         Enable the function only if HAVE_INLINE.
39867         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
39868         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39869         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
39870         Enable the function only if HAVE_INLINE.
39871         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
39872         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39873         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
39874         Enable the function only if HAVE_INLINE.
39875         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
39876         Enable the function only if HAVE_INLINE.
39877         * modules/utf8-ucs4: Update.
39878         * modules/utf8-ucs4-unsafe: Update.
39879         * modules/utf16-ucs4: Update.
39880         * modules/utf16-ucs4-unsafe: Update.
39881         * modules/ucs4-utf8: Update.
39882         * modules/ucs4-utf16: Update.
39883
39884 2007-03-24  Bruno Haible  <bruno@clisp.org>
39885
39886         * lib/utf8-ucs4.h: Remove file.
39887         * lib/utf8-ucs4-unsafe.h: Remove file.
39888         * lib/utf16-ucs4.h: Remove file.
39889         * lib/utf16-ucs4-unsafe.h: Remove file.
39890         * lib/ucs4-utf8.h: Remove file.
39891         * lib/ucs4-utf16.h: Remove file.
39892         * lib/unistr.h: Include their previous contents.
39893         * m4/utf-ucs4.m4: Remove file.
39894         * m4/ucs4-utf.m4: Remove file.
39895         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
39896         (Depends-on): Add unistr/base.
39897         (configure.ac): Remove gl_UTF_UCS4.
39898         (Makefile.am): Update.
39899         (Include): Change to unistr.h.
39900         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
39901         (Depends-on): Add unistr/base.
39902         (configure.ac): Remove gl_UTF_UCS4.
39903         (Makefile.am): Update.
39904         (Include): Change to unistr.h.
39905         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
39906         (Depends-on): Add unistr/base.
39907         (configure.ac): Remove gl_UTF_UCS4.
39908         (Makefile.am): Update.
39909         (Include): Change to unistr.h.
39910         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
39911         (Depends-on): Add unistr/base.
39912         (configure.ac): Remove gl_UTF_UCS4.
39913         (Makefile.am): Update.
39914         (Include): Change to unistr.h.
39915         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
39916         (Depends-on): Add unistr/base.
39917         (configure.ac): Remove gl_UCS4_UTF.
39918         (Makefile.am): Update.
39919         (Include): Change to unistr.h.
39920         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
39921         (Depends-on): Add unistr/base.
39922         (configure.ac): Remove gl_UCS4_UTF.
39923         (Makefile.am): Update.
39924         (Include): Change to unistr.h.
39925         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
39926         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
39927         utf8-ucs4-unsafe.h.
39928         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
39929         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
39930         utf16-ucs4-unsafe.h.
39931         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
39932         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
39933         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
39934         * lib/unistr/u8-strchr.c: Likewise.
39935         * lib/unistr/u8-strrchr.c: Likewise.
39936         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
39937         * lib/unistr/u16-strchr.c: Likewise.
39938         * lib/unistr/u16-strrchr.c: Likewise.
39939         * lib/striconveh.c: Update.
39940         * lib/linebreak.c: Update.
39941
39942 2007-03-24  Bruno Haible  <bruno@clisp.org>
39943
39944         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
39945         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
39946
39947 2007-03-22  Bruno Haible  <bruno@clisp.org>
39948
39949         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
39950
39951 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
39952
39953         * MODULES.html.sh (File system functions): New module write-any-file.
39954         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
39955         * m4/write-any-file.m4: New files.
39956
39957 2007-03-23  Eric Blake  <ebb9@byu.net>
39958
39959         * gnulib-tool: Rearrange space-tab sequences, since some editors
39960         like to eat them.
39961
39962 2007-03-23  Eric Blake  <ebb9@byu.net>
39963
39964         * lib/version-etc.c (version_etc_va): Update license wording to
39965         be more concise.  Recommended by Richard Stallman.
39966
39967 2007-03-22  Bruno Haible  <bruno@clisp.org>
39968
39969         * lib/poll.c (MSG_PEEK): New fallback definition.
39970
39971 2007-03-22  Bruno Haible  <bruno@clisp.org>
39972
39973         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
39974         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
39975         (main): Update.
39976         Fixes a compilation error on BeOS.
39977
39978 2007-03-22  Bruno Haible  <bruno@clisp.org>
39979
39980         * modules/frexpl-tests: New file.
39981         * tests/test-frexpl.c: New file.
39982
39983         * modules/frexpl: New file.
39984         * m4/frexpl.m4: New file.
39985         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
39986         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
39987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
39988         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
39989         (Depends-on): Add frexpl. Remove isnanl-nolibm.
39990         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
39991
39992 2007-03-22  Bruno Haible  <bruno@clisp.org>
39993
39994         * lib/frexpl.c: Share code with lib/frexp.c.
39995         * modules/mathl (Files): Add lib/frexp.c.
39996         (Depends-on): Add isnanl-nolibm.
39997
39998 2007-03-22  Bruno Haible  <bruno@clisp.org>
39999
40000         * modules/printf-frexp (Files): Add m4/frexp.m4.
40001         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
40002         only if the found frexp function actually works.
40003
40004 2007-03-22  Bruno Haible  <bruno@clisp.org>
40005
40006         * lib/frexp.c: Remove older implementation that uses divisions.
40007
40008 2007-03-21  Bruno Haible  <bruno@clisp.org>
40009
40010         * modules/frexp-tests: New file.
40011         * tests/test-frexp.c: New file.
40012
40013         * modules/frexp: New file.
40014         * lib/frexp.c: New file.
40015         * m4/frexp.m4: New file.
40016         * lib/math_.h (frexp): New declaration.
40017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
40018         REPLACE_FREXP.
40019         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
40020
40021 2007-03-21  Bruno Haible  <bruno@clisp.org>
40022
40023         * modules/isnanl-tests: New file.
40024         * tests/test-isnanl.c: New file.
40025
40026         * modules/isnanl: New file.
40027         * lib/isnanl.h: New file.
40028         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
40029         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
40030         gl_FUNC_ISNANL_WORKS.
40031         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
40032         New macros.
40033
40034 2007-03-21  Bruno Haible  <bruno@clisp.org>
40035
40036         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
40037         lib/isnanl.h.
40038         (Include): Update.
40039         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
40040         * lib/vasnprintf.c: Update.
40041         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
40042         tests/test-isnanl.h, remove tests/test-isnanl.c.
40043         (Makefile.am): Update.
40044         * tests/test-isnanl-nolibm.c: New file.
40045         * tests/test-isnanl.h: New file.
40046         * tests/test-isnanl.c: Remove file.
40047
40048 2007-03-21  Jim Meyering  <jim@meyering.net>
40049
40050         When trying to open ".", treat ESTALE like EACCES.
40051         * lib/savewd.c (savewd_save): Resort to forking not just upon
40052         failure with EACCES, but also when errno is ESTALE.
40053
40054 2007-03-20  Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
40057         Needed on AIX 5.1. Reported by Matthew Woehlke.
40058
40059 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40060
40061         Suggestions by Bruno Haible:
40062         * lib/acl-internal.h: Include "gettext.h" rather than rolling
40063         our own.
40064         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
40065         * modules/acl (Depends-on): Add gettext.
40066
40067 2007-03-19  Bruno Haible  <bruno@clisp.org>
40068
40069         * modules/iconvme: Remove file.
40070         * lib/iconvme.h: Remove file.
40071         * lib/iconvme.c: Remove file.
40072         * m4/iconvme.m4: Remove file.
40073
40074 2007-03-19  Bruno Haible  <bruno@clisp.org>
40075
40076         * doc/relocatable-maint.texi: Break long shell script line.
40077         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40078
40079 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40080
40081         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
40082         handle file_has_acl.
40083         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
40084         * lib/acl.c: Move header inclusions and related macro defns into
40085         lib/acl-internal.h.
40086         (S_ISLNK): Remove defn, since that's now done for us.
40087         (file_has_acl): Move to lib/file-has-acl.c.
40088         Call acl_trivial if available.  This is the crucial part of the fix.
40089         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
40090         shared within the library.  Rewrite a bit, partly to make it compatible
40091         with the GNU coding style.
40092         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
40093         Remove unnecessary double-quotes.
40094         Don't test for acl_to_text; the build will catch that.
40095         Replace acl_entries if it doesn't exist and it is needed.
40096         Check for -lsec and acl_trivial (as used on Solaris 10).
40097         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
40098         lib/file-has-acl.c.
40099         (Depends-on): Add sys_stat, for S_ISLNK.
40100
40101 2007-03-19  Ben Pfaff  <blp@gnu.org>
40102
40103         * doc/gnulib.texi: Fix typos.
40104         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40105
40106 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40107
40108         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
40109         If size is zero here, buf must be zero.
40110
40111 2007-03-19  Simon Josefsson  <simon@josefsson.org>
40112
40113         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
40114         <bruno@clisp.org>.
40115
40116 2007-03-18  Bruno Haible  <bruno@clisp.org>
40117
40118         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
40119         Suggested by Eric Blake.
40120
40121 2007-03-18  Ben Pfaff  <blp@gnu.org>
40122
40123         * doc/relocatable.texi: Recommend using as prefix a directory
40124         that does not exist and will never be created.  Based on
40125         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
40126         and others.
40127
40128 2007-03-17  Bruno Haible  <bruno@clisp.org>
40129
40130         * lib/fchownat.c: Include lchown.h.
40131
40132 2007-03-17  Bruno Haible  <bruno@clisp.org>
40133
40134         Fix endless loop when the given allocated size was > INT_MAX.
40135         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
40136         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
40137         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
40138         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
40139         * lib/sprintf.c (sprintf): Likewise.
40140
40141 2007-03-17  Bruno Haible  <bruno@clisp.org>
40142
40143         * tests/test-argp-2.sh (func_compare): Output a context diff.
40144
40145 2007-03-17  Bruno Haible  <bruno@clisp.org>
40146
40147         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
40148         locale's decimal-point character.
40149
40150 2007-03-17  Bruno Haible  <bruno@clisp.org>
40151
40152         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
40153         before comparing it. Needed because on some platforms (e.g. x86) a
40154         'long double' occupies less bytes than sizeof (long double).
40155
40156 2007-03-17  Bruno Haible  <bruno@clisp.org>
40157
40158         * tests/test-crc.c (main): Make printf statements 64-bit clean.
40159         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
40160         * tests/test-getaddrinfo.c (simple): Likewise.
40161         * tests/test-read-file.c (main): Likewise.
40162
40163 2007-03-17  Bruno Haible  <bruno@clisp.org>
40164
40165         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
40166
40167 2007-03-17  Bruno Haible  <bruno@clisp.org>
40168
40169         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
40170         unused variable.
40171
40172 2007-03-17  Bruno Haible  <bruno@clisp.org>
40173
40174         * tests/test-c-strcasecmp.c: Include c-strcase.h.
40175         * tests/test-c-strncasecmp.c: Likewise.
40176
40177 2007-03-17  Bruno Haible  <bruno@clisp.org>
40178
40179         * modules/stdlib (Depends-on): Add unistd.
40180         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
40181         Needed for MacOS X 10.3.
40182
40183 2007-03-17  Bruno Haible  <bruno@clisp.org>
40184
40185         * lib/unistr/u-strdup.h: Include <stdlib.h>.
40186
40187 2007-03-17  Bruno Haible  <bruno@clisp.org>
40188
40189         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
40190
40191 2007-03-17  Bruno Haible  <bruno@clisp.org>
40192
40193         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
40194         to reflect files copied from gnulib (with or without modifications).
40195         Suggested by Jim Meyering.
40196
40197 2007-03-17  Eric Blake  <ebb9@byu.net>
40198
40199         * NEWS: Document stdlib change from 2007-02-18.
40200
40201 2007-03-17  Jim Meyering  <jim@meyering.net>
40202
40203         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
40204         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
40205         someone uses a name containing shell meta-characters.
40206         Reported by Alfred M. Szmidt.
40207
40208         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
40209
40210 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40211
40212         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
40213         and copy gettext configuration files only if configure.ac contains
40214         a use of AM_GNU_GETTEXT_VERSION.
40215
40216 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40217
40218         * build-aux/bootstrap (gnulib_name): New variable.
40219         (gnulib_tool_options): Use it.
40220
40221 2007-03-13  Simon Josefsson  <simon@josefsson.org>
40222
40223         * tests/test-des.c: Use new namespace.
40224
40225 2007-03-15  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
40228         Reported by James Youngman <jay@gnu.org>.
40229
40230 2007-03-15  Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
40233         declared prototype. Needed with cc on OSF/1 5.1.
40234
40235 2007-03-15  Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
40238         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
40239         (struct gl_list_implementation): Add dispose_fn argument to the
40240         'create_empty', 'create' methods.
40241         (struct gl_list_impl_base): Add field 'dispose_fn'.
40242         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
40243         argument.
40244         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
40245         dispose_fn argument.
40246         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
40247         dispose_fn on the dropped values.
40248         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
40249         dispose_fn argument.
40250         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
40251         dropped values.
40252         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
40253         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40254         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
40255         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40256         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
40257         argument.
40258         (gl_tree_list_free): Call dispose_fn on the dropped values.
40259         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
40260         the dropped values.
40261         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40262         Add dispose_fn argument.
40263         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
40264         Call dispose_fn on the dropped values.
40265         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
40266         Add dispose_fn argument.
40267         (gl_sublist_create): Initialize the 'dispose_fn' field.
40268         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
40269         * tests/test-array_list.c (main): Update.
40270         * tests/test-carray_list.c (main): Update.
40271         * tests/test-avltree_list.c (main): Update.
40272         * tests/test-rbtree_list.c (main): Update.
40273         * tests/test-avltreehash_list.c (main): Update.
40274         * tests/test-rbtreehash_list.c (main): Update.
40275         * tests/test-linked_list.c (main): Update.
40276         * tests/test-linkedhash_list.c (main): Update.
40277         * tests/test-array_oset.c (main): Update.
40278
40279 2007-03-15  Bruno Haible  <bruno@clisp.org>
40280
40281         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
40282         (gl_oset_create_empty): Add dispose_fn argument.
40283         (struct gl_oset_implementation): Add dispose_fn argument to
40284         'create_empty' method.
40285         (struct gl_oset_impl_base): Add dispose_fn field.
40286         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
40287         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
40288         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
40289         values.
40290         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
40291         (gl_tree_oset_free): Call dispose_fn on the dropped values.
40292         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40293         dropped value.
40294         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40295         dropped value.
40296         * tests/test-array_oset.c (main): Update.
40297         * tests/test-avltree_oset.c (main): Update.
40298         * tests/test-rbtree_oset.c (main): Update.
40299         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
40300
40301 2007-03-13  Bruno Haible  <bruno@clisp.org>
40302
40303         * tests/test-stdbool.c (i): Update after last patch.
40304
40305 2007-03-12  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/quotearg.c: Include <wctype.h> early, before the definition of
40308         the iswprint macro. Needed on Solaris 2.5.1.
40309
40310 2007-03-12  Bruno Haible  <bruno@clisp.org>
40311
40312         * tests/test-printf-frexp.c (main): Declare x as volatile.
40313
40314 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40315
40316         * doc/gnulib.texi (Build robot for gnulib): New section.
40317
40318 2007-03-12  Jim Meyering  <jim@meyering.net>
40319
40320         * build-aux/bootstrap: New file.
40321         * build-aux/bootstrap.conf: New file, from coreutils.
40322
40323 2007-03-11  Bruno Haible  <bruno@clisp.org>
40324
40325         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
40326
40327 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40328
40329         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
40330         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
40331         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
40332
40333 2007-03-11  Bruno Haible  <bruno@clisp.org>
40334
40335         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
40336         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
40337
40338 2007-03-11  Bruno Haible  <bruno@clisp.org>
40339
40340         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
40341         formula. Needed for SunPRO C 5.0.
40342
40343 2007-03-11  Bruno Haible  <bruno@clisp.org>
40344
40345         * modules/long-options (Depends-on): Add getopt.
40346
40347 2007-03-11  Bruno Haible  <bruno@clisp.org>
40348
40349         * modules/modechange (Depends-on): Add stdbool.
40350
40351 2007-03-11  Bruno Haible  <bruno@clisp.org>
40352
40353         * modules/i-ring (Depends-on): Add stdbool.
40354
40355 2007-03-11  Bruno Haible  <bruno@clisp.org>
40356
40357         * modules/gc-des (Depends-on): Add stdbool.
40358
40359 2007-03-11  Bruno Haible  <bruno@clisp.org>
40360
40361         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
40362
40363 2007-03-11  Bruno Haible  <bruno@clisp.org>
40364
40365         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
40366
40367 2007-03-11  Bruno Haible  <bruno@clisp.org>
40368
40369         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
40370
40371 2007-03-11  Bruno Haible  <bruno@clisp.org>
40372
40373         * lib/vasnprintf.c (sprintf): Undefine.
40374
40375 2007-03-11  Bruno Haible  <bruno@clisp.org>
40376
40377         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
40378         initializers in SunPRO C and Compaq C compilers.
40379
40380 2007-03-11  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
40383         decrementing code ANSI C compliant.
40384
40385 2007-03-11  Bruno Haible  <bruno@clisp.org>
40386
40387         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
40388         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
40389
40390 2007-03-11  Bruno Haible  <bruno@clisp.org>
40391
40392         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
40393         <stdbool.h> substitute doesn't pass.
40394
40395 2007-03-11  Bruno Haible  <bruno@clisp.org>
40396
40397         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
40398
40399 2007-03-11  Bruno Haible  <bruno@clisp.org>
40400
40401         * gnulib-tool (func_create_megatestdir): Create also an autobuild
40402         script, for submission to autobuild.josefsson.org.
40403
40404 2007-03-10  Bruno Haible  <bruno@clisp.org>
40405
40406         * modules/canonicalize-lgpl-tests: New file.
40407         * tests/test-canonicalize-lgpl.sh: New file.
40408         * tests/test-canonicalize-lgpl.c: New file.
40409
40410         * modules/c-strcase-tests: New file.
40411         * tests/test-c-strcase.sh: New file.
40412         * tests/test-c-strcasecmp.c: New file.
40413         * tests/test-c-strncasecmp.c: New file.
40414
40415         * modules/atexit-tests: New file.
40416         * tests/test-atexit.sh: New file.
40417         * tests/test-atexit.c: New file.
40418
40419 2007-03-10  Bruno Haible  <bruno@clisp.org>
40420
40421         * tests/test-binary-io.sh: Use temporary filenames that are not so
40422         likely to clash with those of other tests (in a parallel make).
40423         * tests/test-binary-io.c: Likewise.
40424
40425 2007-03-10  Bruno Haible  <bruno@clisp.org>
40426
40427         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
40428         fallback; use #error instead.
40429         Suggested by Simon Josefsson.
40430
40431 2007-03-10  Bruno Haible  <bruno@clisp.org>
40432
40433         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
40434         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
40435         first and the last.
40436
40437 2007-03-10  Bruno Haible  <bruno@clisp.org>
40438
40439         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
40440
40441 2007-03-10  Bruno Haible  <bruno@clisp.org>
40442
40443         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
40444         "make distcheck".
40445         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
40446         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
40447         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
40448
40449 2007-03-10  Bruno Haible  <bruno@clisp.org>
40450
40451         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
40452         variable.
40453         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
40454         variable.
40455
40456 2007-03-09  Eric Blake  <ebb9@byu.net>
40457         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
40458
40459         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
40460         types are not being provided by gnulib.
40461         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
40462         types are supported.
40463
40464 2007-03-10  Bruno Haible  <bruno@clisp.org>
40465
40466         * lib/stdio_.h (__attribute__): New macro.
40467         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
40468         vsprintf): Specify __attribute__ __format__ for GCC.
40469         Suggested by Eric Blake.
40470
40471 2007-03-09  Bruno Haible  <bruno@clisp.org>
40472
40473         * modules/printf-posix-tests: New file.
40474         * tests/test-printf-posix.sh: New file.
40475         * tests/test-printf-posix.c: New file.
40476
40477         * modules/printf-posix: New file.
40478         * lib/printf.c: New file.
40479         * m4/printf-posix-rpl.m4: New file.
40480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
40481         REPLACE_PRINTF.
40482         * lib/stdio_.h (printf): New declaration.
40483         (format, __format__, ____printf____, ____scanf____, ____strftime____,
40484         ____strfmon____): New macros.
40485         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
40486         REPLACE_PRINTF.
40487
40488 2007-03-09  Bruno Haible  <bruno@clisp.org>
40489
40490         * tests/test-vasnprintf-posix2.sh: New file.
40491         * tests/test-vasnprintf-posix2.c: New file.
40492         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40493         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40494         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40495
40496         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40497         a locale dependent decimal point, rather than always '.'.
40498
40499 2007-03-09  Eric Blake  <ebb9@byu.net>
40500
40501         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40502         spite of platforms like Tandem/NSK that define it to -1.
40503
40504 2007-03-08  Bruno Haible  <bruno@clisp.org>
40505
40506         * modules/vprintf-posix-tests: New file.
40507         * tests/test-vprintf-posix.sh: New file.
40508         * tests/test-vprintf-posix.c: New file.
40509         * tests/test-printf-posix.h: New file.
40510
40511         * modules/vprintf-posix: New file.
40512         * lib/vprintf.c: New file.
40513         * m4/vprintf-posix.m4: New file.
40514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40515         REPLACE_VPRINTF.
40516         * lib/stdio_.h (vprintf): New declaration.
40517         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40518         REPLACE_VPRINTF.
40519
40520 2007-03-08  Bruno Haible  <bruno@clisp.org>
40521
40522         * modules/fprintf-posix-tests: New file.
40523         * tests/test-fprintf-posix.sh: New file.
40524         * tests/test-fprintf-posix.c: New file.
40525
40526         * modules/fprintf-posix: New file.
40527         * lib/fprintf.c: New file.
40528         * m4/fprintf-posix.m4: New file.
40529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40530         REPLACE_FPRINTF.
40531         * lib/stdio_.h (fprintf): New declaration.
40532         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40533         REPLACE_FPRINTF.
40534
40535 2007-03-08  Bruno Haible  <bruno@clisp.org>
40536
40537         * modules/vfprintf-posix-tests: New file.
40538         * tests/test-vfprintf-posix.sh: New file.
40539         * tests/test-vfprintf-posix.c: New file.
40540         * tests/test-fprintf-posix.h: New file.
40541         * tests/test-fprintf-posix.out: New file.
40542
40543         * modules/vfprintf-posix: New file.
40544         * lib/vfprintf.c: New file.
40545         * m4/vfprintf-posix.m4: New file.
40546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40547         REPLACE_VFPRINTF.
40548         * lib/stdio_.h (vfprintf): New declaration.
40549         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40550         REPLACE_VFPRINTF.
40551
40552 2007-03-08  Bruno Haible  <bruno@clisp.org>
40553
40554         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40555
40556 2007-03-08  Bruno Haible  <bruno@clisp.org>
40557
40558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40559         instead of 'expr' invocations.
40560         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40561         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40562         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40564         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40565         Suggested by Paul Eggert.
40566
40567 2007-03-08  Bruno Haible  <bruno@clisp.org>
40568
40569         * modules/fseterr-tests: New file.
40570         * tests/test-fseterr.c: New file.
40571
40572         * modules/fseterr: New file.
40573         * lib/fseterr.h: New file.
40574         * lib/fseterr.c: New file.
40575
40576 2007-03-08  Bruno Haible  <bruno@clisp.org>
40577
40578         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40579         * lib/getopt_.h: Likewise.
40580         * lib/mbswidth.h: Likewise.
40581         * lib/setenv.h: Likewise.
40582         * lib/vasnprintf.h: Likewise.
40583         * lib/vasprintf.h: Likewise.
40584         * lib/verror.h: Likewise.
40585         * lib/xsetenv.h: Likewise.
40586         * lib/xvasprintf.h: Likewise.
40587
40588 2007-03-08  Jim Meyering  <jim@meyering.net>
40589
40590         * users.txt: Add parted.
40591
40592         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40593
40594 2007-03-07  Bruno Haible  <bruno@clisp.org>
40595
40596         * m4/printf.m4: Make the shell script snippets copy&pastable.
40597
40598 2007-03-02  Bruno Haible  <bruno@clisp.org>
40599
40600         * lib/netinet_in_.h: New file.
40601         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40602         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40603         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40604         (Depends-on): Add absolute-header.
40605         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40606         into netinet/in.h.
40607
40608 2007-03-03  Bruno Haible  <bruno@clisp.org>
40609
40610         * lib/sys_select_.h: New file.
40611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40612         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40613         * modules/sys_select (Files): Add lib/sys_select_.h.
40614         (Depends-on): Add absolute-header.
40615         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40616         into sys/select.h.
40617
40618 2007-03-02  Bruno Haible  <bruno@clisp.org>
40619
40620         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40621         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40622         values.
40623         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40624         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40625         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40626         * modules/sys_socket (Depends-on): Add absolute-header.
40627         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40628         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40629         (Include): Remove requirement of inclusion of <sys/types.h>.
40630
40631 2007-03-02  Bruno Haible  <bruno@clisp.org>
40632
40633         * lib/byteswap_.h (bswap_32): Fix formula.
40634
40635 2007-03-06  Bruno Haible  <bruno@clisp.org>
40636
40637         * modules/sprintf-posix-tests: New file.
40638         * tests/test-sprintf-posix.c: New file.
40639
40640         * modules/sprintf-posix: New file.
40641         * lib/sprintf.c: New file.
40642         * m4/sprintf-posix.m4: New file.
40643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40644         REPLACE_SPRINTF.
40645         * lib/stdio_.h (sprintf): New declaration.
40646         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40647         REPLACE_SPRINTF.
40648
40649 2007-03-06  Bruno Haible  <bruno@clisp.org>
40650
40651         * modules/vsprintf-posix-tests: New file.
40652         * tests/test-vsprintf-posix.c: New file.
40653         * tests/test-sprintf-posix.h: New file.
40654
40655         * modules/vsprintf-posix: New file.
40656         * lib/vsprintf.c: New file.
40657         * m4/vsprintf-posix.m4: New file.
40658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40659         REPLACE_VSPRINTF.
40660         * lib/stdio_.h (vsprintf): New declaration.
40661         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40662         REPLACE_VSPRINTF.
40663
40664 2007-03-06  Bruno Haible  <bruno@clisp.org>
40665
40666         * modules/vsnprintf (Depend-on): Remove minmax.
40667
40668 2007-03-06  Bruno Haible  <bruno@clisp.org>
40669
40670         * modules/snprintf-posix-tests: New file.
40671         * tests/test-snprintf-posix.c: New file.
40672
40673         * modules/snprintf-posix: New file.
40674         * m4/snprintf-posix.m4: New file.
40675         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40676         gl_FUNC_SNPRINTF.
40677         (gl_FUNC_SNPRINTF): Invoke it.
40678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
40679         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
40680         is set.
40681         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
40682
40683 2007-03-06  Bruno Haible  <bruno@clisp.org>
40684
40685         * modules/vsnprintf-posix-tests: New file.
40686         * tests/test-vsnprintf-posix.c: New file.
40687         * tests/test-snprintf-posix.h: New file.
40688
40689         * modules/vsnprintf-posix: New file.
40690         * m4/vsnprintf-posix.m4: New file.
40691         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
40692         gl_FUNC_VSNPRINTF.
40693         (gl_FUNC_VSNPRINTF): Invoke it.
40694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
40695         * lib/stdio_.h (vsnprintf): Define as a replacement if
40696         REPLACE_VSNPRINTF is set.
40697         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
40698
40699 2007-03-06  Bruno Haible  <bruno@clisp.org>
40700
40701         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
40702         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
40703
40704 2007-03-06  Bruno Haible  <bruno@clisp.org>
40705
40706         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
40707         (asinl): Declare also if HAVE_DECL_ASINL is set.
40708         (atanl): Declare also if HAVE_DECL_ATANL is set.
40709         (ceill): Declare also if HAVE_DECL_CEILL is set.
40710         (cosl): Declare also if HAVE_DECL_COSL is set.
40711         (expl): Declare also if HAVE_DECL_EXPL is set.
40712         (floorl): Declare also if HAVE_DECL_FLOORL is set.
40713         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
40714         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
40715         (logl): Declare also if HAVE_DECL_LOGL is set.
40716         (sinl): Declare also if HAVE_DECL_SINL is set.
40717         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
40718         (tanl): Declare also if HAVE_DECL_TANL is set.
40719         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
40720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
40721         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
40722         declaration of frexpl, ldexpl.
40723         * modules/printf-frexpl (Depends-on): Add math.
40724         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
40725
40726 2007-03-05  Bruno Haible  <bruno@clisp.org>
40727
40728         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
40729         frexpl and ldexpl are declared.
40730         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
40731
40732 2007-03-05  Bruno Haible  <bruno@clisp.org>
40733
40734         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
40735         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
40736
40737 2007-03-05  Bruno Haible  <bruno@clisp.org>
40738
40739         * lib/stdio_.h: Include <stddef.h>.
40740
40741 2007-03-05  Bruno Haible  <bruno@clisp.org>
40742
40743         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
40744
40745 2007-03-05  Bruno Haible  <bruno@clisp.org>
40746
40747         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
40748         NetBSD 4, from Ralf Wildenhues.
40749
40750 2007-03-04  Bruno Haible  <bruno@clisp.org>
40751
40752         * lib/vasprintf.h: Update #if logic for the case when the functions
40753         exist but are overridden.
40754
40755 2007-03-04  Bruno Haible  <bruno@clisp.org>
40756
40757         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
40758         implementations: glibc-2.4 and MacOS X 10.3.
40759         * tests/test-vasnprintf-posix.c (test_function): Test also the case
40760         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
40761         * tests/test-vasprintf-posix.c (test_function): Likewise.
40762
40763 2007-03-04  Bruno Haible  <bruno@clisp.org>
40764
40765         * modules/vasprintf-posix-tests: New file.
40766         * tests/test-vasprintf-posix.c: New file.
40767
40768         * modules/vasprintf-posix: New file.
40769         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
40770         defined.
40771         * m4/vasprintf-posix.m4: New file.
40772         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
40773         gl_FUNC_VASPRINTF.
40774         (gl_FUNC_VASPRINTF): Invoke it.
40775         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
40776         here.
40777         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
40778
40779 2007-03-04  Bruno Haible  <bruno@clisp.org>
40780
40781         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
40782         REPLACE_GETTIMEOFDAY.
40783         * modules/sys_time (Makefile.am): Likewise.
40784         * m4/sys_time_h.m4: Likewise.
40785         * m4/gettimeofday.m4: Likewise.
40786
40787 2007-03-04  Bruno Haible  <bruno@clisp.org>
40788
40789         * modules/vasnprintf-posix-tests: New file.
40790         * tests/test-vasnprintf-posix.c: New file.
40791
40792         * modules/vasnprintf-posix: New file.
40793         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
40794         printf-frexpl.h.
40795         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
40796         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
40797         REPLACE_VASNPRINTF is defined.
40798         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
40799         gl_FUNC_VASNPRINTF.
40800         (gl_FUNC_VASNPRINTF): Invoke it.
40801         * m4/vasnprintf-posix.m4: New file.
40802         * m4/printf.m4: New file.
40803
40804 2007-03-04  Bruno Haible  <bruno@clisp.org>
40805
40806         Compile progreloc.c only if --enable-relocatable is specified.
40807         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
40808         if --enable-relocatable was specified.
40809         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
40810         lib_SOURCES.
40811
40812 2007-03-04  Jim Meyering  <jim@meyering.net>
40813
40814         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
40815         Use it consistently, rather than enumerating errno constants.
40816
40817 2007-03-04  Bruno Haible  <bruno@clisp.org>
40818
40819         * modules/xvasprintf-tests: New file.
40820         * tests/test-xvasprintf.c: New file.
40821
40822         * modules/vasprintf-tests: New file.
40823         * tests/test-vasprintf.c: New file.
40824
40825         * modules/vasnprintf-tests: New file.
40826         * tests/test-vasnprintf.c: New file.
40827
40828         * modules/vsnprintf-tests: New file.
40829         * tests/test-vsnprintf.c: New file.
40830
40831         * modules/snprintf-tests: New file.
40832         * tests/test-snprintf.c: New file.
40833
40834 2007-03-04  Bruno Haible  <bruno@clisp.org>
40835
40836         Compile relocatable.c only if --enable-relocatable is specified.
40837         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
40838         gl_RELOCATABLE_LIBRARY.
40839         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
40840         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
40841         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
40842         gl_RELOCATABLE_LIBRARY.
40843         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
40844         (Makefile.am): Remove lib_SOURCES.
40845         * modules/relocatable-lib-lgpl (configure.ac): Invoke
40846         gl_RELOCATABLE_LIBRARY.
40847         (Makefile.am): Remove lib_SOURCES.
40848         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
40849         always.
40850         * modules/relocatable-prog-wrapper (configure.ac): Invoke
40851         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
40852
40853 2007-03-04  Bruno Haible  <bruno@clisp.org>
40854
40855         * modules/argmatch-tests: New file.
40856         * tests/test-argmatch.c: New file.
40857
40858         * tests/test-allocsa.c (main): Halve the number of loop runs.
40859
40860         * modules/alloca-opt-tests: New file.
40861         * tests/test-alloca-opt.c: New file.
40862
40863 2007-03-04  Jim Meyering  <jim@meyering.net>
40864
40865         Work around difference between Linux ACLs and Solaris 10 ZFS.
40866         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
40867         for EINVAL.
40868
40869 2007-03-03  Bruno Haible  <bruno@clisp.org>
40870
40871         * modules/relocatable-prog (Depends-on): Add back progreloc's
40872         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
40873
40874 2007-03-03  Bruno Haible  <bruno@clisp.org>
40875
40876         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
40877         * modules/relocatable-lib: New file.
40878
40879 2007-03-03  Bruno Haible  <bruno@clisp.org>
40880
40881         * modules/relocatable-prog: Renamed from modules/relocatable.
40882         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
40883
40884 2007-03-03  Bruno Haible  <bruno@clisp.org>
40885
40886         * modules/relocatable-script (Files): Add doc/relocatable.texi,
40887         m4/relocatable-lib.m4.
40888         (Depends-on): Remove 'relocatable'.
40889         (configure.ac): Add gl_RELOCATABLE_NOP.
40890
40891 2007-03-03  Bruno Haible  <bruno@clisp.org>
40892
40893         * modules/relocatable-prog-wrapper: New file.
40894         * modules/relocatable (Depends-on): Add it. Remove all other
40895         dependencies except progname.
40896         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
40897
40898         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
40899         (gl_FUNC_STRERROR): Nop.
40900         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
40901
40902         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
40903         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
40904
40905         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
40906         (gl_FUNC_READLINK): Update.
40907
40908         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
40909
40910 2007-03-03  Bruno Haible  <bruno@clisp.org>
40911
40912         * lib/xreadlink.c: Include <unistd.h> unconditionally.
40913         * modules/xreadlink (Depends-on): Add unistd.
40914         * modules/xreadlink-with-size (Depends-on): Likewise.
40915
40916 2007-03-03  Bruno Haible  <bruno@clisp.org>
40917
40918         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
40919         extracted from gt_FUNC_SETENV.
40920         (gt_FUNC_SETENV): Remove macro.
40921         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
40922         remove gt_FUNC_SETENV.
40923
40924 2007-03-03  Bruno Haible  <bruno@clisp.org>
40925
40926         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
40927         ENABLE_RELOCATABLE here.
40928         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
40929
40930 2007-03-03  Bruno Haible  <bruno@clisp.org>
40931
40932         * modules/rbtreehash-list-tests (Depends-on): Add progname.
40933         * tests/test-rbtreehash_list.c: Include progname.h.
40934         (main): Call set_program_name.
40935
40936         * modules/rbtree-oset-tests (Depends-on): Add progname.
40937         * tests/test-rbtree_oset.c: Include progname.h.
40938         (main): Call set_program_name.
40939
40940         * modules/rbtree-list-tests (Depends-on): Add progname.
40941         * tests/test-rbtree_list.c: Include progname.h.
40942         (main): Call set_program_name.
40943
40944         * modules/linked-list-tests (Depends-on): Add progname.
40945         * tests/test-linked_list.c: Include progname.h.
40946         (main): Call set_program_name.
40947
40948 2007-03-03  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
40951         All uses of __restrict changed to _Restrict_.
40952         * lib/glob_.h (__restrict): Remove macro.
40953
40954 2007-03-02  Bruno Haible  <bruno@clisp.org>
40955
40956         * modules/gettext (configure.ac): Require gettext infrastructure
40957         from version 0.16.1.
40958
40959 2007-03-02  Bruno Haible  <bruno@clisp.org>
40960
40961         * modules/linkedhash-list-tests (Depends-on): Add progname.
40962         * tests/test-linkedhash_list.c: Include progname.h.
40963         (main): Call set_program_name.
40964
40965         * modules/carray-list-tests (Depends-on): Add progname.
40966         * tests/test-carray_list.c: Include progname.h.
40967         (main): Call set_program_name.
40968
40969         * modules/avltreehash-list-tests (Depends-on): Add progname.
40970         * tests/test-avltreehash_list.c: Include progname.h.
40971         (main): Call set_program_name.
40972
40973         * modules/avltree-oset-tests (Depends-on): Add progname.
40974         * tests/test-avltree_oset.c: Include progname.h.
40975         (main): Call set_program_name.
40976
40977         * modules/avltree-list-tests (Depends-on): Add progname.
40978         * tests/test-avltree_list.c: Include progname.h.
40979         (main): Call set_program_name.
40980
40981         * modules/array-oset-tests (Depends-on): Add progname.
40982         * tests/test-array_oset.c: Include progname.h.
40983         (main): Call set_program_name.
40984
40985         * modules/array-list-tests (Depends-on): Add progname.
40986         * tests/test-array_list.c: Include progname.h.
40987         (main): Call set_program_name.
40988
40989         * modules/argp-tests (Depends-on): Add progname.
40990         * tests/test-argp.c: Include argp.h first. Include progname.h.
40991         (main): Call set_program_name.
40992
40993 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
40994
40995         * doc/gnulib-tool.texi (Initial import): Reword description of
40996         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
40997         limited effect even if defined after the first system include.
40998
40999 2007-03-01  Bruno Haible  <bruno@clisp.org>
41000
41001         * build-aux/config.libpath: Update to libtool-1.5.22.
41002         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41003
41004 2007-03-01  Bruno Haible  <bruno@clisp.org>
41005
41006         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
41007         foo_CFLAGS.
41008         Reported by Ralf Wildenhues.
41009
41010 2007-03-01  Bruno Haible  <bruno@clisp.org>
41011
41012         * build-aux/install-reloc: Remove object files left over by some
41013         compilers.
41014         Reported by Ralf Wildenhues.
41015
41016 2007-03-01  Bruno Haible  <bruno@clisp.org>
41017
41018         * build-aux/install-reloc: Break long lines.
41019
41020 2007-03-01  Bruno Haible  <bruno@clisp.org>
41021
41022         * doc/relocatable.texi: Document that it may not work on OpenBSD.
41023         Reported by Ralf Wildenhues.
41024
41025 2007-03-01  Bruno Haible  <bruno@clisp.org>
41026
41027         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
41028         include ordering constraints.
41029
41030 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41031
41032         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
41033         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
41034         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
41035         as another example.
41036         * lib/time_.h: Fix misspelling.
41037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41038         Require gl_HEADER_TIME_H_DEFAULTS.
41039         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
41040         * m4/time_r.m4 (gl_TIME_R): Likewise.
41041         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
41042
41043 2007-03-01  Bruno Haible  <bruno@clisp.org>
41044
41045         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
41046         * m4/utimens.m4 (gl_UTIMENS): Likewise.
41047
41048 2007-03-01  Jim Meyering  <jim@meyering.net>
41049
41050         * modules/xreadlink (Maintainer): Add my name.
41051         * modules/xreadlink-with-size (Depends-on): Alphabetize.
41052
41053 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
41054             Bruno Haible  <bruno@clisp.org>
41055
41056         * build-aux/install-reloc: Compile also c-ctype.c.
41057         * build-aux/relocatable.sh.in: New file.
41058         * doc/relocatable.texi: New file.
41059         * doc/relocatable-maint.texi: New file.
41060         * doc/gnulib.texi: Include relocatable-maint.texi.
41061         * lib/progreloc.c: Include unistd.h unconditionally.
41062         * lib/relocwrapper.c: Include unistd.h unconditionally.
41063         Include c-ctype.h.
41064         (add_dotbin): Use c_tolower.
41065         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
41066         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
41067         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
41068         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
41069         to m4/relocatable-lib.m4.
41070         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
41071         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
41072         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
41073         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
41074         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
41075         * modules/relocatable: New file.
41076         * modules/relocatable-lib: New file.
41077         * modules/relocatable-script: New file.
41078
41079 2007-02-28  Bruno Haible  <bruno@clisp.org>
41080
41081         Import --enable-relocatable infrastructure.
41082         * build-aux/config.libpath: New file, from GNU gettext.
41083         * build-aux/install-reloc: New file, from GNU gettext.
41084         * build-aux/reloc-ldflags: New file, from GNU gettext.
41085         * lib/relocatable.h: New file, from GNU gettext.
41086         * lib/relocatable.c: New file, from GNU gettext.
41087         * lib/relocwrapper.c: New file, from GNU gettext.
41088         * m4/relocatable.m4: New file, from GNU gettext.
41089
41090 2007-02-28  Bruno Haible  <bruno@clisp.org>
41091
41092         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
41093
41094         * modules/xreadlink: New file, from GNU gettext with modifications.
41095         * lib/xreadlink.c: New file, from GNU gettext.
41096         * lib/xreadlink.h: Add comments.
41097         (xreadlink): New declaration.
41098
41099         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
41100         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
41101         lib/xreadlink-with-size.c.
41102         (configure.ac): Remove gl_XREADLINK invocation.
41103         (Makefile.am): Augment lib_SOURCES.
41104         * m4/xreadlink.m4: Remove file.
41105         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
41106         (xreadlink_with_size): Renamed from xreadink.
41107         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
41108         * modules/canonicalize (Depends-on): Replace xreadlink with
41109         xreadlink-with-size.
41110         * lib/canonicalize.c (canonicalize_filename_mode): Update.
41111
41112 2007-02-25  Jim Meyering  <jim@meyering.net>
41113
41114         * build-aux/announce-gen: When complaining about excess arguments,
41115         list them.
41116
41117 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41118
41119         * README: Document signed integer overflow situation more
41120         accurately.
41121
41122 2007-02-25  Bruno Haible  <bruno@clisp.org>
41123
41124         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
41125         'a' or 'A' conversion.
41126
41127 2007-02-25  Bruno Haible  <bruno@clisp.org>
41128
41129         * modules/filename: Renamed from modules/pathname.
41130         (Files): Replace lib/pathname.h with lib/filename.h. Replace
41131         lib/concatpath.c with lib/concat-filename.c.
41132         (Makefile.am): Update.
41133         (Include): Replace pathname.h with filename.h.
41134         * lib/filename.h: Renamed from lib/pathname.h.
41135         (concatenated_filename): Renamed from concatenated_pathname.
41136         * lib/concat-filename.c: Renamed from lib/concatpath.c.
41137         (concatenated_filename): Renamed from concatenated_pathname.
41138         * lib/findprog.c: Include filename.h instead of pathname.h.
41139         (find_in_path): Update.
41140         * lib/javacomp.c: Include filename.h instead of pathname.h.
41141         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41142         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41143         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41144         is_oldgcj_14_13_usable, is_javac_usable): Update.
41145         * lib/javaexec.c: Include filename.h instead of pathname.h.
41146         (execute_java_class): Update.
41147         * modules/findprog: Update.
41148         * modules/javacomp: Update.
41149         * modules/javaexec: Update.
41150         * MODULES.html.sh (File system functions): Add 'filename', remove
41151         'pathname'.
41152
41153 2007-02-25  Bruno Haible  <bruno@clisp.org>
41154
41155         * modules/printf-frexpl-tests: New file.
41156         * tests/test-printf-frexpl.c: New file.
41157
41158         * modules/printf-frexpl: New file.
41159         * lib/printf-frexpl.h: New file.
41160         * lib/printf-frexpl.c: New file.
41161         * m4/printf-frexpl.m4: New file.
41162
41163 2007-02-25  Bruno Haible  <bruno@clisp.org>
41164
41165         * modules/printf-frexp-tests: New file.
41166         * tests/test-printf-frexp.c: New file.
41167
41168         * modules/printf-frexp: New file.
41169         * lib/printf-frexp.h: New file.
41170         * lib/printf-frexp.c: New file.
41171         * m4/printf-frexp.m4: New file.
41172
41173 2007-02-25  Bruno Haible  <bruno@clisp.org>
41174
41175         Assume automake >= 1.10 for the tests.
41176         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
41177         * modules/arctwo-tests: Likewise.
41178         * modules/argp-tests: Likewise.
41179         * modules/avltree-list-tests: Likewise.
41180         * modules/avltree-oset-tests: Likewise.
41181         * modules/avltreehash-list-tests: Likewise.
41182         * modules/carray-list-tests: Likewise.
41183         * modules/crc-tests: Likewise.
41184         * modules/des-tests: Likewise.
41185         * modules/gc-arcfour-tests: Likewise.
41186         * modules/gc-arctwo-tests: Likewise.
41187         * modules/gc-des-tests: Likewise.
41188         * modules/gc-hmac-md5-tests: Likewise.
41189         * modules/gc-hmac-sha1-tests: Likewise.
41190         * modules/gc-md2-tests: Likewise.
41191         * modules/gc-md4-tests: Likewise.
41192         * modules/gc-md5-tests: Likewise.
41193         * modules/gc-pbkdf2-sha1-tests: Likewise.
41194         * modules/gc-rijndael-tests: Likewise.
41195         * modules/gc-sha1-tests: Likewise.
41196         * modules/gc-tests: Likewise.
41197         * modules/getaddrinfo-tests: Likewise.
41198         * modules/hmac-md5-tests: Likewise.
41199         * modules/hmac-sha1-tests: Likewise.
41200         * modules/linked-list-tests: Likewise.
41201         * modules/linkedhash-list-tests: Likewise.
41202         * modules/lock-tests: Likewise.
41203         * modules/md2-tests: Likewise.
41204         * modules/md4-tests: Likewise.
41205         * modules/md5-tests: Likewise.
41206         * modules/rbtree-list-tests: Likewise.
41207         * modules/rbtree-oset-tests: Likewise.
41208         * modules/rbtreehash-list-tests: Likewise.
41209         * modules/read-file-tests: Likewise.
41210         * modules/rijndael-tests: Likewise.
41211         * modules/stdint-tests: Likewise.
41212         * modules/tls-tests: Likewise.
41213
41214 2007-02-24  Bruno Haible  <bruno@clisp.org>
41215
41216         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
41217         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
41218         function; instead check whether isnan with a double argument links.
41219         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
41220         function; instead check whether isnan with a 'long double' argument
41221         links.
41222         Reported by Eric Blake <ebb9@byu.net>.
41223
41224 2007-02-24  Bruno Haible  <bruno@clisp.org>
41225
41226         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
41227         defined.
41228         * lib/isnanl.c: Remove all code. Just include isnan.c.
41229         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
41230
41231 2007-02-25  Jim Meyering  <jim@meyering.net>
41232
41233         Avoid conflicting types for 'unsetenv' on FreeBSD.
41234         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
41235         conflicting with FreeBSD's (5.0 and 6.1) function declaration
41236         in stdlib.h.
41237
41238 2007-02-24  Bruno Haible  <bruno@clisp.org>
41239
41240         * modules/isnanl-nolibm-tests: New file.
41241         * tests/test-isnanl.c: New file.
41242
41243         * modules/isnanl-nolibm: New file.
41244         * lib/isnanl.h: New file.
41245         * lib/isnanl.c: New file.
41246         * m4/isnanl.m4: New file.
41247
41248 2007-02-24  Bruno Haible  <bruno@clisp.org>
41249
41250         * modules/isnan-nolibm-tests: New file.
41251         * tests/test-isnan.c: New file.
41252
41253         * modules/isnan-nolibm: New file.
41254         * lib/isnan.h: New file.
41255         * lib/isnan.c: New file.
41256         * m4/isnan.m4: New file.
41257
41258 2007-02-24  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
41261         assume that an exponent fits in 20 bits.
41262
41263 2007-02-24  Jim Meyering  <jim@meyering.net>
41264
41265         * m4/regex.m4: Update the description of the configure-time option,
41266         --without-included-regex, to state accurately what the defaults are,
41267         and perhaps to give people an idea why using this option is risky.
41268
41269 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41270
41271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
41272         loops on small arguments.  This attempts to avoid the problem
41273         Bruno Haible reported for AIX 4.3.2 in
41274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
41275
41276 2007-02-23  Bruno Haible  <bruno@clisp.org>
41277
41278         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
41279         Needed for help2man.
41280
41281 2007-02-23  Karl Berry  <karl@gnu.org>
41282
41283         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
41284         exists, foo.h should be cvs-ignored, not committed.
41285
41286 2007-02-23  Eric Blake  <ebb9@byu.net>
41287
41288         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
41289         * lib/stat-time.h (includes): Likewise.
41290         * lib/utimecmp.c (includes): Likewise.
41291         * lib/utimens.h (includes): Likewise.
41292         * lib/getdate.y (includes): Also include "timespec.h" for use
41293         internal to the module.
41294         * modules/utimens (Depends-on): Revert yesterday's patch.
41295         * modules/nanosleep (Depends-on): Add missing dependency.
41296
41297 2007-02-22  Bruno Haible  <bruno@clisp.org>
41298
41299         * lib/glob.c: Don't include getlogin_r.h.
41300
41301 2007-02-22  Jim Meyering  <jim@meyering.net>
41302
41303         * modules/utimens (Depends-on): Add timespec, required for
41304         utimens.h's inclusion of timespec.h.
41305
41306 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
41307
41308         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
41309         long unreadable paths in GNU/Linux.  Problem reported by Andreas
41310         Schwab in
41311         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
41312         I'll try to think of a better way to fix the Solaris problem.
41313
41314         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
41315         like glibc; on Solaris 10, it fails with errno == EINVAL.
41316         POSIX says the behavior is unspecified if the first argument is NULL,
41317         so play it safe and never pass NULL to the system getcwd.
41318
41319 2007-02-21  Jim Meyering  <jim@meyering.net>
41320
41321         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
41322         of gettimeofday.  It would conflict with the one now always
41323         provided via sys_time_.h.  Reported by Matthew Woehlke, as
41324         an IRIX 6.5 build failure.
41325
41326 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41327
41328         Minor fixups to port to Solaris 10 with Sun C 5.8.
41329         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
41330         * modules/getcwd (Depends-on): Add dirfd.
41331         * lib/putenv.c (putenv): #undef it.
41332         (rpl_putenv): New decl.
41333         (malloc, free): Include <stdlib.h> rather than prototyping separately.
41334
41335 2007-02-20  Bruno Haible  <bruno@clisp.org>
41336
41337         * modules/stdio-tests: New file.
41338         * tests/test-stdio.c: New file.
41339
41340         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
41341         (Depends-on): Add stdio.
41342         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41343         (Include): Use <stdio.h> instead of vsnprintf.h.
41344         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41345         HAVE_DECL_VSNPRINTF.
41346         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
41347
41348         * modules/snprintf (Files): Remove lib/snprintf.h.
41349         (Depends-on): Add stdio.
41350         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41351         (Include): Use <stdio.h> instead of snprintf.h.
41352         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41353         HAVE_DECL_SNPRINTF.
41354         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
41355         * lib/getaddrinfo.c: Likewise.
41356
41357         * modules/stdio: New file.
41358         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
41359         * lib/snprintf.h: Remove file.
41360         * lib/vsnprintf.h: Remove file.
41361         * lib/.cppi-disable: Remove snprintf.h.
41362         * m4/stdio_h.m4: New file.
41363         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
41364
41365 2007-02-20  Jim Meyering  <jim@meyering.net>
41366
41367         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
41368         used by e.g., mingw.  From Bruno Haible.
41369
41370 2007-02-19  Bruno Haible  <bruno@clisp.org>
41371
41372         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
41373         warnings.
41374         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41375
41376 2007-02-19  Bruno Haible  <bruno@clisp.org>
41377
41378         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
41379         from mingw users.
41380
41381 2007-02-19  Bruno Haible  <bruno@clisp.org>
41382
41383         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
41384         warnings.
41385         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
41386
41387 2007-02-19  Jim Meyering  <jim@meyering.net>
41388
41389         Don't use FD after a successful "fdopendir (fd)".
41390         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
41391         Reset it by calling dirfd on the just-obtained DIR*.
41392
41393         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
41394         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
41395
41396 2007-02-18  Bruno Haible  <bruno@clisp.org>
41397
41398         * lib/readlink.c: Include <unistd.h>.
41399         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
41400         HAVE_READLINK.
41401         * modules/readlink (Depends-on): Add unistd.
41402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41403         (Include): Add <unistd.h>.
41404
41405         * lib/getlogin_r.h: Remove file.
41406         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
41407         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
41408         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
41409         HAVE_DECL_GETLOGIN_R.
41410         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
41411         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41412         (Include): Use <unistd.h> instead of getlogin_r.h.
41413
41414         * lib/getcwd.h: Remove file.
41415         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
41416         * lib/xgetcwd.c: Likewise.
41417         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
41418         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
41419         * modules/getcwd (Files): Remove lib/getcwd.h.
41420         (Depends-on): Add unistd.
41421         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41422         (Include): Use <unistd.h> instad of getcwd.h.
41423
41424         * lib/ftruncate.c: Include <unistd.h> first.
41425         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
41426         Set HAVE_FTRUNCATE.
41427         * modules/ftruncate (Depends-on): Add unistd.
41428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41429
41430         * lib/fchdir.c: Include <unistd.h> first.
41431         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
41432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
41433         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
41434         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41435         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
41436
41437         * lib/dup2.c: Include <unistd.h> first.
41438         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
41439         HAVE_DUP2.
41440         * modules/dup2 (Depends-on): Add unistd.
41441         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41442
41443         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
41444         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
41445         REPLACE_CHOWN. Don't define chown as a macro here.
41446         * modules/chown (Depends-on): Add unistd.
41447         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41448
41449         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
41450         Add definition for GL_LINK_WARNING.
41451         (chown, dup2): New declarations.
41452         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
41453         link warning.
41454         (ftruncate): New declaration.
41455         (getcwd): New declaration, taken from old getcwd.h.
41456         (getlogin_r): New declaration, taken from old getlogin_r.h.
41457         (readlink): New declaration.
41458         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
41459         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
41460         (gl_PREREQ_UNISTD): Remove macro.
41461         (gl_UNISTD_MODULE_INDICATOR): New macro.
41462         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
41463         many new variables. Don't set UNISTD_H.
41464         * modules/unistd (Description): Change.
41465         (Depends-on): Add link-warning.
41466         (configure.ac): Update.
41467         (Makefile.am): Create unistd.h always. Substitute many new variables
41468         into it.
41469
41470 2007-02-18  Bruno Haible  <bruno@clisp.org>
41471
41472         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
41473         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
41474         HAVE_GETSUBOPT.
41475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
41476         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
41477         * lib/getsubopt.h: Remove file.
41478         * modules/getsubopt (Files): Remove lib/getsubopt.h.
41479         (Depends-on): Add stdlib.
41480         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41481         (Includes): Use <stdlib.h> instead of getsubopt.h.
41482         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
41483         Set HAVE_GETSUBOPT.
41484         * lib/getsubopt.c: Don't include getsubopt.h.
41485
41486 2007-02-18  Bruno Haible  <bruno@clisp.org>
41487
41488         * modules/fchdir (Depends-on): Add dup2.
41489
41490 2007-02-18  Bruno Haible  <bruno@clisp.org>
41491
41492         * lib/stdlib_.h: Handle glibc's special invocation convention
41493         specially.
41494
41495 2007-02-18  Bruno Haible  <bruno@clisp.org>
41496
41497         * modules/stdlib-tests: New file.
41498         * tests/test-stdlib.c: New file.
41499
41500         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41501         (Depends-on): Add stdlib.
41502         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41503         (Includes): Use <stdlib.h> instead of mkstemp.h.
41504         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41505         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41506         * lib/mkstemp.c: Don't include mkstemp.h.
41507         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41508         * lib/stdlib--.h: Don't include mkstemp.h.
41509
41510         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41511         (Depends-on): Add stdlib.
41512         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41513         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41514         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41515         HAVE_MKDTEMP.
41516         * lib/mkdtemp.c: Don't include mkdtemp.h.
41517         * lib/clean-temp.c: Don't include mkdtemp.h.
41518
41519         * modules/exit (Files): Remove lib/exit.h.
41520         (Depends-on): Add stdlib.
41521         (Makefile.am): Remove lib_SOURCES.
41522         (Include): Use <stdlib.h> instead of exit.h.
41523         * lib/argmatch.c: Don't include exit.h.
41524         * lib/execute.c: Likewise.
41525         * lib/pagealign_alloc.c: Likewise.
41526         * lib/pipe.c: Likewise.
41527         * lib/wait-process.c: Likewise.
41528         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41529         * lib/exitfail.c: Likewise.
41530         * lib/savewd.c: Likewise.
41531         * lib/xsetenv.c: Likewise.
41532
41533         * modules/stdlib: New file.
41534         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41535         and extra comments about mkstemp().
41536         * lib/exit.h: Remove file.
41537         * lib/mkdtemp.h: Remove file.
41538         * lib/mkstemp.h: Remove file.
41539         * m4/stdlib_h.m4: New file.
41540         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41541
41542 2007-02-18  Bruno Haible  <bruno@clisp.org>
41543
41544         * modules/math-tests: New file.
41545         * tests/test-math.c: New file.
41546
41547         * modules/math: New file.
41548         * modules/mathl (Files): Remove lib/mathl.h.
41549         (Depends-on): Add math.
41550         (Makefile.am): Don't mention mathl.h.
41551         (Include): Use <math.h> instead of mathl.h.
41552         * lib/math_.h: New file.
41553         * lib/mathl.h: Remove file.
41554         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41555         mathl.h.
41556         * lib/asinl.c: Likewise.
41557         * lib/atanl.c: Likewise.
41558         * lib/ceill.c: Likewise.
41559         * lib/cosl.c: Likewise.
41560         * lib/expl.c: Likewise.
41561         * lib/floorl.c: Likewise.
41562         * lib/frexpl.c: Likewise.
41563         * lib/ldexpl.c: Likewise.
41564         * lib/logl.c: Likewise.
41565         * lib/sincosl.c: Likewise.
41566         * lib/sinl.c: Likewise.
41567         * lib/sqrtl.c: Likewise.
41568         * lib/tanl.c: Likewise.
41569         * lib/trigl.c: Likewise.
41570         * m4/math_h.m4: New file.
41571         * MODULES.html.sh (Mathematics): Add math.
41572
41573 2007-02-17  Bruno Haible  <bruno@clisp.org>
41574
41575         * modules/wctype-tests: New file.
41576         * tests/test-wctype.c: New file.
41577
41578         * modules/wchar-tests: New file.
41579         * tests/test-wchar.c: New file.
41580
41581         * modules/unistd-tests: New file.
41582         * tests/test-unistd.c: New file.
41583
41584         * modules/time-tests: New file.
41585         * tests/test-time.c: New file.
41586
41587         * modules/sysexits-tests: New file.
41588         * tests/test-sysexits.c: New file.
41589
41590         * modules/sys_time-tests: New file.
41591         * tests/test-sys_time.c: New file.
41592
41593         * modules/sys_stat-tests: New file.
41594         * tests/test-sys_stat.c: New file.
41595
41596         * modules/sys_socket-tests: New file.
41597         * tests/test-sys_socket.c: New file.
41598
41599         * modules/sys_select-tests: New file.
41600         * tests/test-sys_select.c: New file.
41601
41602         * modules/string-tests: New file.
41603         * tests/test-string.c: New file.
41604
41605         * modules/stdbool-tests: New file.
41606         * tests/test-stdbool.c: New file.
41607
41608         * modules/netinet_in-tests: New file.
41609         * tests/test-netinet_in.c: New file.
41610
41611         * modules/inttypes-tests: New file.
41612         * tests/test-inttypes.c: New file.
41613
41614         * modules/fcntl-tests: New file.
41615         * tests/test-fcntl.c: New file.
41616
41617         * modules/byteswap-tests: New file.
41618         * tests/test-byteswap.c: New file.
41619
41620         * modules/arpa_inet-tests: New file.
41621         * tests/test-arpa_inet.c: New file.
41622
41623 2007-02-17  Bruno Haible  <bruno@clisp.org>
41624
41625         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41626         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41627         if the corresponding module is not enabled. Emit link warnings if
41628         the function is used nevertheless.
41629         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41630         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41631         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41632         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41633         * modules/inttypes (Depends-on): Add link-warning.
41634         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41635         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41636         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41637         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41638         * modules/imaxdiv (configure.ac): Likewise.
41639         * modules/strtoimax (configure.ac): Likewise.
41640         * modules/strtoumax (configure.ac): Likewise.
41641
41642 2007-02-17  Bruno Haible  <bruno@clisp.org>
41643
41644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41645         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41646         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41647         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41648
41649 2007-02-17  Bruno Haible  <bruno@clisp.org>
41650
41651         * modules/link-warning: New file.
41652         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41653         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41654         * modules/string (Depends-on): Add link-warning.
41655         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41656         string.h.
41657         * MODULES.html.sh (Support for building libraries and executables): Add
41658         link-warning.
41659
41660 2007-02-17  Bruno Haible  <bruno@clisp.org>
41661
41662         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41663         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41664         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41665         long lines.
41666
41667 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41668             Bruno Haible  <bruno@clisp.org>
41669
41670         * modules/tmpfile: New file.
41671         * lib/tmpfile.c: New file.
41672         * m4/tmpfile.m4: New file.
41673         * MODULES.html.sh (func_all_modules): New section "Input/output".
41674
41675 2007-02-15  Bruno Haible  <bruno@clisp.org>
41676
41677         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
41678         (supports_delete_on_close): New function.
41679         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
41680
41681 2007-02-14  Bruno Haible  <bruno@clisp.org>
41682
41683         * modules/mbspcasecmp-tests: New file.
41684         * tests/test-mbspcasecmp.sh: New file.
41685         * tests/test-mbspcasecmp.c: New file.
41686
41687         New module mbspcasecmp.
41688         * modules/mbspcasecmp: New file.
41689         * lib/mbspcasecmp.c: New file.
41690         * lib/string_.h (strncasecmp): Change warning message.
41691         (mbspcasecmp): New declaration.
41692         * m4/mbspcasecmp.m4: New file.
41693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41694         GNULIB_MBSPCASECMP.
41695         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
41696         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
41697
41698 2007-02-14  Bruno Haible  <bruno@clisp.org>
41699
41700         * modules/mbsncasecmp-tests: New file.
41701         * tests/test-mbsncasecmp.sh: New file.
41702         * tests/test-mbsncasecmp.c: New file.
41703
41704         New module mbsncasecmp.
41705         * modules/mbsncasecmp: New file.
41706         * lib/mbsncasecmp.c: New file.
41707         * lib/string_.h (mbsncasecmp): New declaration.
41708         * m4/mbsncasecmp.m4: New file.
41709         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41710         GNULIB_MBSNCASECMP.
41711         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
41712         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
41713
41714 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41715
41716         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
41717         Verify that it doesn't overlap with our flags.
41718         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
41719         do not have the desired effect in multibyte locales; instead, use
41720         mbscasecmp.
41721         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
41722         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
41723         we don't require GNU fnmatch ourselves (if our users require it, they
41724         should do so explicitly).
41725
41726         Fix regex code so it doesn't rely on strcasecmp.
41727         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
41728         Otherwise, include gnulib's langinfo.h.
41729         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
41730         undesirable behavior in non-C locales.  Instead, rely on localecharset.
41731         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
41732         * modules/regex (FILES): Remove m4/codeset.m4.
41733         (Depends-on): Add localcharset.  Remove strcase.
41734
41735 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41736
41737         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
41738         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41739
41740 2007-02-13  Bruno Haible  <bruno@clisp.org>
41741
41742         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
41743         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41744
41745 2007-02-12  Bruno Haible  <bruno@clisp.org>
41746
41747         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41748         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
41749         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
41750         time warning rather than a link error.
41751
41752 2007-02-12  Bruno Haible  <bruno@clisp.org>
41753
41754         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
41755         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41756         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41757
41758 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41759
41760         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
41761         args, not 2.
41762
41763 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41764
41765         New module 'time', so that apps can include <time.h> as per
41766         POSIX and GNU instead of separate include files like time_r.h
41767         and timegm.h.  This implementation tries out a simpler approach
41768         for replacing decls in standard include files (as compared to
41769         the string module), somewhat as an experiment.
41770
41771         * config/srclist.txt: Comment out mktime.c for now.
41772         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
41773         since it doesn't apply any more.  Use generic wording instead.
41774         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
41775         'time'.
41776         * lib/time_.h, m4/time_h.m4, modules/time: New files.
41777         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
41778         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
41779         Don't include <sys/types.h>; no longer needed since we assume C89.
41780         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
41781         * lib/strftime.c: Likewise.
41782         * lib/time_r.c: Likewise.
41783         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
41784         * lib/nanosleep.c: Include <time.h> first, to check interface.
41785         * lib/strptime.c: Likewise.
41786         * lib/time_r.c: Likewise.
41787         * lib/timegm.c: Likewise.
41788         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
41789         needed.
41790         * lib/timegm.c: Don't include timegm.h; no longer needed.
41791         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
41792         time.h now handles any problems in that area.
41793         (struct timespec, nanosleep): Remove; time.h now arranges for these.
41794         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
41795         that time.h defines struct timespec.
41796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
41797         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
41798         handles that.
41799         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
41800         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
41801         needed.  Set REPLACE_LOCALTIME.
41802         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
41803         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
41804         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
41805         nanosleep; time_h.m4 now does that.  Don't require
41806         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
41807         module handles this now.
41808         * modules/getdate (Depends-on): Remove timespec.  Add time.
41809         * modules/nanosleep (Depends-on): Likewise.
41810         * modules/stat-time (Depends-on): Likewise.
41811         * modules/nanosleep (Include): Include time.h, not timespec.h.
41812         * modules/strptime (Files): Remove lib/strptime.h.
41813         (Depends-on): Add extensions, time.
41814         (Include): Include time.h, not strptime.h.
41815         * modules/time_r (Files): Remove lib/time_r.h.
41816         (Depends-on): Add time.
41817         (Include): Include time.h, not time_r.h.
41818         * modules/timegm: Likewise.
41819         * modules/timespec (Description): Now does timespec-related decls
41820         of our own, instead of struct timespec itself.
41821         (Depends-on): Add time; remove extensions.
41822         (Maintainer): Add self.
41823         * modules/utimecmp (Depends-on): Add time; remove timespec.
41824         * modules/utimens (Depends-on): Likewise.
41825         * modules/xnanosleep (Depends-on): Likewise.
41826
41827 2007-02-11  Bruno Haible  <bruno@clisp.org>
41828
41829         * lib/c-strstr.c: Include allocsa.h.
41830         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41831         * lib/c-strcasestr.c: Include allocsa.h.
41832         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41833         * lib/strcasestr.c: Include allocsa.h.
41834         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41835         * lib/mbsstr.c: Include allocsa.h.
41836         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41837         allocsa/freesa instead of malloc/free.
41838         * lib/mbscasestr.c: Include allocsa.h.
41839         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41840         allocsa/freesa instead of malloc/free.
41841         * modules/c-strstr (Depends-on): Add allocsa.
41842         * modules/c-strcasestr (Depends-on): Likewise.
41843         * modules/strcasestr (Depends-on): Likewise.
41844         * modules/mbsstr (Depends-on): Likewise.
41845         * modules/mbscasestr (Depends-on): Likewise.
41846
41847 2007-02-11  Bruno Haible  <bruno@clisp.org>
41848
41849         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
41850
41851         * modules/mbsspn-tests: New file.
41852         * tests/test-mbsspn.sh: New file.
41853         * tests/test-mbsspn.c: New file.
41854
41855 2007-02-11  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
41858
41859         * modules/mbspbrk-tests: New file.
41860         * tests/test-mbspbrk.sh: New file.
41861         * tests/test-mbspbrk.c: New file.
41862
41863 2007-02-11  Bruno Haible  <bruno@clisp.org>
41864
41865         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
41866         unneeded cast.
41867
41868         * modules/mbscspn-tests: New file.
41869         * tests/test-mbscspn.sh: New file.
41870         * tests/test-mbscspn.c: New file.
41871
41872 2007-02-11  Bruno Haible  <bruno@clisp.org>
41873
41874         * modules/mbscasecmp-tests: New file.
41875         * tests/test-mbscasecmp.sh: New file.
41876         * tests/test-mbscasecmp.c: New file.
41877
41878 2007-02-11  Bruno Haible  <bruno@clisp.org>
41879
41880         Ensure O(n) worst-case complexity of mbscasestr.
41881         * lib/mbscasestr.c: Include stdbool.h.
41882         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41883         functions.
41884         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
41885         the bookkeeping indicates that it's worth it.
41886         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
41887
41888         * modules/mbscasestr-tests: New file.
41889         * tests/test-mbscasestr1.c: New file.
41890         * tests/test-mbscasestr2.sh: New file.
41891         * tests/test-mbscasestr2.c: New file.
41892         * tests/test-mbscasestr3.sh: New file.
41893         * tests/test-mbscasestr3.c: New file.
41894         * tests/test-mbscasestr4.sh: New file.
41895         * tests/test-mbscasestr4.c: New file.
41896         * m4/locale-tr.m4: New file.
41897
41898 2007-02-11  Bruno Haible  <bruno@clisp.org>
41899
41900         Ensure O(n) worst-case complexity of mbsstr.
41901         * lib/mbsstr.c: Include stdbool.h.
41902         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41903         functions.
41904         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
41905         bookkeeping indicates that it's worth it.
41906         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
41907
41908         * modules/mbsstr-tests: New file.
41909         * tests/test-mbsstr1.c: New file.
41910         * tests/test-mbsstr2.sh: New file.
41911         * tests/test-mbsstr2.c: New file.
41912         * tests/test-mbsstr3.sh: New file.
41913         * tests/test-mbsstr3.c: New file.
41914         * m4/locale-fr.m4: New file.
41915
41916 2007-02-11  Bruno Haible  <bruno@clisp.org>
41917
41918         * lib/mbsrchr.c (mbsrchr): Fix bug.
41919
41920         * modules/mbsrchr-tests: New file.
41921         * tests/test-mbsrchr.sh: New file.
41922         * tests/test-mbsrchr.c: New file.
41923
41924 2007-02-11  Bruno Haible  <bruno@clisp.org>
41925
41926         * lib/mbschr.c (mbschr): Fix bug.
41927
41928         * modules/mbschr-tests: New file.
41929         * tests/test-mbschr.sh: New file.
41930         * tests/test-mbschr.c: New file.
41931         * m4/locale-zh.m4: New file.
41932
41933 2007-02-11  Bruno Haible  <bruno@clisp.org>
41934
41935         Support for copying multibyte string iterators.
41936         * lib/mbiter.h: Include <string.h>.
41937         (mbiter_multi_copy): New function.
41938         (mbi_copy): New macro.
41939         * lib/mbuiter.h: Include <string.h>.
41940         (mbuiter_multi_copy): New function.
41941         (mbui_copy): New macro.
41942
41943 2007-02-11  Bruno Haible  <bruno@clisp.org>
41944
41945         New module mbslen.
41946         * modules/mbslen: New file.
41947         * lib/mbslen.c: New file.
41948         * lib/string_.h (mbslen): New declaration.
41949         * m4/mbslen.m4: New file.
41950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41951         GNULIB_MBSLEN.
41952         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
41953         * MODULES.html.sh (Internationalization functions): Add mbslen.
41954
41955 2007-02-11  Bruno Haible  <bruno@clisp.org>
41956
41957         Ensure O(n) worst-case complexity of strcasestr substitute.
41958         * lib/strcasestr.c: Include stdbool.h.
41959         (knuth_morris_pratt): New function.
41960         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41961         bookkeeping indicates that it's worth it.
41962         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
41963
41964         * modules/strcasestr-tests: New file.
41965         * tests/test-strcasestr.c: New file.
41966
41967 2007-02-11  Bruno Haible  <bruno@clisp.org>
41968
41969         Ensure O(n) worst-case complexity of c_strcasestr.
41970         * lib/c-strcasestr.c: Include stdbool.h, string.h.
41971         (knuth_morris_pratt): New function.
41972         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
41973         the bookkeeping indicates that it's worth it.
41974         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
41975
41976         * modules/c-strcasestr-tests: New file.
41977         * tests/test-c-strcasestr.c: New file.
41978
41979 2007-02-11  Bruno Haible  <bruno@clisp.org>
41980
41981         Ensure O(n) worst-case complexity of c_strstr.
41982         * lib/c-strstr.c: Include stdbool.h, string.h.
41983         (knuth_morris_pratt): New function.
41984         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41985         bookkeeping indicates that it's worth it.
41986         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
41987
41988         * lib/c-strstr.c: Complete rewrite for maintainability.
41989
41990         * modules/c-strstr-tests: New file.
41991         * tests/test-c-strstr.c: New file.
41992
41993 2007-02-11  Bruno Haible  <bruno@clisp.org>
41994
41995         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
41996         5.2.1 and earlier, whereby \055 was treated just like the range
41997         delimiter '-'.
41998         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41999
42000 2007-02-08  Bruno Haible  <bruno@clisp.org>
42001
42002         * modules/regex (Depends-on): Add stdbool.
42003         Reported by Dalibor Topic <robilad@kaffe.org>.
42004
42005 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
42006
42007         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
42008         Prefer returning from main to exiting from it.
42009         Remove unnecessary parens after sizeof.
42010
42011 2007-02-05  Bruno Haible  <bruno@clisp.org>
42012
42013         New module mbssep.
42014         * modules/mbssep: New file.
42015         * lib/mbssep.c: New file.
42016         * lib/string_.h (strsep): Add a conditional link warning.
42017         (mbssep): New declaration.
42018         * m4/mbssep.m4: New file.
42019         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42020         GNULIB_MBSSEP.
42021         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
42022         * MODULES.html.sh (Internationalization functions): Add mbssep.
42023
42024 2007-02-05  Bruno Haible  <bruno@clisp.org>
42025
42026         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
42027         Optimize search in case of 1 delimiter.
42028
42029 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42030
42031         * lib/acl.h: Include sys/types.h before sys/acl.h.
42032
42033 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42034
42035         Merge upstream fix for glibc bugzilla #3957:
42036
42037         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
42038
42039         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
42040         bit for RE_HAT_LISTS_NOT_NEWLINE.
42041         (build_charclass_op): Remove bogus comment.
42042
42043 2007-02-05  Simon Josefsson  <simon@josefsson.org>
42044
42045         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
42046
42047 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42048
42049         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
42050         * lib/memmem.c [!defined _LIBC]: Include config.h.
42051
42052 2007-02-04  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
42055         warning message.
42056
42057 2007-02-04  Bruno Haible  <bruno@clisp.org>
42058
42059         New module mbstok_r.
42060         * modules/mbstok_r: New file.
42061         * lib/mbstok_r.c: New file.
42062         * lib/string_.h (strtok_r): Change argument names to match the
42063         comments. Add a conditional link warning.
42064         (mbstok_r): New declaration.
42065         * m4/mbstok_r.m4: New file.
42066         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42067         GNULIB_MBSTOK_R.
42068         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
42069         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
42070
42071 2007-02-04  Bruno Haible  <bruno@clisp.org>
42072
42073         New module mbsspn.
42074         * modules/mbsspn: New file.
42075         * lib/mbsspn.c: New file.
42076         * lib/string_.h (strspn): Add a conditional link warning.
42077         (mbsspn): New declaration.
42078         * m4/mbsspn.m4: New file.
42079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42080         GNULIB_MBSSPN.
42081         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
42082         * MODULES.html.sh (Internationalization functions): Add mbsspn.
42083
42084 2007-02-04  Bruno Haible  <bruno@clisp.org>
42085
42086         New module mbspbrk.
42087         * modules/mbspbrk: New file.
42088         * lib/mbspbrk.c: New file.
42089         * lib/string_.h (strpbrk): Add a conditional link warning.
42090         (mbspbrk): New declaration.
42091         * m4/mbspbrk.m4: New file.
42092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42093         GNULIB_MBSPBRK.
42094         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
42095         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
42096
42097 2007-02-04  Bruno Haible  <bruno@clisp.org>
42098
42099         New module mbscspn.
42100         * modules/mbscspn: New file.
42101         * lib/mbscspn.c: New file.
42102         * lib/string_.h (strcspn): Add a conditional link warning.
42103         (mbscspn): New declaration.
42104         * m4/mbscspn.m4: New file.
42105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42106         GNULIB_MBSCSPN.
42107         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
42108         * MODULES.html.sh (Internationalization functions): Add mbscspn.
42109
42110 2007-02-04  Bruno Haible  <bruno@clisp.org>
42111
42112         New module mbscasestr, reduced goal of strcasestr.
42113         * modules/mbscasestr: New file.
42114         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
42115         (mbscasestr): Renamed from strcasestr.
42116         * lib/strcasestr.c: Don't include mbuiter.h.
42117         (strcasestr): Remove support for multibyte locales.
42118         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
42119         Change the conditional link warning.
42120         (mbscasestr): New declaration.
42121         * m4/mbscasestr.m4: New file.
42122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
42123         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
42124         REPLACE_STRCASESTR.
42125         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
42126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42127         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42128         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
42129         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
42130         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42131         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
42132         (Depends-on): Remove mbuiter.
42133         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
42134
42135 2007-02-04  Bruno Haible  <bruno@clisp.org>
42136
42137         Simplify handling of strncasecmp.
42138         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
42139         the conditional link warning.
42140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42141         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
42142         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
42143         * modules/strcase (configure.ac): Don't invoke
42144         gl_STRING_MODULE_INDICATOR.
42145         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
42146
42147 2007-02-04  Bruno Haible  <bruno@clisp.org>
42148
42149         New module mbscasecmp, reduced goal of strcasecmp.
42150         * modules/mbscasecmp: New file.
42151         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
42152         (mbscasecmp): Renamed from strcasecmp.
42153         * lib/strcasecmp.c: Don't include mbuiter.h.
42154         (strcasecmp): Remove support for multibyte locales.
42155         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
42156         Change the conditional link warning.
42157         (mbscasecmp): New declaration.
42158         * m4/mbscasecmp.m4: New file.
42159         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
42160         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
42161         REPLACE_STRCASECMP.
42162         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
42163         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42164         GNULIB_MBSCASECMP.
42165         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
42166         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
42167         * modules/strcase (Files): Remove m4/mbrtowc.m4.
42168         (Depends-on): Remove mbuiter.
42169         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
42170
42171 2007-02-04  Bruno Haible  <bruno@clisp.org>
42172
42173         New module mbsstr. Remove module strstr.
42174         * modules/mbsstr: New file.
42175         * modules/strstr: Remove file.
42176         * lib/mbsstr.c: Renamed from lib/strstr.c.
42177         (mbsstr): Renamed from strstr.
42178         * lib/string_.h (strstr): Remove declaration. Change the conditional
42179         link warning.
42180         (mbsstr): New declaration.
42181         * m4/mbsstr.m4: New file.
42182         * m4/strstr.m4: Remove file.
42183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
42184         REPLACE_STRSTR.
42185         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
42186         Don't initialize GNULIB_STRSTR.
42187         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
42188         substitute GNULIB_STRSTR and REPLACE_STRSTR.
42189         * MODULES.html.sh (Internationalization functions): Add mbsstr.
42190         (Support for systems lacking ANSI C 89): Remove strstr.
42191
42192 2007-02-04  Bruno Haible  <bruno@clisp.org>
42193
42194         New module mbsrchr.
42195         * modules/mbsrchr: New file.
42196         * lib/mbsrchr.c: New file.
42197         * lib/string_.h (strrchr): Add a conditional link warning.
42198         (mbsrchr): New declaration.
42199         * m4/mbsrchr.m4: New file.
42200         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42201         GNULIB_MBSRCHR.
42202         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
42203         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
42204
42205 2007-02-04  Bruno Haible  <bruno@clisp.org>
42206
42207         New module mbschr.
42208         * modules/mbschr: New file.
42209         * lib/mbschr.c: New file.
42210         * lib/string_.h (strchr): Add a conditional link warning.
42211         (mbschr): New declaration.
42212         * m4/mbschr.m4: New file.
42213         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42214         GNULIB_MBSCHR.
42215         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
42216         * MODULES.html.sh (Internationalization functions): Add mbschr.
42217
42218 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42219
42220         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
42221
42222         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
42223
42224 2007-02-04  Bruno Haible  <bruno@clisp.org>
42225
42226         New module description section 'configure.ac-early'.
42227         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
42228         (func_get_autoconf_early_snippet): New function.
42229         (func_import, func_create_testdir): Use it. Remove special cases for
42230         modules 'extensions' and 'lock'.
42231         * modules/extensions (configure.ac-early): Require
42232         gl_USE_SYSTEM_EXTENSIONS.
42233         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
42234
42235 2007-02-04  Bruno Haible  <bruno@clisp.org>
42236
42237         Make use of gcj-4.3's -fsource and -ftarget option.
42238         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
42239         and if so try the options -fsource and -ftarget.
42240         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
42241         source_version, ftarget_option, target_version arguments.
42242         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
42243         (is_envjavac_oldgcj_14_14_usable): Renamed from
42244         is_envjavac_gcj_14_14_usable.
42245         (is_envjavac_oldgcj_14_13_usable): Renamed from
42246         is_envjavac_gcj_14_13_usable.
42247         (is_gcj_present): Update.
42248         (is_gcj_43, is_gcj43_usable): New functions.
42249         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
42250         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
42251         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
42252         try the options -fsource and -ftarget.
42253
42254 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42255
42256         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
42257         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
42258         larger value.
42259
42260 2007-02-03  Jim Meyering  <jim@meyering.net>
42261
42262         Give tools a better chance to allocate space for very large buffers.
42263         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
42264
42265         Make pwd and readlink work also when run with an unreadable parent dir
42266         on systems with openat support.
42267         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
42268         provided getcwd function, even when we have openat support.
42269         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
42270
42271 2007-02-02  Bruno Haible  <bruno@clisp.org>
42272
42273         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42274         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
42275         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
42276         portability problems if one of these functions is only used on specific
42277         platforms.
42278         Reported by Paul Eggert.
42279
42280 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
42281
42282         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
42283         is causing more trouble than it's curing.
42284         * lib/regex_internal.h (__mempcpy): Remove.
42285         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
42286         (and make the code a tad smaller to boot).
42287         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
42288
42289 2007-02-02  Jim Meyering  <jim@meyering.net>
42290
42291         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
42292         section, not in the Makefile.am: one.
42293
42294 2007-02-02  Eric Blake  <ebb9@byu.net>
42295
42296         * lib/strchrnul.c: Always include config.h first.
42297
42298         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
42299         gnulib strstr is not necessary here.
42300
42301 2007-02-02  Simon Josefsson  <simon@josefsson.org>
42302
42303         * m4/socklen.m4: Fix typo.
42304
42305 2007-02-02  Eric Blake  <ebb9@byu.net>
42306
42307         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
42308         * modules/netinet_in (Makefile.am): Likewise.
42309
42310 2007-02-01  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/string_.h (GL_LINK_WARNING): New macro.
42313         (strcasecmp, strstr, strcasestr): If provided by the system,
42314         conditionally define as a macro that leads to a warning instead of to
42315         an error.
42316         (strncasecmp): Conditionally define as a macro that leads to a warning.
42317
42318 2007-02-01  Karl Berry  <karl@gnu.org>
42319
42320         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
42321
42322 2007-02-01  Bruno Haible  <bruno@clisp.org>
42323
42324         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
42325         renamings.
42326
42327 2007-02-01  Eric Blake  <ebb9@byu.net>
42328
42329         * modules/regex (Depends-on): Revert dependence on mempcpy.
42330         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
42331         module's definition of mempcpy.
42332         Reported by Paul Eggert.
42333
42334 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42335
42336         * lib/string_.h: If the gnulib module XYZ is not present, undefine
42337         the symbol XYZ before redefining it.  This fixes a problem with
42338         programs that don't use XYZ, when compiled on systems that define
42339         XYZ to something else.
42340
42341 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
42342
42343         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
42344         occurs when "mkdir -m foo" creates a setgid directory that is (1)
42345         writeable to group or other and (2) is intended to have a special
42346         mode bit that is set or cleared.  In such a case, the directory
42347         should be neither group- nor other-writeable until the special
42348         mode bits are right.
42349
42350 2007-01-31  Eric Blake  <ebb9@byu.net>
42351
42352         * modules/mountlist (Depends-on): Add strstr.
42353
42354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
42355         bug.
42356         * modules/string (Makefile.am): Remove redundant replacement.
42357         * modules/regex (Depends-on): Add mempcpy.
42358
42359 2007-01-31  Bruno Haible  <bruno@clisp.org>
42360
42361         New module description field 'Link'.
42362         * gnulib-tool (func_usage): Document --extract-link-directive.
42363         (sed_extract_prog): Recognize 'Link' directive.
42364         (func_get_link_directive): New function.
42365         (func_import): Show summary of link directives.
42366         Handle --extract-link-directive option.
42367         * modules/acl (Link): New section.
42368         * modules/clock-time (Link): New section.
42369         * modules/euidaccess (Link): New section.
42370         * modules/gettext (Link): New section.
42371         * modules/iconv (Link): New section.
42372         * modules/lock (Link): New section.
42373         * modules/nanosleep (Link): New section.
42374         * modules/readline (Link): New section.
42375
42376 2007-01-27  Bruno Haible  <bruno@clisp.org>
42377
42378         Enforce the use of gnulib modules for unportable <string.h> functions.
42379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
42380         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
42381         (gl_HEADER_STRING_H_BODY): Require it.
42382         * lib/string_.h: If the gnulib module XYZ is not present, redefine
42383         the symbol XYZ to one that gives a link error.
42384         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
42385         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
42386         * modules/mempcpy (configure.ac): Likewise.
42387         * modules/memrchr (configure.ac): Likewise.
42388         * modules/stpcpy (configure.ac): Likewise.
42389         * modules/stpncpy (configure.ac): Likewise.
42390         * modules/strcase (configure.ac): Likewise.
42391         * modules/strcasestr (configure.ac): Likewise.
42392         * modules/strchrnul (configure.ac): Likewise.
42393         * modules/strdup (configure.ac): Likewise.
42394         * modules/strndup (configure.ac): Likewise.
42395         * modules/strnlen (configure.ac): Likewise.
42396         * modules/strpbrk (configure.ac): Likewise.
42397         * modules/strsep (configure.ac): Likewise.
42398         * modules/strstr (configure.ac): Likewise.
42399         * modules/strtok_r (configure.ac): Likewise.
42400
42401 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
42402
42403         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
42404
42405 2007-01-30  Jim Meyering  <jim@meyering.net>
42406
42407         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
42408
42409 2007-01-29  Bruno Haible  <bruno@clisp.org>
42410
42411         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
42412         * lib/execute.c: Likewise.
42413         * lib/pipe.c: Likewise.
42414         * lib/printf-args.h: Likewise.
42415         * lib/printf-args.c: Likewise.
42416         * lib/printf-parse.c: Likewise.
42417         * lib/vasnprintf.c: Likewise.
42418
42419 2007-01-29  Eric Blake  <ebb9@byu.net>
42420
42421         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
42422         declaration.
42423
42424 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42425
42426         * lib/strptime.h (strptime): Use 'restrict' for args where
42427         POSIX requires this.
42428         * lib/strptime.c (strptime): Likewise.
42429         Change license notice from LGPL to GPL, since gnulib-tool will
42430         change this as needed.
42431         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
42432         defined.
42433         Include "strptime.h" first, to check interface.
42434         Do not #undef _LIBC and _NL_CURRENT.
42435         Do not include <stdlib.h>; no longer needed.
42436         Include "time_r.h" and declare ptime_locale_status
42437         only if _LIBC is not defined.
42438         (__P): Remove unused macro.
42439         (match_string): Bring back glibc version, but use it only if _LIBC
42440         is defined.
42441         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
42442         Remove unnecessary assertion and abort() call.
42443         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
42444         * m4/strptime.m4: Fix serial number comment.
42445         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
42446         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
42447         (Depends-on): Add time_r.
42448
42449 2007-01-29  Bruno Haible  <bruno@clisp.org>
42450
42451         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42452         strptime.
42453         * modules/strptime (Depends-on): Add stdbool.
42454         * lib/strptime.h: Include <time.h> always. Add comments.
42455
42456 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42457
42458         * modules/strptime: New file.
42459         * lib/strptime.h: New file.
42460         * lib/strptime.c: New file.
42461         * m4/strptime.m4: New file.
42462
42463 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42464
42465         * MODULES.html.sh: New module mpsort.
42466         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
42467
42468         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
42469         a circularity problem with HP-UX ia64 reported by Bob Proulx in
42470         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
42471         All uses changed.
42472         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
42473         All uses changed.
42474         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
42475         to _Restrict_.
42476         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
42477         the parameter matches the prototype.
42478
42479 2007-01-28  Jim Meyering  <jim@meyering.net>
42480
42481         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
42482         sys/time.h here, reverting that part of the previous patch:
42483         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
42484
42485 2007-01-28  Bruno Haible  <bruno@clisp.org>
42486
42487         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
42488         value of $(SYS_TIME_H).
42489         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42490         remove it conditionally, too. [added by Jim Meyering]
42491         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42492         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42493         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42494         GETTIMEOFDAY_REPLACEMENT to 1.
42495
42496 2007-01-28  Bruno Haible  <bruno@clisp.org>
42497
42498         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42499         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42500         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42501         Set UNISTD_H instead of UNISTD_H2.
42502         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42503
42504 2007-01-28  Bruno Haible  <bruno@clisp.org>
42505
42506         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42507         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42508
42509 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42510
42511         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42512         (func_create_testdir): Ensure C locale for `grep' and `tr'
42513         character ranges.
42514         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42515         ACLOCAL_AMFLAGS parsing state machine.
42516
42517 2007-01-27  Bruno Haible  <bruno@clisp.org>
42518
42519         * modules/unistr/base: Update.
42520
42521 2007-01-27  Bruno Haible  <bruno@clisp.org>
42522
42523         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42524         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42525         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42526         modules/unistr/u32-mbtouc.
42527         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42528         * lib/unistr.h: Update.
42529         * lib/linebreak.c: Update.
42530         * modules/unistr/u32-mbtouc: Renamed from
42531         modules/unistr/u32-mbtouc-safe.
42532         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42533         * lib/unistr.h: Update.
42534         * lib/unistr/u32-to-u8.c: Update.
42535         * lib/unistr/u32-to-u16.c: Update.
42536
42537 2007-01-27  Bruno Haible  <bruno@clisp.org>
42538
42539         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42540         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42541         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42542         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42543         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42544         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42545         modules/unistr/u16-mbtouc.
42546         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42547         * lib/unistr.h: Update.
42548         * lib/linebreak.c: Update.
42549         * modules/linebreak: Update.
42550         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42551         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42552         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42553         * modules/unistr/u16-mbtouc: Renamed from
42554         modules/unistr/u16-mbtouc-safe.
42555         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42556         * lib/unistr.h: Update.
42557         * lib/unistr/u16-to-u8.c: Update.
42558         * modules/unistr/u16-to-u8: Update.
42559         * lib/unistr/u16-to-u32.c: Update.
42560         * modules/unistr/u16-to-u32: Update.
42561
42562 2007-01-27  Bruno Haible  <bruno@clisp.org>
42563
42564         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42565         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42566         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42567         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42568         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42569         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42570         modules/unistr/u8-mbtouc.
42571         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42572         * lib/unistr.h: Update.
42573         * lib/striconveh.c: Update.
42574         * modules/striconveh: Update.
42575         * lib/linebreak.c: Update.
42576         * modules/linebreak: Update.
42577         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42578         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42579         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42580         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42581         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42582         * lib/unistr.h: Update.
42583         * lib/striconveh.c: Update.
42584         * modules/striconveh: Update.
42585         * lib/unistr/u8-to-u16.c: Update.
42586         * modules/unistr/u8-to-u16: Update.
42587         * lib/unistr/u8-to-u32.c: Update.
42588         * modules/unistr/u8-to-u32: Update.
42589
42590 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42591
42592         Sync from Libtool.
42593         * lib/argz.c: Do not include strings.h nor memory.h, include
42594         string.h unconditionally.  Patch by Simon Josefsson.
42595
42596 2007-01-27  Bruno Haible  <bruno@clisp.org>
42597
42598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42599         from gl_HEADER_STRING_H_BODY.
42600         (gl_HEADER_STRING_H_BODY): Require it.
42601         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42602         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42603         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42604         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42605         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42606         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42607         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42608         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42609         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42610         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42611         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42612         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42613         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42614         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42615         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42616
42617 2007-01-27  Bruno Haible  <bruno@clisp.org>
42618
42619         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42620         check_PROGRAMS into noinst_PROGRAMS.
42621         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42622         check_PROGRAMS in this case.
42623         (func_import): Set for_test to false.
42624         (func_create_testdir): Set for_test to true.
42625
42626 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42627             Bruno Haible  <bruno@clisp.org>
42628
42629         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42630         (Depends-on): Add string.
42631         (Includes): Use <string.h> instead of strcasestr.h.
42632         * modules/string (Makefile.am): Also substitute the value of
42633         REPLACE_STRCASESTR.
42634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42635         assume strcasestr is declared in <string.h> not <strings.h>. Also
42636         set REPLACE_STRCASESTR.
42637         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42638         REPLACE_STRCASESTR.
42639         * lib/strcasestr.h: Remove file.
42640         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42641         * lib/string_.h (strcasestr): New declaration.
42642
42643 2007-01-27  Bruno Haible  <bruno@clisp.org>
42644
42645         * lib/string_.h: Use 'extern'.
42646
42647 2007-01-27  Jim Meyering  <jim@meyering.net>
42648
42649         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42650         of set-but-not-used local, "q".
42651
42652         * lib/mempcpy.c: Include <config.h> before <string.h>.
42653         This fixes a compilation error on HP-UX, due to the system's
42654         "restrict"-using mempcpy prototype.
42655
42656 2007-01-26  Bruno Haible  <bruno@clisp.org>
42657
42658         Small optimization.
42659         * lib/javacomp.c: Include c-strstr.h.
42660          (is_envjavac_gcj): Use c_strstr instead of strstr.
42661         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42662
42663 2007-01-26  Bruno Haible  <bruno@clisp.org>
42664
42665         * MODULES.html.sh (Unicode string functions): Add the new modules.
42666
42667         * modules/uniconv/u32-strconv-to-locale: New file.
42668         * lib/uniconv/u32-strconv-to-locale.c: New file.
42669
42670         * modules/uniconv/u16-strconv-to-locale: New file.
42671         * lib/uniconv/u16-strconv-to-locale.c: New file.
42672
42673         * modules/uniconv/u8-strconv-to-locale: New file.
42674         * lib/uniconv/u8-strconv-to-locale.c: New file.
42675
42676         * modules/uniconv/u32-strconv-from-locale: New file.
42677         * lib/uniconv/u32-strconv-from-locale.c: New file.
42678
42679         * modules/uniconv/u16-strconv-from-locale: New file.
42680         * lib/uniconv/u16-strconv-from-locale.c: New file.
42681
42682         * modules/uniconv/u8-strconv-from-locale: New file.
42683         * lib/uniconv/u8-strconv-from-locale.c: New file.
42684
42685         * modules/uniconv/u32-strconv-to-enc: New file.
42686         * lib/uniconv/u32-strconv-to-enc.c: New file.
42687         * modules/uniconv/u32-strconv-to-enc-tests: New file.
42688         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
42689
42690         * modules/uniconv/u16-strconv-to-enc: New file.
42691         * lib/uniconv/u16-strconv-to-enc.c: New file.
42692         * lib/uniconv/u-strconv-to-enc.h: New file.
42693         * modules/uniconv/u16-strconv-to-enc-tests: New file.
42694         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
42695
42696         * modules/uniconv/u8-strconv-to-enc: New file.
42697         * lib/uniconv/u8-strconv-to-enc.c: New file.
42698         * modules/uniconv/u8-strconv-to-enc-tests: New file.
42699         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
42700
42701         * modules/uniconv/u32-strconv-from-enc: New file.
42702         * lib/uniconv/u32-strconv-from-enc.c: New file.
42703         * modules/uniconv/u32-strconv-from-enc-tests: New file.
42704         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
42705
42706         * modules/uniconv/u16-strconv-from-enc: New file.
42707         * lib/uniconv/u16-strconv-from-enc.c: New file.
42708         * modules/uniconv/u16-strconv-from-enc-tests: New file.
42709         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
42710
42711         * modules/uniconv/u8-strconv-from-enc: New file.
42712         * lib/uniconv/u8-strconv-from-enc.c: New file.
42713         * lib/uniconv/u-strconv-from-enc.h: New file.
42714         * modules/uniconv/u8-strconv-from-enc-tests: New file.
42715         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
42716
42717         * modules/uniconv/u32-conv-from-enc: New file.
42718         * lib/uniconv/u32-conv-from-enc.c: New file.
42719         * modules/uniconv/u32-conv-from-enc-tests: New file.
42720         * tests/uniconv/test-u32-conv-from-enc.c: New file.
42721
42722         * modules/uniconv/u16-conv-from-enc: New file.
42723         * lib/uniconv/u16-conv-from-enc.c: New file.
42724         * lib/uniconv/u-conv-from-enc.h: New file.
42725         * modules/uniconv/u16-conv-from-enc-tests: New file.
42726         * tests/uniconv/test-u16-conv-from-enc.c: New file.
42727
42728         * modules/uniconv/u8-conv-from-enc: New file.
42729         * lib/uniconv/u8-conv-from-enc.c: New file.
42730         * modules/uniconv/u8-conv-from-enc-tests: New file.
42731         * tests/uniconv/test-u8-conv-from-enc.c: New file.
42732
42733         * modules/uniconv/base: New file.
42734         * lib/uniconv.h: New file.
42735
42736 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
42737
42738         * doc/gnulib-tool.texi (Initial import): Update to match current
42739         behavior with strdup module.
42740         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
42741         * lib/memmem.h: Remove; all uses removed.  This is now done
42742         by <string.h>.
42743         * lib/mempcpy.h: Likewise.
42744         * lib/memrchr.h: Likewise.
42745         * lib/stpcpy.h: Likewise.
42746         * lib/stpncpy.h: Likewise.
42747         * lib/strcase.h: Likewise.
42748         * lib/strchrnul.h: Likewise.
42749         * lib/strdup.h: Likewise.
42750         * lib/strndup.h: Likewise.
42751         * lib/strnlen.h: Likewise.
42752         * lib/strpbrk.h: Likewise.
42753         * lib/strsep.h: Likewise.
42754         * lib/strstr.h: Likewise.
42755         * lib/strtok_r.h: Likewise.
42756         * lib/string_.h: New file.
42757         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
42758         Rely on <string.h> instead.
42759         * lib/canon-host.c: Likewise.
42760         * lib/chdir-long.c: Likewise.
42761         * lib/concatpath.c: Likewise.
42762         * lib/exclude.c: Likewise.
42763         * lib/fchdir.c: Likewise.
42764         * lib/getaddrinfo.c: Likewise.
42765         * lib/getcwd.c: Likewise.
42766         * lib/getsubopt.c: Likewise.
42767         * lib/glob.c: Likewise.
42768         * lib/hard-locale.c: Likewise.
42769         * lib/iconvme.c: Likewise.
42770         * lib/javacomp.c: Likewise.
42771         * lib/mempcpy.c: Likewise.
42772         * lib/memrchr.c: Likewise.
42773         * lib/regex_internal.h: Likewise.
42774         * lib/stpncpy.c: Likewise.
42775         * lib/strcasecmp.c: Likewise.
42776         * lib/strchrnul.c: Likewise.
42777         * lib/strdup.c: Likewise.
42778         * lib/striconv.c: Likewise.
42779         * lib/striconveh.c: Likewise.
42780         * lib/striconveha.c: Likewise.
42781         * lib/strncasecmp.c: Likewise.
42782         * lib/strndup.c: Likewise.
42783         * lib/strnlen.c: Likewise.
42784         * lib/strsep.c: Likewise.
42785         * lib/strstr.c: Likewise.
42786         * lib/strtok_r.c: Likewise.
42787         * lib/userspec.c: Likewise.
42788         * lib/w32spawn.h: Likewise.
42789         * lib/xstrndup.c: Likewise.
42790         * lib/mountlist.c (strstr): Remove decl.
42791         * m4/string_h.m4: New file.
42792         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
42793         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
42794         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
42795         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
42796         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
42797         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
42798         Set REPLACE_STRCASECMP if necessary.
42799         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
42800         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
42801         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
42802         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
42803         HAVE_DECL_STRDUP if necessary.
42804         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
42805         since gl_FUNC_STRNDUP does that now.
42806         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
42807         Check for decl here...
42808         (gl_PREREQ_STRNLEN): ... not here.
42809         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
42810         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
42811         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
42812         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
42813         necessary.
42814         * modules/string: New file.
42815         * modules/memmem (Files): Remove special-purpose include file.
42816         (Depends-on): Add string.
42817         (Include): Include <string.h>, not the removed file.
42818         * modules/mempcpy: Likewise.
42819         * modules/memrchr: Likewise.
42820         * modules/stpcpy: Likewise.
42821         * modules/stpncpy: Likewise.
42822         * modules/strcase: Likewise.
42823         * modules/strchrnul: Likewise.
42824         * modules/strdup: Likewise.
42825         * modules/strndup: Likewise.
42826         * modules/strnlen: Likewise.
42827         * modules/strpbrk: Likewise.
42828         * modules/strsep: Likewise.
42829         * modules/strstr: Likewise.
42830         * modules/strtok_r: Likewise.
42831         * tests/test-dirname.c: Don't include "strdup.h", since
42832         <string.h> now suffices.
42833         * tests/test-memmem.c: Don't include "memmem.h", since
42834         <string.h> now suffices.
42835
42836 2007-01-25  Bruno Haible  <bruno@clisp.org>
42837
42838         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
42839         *resultp is 0.
42840
42841         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
42842         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
42843         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
42844         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
42845
42846         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
42847         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
42848         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
42849         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
42850         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
42851         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
42852
42853 2007-01-24  Bruno Haible  <bruno@clisp.org>
42854
42855         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
42856         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
42857         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
42858         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
42859         gl_FUNC_FTS_CORE.
42860         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
42861         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
42862         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42863         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
42864         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
42865         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
42866         gl_FUNC_FCHOWNAT.
42867         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
42868         gl_FUNC_STRFTIME.
42869         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
42870         Reported by Ralf Wildenhues.
42871
42872 2007-01-24  Bruno Haible  <bruno@clisp.org>
42873
42874         Drop AC_REQUIRE calls that are redundant with the module dependencies.
42875         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
42876         gl_GETADDRINFO.
42877         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
42878         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
42879         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
42880
42881 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
42882
42883         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
42884         Don't use 'exit'; just return from 'main'.
42885         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
42886
42887         * lib/fnmatch_.h: Readjust white space and comments to match
42888         glibc, to avoid spurious diffs.
42889
42890 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42891
42892         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
42893         2004-12-01 change by Jakub Jelinek, since this code won't compile
42894         if !LIBC.  Problem reported by Bob Proulx.
42895
42896 2007-01-23  Bruno Haible  <bruno@clisp.org>
42897
42898         * lib/striconveh.c: Include c-strcaseeq.h.
42899         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
42900         * modules/striconveh (Depends-on): Add c-strcaseeq.
42901
42902 2007-01-23  Bruno Haible  <bruno@clisp.org>
42903
42904         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
42905
42906         * modules/c-strcaseeq: New file.
42907         * lib/c-strcaseeq.h: New file.
42908
42909         * modules/streq: New file.
42910         * lib/streq.h: New file.
42911
42912 2007-01-23  Bruno Haible  <bruno@clisp.org>
42913
42914         * modules/striconveha-tests: New file.
42915         * tests/test-striconveha.c: New file.
42916
42917         * lib/striconveha.h: Include <stdbool.h>.
42918         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
42919         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
42920         (mem_iconveha_notranslit): Renamed from mem_iconveha.
42921         (mem_iconveha): New function.
42922         (str_iconveha_notranslit): Renamed from str_iconveha.
42923         (str_iconveha): New function.
42924         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
42925         c-strcase.
42926
42927 2007-01-23  Bruno Haible  <bruno@clisp.org>
42928
42929         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
42930         encodings without forgiving before trying any encoding with handler.
42931         (str_iconveha): Try all encodings without forgiving before trying any
42932         encoding with handler.
42933
42934 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42935
42936         Import the following changes from libc.
42937
42938         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
42939
42940         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
42941
42942         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42943
42944         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
42945         normal_bracket label.
42946
42947         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
42948
42949         [BZ #361]
42950         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
42951         to normal_bracket after fetching the next character.
42952
42953 2007-01-22  Bruno Haible  <bruno@clisp.org>
42954
42955         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
42956         argument.
42957         * lib/striconveh.c (iconv_carefully_1): New function.
42958         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
42959         argument.
42960         (str_cd_iconveh): Update.
42961         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
42962         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
42963         * tests/test-striconveh.c (MAGIC): New macro.
42964         (new_offsets): New function.
42965         (main): Test call with and without offsets.
42966
42967 2007-01-22  Bruno Haible  <bruno@clisp.org>
42968
42969         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
42970         * modules/sys_select (Makefile.am): Likewise.
42971         * modules/sys_socket (Makefile.am): Likewise.
42972         * modules/sys_time (Makefile.am): Likewise.
42973
42974 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
42975
42976         * modules/gettimeofday (License): Change from GPL to LGPL, since
42977         gettimeofday is a library function.
42978
42979 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42980
42981         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
42982
42983 2007-01-21  Bruno Haible  <bruno@clisp.org>
42984
42985         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
42986
42987 2007-01-21  Bruno Haible  <bruno@clisp.org>
42988
42989         * modules/striconveha: New file.
42990         * lib/striconveha.h: New file.
42991         * lib/striconveha.c: New file.
42992         * MODULES.html.sh (Internationalization functions): Add striconveha.
42993         * lib/striconv.c (str_iconv): Optimize the case of an empty input
42994         string.
42995         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
42996
42997 2007-01-21  Bruno Haible  <bruno@clisp.org>
42998
42999         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
43000         * lib/striconveh.c (str_iconveh): Likewise.
43001
43002 2007-01-21  Bruno Haible  <bruno@clisp.org>
43003
43004         * lib/striconveh.h (mem_iconveh): New declaration.
43005         * lib/striconveh.c (mem_iconveh): New function.
43006         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
43007
43008 2007-01-21  Bruno Haible  <bruno@clisp.org>
43009
43010         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
43011
43012         * lib/striconveh.h (mem_cd_iconveh): Change specification.
43013         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
43014         original result buffer.
43015         (str_cd_iconveh): Update.
43016         * tests/test-striconveh.c (main): Update.
43017
43018         * lib/striconv.h (mem_cd_iconv): Change specification.
43019         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
43020         result buffer.
43021         (str_cd_iconv): Update.
43022         * tests/test-striconv.c (main): Update.
43023
43024 2007-01-21  Bruno Haible  <bruno@clisp.org>
43025
43026         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
43027
43028 2007-01-20  Jim Meyering  <jim@meyering.net>
43029
43030         * lib/userspec.c (parse_with_separator): If a user or group string
43031         starts with "+", skip the corresponding name-to-ID look-up, since
43032         such a look-up must fail: user and group names may not include "+".
43033
43034 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
43035
43036         * lib/poll.c: Include sys/time.h and time.h unconditionally,
43037         since we now assume the sys_time module.
43038         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
43039         check for sys/time.h; no longer needed.
43040         * modules/poll (Depends-on): Depend on sys_time.
43041
43042 2007-01-18  Bruno Haible  <bruno@clisp.org>
43043
43044         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
43045         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43046
43047         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
43048         gettimeofday.
43049
43050         * tests/test-gettimeofday.c: Include <time.h>.
43051         (dummy): Remove variable.
43052
43053         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
43054         gl_HEADER_SYS_TIME_H.
43055         (gl_HEADER_SYS_TIME_H): New macro.
43056
43057         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
43058         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43059         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
43060         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
43061         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43062         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
43063         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
43064         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43065         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
43066         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
43067         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43068
43069         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
43070         last change; it caused a compilation error when cross-compiling to
43071         Cygwin.
43072
43073 2007-01-18  Jim Meyering  <jim@meyering.net>
43074
43075         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
43076         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
43077         than the race-prone "test -d sys || mkdir sys".
43078         (configure.ac): Use AC_PROG_MKDIR_P.
43079         * modules/sys_select: Likewise.
43080         * modules/sys_socket: Likewise.
43081         * modules/sys_time: Likewise.
43082
43083 2007-01-18  Eric Blake  <ebb9@byu.net>
43084
43085         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
43086         replace gettimeofday.
43087         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
43088         name, to avoid infinite recursion.
43089
43090 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
43091
43092         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
43093         module sys_time.
43094         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
43095         assume timespec.h defines struct timeval.
43096         * lib/settime.c: Likewise.
43097         * lib/utimens.c: Likewise.
43098         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
43099         since we now assume the gettimeofday module.
43100         * lib/tempname.c (__gen_tempname): Likewise.
43101         * lib/gettimeofday.h: Remove.
43102         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
43103         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
43104         Include <time.h>, for 'time()'.
43105         (localtime_buffer_addr): Also use this workaround if
43106         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
43107         to simplify the uses.  All uses changed.
43108         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
43109         that #undef is inside {}, and 'const' follows type name consistently.
43110         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
43111         (gettimeofday): Do not use the maximum possible value for
43112         tv->tv_usec, since that might break usages other than ls.c.
43113         Instead, we'll leave ls.c alone.  This undoes today's patch
43114         by Bruno.  Add a compile-time warning for 1s-clock resolution;
43115         we've never observed the problem but might as well keep the
43116         canary.
43117         * lib/nanosleep.c: Include timespec.h first, for interface check.
43118         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
43119         now assume the sys_time module.
43120         * lib/tempname.c: Likewise.
43121         * lib/timespec.h: Likewise.
43122         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
43123         needed.
43124         * lib/strftime.c: Likewise.
43125         * lib/timespec.h: Likewise.
43126         * lib/posixtm.c: Include posixtm.h first, for interface check.
43127         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
43128         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
43129         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
43130         * lib/sys_time_.h: New file.
43131         * lib/timespec.h (struct timespec): Use long int, not long.
43132         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43133         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
43134         Remove obsolescent call to AC_HEADER_TIME.
43135         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43137         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43138         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
43139         Likewise.
43140         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
43141         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
43142         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
43143         into the sys_time module.  Check for gettimeofday just once.
43144         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
43145         for gettimeofday signature to just check the signature.  Merely
43146         compile it, since linking doesn't test signature.  Improve test for
43147         whether gettimeofday.o is actually needed.
43148         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
43149         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
43150         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
43151         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43152         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
43153         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
43154         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
43155         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
43156         than worrying about sys/time.h.
43157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43158         Don't bother worrying about TIME_WITH_SYS_TIME.
43159         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43160         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
43161         * m4/sys_time_h.m4: New file.
43162         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
43163         Don't include sys/time.h.  Return from main rather than exiting.
43164         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
43165         all uses changed.
43166         * modules/gethrxtime (Depends-on): Add sys_time.
43167         * modules/gettime (Depends-on): Likewise.
43168         * modules/gettimeofday (Depends-on): Likewise.
43169         * modules/nanosleep (Depends-on): Likewise.
43170         * modules/settime (Depends-on): Likewise.
43171         * modules/tempname (Depends-on): Likewise.
43172         * modules/utimens (Depends-on): Likewise.
43173         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
43174         (Include:) Change back to <sys/time.h>.
43175         (Maintainer:) Add self.
43176         * modules/sys_time: New file.
43177         * modules/tempname (Depends-on): Add gettimeofday.
43178         * tests/test-gettimeofday.c: Include <sys/time.h>
43179         rather than gettimeofday.h.
43180
43181 2007-01-17  Bruno Haible  <bruno@clisp.org>
43182
43183         * gnulib-tool (func_get_license): Revert last patch. Instead, let
43184         the license default to GPL.
43185         (func_create_testdir): Don't complain if a module is LGPL and its
43186         tests module depends on GPLed modules.
43187
43188 2007-01-17  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/gettimeofday.c (gettimeofday): Add code for the case
43191         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
43192         maximum possible value for tv->tv_usec, rather than the minimum one.
43193
43194 2005-10-08  Martin Lambers  <marlam@marlam.de>
43195 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43196 2007-01-16  Bruno Haible  <bruno@clisp.org>
43197
43198         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
43199         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
43200         gl_FUNC_GETTIMEOFDAY.
43201         (Include): Add gettimeofday.h.
43202         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
43203         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
43204         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
43205         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
43206         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
43207         * lib/gettimeofday.h: New file.
43208         * lib/gettimeofday.c: Include <sys/timeb.h>.
43209         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
43210         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43211         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
43212         fall back on time().
43213
43214         * tests/test-gettimeofday.c: New file.
43215         * modules/gettimeofday-tests: New file.
43216
43217 2007-01-16  Eric Blake  <ebb9@byu.net>
43218
43219         * modules/fnmatch (Depends-on): Depend on wchar.
43220         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
43221         * m4/fnmatch.m4: Likewise.
43222         * modules/mbchar (Makefile.am): Assume <wchar.h>.
43223         * m4/mbchar.m4: Likewise.
43224         * modules/mbswidth (Depends-on): Depend on wchar.
43225         * lib/mbswidth.c: Assume <wchar.h>.
43226         * m4/mbswidth.m4: Likewise.
43227         * modules/quotearg (Depends-on): Depend on wchar.
43228         * lib/quotearg.c: Assume <wchar.h>.
43229         * m4/quotearg.m4: Likewise.
43230         * modules/regex (Depends-on): Depend on wchar.
43231         * lib/regex_internal.h: Assume <wchar.h>.
43232         * m4/regex.m4: Likewise.
43233         * modules/stdint (Depends-on): Depend on wchar.
43234         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
43235         * m4/stdint.m4: Likewise.
43236         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
43237         * modules/strftime (Depends-on): Depend on wchar.
43238         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
43239         * modules/strtol (Depends-on): Depend on wchar.
43240         * lib/strtol.c: Assume <wchar.h>.
43241         * modules/wcwidth (Depends-on): Depend on wchar.
43242         * lib/wcwidth.h: Assume <wchar.h>.
43243         * m4/wcwidth.m4: Likewise.
43244
43245 2007-01-16  Bruno Haible  <bruno@clisp.org>
43246
43247         * modules/csharpexec-script: New, created from...
43248         * modules/csharpexec: ... this.
43249
43250 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43251
43252         * modules/javaexec-script: New, created from...
43253         * modules/javaexec: ... this.
43254
43255 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43256
43257         * modules/poll (Dependencies): Add sys_select.
43258
43259 2007-01-15  Jim Meyering  <jim@meyering.net>
43260
43261         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
43262         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
43263         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
43264         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
43265
43266 2007-01-15  Bruno Haible  <bruno@clisp.org>
43267
43268         * modules/striconveh: New file.
43269         * lib/striconveh.h: New file.
43270         * lib/striconveh.c: New file.
43271         * MODULES.html.sh (Internationalization functions): Add striconveh.
43272
43273         * modules/striconveh-tests: New file.
43274         * tests/test-striconveh.c: New file.
43275
43276 2007-01-15  Bruno Haible  <bruno@clisp.org>
43277
43278         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
43279         not from GNU libiconv or GNU libc.
43280
43281 2007-01-15  Bruno Haible  <bruno@clisp.org>
43282
43283         * doc/gnulib-intro.texi (Copyright): Explain the different license
43284         terms for module descriptions, autoconf macros, tests, documentation.
43285
43286 2007-01-14  Bruno Haible  <bruno@clisp.org>
43287
43288         * modules/striconv-tests: New file.
43289         * tests/test-striconv.c: New file.
43290
43291 2007-01-14  Bruno Haible  <bruno@clisp.org>
43292
43293         * modules/iconv-tests: New file.
43294         * tests/test-iconv.c: New file.
43295
43296 2007-01-14  Bruno Haible  <bruno@clisp.org>
43297
43298         * gnulib-tool (func_get_license): For test modules, use the license of
43299         the main module.
43300
43301 2007-01-14  Bruno Haible  <bruno@clisp.org>
43302
43303         * modules/iconv (Include): Clarify that <iconv.h> can only be included
43304         if iconv is found to exist.
43305
43306 2007-01-14  Bruno Haible  <bruno@clisp.org>
43307
43308         * modules/c-ctype-tests: New file.
43309         * tests/test-c-ctype.c: New file.
43310
43311 2007-01-14  Bruno Haible  <bruno@clisp.org>
43312
43313         * modules/binary-io-tests: New file.
43314         * tests/test-binary-io.sh: New file.
43315         * tests/test-binary-io.c: New file.
43316
43317 2007-01-14  Bruno Haible  <bruno@clisp.org>
43318
43319         * modules/array-oset-tests: New file.
43320         * tests/test-array_oset.c: New file.
43321
43322 2007-01-14  Bruno Haible  <bruno@clisp.org>
43323
43324         * modules/array-list-tests: New file.
43325         * tests/test-array_list.c: New file.
43326
43327 2007-01-14  Bruno Haible  <bruno@clisp.org>
43328
43329         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
43330         and make.
43331         Reported by Simon Josefsson in
43332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
43333
43334 2007-01-14  Bruno Haible  <bruno@clisp.org>
43335
43336         * modules/allocsa-tests: New file.
43337         * tests/test-allocsa.c: New file.
43338
43339 2007-01-14  Bruno Haible  <bruno@clisp.org>
43340
43341         * modules/fchdir (Depends-on): Add absolute-header.
43342         * modules/unistd (Depends-on): Likewise.
43343
43344 2006-12-30  Bruno Haible  <bruno@clisp.org>
43345
43346         * modules/fchdir: New file.
43347         * modules/unistd (Files): Add lib/unistd_.h.
43348         (Makefile.am): Generate unistd.h from unistd_.h.
43349         * lib/fchdir.c: New file.
43350         * lib/dirent_.h: New file.
43351         * lib/unistd_.h: New file.
43352         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
43353         * m4/fchdir.m4: New file.
43354         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
43355         (gl_HEADER_UNISTD): Invoke it.
43356         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
43357         function.
43358         * lib/backupfile.c (opendir, closedir): Undefine.
43359         * lib/chown.c (open, close): Undefine.
43360         * lib/clean-temp.c (open, close): Undefine.
43361         * lib/copy-file.c (open, close): Undefine.
43362         * lib/execute.c (open, close): Undefine.
43363         * lib/fsusage.c (open, close): Undefine.
43364         * lib/gc-gnulib.c (open, close): Undefine.
43365         * lib/getcwd.c (opendir, closedir): Undefine.
43366         * lib/glob.c (opendir, closedir): Undefine.
43367         * lib/javacomp.c (open, close): Undefine.
43368         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
43369         * lib/openat-proc.c (open, close): Undefine.
43370         * lib/pagealign_alloc.c (open, close): Undefine.
43371         * lib/pipe.c (open, close): Undefine.
43372         * lib/progreloc.c (open, close): Undefine.
43373         * lib/savedir.c (opendir, closedir): Undefine.
43374         * lib/utime.c (open, close): Undefine.
43375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
43376
43377 2007-01-10  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
43380
43381 2007-01-12  Eric Blake  <ebb9@byu.net>
43382
43383         Provide a robust <wchar.h>.  Further simplifications are now
43384         possible in other modules, but not included here.
43385         * modules/wchar: New module.
43386         * m4/wchar.m4: New file.
43387         * lib/wchar_.h: Likewise.
43388         * modules/mbchar (Depends-on): Depend on wchar, as the first use
43389         of the new module.
43390         * MODULES.html.sh (Extended multibyte and wide character utilities):
43391         New section.
43392
43393 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
43394
43395         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
43396         to a reasonable default for memory allocation.
43397         (xreadlink): Don't allocate a huge buffer, to work around a buggy
43398         file system that reports garbage st_size values for symlinks.
43399         Problem reported by Liyang Hu.
43400
43401 2007-01-11  Simon Josefsson  <simon@josefsson.org>
43402
43403         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
43404         Emacs .#* auto-save files).
43405
43406 2007-01-11  Bruno Haible  <bruno@clisp.org>
43407
43408         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
43409         directory.
43410
43411 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43412
43413         Use @...@ consistently in lib/wctype_.h.
43414         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
43415         on it being set to 1 or 0.
43416         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
43417         go back to AC_SUBSTing it.
43418         * modules/wctype (Makefile.am): Undo previous change.
43419
43420 2007-01-10  Eric Blake  <ebb9@byu.net>
43421
43422         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
43423         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
43424         * modules/wctype (Makefile.am): Likewise.
43425         Reported by Chris McGuire.
43426
43427 2007-01-10  Jim Meyering  <jim@meyering.net>
43428
43429         fts.c: a small readability/maintainability improvement
43430         * lib/fts.c (fts_read): Make this code slightly more readable and
43431         maintainable by hoisting the "sp->fts_cur = p" assignments to
43432         immediately follow the statements that set P.  Derived from
43433         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
43434
43435 2007-01-10  Eric Blake  <ebb9@byu.net>
43436
43437         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
43438         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
43439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43440         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43441         Reported by Chris McGuire.
43442
43443 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43444
43445         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
43446         in sed script.
43447
43448 2007-01-09  Bruno Haible  <bruno@clisp.org>
43449
43450         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
43451         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
43452         variables.
43453         (func_module): Use them.
43454
43455 2007-01-09  Bruno Haible  <bruno@clisp.org>
43456
43457         * modules/unistr/base: New file.
43458         * lib/unistr.h: New file.
43459
43460         * modules/unistr/u8-to-u16: New file.
43461         * lib/unistr/u8-to-u16.c: New file.
43462
43463         * modules/unistr/u8-to-u32: New file.
43464         * lib/unistr/u8-to-u32.c: New file.
43465
43466         * modules/unistr/u16-to-u8: New file.
43467         * lib/unistr/u16-to-u8.c: New file.
43468
43469         * modules/unistr/u16-to-u32: New file.
43470         * lib/unistr/u16-to-u32.c: New file.
43471
43472         * modules/unistr/u32-to-u8: New file.
43473         * lib/unistr/u32-to-u8.c: New file.
43474
43475         * modules/unistr/u32-to-u16: New file.
43476         * lib/unistr/u32-to-u16.c: New file.
43477
43478         * modules/unistr/u8-check: New file.
43479         * modules/unistr/u16-check: New file.
43480         * modules/unistr/u32-check: New file.
43481         * lib/unistr/u8-check.c: New file.
43482         * lib/unistr/u16-check.c: New file.
43483         * lib/unistr/u32-check.c: New file.
43484
43485         * modules/unistr/u8-chr: New file.
43486         * modules/unistr/u16-chr: New file.
43487         * modules/unistr/u32-chr: New file.
43488         * lib/unistr/u8-chr.c: New file.
43489         * lib/unistr/u16-chr.c: New file.
43490         * lib/unistr/u32-chr.c: New file.
43491
43492         * modules/unistr/u8-cmp: New file.
43493         * modules/unistr/u16-cmp: New file.
43494         * modules/unistr/u32-cmp: New file.
43495         * lib/unistr/u8-cmp.c: New file.
43496         * lib/unistr/u16-cmp.c: New file.
43497         * lib/unistr/u32-cmp.c: New file.
43498
43499         * modules/unistr/u8-cpy: New file.
43500         * modules/unistr/u16-cpy: New file.
43501         * modules/unistr/u32-cpy: New file.
43502         * lib/unistr/u8-cpy.c: New file.
43503         * lib/unistr/u16-cpy.c: New file.
43504         * lib/unistr/u32-cpy.c: New file.
43505         * lib/unistr/u-cpy.h: New file.
43506
43507         * modules/unistr/u8-cpy-alloc: New file.
43508         * modules/unistr/u16-cpy-alloc: New file.
43509         * modules/unistr/u32-cpy-alloc: New file.
43510         * lib/unistr/u8-cpy-alloc.c: New file.
43511         * lib/unistr/u16-cpy-alloc.c: New file.
43512         * lib/unistr/u32-cpy-alloc.c: New file.
43513         * lib/unistr/u-cpy-alloc.h: New file.
43514
43515         * modules/unistr/u8-endswith: New file.
43516         * modules/unistr/u16-endswith: New file.
43517         * modules/unistr/u32-endswith: New file.
43518         * lib/unistr/u8-endswith.c: New file.
43519         * lib/unistr/u16-endswith.c: New file.
43520         * lib/unistr/u32-endswith.c: New file.
43521         * lib/unistr/u-endswith.h: New file.
43522
43523         * modules/unistr/u8-mblen: New file.
43524         * modules/unistr/u16-mblen: New file.
43525         * modules/unistr/u32-mblen: New file.
43526         * lib/unistr/u8-mblen.c: New file.
43527         * lib/unistr/u16-mblen.c: New file.
43528         * lib/unistr/u32-mblen.c: New file.
43529
43530         * modules/unistr/u8-mbtouc: New file.
43531         * modules/unistr/u16-mbtouc: New file.
43532         * modules/unistr/u32-mbtouc: New file.
43533         * lib/unistr/u8-mbtouc.c: New file.
43534         * lib/unistr/u16-mbtouc.c: New file.
43535         * lib/unistr/u32-mbtouc.c: New file.
43536
43537         * modules/unistr/u8-mbtouc-safe: New file.
43538         * modules/unistr/u16-mbtouc-safe: New file.
43539         * modules/unistr/u32-mbtouc-safe: New file.
43540         * lib/unistr/u8-mbtouc-safe.c: New file.
43541         * lib/unistr/u16-mbtouc-safe.c: New file.
43542         * lib/unistr/u32-mbtouc-safe.c: New file.
43543
43544         * modules/unistr/u8-move: New file.
43545         * modules/unistr/u16-move: New file.
43546         * modules/unistr/u32-move: New file.
43547         * lib/unistr/u8-move.c: New file.
43548         * lib/unistr/u16-move.c: New file.
43549         * lib/unistr/u32-move.c: New file.
43550         * lib/unistr/u-move.h: New file.
43551
43552         * modules/unistr/u8-next: New file.
43553         * modules/unistr/u16-next: New file.
43554         * modules/unistr/u32-next: New file.
43555         * lib/unistr/u8-next.c: New file.
43556         * lib/unistr/u16-next.c: New file.
43557         * lib/unistr/u32-next.c: New file.
43558
43559         * modules/unistr/u8-prev: New file.
43560         * modules/unistr/u16-prev: New file.
43561         * modules/unistr/u32-prev: New file.
43562         * lib/unistr/u8-prev.c: New file.
43563         * lib/unistr/u16-prev.c: New file.
43564         * lib/unistr/u32-prev.c: New file.
43565
43566         * modules/unistr/u8-set: New file.
43567         * modules/unistr/u16-set: New file.
43568         * modules/unistr/u32-set: New file.
43569         * lib/unistr/u8-set.c: New file.
43570         * lib/unistr/u16-set.c: New file.
43571         * lib/unistr/u32-set.c: New file.
43572         * lib/unistr/u-set.h: New file.
43573
43574         * modules/unistr/u8-startswith: New file.
43575         * modules/unistr/u16-startswith: New file.
43576         * modules/unistr/u32-startswith: New file.
43577         * lib/unistr/u8-startswith.c: New file.
43578         * lib/unistr/u16-startswith.c: New file.
43579         * lib/unistr/u32-startswith.c: New file.
43580         * lib/unistr/u-startswith.h: New file.
43581
43582         * modules/unistr/u8-stpcpy: New file.
43583         * modules/unistr/u16-stpcpy: New file.
43584         * modules/unistr/u32-stpcpy: New file.
43585         * lib/unistr/u8-stpcpy.c: New file.
43586         * lib/unistr/u16-stpcpy.c: New file.
43587         * lib/unistr/u32-stpcpy.c: New file.
43588         * lib/unistr/u-stpcpy.h: New file.
43589
43590         * modules/unistr/u8-stpncpy: New file.
43591         * modules/unistr/u16-stpncpy: New file.
43592         * modules/unistr/u32-stpncpy: New file.
43593         * lib/unistr/u8-stpncpy.c: New file.
43594         * lib/unistr/u16-stpncpy.c: New file.
43595         * lib/unistr/u32-stpncpy.c: New file.
43596         * lib/unistr/u-stpncpy.h: New file.
43597
43598         * modules/unistr/u8-strcat: New file.
43599         * modules/unistr/u16-strcat: New file.
43600         * modules/unistr/u32-strcat: New file.
43601         * lib/unistr/u8-strcat.c: New file.
43602         * lib/unistr/u16-strcat.c: New file.
43603         * lib/unistr/u32-strcat.c: New file.
43604         * lib/unistr/u-strcat.h: New file.
43605
43606         * modules/unistr/u8-strchr: New file.
43607         * modules/unistr/u16-strchr: New file.
43608         * modules/unistr/u32-strchr: New file.
43609         * lib/unistr/u8-strchr.c: New file.
43610         * lib/unistr/u16-strchr.c: New file.
43611         * lib/unistr/u32-strchr.c: New file.
43612
43613         * modules/unistr/u8-strcmp: New file.
43614         * modules/unistr/u16-strcmp: New file.
43615         * modules/unistr/u32-strcmp: New file.
43616         * lib/unistr/u8-strcmp.c: New file.
43617         * lib/unistr/u16-strcmp.c: New file.
43618         * lib/unistr/u32-strcmp.c: New file.
43619
43620         * modules/unistr/u8-strcpy: New file.
43621         * modules/unistr/u16-strcpy: New file.
43622         * modules/unistr/u32-strcpy: New file.
43623         * lib/unistr/u8-strcpy.c: New file.
43624         * lib/unistr/u16-strcpy.c: New file.
43625         * lib/unistr/u32-strcpy.c: New file.
43626         * lib/unistr/u-strcpy.h: New file.
43627
43628         * modules/unistr/u8-strcspn: New file.
43629         * modules/unistr/u16-strcspn: New file.
43630         * modules/unistr/u32-strcspn: New file.
43631         * lib/unistr/u8-strcspn.c: New file.
43632         * lib/unistr/u16-strcspn.c: New file.
43633         * lib/unistr/u32-strcspn.c: New file.
43634         * lib/unistr/u-strcspn.h: New file.
43635
43636         * modules/unistr/u8-strdup: New file.
43637         * modules/unistr/u16-strdup: New file.
43638         * modules/unistr/u32-strdup: New file.
43639         * lib/unistr/u8-strdup.c: New file.
43640         * lib/unistr/u16-strdup.c: New file.
43641         * lib/unistr/u32-strdup.c: New file.
43642         * lib/unistr/u-strdup.h: New file.
43643
43644         * modules/unistr/u8-strlen: New file.
43645         * modules/unistr/u16-strlen: New file.
43646         * modules/unistr/u32-strlen: New file.
43647         * lib/unistr/u8-strlen.c: New file.
43648         * lib/unistr/u16-strlen.c: New file.
43649         * lib/unistr/u32-strlen.c: New file.
43650         * lib/unistr/u-strlen.h: New file.
43651
43652         * modules/unistr/u8-strmblen: New file.
43653         * modules/unistr/u16-strmblen: New file.
43654         * modules/unistr/u32-strmblen: New file.
43655         * lib/unistr/u8-strmblen.c: New file.
43656         * lib/unistr/u16-strmblen.c: New file.
43657         * lib/unistr/u32-strmblen.c: New file.
43658
43659         * modules/unistr/u8-strmbtouc: New file.
43660         * modules/unistr/u16-strmbtouc: New file.
43661         * modules/unistr/u32-strmbtouc: New file.
43662         * lib/unistr/u8-strmbtouc.c: New file.
43663         * lib/unistr/u16-strmbtouc.c: New file.
43664         * lib/unistr/u32-strmbtouc.c: New file.
43665
43666         * modules/unistr/u8-strncat: New file.
43667         * modules/unistr/u16-strncat: New file.
43668         * modules/unistr/u32-strncat: New file.
43669         * lib/unistr/u8-strncat.c: New file.
43670         * lib/unistr/u16-strncat.c: New file.
43671         * lib/unistr/u32-strncat.c: New file.
43672         * lib/unistr/u-strncat.h: New file.
43673
43674         * modules/unistr/u8-strncmp: New file.
43675         * modules/unistr/u16-strncmp: New file.
43676         * modules/unistr/u32-strncmp: New file.
43677         * lib/unistr/u8-strncmp.c: New file.
43678         * lib/unistr/u16-strncmp.c: New file.
43679         * lib/unistr/u32-strncmp.c: New file.
43680
43681         * modules/unistr/u8-strncpy: New file.
43682         * modules/unistr/u16-strncpy: New file.
43683         * modules/unistr/u32-strncpy: New file.
43684         * lib/unistr/u8-strncpy.c: New file.
43685         * lib/unistr/u16-strncpy.c: New file.
43686         * lib/unistr/u32-strncpy.c: New file.
43687         * lib/unistr/u-strncpy.h: New file.
43688
43689         * modules/unistr/u8-strnlen: New file.
43690         * modules/unistr/u16-strnlen: New file.
43691         * modules/unistr/u32-strnlen: New file.
43692         * lib/unistr/u8-strnlen.c: New file.
43693         * lib/unistr/u16-strnlen.c: New file.
43694         * lib/unistr/u32-strnlen.c: New file.
43695         * lib/unistr/u-strnlen.h: New file.
43696
43697         * modules/unistr/u8-strpbrk: New file.
43698         * modules/unistr/u16-strpbrk: New file.
43699         * modules/unistr/u32-strpbrk: New file.
43700         * lib/unistr/u8-strpbrk.c: New file.
43701         * lib/unistr/u16-strpbrk.c: New file.
43702         * lib/unistr/u32-strpbrk.c: New file.
43703         * lib/unistr/u-strpbrk.h: New file.
43704
43705         * modules/unistr/u8-strrchr: New file.
43706         * modules/unistr/u16-strrchr: New file.
43707         * modules/unistr/u32-strrchr: New file.
43708         * lib/unistr/u8-strrchr.c: New file.
43709         * lib/unistr/u16-strrchr.c: New file.
43710         * lib/unistr/u32-strrchr.c: New file.
43711
43712         * modules/unistr/u8-strspn: New file.
43713         * modules/unistr/u16-strspn: New file.
43714         * modules/unistr/u32-strspn: New file.
43715         * lib/unistr/u8-strspn.c: New file.
43716         * lib/unistr/u16-strspn.c: New file.
43717         * lib/unistr/u32-strspn.c: New file.
43718         * lib/unistr/u-strspn.h: New file.
43719
43720         * modules/unistr/u8-strstr: New file.
43721         * modules/unistr/u16-strstr: New file.
43722         * modules/unistr/u32-strstr: New file.
43723         * lib/unistr/u8-strstr.c: New file.
43724         * lib/unistr/u16-strstr.c: New file.
43725         * lib/unistr/u32-strstr.c: New file.
43726         * lib/unistr/u-strstr.h: New file.
43727
43728         * modules/unistr/u8-strtok: New file.
43729         * modules/unistr/u16-strtok: New file.
43730         * modules/unistr/u32-strtok: New file.
43731         * lib/unistr/u8-strtok.c: New file.
43732         * lib/unistr/u16-strtok.c: New file.
43733         * lib/unistr/u32-strtok.c: New file.
43734         * lib/unistr/u-strtok.h: New file.
43735
43736         * modules/unistr/u8-uctomb: New file.
43737         * modules/unistr/u16-uctomb: New file.
43738         * modules/unistr/u32-uctomb: New file.
43739         * lib/unistr/u8-uctomb.c: New file.
43740         * lib/unistr/u16-uctomb.c: New file.
43741         * lib/unistr/u32-uctomb.c: New file.
43742
43743         * MODULES.html.sh (Unicode string functions): Add the new modules.
43744
43745 2007-01-08  Bruno Haible  <bruno@clisp.org>
43746
43747         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
43748         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
43749         subdirectories.
43750
43751 2007-01-08  Karl Berry  <karl@gnu.org>
43752
43753         * doc/error.texi: mention that main() fns must set program_name
43754         when progname is used.
43755
43756 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
43757
43758         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
43759         WCTYPE_H is empty, for the benefit of builds from non-distclean
43760         directories.  Problem reported by Eric Blake in
43761         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
43762
43763 2007-01-08  Bruno Haible  <bruno@clisp.org>
43764
43765         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
43766         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
43767         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
43768         PROVIDE_CANONICALIZE_FILENAME_MODE.
43769         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
43770
43771 2007-01-08  Bruno Haible  <bruno@clisp.org>
43772
43773         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
43774         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
43775         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
43776         * lib/fts.c: Likewise.
43777         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
43778
43779 2006-12-25  Bruno Haible  <bruno@clisp.org>
43780
43781         * modules/utf8-ucs4-safe: New file.
43782         * lib/utf8-ucs4-safe.h: New file.
43783         * lib/unistr/utf8-ucs4-safe.c: New file.
43784
43785         * modules/utf16-ucs4-safe: New file.
43786         * lib/utf16-ucs4-safe.h: New file.
43787         * lib/unistr/utf16-ucs4-safe.c: New file.
43788
43789         * MODULES.html.sh (Unicode string functions): Add the new modules.
43790
43791 2007-01-08  Bruno Haible  <bruno@clisp.org>
43792
43793         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
43794         (Depends-on): Add unitypes.
43795         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43796         (u8_mbtouc_aux): Move out to separate file.
43797         (u8_mbtouc): Use ucs4_t, uint8_t types.
43798         * lib/unistr/utf8-ucs4.c: New file.
43799
43800         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
43801         (Depends-on): Add unitypes.
43802         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43803         (u16_mbtouc_aux): Move out to separate file.
43804         (u16_mbtouc): Use ucs4_t, uint16_t types.
43805         * lib/unistr/utf16-ucs4.c: New file.
43806
43807         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
43808         (Depends-on): Add unitypes.
43809         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
43810         (u8_uctomb_aux): Move out to separate file.
43811         (u8_uctomb): Use ucs4_t, uint8_t types.
43812         * lib/unistr/ucs4-utf8.c: New file.
43813
43814         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
43815         (Depends-on): Add unitypes.
43816         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
43817         (u16_uctomb_aux): Move out to separate file.
43818         (u16_uctomb): Use ucs4_t, uint16_t types.
43819         * lib/unistr/ucs4-utf16.c: New file.
43820
43821 2006-12-25  Bruno Haible  <bruno@clisp.org>
43822
43823         * modules/unitypes: New file.
43824         * lib/unitypes.h: New file.
43825         * MODULES.html.sh (func_all_modules): New section "Unicode string
43826         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
43827         this section. Add unitypes.
43828
43829 2007-01-08  Bruno Haible  <bruno@clisp.org>
43830
43831         Avoid variable names that conflict with those from libtool.
43832         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
43833         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
43834         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
43835         library_names_spec to acl_library_names_spec, hardcode_* to
43836         acl_hardcode_*.
43837         Reported by Ralf Wildenhues.
43838
43839 2007-01-08  Bruno Haible  <bruno@clisp.org>
43840
43841         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
43842         definition.
43843         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
43844         definition.
43845         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
43846         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
43847         definition.
43848         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
43849         definition.
43850         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
43851         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
43852         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
43853         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
43854         definition.
43855         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
43856         definition.
43857         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
43858         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
43859         GC_USE_<algorithm>.
43860         * lib/gc-libgcrypt.c: Likewise.
43861         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
43862         * modules/gc-arctwo (configure.ac): Likewise.
43863         * modules/gc-des (configure.ac): Likewise.
43864         * modules/gc-hmac-md5 (configure.ac): Likewise.
43865         * modules/gc-hmac-sha1 (configure.ac): Likewise.
43866         * modules/gc-md2 (configure.ac): Likewise.
43867         * modules/gc-md4 (configure.ac): Likewise.
43868         * modules/gc-md5 (configure.ac): Likewise.
43869         * modules/gc-random (configure.ac): Likewise.
43870         * modules/gc-rijndael (configure.ac): Likewise.
43871         * modules/gc-sha1 (configure.ac): Likewise.
43872
43873 2007-01-08  Bruno Haible  <bruno@clisp.org>
43874
43875         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
43876         macro definition.
43877         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
43878         definition.
43879         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
43880         definition.
43881         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
43882         * modules/fcntl-safer (configure.ac): Likewise.
43883         * modules/fopen-safer (configure.ac): Likewise.
43884         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
43885         GNULIB_FWRITEERROR macro definition.
43886
43887 2007-01-08  Bruno Haible  <bruno@clisp.org>
43888
43889         * m4/gnulib-common.m4: New file.
43890         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
43891         (func_get_filelist): Add m4/gnulib-common.m4.
43892
43893 2007-01-08  Bruno Haible  <bruno@clisp.org>
43894
43895         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
43896         command.
43897
43898 2007-01-08  Jim Meyering  <jim@meyering.net>
43899
43900         Use a more robust test for a "can't happen" condition.
43901         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
43902         narrowed the st_size value.  Presuming the "can't happen" condition
43903         is true, that narrowing could conceivably convert an invalid st_size
43904         value into a valid one.  Instead, use a change based on Matthew
43905         Woehlke's original patch.
43906
43907         Slight readability improvement: use an assert-like macro
43908         in place of literal "abort ()" uses.
43909         * lib/fts.c (fts_assert): Define.
43910         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
43911         Use this macro instead of a bare 'abort'.
43912
43913 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43914
43915         Don't worry about using IRIX 5.3's wctype.h broken definitions;
43916         simply work around them.
43917         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
43918         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
43919         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
43920         declaring.
43921         Don't bother to define as macros, since the standard doesn't require it.
43922         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
43923         longer worry about IRIX 5.3.
43924         (HAVE_WCTYPE_CTMP_BUG): Remove.
43925
43926 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43927
43928         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
43929         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
43930         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43931         Problems reported by Georg Schwarz for IRIX 5.3.
43932
43933         * gnulib-tool (autoconf_minversion): Take the maximum version number
43934         found, not the minimum.  Problem reported by James Youngman.
43935
43936 2007-01-03  Karl Berry  <karl@gnu.org>
43937
43938         * doc/error.texi: new file, explaining interaction with progname.
43939         * doc/gnulib.texi: include it.  Update copyright.
43940
43941 2007-01-03  Simon Josefsson  <simon@josefsson.org>
43942
43943         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
43944         AC_CANONICAL_HOST, to improve autobuild outputs.
43945
43946 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
43947             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43948
43949         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
43950         sockets, server sockets, and other file descriptors.  Count errors
43951         to compute the return value.  Reorder the code a bit to be easier
43952         to follow.  Don't set event bits that were not requested (except
43953         POLLERR and POLLHUP).
43954
43955 2007-01-01  Bruno Haible  <bruno@clisp.org>
43956
43957         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
43958
43959 2007-01-03  Jim Meyering  <jim@meyering.net>
43960
43961         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
43962
43963 2007-01-02  Bruno Haible  <bruno@clisp.org>
43964
43965         * modules/settime (Include): Require timespec.h.
43966         * modules/nanosleep (Include): Likewise.
43967
43968 2007-01-01  Bruno Haible  <bruno@clisp.org>
43969
43970         * gnulib-tool (func_emit_copyright_notice): Bump year.
43971         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
43972
43973 2007-01-01  Bruno Haible  <bruno@clisp.org>
43974
43975         Improve support for OpenBSD.
43976         * build-aux/config.rpath (libname_spec): Export.
43977         (library_names_spec): New variable. Export.
43978         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
43979         library_names_spec from the config.rpath output. Locate shared library
43980         through the name pattern in library_names_spec.
43981
43982 2007-01-01  Eric Blake  <ebb9@byu.net>
43983
43984         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
43985
43986 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
43987
43988         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
43989         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
43990         assume the C locale, and avoid an "eval" that could cause trouble.
43991         Problem with SORT reported by Bob Proulx.
43992
43993         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
43994         Define.  Trivial patch from Henning Nielsen Lund, originally
43995         sent to bug-grep@gnu.org today.
43996
43997 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43998
43999         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
44000         struct stat.  Problem reported by Henning Nielsen Lund.
44001         * lib/acl.c: Include acl.h first, to check interface.  Don't
44002         bother to include sys/types.h and sys/stat.h again.
44003
44004 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44005
44006         Import the following change from libc; problem reported by
44007         Sven Verdoolaege.
44008
44009         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
44010
44011         [BZ #1373]
44012         * lib/argp.h: Remove __NTH for __argp_usage inline function.
44013
44014 2006-12-28  Jim Meyering  <jim@meyering.net>
44015
44016         * build-aux/announce-gen: Do not assume that the package
44017         builds any of tar.gz, tar.bz2, and .xdelta files.
44018         Suggestion from Simon Josefsson.
44019
44020 2006-12-28  Simon Josefsson  <simon@josefsson.org>
44021
44022         * modules/announce-gen: New file.
44023
44024 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44025
44026         * lib/mbchar.h: Just include <wctype.h>; the wctype module
44027         handles its gotchas now.
44028         * lib/mbswidth.c: Likewise.
44029         * lib/wcwidth.h: Likewise.
44030         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
44031         and iswcntrl; the wctype module does this stuff now.
44032         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44034         * modules/mbchar (Depends-on): Add wctype.
44035         * modules/mbswidth (Depends-on): Likewise.
44036         * modules/wcwidth (Depends-on): Likewise.
44037
44038 2006-12-27  Eric Blake  <ebb9@byu.net>
44039
44040         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
44041         module uses more than what <wctype.h> is required to provide.
44042
44043 2006-12-26  Eric Blake  <ebb9@byu.net>
44044
44045         * gnulib-tool (sed_extract_prog): Avoid space-tab.
44046
44047 2006-12-26  Eric Blake  <ebb9@byu.net>
44048
44049         * modules/absolute-header: New module.
44050         * modules/fcntl (Depends-on): Depend on it.
44051         * modules/inttypes (Depends-on): Likewise.
44052         * modules/stdint (Depends-on): Likewise.
44053         * modules/sys_stat (Depends-on): Likewise.
44054         * modules/wctype (Depends-on): Likewise.
44055         * MODULES.html.sh (Support for building libraries and
44056         executables): Document it.
44057
44058 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44059
44060         * gnulib-tool (SED): Remove, undoing previous change.
44061         The problem was that it broke coreutils on Solaris, because
44062         "sed --posix" leaked into a makefile.
44063         (sed): New alias, if 'alias' and GNU sed.
44064
44065 2006-12-24  Jim Meyering  <jim@meyering.net>
44066
44067         Work around an fchownat bug in glibc-2.4:
44068         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
44069         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
44070         in spite of the -P option.
44071         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
44072         New macros.
44073         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
44074         * modules/openat (Files): Add lib/fchownat.c.
44075         * lib/openat.c (fchownat): Don't define here.  Move to...
44076         * lib/fchownat.c: ...this new file.
44077
44078 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44079
44080         Fix bug reported by Bruno Haible in
44081         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
44082         where quotearg.c didn't compile on Mac OS X 10.2 because it
44083         lacks <wchar.h> and wint_t.
44084         * lib/wctype_.h (__wctype_wint_t): New type.
44085         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
44086         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
44087         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
44088         Arg is now of type __wctype_wint_t, not wint_t.
44089         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
44090         substitute HAVE_WINT_T.
44091         * modules/wctype (Files): Add m4/wint_t.m4.
44092         (wctype.h): Substitute HAVE_WINT_T.
44093
44094 2006-12-23  Bruno Haible  <bruno@clisp.org>
44095
44096         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
44097
44098 2006-12-23  Bruno Haible  <bruno@clisp.org>
44099
44100         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
44101         S_ISLNK.
44102         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
44103         mingw.
44104
44105 2006-12-22  Bruno Haible  <bruno@clisp.org>
44106
44107         * lib/copy-file.c: Include acl.h.
44108         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
44109         Close the file descriptors only after being done with copy_acl.
44110         * modules/copy-file (Depends-on): Add acl.
44111
44112 2006-12-22  Bruno Haible  <bruno@clisp.org>
44113
44114         * gnulib-tool (SED): New variable.
44115         Use $SED instead of sed everywhere.
44116
44117 2006-12-22  Bruno Haible  <bruno@clisp.org>
44118
44119         * modules/no-c++: New file.
44120         * m4/no-c++.m4: New file.
44121         * MODULES.html.sh (Support for building libraries and executables):
44122         Add no-c++.
44123
44124 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44125
44126         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44127         Include <limits.h>, and use its INT_MAX to rewrite the
44128         j loop so that it does not overflow 'int'.  Problem reported by
44129         Ralf Wildenhues in
44130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
44131         Play it safe by shifting left by 1 rather than multiplying by 2,
44132         as GCC is less likely to optimize this away when the value
44133         is signed (when it assumes overflow leads to undefined behavior).
44134         Also, don't assume time_t uses two's complement.
44135
44136 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44137
44138         * MODULES.html.sh: New module wctype.
44139         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
44140         * lib/fnmatch.c: Don't bother to include <wchar.h> before
44141         <wctype.h>, since the new wctype module should fix this.
44142         * lib/quotearg.c: Include <wctype.h> unconditionally, since
44143         the wctype module should arrange for it.
44144         * lib/regex_internal.h: Likewise.
44145         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
44146         since the wctype module should handle this now.
44147         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
44148         * modules/fnmatch (Depends-on): Add wctype.
44149         * modules/quotearg (Depends-on): Likewise.
44150         * modules/regex (Depends-on): Likewise.
44151
44152 2006-12-19  Bruno Haible  <bruno@clisp.org>
44153
44154         * lib/strdup.h [C++]: Wrap definitions in extern "C".
44155         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
44156
44157 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44158
44159         * modules/savewd (Depends-on): Fix dependency on fcntl.
44160
44161 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44162
44163         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
44164         conforms to C99, rather than relying on the user's environment
44165         setting of STDINT_H.
44166
44167 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44168         and Eric Blake  <ebb9@byu.net>
44169
44170         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
44171         This is more consistent with the other defines here.
44172         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
44173         Port to z/OS.  Problem reported by Paul Gilmartin.
44174         Change local vars to use gl_ prefix rather than ac_.
44175         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
44176         with other defines.
44177         * modules/double-slash-root: New module.
44178         * modules/dirname (Files): Remove m4/double-slash-root.m4.
44179         (Depends-on): Add double-slash-root.
44180         * MODULES.html.sh (File system functions): Mention new module.
44181
44182 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
44183
44184         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
44185         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
44186         This is for the benefit of gzip, which doesn't do i18n.
44187
44188 2006-12-12  Jim Meyering  <jim@meyering.net>
44189
44190         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
44191         Reported by Andreas Schwab <schwab@suse.de>.
44192
44193 2006-12-12  Bruno Haible  <bruno@clisp.org>
44194
44195         Merge these changes.
44196         2006-09-05  Bruno Haible  <bruno@clisp.org>
44197         * lib/iconvme.c (iconv_string): No need to save and restore errno when
44198         iconv_alloc succeeded.
44199         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
44200         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
44201         test for " && dest " at the end - dest is always != NULL there. Call
44202         iconv with 4xNULL arguments initially, to reset the state. Call iconv
44203         with 2xNULL arguments, also to flush the state storage. Handle the
44204         IRIX iconv behaviour. Realloc the final result, to throw away unused
44205         memory.
44206
44207 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
44208
44209         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
44210         and fchmodat unconditionally, since glibc 2.4 has them.
44211         Problem reported by Arkadiusz Miskiewicz.
44212
44213 2006-12-10  Bruno Haible  <bruno@clisp.org>
44214
44215         * gnulib-tool (func_import): Show the include files only for those
44216         modules that are copied and specified.
44217         Reported by Karl Berry.
44218
44219 2006-12-08  Jim Meyering  <jim@meyering.net>
44220
44221         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
44222         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
44223
44224         * build-aux/announce-gen: Add two new options, both optional:
44225         --bootstrap-tools=TOOL_LIST
44226               a comma-separated list of tools, e.g.,
44227               autoconf,automake,bison,gnulib
44228         --gnulib-snapshot-date=DATE
44229               if gnulib is in the bootstrap tool list,
44230               then report this as the snapshot date.
44231               If not specified, use the current date/time.
44232               If you specify a date here, be sure it's UTC.
44233
44234 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44235
44236         * tests/test-argp-2.sh: Fix test to match actual output.
44237         (func_compare): Fix sed script to be portable.
44238
44239 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
44240
44241         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
44242         workaround for this case.  It is not autoconfigured now; offhand
44243         it's hard to see how to autoconfigure it.
44244
44245 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44246
44247         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
44248         a directory that is about to be chowned.  Such a directory's
44249         initial file permissions should permit the owner only and this
44250         should not be changed until after the chown, since the group and
44251         other bits would be incorrect if they granted permission before
44252         the chown.
44253
44254         Fix porting problem for iswctype reported by Georg Schwarz in:
44255         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
44256         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
44257         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
44258         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
44259         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44260
44261 2006-12-03  Jim Meyering  <jim@meyering.net>
44262
44263         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
44264         p->fts_statp may not yet be defined.
44265         (fts_read): Instead, set it in the caller, once p->fts_statp is
44266         sure to be defined, and corresponds to a top-level directory.
44267         This bug made du -x fail.  Here's the coreutils test case:
44268         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
44269         Reported by Mike Frysinger.
44270
44271 2006-12-01  Jim Meyering  <jim@meyering.net>
44272
44273         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
44274         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
44275         Reported by Simon Josefsson.
44276
44277 2006-11-30  Jim Meyering  <jim@meyering.net>
44278
44279         * m4/warning.m4: Use the all-permissive copyright notice
44280         recommended by RMS (rather than LGPL).
44281         * m4/vararrays.m4: Likewise.
44282         * m4/flexmember.m4: Likewise.
44283
44284 2006-11-29  Bruno Haible  <bruno@clisp.org>
44285
44286         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44287         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
44288         using +=.
44289         Reported by Simon Josefsson <simon@josefsson.org>.
44290
44291 2006-11-28  James Youngman <jay@gnu.org>
44292
44293         * README: Advise users that they might find the bug-gnulib@gnu.org
44294         and autotools-announce@gnu.org mailing lists useful.
44295
44296 2006-11-28  Bruno Haible  <bruno@clisp.org>
44297
44298         * m4/ptrdiff_max.m4: Remove file.
44299
44300 2006-11-21  Bruno Haible  <bruno@clisp.org>
44301
44302         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
44303         _AC_COMPUTE_INT.
44304         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44305         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
44306         _AC_COMPUTE_INT.
44307         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44308         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
44309         _AC_COMPUTE_INT.
44310         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44311
44312 2006-11-28  Jim Meyering  <jim@meyering.net>
44313
44314         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
44315         warning from "gcc -Wshadow" about shadowing the builtin.
44316
44317 2006-11-27  Bruno Haible  <bruno@clisp.org>
44318
44319         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
44320         _AC_COMPUTE_INT.
44321         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44322
44323 2006-11-27  Bruno Haible  <bruno@clisp.org>
44324             Paul Eggert  <eggert@cs.ucla.edu>
44325
44326         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
44327
44328 2006-11-26  Bruno Haible  <bruno@clisp.org>
44329
44330         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44331         noinst_LTLIBRARIES.
44332
44333 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44334             Bruno Haible  <bruno@clisp.org>
44335
44336         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
44337         if compiling with "gcc -ansi".
44338
44339 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44340
44341         Fix some incompatibilities with gcc -ansi -pedantic.
44342         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
44343         if compiling pedantically with GCC, unless it's C99 or later.
44344         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
44345         it mishandles gcc -ansi -pedantic as well.
44346         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
44347         if gcc -pedantic.
44348         * lib/regexec.c (check_node_accept_bytes): Don't use auto
44349         initializers for struct if -pedantic, unless it's C99 or later.
44350
44351 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
44352
44353         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
44354         Don't close an fd more than once. Identical atimes indicate
44355         success, not failure.
44356
44357 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
44358
44359         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
44360
44361 2006-11-23  Jim Meyering  <jim@meyering.net>
44362
44363         * build-aux/announce-gen: New file.  From coreutils.
44364
44365 2006-11-22  Jim Meyering  <jim@meyering.net>
44366
44367         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
44368         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
44369         (fts_read): Use a temporary to narrow the overused st_size member
44370         before using it in a switch statement.  Reported by Matthew Woehlke.
44371
44372         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
44373         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44374
44375 2006-11-20  Bruno Haible  <bruno@clisp.org>
44376
44377         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
44378         changequote instead of pairs of brackets.
44379         Reported by Andreas Schwab <schwab@suse.de>.
44380
44381 2006-11-21  Jim Meyering  <jim@meyering.net>
44382
44383         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
44384         so as to remain compatible with older compilers.
44385         Patch from Michael Deutschmann.
44386
44387 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44388
44389         * MODULES.html.sh (File system functions): Add openat.
44390
44391         * lib/openat.h (rpl_fstatat): New macro, if
44392         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
44393         (fstatat): Define to rpl_fstatat under the same conditions,
44394         unless COMPILING_FSTATAT.
44395         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
44396         seems to have the bug.
44397         * lib/fstatat.c: New file.
44398         * modules/openat (Files): Add it.
44399
44400 2006-11-20  Bruno Haible  <bruno@clisp.org>
44401
44402         * Makefile: New file.
44403
44404 2006-11-20  Jim Meyering  <jim@meyering.net>
44405
44406         The beginnings of syntax-related checks for gnulib.
44407         * lib/Makefile: New file.
44408         * lib/t-idcache: New script.  Ensure that the two halves of
44409         idcache.c stay in sync.
44410
44411         * lib/idcache.c: Adjust comments in user- and group- portions to
44412         be more accurate, and to be consistent with one another.
44413
44414 2006-11-20  Jim Meyering  <jim@meyering.net>
44415
44416         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
44417         continue using the flexible array member (thus, this module performs
44418         half as many malloc calls), with the addition that...
44419         (getgroup, getuser): Consistently record a non-match via an empty
44420         "name" string, and map an empty string match to a NULL return value.
44421         * modules/idcache (Depends-on): Re-add flexmember.
44422
44423         * lib/idcache.c (getuser): Remove all uses of the register keyword.
44424         (getuidbyname, getgroup, getgidbyname): Likewise.
44425
44426         Use cleaner syntax: NULL rather than 0.
44427         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
44428
44429 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44430
44431         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
44432         It mishandled the case where the group was missing.
44433         Problem reported by Greg Schafer.
44434         * modules/idcache: Likewise.
44435
44436 2006-11-18  Jim Meyering  <jim@meyering.net>
44437
44438         * check-module (%exempt_header): Add exception for some
44439         conditionally-included headers.
44440
44441         * modules/i-ring (Depends-on): Add verify.
44442         (License): Change to LGPL.
44443
44444 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44445
44446         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
44447         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
44448         and inttostr.h.  Use snprintf rather than uinttostr, so that
44449         LGPLed code doesn't depend on GPLed.
44450
44451 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44452
44453         * modules/inline (License): Change from GPL to LGPL.
44454
44455 2006-11-17  Jim Meyering  <jim@meyering.net>
44456
44457         * modules/d-type (License): Switch to LGPL.
44458
44459 2006-11-15  Bruno Haible  <bruno@clisp.org>
44460
44461         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
44462
44463 2006-11-15  Eric Blake  <ebb9@byu.net>
44464
44465         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
44466         the module dependency.
44467
44468 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44469             Bruno Haible  <bruno@clisp.org>
44470
44471         * gnulib-tool (func_create_testdir): Add license consistency check.
44472
44473 2006-11-15  Eric Blake  <ebb9@byu.net>
44474
44475         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
44476         random "(cached)" in configure output.
44477
44478 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44479
44480         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
44481         test for conforming inttypes.h is both announced and cached.
44482
44483         * MODULES.html.sh (seen_modules, seen_files): New variables.
44484         (func_module): Rewrite to use a few less gnulib-tool and sed
44485         invocations.  Avoid a couple of quadratic algorithms for ...
44486         (missed_modules, missed_files): ... these, with ...
44487         (func_append, func_tmpdir): ... these new functions, from
44488         gnulib-tool.  Analogously, install traps for cleanup.
44489
44490         * tests/test-gc.c (main): Remove unused variables.
44491         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44492
44493 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44494
44495         * modules/inttostr (License): Change to LGPL.
44496
44497 2006-11-14  Eric Blake  <ebb9@byu.net>
44498
44499         * modules/tempname (License): Change to LGPL.
44500
44501 2006-11-14  Eric Blake  <ebb9@byu.net>
44502
44503         * doc/functions.texi (Function Portability): *printf functions on
44504         Cygwin now understand all POSIX size specifiers.
44505
44506 2006-11-14  Bruno Haible  <bruno@clisp.org>
44507
44508         * modules/c-ctype (License): Change to LGPL.
44509
44510 2006-11-12  Bruno Haible  <bruno@clisp.org>
44511
44512         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44513         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44514         for GNOME libraries, for which the include files are installed in
44515         subdirectories of $prefix/include.
44516
44517 2006-11-12  Bruno Haible  <bruno@clisp.org>
44518
44519         * m4/lib-link.m4: Require at least autoconf-2.54.
44520         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44521         name to underscores for the --with option.
44522
44523 2006-11-13  Bruno Haible  <bruno@clisp.org>
44524
44525         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44526         the tests directory.
44527         Reported by Ralf Wildenhues.
44528
44529 2006-11-13  Bruno Haible  <bruno@clisp.org>
44530
44531         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44532         (func_emit_initmacro_end): Undo the override here.
44533         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44534         Works around the famous automake error in coreutils.
44535
44536 2006-11-13  Eric Blake  <ebb9@byu.net>
44537
44538         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44539         element, not its node.
44540
44541 2006-11-12  Bruno Haible  <bruno@clisp.org>
44542
44543         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44544         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44545
44546 2006-11-12  Bruno Haible  <bruno@clisp.org>
44547
44548         * gnulib-tool: New option --local-symlink.
44549         (func_usage): Document it.
44550         (lsymbolic): New variable.
44551         (func_import, func_create_testdir): If --symlink was not specified,
44552         test whether --local-symlink was specified and the file comes from
44553         the local_gnulib_dir.
44554
44555 2006-11-12  Bruno Haible  <bruno@clisp.org>
44556
44557         * gnulib-tool (func_ln): New function.
44558         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44559
44560 2006-11-12  Bruno Haible  <bruno@clisp.org>
44561
44562         Finish support for source files in subdirectories.
44563         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44564         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44565         AUTOMAKE_OPTIONS.
44566         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44567
44568 2006-11-12  Bruno Haible  <bruno@clisp.org>
44569
44570         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44571         EXTRA_lib_SOURCES augmentation.
44572         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44573
44574 2006-11-12  Jim Meyering  <jim@meyering.net>
44575
44576         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44577         file descriptors.  This also averts a failure on systems with
44578         native openat support when a traversed directory lacks "x" access.
44579         * lib/fts_.h: Include "i-ring.h"
44580         (struct FTS) [fts_fd_ring]: New member.
44581         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44582         (FCHDIR): Add parentheses.
44583         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44584         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44585         When descending, rather than simply closing the previous
44586         fts_cwd_fd value, push that file descriptor onto the ring.
44587         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44588         (fts_open): Initialize the new fd_ring member.
44589         (fts_close): Clear the ring.
44590         (fts_safe_changedir): When possible, use our new fd_ring to skip
44591         the diropen and fstat and dev/ino comparison that would normally
44592         accompany a virtual `chdir ("..")'.
44593
44594         * modules/fts (Depends-on): Add i-ring.
44595         * modules/i-ring: New module.
44596         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44597         * m4/i-ring.m4: New file.
44598
44599 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44600
44601         * gnulib-tool (func_create_testdir): Fix replacement of
44602         `build-aux' in configure.ac.  Run autotools in gltests
44603         subdirectory.
44604         (func_create_testdir, func_create_megatestdir, test): There is
44605         no need for '--force' in most autotool invocations in a new
44606         tree.  Actually fail the whole test if any of the tools, or the
44607         configure or make stages fail.
44608
44609         Sync from Automake.
44610         * build-aux/gnupload: Revert last change.  Add pointer to upload
44611         instructions of the GNU Maintenance Instructions.
44612         Suggestion by Karl Berry.
44613
44614 2006-11-10  Jim Meyering  <jim@meyering.net>
44615
44616         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44617
44618 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44619
44620         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44621         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44622         (bind_textdomain_codeset) [! ENABLE_NLS]:
44623         Evaluate all the arguments.  That way, callers get compatible behavior
44624         if the arguments have side effects.  Also, it avoids some GCC
44625         diagnostics in some cases; Joel E. Denny reported problems when Bison
44626         was configured with --enable-gcc-warnigs.
44627
44628 2006-11-10  Jim Meyering  <jim@meyering.net>
44629
44630         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44631         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44632         account.
44633
44634 2006-11-10  Jim Meyering  <jim@meyering.net>
44635
44636         * modules/inline: New file/module.
44637         * modules/xalloc (Files): Remove m4/inline.m4.
44638         (Depends-on): Add inline, instead.
44639         * modules/oset: Likewise.
44640         * modules/list: Likewise.
44641
44642 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44643
44644         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44645         Problem reported by Matthew Woehlke.
44646
44647 2006-11-09  Bruno Haible  <bruno@clisp.org>
44648
44649         * lib/tempname.c (gen_tempname): Remove variant that invokes
44650         __gen_tempname.
44651         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44652         __gen_tempname.
44653
44654 2006-11-08  Bruno Haible  <bruno@clisp.org>
44655
44656         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44657         to 'yes' instead of 'cross-compiling'.
44658
44659 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44660
44661         * lib/quotearg.h (quotearg_free): New decl.
44662         * lib/quotearg.c (quotearg_free): New function.
44663         (slot0, nslots, slotvec0, slotvec):
44664         Now file-scope so that quotearg_free can get at them.
44665
44666 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44667
44668         Sync from Automake.
44669         * build-aux/gnupload: Add missing 'gnu' to example URL.
44670         Report by Karl Berry.
44671
44672 2006-11-08  Bruno Haible  <bruno@clisp.org>
44673
44674         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44675         Suggested by Paul Eggert.
44676
44677 2006-11-08  Jim Meyering  <jim@meyering.net>
44678
44679         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
44680         It's already included if !_LIBC.
44681         (fts_safe_changedir): Add a comment.
44682
44683 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44684
44685         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
44686         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
44687         Matthew Woehlke.
44688
44689         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44690         definitions up, to avoid colliding with change below.
44691         (static_inline) [HAVE_INLINE]: New macro.
44692         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
44693         Provide extern decls when !HAVE_INLINE.  Do not define unless
44694         static_inline is defined, either by us or by xmalloc.c.  Use
44695         static_inline rather than static inline.
44696         (XCALLOC): Optimize sizeof(T) = 1 case.
44697         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
44698
44699 2006-11-07  Bruno Haible  <bruno@clisp.org>
44700
44701         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
44702         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
44703         AC_C_INLINE.
44704         * modules/xalloc (Files): Add m4/inline.m4.
44705
44706 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44707
44708         * README: Fix typo.
44709         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
44710         (Miscellanous Notes): ...from this.
44711
44712 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44713
44714         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44715         Mention that offsetof should be used instead of sizeof.
44716         From Bruno Haible.
44717
44718 2006-11-07  Bruno Haible  <bruno@clisp.org>
44719
44720         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
44721
44722 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44723
44724         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44725         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
44726         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44727         (gl_tree_add_before, gl_tree_add_after):
44728         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
44729         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
44730         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44731         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
44732         (gl_linked_add_after, gl_linked_add_at): Likewise.
44733         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
44734         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44735         (gl_tree_add_before, gl_tree_add_after): Likewise.
44736         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
44737         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
44738         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
44739
44740 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44741
44742         * lib/gl_oset.h: Use C comment style, not C++ comment style.
44743
44744 2006-11-06  Bruno Haible  <bruno@clisp.org>
44745
44746         * m4/inline.m4: New file.
44747         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
44748         * modules/list (Files): Add m4/inline.m4.
44749         * modules/oset (Files): Likewise.
44750
44751 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44752
44753         * lib/idcache.c: Include <stddef.h>, for offsetof.
44754         (struct userid.name): Change from char * to a flexible array member.
44755         All uses changed.
44756         * modules/idcache (Depends-on): Add flexmember.
44757
44758         * MODULES.html.sh (Core language properties): New module flexmember.
44759         * modules/flexmember, m4/flexmember.m4: New files.
44760
44761         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
44762         inline functions that are identical with the old xnmalloc_inline,
44763         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
44764         that we can avoid some unnecessary integer multiplications and
44765         divisions in the common case where the element size is known at
44766         compile time.
44767         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
44768         needed.
44769         (xnboundedmalloc): Remove.
44770         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
44771         arguments, for consistency with rest of this header.
44772         (xcharalloc): Rewrite using XNMALLOC.
44773         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
44774         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
44775         versions have been moved to lib/xalloc.h and renamed to be the
44776         non-*_inline versions.
44777         (xmalloc, xrealloc): Implement without reference to the xnmalloc
44778         and xnrealloc functions, since those functions are now inline and
44779         now call us.
44780         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
44781         renaming described above.
44782         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
44783         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
44784         captures the dependency in AC_C_INLINE.
44785
44786         New module canonicalize-lgpl, proposed by Charles Wilson in
44787         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
44788         with a few small changes afterwards.
44789         * MODULES.html.sh (File system functions): New module
44790         canonicalize-lgpl.
44791         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
44792         and canonicalize_file_name.
44793         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
44794         * modules/canonicalize-lgpl: New files.
44795
44796 2006-11-05  Bruno Haible  <bruno@clisp.org>
44797
44798         * gnulib-tool (func_import, func_create_testdir): Create directories
44799         also for files in subdirectories of lib/.
44800
44801 2006-11-05  Bruno Haible  <bruno@clisp.org>
44802
44803         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
44804         ANSI C compliant.
44805
44806 2006-11-03  Bruno Haible  <bruno@clisp.org>
44807
44808         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44809         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
44810         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
44811         (xnboundedmalloc): New inline function.
44812         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
44813         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
44814         xmalloc.
44815         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
44816         xmalloc.
44817         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
44818         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
44819         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
44820         xmalloc.
44821         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44822         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
44823         xmalloc.
44824         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
44825         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44826         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
44827         xmalloc.
44828         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44829         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
44830         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44831         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
44832         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
44833         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
44834         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
44835
44836 2006-11-03  Bruno Haible  <bruno@clisp.org>
44837
44838         * lib/c-ctype.h [C++]: Define functions without name mangling.
44839         * lib/fwriteerror.h [C++]: Likewise.
44840         * lib/gcd.h [C++]: Likewise.
44841         * lib/linebreak.h [C++]: Likewise.
44842
44843 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
44844
44845         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
44846         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
44847         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
44848         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44849         Check for functions and headers just once.
44850         Check for declaration of canonicalize_file_name.
44851         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
44852
44853 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44854
44855         * gnulib-tool (func_import): Fix typo in actioncmd.
44856
44857 2006-11-02  Bruno Haible  <bruno@clisp.org>
44858
44859         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
44860         newline sequence in the Makefile.am snippet as a space, like "make"
44861         does.
44862         Reported by Roger Persson <perrog@gmail.com>.
44863
44864 2006-11-01  Bruno Haible  <bruno@clisp.org>
44865
44866         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
44867         already declared in <string.h>.
44868         * lib/strcase.h (strncasecmp): Don't declare it if yes.
44869
44870 2006-11-01  Bruno Haible  <bruno@clisp.org>
44871
44872         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
44873         * lib/strcase.h: Include <string.h>.
44874         (strcasecmp): Define to rpl_strcasecmp here.
44875
44876 2006-11-01  Bruno Haible  <bruno@clisp.org>
44877
44878         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
44879
44880 2006-11-01  Eric Blake  <ebb9@byu.net>
44881
44882         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
44883
44884         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
44885
44886 2006-10-29  Bruno Haible  <bruno@clisp.org>
44887
44888         Make it compile in C++ mode.
44889         * lib/full-write.c (full_rw): Add a cast.
44890
44891 2006-11-01  Bruno Haible  <bruno@clisp.org>
44892
44893         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
44894         be POSIX compliant.
44895         Reported by Roger Persson <perrog@gmail.com>.
44896
44897 2006-11-01  Eric Blake  <ebb9@byu.net>
44898
44899         * lib/getopt_.h: Fix comments.
44900
44901 2006-10-31  Eric Blake  <ebb9@byu.net>
44902
44903         * modules/tmpdir (Depends-on): Add sys_stat.
44904         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
44905         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
44906         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
44907         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
44908         tempname.
44909
44910 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44911
44912         Avoid some C++ diagnostics reported by Bruno Haible.
44913         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
44914         xmalloc.
44915         (quotearg_alloc): Use xcharalloc rather than xmalloc.
44916         (struct slotvec): Move to top level.
44917         (quotearg_n_options): Rewrite to avoid xmalloc.
44918         * lib/xalloc.h (xcharalloc): New function.
44919         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
44920         [defined __cplusplus]: Add function template that provides result
44921         type propagation.  This part of the change is from Bruno Haible.
44922
44923 2006-10-29  Bruno Haible  <bruno@clisp.org>
44924
44925         Make it compile in C++ mode.
44926         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
44927         * lib/strnlen1.c (strnlen1): Cast memchr result.
44928         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
44929         * lib/clean-temp.c (string_equals, string_hash): Add casts.
44930         (create_temp_dir): Rename local variable 'template'.
44931         (compile_csharp_using_sscli): Add cast.
44932         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
44933         * lib/findprog.c (find_in_path): Likewise.
44934         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
44935         * lib/wait-process.c (register_slave_subprocess): Likewise.
44936
44937 2006-10-22  Bruno Haible  <bruno@clisp.org>
44938
44939         * modules/tsearch: New file.
44940         * lib/tsearch.h: New file.
44941         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
44942         * m4/tsearch.m4: New file.
44943         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
44944
44945 2006-10-29  Eric Blake  <ebb9@byu.net>
44946
44947         * lib/arcfour.c: Assume config.h.
44948         * lib/arctwo.c: Likewise.
44949         * lib/base64.c: Likewise.
44950         * lib/check-version.c: Likewise.
44951         * lib/crc.c: Likewise.
44952         * lib/des.c: Likewise.
44953         * lib/gc-gnulib.c: Likewise.
44954         * lib/gc-libgcrypt.c: Likewise.
44955         * lib/gc-pbkdf2-sha1.c: Likewise.
44956         * lib/getaddrinfo.c: Likewise.
44957         * lib/getdelim.c: Likewise.
44958         * lib/getline.c: Likewise.
44959         * lib/hmac-md5.c: Likewise.
44960         * lib/hmac-sha1.c: Likewise.
44961         * lib/iconvme.c: Likewise.
44962         * lib/md2.c: Likewise.
44963         * lib/md4.c: Likewise.
44964         * lib/memxor.c: Likewise.
44965         * lib/read-file.c: Likewise.
44966         * lib/readline.c: Likewise.
44967         * lib/rijndael-alg-fst.c: Likewise.
44968         * lib/rijndael-api-fst.c: Likewise.
44969         * lib/xgetdomainname.c: Likewise.
44970
44971 2006-10-28  Eric Blake  <ebb9@byu.net>
44972
44973         * lib/xstrndup.c: Assume config.h.
44974
44975 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44976
44977         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
44978         stat-macros.h is now for our own macros, whereas stat_h is for
44979         macros in the <sys/stat.h> name space.
44980         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
44981         (STAT_MACROS_H): Remove.
44982         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
44983         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
44984         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
44985         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
44986         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
44987         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
44988         Move these macros to ...
44989         * lib/stat_.h: here.  Don't include stat-macros.h.
44990         * lib/canonicalize.c: Don't include stat-macros.h.
44991         * lib/chown.c: Likewise.
44992         * lib/euidaccess.c: Likewise.
44993         * lib/file-type.c: Likewise.
44994         * lib/filemode.c: Likewise.
44995         * lib/glob.c: Likewise.
44996         * lib/isapipe.c: Likewise.
44997         * lib/lchown.c: Likewise.
44998         * lib/lstat.c: Likewise.
44999         * lib/mkdir-p.c: Likewise.
45000         * lib/rmdir.c: Likewise.
45001         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
45002         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
45003         unless mkdir isn't declared, to speed up 'configure'.
45004         Always create sys/stat.h, since it's unlikely any real sys/stat.h
45005         would define all the S_* symbols.
45006         * modules/canonicalize (Depends-on):
45007         Depend on sys_stat, not stat-macros.
45008         * modules/chown: Likewise.
45009         * modules/euidaccess: Likewise.
45010         * modules/filemode: Likewise.
45011         * modules/file-type: Likewise.
45012         * modules/glob: Likewise.
45013         * modules/isapipe: Likewise.
45014         * modules/lchown: Likewise.
45015         * modules/lstat: Likewise.
45016         * modules/mkancesdirs: Likewise.
45017         * modules/rmdir: Likewise.
45018         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
45019         * modules/modechange: Likewise.
45020         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
45021         (configure.ac): Remove gl_STAT_MACROS.
45022         * modules/sys_stat (Depends-on): Remove stat-macros.
45023
45024 2006-10-27  Bruno Haible  <bruno@clisp.org>
45025
45026         * m4/signed.m4: Remove file.
45027         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
45028         invocation.
45029         * modules/vasnprintf (Files): Remove m4/signed.m4.
45030
45031 2006-10-27  Bruno Haible  <bruno@clisp.org>
45032
45033         Update to GNU gettext 0.16.
45034         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
45035         m4/inttypes-h.m4, m4/signed.m4.
45036         * m4/gettext.m4: Update to GNU gettext 0.16.
45037         * m4/intl.m4: New file, from GNU gettext.
45038         * m4/intldir.m4: New file, from GNU gettext.
45039         * config/srclist.txt: Update
45040
45041 2006-10-27  Eric Blake  <ebb9@byu.net>
45042
45043         * MODULES.html.sh: Document tempname.
45044         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
45045         dependencies.
45046         (Files): Move lib/tempname.c...
45047         * modules/tempname: ...to this new module.
45048         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
45049         (gl_PREREQ_TEMPNAME): Move...
45050         * m4/tempname.m4: ...to this new file.
45051         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
45052         * modules/sys_stat (Depends-on): Add stat-macros.
45053         * lib/stat_.h (includes): Pick up stat macros.
45054         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
45055         if stat macros are broken.
45056         * lib/tempname.c (includes): No need to include "stat-macros.h".
45057         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
45058         (direxists, __path_search) [!_LIBC]: Don't compile these in
45059         gnulib; the tmpdir module covers that.
45060         * lib/tempname.h: New file.
45061
45062 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45063
45064         * COPYING: Explain how gnulib-tool converts licence headers.
45065         Almost all wording by Eric Blake.
45066
45067 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
45068
45069         * lib/mbchar.h (is_basic_table): Make read-only.
45070         * lib/mbchar.c (is_basic_table): Likewise.
45071         Reported by John Darrington.
45072
45073 2006-10-25  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/progname.h (set_program_name): Undefine before defining.
45076
45077 2006-10-25  Bruno Haible  <bruno@clisp.org>
45078
45079         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
45080         false for non-gcc C++ compilers.
45081         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45082
45083 2006-10-24  Bruno Haible  <bruno@clisp.org>
45084
45085         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
45086         iconv implementations like Irix iconv.
45087
45088 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45089
45090         * modules/vararrays: New file.
45091         * m4/vararrays.m4: New file, taken from diffutils.
45092         * MODULES.html.sh: New module vararrays.
45093
45094 2006-10-24  Karl Berry  <karl@gnu.org>
45095
45096         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
45097         Don't call GNU Unix.
45098
45099 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45100
45101         * users.txt: Add Libtool.
45102
45103         Sync from Libtool:
45104
45105         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45106
45107         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
45108         to gnulib's policy of including config.h unconditionally.
45109
45110 2006-10-24  Bruno Haible  <bruno@clisp.org>
45111
45112         * modules/wcwidth (Files): Add m4/wint_t.m4.
45113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
45114         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
45115
45116 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45117
45118         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
45119         to pacify GCC with some -W flags enabled.  Problem reported by
45120         Bruno Haible.
45121
45122 2006-10-24  Jim Meyering  <jim@meyering.net>
45123
45124         * MODULES.html.sh: Remove uinttostr.  It's not a module.
45125         Reported by Karl Berry.
45126
45127 2006-10-23  Bruno Haible  <bruno@clisp.org>
45128
45129         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
45130
45131 2006-10-24  Bruno Haible  <bruno@clisp.org>
45132
45133         * lib/gl_list.h: Use C comment style, not C++ comment style.
45134
45135 2006-10-23  Eric Blake  <ebb9@byu.net>
45136
45137         * lib/getaddrinfo.c (includes): Add missing include.
45138
45139 2006-10-23  Bruno Haible  <bruno@clisp.org>
45140             Paul Eggert  <eggert@cs.ucla.edu>
45141
45142         Ability to rename obstack_free.
45143         * lib/obstack.h (__obstack_free): New macro. Declare instead of
45144         obstack_free.
45145         (obstack_free): Invoke the __obstack_free macro.
45146         * lib/obstack.c (obstack_free): Use __obstack_free macro.
45147
45148 2006-10-23  Bruno Haible  <bruno@clisp.org>
45149             Paul Eggert  <eggert@cs.ucla.edu>
45150
45151         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
45152         __argc, __argv from the declaration. (They are defined as macros on
45153         mingw.)
45154
45155 2006-10-22  Bruno Haible  <bruno@clisp.org>
45156
45157         * doc/gnulib-intro.texi: New file.
45158         * doc/gnulib.texi: Include it.
45159
45160 2006-10-21  Bruno Haible  <bruno@clisp.org>
45161
45162         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
45163         "Introduction", "Miscellanous Notes", "Particular Modules".
45164
45165 2006-10-21  Bruno Haible  <bruno@clisp.org>
45166
45167         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45168         Change mostlyclean-local rule to avoid sh syntax error from bash
45169         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
45170
45171 2006-10-23  Jim Meyering  <jim@meyering.net>
45172
45173         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
45174         in place of snprintf.
45175
45176         * modules/inttostr (Files): Add lib/uinttostr.c.
45177         * lib/uinttostr.c (inttostr): New file/function.
45178         * lib/inttostr.h (uinttostr): Declare.
45179         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
45180         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45181         Add uinttostr.
45182         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
45183
45184 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45185
45186         * lib/canonicalize.c (ELOOP): Define if not already defined.
45187         Problem reported by Bruno Haible in
45188         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
45189
45190 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45191
45192         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
45193         Problem reported by Perry Smith and Ville Laurikari.
45194
45195         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
45196         uses.
45197
45198 2006-10-19  Bruno Haible  <bruno@clisp.org>
45199
45200         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
45201         for mingw.
45202
45203 2006-10-19  Bruno Haible  <bruno@clisp.org>
45204
45205         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
45206         Needed for mingw.
45207
45208 2006-10-19  Bruno Haible  <bruno@clisp.org>
45209
45210         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
45211
45212 2006-10-19  Bruno Haible  <bruno@clisp.org>
45213
45214         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
45215         it.
45216
45217 2006-10-19  Bruno Haible  <bruno@clisp.org>
45218
45219         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
45220         invocation.
45221
45222 2006-10-19  Bruno Haible  <bruno@clisp.org>
45223
45224         * gnulib-tool (func_create_testdir): Don't include ftruncate and
45225         mountlist by default.
45226
45227 2006-10-16  Bruno Haible  <bruno@clisp.org>
45228
45229         * lib/c-strstr.c: Include c-strstr.h.
45230
45231 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45232
45233         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
45234         in a slash.
45235
45236 2006-10-18  Bruno Haible  <bruno@clisp.org>
45237
45238         * lib/lock.h [C++]: Wrap definitions in extern "C".
45239
45240 2006-10-18  Bruno Haible  <bruno@clisp.org>
45241
45242         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
45243         gl_LIBOBJS list.
45244
45245 2006-10-18  Bruno Haible  <bruno@clisp.org>
45246
45247         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
45248
45249 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
45250
45251         * lib/xstrtol.h: Include gettext.h.
45252         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
45253         Problem reported by Eric Blake.
45254         * modules/xstrtol (Depends-on): Add gettext-h.
45255
45256 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
45257
45258         * lib/strftime.c (advance): New macro.
45259         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
45260         incomplete type, so you can't add 0 to it.  Problem and patch
45261         reported by Eelco Dolstra for dietlibc.
45262
45263 2006-10-18  Jim Meyering  <jim@meyering.net>
45264
45265         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
45266         type for a local, and rename it: s/up/user_proc/.
45267
45268 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45269
45270         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
45271         READ_UTMP_USER_PROCESS.
45272         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
45273
45274 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45275
45276         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
45277         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
45278
45279 2006-10-17  Eric Blake  <ebb9@byu.net>
45280
45281         * lib/sigprocmask.c (sigprocmask): Fix typo.
45282
45283         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
45284
45285         * modules/clean-temp (Makefile.am): Don't add to make output...
45286         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
45287         config.h.
45288
45289 2006-10-17  Bruno Haible  <bruno@clisp.org>
45290
45291         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
45292         differently if DEFAULT_TEXT_DOMAIN is set.
45293
45294 2006-10-16  Bruno Haible  <bruno@clisp.org>
45295
45296         * lib/clean-temp.c: Include fwriteerror.h.
45297
45298 2006-10-16  Bruno Haible  <bruno@clisp.org>
45299
45300         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
45301
45302 2006-10-16  Bruno Haible  <bruno@clisp.org>
45303
45304         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
45305         * lib/sigprocmask.h: Include <sys/types.h>.
45306         (sigset_t): Use the system's definition if present.
45307
45308 2006-10-17  Eric Blake  <ebb9@byu.net>
45309
45310         * lib/xvasprintf.c (includes): Assume config.h.
45311         * lib/xasprintf.c (includes): Likewise.
45312
45313 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45314
45315         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
45316         at least as wide as intmax_t.
45317
45318 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
45319
45320         (Imported from Automake.)
45321         * build-aux/gnupload: Update to version 1.1 of directive file.
45322
45323 2006-10-16  Eric Blake  <ebb9@byu.net>
45324
45325         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
45326         match Automake 1.10a.
45327
45328 2006-10-14  Bruno Haible  <bruno@clisp.org>
45329
45330         * modules/sigprocmask: New file.
45331         * lib/sigprocmask.h: New file.
45332         * lib/sigprocmask.c: New file.
45333         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
45334         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
45335         request sigprocmask.o.
45336         (gl_PREREQ_SIGPROCMASK): New macro.
45337         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
45338         (Depends-on): Add sigprocmask.
45339         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
45340         gt_SIGNALBLOCKING. Test for 'raise' only once.
45341         * lib/fatal-signal.c: Include sigprocmask.h.
45342         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
45343         unblock_fatal_signals): Define always.
45344         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45345         sigprocmask.
45346
45347 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45348
45349         Sync from Automake.
45350         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
45351         which incorrectly sets the mode of an existing destination
45352         directory.  In some cases the unpatched install-sh could do the
45353         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
45354         system.  We hope this is rare in practice, but it's clearly worth
45355         fixing.  Problem reported by Alex Unleashed in
45356         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
45357         Also, don't bother to check for -m bugs unless we're using -m;
45358         suggested by Stepan Kasal.
45359
45360 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45361
45362         Sync from Automake.
45363         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
45364         `-c' flag, so they appear at the same position as in %FASTDEP%
45365         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
45366         which ignores unknown options only after the first non-option.
45367         Bug report against M4 by Nelson H. F. Beebe.
45368
45369 2006-10-13  Jim Meyering  <jim@meyering.net>
45370
45371         Fix a bug in yesterday's change.
45372         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
45373         p->fts_statp->st_dev would be used uninitialized.
45374         Ensures that we always call fts_stat on the very first entry.
45375         Miklos Szeredi reported that find -xdev stopped working.
45376
45377 2006-10-12  Bruno Haible  <bruno@clisp.org>
45378
45379         * gnulib-tool (func_get_automake_snippet): Append an automatically
45380         computed EXTRA_DIST augmentation.
45381         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
45382         * modules/alloca-opt (Makefile.am): Likewise.
45383         * modules/allocsa (Makefile.am): Likewise.
45384         * modules/arcfour (Makefile.am): Likewise.
45385         * modules/arctwo (Makefile.am): Likewise.
45386         * modules/argmatch (Makefile.am): Likewise.
45387         * modules/argz (Makefile.am): Likewise.
45388         * modules/atexit (Makefile.am): Likewise.
45389         * modules/backupfile (Makefile.am): Likewise.
45390         * modules/byteswap (Makefile.am): Likewise.
45391         * modules/c-strtod (Makefile.am): Likewise.
45392         * modules/c-strtold (Makefile.am): Likewise.
45393         * modules/calloc (Makefile.am): Likewise.
45394         * modules/canon-host (Makefile.am): Likewise.
45395         * modules/canonicalize (Makefile.am): Likewise.
45396         * modules/chdir-long (Makefile.am): Likewise.
45397         * modules/chdir-safer (Makefile.am): Likewise.
45398         * modules/check-version (Makefile.am): Likewise.
45399         * modules/chown (Makefile.am): Likewise.
45400         * modules/cloexec (Makefile.am): Likewise.
45401         * modules/close-stream (Makefile.am): Likewise.
45402         * modules/closeout (Makefile.am): Likewise.
45403         * modules/crc (Makefile.am): Likewise.
45404         * modules/csharpexec (Makefile.am): Likewise.
45405         * modules/cycle-check (Makefile.am): Likewise.
45406         * modules/des (Makefile.am): Likewise.
45407         * modules/dev-ino (Makefile.am): Likewise.
45408         * modules/dirfd (Makefile.am): Likewise.
45409         * modules/dirname (Makefile.am): Likewise.
45410         * modules/dup2 (Makefile.am): Likewise.
45411         * modules/eealloc (Makefile.am): Likewise.
45412         * modules/error (Makefile.am): Likewise.
45413         * modules/euidaccess (Makefile.am): Likewise.
45414         * modules/exclude (Makefile.am): Likewise.
45415         * modules/exitfail (Makefile.am): Likewise.
45416         * modules/fcntl-safer (Makefile.am): Likewise.
45417         * modules/fcntl (Makefile.am): Likewise.
45418         * modules/file-type (Makefile.am): Likewise.
45419         * modules/fileblocks (Makefile.am): Likewise.
45420         * modules/filemode (Makefile.am): Likewise.
45421         * modules/filenamecat (Makefile.am): Likewise.
45422         * modules/fnmatch (Makefile.am): Likewise.
45423         * modules/fopen-safer (Makefile.am): Likewise.
45424         * modules/fpending (Makefile.am): Likewise.
45425         * modules/fprintftime (Makefile.am): Likewise.
45426         * modules/free (Makefile.am): Likewise.
45427         * modules/fsusage (Makefile.am): Likewise.
45428         * modules/ftruncate (Makefile.am): Likewise.
45429         * modules/fts (Makefile.am): Likewise.
45430         * modules/gc-arcfour (Makefile.am): Likewise.
45431         * modules/gc-des (Makefile.am): Likewise.
45432         * modules/gc-hmac-md5 (Makefile.am): Likewise.
45433         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
45434         * modules/gc-md4 (Makefile.am): Likewise.
45435         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45436         * modules/gc-sha1 (Makefile.am): Likewise.
45437         * modules/gc (Makefile.am): Likewise.
45438         * modules/getaddrinfo (Makefile.am): Likewise.
45439         * modules/getcwd (Makefile.am): Likewise.
45440         * modules/getdelim (Makefile.am): Likewise.
45441         * modules/getdomainname (Makefile.am): Likewise.
45442         * modules/getgroups (Makefile.am): Likewise.
45443         * modules/gethostname (Makefile.am): Likewise.
45444         * modules/gethrxtime (Makefile.am): Likewise.
45445         * modules/getline (Makefile.am): Likewise.
45446         * modules/getloadavg (Makefile.am): Likewise.
45447         * modules/getlogin_r (Makefile.am): Likewise.
45448         * modules/getndelim2 (Makefile.am): Likewise.
45449         * modules/getopt (Makefile.am): Likewise.
45450         * modules/getpagesize (Makefile.am): Likewise.
45451         * modules/getpass-gnu (Makefile.am): Likewise.
45452         * modules/getpass (Makefile.am): Likewise.
45453         * modules/getsubopt (Makefile.am): Likewise.
45454         * modules/gettime (Makefile.am): Likewise.
45455         * modules/gettimeofday (Makefile.am): Likewise.
45456         * modules/getugroups (Makefile.am): Likewise.
45457         * modules/getusershell (Makefile.am): Likewise.
45458         * modules/glob (Makefile.am): Likewise.
45459         * modules/group-member (Makefile.am): Likewise.
45460         * modules/hard-locale (Makefile.am): Likewise.
45461         * modules/hash (Makefile.am): Likewise.
45462         * modules/hmac-md5 (Makefile.am): Likewise.
45463         * modules/hmac-sha1 (Makefile.am): Likewise.
45464         * modules/human (Makefile.am): Likewise.
45465         * modules/idcache (Makefile.am): Likewise.
45466         * modules/imaxabs (Makefile.am): Likewise.
45467         * modules/imaxdiv (Makefile.am): Likewise.
45468         * modules/inet_ntop (Makefile.am): Likewise.
45469         * modules/inet_pton (Makefile.am): Likewise.
45470         * modules/intprops (Makefile.am): Likewise.
45471         * modules/inttostr (Makefile.am): Likewise.
45472         * modules/inttypes (Makefile.am): Likewise.
45473         * modules/isapipe (Makefile.am): Likewise.
45474         * modules/javaversion (Makefile.am): Likewise.
45475         * modules/lchmod (Makefile.am): Likewise.
45476         * modules/lchown (Makefile.am): Likewise.
45477         * modules/localcharset (Makefile.am): Likewise.
45478         * modules/long-options (Makefile.am): Likewise.
45479         * modules/lstat (Makefile.am): Likewise.
45480         * modules/malloc (Makefile.am): Likewise.
45481         * modules/mathl (Makefile.am): Likewise.
45482         * modules/mbchar (Makefile.am): Likewise.
45483         * modules/md2 (Makefile.am): Likewise.
45484         * modules/md4 (Makefile.am): Likewise.
45485         * modules/md5 (Makefile.am): Likewise.
45486         * modules/memcasecmp (Makefile.am): Likewise.
45487         * modules/memchr (Makefile.am): Likewise.
45488         * modules/memcmp (Makefile.am): Likewise.
45489         * modules/memcoll (Makefile.am): Likewise.
45490         * modules/memcpy (Makefile.am): Likewise.
45491         * modules/memmem (Makefile.am): Likewise.
45492         * modules/memmove (Makefile.am): Likewise.
45493         * modules/mempcpy (Makefile.am): Likewise.
45494         * modules/memrchr (Makefile.am): Likewise.
45495         * modules/memset (Makefile.am): Likewise.
45496         * modules/memxor (Makefile.am): Likewise.
45497         * modules/mkancesdirs (Makefile.am): Likewise.
45498         * modules/mkdir-p (Makefile.am): Likewise.
45499         * modules/mkdir (Makefile.am): Likewise.
45500         * modules/mkdtemp (Makefile.am): Likewise.
45501         * modules/mkstemp (Makefile.am): Likewise.
45502         * modules/mktime (Makefile.am): Likewise.
45503         * modules/modechange (Makefile.am): Likewise.
45504         * modules/mountlist (Makefile.am): Likewise.
45505         * modules/nanosleep (Makefile.am): Likewise.
45506         * modules/obstack (Makefile.am): Likewise.
45507         * modules/openat (Makefile.am): Likewise.
45508         * modules/pagealign_alloc (Makefile.am): Likewise.
45509         * modules/pathmax (Makefile.am): Likewise.
45510         * modules/physmem (Makefile.am): Likewise.
45511         * modules/poll (Makefile.am): Likewise.
45512         * modules/posixtm (Makefile.am): Likewise.
45513         * modules/posixver (Makefile.am): Likewise.
45514         * modules/putenv (Makefile.am): Likewise.
45515         * modules/quote (Makefile.am): Likewise.
45516         * modules/quotearg (Makefile.am): Likewise.
45517         * modules/raise (Makefile.am): Likewise.
45518         * modules/read-file (Makefile.am): Likewise.
45519         * modules/readline (Makefile.am): Likewise.
45520         * modules/readlink (Makefile.am): Likewise.
45521         * modules/readtokens (Makefile.am): Likewise.
45522         * modules/readutmp (Makefile.am): Likewise.
45523         * modules/realloc (Makefile.am): Likewise.
45524         * modules/regex (Makefile.am): Likewise.
45525         * modules/rename-dest-slash (Makefile.am): Likewise.
45526         * modules/rename (Makefile.am): Likewise.
45527         * modules/rijndael (Makefile.am): Likewise.
45528         * modules/rmdir (Makefile.am): Likewise.
45529         * modules/rpmatch (Makefile.am): Likewise.
45530         * modules/safe-read (Makefile.am): Likewise.
45531         * modules/safe-write (Makefile.am): Likewise.
45532         * modules/same-inode (Makefile.am): Likewise.
45533         * modules/same (Makefile.am): Likewise.
45534         * modules/save-cwd (Makefile.am): Likewise.
45535         * modules/savedir (Makefile.am): Likewise.
45536         * modules/setenv (Makefile.am): Likewise.
45537         * modules/settime (Makefile.am): Likewise.
45538         * modules/sha1 (Makefile.am): Likewise.
45539         * modules/sig2str (Makefile.am): Likewise.
45540         * modules/snprintf (Makefile.am): Likewise.
45541         * modules/stat-macros (Makefile.am): Likewise.
45542         * modules/stat-time (Makefile.am): Likewise.
45543         * modules/stdbool (Makefile.am): Likewise.
45544         * modules/stdint (Makefile.am): Likewise.
45545         * modules/stdlib-safer (Makefile.am): Likewise.
45546         * modules/stpcpy (Makefile.am): Likewise.
45547         * modules/stpncpy (Makefile.am): Likewise.
45548         * modules/strcase (Makefile.am): Likewise.
45549         * modules/strcasestr (Makefile.am): Likewise.
45550         * modules/strchrnul (Makefile.am): Likewise.
45551         * modules/strcspn (Makefile.am): Likewise.
45552         * modules/strdup (Makefile.am): Likewise.
45553         * modules/strerror (Makefile.am): Likewise.
45554         * modules/strftime (Makefile.am): Likewise.
45555         * modules/strndup (Makefile.am): Likewise.
45556         * modules/strnlen (Makefile.am): Likewise.
45557         * modules/strpbrk (Makefile.am): Likewise.
45558         * modules/strsep (Makefile.am): Likewise.
45559         * modules/strstr (Makefile.am): Likewise.
45560         * modules/strtod (Makefile.am): Likewise.
45561         * modules/strtoimax (Makefile.am): Likewise.
45562         * modules/strtok_r (Makefile.am): Likewise.
45563         * modules/strtol (Makefile.am): Likewise.
45564         * modules/strtoll (Makefile.am): Likewise.
45565         * modules/strtoul (Makefile.am): Likewise.
45566         * modules/strtoull (Makefile.am): Likewise.
45567         * modules/strtoumax (Makefile.am): Likewise.
45568         * modules/strverscmp (Makefile.am): Likewise.
45569         * modules/sys_socket (Makefile.am): Likewise.
45570         * modules/sys_stat (Makefile.am): Likewise.
45571         * modules/sysexits (Makefile.am): Likewise.
45572         * modules/time_r (Makefile.am): Likewise.
45573         * modules/timegm (Makefile.am): Likewise.
45574         * modules/timespec (Makefile.am): Likewise.
45575         * modules/tmpfile-safer (Makefile.am): Likewise.
45576         * modules/trim (Makefile.am): Likewise.
45577         * modules/unistd-safer (Makefile.am): Likewise.
45578         * modules/unlinkdir (Makefile.am): Likewise.
45579         * modules/unlocked-io (Makefile.am): Likewise.
45580         * modules/userspec (Makefile.am): Likewise.
45581         * modules/utime (Makefile.am): Likewise.
45582         * modules/utimecmp (Makefile.am): Likewise.
45583         * modules/utimens (Makefile.am): Likewise.
45584         * modules/vasnprintf (Makefile.am): Likewise.
45585         * modules/vasprintf (Makefile.am): Likewise.
45586         * modules/vsnprintf (Makefile.am): Likewise.
45587         * modules/xalloc (Makefile.am): Likewise.
45588         * modules/xgetcwd (Makefile.am): Likewise.
45589         * modules/xnanosleep (Makefile.am): Likewise.
45590         * modules/xreadlink (Makefile.am): Likewise.
45591         * modules/xstrtod (Makefile.am): Likewise.
45592         * modules/xstrtol (Makefile.am): Likewise.
45593         * modules/xstrtold (Makefile.am): Likewise.
45594         * modules/yesno (Makefile.am): Likewise.
45595         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45596
45597 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45598
45599         * modules/error (Makefile.am): Distribute files through
45600         EXTRA_DIST, not lib_SOURCES.
45601
45602 2006-10-12  Eric Blake  <ebb9@byu.net>
45603
45604         * modules/error (Makefile.am): Distribute files in /lib.
45605         * modules/obstack (Makefile.am): Likewise.
45606
45607 2006-10-12  Bruno Haible  <bruno@clisp.org>
45608
45609         * modules/acl (Makefile.am): Distribute all files in lib/ through
45610         EXTRA_DIST.
45611         * modules/arcfour (Makefile.am): Likewise.
45612         * modules/arctwo (Makefile.am): Likewise.
45613         * modules/argmatch (Makefile.am): Likewise.
45614         * modules/argz (Makefile.am): Likewise.
45615         * modules/atexit (Makefile.am): Likewise.
45616         * modules/backupfile (Makefile.am): Likewise.
45617         * modules/c-strtod (Makefile.am): Likewise.
45618         * modules/c-strtold (Makefile.am): Likewise.
45619         * modules/calloc (Makefile.am): Likewise.
45620         * modules/canon-host (Makefile.am): Likewise.
45621         * modules/canonicalize (Makefile.am): Likewise.
45622         * modules/chdir-long (Makefile.am): Likewise.
45623         * modules/chdir-safer (Makefile.am): Likewise.
45624         * modules/check-version (Makefile.am): Likewise.
45625         * modules/chown (Makefile.am): Likewise.
45626         * modules/cloexec (Makefile.am): Likewise.
45627         * modules/close-stream (Makefile.am): Likewise.
45628         * modules/closeout (Makefile.am): Likewise.
45629         * modules/crc (Makefile.am): Likewise.
45630         * modules/cycle-check (Makefile.am): Likewise.
45631         * modules/des (Makefile.am): Likewise.
45632         * modules/dirfd (Makefile.am): Likewise.
45633         * modules/dirname (Makefile.am): Likewise.
45634         * modules/dup2 (Makefile.am): Likewise.
45635         * modules/euidaccess (Makefile.am): Likewise.
45636         * modules/exclude (Makefile.am): Likewise.
45637         * modules/exitfail (Makefile.am): Likewise.
45638         * modules/fcntl-safer (Makefile.am): Likewise.
45639         * modules/file-type (Makefile.am): Likewise.
45640         * modules/fileblocks (Makefile.am): Likewise.
45641         * modules/filemode (Makefile.am): Likewise.
45642         * modules/filenamecat (Makefile.am): Likewise.
45643         * modules/fnmatch (Makefile.am): Likewise.
45644         * modules/fopen-safer (Makefile.am): Likewise.
45645         * modules/fpending (Makefile.am): Likewise.
45646         * modules/fprintftime (Makefile.am): Likewise.
45647         * modules/free (Makefile.am): Likewise.
45648         * modules/fsusage (Makefile.am): Likewise.
45649         * modules/ftruncate (Makefile.am): Likewise.
45650         * modules/fts (Makefile.am): Likewise.
45651         * modules/gc (Makefile.am): Likewise.
45652         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45653         * modules/getaddrinfo (Makefile.am): Likewise.
45654         * modules/getcwd (Makefile.am): Likewise.
45655         * modules/getdelim (Makefile.am): Likewise.
45656         * modules/getdomainname (Makefile.am): Likewise.
45657         * modules/getgroups (Makefile.am): Likewise.
45658         * modules/gethostname (Makefile.am): Likewise.
45659         * modules/gethrxtime (Makefile.am): Likewise.
45660         * modules/getline (Makefile.am): Likewise.
45661         * modules/getloadavg (Makefile.am): Likewise.
45662         * modules/getlogin_r (Makefile.am): Likewise.
45663         * modules/getopt (Makefile.am): Likewise.
45664         * modules/getpass (Makefile.am): Likewise.
45665         * modules/getpass-gnu (Makefile.am): Likewise.
45666         * modules/getsubopt (Makefile.am): Likewise.
45667         * modules/gettime (Makefile.am): Likewise.
45668         * modules/gettimeofday (Makefile.am): Likewise.
45669         * modules/getugroups (Makefile.am): Likewise.
45670         * modules/getusershell (Makefile.am): Likewise.
45671         * modules/glob (Makefile.am): Likewise.
45672         * modules/group-member (Makefile.am): Likewise.
45673         * modules/hard-locale (Makefile.am): Likewise.
45674         * modules/hash (Makefile.am): Likewise.
45675         * modules/hmac-md5 (Makefile.am): Likewise.
45676         * modules/hmac-sha1 (Makefile.am): Likewise.
45677         * modules/human (Makefile.am): Likewise.
45678         * modules/idcache (Makefile.am): Likewise.
45679         * modules/imaxabs (Makefile.am): Likewise.
45680         * modules/imaxdiv (Makefile.am): Likewise.
45681         * modules/inet_ntop (Makefile.am): Likewise.
45682         * modules/inet_pton (Makefile.am): Likewise.
45683         * modules/inttostr (Makefile.am): Likewise.
45684         * modules/isapipe (Makefile.am): Likewise.
45685         * modules/lchown (Makefile.am): Likewise.
45686         * modules/long-options (Makefile.am): Likewise.
45687         * modules/lstat (Makefile.am): Likewise.
45688         * modules/malloc (Makefile.am): Likewise.
45689         * modules/mathl (Makefile.am): Likewise.
45690         * modules/mbchar (Makefile.am): Likewise.
45691         * modules/md2 (Makefile.am): Likewise.
45692         * modules/md4 (Makefile.am): Likewise.
45693         * modules/md5 (Makefile.am): Likewise.
45694         * modules/memcasecmp (Makefile.am): Likewise.
45695         * modules/memchr (Makefile.am): Likewise.
45696         * modules/memcmp (Makefile.am): Likewise.
45697         * modules/memcoll (Makefile.am): Likewise.
45698         * modules/memcpy (Makefile.am): Likewise.
45699         * modules/memmem (Makefile.am): Likewise.
45700         * modules/memmove (Makefile.am): Likewise.
45701         * modules/mempcpy (Makefile.am): Likewise.
45702         * modules/memrchr (Makefile.am): Likewise.
45703         * modules/memset (Makefile.am): Likewise.
45704         * modules/memxor (Makefile.am): Likewise.
45705         * modules/mkancesdirs (Makefile.am): Likewise.
45706         * modules/mkdir (Makefile.am): Likewise.
45707         * modules/mkdir-p (Makefile.am): Likewise.
45708         * modules/mkdtemp (Makefile.am): Likewise.
45709         * modules/mkstemp (Makefile.am): Likewise.
45710         * modules/mktime (Makefile.am): Likewise.
45711         * modules/modechange (Makefile.am): Likewise.
45712         * modules/mountlist (Makefile.am): Likewise.
45713         * modules/nanosleep (Makefile.am): Likewise.
45714         * modules/openat (Makefile.am): Likewise.
45715         * modules/pagealign_alloc (Makefile.am): Likewise.
45716         * modules/physmem (Makefile.am): Likewise.
45717         * modules/poll (Makefile.am): Likewise.
45718         * modules/posixtm (Makefile.am): Likewise.
45719         * modules/posixver (Makefile.am): Likewise.
45720         * modules/putenv (Makefile.am): Likewise.
45721         * modules/quote (Makefile.am): Likewise.
45722         * modules/quotearg (Makefile.am): Likewise.
45723         * modules/raise (Makefile.am): Likewise.
45724         * modules/read-file (Makefile.am): Likewise.
45725         * modules/readline (Makefile.am): Likewise.
45726         * modules/readlink (Makefile.am): Likewise.
45727         * modules/readtokens (Makefile.am): Likewise.
45728         * modules/readutmp (Makefile.am): Likewise.
45729         * modules/realloc (Makefile.am): Likewise.
45730         * modules/regex (Makefile.am): Likewise.
45731         * modules/rename (Makefile.am): Likewise.
45732         * modules/rename-dest-slash (Makefile.am): Likewise.
45733         * modules/rijndael (Makefile.am): Likewise.
45734         * modules/rmdir (Makefile.am): Likewise.
45735         * modules/rpmatch (Makefile.am): Likewise.
45736         * modules/safe-read (Makefile.am): Likewise.
45737         * modules/safe-write (Makefile.am): Likewise.
45738         * modules/same (Makefile.am): Likewise.
45739         * modules/save-cwd (Makefile.am): Likewise.
45740         * modules/savedir (Makefile.am): Likewise.
45741         * modules/setenv (Makefile.am): Likewise.
45742         * modules/settime (Makefile.am): Likewise.
45743         * modules/sha1 (Makefile.am): Likewise.
45744         * modules/sig2str (Makefile.am): Likewise.
45745         * modules/snprintf (Makefile.am): Likewise.
45746         * modules/stdlib-safer (Makefile.am): Likewise.
45747         * modules/stpcpy (Makefile.am): Likewise.
45748         * modules/stpncpy (Makefile.am): Likewise.
45749         * modules/strcase (Makefile.am): Likewise.
45750         * modules/strcasestr (Makefile.am): Likewise.
45751         * modules/strchrnul (Makefile.am): Likewise.
45752         * modules/strcspn (Makefile.am): Likewise.
45753         * modules/strdup (Makefile.am): Likewise.
45754         * modules/strerror (Makefile.am): Likewise.
45755         * modules/strftime (Makefile.am): Likewise.
45756         * modules/strndup (Makefile.am): Likewise.
45757         * modules/strnlen (Makefile.am): Likewise.
45758         * modules/strpbrk (Makefile.am): Likewise.
45759         * modules/strsep (Makefile.am): Likewise.
45760         * modules/strstr (Makefile.am): Likewise.
45761         * modules/strtod (Makefile.am): Likewise.
45762         * modules/strtoimax (Makefile.am): Likewise.
45763         * modules/strtok_r (Makefile.am): Likewise.
45764         * modules/strtol (Makefile.am): Likewise.
45765         * modules/strtoll (Makefile.am): Likewise.
45766         * modules/strtoul (Makefile.am): Likewise.
45767         * modules/strtoull (Makefile.am): Likewise.
45768         * modules/strtoumax (Makefile.am): Likewise.
45769         * modules/strverscmp (Makefile.am): Likewise.
45770         * modules/time_r (Makefile.am): Likewise.
45771         * modules/timegm (Makefile.am): Likewise.
45772         * modules/tmpfile-safer (Makefile.am): Likewise.
45773         * modules/unistd-safer (Makefile.am): Likewise.
45774         * modules/unlinkdir (Makefile.am): Likewise.
45775         * modules/userspec (Makefile.am): Likewise.
45776         * modules/utime (Makefile.am): Likewise.
45777         * modules/utimecmp (Makefile.am): Likewise.
45778         * modules/utimens (Makefile.am): Likewise.
45779         * modules/vasnprintf (Makefile.am): Likewise.
45780         * modules/vasprintf (Makefile.am): Likewise.
45781         * modules/vsnprintf (Makefile.am): Likewise.
45782         * modules/xalloc (Makefile.am): Likewise.
45783         * modules/xgetcwd (Makefile.am): Likewise.
45784         * modules/xnanosleep (Makefile.am): Likewise.
45785         * modules/xreadlink (Makefile.am): Likewise.
45786         * modules/xstrtod (Makefile.am): Likewise.
45787         * modules/xstrtol (Makefile.am): Likewise.
45788         * modules/xstrtold (Makefile.am): Likewise.
45789         * modules/yesno (Makefile.am): Likewise.
45790
45791 2006-10-12  Jim Meyering  <jim@meyering.net>
45792
45793         * m4/getloadavg.m4: Revert the change below.
45794
45795         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
45796         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
45797         fail with a symlink, which is what coreutils' ./bootstrap now
45798         creates by default.
45799
45800 2006-10-12  Bruno Haible  <bruno@clisp.org>
45801
45802         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
45803         mingw.
45804         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
45805         MSVC and mingw explicitly.
45806
45807 2006-10-11  Simon Josefsson  <jas@extundo.com>
45808             Bruno Haible  <bruno@clisp.org>
45809
45810         Add support for multiple gnulib-tool invocations in the scope of a
45811         single configure.ac file.
45812         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
45813         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
45814         with the same contents as the _LIBADD variable.
45815         (func_emit_initmacro_start, func_emit_initmacro_end,
45816         func_emit_initmacro_done): New functions.
45817         (func_import, func_create_testdir): Invoke them. Allow the identifiers
45818         gl_LIBOBJS and gl_LTLIBOBJS.
45819
45820 2006-10-11  Bruno Haible  <bruno@clisp.org>
45821
45822         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
45823         (func_create_testdir): Don't create po/Makefile.am, don't invoke
45824         autoreconf. Instead, invoke autopoint explicitly but move back the
45825         *.m4 files from gnulib.
45826
45827 2006-10-11  Bruno Haible  <bruno@clisp.org>
45828
45829         * gnulib-tool (func_usage): Make module names after --create-testdir
45830         optional.
45831         (func_create_testdir): If no module was specified, use nearly all
45832         modules.
45833
45834 2006-10-12  Jim Meyering  <jim@meyering.net>
45835
45836         Big performance improvement for fts-based tools that use FTS_NOSTAT.
45837         Avoid spurious inode-mismatch problems on non-POSIX file systems.
45838         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
45839         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
45840         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
45841         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
45842         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
45843         (fts_set_stat_required): New function.
45844         (fts_open): Defer the calls to fts_stat, if possible or requested.
45845         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
45846         into fts_stat itself.
45847         (fts_read): Perform any required (deferred) fts_stat call.
45848         (fts_build): Likewise, for the directory we're about to open and read.
45849         In the readdir loop, carefully decide whether each entry will require
45850         an eventual call to fts_stat, using dirent.d_type info if available.
45851         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
45852         a command line argument into this function.  Update all callers.
45853         Map a return value of FTS_DOT to FTS_D for a command line argument.
45854         * modules/fts (Depends-on): Add d-type.  Alphabetize.
45855         Thanks to Miklos Szeredi for his tenacity and for the initial
45856         bug report about "find" failing on a FUSE-based file system.
45857
45858         * lib/fts.c (fts_open): Use consistent indentation.
45859
45860 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45861
45862         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
45863         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
45864         reported by Jim Meyering.  All uses of cache variables renamed
45865         to match Autoconf's.
45866         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
45867         the other one.
45868
45869         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45870         Fix misspelling in diagnostic.
45871
45872 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45873
45874         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
45875         defined.  Problem reported by Matthew Woehlke.
45876
45877         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
45878         Add support for Tandem NonStop R series.
45879         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
45880         Use new macro.
45881
45882         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
45883         (has_trailing_slash): Omit size arg; all callers changed.
45884         Omit 'inline', since it doesn't help performance and we'd
45885         need to configure it.
45886         Don't count //, ///, etc. as having a trailing slash.
45887         As a side effect, this removes a C99ism reported by Matthew Woehlke.
45888         (rpl_rename_dest_slash): On failure, use rename's errno rather
45889         than (in some cases) an incorrect or junk errno.
45890         Simplify code by removing need to compute length; this does
45891         cause it to make two passes instead of one over the file name,
45892         but it's worth it.
45893
45894         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
45895         change, since Autoconf's version may no longer be appropriate now
45896         that we are using CVS Autoconf's version.  Add support for Tandem.
45897
45898 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45899             Bruno Haible  <bruno@clisp.org>
45900
45901         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
45902         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
45903         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
45904         gl_AC_TYPE_LONG_LONG.
45905
45906         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
45907         instead of HAVE_LONG_LONG.
45908         * lib/printf-args.c (printf_fetchargs): Likewise.
45909         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45910         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45911         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
45912         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
45913         gl_AC_TYPE_LONG_LONG.
45914
45915 2006-10-11  Bruno Haible  <bruno@clisp.org>
45916
45917         * m4/longlong.m4: Add comments.
45918         * m4/ulonglong.m4: Likewise.
45919
45920 2006-10-10  Bruno Haible  <bruno@clisp.org>
45921
45922         Make it possible to #define stpcpy, strdup to aliases.
45923         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
45924         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
45925
45926 2006-10-10  Bruno Haible  <bruno@clisp.org>
45927
45928         Make it possible to #define gcd to an alias.
45929         * lib/gcd.c: Include config.h.
45930
45931 2006-10-10  Bruno Haible  <bruno@clisp.org>
45932
45933         Make it possible to #define c_isascii to an alias.
45934         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
45935         defined. Undefine the macros before defining them, to avoid gcc
45936         warnings.
45937         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
45938         define NO_C_CTYPE_MACROS early.
45939
45940 2006-10-10  Bruno Haible  <bruno@clisp.org>
45941
45942         Make it possible to #define set_program_name to an alias.
45943         * lib/progname.c: Don't undefine set_program_name; instead, undefine
45944         ENABLE_RELOCATABLE early.
45945
45946 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45947
45948         Port to Tandem NSK OSS, which has 64-bit signed int but at most
45949         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
45950         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
45951         More generally, don't assume that 64-bit signed int is available
45952         if unsigned int is, and vice versa.
45953         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
45954         unsigned symbols, not on their signed counterparts.
45955         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
45956         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
45957         (UINT64_C, UINTMAX_C):
45958         Likewise.
45959         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
45960         unsigned counterparts.
45961         (Have_long_long, Unsigned): New macros.
45962         (Int): Renamed from INT.
45963         (strtoimax): Use the new macros.
45964         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
45965         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
45966         * modules/inttypes (inttypes.h): Substitute
45967         HAVE_UNSIGNED_LONG_LONG_INT.
45968         * modules/stdint (stdint.h): Likewise.
45969         (Files): Add m4/ulonglong.m4.
45970
45971 2006-10-10  Bruno Haible  <bruno@clisp.org>
45972
45973         Fix a gcc -Wshadow warning.
45974         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
45975         to 'bucket'.
45976         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
45977         gl_linked_indexof_from_to): Likewise.
45978         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
45979         Likewise.
45980         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
45981         Likewise.
45982         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
45983         Reported by Eric Blake.
45984
45985 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
45986
45987         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
45988         for NetBSD.  Problem reported by Bruno Haible.
45989
45990 2006-10-09  Jim Meyering  <jim@meyering.net>
45991
45992         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
45993         Patch from Bruno Haible.
45994
45995 2006-10-09  Jim Meyering  <jim@meyering.net>
45996
45997         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
45998         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
45999         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
46000
46001 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46002
46003         Don't include <config.h> twice; this doesn't work in some cases,
46004         e.g., when config.h has "#define intmax_t long long int" and
46005         we include <config.h>, <inttypes.h>, <config.h> in that order.
46006         Problem reported by Matthew Woehlke in:
46007         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
46008         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
46009         * lib/fts-cycle.c: Don't include config.h.
46010         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
46011         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
46012         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
46013         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
46014         inttypes.h.
46015         * lib/xstrtoumax.c: Likewise.
46016         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
46017         __strtol and the like, so that this module is more like its siblings.
46018         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
46019         Remove; no longer needed now that we assume gnulib inttypes.h.
46020
46021 2006-10-08  Bruno Haible  <bruno@clisp.org>
46022
46023         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
46024         option.
46025
46026 2006-10-07  Jim Meyering  <jim@meyering.net>
46027
46028         * modules/inttypes (inttypes.h): Revert what seems to have been
46029         an inadvertent part of today's change: use "|", not "/" in the
46030         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
46031
46032 2006-10-07  Bruno Haible  <bruno@clisp.org>
46033
46034         * modules/sublist: New file.
46035
46036 2006-10-07  Bruno Haible  <bruno@clisp.org>
46037
46038         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
46039         * modules/argz (argz.h): Likewise.
46040         * modules/arpa_inet (arpa/inet.h): Likewise.
46041         * modules/byteswap (byteswap.h): Likewise.
46042         * modules/configmake (configmake.h): Likewise.
46043         * modules/fcntl (fcntl.h): Likewise.
46044         * modules/fnmatch (fnmatch.h): Likewise.
46045         * modules/getopt (getopt.h): Likewise.
46046         * modules/glob (glob.h): Likewise.
46047         * modules/inttypes (inttypes.h): Likewise.
46048         * modules/netinet_in (netinet/in.h): Likewise.
46049         * modules/poll (poll.h): Likewise.
46050         * modules/stdbool (stdbool.h): Likewise.
46051         * modules/stdint (stdint.h): Likewise.
46052         * modules/sys_select (sys/select.h): Likewise.
46053         * modules/sys_socket (sys/socket.h): Likewise.
46054         * modules/sys_stat (sys/stat.h): Likewise.
46055         * modules/sysexits (sysexits.h): Likewise.
46056         * modules/unistd (unistd.h): Likewise.
46057         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46058         Add a "DO NOT EDIT" comment to the generated file.
46059         (func_import): Likewise for gnulib-comp.m4.
46060
46061 2006-10-07  Bruno Haible  <bruno@clisp.org>
46062
46063         * lib/gl_sublist.h: New file.
46064         * lib/gl_sublist.c: New file.
46065
46066 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
46067
46068         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
46069         name (relative to the original working directory) and the file
46070         name component (relative to the temporary working directory).  All
46071         callers changed.
46072         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
46073         * lib/mkdir-p.c (make_dir_parents): Likewise.
46074         * lib/mkdir-p.h (make_dir_parents): Likewise.
46075
46076 2006-10-06  Eric Blake  <ebb9@byu.net>
46077
46078         Define several macros for use by the clean-temp module.
46079         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
46080         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
46081         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
46082
46083         * lib/clean-temp.h (close_stream_temp): New declaration.
46084         * lib/clean-temp.c (includes): Pull in headers according to what
46085         other modules are in use.
46086         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
46087
46088 2006-10-06  Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
46091         instead of fopen, fwriteerror.
46092
46093 2006-10-06  Bruno Haible  <bruno@clisp.org>
46094
46095         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
46096         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
46097         int.
46098         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
46099         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
46100         Return an error indicator.
46101         Suggested by Eric Blake.
46102
46103 2006-10-06  Bruno Haible  <bruno@clisp.org>
46104
46105         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
46106         Reported by Eric Blake.
46107
46108 2006-10-06  Bruno Haible  <bruno@clisp.org>
46109
46110         * modules/closeout (Description): Mention stderr too.
46111
46112 2006-10-06  Bruno Haible  <bruno@clisp.org>
46113         and Paul Eggert  <eggert@cs.ucla.edu>
46114
46115         * lib/closeout.c (close_stdout): Also close stderr.
46116         * lib/closeout.h: Update comment.
46117
46118 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46119
46120         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
46121         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
46122         * lib/dirchownmod.c: Include lchown.h.
46123         * lib/lchown.c: Don't include files that lchown.h now includes.
46124         Don't declare chown, since lchown.h now does that.
46125         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
46126         (lchown): Define to rpl_chown if lchown is declared but
46127         does not exist.  Declare using a prototype if lchown is not
46128         declared.  Add a copyright notice.
46129         * lib/mkstemp.h: Include <unistd.h>.
46130         * lib/openat.c: Include lchown.h.
46131
46132         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
46133         we now test for that separately.
46134         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
46135         rather than O_NOFOLLOW, when testing whether it's possible to
46136         avoid a race condition reliably.
46137         * lib/savewd.c (savewd_chdir): Likewise.
46138
46139         Remove macros that are no longer needed now that stdint.h is
46140         reliable.
46141         * lib/fsusage.c (UINTMAX_MAX): Remove.
46142         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
46143         * lib/utimecmp.c (SIZE_MAX): Remove.
46144
46145         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
46146
46147         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
46148         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
46149         O_NOATIME works.
46150
46151 2006-10-05  Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/gl_list.h (gl_sortedlist_search_from_to,
46154         gl_sortedlist_indexof_from_to): New declarations.
46155         (gl_list_implementation): New fields sortedlist_search_from_to,
46156         sortedlist_indexof_from_to.
46157         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
46158         inline functions.
46159         * lib/gl_list.c (gl_sortedlist_search_from_to,
46160         gl_sortedlist_indexof_from_to): New functions.
46161         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
46162         function.
46163         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
46164         (gl_array_sortedlist_search_from_to): New function.
46165         (gl_array_list_implementation): Update.
46166         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
46167         function.
46168         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
46169         (gl_carray_sortedlist_search_from_to): New function.
46170         (gl_carray_list_implementation): Update.
46171         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
46172         gl_linked_sortedlist_indexof_from_to): New functions.
46173         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46174         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46175         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
46176         gl_tree_sortedlist_indexof_from_to): New functions.
46177         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46178         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46179         Update.
46180         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46181         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
46182         Update.
46183
46184 2006-10-05  Bruno Haible  <bruno@clisp.org>
46185
46186         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
46187         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
46188         (struct gl_list_implementation): Add fields search_from_to,
46189         indexof_from_to. Remove fields search, indexof.
46190         (gl_list_search): Use the search_from_to method.
46191         (gl_list_search_from, gl_list_search_from_to): New functions.
46192         (gl_list_indexof): Use the indexof_from_to method.
46193         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46194         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
46195         (gl_list_search_from, gl_list_search_from_to): New functions.
46196         (gl_list_indexof): Use the indexof_from_to method.
46197         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46198         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
46199         gl_array_indexof. Add start_index, end_index arguments.
46200         (gl_array_search_from_to): Renamed from gl_array_search. Add
46201         start_index, end_index arguments.
46202         (gl_array_remove, gl_array_list_implementation): Update.
46203         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
46204         gl_carray_indexof. Add start_index, end_index arguments.
46205         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
46206         start_index, end_index arguments.
46207         (gl_carray_remove, gl_carray_list_implementation): Update.
46208         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
46209         gl_linked_search. Add start_index, end_index arguments.
46210         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
46211         start_index, end_index arguments.
46212         (gl_linked_remove): Update.
46213         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46214         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46215         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
46216         field to 'size_t'.
46217         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
46218         gl_tree_search. Add start_index, end_index arguments.
46219         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46220         start_index, end_index arguments.
46221         (gl_tree_remove): Update.
46222         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46223         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46224         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
46225         function.
46226         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
46227         gl_tree_search. Add start_index, end_index arguments.
46228         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46229         start_index, end_index arguments.
46230         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46231         Update.
46232         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46233
46234 2006-10-05  Bruno Haible  <bruno@clisp.org>
46235
46236         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
46237
46238         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
46239         fwriteerror_temp): New declarations.
46240         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
46241         (descriptors): New variable.
46242         (cleanup): First, close the descriptors.
46243         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
46244         fclose_temp, fwriteerror_temp): New functions.
46245
46246 2006-10-04  Jim Meyering  <jim@meyering.net>
46247
46248         * lib/fts.c (fts_open): Tiny comment change.
46249
46250 2006-10-04  Bruno Haible  <bruno@clisp.org>
46251
46252         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
46253         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
46254         gl_LOCK_BODY.
46255         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
46256         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
46257         gl_LOCK_EARLY_BODY.
46258         (gl_LOCK): Require gl_LOCK_BODY.
46259
46260 2006-10-04  Bruno Haible  <bruno@clisp.org>
46261
46262         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
46263         (gl_oset_search_atleast): New declaration.
46264         (struct gl_oset_implementation): Add field 'search_atleast'.
46265         (gl_oset_search_atleast): New inline function.
46266         * lib/gl_oset.c (gl_oset_search_atleast): New function.
46267         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
46268         (gl_array_oset_implementation): Update.
46269         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
46270         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
46271         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
46272
46273 2006-10-04  Bruno Haible  <bruno@clisp.org>
46274
46275         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
46276
46277 2006-10-03  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
46280         from gl_avltreehash_list_implementation.
46281
46282 2006-10-03  Bruno Haible  <bruno@clisp.org>
46283
46284         * lib/gl_oset.c (gl_oset_add): Fix return type.
46285
46286 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
46287
46288         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
46289
46290 2006-10-02  Eric Blake  <ebb9@byu.net>
46291
46292         * modules/strnlen (Depends-on): Add extensions.
46293
46294 2006-10-02  Eric Blake  <ebb9@byu.net>
46295
46296         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
46297         definition in 2.60+.
46298
46299 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
46300
46301         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
46302         checks.
46303
46304 2006-10-02  Bruno Haible  <bruno@clisp.org>
46305
46306         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
46307         to the AUTOMAKE_OPTIONS.
46308         Reported by Jim Meyering.
46309
46310 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46311
46312         Work around bug in Solaris 10 /proc file system:
46313         /proc/self/fd/NNN/.. isn't the parent directory of
46314         the directory whose file descriptor is NNN.  This needs to
46315         be worked around at run time, not compile time, since a
46316         program might be built on Solaris 8, where things work, and
46317         run on Solaris 10.
46318         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
46319         to use the following interface instead:
46320         (OPENAT_BUFFER_SIZE): New macro.
46321         (openat_proc_name): New function.
46322         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
46323         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
46324         Likewise.
46325         * lib/openat-proc.c: New file.
46326         * modules/openat (Files): Add lib/openat-proc.c.
46327         (Depends-on): Add same-inode, stdbool.
46328         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
46329
46330 2006-09-29  Bruno Haible  <bruno@clisp.org>
46331
46332         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
46333         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
46334         argument. Set stdout_closed before testing for ferror, not after.
46335         (fwriteerror, fwriteerror_no_ebadf): New functions.
46336
46337 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46338
46339         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
46340
46341 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
46342
46343         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
46344         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
46345
46346 2006-09-28  Jim Meyering  <jim@meyering.net>
46347
46348         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
46349         Include <unistd.h>.
46350
46351 2006-09-28  Bruno Haible  <bruno@clisp.org>
46352
46353         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
46354         * modules/linkedhash-list (Depends-on): Likewise.
46355         * modules/rbtreehash-list (Depends-on): Likewise.
46356
46357 2006-09-28  Bruno Haible  <bruno@clisp.org>
46358
46359         * lib/strndup.h: Simplify the redefinition of strndup.
46360         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
46361         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
46362
46363 2006-09-28  Bruno Haible  <bruno@clisp.org>
46364
46365         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
46366         * lib/gl_linkedhash_list.c: Likewise.
46367         * lib/gl_rbtreehash_list.c: Likewise.
46368
46369 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46370
46371         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
46372         getaddrinfo.
46373
46374         * lib/__fpending.h: Don't include <stdio_ext.h> unless
46375         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
46376         it causes <stdio_ext.h> to cause a compile-time error.
46377         Problem reported by Nelson H. F. Beebe.
46378         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
46379         of HAVE_DECL___PENDING.
46380
46381         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
46382         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
46383         declaration.
46384
46385 2006-09-27  Jim Meyering  <jim@meyering.net>
46386
46387         This file could end up with a definition for a function
46388         named __strndup, rather than rpl_strndup on a system with
46389         incomplete weak_alias support.
46390         * lib/strndup.c (strndup): Rename from __strndup.
46391         Remove #defines that used to map __strndup to strndup.
46392         Don't use K&R prototypes.
46393         Remove LIBC-related code, since this file is not sync'd with glibc.
46394         * lib/strndup.h: Revamp, accordingly.
46395         * m4/strndup.m4: Modernize.
46396
46397 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46398
46399         * modules/savewd (Depends-on): Add 'raise'.
46400         * lib/savewd.c: Include <signal.h>, for 'raise'.
46401
46402 2006-09-26  Jim Meyering  <jim@meyering.net>
46403
46404         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
46405         when we detect Darwin 8.7.0's acl_get_file bug.
46406         Rearrange to perform the new (below) run-test while $LIBS
46407         contains any acl-related library.  Set USE_ACL at the end.
46408         (gl_ACL_GET_FILE): New function.
46409
46410 2006-09-26  Eric Blake  <ebb9@byu.net>
46411
46412         * lib/verror.c: Include <config.h> unconditionally.
46413
46414 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
46415
46416         * modules/clock-time (Maintainer): Add self.
46417         * modules/getlogin_r (Depends-on): Add extensions.
46418
46419 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46420
46421         * modules/clock-time: New module.
46422         * modules/nanosleep (Depends-on): Add clock-time.
46423         * modules/gethrxtime (Depends-on): Likewise.
46424         * modules/gettime (Depends-on): Likewise.
46425         * modules/settime (Depends-on): Likewise.
46426
46427         * modules/fts-lgpl: Depend on openat.
46428         * modules/mkancesdirs: Depend on savewd.
46429         * modules/mkdir-p: Likewise.
46430
46431 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46432
46433         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
46434
46435         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
46436         `gl_have_arbitrary_file_name_length_limit' to
46437         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
46438         actually works between configure runs.
46439
46440 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46441             Bruno Haible  <bruno@clisp.org>
46442
46443         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
46444
46445 2006-09-25  Jim Meyering  <jim@meyering.net>
46446
46447         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
46448         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
46449
46450 2006-09-25  Eric Blake  <ebb9@byu.net>
46451
46452         * gnulib-tool (func_import, func_create_testdir): Fix typos in
46453         exec's in 2006-09-18 patch when shuffling fds.
46454
46455 2006-09-25  Bruno Haible  <bruno@clisp.org>
46456
46457         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
46458         Reported by Jim Meyering.
46459
46460 2006-09-24  Jim Meyering  <jim@meyering.net>
46461
46462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
46463         compare a pointer against a literal "0".  That caused failures with
46464         at least HP-UX's hpcc.
46465
46466 2006-09-22  Simon Josefsson  <jas@extundo.com>
46467
46468         * modules/gc-sha1:
46469         * modules/gc-md4:
46470         * modules/gc-hmac-sha1:
46471         * modules/gc-hmac-md5:
46472         * modules/gc-des:
46473         * modules/gc-arcfour: Distribute more files.
46474
46475 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46476
46477         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
46478         (gl_linked_iterator_from_to): Initialize struct completely.
46479         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
46480         (gl_tree_iterator_from_to): Likewise
46481         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
46482         * lib/gl_array_list.c [lint] (gl_array_iterator)
46483         (gl_array_iterator_from_to): Likewise.
46484         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
46485         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
46486         (gl_carray_iterator_from_to): Likewise.
46487
46488         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
46489         * lib/md4.c (md4_process_block): Remove unused variable.
46490         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46491         parentheses for clarity.
46492
46493 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46494
46495         * modules/bison-i18n (Depends-on): Add gettext.
46496
46497 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46498
46499         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46500         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46501         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46502         also add missing comma that caused broken test.
46503         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46504         stdlib.h, for `abort'.
46505         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46506         variables.
46507         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46508         include unistd.h if present, for `rmdir'.
46509         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46510         variables.
46511         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46512         in the process include standard headers for prototypes.
46513         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46514         gets declared on GNU/Linux.
46515         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46516         unistd.h, for `rmdir'.
46517         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46518
46519         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46520         always true.
46521         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46522
46523         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46524
46525 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46526
46527         * gnulib-tool (func_version): Create output all at once.  This
46528         may help avoid triggering unnecessary SIGPIPEs, and at any
46529         rate it doesn't hurt.
46530
46531 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46532             Bruno Haible  <bruno@clisp.org>
46533
46534         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46535         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46536         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46537
46538         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46539         (gl_FUNC_VASPRINTF): Invoke it.
46540
46541 2006-09-22  Bruno Haible  <bruno@clisp.org>
46542
46543         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46544         getloadavg.c as first argument.
46545
46546 2006-09-22  Bruno Haible  <bruno@clisp.org>
46547
46548         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46549         at the beginning of the gl_INIT macro.
46550         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46551         gl_GETLOADAVG.
46552
46553 2006-09-22  Bruno Haible  <bruno@clisp.org>
46554
46555         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46556         module.
46557         Suggested by Ralf Wildenhues.
46558
46559 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46560
46561         Import this patch from libc:
46562
46563         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46564
46565         * lib/regex_internal.c (re_string_reconstruct): Handle
46566         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46567         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46568         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46569         re_string_context_at.
46570
46571         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46572         now requires it.
46573         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46574         gl_REGEX now does it for us.
46575         (gl_REGEX): Add test taken from
46576         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46577
46578         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46579         Check that large offsets work.  Modernize Autoconf usages.
46580         Prefer "yes" to mean a good thing rather than a bad.
46581         Don't put "#define mkstemp" in config.h, as this might interfere
46582         with standard system headers that "#define mkstemp mkstemp64".
46583
46584         * modules/mkstemp (Depends-on): Add extensions, so that
46585         mkstemp is visible on some platforms.
46586         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46587         (Include): Change to "mkstemp.h" from <stdlib.h>.
46588         (Files): Add mkstemp.h.
46589
46590         * lib/mkstemp.h: New file, since some standard headers
46591         #define mkstemp.
46592         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46593         Include "mkstemp.h".
46594         Make the _LIBC code resemble glibc original more,
46595         e.g., use K&R style.
46596         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46597         (mkstemp): Remove, since mkstemp.h does this for us.
46598         * lib/stdlib--.h: Include mkstemp.h.
46599
46600         Import this patch from libc:
46601
46602         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46603
46604         * lib/tempname.c (__gen_tempname): Change attempts_min
46605         into a macro.  Use preprocessor to decide how to initialize
46606         attempts [Coverity CID 67].
46607
46608 2006-09-20  Bruno Haible  <bruno@clisp.org>
46609
46610         * lib/mkdtemp.c: Import from libc.
46611         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46612                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46613                 attempts_min into a macro.  Use preprocessor to decide how to
46614                 initialize attempts [Coverity CID 67].
46615         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46616                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46617                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46618
46619 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46620
46621         * gnulib-tool (func_exit): New function, to allow to pass the
46622         exit status portably through the trap.  Use everywhere.
46623         (--help, --version): Signal a write error.
46624         (trap): catch SIGPIPE, for write errors.
46625         Exit at the end of the trap, with the correct exit status.
46626
46627 2006-09-19  Karl Berry  <karl@gnu.org>
46628
46629         * doc/gnulib.texi: note about the license texinfo files.
46630
46631 2006-09-19  Eric Blake  <ebb9@byu.net>
46632
46633         * gnulib-tool: Avoid space-tab.
46634
46635 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46636
46637         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46638         that prevented coreutils 6.1 from building.  Problem reported
46639         by Petter Reinholdtsen.
46640
46641 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46642
46643         * gnulib-tool (avoidlist): Fix typo that broke options like
46644         --avoid=lock that are used by coreutils bootstrap.
46645
46646 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46647
46648         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46649         more systematically.
46650
46651 2006-09-18  Jim Meyering  <jim@meyering.net>
46652
46653         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46654
46655 2006-09-18  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46658
46659 2006-09-18  Bruno Haible  <bruno@clisp.org>
46660
46661         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46662         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46663         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46664         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46665         * m4/gettext.m4: Require autoconf >= 2.52.
46666         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46667         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46668         of gl_cv_header_inttypes_h.
46669
46670 2006-09-18  Bruno Haible  <bruno@clisp.org>
46671
46672         * lib/javaversion.c: Include configmake.h.
46673
46674 2006-09-18  Bruno Haible  <bruno@clisp.org>
46675
46676         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46677         avoid that the while loops be executed in a subshell.
46678
46679 2006-09-18  Bruno Haible  <bruno@clisp.org>
46680
46681         * MODULES.html.sh (func_module): Break long lines.
46682         Suggested by Bruce Korb <bkorb@gnu.org>.
46683
46684 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46685
46686         Speed up by a factor of 1.12.
46687         * gnulib-tool (nl): New variable.
46688         (func_import): Rewrite include directive extraction to only read each
46689         directive once.
46690
46691 2006-09-17  Bruno Haible  <bruno@clisp.org>
46692
46693         * modules/javaversion (Makefile.am): Remove DEFS setting.
46694         (Depends-on): Add configmake, for PKGDATADIR definition.
46695
46696 2006-09-17  Bruno Haible  <bruno@clisp.org>
46697
46698         * gnulib-tool (func_create_testdir): Rewrite all files at once.
46699
46700 2006-09-17  Bruno Haible  <bruno@clisp.org>
46701
46702         * gnulib-tool (func_append): New function, stolen from libtool.m4.
46703         (func_modules_transitive_closure, func_modules_add_dummy,
46704         func_modules_to_filelist, func_import, func_create_testdir,
46705         func_create_megatestdir, ...): Use it wherever possible.
46706         Suggested by Ralf Wildenhues.
46707
46708 2006-09-16  Karl Berry  <karl@gnu.org>
46709
46710         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
46711         to avoid sectioning errors.
46712         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
46713         [ifinfo]: blank line after @center-ed titles.
46714         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
46715         Spell FSF address consistently with others.
46716         (These changes approved by rms.)
46717
46718 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46719
46720         Speed up by a factor of 1.61.
46721         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
46722         already checked module names again.
46723
46724 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46725
46726         Speed up by a factor of 1.13.
46727         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
46728         for new_files, and the input to func_add_or_update.
46729
46730 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46731
46732         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
46733         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
46734
46735 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46736
46737         * modules/mkancesdirs (Depends-on): Add fcntl.
46738         * modules/savewd: New file.
46739         * MODULES.html.sh (File system functions): Add savewd.
46740
46741         * modules/configmake (Makefile.am): Add support for the
46742         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
46743
46744 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46745
46746         * m4/savewd.m4: New file.
46747
46748 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46749
46750         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
46751         (dirchownmod): New arg FD.  All callers changed.
46752         Use FD rather than opening the directory ourself, as opening is
46753         now the caller's responsibility.
46754         * lib/dirchownmod.h: Likewise.
46755         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
46756         hosts that require <sys/types.h> before <sys/stat.h>.  Include
46757         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
46758         (test_dir): Remove.
46759         (mkancesdirs): Return length of prefix of FILE that has already
46760         been made, or -2 if there is a child doing the work.  Redo
46761         algorithm so that it is O(N) rather than O(N**2).  Optimize away
46762         ".", and treat ".." specially since it might stray back into
46763         already-created areas.  Use a subprocess if necessary.  New arg
46764         WD; all users changed.  MAKE_DIR function should now return 1
46765         if it creates a directory that is not readable.  Return -2 if
46766         a child process is spun off.
46767         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
46768         Adjust signature to match code.
46769         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
46770         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
46771         all users changed.
46772         * lib/savewd.c, lib/savewd.h: New files.
46773
46774 2006-09-15  Jim Meyering  <jim@meyering.net>
46775
46776         * modules/rename-dest-slash: New module.
46777         * MODULES.html.sh (posix_compat): Add it here.
46778
46779         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
46780
46781 2006-09-15  Jim Meyering  <jim@meyering.net>
46782
46783         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
46784         file.
46785
46786         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
46787
46788 2006-09-15  Jim Meyering  <jim@meyering.net>
46789
46790         * lib/rename-dest-slash.c (has_trailing_slash): Use
46791         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
46792         (rpl_rename_dest_slash): Perform the cheaper trailing slash
46793         test before testing whether SRC is a directory.
46794         Suggestions from Bruno Haible.
46795
46796         Avoid a warning about an unused variable.
46797         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
46798         into the #ifdef block where it's used.
46799
46800         * lib/rename-dest-slash.c: New file.
46801
46802 2006-09-14  Bruno Haible  <bruno@clisp.org>
46803
46804         * lib/allocsa.c: Include <config.h> unconditionally.
46805         * lib/asnprintf.c: Likewise.
46806         * lib/asprintf.c: Likewise.
46807         * lib/c-strcasecmp.c: Likewise.
46808         * lib/c-strcasestr.c: Likewise.
46809         * lib/c-strncasecmp.c: Likewise.
46810         * lib/c-strstr.c: Likewise.
46811         * lib/classpath.c: Likewise.
46812         * lib/clean-temp.c: Likewise.
46813         * lib/concatpath.c: Likewise.
46814         * lib/copy-file.c: Likewise.
46815         * lib/csharpcomp.c: Likewise.
46816         * lib/csharpexec.c: Likewise.
46817         * lib/execute.c: Likewise.
46818         * lib/fatal-signal.c: Likewise.
46819         * lib/findprog.c: Likewise.
46820         * lib/fwriteerror.c: Likewise.
46821         * lib/gl_array_list.c: Likewise.
46822         * lib/gl_array_oset.c: Likewise.
46823         * lib/gl_avltree_list.c: Likewise.
46824         * lib/gl_avltree_oset.c: Likewise.
46825         * lib/gl_avltreehash_list.c: Likewise.
46826         * lib/gl_carray_list.c: Likewise.
46827         * lib/gl_linked_list.c: Likewise.
46828         * lib/gl_linkedhash_list.c: Likewise.
46829         * lib/gl_list.c: Likewise.
46830         * lib/gl_oset.c: Likewise.
46831         * lib/gl_rbtree_list.c: Likewise.
46832         * lib/gl_rbtree_oset.c: Likewise.
46833         * lib/gl_rbtreehash_list.c: Likewise.
46834         * lib/imaxabs.c: Likewise.
46835         * lib/imaxdiv.c: Likewise.
46836         * lib/javacomp.c: Likewise.
46837         * lib/javaexec.c: Likewise.
46838         * lib/javaversion.c: Likewise.
46839         * lib/linebreak.c: Likewise.
46840         * lib/localcharset.c: Likewise.
46841         * lib/lock.c: Likewise.
46842         * lib/mbchar.c: Likewise.
46843         * lib/mbswidth.c: Likewise.
46844         * lib/mkdtemp.c: Likewise.
46845         * lib/pipe.c: Likewise.
46846         * lib/printf-args.c: Likewise.
46847         * lib/printf-parse.c: Likewise.
46848         * lib/progname.c: Likewise.
46849         * lib/progreloc.c: Likewise.
46850         * lib/readlink.c: Likewise.
46851         * lib/sh-quote.c: Likewise.
46852         * lib/stpcpy.c: Likewise.
46853         * lib/stpncpy.c: Likewise.
46854         * lib/strcasecmp.c: Likewise.
46855         * lib/strcasestr.c: Likewise.
46856         * lib/strcspn.c: Likewise.
46857         * lib/striconv.c: Likewise.
46858         * lib/strncasecmp.c: Likewise.
46859         * lib/strnlen1.c: Likewise.
46860         * lib/strstr.c: Likewise.
46861         * lib/strtok_r.c: Likewise.
46862         * lib/tls.c: Likewise.
46863         * lib/tmpdir.c: Likewise.
46864         * lib/unicodeio.c: Likewise.
46865         * lib/unsetenv.c: Likewise.
46866         * lib/vasnprintf.c: Likewise.
46867         * lib/vasprintf.c: Likewise.
46868         * lib/wait-process.c: Likewise.
46869         * lib/xallocsa.c: Likewise.
46870         * lib/xsetenv.c: Likewise.
46871         * lib/xstriconv.c: Likewise.
46872
46873 2006-09-13  Simon Josefsson  <jas@extundo.com>
46874
46875         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
46876         that internally, suggested by Ralf Wildenhues
46877         <Ralf.Wildenhues@gmx.de>.
46878
46879 2006-09-13  Simon Josefsson  <jas@extundo.com>
46880
46881         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
46882         @LIBOBJS@.
46883         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46884
46885 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46886
46887         * lib/_fpending.c: Include <config.h> unconditionally, since we no
46888         longer worry about uses that don't define HAVE_CONFIG_H.
46889         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
46890         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
46891         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
46892         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
46893         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
46894         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
46895         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
46896         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
46897         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
46898         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
46899         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
46900         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
46901         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
46902         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
46903         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
46904         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
46905         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
46906         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
46907         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
46908         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
46909         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
46910         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
46911         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
46912         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
46913         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
46914         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
46915         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
46916         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
46917         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
46918         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
46919         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
46920         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
46921         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
46922         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
46923         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
46924         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
46925         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
46926         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
46927         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
46928         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
46929         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
46930         Likewise.
46931
46932 2006-09-13  Eric Blake  <ebb9@byu.net>
46933
46934         * lib/getopt.c: Fix typo in last commit.
46935
46936 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46937
46938         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
46939         dgettext.
46940
46941 2006-09-12  Jim Meyering  <jim@meyering.net>
46942
46943         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
46944         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
46945         Reported by Nelson H. F. Beebe.
46946
46947 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46948
46949         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
46950         program_invocation_name and program_invocation_short_name are
46951         initialized.
46952         * lib/argp-namefrob.h: Move declarations of program_invocation_name
46953         and program_invocation_short_name to argp.h, so they are visible
46954         to user programs.
46955         * lib/argp.h: Likewise
46956
46957 2006-09-10  Bruno Haible  <bruno@clisp.org>
46958
46959         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
46960         m4/inttypes_h.m4, m4/uintmax_t.m4.
46961
46962 2006-09-10  Bruno Haible  <bruno@clisp.org>
46963
46964         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
46965         gl_AC_TYPE_UINTMAX_T.
46966
46967 2006-09-10  Bruno Haible  <bruno@clisp.org>
46968
46969         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
46970
46971 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46972
46973         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
46974         convention.  Text proposed by Bruno Haible.
46975         (struct argp_option): Document the use of N_() wrappers.
46976
46977         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
46978         '\v', and translate the two parts separately, instead of feeding
46979         the whole string to gettext.  This allows to exclude
46980         '\v' from the strings visible to the translator by writing doc
46981         strings as N_("..") "\v" N_("..").
46982
46983 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
46984
46985         * config/srclist.txt: Undo latest change; the bug was fixed.
46986
46987 2006-09-09  Bruno Haible  <bruno@clisp.org>
46988
46989         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
46990         assignments if building a library without libtool.
46991         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
46992         in func_emit_lib_Makefile_am.
46993         (func_import): When building a static library libfoo.a, arrange to
46994         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
46995         (func_create_testdir): Likewise.
46996         * modules/gc (configure.ac, Makefile.am): If building statically,
46997         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
46998         * modules/iconvme (configure.ac, Makefile.am): Likewise.
46999         * modules/striconv (configure.ac, Makefile.am): Likewise.
47000         Based on a suggestion by Ralf Wildenhues.
47001
47002 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47003
47004         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47005         Check for unistd.h too, since Autoconf doesn't assume POSIX.
47006         Also:
47007
47008         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47009         Add year_2050_test to catch glibc bug 2821
47010         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47011
47012         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47013         Prefer #ifdef to #if.
47014
47015         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
47016         Return from 'main' instead of calling 'exit'.
47017
47018 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47019
47020         * lib/mktime.c (guess_time_tm): Fix bug where mktime
47021         returned the maximum time_t value rather than (time_t) -1.
47022         Problem originally reported by William Bardwell
47023         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47024
47025         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47026         Moved to here ...
47027         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47028         ... from here.
47029
47030 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47031
47032         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
47033         2821 is fixed.
47034
47035 2006-09-08  Jim Meyering  <jim@meyering.net>
47036
47037         Don't make generated files read-only.  That would bother too many
47038         people.  However, do retain the ability to work when targets are
47039         read-only: remove the destination and temporary files before writing
47040         them (when generated via sed or echo), or by using the -f option for
47041         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
47042         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47043         * modules/byteswap, modules/configmake, modules/fcntl:
47044         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47045         * modules/localcharset, modules/netinet_in, modules/poll:
47046         * modules/stdbool, modules/stdint, modules/sys_select:
47047         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47048
47049 2006-09-08  Jim Meyering  <jim@meyering.net>
47050
47051         Avoid new build failure on FreeBSD 6.0.
47052         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
47053         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
47054         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
47055
47056 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47057
47058         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
47059
47060 2006-09-07  Jim Meyering  <jim@meyering.net>
47061
47062         Fix global typo in last change: use chmod u-w, not chmod u-x.
47063         Spotted by Paul Eggert and Bruce Korb.
47064         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47065         * modules/byteswap, modules/configmake, modules/fcntl:
47066         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47067         * modules/localcharset, modules/netinet_in, modules/poll:
47068         * modules/stdbool, modules/stdint, modules/sys_select:
47069         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47070
47071 2006-09-06  Jim Meyering  <jim@meyering.net>
47072
47073         Make generated files be read-only.
47074         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
47075         Ensure that each generated file is now read-only.
47076         * modules/argz: Likewise.
47077         * modules/arpa_inet: Likewise.
47078         * modules/byteswap: Likewise.
47079         * modules/configmake: Likewise.
47080         * modules/fcntl: Likewise.
47081         * modules/fnmatch: Likewise.
47082         * modules/getopt: Likewise.
47083         * modules/glob: Likewise.
47084         * modules/inttypes: Likewise.
47085         * modules/netinet_in: Likewise.
47086         * modules/poll: Likewise.
47087         * modules/stdbool: Likewise.
47088         * modules/stdint: Likewise.
47089         * modules/sys_select: Likewise.
47090         * modules/sys_socket: Likewise.
47091         * modules/sys_stat: Likewise.
47092         * modules/sysexits: Likewise.
47093         * modules/localcharset: Same as above, but continue using temporary
47094         file named "t-$@" (why different?) rather than the "$@-t" used
47095         everywhere else.
47096
47097         * modules/sysexits (Makefile.am): Replace literal occurrences
47098         of "sysexit.h" more readable, and more consistent, "$@".
47099
47100 2006-09-06  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/striconv: New file.
47103         * modules/xstriconv: New file.
47104         * MODULES.html.sh (Internationalization functions): Add striconv,
47105         xstriconv.
47106
47107 2006-09-06  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
47110         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
47111         not using libtool correctly.
47112
47113 2006-09-06  Bruno Haible  <bruno@clisp.org>
47114
47115         * lib/striconv.h: New file.
47116         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
47117         iconvstring.c.
47118         * lib/xstriconv.h: New file.
47119         * lib/xstriconv.c: New file.
47120
47121 2006-09-06  Bruno Haible  <bruno@clisp.org>
47122
47123         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47124         lib_..._LDFLAGS.
47125
47126 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47127
47128         * lib/argz_.h: Sync from Libtool.
47129
47130         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
47131                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47132
47133         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
47134
47135 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47136
47137         * modules/trim: New file.
47138
47139 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47140
47141         * lib/trim.h: New file.
47142         * lib/trim.c: New file.
47143
47144 2006-09-05  Bruno Haible  <bruno@clisp.org>
47145
47146         * MODULES.html.sh (String handling): Add trim.
47147
47148 2006-09-04  Karl Berry  <karl@gnu.org>
47149
47150         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
47151         until next release.
47152
47153 2006-09-03  Bruno Haible  <bruno@clisp.org>
47154
47155         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
47156         correctly.
47157
47158 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47159
47160         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
47161         not gl_GETLOADAVG.  Omit unneeded semicolons.
47162         Problems reported by Ralf Wildenhues in
47163         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47164         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
47165         at the end, which is the usual gnulib style.
47166
47167         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
47168         of doing all the work ourselves.
47169         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
47170         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
47171
47172 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47173
47174         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
47175         Problem reported by Ralf Wildenhues in
47176         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47177
47178         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
47179         HAVE_STRUCT_STATFS_F_FSTYPENAME.
47180
47181 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47182
47183         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
47184         yesterday's patch by changing test -n to test -z.
47185
47186 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47187
47188         * modules/getloadavg (Files): Add m4/getloadavg.m4.
47189         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
47190         the former is now obsolescent.
47191
47192         * modules/chdir-long (Depends-on): Add fcntl.
47193
47194 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47195
47196         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
47197         obsolescent, and programs should use gnulib instead.
47198         * m4/getloadavg.m4: New file, with contents taken from Autoconf
47199         but with prefixes changed.
47200
47201 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47202
47203         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
47204         or stdbool.h, because they might not exist while configuring.
47205
47206         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
47207         Don't include unistd.h or limits.h; not needed, since chdir-long.h
47208         does that for us.
47209         (O_DIRECTORY): Remove.
47210
47211 2006-08-31  Eric Blake  <ebb9@byu.net>
47212
47213         * gnulib-tool: Don't let emacs change spaces to TAB.
47214
47215 2006-08-31  Bruno Haible  <bruno@clisp.org>
47216
47217         * gnulib-tool: When calling func_import more than once, do it in a
47218         subshell.
47219         Reported by Eric Blake <ebb9@byu.net>.
47220
47221 2006-08-31  Bruno Haible  <bruno@clisp.org>
47222
47223         * gnulib-tool (nl): Remove variable.
47224         (sed_transform_lib_file): Use more robust test for config-h module.
47225         (func_import): Fix typo in 2006-08-25 patch.
47226
47227 2006-08-31  Bruno Haible  <bruno@clisp.org>
47228
47229         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
47230         specified, augment Makefile.am variables instead of assigning them.
47231
47232 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47233
47234         Work around a bug in both the Linux and SunOS 64-bit kernels:
47235         nanosleep mishandles sleeps for longer than 2**31 seconds.
47236         Problem reported by Frank v Waveren in
47237         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
47239         Check for nanosleep bug.
47240         (LIB_NANOSLEEP): Append clock_gettime library if needed.
47241
47242 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47243
47244         Work around a bug in both the Linux and SunOS 64-bit kernels:
47245         nanosleep mishandles sleeps for longer than 2**31 seconds.
47246         Problem reported by Frank v Waveren in
47247         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47248         * lib/nanosleep.c (BILLION): New constant.
47249         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
47250         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
47251         implementation.
47252
47253 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47254
47255         * modules/nanosleep (Depends-on): Add gettime.
47256
47257 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47258         and Simon Josefsson  <jas@extundo.com>
47259         and Oskar Liljeblad  <oskar@osk.mine.nu>
47260
47261         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
47262         * gnulib-tool (func_import): New license type 'unmodifiable license
47263         text'.
47264         * modules/fdl: Use it.  Longer description.
47265         * module/gpl, module/lgpl: New files.
47266
47267 2006-08-30  Jim Meyering  <jim@meyering.net>
47268
47269         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
47270         shadowing the parameter.
47271
47272 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47273
47274         Sync from Libtool:
47275
47276         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47277
47278         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
47279         sharing with gnulib.  Report by Eric Blake.
47280
47281 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47282
47283         * modules/isapipe: New file.
47284         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
47285
47286 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47287
47288         * modules/configmake (Makefile.am): Add a comment, and omit
47289         the CONFIGMAKE_ prefix from generated macro names.  Suggested
47290         by Bruno Haible.
47291
47292 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47293
47294         * m4/isapipe.m4: New file.
47295
47296 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47297
47298         * lib/isapipe.c, lib/isapipe.h: New files.
47299
47300 2006-08-29  Jim Meyering  <jim@meyering.net>
47301
47302         * modules/configmake (Makefile.am): Make configmake.h depend on
47303         Makefile.  Otherwise, a stale configmake.h could hang around.
47304
47305 2006-08-29  Eric Blake  <ebb9@byu.net>
47306
47307         * lib/error.c (error_at_line, print_errno_message): Match libc, after
47308         resolution of upstream bug 3044.
47309
47310 2006-08-29  Bruno Haible  <bruno@clisp.org>
47311
47312         * modules/localcharset (Depends-on): Add configmake.
47313         (Makefile.am): Remove setting of LIBDIR through DEFS.
47314
47315 2006-08-29  Bruno Haible  <bruno@clisp.org>
47316
47317         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
47318         defined.
47319
47320 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47321
47322         * modules/fcntl: New file.
47323         * modules/chdir-safer (Depends-on): Add fcntl.
47324         * modules/fts: Likewise.
47325         * modules/mkdir-p: Likewise.
47326
47327         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
47328         This undoes the most recent change, since we're now addressing the
47329         problem in a different way.
47330
47331         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
47332         into output, since the output might be called Makefile.am even
47333         if $makefile_name is something different.
47334         (func_import): Use $makefile_am rather than
47335         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
47336         empty.
47337
47338         * modules/inttypes (Files): Add m4/inttypes-h.m4.
47339
47340 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
47343         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
47344         recent change to stdint.m4, since we're now addressing the problem in a
47345         different way.
47346
47347 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47348
47349         * m4/fcntl_h.m4: New file.
47350
47351 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47352
47353         * lib/fcntl_.h: New file.
47354         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
47355         the fcntl module.
47356         * lib/dirchownmod.c: Likewise.
47357         * lib/fts.c: Likewise.
47358
47359         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
47360         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
47361         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
47362         just before including <inttypes.h>, to avoid circular inclusion.
47363
47364 2006-08-28  Jim Meyering  <jim@meyering.net>
47365
47366         * doc/visibility.texi: Actually read and correct the grammar of the
47367         sentence affected by yesterday's change.
47368
47369 2006-08-28  Eric Blake  <ebb9@byu.net>
47370
47371         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
47372         needs wrapper.
47373
47374 2006-08-28  Eric Blake  <ebb9@byu.net>
47375
47376         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
47377
47378 2006-08-28  Eric Blake  <ebb9@byu.net>
47379
47380         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
47381
47382 2006-08-28  Bruno Haible  <bruno@clisp.org>
47383
47384         * modules/c-strstr: New file, from GNU gettext.
47385         * MODULES.html.sh (String handling): Add c-strstr.
47386
47387 2006-08-28  Bruno Haible  <bruno@clisp.org>
47388
47389         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
47390         macros.
47391         Reported by Eric Blake.
47392
47393 2006-08-28  Bruno Haible  <bruno@clisp.org>
47394
47395         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
47396         (VASNPRINTF): Return a string of length > INT_MAX without failing.
47397         * lib/vasprintf.c: Include errno.h, limits.h.
47398         (EOVERFLOW): New fallback definition.
47399         (vasprintf): Test here whether the string length is > INT_MAX.
47400         * lib/vsnprintf.c: Include errno.h, limits.h.
47401         (EOVERFLOW): New fallback definition.
47402         (vsnprintf): Fix bug when generated string was too long for the buffer.
47403         Test here whether the string length is > INT_MAX.
47404
47405 2006-08-28  Bruno Haible  <bruno@clisp.org>
47406
47407         * lib/inttypes_.h (SCNX*): Remove definitions.
47408         Reported by Eric Blake.
47409
47410 2006-08-28  Bruno Haible  <bruno@clisp.org>
47411
47412         * lib/c-strstr.h: New file, from GNU gettext.
47413         * lib/c-strstr.c: New file, from GNU gettext.
47414
47415 2006-08-28  Bruno Haible  <bruno@clisp.org>
47416
47417         * gnulib-tool: Reorder some statements.
47418
47419 2006-08-28  Bruno Haible  <bruno@clisp.org>
47420
47421         * gnulib-tool: New option --makefile-name.
47422         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
47423         $makefile_name.
47424         (func_import): Write $makefile_name to the cache file, and read it from
47425         there unless explicitly specified. Use $makefile_name as file name
47426         instead of Makefile.am. Adjust the recommendations accordingly.
47427
47428 2006-08-28  Bruno Haible  <bruno@clisp.org>
47429
47430         * gnulib-tool (func_verify_module): Check against misapplying patch.
47431
47432 2006-08-28  Bruno Haible  <bruno@clisp.org>
47433
47434         * gnulib-tool (func_relativize, func_relconcat): New functions.
47435         Give an error if --local-dir is given with --update.
47436         Remove trailing slashes from $local_gnulib_dir.
47437         (func_import): Store the relativized $local_gnulib_dir in
47438         gnulib-cache.m4, and read it from there if not specified explicitly.
47439
47440 2006-08-28  Bruno Haible  <bruno@clisp.org>
47441
47442         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
47443         is the current directory. Respect also $local_gnulib_dir.
47444
47445 2006-08-28  Bruno Haible  <bruno@clisp.org>
47446             Simon Josefsson  <jas@extundo.com>
47447
47448         BeOS portability.
47449         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
47450
47451 2006-08-27  Jim Meyering  <jim@meyering.net>
47452
47453         * doc/visibility.texi: Remove duplicate word: "pointer".
47454
47455 2006-08-26  Bruno Haible  <bruno@clisp.org>
47456
47457         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
47458         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
47459         (Makefile.am): Create inttypes.h from inttypes_.h.
47460         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
47461
47462         * modules/imaxabs: New file.
47463
47464         * modules/imaxdiv: New file.
47465
47466 2006-08-26  Bruno Haible  <bruno@clisp.org>
47467
47468         * m4/inttypes.m4: New file.
47469         * m4/_inttypes_h.m4: Remove file.
47470         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
47471         PRI_MACROS_BROKEN.
47472         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
47473
47474         * m4/imaxabs.m4: New file.
47475
47476         * m4/imaxdiv.m4: New file.
47477
47478 2006-08-26  Bruno Haible  <bruno@clisp.org>
47479
47480         * lib/inttypes_.h: New file.
47481         * lib/inttypes.h: Remove file.
47482         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
47483
47484         * lib/imaxabs.c: New file.
47485
47486         * lib/imaxdiv.c: New file.
47487
47488 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47489
47490         New config-h module, so that "make" output needn't be cluttered
47491         by -DHAVE_CONFIG_H.
47492         * MODULES.html.sh (Support for building libraries and executables):
47493         Add config-h.
47494         * modules/config-h: New file.
47495         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47496         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47497         the config-h module is used.
47498
47499         New configmake module, so that "make" output needn't be cluttered
47500         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47501         * MODULES.html.sh (Support for building libraries and executables):
47502         Add configmake.
47503         * modules/configmake: New file.
47504
47505 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47506
47507         * m4/config-h.m4: New file.
47508
47509 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47510
47511         * config/srclist.txt: Add elisp-comp.
47512
47513 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47514
47515         * MODULES.html.sh (Support for building libraries and executables):
47516         Add elisp-comp.
47517         * build-aux/elisp-comp: New file.
47518         * modules/elisp-comp: New file.
47519
47520 2006-08-24  Bruno Haible  <bruno@clisp.org>
47521
47522         * gnulib-tool (func_create_testdir): Use non-default values of
47523         sourcebase and m4base.
47524
47525 2006-08-24  Bruno Haible  <bruno@clisp.org>
47526
47527         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47528         HTML structure.
47529
47530 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47531
47532         * modules/openat (Depends-on): Add lchown.
47533
47534 2006-08-23  Bruno Haible  <bruno@clisp.org>
47535
47536         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47537         of gl_LOCK_EARLY instead of gl_LOCK.
47538
47539 2006-08-23  Bruno Haible  <bruno@clisp.org>
47540
47541         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47542         on OSF/1 to no.
47543         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47544
47545 2006-08-23  Bruno Haible  <bruno@clisp.org>
47546
47547         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47548         as unusable.
47549
47550         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47551         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47552         (gl_LOCK): New macro.
47553
47554 2006-08-22  Simon Josefsson  <jas@extundo.com>
47555
47556         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47557         to md5 module.
47558
47559 2006-08-22  Simon Josefsson  <jas@extundo.com>
47560
47561         * MODULES.html.sh: Add "Support for maintaining and release
47562         projects".
47563
47564         * build-aux/gnupload: New file, from coreutils.
47565
47566 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47567
47568         Avoid the need for AC_LIBSOURCES in m4 macros.
47569         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47570         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47571         * modules/check-version (EXTRA_DIST): Add check-version.h.
47572         * modules/crc (EXTRA_DIST): Add crc.h.
47573         * modules/des (EXTRA_DIST): Add des.h.
47574         * modules/gc (EXTRA_DIST): Add gc.h.
47575         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47576         * modules/getline (EXTRA_DIST): Add getline.h.
47577         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47578         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47579         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47580         * modules/md2 (EXTRA_DIST): Add md2.h.
47581         * modules/md4 (EXTRA_DIST): Add md4.h.
47582         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47583         * modules/read-file (EXTRA_DIST): Add read-file.h.
47584         * modules/readline (EXTRA_DIST): Add readline.h.
47585         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47586         rijndael-api-fst.h.
47587
47588 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47589
47590         * m4/rijndael.m4 (gl_ARCFOUR):
47591         * m4/arctwo.m4 (gl_ARCTWO):
47592         * m4/check-version.m4 (gl_CHECK_VERSION):
47593         * m4/crc.m4 (gl_CRC):
47594         * m4/des.m4 (gl_DES):
47595         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47596         * m4/gc.m4 (gl_GC):
47597         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47598         * m4/getline.m4 (gl_FUNC_GETLINE):
47599         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47600         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47601         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47602         * m4/md2.m4 (gl_MD2):
47603         * m4/md4.m4 (gl_MD4):
47604         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47605         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47606         * m4/readline.m4 (gl_FUNC_READLINE):
47607         * m4/rijndael.m4 (gl_RIJNDAEL):
47608         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47609         to get the necessary .h files and whatnot.
47610
47611 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47612
47613         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47614         gnulib rather than the other way around.
47615         * config/srclistvars.sh (COREUTILS): Remove.
47616
47617 2006-08-22  Jim Meyering  <jim@meyering.net>
47618
47619         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47620
47621         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47622
47623 2006-08-22  Eric Blake  <ebb9@byu.net>
47624
47625         * modules/regexprops-generic: New file.
47626         * MODULES.html.sh (Support for building documentation): List it.
47627
47628 2006-08-22  Eric Blake  <ebb9@byu.net>
47629
47630         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47631         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47632         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47633         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47634
47635 2006-08-22  Bruno Haible  <bruno@clisp.org>
47636
47637         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47638         and lib_LTLIBRARIES like the other lib_* variables.
47639
47640 2006-08-22  Bruno Haible  <bruno@clisp.org>
47641
47642         * build-aux/x-to-1.in: New file, from GNU gettext.
47643
47644 2006-08-22  Bruno Haible  <bruno@clisp.org>
47645
47646         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47647         <utmpx.h> exists.
47648
47649 2006-08-22  Bruno Haible  <bruno@clisp.org>
47650
47651         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47652         <utmpx.h> exists.
47653
47654 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47655
47656         BeOS portability.
47657         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47658         exist.
47659         Problem reported by Bruno Haible.
47660
47661 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47662
47663         Avoid the need for AC_LIBSOURCES in m4 macros.
47664         * modules/acl (EXTRA_DIST): Add acl.h.
47665         * modules/argmatch (Files): Add m4/argmatch.m4.
47666         (configure.ac): Add gl_ARGMATCH.
47667         (EXTRA_DIST): Renamed from lib_SOURCES, for
47668         consistency with the other modules.  Remove argmatch.c.
47669         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47670         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47671         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47672         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47673         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47674         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47675         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47676         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47677         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
47678         * modules/closeout (EXTRA_DIST): Add closeout.h.
47679         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
47680         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
47681         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
47682         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
47683         dirname.h; remove basename.c and stripslash.c.
47684         * modules/exclude (EXTRA_DIST): Add exclude.h.
47685         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
47686         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
47687         * modules/file-type (EXTRA_DIST): Add file-type.h.
47688         * modules/filemode (EXTRA_DIST): Add filemode.h.
47689         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
47690         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47691         * modules/fpending (EXTRA_DIST): Add __fpending.h.
47692         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
47693         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
47694         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
47695         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
47696         * modules/getdate (EXTRA_DIST): Add getdate.c.
47697         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
47698         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
47699         * modules/getpass (EXTRA_DIST): Add getpass.h.
47700         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
47701         * modules/group-member (EXTRA_DIST): Add group-member.h.
47702         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
47703         * modules/hash (EXTRA_DIST): Add hash.h.
47704         * modules/human (EXTRA_DIST): Add human.h.
47705         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
47706         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
47707         * modules/lchown (EXTRA_DIST): Add lchown.h.
47708         * modules/long-options (EXTRA_DIST): Add long-options.h.
47709         * modules/lstat (EXTRA_DIST): Add lstat.h.
47710         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
47711         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
47712         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
47713         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
47714         * modules/memxor (EXTRA_DIST): Add memxor.h.
47715         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
47716         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
47717         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
47718         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
47719         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
47720         * modules/physmem (EXTRA_DIST): Add physmem.h.
47721         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
47722         * modules/posixver (EXTRA_DIST): Add posixver.h.
47723         * modules/quote (EXTRA_DIST): Add quote.h.
47724         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
47725         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
47726         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
47727         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
47728         regex_internal.h regexec.c.
47729         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
47730         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
47731         * modules/same (EXTRA_DIST): Add same.h.
47732         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
47733         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
47734         * modules/savedir (EXTRA_DIST): Add savedir.h.
47735         * modules/sha1 (EXTRA_DIST): Add sha1.h.
47736         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
47737         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
47738         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
47739         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
47740         * modules/strdup (EXTRA_DIST): Add strdup.h.
47741         * modules/strftime (EXTRA_DIST): Add strftime.h.
47742         * modules/strndup (EXTRA_DIST): Add strndup.h.
47743         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
47744         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
47745         * modules/time_r (EXTRA_DIST): Add time_r.h.
47746         * modules/timespec (EXTRA_DIST): Add timespec.h.
47747         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47748         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
47749         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
47750         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
47751         * modules/userspec (EXTRA_DIST): Add userspec.h.
47752         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
47753         * modules/utimens (EXTRA_DIST): Add utimens.h.
47754         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
47755         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
47756         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
47757         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
47758         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
47759         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
47760         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
47761         * modules/yesno (EXTRA_DIST): Add yesno.h.
47762
47763 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47764
47765         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
47766
47767         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
47768         * m4/dev-ino.m4, same-inode.m4: Remove.
47769
47770         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
47771         * m4/acl.m4 (AC_FUNC_ACL):
47772         * m4/backupfile.m4 (gl_BACKUPFILE):
47773         * m4/c-strtod.m4 (gl_C99_STRTOLD):
47774         * m4/canon-host.m4 (gl_CANON_HOST):
47775         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47776         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
47777         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
47778         * m4/cloexec.m4 (gl_CLOEXEC):
47779         * m4/close-stream.m4 (gl_CLOSE_STREAM):
47780         * m4/closeout.m4 (gl_CLOSEOUT):
47781         * m4/dirfd.m4 (gl_FUNC_DIRFD):
47782         * m4/dirname.m4 (gl_DIRNAME):
47783         * m4/exclude.m4 (gl_EXCLUDE):
47784         * m4/exitfail.m4 (gl_EXITFAIL):
47785         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
47786         * m4/file-type.m4 (gl_FILE_TYPE):
47787         * m4/filemode.m4 (gl_FILEMODE):
47788         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
47789         * m4/fpending.m4 (gl_FUNC_FPENDING):
47790         * m4/fprintftime.m4 (gl_FPRINTFTIME):
47791         * m4/fts.m4 (gl_FUNC_FTS):
47792         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
47793         * m4/getdate.m4 (gl_GETDATE):
47794         * m4/gethrxtime.m4 (gl_GETHRXTIME):
47795         * m4/getpagesize.m4 (gl_GETPAGESIZE):
47796         * m4/getpass.m4 (gl_FUNC_GETPASS):
47797         * m4/gettime.m4 (gl_GETTIME):
47798         * m4/getugroups.m4 (gl_GETUGROUPS):
47799         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
47800         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
47801         * m4/hard-locale.m4 (gl_HARD_LOCALE):
47802         * m4/hash.m4 (gl_HASH):
47803         * m4/idcache.m4 (gl_IDCACHE):
47804         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
47805         * m4/lchown.m4 (gl_FUNC_LCHOWN):
47806         * m4/long-options.m4 (gl_LONG_OPTIONS):
47807         * m4/lstat.m4 (gl_FUNC_LSTAT):
47808         * m4/md5.m4 (gl_MD5):
47809         * m4/memcasecmp.m4 (gl_MEMCASECMP):
47810         * m4/memcoll.m4 (gl_MEMCOLL):
47811         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
47812         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
47813         * m4/memxor.m4 (gl_MEMXOR):
47814         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
47815         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
47816         * m4/modechange.m4 (gl_MODECHANGE):
47817         * m4/mountlist.m4 (gl_MOUNTLIST):
47818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47819         * m4/openat.m4 (gl_FUNC_OPENAT):
47820         * m4/pathmax.m4 (gl_PATHMAX):
47821         * m4/physmem.m4 (gl_PHYSMEM):
47822         * m4/posixtm.m4 (gl_POSIXTM):
47823         * m4/posixver.m4 (gl_POSIXVER):
47824         * m4/quote.m4 (gl_QUOTE):
47825         * m4/quotearg.m4 (gl_QUOTEARG):
47826         * m4/readtokens.m4 (gl_READTOKENS):
47827         * m4/readutmp.m4 (gl_READUTMP):
47828         * m4/regex.m4 (gl_REGEX):
47829         * m4/safe-read.m4 (gl_SAFE_READ):
47830         * m4/safe-write.m4 (gl_SAFE_WRITE):
47831         * m4/same.m4 (gl_SAME):
47832         * m4/save-cwd.m4 (gl_SAVE_CWD):
47833         * m4/savedir.m4 (gl_SAVEDIR):
47834         * m4/settime.m4 (gl_SETTIME):
47835         * m4/sha1.m4 (gl_SHA1):
47836         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
47837         * m4/stat-macros.m4 (gl_STAT_MACROS):
47838         * m4/stat-time.m4 (gl_STAT_TIME):
47839         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
47840         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
47841         * m4/strdup.m4 (gl_FUNC_STRDUP):
47842         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
47843         * m4/strndup.m4 (gl_FUNC_STRNDUP):
47844         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
47845         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
47846         * m4/time_r.m4 (gl_TIME_R):
47847         * m4/timespec.m4 (gl_TIMESPEC):
47848         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
47849         * m4/unlinkdir.m4 (gl_UNLINKDIR):
47850         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
47851         * m4/userspec.m4 (gl_USERSPEC):
47852         * m4/utimecmp.m4 (gl_UTIMECMP):
47853         * m4/utimens.m4 (gl_UTIMENS):
47854         * m4/xalloc.m4 (gl_XALLOC):
47855         * m4/xgetcwd.m4 (gl_XGETCWD):
47856         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
47857         * m4/xreadlink.m4 (gl_XREADLINK):
47858         * m4/xstrtod.m4 (gl_XSTRTOD):
47859         * m4/yesno.m4 (gl_YESNO):
47860         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47861         to get the necessary .h files and whatnot.
47862
47863 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
47864             Bruno Haible  <bruno@clisp.org>
47865
47866         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
47867         /bin/sh understanding of '!' conditional negation.
47868
47869 2006-08-21  Jim Meyering  <jim@meyering.net>
47870
47871         * modules/openat (Depends-on): Really alphabetize.
47872
47873         * modules/acl (Depends-on): Add error and quote.
47874
47875         * check-module (find_included_lib_files): Add at-func.c to the
47876         ok-to-include-more-than-once white list.
47877
47878         * modules/openat (Depends-on): Add lstat.  Alphabetize.
47879
47880 2006-08-21  Bruno Haible  <bruno@clisp.org>
47881
47882         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47883         Emit a pkgdata_DATA variable only if some snippets add contents to it.
47884         Reported by Martin Lambers <marlam@marlam.de>.
47885
47886 2006-08-21  Bruno Haible  <bruno@clisp.org>
47887
47888         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
47889         specify an installation location, don't emit a noinst_LIBRARIES or
47890         noinst_LTLIBRARIES assignment.
47891
47892 2006-08-21  Bruno Haible  <bruno@clisp.org>
47893
47894         BeOS portability.
47895         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
47896         BeOS has mbrtowc() but no <wctype.h>.
47897
47898 2006-08-21  Bruno Haible  <bruno@clisp.org>
47899
47900         BeOS portability.
47901         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
47902         exist.
47903
47904 2006-08-21  Bruno Haible  <bruno@clisp.org>
47905
47906         BeOS portability.
47907         * lib/mbchar.h: Include <wctype.h> only if it exists.
47908
47909 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47910
47911         Remove files that are no longer needed by their respective modules.
47912         * m4/obstack.m4: Remove.
47913         * m4/strerror_r.m4: Remove.
47914         * m4/uint32_t.m4: Remove.
47915         * m4/uintptr_t.m4: Remove.
47916         * m4/ullong_max.m4: Remove.
47917         * m4/xstrtoimax.m4: Remove.
47918         * m4/xstrtoumax.m4: Remove.
47919
47920         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
47921         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
47922         dependencies now capture this.
47923
47924         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
47925         Do not use AC_LIBSOURCES, since gnulib modules now do this.
47926         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
47927         * m4/human.m4 (gl_HUMAN): Likewise.
47928         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
47929         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
47930
47931         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
47932
47933         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
47934         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
47935         stdint.
47936         * m4/human.m4 (gl_HUMAN): Likewise.
47937         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
47938         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
47939         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47940         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47941         * m4/xstrtol (gl_XSTRTOL): Likewise.
47942
47943         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
47944         AC_TYPE_LONG_LONG_INT.
47945         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47946         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
47947         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
47948         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47949
47950         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
47951         on stdbool.
47952
47953         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
47954         (gl_PREREQ_XSTRTOUL): Remove.
47955
47956         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
47957
47958         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
47959         mode.
47960
47961 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47962
47963         Add and change modules to make it easier for coreutils to use
47964         gnulib-tool.
47965         * modules/backupfile (Files): Remove m4/d-ino.m4.
47966         (Depends-on): Add d-ino.
47967         * modules/cycle-check (Depends-on): Add stdint.
47968         (lib_SOURCES): Add cycle-check.h.
47969         * modules/d-ino: New module.
47970         * modules/d-type: New module.
47971         * modules/error (Files): Remove m4/strerror_r.m4.
47972         * modules/filemode (Files): Add m4/st_dm_mode.m4.
47973         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47974         m4/inttypes_h.m4, m4/uintmax_t.m4.
47975         (Depends-on): Add stdint.
47976         (lib_SOURCES): Add fsusage.h.
47977         * modules/getcwd (Files): Remove d-ino.m4.
47978         (Depends-on): Add d-ino.
47979         * modules/getndelim2 (Depends-on): Add stdint.
47980         * modules/glob (Files): Remove m4/d-type.m4.
47981         (Depends-on): Add d-type.
47982         * modules/host-os: New module.
47983         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
47984         m4/inttypes_h.m4, m4/uintmax_t.m4.
47985         * Depends-on: Add stdint.
47986         (lib_SOURCES): Add human.h.
47987         * modules/inttostr (Files): Remove m4/intmax_t.m4,
47988         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
47989         m4/uintmax_t.m4, m4/ulonglong.m4.
47990         (Depends-on): Add stdint.
47991         (EXTRA_DIST): Add inttostr.h.
47992         * modules/lchmod: New module.
47993         * modules/link-follow: New module.
47994         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
47995         (Depends-on): Add lchmod.
47996         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
47997         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
47998         (Depends-on): Add stdint.
47999         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
48000         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
48001         (Depends-on): Add stdint.
48002         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
48003         * modules/perl: New module.
48004         * modules/regex (Depends-on): Add stdint.
48005         * modules/rmdir-errno: New module.
48006         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48007         m4/intmax_t.m4.
48008         (Depends-on): Add stdint.
48009         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48010         m4/uintmax_t.m4.
48011         (Depends-on): Add stdint.
48012         * modules/unlink-busy: New module.
48013         * modules/utimecmp (Depends-on): Add stdint.
48014         * modules/uptime: New module.
48015         * modules/winsz-ioctl: New module.
48016         * modules/winsz-termios: New module.
48017         * modules/xnanosleep (Depends-on): Add nanosleep.
48018         * modules/ullong_max: Remove.
48019         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
48020         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
48021         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
48022         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
48023         (Depends-on): Add inttypes.
48024         (lib_SOURCES): Add xstrtol.h.
48025         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
48026         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
48027         * MODULES.html.sh: Move 'assert' into the assert section.
48028         Move 'dummy' into the linking section.
48029         Remove ullong_max.
48030         Add section for compatibility checks for POSIX:2001 functions,
48031         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
48032         winsz-ioctl, and winsz-termios into it.
48033         Add lchmod.
48034         Add top-level Misc section and put host-os, perl, and uptime
48035         into it.
48036
48037 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48038
48039         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
48040         now assume the stdint module.  Do not include inttypes.h.
48041         * lib/fsusage.h: Likewise.
48042         * lib/getndelim2.c: Likewise.
48043         * lib/human.h: Likewise.
48044         * lib/inttostr.h: Likewise.
48045         * lib/obstack.c: Likewise.
48046         * lib/regex_internal.h: Likewise.
48047         * lib/tempname.c: Likewise.
48048         * lib/utimecmp.c: Likewise.
48049         * lib/xstrtol.h: Likewise.
48050
48051         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
48052
48053         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
48054         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
48055         * lib/xtime.h: Likewise.
48056
48057 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48058
48059         * modules/openat (Files): Add lib/fchmodat.c.
48060         Fixes problem reported by Jay Youngman.
48061
48062 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48063
48064         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
48065         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
48066
48067 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48068             Bruno Haible  <bruno@clisp.org>
48069
48070         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
48071         and is a script that invokes bison. Tighten the code. Add comments.
48072
48073 2006-08-18  Jim Meyering  <jim@meyering.net>
48074
48075         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
48076         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
48077         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
48078         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
48079
48080 2006-08-18  Bruno Haible  <bruno@clisp.org>
48081
48082         * modules/bison-i18n: New file.
48083         * MODULES.html.sh (Internationalization functions): Add it.
48084
48085 2006-08-18  Bruno Haible  <bruno@clisp.org>
48086
48087         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
48088         sys/statvfs.h. When getmntinfo was found, check its declaration and
48089         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
48090
48091 2006-08-18  Bruno Haible  <bruno@clisp.org>
48092
48093         * m4/bison-i18n.m4: New file, from bison.
48094
48095 2006-08-18  Bruno Haible  <bruno@clisp.org>
48096
48097         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
48098         (ME_DUMMY): Treat "kernfs" as a dummy.
48099         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
48100
48101 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48102
48103         Update from coreutils.
48104
48105         2006-08-15  Jim Meyering  <jim@meyering.net>
48106
48107         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
48108
48109         2006-01-17  Jim Meyering  <jim@meyering.net>
48110
48111         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
48112
48113         2006-01-11  Jim Meyering  <jim@meyering.net>
48114
48115         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
48116         Check for the lchmod function.
48117
48118 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48119
48120         Update from coreutils.
48121
48122         * lib/__fpending.h: Add copyright notice.
48123         * lib/fprintftime.h: Likewise.
48124         * lib/savedir.c: Use (C) in copyright notice.
48125         * lib/savedir.h: Likewise.
48126
48127         2006-08-15  Jim Meyering  <jim@meyering.net>
48128
48129         * lib/at-func.c: New file, with the logic of all emulated at-functions.
48130         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
48131         in support of the EXPECTED_ERRNO macro.
48132         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
48133         definitions.  Instead, define the appropriate symbols and include
48134         "at-func.c".
48135         * lib/mkdirat.c (mkdirat): Likewise.
48136         * lib/fchmodat.c (fchmodat): Likewise.
48137         (ENOSYS): Remove definition.
48138         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
48139         it.  Don't include "unistd--.h" -- it wasn't ever used.
48140
48141         2006-01-17  Jim Meyering  <jim@meyering.net>
48142
48143         Rewrite fts.c not to change the current working directory,
48144         by using openat, fstatat, fdopendir, etc..
48145
48146         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
48147         (HAVE_OPENAT_SUPPORT): Define.
48148         [_LIBC] (fchdir): Don't undef or define; no longer used.
48149         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
48150         Now, this `function' always succeeds, and consumes its file descriptor
48151         parameter -- so callers must not close such FDs.  Update callers.
48152         (diropen_fd, opendirat, cwd_advance_fd): New functions.
48153         (diropen): Add parameter, SP.  Adjust all callers.
48154         Implement using diropen_fd, rather than open.
48155         (fts_open): Initialize new member, fts_cwd_fd.
48156         Remove fts_rft-setting code.
48157         (fts_close): Close fts_cwd_fd, if necessary.
48158         (__opendir2): Define in terms of opendir or opendirat,
48159         depending on whether the FST_NOCHDIR flag is set.
48160         (fts_build): Since fts_safe_changedir consumes its FD, and since
48161         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
48162         and close the dup'd file descriptor upon failure.
48163         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
48164         (fts_safe_changedir): Tweak semantics to reflect that this function
48165         now calls cwd_advance_fd and hence consumes its FD argument.
48166         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
48167         [struct FTS] (fts_rft): Remove now-unused member.
48168         [struct FTS] (fts_cycle.state): Improve comment.
48169
48170         * lib/openat.c (openat_needs_fchdir): New function.
48171         * lib/openat.h (openat_needs_fchdir): Declare it.
48172
48173 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48174
48175         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
48176         Problem and fix reported by Pádraig Brady in
48177         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
48178
48179 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48180
48181         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
48182
48183 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48184
48185         * lib/memcoll.c (memcoll): Optimize for the common case where the
48186         arguments are bytewise equal.
48187
48188 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48189
48190         * doc/regexprops-generic.texi: Add a copyright notice.
48191
48192 2006-08-15  Bruno Haible  <bruno@clisp.org>
48193
48194         * modules/tmpdir (License): Change to LGPL.
48195
48196 2006-08-15  Bruno Haible  <bruno@clisp.org>
48197
48198         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
48199         module.
48200
48201 2006-08-14  Simon Josefsson  <jas@extundo.com>
48202
48203         * config/srclist.txt: Add gnupload.
48204
48205 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48206
48207         Change copyright notice from LGPL 2 to GPL 2, since that's the
48208         standard form used in the gnulib repository.
48209         * tests/test-lock.c: Likewise.
48210         * tests/test-stdint.c: Likewise.
48211         * tests/test-tls.c: Likewise.
48212
48213         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
48214         prelude-manager.  User shorter URLs for GNU projects, without '?'.
48215         Add copyright notice.
48216
48217         * check-module: Add copyright notice.  Output a copyright
48218         notice if "--version" is specified.
48219         * modules/COPYING: New file.
48220         * tests/test-getaddrinfo.c: Add copyright notice.
48221         * tests/test-verify.c: Likewise.
48222
48223 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48224
48225         Change copyright notice from LGPL 2 to GPL 2, since that's the
48226         standard form used in the gnulib repository.
48227         * lib/lock.c: LGPL -> GPL.
48228         * lib/lock.h: Likewise.
48229         * lib/strnlen1.c: Likewise.
48230         * lib/strnlen1.h: Likewise.
48231         * lib/tls.c: Likewise.
48232         * lib/tls.h: Likewise.
48233         * lib/tmpdir.c: Likewise.
48234
48235         * lib/TODO: Remove; this belongs only in coreutils.
48236
48237 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48238
48239         Add copyright notices to long-enough files that lack them, since
48240         otherwise the files aren't clearly free.  Use the same notice that
48241         getdate.texi already uses.
48242         * doc/alloca-opt.texi: Add copyright notice.
48243         * doc/alloca.texi: Likewise.
48244         * doc/ctime.texi: Likewise.
48245         * doc/functions.texi: Likewise.
48246         * doc/gcd.texi: Likewise.
48247         * doc/gnulib-tool.texi: Likewise.
48248         * doc/inet_ntoa.texi: Likewise.
48249         * doc/visibility.texi: Likewise.
48250
48251         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
48252         * doc/quote.texi: Add copyright notice.
48253
48254         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
48255         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
48256         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
48257         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
48258         is now obsolete, and give a pointer to the Sun list.
48259         Add copyright notice.
48260
48261 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48262
48263         * config/srclistvars.sh: Add copyright notice.
48264
48265 2006-08-14  Eric Blake  <ebb9@byu.net>
48266
48267         Import the following change from libc:
48268
48269         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
48270
48271         Upstream bug 2997.
48272         * lib/misc/error.c: Add space between program name and message if file
48273         name is missing.
48274
48275 2006-08-12  Karl Berry  <karl@gnu.org>
48276
48277         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
48278         remove, these originate in gnulib now.
48279
48280 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48281
48282         * doc/Makefile (standards.info standards.html standards.dvi):
48283         Also depend on make-stds.texi.
48284
48285 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48286
48287         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
48288         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
48289
48290         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
48291         in wchar_t.  Problem reported by Eric Blake.
48292
48293         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
48294         LEN is smaller than SIZE.  Suggested by Bruno Haible.
48295         Also, help the compiler to keep LEN in a register.
48296
48297 2006-08-11  Eric Blake  <ebb9@byu.net>
48298
48299         * users.txt: Sort.  Add tar.
48300
48301 2006-08-11  Bruno Haible  <bruno@clisp.org>
48302
48303         * users.txt: New file.
48304
48305 2006-08-11  Bruno Haible  <bruno@clisp.org>
48306
48307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
48308         before <wchar.h>. Needed for OSF/1 and BSD/OS.
48309
48310 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48311
48312         * modules/snprintf (Depends-on): Remove minmax.
48313         (Maintainer): Add self and Bruno.
48314
48315 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48316
48317         * lib/.cppi-disable: Add snprintf.h, socket_.h.
48318         * lib/snprintf.c: Include <errno.h> and <limits.h>.
48319         (EOVERFLOW): Define if the system does not.
48320         Do not include "minmax.h"; it wasn't used.
48321         (snprintf): Don't assume size_t promotes to an unsigned type.
48322         Fix bug when generated string was too long for the buffer: the
48323         buffer's contents are supposed to be the initial prefix of the
48324         output.  Don't assume vasnprintf returns EOVERFLOW if the size
48325         exceeds INT_MAX; do the check ourselves.
48326
48327         Import the following changes from libc:
48328
48329         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
48330
48331         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
48332         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
48333         set wc to the byte which couldn't be converted.
48334         (re_string_reconstruct): Don't clear valid_raw_len before calling
48335         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
48336         tip_context using re_string_context_at.
48337
48338         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
48339
48340         * lib/posix/regex.h: g++ still cannot handled [restrict].
48341
48342         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
48343
48344         * lib/posix/regex.h: Remove special handling for VMS.
48345
48346 2006-08-10  Jim Meyering  <jim@meyering.net>
48347
48348         * modules/same-inode: New module.
48349         * modules/dev-ino: New module.
48350         * modules/cycle-check: Depend on these modules, rather than simply
48351         including their .h files.
48352         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
48353         required via m4/cycle-check.m4.
48354         * modules/same: Depend on new same-inode module, rather than
48355         including same-inode.h.
48356         * modules/chdir-safer: New file.
48357
48358         * modules/chown (Depends-on): Add stat-macros.
48359
48360 2006-08-10  Jim Meyering  <jim@meyering.net>
48361
48362         * m4/cycle-check.m4: New file.
48363         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
48364         * m4/dev-ino.m4, m4/same-inode.m4: New files.
48365
48366 2006-08-10  Eric Blake  <ebb9@byu.net>
48367
48368         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
48369         in from original proposal.
48370
48371 2006-08-10  Eric Blake  <ebb9@byu.net>
48372         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48373
48374         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
48375         namespace.
48376
48377 2006-08-10  Bruno Haible  <bruno@clisp.org>
48378
48379         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
48380         as well.
48381
48382 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48383
48384         Sync from coreutils.
48385
48386         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
48387
48388         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
48389         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
48390
48391 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48392
48393         * modules/restrict: Remove; no longer needed now that we assume
48394         Autoconf 2.59 or later.
48395         * MODULES.html.sh: Remove 'restrict'.
48396         * modules/argp (Depends-on): Remove 'restrict'.
48397         * modules/base64 (Depends-on): Likewise.
48398         * modules/gc (Depends-on): Likewise.
48399         * modules/getaddrinfo (Depends-on): Likewise.
48400         * modules/glob (Depends-on): Likewise.
48401         * modules/inet_ntop (Depends-on): Likewise.
48402         * modules/inet_pton (Depends-on): Likewise.
48403         * modules/memxor (Depends-on): Likewise.
48404         * modules/regex (Depends-on): Likewise.
48405         * modules/strtok_r (Depends-on): Likewise.
48406         * modules/time_r (Depends-on): Likewise.
48407
48408 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48409
48410         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
48411         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
48412         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48413         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
48414         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
48415         * m4/memxor.m4 (gl_MEMXOR): Likewise.
48416         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
48417         gl_C_RESTRICT replaced by AC_C_RESTRICT.
48418
48419         Merge from coreutils.
48420         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
48421         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
48422         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48423         * m4/time_r.m4 (gl_TIME_R): Likewise.
48424
48425 2006-08-09  Karl Berry  <karl@gnu.org>
48426
48427         * config/srclist.txt: no more gettext-tools, per Bruno.
48428
48429 2006-08-08  Eric Blake  <ebb9@byu.net>
48430
48431         * modules/verror: New module.
48432         * MODULES.html.sh: Document it.
48433
48434 2006-08-08  Eric Blake  <ebb9@byu.net>
48435
48436         * lib/verror.h, lib/verror.c: New files.
48437
48438 2006-08-08  Eric Blake  <ebb9@byu.net>
48439
48440         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
48441         verror_at_line output complies with GNU Coding Standards even when
48442         file is NULL.
48443
48444 2006-08-07  Bruno Haible  <bruno@clisp.org>
48445
48446         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
48447         versions of AIX.
48448         Reported by Ralf Wildenhues.
48449
48450 2006-08-07  Bruno Haible  <bruno@clisp.org>
48451
48452         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
48453         in an AC_DEFUN. Needed so that the autoconf snippets can use
48454         AC_REQUIRE.
48455
48456 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48457
48458         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48459         Initialize pkgdata_DATA.
48460         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
48461         overriding it.
48462
48463 2006-08-06  Eric Blake  <ebb9@byu.net>
48464
48465         * lib/error.h: Fold in some upstream changes from glibc.
48466         * lib/error.c: Likewise.
48467
48468 2006-08-04  Bruno Haible  <bruno@clisp.org>
48469
48470         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48471         Make the mostlyclean-local rule depend on mostlyclean-generic.
48472         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
48473
48474 2006-07-31  Bruno Haible  <bruno@clisp.org>
48475
48476         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
48477         <stdlib.h>, <string.h>.
48478
48479 2006-07-30  Bruno Haible  <bruno@clisp.org>
48480
48481         * modules/readlink (License): Change to LGPL.
48482
48483 2006-07-30  Bruno Haible  <bruno@clisp.org>
48484
48485         * modules/javaversion (Makefile.am): Distribute javaversion.java and
48486         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
48487         set PKGDATADIR to point to it.
48488
48489 2006-07-30  Bruno Haible  <bruno@clisp.org>
48490
48491         * modules/csharpexec (configure.ac): Comment out macro invocation.
48492         * modules/javaexec (configure.ac): Likewise.
48493         * modules/javacomp-script (configure.ac): Likewise.
48494
48495         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48496
48497 2006-07-30  Bruno Haible  <bruno@clisp.org>
48498
48499         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48500         linked-list.
48501
48502 2006-07-30  Bruno Haible  <bruno@clisp.org>
48503
48504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48505
48506 2006-07-30  Bruno Haible  <bruno@clisp.org>
48507
48508         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48509         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48510         get removed.
48511
48512 2006-07-29  Bruno Haible  <bruno@clisp.org>
48513
48514         Make it possible for gnulib-tool to work with locally modified or
48515         augmented gnulib repositories.
48516         * gnulib-tool (func_usage): Document --local-dir option.
48517         (local_gnulib_dir): New variable.
48518         Handle --local-dir option.
48519         (func_lookup_file): New function.
48520         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48521         (func_get_description, func_get_filelist, func_get_description,
48522         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48523         func_get_automake_snippet, func_get_include_directive,
48524         func_get_license, func_get_maintainer): Use func_lookup_file.
48525         (func_import, func_create_testdir): Use func_lookup_file.
48526
48527 2006-07-29  Bruno Haible  <bruno@clisp.org>
48528
48529         * modules/setenv (Depends-on): Add unistd.
48530
48531 2006-07-29  Bruno Haible  <bruno@clisp.org>
48532
48533         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48534
48535 2006-07-29  Bruno Haible  <bruno@clisp.org>
48536
48537         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48538
48539 2006-07-29  Bruno Haible  <bruno@clisp.org>
48540
48541         * gnulib-tool (import, update): If there is no Makefile.am, look at
48542         aclocal.m4, instead of bailing out.
48543
48544 2006-07-29  Bruno Haible  <bruno@clisp.org>
48545
48546         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48547         Categorize the options by when they are useful.
48548
48549 2006-07-29  Bruno Haible  <bruno@clisp.org>
48550
48551         * gnulib-tool (func_usage): Document option --no-libtool.
48552         Handle option --no-libtool.
48553         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48554         for changed semantics of $libtool variable.
48555         (func_import): Likewise. If libtool is not used, show this through
48556         an option --no-libtool.
48557         (func_create_testdir): Update.
48558
48559 2006-07-29  Bruno Haible  <bruno@clisp.org>
48560
48561         * gnulib-tool (func_import): Extend error message about missing
48562         --doc-base.
48563
48564 2006-07-29  Bruno Haible  <bruno@clisp.org>
48565
48566         * gnulib-tool (func_import): Don't create the $docbase directory if
48567         there is no file to store there.
48568
48569 2006-07-29  Bruno Haible  <bruno@clisp.org>
48570
48571         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48572         relevant, look for configure.ac there, not in the current directory.
48573         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48574
48575 2006-07-29  Bruno Haible  <bruno@clisp.org>
48576
48577         * gnulib-tool (SORT): New variable.
48578         (func_usage): Undocument --assume-autoconf option.
48579         Remove --assume-autoconf option handling.
48580         (autoconf_minversion): Determine from the contents of configure.ac.
48581         (func_import): Remove autoconf_minversion handling.
48582         Suggested by Eric Blake.
48583
48584 2006-07-29  Bruno Haible  <bruno@clisp.org>
48585
48586         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48587
48588 2006-07-29  Bruno Haible  <bruno@clisp.org>
48589
48590         * config/srclist.txt (*setenv.[ch]): Remove rules.
48591
48592 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48593
48594         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48595
48596 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48597
48598         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48599         arpa/inet.h.
48600
48601 2006-07-28  Simon Josefsson  <jas@extundo.com>
48602
48603         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48604         * modules/inet_pton (Depends-on): Likewise.
48605
48606 2006-07-28  Simon Josefsson  <jas@extundo.com>
48607
48608         * m4/netinet_in_h.m4: New file.
48609
48610 2006-07-28  Simon Josefsson  <jas@extundo.com>
48611
48612         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48613         #include's.
48614
48615 2006-07-28  Simon Josefsson  <jas@extundo.com>
48616
48617         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48618         #include's.
48619
48620 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48623         setgid on directories only if they set these bits.
48624         * lib/modechange.h: Remove obsolete comment about masks.
48625
48626 2006-07-28  Eric Blake  <ebb9@byu.net>
48627
48628         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48629         macro expansion.
48630
48631 2006-07-28  Bruno Haible  <bruno@clisp.org>
48632
48633         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48634
48635 2006-07-28  Bruno Haible  <bruno@clisp.org>
48636
48637         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48638
48639 2006-07-28  Bruno Haible  <bruno@clisp.org>
48640
48641         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48642         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48643         Define fallbacks.
48644         Avoids link error on FreeBSD 4.x.
48645         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48646
48647         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48648         encoding.
48649         * lib/mbswidth.c (iswcntrl): Likewise.
48650
48651 2006-07-27  Bruno Haible  <bruno@clisp.org>
48652
48653         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48654         test.
48655
48656 2006-07-27  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48659         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48660         defined.
48661
48662 2006-07-26  Eric Blake  <ebb9@byu.net>
48663
48664         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48665
48666 2006-07-26  Eric Blake  <ebb9@byu.net>
48667
48668         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48669         like mingw that lack mkstemp.
48670         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48671         avoid compilation warning on mingw.
48672
48673 2006-07-26  Bruno Haible  <bruno@clisp.org>
48674
48675         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48676         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48677         INT_FAST*_MIN, INTPTR_MIN.
48678
48679 2006-07-25  Bruno Haible  <bruno@clisp.org>
48680
48681         * modules/version-etc (Depends-on): Add stdarg.
48682
48683 2006-07-25  Bruno Haible  <bruno@clisp.org>
48684
48685         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
48686         complex commands.
48687
48688 2006-07-25  Bruno Haible  <bruno@clisp.org>
48689
48690         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
48691         defined in <stdarg.h> or config.h.
48692
48693 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48694
48695         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
48696         (gl_STDIO_SAFER): Remove.
48697
48698 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48699
48700         * MODULES.html.sh (File stream based Input/Output):
48701         Add fopen-safer, tmpfile-safer; remove stdio-safer.
48702         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
48703         * modules/fopen-safer, modules/tmpfile-safer: New files.
48704         * modules/stdio-safer: Remove.
48705
48706 2006-07-24  Bruno Haible  <bruno@clisp.org>
48707
48708         * modules/tmpdir: New file.
48709         * MODULES.html.sh (File system functions): Add it.
48710
48711 2006-07-24  Bruno Haible  <bruno@clisp.org>
48712
48713         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
48714         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
48715
48716 2006-07-24  Bruno Haible  <bruno@clisp.org>
48717
48718         * modules/clean-temp: New file.
48719
48720 2006-07-24  Bruno Haible  <bruno@clisp.org>
48721
48722         * m4/tmpdir.m4: New file, from GNU gettext.
48723
48724 2006-07-24  Bruno Haible  <bruno@clisp.org>
48725
48726         * lib/tmpdir.h: New file, from GNU gettext.
48727         * lib/tmpdir.c: New file, from GNU gettext.
48728
48729 2006-07-24  Bruno Haible  <bruno@clisp.org>
48730
48731         * lib/clean-temp.h: New file, from GNU gettext.
48732         * lib/clean-temp.c: New file, from GNU gettext.
48733
48734 2006-07-23  Eric Blake  <ebb9@byu.net>
48735
48736         * modules/stdio-safer (Files): Add tmpfile-safer.c.
48737         (Depends-on): Add binary-io.
48738
48739 2006-07-23  Eric Blake  <ebb9@byu.net>
48740
48741         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
48742
48743 2006-07-23  Eric Blake  <ebb9@byu.net>
48744
48745         * lib/tmpfile-safer.c: New file.
48746         * lib/stdio-safer.h (fopen_safer): Add prototype.
48747         * lib/stdio--.h (tmpfile): Make safer.
48748
48749 2006-07-23  Bruno Haible  <bruno@clisp.org>
48750
48751         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
48752         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
48753         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
48754         gl_linked_remove_at): Use it.
48755
48756 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48757         and Simon Josefsson <jas@extundo.com>
48758
48759         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
48760
48761         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
48762
48763 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48764
48765         * modules/close-stream: New file.
48766         * modules/closeout (Description): Make it clear that it exits
48767         with a diagnostic on error.
48768         (Depends-on): Add close-stream.  Remove fpending, stdbool.
48769         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
48770
48771 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48772
48773         * m4/close-stream.m4: New file.
48774
48775 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48776
48777         * lib/close-stream.c, lib/close-stream.h: New files.
48778
48779 2006-07-22  Bruno Haible  <bruno@clisp.org>
48780
48781         Merge from GNU gettext 0.15.
48782
48783         2006-05-01  Bruno Haible  <bruno@clisp.org>
48784
48785                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
48786
48787         2006-07-22  Bruno Haible  <bruno@clisp.org>
48788
48789                 * modules/javaversion: New file.
48790                 * MODULES.html.sh (Java): Add javaversion.
48791
48792         2006-03-12  Bruno Haible  <bruno@clisp.org>
48793
48794                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
48795
48796         2005-12-04  Bruno Haible  <bruno@clisp.org>
48797
48798                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
48799                 (untested).
48800
48801         2006-06-21  Bruno Haible  <bruno@clisp.org>
48802
48803                 Avoid warnings from recent versions of mcs.
48804                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
48805                 -o, -L, -r any more. Use options documented since mcs-1.0
48806                 instead. Similarly for -g.
48807
48808         2005-12-04  Bruno Haible  <bruno@clisp.org>
48809
48810                 * build-aux/csharpcomp.sh.in: Suffix for resources is
48811                 .resources, not .resource.
48812
48813         2005-07-09  Bruno Haible  <bruno@clisp.org>
48814
48815                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
48816                 add a .dll suffix.
48817                 Reported by Mark Junker <mjscod@gmx.de>.
48818
48819         2006-07-22  Bruno Haible  <bruno@clisp.org>
48820
48821                 * modules/gettext: Upgrade to gettext-0.15.
48822                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
48823                 m4/visibility.m4.
48824                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
48825
48826 2006-07-22  Bruno Haible  <bruno@clisp.org>
48827
48828         Merge from GNU gettext 0.15.
48829
48830         2006-03-25  Bruno Haible  <bruno@clisp.org>
48831
48832                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
48833
48834         2006-07-21  Bruno Haible  <bruno@clisp.org>
48835
48836                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
48837                 "1.1".
48838
48839         2006-05-09  Bruno Haible  <bruno@clisp.org>
48840
48841                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
48842                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
48843                 for the conftestver execution.
48844
48845         2006-05-01  Bruno Haible  <bruno@clisp.org>
48846
48847                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
48848                 optional target-version argument. Verify that the compiler
48849                 groks source of the specified source-version, or add -source
48850                 option as necessary. Verify that the compiler produces
48851                 bytecode in the specified target-version, or add -target and
48852                 -source options as necessary. Make the result of the test
48853                 available as variable CONF_JAVAC. Also log error output in
48854                 config.log.
48855
48856         2006-03-11  Bruno Haible  <bruno@clisp.org>
48857
48858                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
48859
48860         2006-05-09  Bruno Haible  <bruno@clisp.org>
48861
48862                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
48863                 CLASSPATH_SEPARATOR to a semicolon.
48864
48865         2006-03-12  Bruno Haible  <bruno@clisp.org>
48866
48867                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
48868                 available as variable CONF_JAVA, for subsequent autoconf
48869                 tests. Also log error output in config.log.
48870
48871         2006-07-19  Bruno Haible  <bruno@clisp.org>
48872
48873                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
48874                 that getline works on glibc2 systems. Needed to avoid trouble
48875                 in relocatable.c.
48876                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
48877
48878         2005-12-04  Bruno Haible  <bruno@clisp.org>
48879
48880                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
48881                 launcher (untested).
48882
48883         2005-12-04  Bruno Haible  <bruno@clisp.org>
48884
48885                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
48886
48887         2006-07-22  Bruno Haible  <bruno@clisp.org>
48888
48889                 * gettext.m4: Update from GNU gettext-0.15.
48890                 * nls.m4: Likewise.
48891                 * po.m4: Likewise.
48892                 * inttypes-pri.m4: Likewise.
48893                 * inttypes-h.m4: Renamed from inttypes.m4.
48894                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
48895
48896 2006-07-22  Bruno Haible  <bruno@clisp.org>
48897
48898         Merge from GNU gettext 0.15.
48899
48900         2005-07-05  Bruno Haible  <bruno@clisp.org>
48901
48902                 * printf-args.c (printf_fetchargs): Work around broken
48903                 definition of wint_t on mingw.
48904
48905         2005-02-12  Bruno Haible  <bruno@clisp.org>
48906
48907                 * xallocsa.h: Add extern "C" for C++.
48908
48909         2006-05-17  Bruno Haible  <bruno@clisp.org>
48910
48911                 Cygwin portability.
48912                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
48913
48914         2006-04-30  Bruno Haible  <bruno@clisp.org>
48915
48916                 * progreloc.c: Include <mach-o/dyld.h> if available.
48917                 (find_executable): Use _NSGetExecutablePath when possible.
48918
48919         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48920
48921                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
48922                 function.
48923
48924         2005-12-29  Bruno Haible  <bruno@clisp.org>
48925
48926                 * progreloc.c (set_program_name_and_installdir): Fix
48927                 compilation error.
48928
48929         2005-12-04  Bruno Haible  <bruno@clisp.org>
48930
48931                 Cygwin portability.
48932                 * progreloc.c: Include <windows.h> also on Cygwin.
48933                 (find_executable): Add support for Cygwin.
48934                 (set_program_name_and_installdir): Handle also platforms with
48935                 nonempty EXEEXT.
48936
48937         2006-07-11  Bruno Haible  <bruno@clisp.org>
48938
48939                 * javacomp.c: Fix a comment.
48940                 Reported by Jim Meyering.
48941
48942         2006-04-30  Bruno Haible  <bruno@clisp.org>
48943
48944                 * javacomp.h (compile_java_class): Add source_version,
48945                 target_version arguments.
48946                 * javacomp.c: Rewritten to choose only a compiler that
48947                 respects the specified source_version and target_version.
48948
48949         2006-06-27  Bruno Haible  <bruno@clisp.org>
48950
48951                 Assume correct S_ISDIR macro.
48952                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
48953
48954         2006-07-22  Bruno Haible  <bruno@clisp.org>
48955
48956                 * javaversion.h: New file, from GNU gettext.
48957                 * javaversion.c: New file, from GNU gettext.
48958                 * javaversion.java: New file, from GNU gettext.
48959                 * javaversion.class: New file, from GNU gettext.
48960
48961         2006-05-17  Bruno Haible  <bruno@clisp.org>
48962
48963                 Cygwin portability.
48964                 * javaexec.c (execute_java_class): Test for jview program
48965                 also on Cygwin.
48966
48967         2006-04-09  Bruno Haible  <bruno@clisp.org>
48968
48969                 * fatal-signal.c: Don't include string.h.
48970                 (at_fatal_signal): Use a copying loop instead of memcpy.
48971
48972         2005-12-04  Bruno Haible  <bruno@clisp.org>
48973
48974                 * csharpexec.c: Add support for 'clix' launcher (untested).
48975                 (execute_csharp_using_sscli): New function.
48976                 (execute_csharp_program): Call it.
48977
48978         2006-06-21  Bruno Haible  <bruno@clisp.org>
48979
48980                 Avoid warnings from recent versions of mcs.
48981                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
48982                 -o, -L, -r any more. Use options documented since mcs-1.0
48983                 instead. Similarly for -g.
48984
48985         2005-07-09  Bruno Haible  <bruno@clisp.org>
48986
48987                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
48988                 add a .dll suffix.
48989                 Reported by Mark Junker <mjscod@gmx.de>.
48990
48991         2006-06-17  Bruno Haible  <bruno@clisp.org>
48992
48993                 * config.charset: Update for NetBSD 3.0.
48994
48995         2006-05-17  Bruno Haible  <bruno@clisp.org>
48996
48997                 Cygwin portability.
48998                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
48999
49000         2006-05-16  Bruno Haible  <bruno@clisp.org>
49001
49002                 * localcharset.c [CYGWIN]: Include <windows.h>.
49003                 (get_charset_aliases): For Cygwin, return the same CPxxx
49004                 aliases list as under WIN32.
49005                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
49006                 the environment variables. Fall back to GetACP().
49007
49008         2006-04-05  Bruno Haible  <bruno@clisp.org>
49009
49010                 * config.charset: Update Juan Manuel Guerrero's address.
49011
49012         2005-02-12  Bruno Haible  <bruno@clisp.org>
49013
49014                 * allocsa.h: Add extern "C" for C++.
49015
49016         2005-02-10  Bruno Haible  <bruno@clisp.org>
49017
49018                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
49019                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
49020
49021         2006-07-22  Bruno Haible  <bruno@clisp.org>
49022
49023                 * gettext.h: Update to GNU gettext-0.15.
49024
49025 2006-07-22  Bruno Haible  <bruno@clisp.org>
49026
49027         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
49028         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
49029         lib-prefix.m4, longdouble.m4, ssize_t.m4.
49030
49031 2006-07-21  Eric Blake  <ebb9@byu.net>
49032
49033         * modules/stdlib-safer: New file.
49034         * MODULES.html.sh (File stream based Input/Output): Add
49035         stdlib-safer.
49036
49037 2006-07-21  Eric Blake  <ebb9@byu.net>
49038
49039         * lib/stdlib-safer.h: New file from coreutils, required by
49040         stdlib--.h.
49041
49042 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
49043
49044         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
49045
49046 2006-07-20  Bruno Haible  <bruno@clisp.org>
49047
49048         * gnulib-tool: Recognize new option --assume-autoconf.
49049         (autoconf_minversion): New variable.
49050         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
49051
49052 2006-07-20  Bruno Haible  <bruno@clisp.org>
49053
49054         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
49055
49056 2006-07-19  Derek R. Price  <derek@ximbiot.com>
49057
49058         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
49059         Reindent and repaginate.
49060
49061 2006-07-19  Derek Price  <derek@ximbiot.com>
49062
49063         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
49064         Correct grammar.
49065
49066 2006-07-17  Bruno Haible  <bruno@clisp.org>
49067
49068         * modules/list: New file.
49069         * modules/array-list: New file.
49070         * modules/carray-list, modules/carray-list-tests: New files.
49071         * modules/linked-list, modules/linked-list-tests: New files.
49072         * modules/avltree-list, modules/avltree-list-tests: New files.
49073         * modules/rbtree-list, modules/rbtree-list-tests: New files.
49074         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
49075         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
49076         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
49077         * modules/oset: New file.
49078         * modules/array-oset: New file.
49079         * modules/avltree-oset, modules/avltree-oset-tests: New files.
49080         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
49081         * tests/test-carray_list.c: New file.
49082         * tests/test-linked_list.c: New file.
49083         * tests/test-avltree_list.c: New file.
49084         * tests/test-rbtree_list.c: New file.
49085         * tests/test-linkedhash_list.c: New file.
49086         * tests/test-avltreehash_list.c: New file.
49087         * tests/test-rbtreehash_list.c: New file.
49088         * tests/test-avltree_oset.c: New file.
49089         * tests/test-rbtree_oset.c: New file.
49090         * MODULES.html.sh (Container data structures): New section.
49091
49092 2006-07-17  Bruno Haible  <bruno@clisp.org>
49093
49094         * m4/gl_list.m4: New file.
49095
49096 2006-07-17  Bruno Haible  <bruno@clisp.org>
49097
49098         * lib/gl_list.h: New file.
49099         * lib/gl_list.c: New file.
49100         * lib/gl_array_list.h: New file.
49101         * lib/gl_array_list.c: New file.
49102         * lib/gl_carray_list.h: New file.
49103         * lib/gl_carray_list.c: New file.
49104         * lib/gl_linked_list.h: New file.
49105         * lib/gl_linked_list.c: New file.
49106         * lib/gl_anylinked_list1.h: New file.
49107         * lib/gl_anylinked_list2.h: New file.
49108         * lib/gl_avltree_list.h: New file.
49109         * lib/gl_avltree_list.c: New file.
49110         * lib/gl_anyavltree_list1.h: New file.
49111         * lib/gl_anyavltree_list2.h: New file.
49112         * lib/gl_rbtree_list.h: New file.
49113         * lib/gl_rbtree_list.c: New file.
49114         * lib/gl_anyrbtree_list1.h: New file.
49115         * lib/gl_anyrbtree_list2.h: New file.
49116         * lib/gl_anytree_list1.h: New file.
49117         * lib/gl_anytree_list2.h: New file.
49118         * lib/gl_linkedhash_list.h: New file.
49119         * lib/gl_linkedhash_list.c: New file.
49120         * lib/gl_anyhash_list1.h: New file.
49121         * lib/gl_anyhash_list2.h: New file.
49122         * lib/gl_avltreehash_list.h: New file.
49123         * lib/gl_avltreehash_list.c: New file.
49124         * lib/gl_rbtreehash_list.h: New file.
49125         * lib/gl_rbtreehash_list.c: New file.
49126         * lib/gl_anytreehash_list1.h: New file.
49127         * lib/gl_anytreehash_list2.h: New file.
49128
49129         * lib/gl_oset.h: New file.
49130         * lib/gl_oset.c: New file.
49131         * lib/gl_array_oset.h: New file.
49132         * lib/gl_array_oset.c: New file.
49133         * lib/gl_avltree_oset.h: New file.
49134         * lib/gl_avltree_oset.c: New file.
49135         * lib/gl_rbtree_oset.h: New file.
49136         * lib/gl_rbtree_oset.c: New file.
49137         * lib/gl_anytree_oset.h: New file.
49138
49139 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49140
49141         * m4/mkancesdirs.m4: New file.
49142         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
49143         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
49144         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
49145         it.
49146
49147 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49148
49149         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
49150         * lib/mkancesdirs.h: New files.
49151         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
49152         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
49153         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
49154         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
49155         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
49156         callers changed.  Revamp internals significantly, by not
49157         attempting to create directories that are temporarily more
49158         permissive than the final results.  Do not attempt to use
49159         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
49160         This removes some race conditions, fixes some bugs, and simplifies
49161         things.  Use new dirchownmod function to do owner and mode changes.
49162         * lib/mkdir-p.h: Likewise.
49163         * lib/modechange.c (octal_to_mode): New function.
49164         (struct mode_change): New member mentioned.
49165         (make_node_op_equals): New arg mentioned.  All callers changed.
49166         (mode_compile): Keep track of which mode bits the user has explicitly
49167         mentioned.
49168         (mode_adjust): New arg DIR, so that we implement the X op correctly.
49169         New arg PMODE_BITS, to keep track of which mode bits the user
49170         mentioned; it treats S_ISUID and S_ISGID speciall.
49171         All callers changed.
49172         * lib/modechange.h: Likewise.
49173
49174 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49175
49176         * MODULES.html.sh: Add mkancestors.
49177         * modules/mkancesdirs: New module.
49178         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
49179         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
49180         The chdir-safer and afs files are now orphans; I'll remove them
49181         unless someone speaks up.
49182         Add lib/dirchownmod.c, lib/dirchownmod.h.
49183         (Depends-on): Remove alloca, chown, save-cwd, dirname.
49184         Add lchown, mkancesdirs.
49185         (Maintainer): Add self.
49186
49187 2006-07-15  Karl Berry  <karl@gnu.org>
49188
49189         * gnulib-tool: help message wording/arrangement.
49190
49191 2006-07-14  Simon Josefsson  <jas@extundo.com>
49192
49193         * doc/gnulib.texi (Libtool and Windows): New section.
49194
49195 2006-07-12  Simon Josefsson  <jas@extundo.com>
49196
49197         * modules/gendocs (License): Fix license, approved by Karl.
49198
49199 2006-07-12  Eric Blake  <ebb9@byu.net>
49200
49201         * MODULES.html.sh: Add gendocs.
49202
49203 2006-07-11  Eric Blake  <ebb9@byu.net>
49204
49205         * modules/fdl: New module, to install doc/fdl.texi.
49206         * MODULES.html.sh: Add new section for documentation modules.
49207         * gnulib-tool: Avoid space-tab.
49208         (--doc-base): New option, to manage files from doc.
49209
49210 2006-07-11  Eric Blake  <ebb9@byu.net>
49211
49212         * m4/absolute-header.m4: Fix comments to match recent change.
49213
49214 2006-07-11  Eric Blake  <ebb9@byu.net>
49215
49216         * gnulib-tool: List --doc-base before --tests-base.
49217
49218 2006-07-11  Derek R. Price  <derek@ximbiot.com>
49219
49220         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
49221
49222 2006-07-11  Bruno Haible  <bruno@clisp.org>
49223
49224         * README: Mention where to put documentation.
49225
49226 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49227
49228         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
49229
49230 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
49233         to stdint.m4.
49234
49235 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49236
49237         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
49238         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
49239         "no/such/file/stdint.h" when there is no such file, so that
49240         the resulting C code can be parsed by dodgy compilers.
49241         Problems reported by Bob Proulx.
49242
49243 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49244
49245         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
49246         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49247         macros into the GNU _D_EXACT_NAMLEN.
49248         * lib/savedir.c:  Likewise.
49249         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
49250
49251 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49252         and Paul Eggert  <eggert@cs.ucla.edu>
49253
49254         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
49255         * m4/savedir.m4:
49256         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49257         macros into the GNU _D_EXACT_NAMLEN.
49258
49259 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49260
49261         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
49262         around the absolute name, to work around a problem with the HP-UX
49263         11.23 native C compiler, reported by Bob Proulx.
49264
49265 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49266
49267         * doc/maintain.texi, make-stds.texi: Sync from
49268         <http://savannah.gnu.org/projects/gnustandards>.
49269
49270 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49271
49272         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
49273
49274 2006-07-09  Jim Meyering  <jim@meyering.net>
49275
49276         * m4/glob.m4: Remove a doubled word in a comment.
49277
49278 2006-07-09  Jim Meyering  <jim@meyering.net>
49279
49280         * lib/argp-pv.c: Remove a doubled word in a comment.
49281         * lib/check-version.c (check_version): Likewise.
49282         * lib/javacomp.c (compile_java_class): Likewise.
49283
49284 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49285
49286         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
49287         for the benefit of people using Autoconf 2.60.  If you want to
49288         support older Autoconf versions you can copy m4/onceonly_2_57.m4
49289         (or m4/onceonly.m4, if pre-2.57) manually.
49290
49291 2006-07-08  Jim Meyering  <jim@meyering.net>
49292
49293         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
49294         comment.
49295         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
49296         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
49297         comment.
49298
49299 2006-07-08  Jim Meyering  <jim@meyering.net>
49300
49301         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
49302
49303 2006-07-07  Simon Josefsson  <jas@extundo.com>
49304
49305         * tests/test-crc.c: Change expected crc value, the test vector
49306         were probably computed using the old broken crc.c?
49307
49308 2006-07-06  Simon Josefsson  <jas@extundo.com>
49309
49310         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
49311         now the canonical place for the M4 file).
49312
49313         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
49314         from the sys_socket dependency now.
49315
49316         * modules/inet_pton (Files): Ditto.
49317
49318         * modules/inet_ntop (Files): Ditto.
49319
49320 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49321
49322         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
49323         not gl_PREREQ_GETUSERSHELL.
49324
49325 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49326
49327         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
49328         with only one argument, for Autoconf 2.60.
49329         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
49330         expand to nothing, so add a shell command to avoid syntax error.
49331         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49332
49333 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49334
49335         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
49336
49337 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49338
49339         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
49340         no longer needed.  Check for isblank decl.
49341         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
49342         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
49343         of existence.
49344
49345 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49346
49347         * lib/getloadavg.c: Use __VMS, not VMS.
49348         * lib/getopt.c: Likewise.
49349         * lib/getpagesize.h: Likewise.
49350         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
49351         and probably does not work.
49352
49353 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49354
49355         * lib/.cppi-disable: Add wcwidth.
49356         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
49357         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
49358         (ISGRAPH): Remove.  All uses changed to isgraph.
49359         (FOLD) [!defined _LIBC]: Remove special case.
49360         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
49361         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
49362         HAVE_ISBLANK.
49363         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
49364         case.
49365
49366 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49367
49368         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
49369         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
49370         brackets.  Other minor changes to suppress some compiler
49371         warnings.
49372
49373 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49374         and Paul Eggert  <eggert@cs.ucla.edu>
49375
49376         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
49377         of invoking obsolescent AC_HEADER_DIRENT macro.
49378         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
49379         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
49380         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49381         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49382         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
49383         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49384         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
49385         * m4/readdir.m4: Remove; no longer needed.
49386
49387 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49388         and Paul Eggert  <eggert@cs.ucla.edu>
49389
49390         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
49391         Don't worry about this obsolete case any more.
49392         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
49393         directories.
49394         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
49395         worry about this obsolete case any more.
49396         * lib/fts.c: Likewise.
49397         * lib/getcwd.c: Likewise.
49398         * lib/glob.h: Likewise.
49399         * lib/savedir.c: Likewise.
49400
49401 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49402
49403         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
49404         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
49405         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
49406         needed.
49407         All uses removed.
49408         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49409         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49410         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
49411         needed.
49412         * m4/getdate.m4 (gl_GETDATE): Likewise.
49413         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49414         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49415         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49416         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49417         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49418         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49419         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
49420         needed.
49421
49422 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49423
49424         * lib/memcasecmp.c: Include <limits.h>.
49425         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
49426         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
49427         Don't assume isdigit succeeds only on '0' through '9'.
49428
49429 2006-07-05  Eric Blake  <ebb9@byu.net>
49430
49431         * modules/getaddrinfo (Depends-on): Add snprintf.
49432
49433 2006-07-05  Eric Blake  <ebb9@byu.net>
49434
49435         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
49436         to avoid 'header present but could not be compiled' on cygwin.
49437
49438 2006-07-05  Eric Blake  <ebb9@byu.net>
49439
49440         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
49441         missing from netdb.h.
49442         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
49443
49444 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49445
49446         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
49447         no longer needed.
49448         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
49449         * m4/getdate.m4 (gl_GETDATE): Likewise.
49450         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49451         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49452         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49453         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49454         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49455
49456 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49457
49458         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
49459         All uses of is_space replaced by isspace.
49460         * lib/exit.h: Don't talk about STDC_HEADERS.
49461         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
49462         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
49463         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
49464         replaced by isprint etc.
49465         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
49466         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49467         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
49468         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
49469         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
49470         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49471
49472 2006-07-05  Bruno Haible  <bruno@clisp.org>
49473
49474         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
49475         the function exists, before testing against AIX.
49476         Reported by Martin Lambers <marlam@marlam.de>.
49477
49478 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49479
49480         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
49481         From Mark D. Baushke.
49482
49483 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49484
49485         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
49486         to the absolute name, not just one, to bypass Sun C 5.8's
49487         "warning: #include of /usr/include/... may be non-portable".
49488
49489 2006-07-04  Eric Blake  <ebb9@byu.net>
49490
49491         * modules/dirname-tests: New test module.
49492         * tests/test-dirname.c: New file, replacing dirname.c
49493         TEST_DIRNAME section that was recently deleted.
49494
49495 2006-07-04  Bruno Haible  <bruno@clisp.org>
49496
49497         Assume ANSI C header files and <ctype.h> functions.
49498         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49499         (mbsnwidth): Use isprint, iscntrl instead.
49500
49501 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49502
49503         Merge from coreutils.
49504         * MODULES.html.sh: Add xstrtold.
49505         * modules/xstrtold: New file.
49506         * modules/cycle-check (Files): Add lib/same-inode.h.
49507         * modules/dirname (Files): Add m4/double-slash-root.m4.
49508         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49509         * modules/mkdir-p (Files): Add lib/same-inode.h.
49510         * modules/same (Files): Add lib/same-inode.h.
49511
49512 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49513
49514         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49515         This is to keep the terminology clean; POSIX talks about
49516         "absolute pathnames", not "full pathnames", but the GNU
49517         Coding Standards say to use "path" for something else;
49518         so use "absolute" to keep both sides happy.
49519         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49520         Set gl_absolute_header, not gl_full_header_path.
49521         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49522         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49523         All uses changed.
49524
49525         Merge from coreutils.
49526
49527         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49528
49529         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49530         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49531         want to require the building of c-strtod.o.
49532         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49533         needs -lm directly.
49534         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49535
49536         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49537
49538         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49539         --as-needed option if available.  Problem reported by Albert Chin in
49540         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49541         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49542         cc merely issues a bunch of annoying warnings for --as-needed
49543         (this problem was reported by Bob Proulx).  Also, try linking with
49544         -lm to detect a bug in binutils 2.16 (this problem was reported
49545         by Ralf Wildenhues).
49546
49547         2006-06-18  Jim Meyering  <jim@meyering.net>
49548
49549         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49550         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49551         macro.
49552         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49553         also check for glibc-2.4's abort-inducing bug.
49554
49555         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49556         Low-probability clean-up should be to use rmdir to get rid of
49557         the just-created directory, not unlink.
49558
49559         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49560         configure fail, and request a bug report to inform us about it.
49561         Add a comment that, barring reports to the contrary, in 2007 we'll
49562         assume ftruncate is universally available.
49563
49564         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49565
49566         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49567
49568         2006-03-12  Jim Meyering  <jim@meyering.net>
49569
49570         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49571         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49572         * m4/same.m4 (gl_SAME): Likewise.
49573         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49574
49575         2006-03-11  Eric Blake  <ebb9@byu.net>
49576
49577         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49578         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49579         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49580         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49581
49582 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49583
49584         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49585         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49586         reported by Mark D. Baushke, one in
49587         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49588
49589         Merge from coreutils.
49590
49591         * lib/.cppi-disable: Add stdint_.h.
49592         * lib/.cvsignore: Add stdint.h.
49593
49594         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49595
49596         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49597         both double and long double versions.
49598         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49599         * lib/xstrtold.c: New file.
49600         * lib/xstrtod.h (xstrtold): New decl.
49601
49602         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49603
49604         * lib/filemode.c (setst): Remove.
49605         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49606         (arguably) clearer, and the generated code is a bit smaller on my
49607         Debian GNU/Linux stable x86 host.
49608
49609         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49610
49611         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49612         Assume that filemode.h includes sys/types.h and sys/stat.h.
49613         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49614         (ftypelet): Reorder to put common cases first, for efficiency.
49615         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49616         to do 'M'.
49617         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49618         of 10, for compatibility with FreeBSD.  All callers changed.
49619         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49620         types that can't be deduced solely from st_mode.  First arg is now a
49621         const pointer.
49622         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49623         (strmode): Renamed from mode_string.
49624         (filemodestring): New decl.
49625         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49626         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49627         needed.
49628         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49629
49630         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49631
49632         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49633         fsusage.h now does that.  Include fsusage.h first, to test interface.
49634         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49635         at most one method (the old code could have generated decls that
49636         didn't conform to C89, not that this was ever exercised).
49637         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49638
49639         2006-03-19  Jim Meyering  <jim@meyering.net>
49640
49641         Work even in a chroot where d_ino values for entries in "/"
49642         don't match the stat.st_ino values for the same names.
49643         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49644         number, iterate through all entries again, using lstat instead.
49645         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49646         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49647
49648         * lib/getcwd.c (__getcwd): Clarify a comment.
49649         Use memcpy in place of a call to strcpy.
49650
49651         2006-03-12  Jim Meyering  <jim@meyering.net>
49652
49653         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49654         matches that of the current directory (which we're about to chdir ".."
49655         out of), then save the dev-ino of the parent, instead.
49656
49657         * lib/same-inode.h (SAME_INODE): New file/macro.
49658         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49659         Include "same-inode.h", instead.
49660         * lib/same.c: Likewise.
49661         * lib/cycle-check.h: Include "same-inode.h".
49662         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49663         * lib/cycle-check.c (SAME_INODE): Remove definition.
49664         * lib/root-dev-ino.h: Include "same-inode.h".
49665
49666         2006-03-11  Eric Blake  <ebb9@byu.net>
49667
49668         * lib/same.c (same_name): s/base_name/last_component/
49669         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49670         * lib/filenamecat.c (file_name_concat): Likewise.
49671
49672         2006-03-11  Eric Blake  <ebb9@byu.net>,
49673                     Paul Eggert  <eggert@cs.ucla.edu>
49674
49675         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49676         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49677         drive prefix.
49678         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
49679         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
49680         (last_component): New method.
49681         * lib/dirname.c (dir_len): Determine when drive letters need a
49682         subsequent slash.  Preserve // when it is special.
49683         (dir_name): Don't append dot when drive letter is absolute.
49684         [TEST_DIRNAME]: Move into a full-blown gnulib test.
49685         * lib/basename.c (base_name): New semantics - malloc the result.
49686         Preserve // when it is special.  Preserve relative files that look
49687         like drive letters.
49688         (base_len): Preserve // when it is special.
49689         (last_component): New method, similar to old base_name semantics.
49690         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
49691         base_name.  Strip redundant slashes from ///.
49692
49693 2006-07-03  Jim Meyering  <jim@meyering.net>
49694
49695         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
49696         macro is used before the first cycle_check call.
49697
49698 2006-07-03  Eric Blake  <ebb9@byu.net>
49699
49700         * modules/dirname (Depends-on): Add xstrndup.
49701
49702 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49703
49704         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
49705         test cases, so that config.log is a bit easier to follow.
49706
49707 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49708
49709         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
49710         both are 64 bits, since this seems to be the tradition, and this
49711         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
49712         we ever run into a host that prefers long long to long in this
49713         case, we'll need another configure-time test.  Problem reported by
49714         Jim Meyering.
49715
49716 2006-07-02  Eric Blake  <ebb9@byu.net>
49717
49718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
49719
49720 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49721
49722         * modules/inttypes (Depends-on): No longer depends on stdint.
49723         * modules/stdint (Description): Say more about assumptions.
49724         Say that the fast types might differ.  Say macros are used.
49725         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
49726         (Makefile.am): Revise list of substituted symbols to match
49727         new stdint.m4.
49728         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
49729         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
49730         * tests/test-stdint.c (verify_same_types)
49731         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
49732         the code conforms to C99/C89.
49733         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
49734         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
49735
49736 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49737
49738         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
49739         but fix a bug, by requiring at least 64 bits.
49740         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49741         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
49742         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
49743         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
49744
49745         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
49746         changes.  Make 2.59 a prerequisite.  Check and substitute for
49747         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
49748         inttypes.h.  Do not use special include files; just use the
49749         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
49750         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
49751         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
49752         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
49753         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
49754         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
49755         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
49756         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
49757         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
49758         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
49759         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
49760         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
49761         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
49762         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
49763         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
49764         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
49765         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
49766         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
49767         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
49768         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
49769         WINT_MAX.  Check for C99 conformance more strictly, by detecting
49770         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
49771         not check for things that C99 does not require, e.g., int8_t.  If
49772         a test isn't needed unless <stdint.h> isn't working, and is
49773         unlikely to be needed for any other reason, then don't do it
49774         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
49775         size_t, since we assume C89 freestanding at least.  Do not check
49776         for sig_atomic_t, wchar_t, or wint_t, since the code now does
49777         the right thing even if the types are not defined.  Instead use:
49778         (gl_STDINT_TYPE_PROPERTIES): New macro.
49779         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
49780         testing whether <sys/types.h> clashes, as Autoconf does this for
49781         us now.  All uses removed.
49782         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
49783         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
49784         (gl_CHECK_TYPE_SAME):
49785         Remove; no longer needed.
49786         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
49787         exists, since we'll return 0 anyway in that case.
49788         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
49789
49790 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49791
49792         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
49793         possible collision with system files.
49794         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
49795         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
49796         WCHAR_MIN and WCHAR_MAX in this case.
49797         (<stddef.h>): Do not include; no longer needed.
49798         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
49799         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
49800         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
49801         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
49802         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
49803         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
49804         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
49805         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
49806         !defined(__c99))]: Include in this case too, since it's harmless
49807         now.
49808         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
49809         dangerous to do so.
49810         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
49811         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
49812         (_STDINT_MIN, _STDINT_MAX): New macros.
49813         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
49814         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
49815         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
49816         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
49817         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
49818         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
49819         macros, not typedefs; this simplifies things quite a bit.
49820         Use long int for all types narrower than int64_t.
49821         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
49822         Define in terms of long long int or int64_t or long int,
49823         not int64_t or int32_t.  This saves some compile-time testing.
49824         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
49825         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
49826         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
49827         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
49828         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
49829         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
49830         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
49831         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
49832         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
49833         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
49834         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49835         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49836         undef any previous version and define our own version, for
49837         simplicity and consistency with the new macros for types.
49838         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49839         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49840         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
49841         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
49842         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
49843         @WINT_T_SUFFIX@ to keep things simple here.
49844         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
49845         Simplify by assuming typical 8/16/32/64 host, since we're
49846         already doing that elsewhere anyway.
49847         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
49848         and assume long long int is 64 bits if available.  This
49849         speeds up 'configure'.
49850
49851 2006-07-01  Eric Blake  <ebb9@byu.net>
49852
49853         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
49854         Reported by Andreas Buening.
49855
49856 2006-07-01  Eric Blake  <ebb9@byu.net>
49857
49858         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
49859
49860 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49861
49862         * lib/getaddrinfo.c: fixed typo
49863
49864 2006-06-29  Jim Meyering  <jim@meyering.net>
49865
49866         * modules/strftime (Maintainer): Add my name, since with the
49867         FPRINTFTIME changes strftime.c has forked from glibc.
49868
49869 2006-06-29  Eric Blake  <ebb9@byu.net>
49870
49871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
49872
49873 2006-06-29  Eric Blake  <ebb9@byu.net>
49874
49875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
49876
49877 2006-06-29  Eric Blake  <ebb9@byu.net>
49878
49879         * lib/stat_.h: New file.
49880
49881 2006-06-29  Eric Blake  <ebb9@byu.net>
49882
49883         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
49884         unused static function.
49885
49886 2006-06-29  Eric Blake  <ebb9@byu.net>
49887
49888         * doc/functions.texi (Function Portability): Document missing lstat
49889         on mingw.
49890
49891 2006-06-29  Eric Blake  <ebb9@byu.net>
49892
49893         * MODULES.html.sh: Add sys_stat.
49894         * modules/sys_stat: New module.
49895         * modules/mkstemp (Depends-on): Add sys_stat.
49896
49897 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49898
49899         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
49900
49901 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49902
49903         * m4/c-bs-a.m4: Removed.
49904
49905 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49906
49907         * lib/strftime.c: Assume strftime() exists.
49908
49909 2006-06-29  Derek Price  <derek@ximbiot.com>
49910
49911         * modules/c-bs-a: Removed - \a is C89.
49912         * MODULES.html.sh: Remove c-bs-a.
49913
49914 2006-06-29  Bruno Haible  <bruno@clisp.org>
49915
49916         * modules/wcwidth (License): Change to LGPL.
49917
49918 2006-06-28  Simon Josefsson  <jas@extundo.com>
49919
49920         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
49921         on _WIN32.
49922
49923         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
49924         getnameinfo.
49925
49926 2006-06-28  Simon Josefsson  <jas@extundo.com>
49927
49928         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
49929
49930 2006-06-28  Simon Josefsson  <jas@extundo.com>
49931
49932         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
49933         functions there.  It will succeed on Windows XP, but on Windows
49934         2000 and (presumably) earlier, it will fail, and use the internal
49935         re-implementation.
49936         (use_win32_p): New function.
49937         (getaddrinfo): Use strtoul on servname, to support numeric ports.
49938         Support AI_NUMERICSERV to disable getservbyname.
49939         (getnameinfo): New function, only supports
49940         NI_NUMERICHOST|NI_NUMERICSERV for now.
49941
49942         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
49943         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
49944         getnameinfo.
49945
49946 2006-06-28  Eric Blake  <ebb9@byu.net>
49947
49948         * modules/wcwidth: New file.
49949         * modules/mbchar (Depends-on): Add wcwidth.
49950         * modules/mbswidth (Depends-on): Add wcwidth.
49951         * MODULES.html.sh: Add wcwidth.
49952
49953 2006-06-28  Eric Blake  <ebb9@byu.net>
49954
49955         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
49956         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
49957
49958 2006-06-28  Eric Blake  <ebb9@byu.net>
49959
49960         * lib/xvasprintf.h: Fix comments.
49961
49962 2006-06-28  Eric Blake  <ebb9@byu.net>
49963
49964         * lib/mbchar.h (wcwidth): Include wcwidth.h.
49965         * lib/mbswidth.c (wcwidth): Move from here...
49966         * lib/wcwidth.h: ...to this new file.
49967
49968 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49969
49970         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
49971
49972         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
49973         it's obsolete.
49974         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
49975
49976 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49977
49978         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
49979         Autoconf 2.60 says this stuff was obsolete.
49980
49981 2006-06-28  Bruno Haible  <bruno@clisp.org>
49982
49983         * modules/wcwidth (Files): Add m4/wchar_t.m4.
49984
49985 2006-06-28  Bruno Haible  <bruno@clisp.org>
49986
49987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
49988         gt_TYPE_WCHAR_T.
49989
49990 2006-06-28  Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
49993         declaration for wcwidth.
49994         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
49995
49996 2006-06-28  Bruno Haible  <bruno@clisp.org>
49997
49998         * lib/mkdtemp.c [MINGW]: Include <io.h>.
49999         (mkdir): Define using _mkdir.
50000
50001 2006-06-28  Bruno Haible  <bruno@clisp.org>
50002
50003         * lib/getaddrinfo.h: Fix POSIX URL.
50004         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
50005         _WIN32.
50006         (use_win32_p): Make static.
50007         (getaddrinfo): Reject service name if it is empty or does not consist
50008         solely of decimal digits, or if its value is > 65535.
50009         (getnameinfo): Remove useless casts.
50010
50011 2006-06-27  Simon Josefsson  <jas@extundo.com>
50012
50013         * modules/sys_select: New file, suggested by Bruno Haible, Paul
50014         Eggert and Martin Lambers.
50015
50016 2006-06-27  Simon Josefsson  <jas@extundo.com>
50017
50018         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
50019         Eggert and Martin Lambers.
50020
50021 2006-06-27  Bruno Haible  <bruno@clisp.org>
50022
50023         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
50024         result to 0, not to empty.
50025         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
50026
50027 2006-06-27  Bruno Haible  <bruno@clisp.org>
50028
50029         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
50030
50031 2006-06-26  Simon Josefsson  <jas@extundo.com>
50032
50033         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
50034         present.
50035
50036 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
50037
50038         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
50039         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
50040         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
50041
50042 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
50043
50044         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
50045
50046 2006-06-26  Bruno Haible  <bruno@clisp.org>
50047
50048         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
50049
50050 2006-06-26  Bruno Haible  <bruno@clisp.org>
50051
50052         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
50053
50054 2006-06-26  Bruno Haible  <bruno@clisp.org>
50055
50056         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
50057         SGI C compiler in pre-C99 mode.
50058         Suggested by Mark D. Baushke and Larry Jones.
50059
50060 2006-06-26  Bruno Haible  <bruno@clisp.org>
50061
50062         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
50063         WCHAR_MAX.
50064         Reported by Mark D. Baushke and Larry Jones.
50065
50066 2006-06-26  Bruno Haible  <bruno@clisp.org>
50067
50068         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
50069         in pre-C99 mode.
50070         Suggested by Mark D. Baushke and Larry Jones.
50071
50072 2006-06-23  Simon Josefsson  <jas@extundo.com>
50073             Bruno Haible  <bruno@clisp.org>
50074
50075         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
50076         Emit mostlyclean-local rule.
50077         (func_emit_tests_Makefile_am): Likewise.
50078         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
50079
50080 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
50081
50082         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
50083
50084 2006-06-23  Bruno Haible  <bruno@clisp.org>
50085
50086         * tests/test-stdint.c: Update to match ISO C 99 Technical
50087         Corrigendum 1.
50088
50089 2006-06-23  Bruno Haible  <bruno@clisp.org>
50090
50091         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
50092
50093 2006-06-23  Bruno Haible  <bruno@clisp.org>
50094
50095         * lib/stdint_.h: Treat IRIX like OpenBSD.
50096
50097 2006-06-23  Bruno Haible  <bruno@clisp.org>
50098
50099         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
50100         ISO C 99 Technical Corrigendum 1.
50101
50102 2006-06-22  Simon Josefsson  <jas@extundo.com>
50103
50104         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
50105         MinGW.
50106
50107 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50108
50109         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
50110         needed.  Some compiler complained about some of them.  Problem reported
50111         by Larry Jones in
50112         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
50113
50114 2006-06-21  Simon Josefsson  <jas@extundo.com>
50115
50116         * tests/test-getaddrinfo.c: New file.
50117
50118         * modules/getaddrinfo-tests: New file.
50119
50120         * MODULES.html.sh: Add inet_pton.
50121
50122         * modules/inet_pton: New file.
50123
50124 2006-06-21  Simon Josefsson  <jas@extundo.com>
50125
50126         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
50127         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
50128         of using the (limited) gnulib implementation on Windows XP.
50129
50130         * m4/inet_pton.m4: New file.
50131
50132 2006-06-21  Simon Josefsson  <jas@extundo.com>
50133
50134         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
50135         variable.
50136
50137         * lib/socket_.h: Don't define WINVER.
50138
50139         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
50140         slightly modified to work in gnulib.
50141
50142 2006-06-21  Simon Josefsson  <jas@extundo.com>
50143
50144         * doc/gnulib.texi (Windows sockets): Add.
50145
50146 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50147
50148         * lib/read-file.c (fread_file): Start with buffer allocation of
50149         0 bytes rather than 1 byte; this simplifies the code.
50150         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
50151         code to free buffer and save/restore errno.
50152         (internal_read_file): Remove unused local.
50153
50154 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50155
50156         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
50157         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
50158         Problem reported by Denis Excoffier in
50159         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
50160
50161 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50162
50163         * modules/sys_socket, modules/socklen: Include sys/types since
50164         FreeBSD 4.x's sys/socket.h needs it.
50165
50166 2006-06-19  Simon Josefsson  <jas@extundo.com>
50167
50168         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
50169
50170 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50171
50172         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
50173
50174 2006-06-19  Bruno Haible  <bruno@clisp.org>
50175
50176         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
50177         and FULL_PATH_INTTYPES_H in angle brackets.
50178         Reported by Mark D. Baushke <mdb@gnu.org>.
50179
50180 2006-06-17  Eric Blake  <ebb9@byu.net>
50181
50182         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
50183         errno.
50184
50185 2006-06-17  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
50188         <sys/inttypes.h>.
50189
50190 2006-06-17  Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
50193         whether errno is declared. Assume <errno.h> declares errno.
50194
50195 2006-06-17  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
50198
50199 2006-06-17  Bruno Haible  <bruno@clisp.org>
50200
50201         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
50202         problem on Solaris 2.5.1.
50203
50204 2006-06-16  Eric Blake  <ebb9@byu.net>
50205
50206         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
50207         * lib/unicodeio.c [!defined errno]: Likewise.
50208         * lib/strtol.c [!defined errno]: Likewise.
50209         * lib/strtod.c [!defined errno]: Likewise.
50210
50211 2006-06-15  Eric Blake  <ebb9@byu.net>
50212
50213         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
50214
50215 2006-06-15  Eric Blake  <ebb9@byu.net>
50216
50217         * config/srclist.txt (ssize_t.m4): Lose sync.
50218
50219 2006-06-15  Bruno Haible  <bruno@clisp.org>
50220
50221         * modules/stdint (Files): Include m4/full-header-path.m4,
50222         m4/size_max.m4, m4/wchar_t.m4.
50223         (Makefile.am): Many more substitutions.
50224         * modules/stdint-tests: New file.
50225         * tests/test-stdint.c: New file.
50226
50227 2006-06-15  Bruno Haible  <bruno@clisp.org>
50228
50229         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
50230         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
50231         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
50232         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
50233         gl_CHECK_TYPE_SAME): New macros.
50234
50235 2006-06-15  Bruno Haible  <bruno@clisp.org>
50236
50237         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
50238
50239 2006-06-15  Bruno Haible  <bruno@clisp.org>
50240
50241         * lib/stdint_.h: Rewritten to be fully auto-configured.
50242         Fixes bug on HP-UX/IA64.
50243
50244 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
50245
50246         * lib/getdate.y (__attribute__): Don't define if already defined.
50247         Problem reported by Larry Jones.
50248         * lib/utimens.c (__attribute__): Likewise.
50249
50250 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
50251
50252         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
50253         reported by Andreas Schwab.
50254
50255 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50256             Bruno Haible  <bruno@clisp.org>
50257
50258         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
50259         check for the declaration of strnlen and a run test that exposes the
50260         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
50261         rpl_strndup.
50262
50263 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50264             Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
50267
50268 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50269
50270         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
50271         compile test, for Tru64 4.0D.
50272
50273 2006-05-28  Karl Berry  <karl@gnu.org>
50274
50275         * config/srclist.txt (printf-args.c): lose sync.
50276
50277 2006-05-26  Martin Lambers  <marlam@marlam.de>
50278
50279         * lib/getpass.c: Updates the test for the native W32 API, and adds
50280         missing includes, thus fixing compilation warnings.
50281
50282 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50283
50284         * lib/exclude.c (exclude_fnmatch): New function.
50285         (excluded_file_name): Call exclude_fnmatch.
50286         * lib/exclude.h (excluded_file_name): New prototype
50287
50288 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
50289
50290         * lib/tempname.c (small_open, large_open): New macros.
50291         (__open, __open64) [!_LIBC]: Remove.
50292         (__gen_tempname): Use small_open and large_open instead of __open
50293         and __open64.  This fixes a portability bug on HP-UX 11.11i
50294         reported by Simon Wing-Tang in
50295         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
50296
50297 2006-05-24  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
50300         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
50301         Reported by Thorsten Maerz <torte@netztorte.de> via
50302         Aaron Stone <aaron@serendipity.cx>.
50303
50304 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50305
50306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
50307         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
50308         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
50309         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
50310         not really conditional on the cache.
50311         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
50312
50313 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50314
50315         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
50316         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
50317         (my_usleep): Don't mishandle maximum value.
50318
50319 2006-05-19  Jim Meyering  <jim@meyering.net>
50320
50321         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
50322
50323 2006-05-17  Bruno Haible  <bruno@clisp.org>
50324
50325         Cygwin portability.
50326         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
50327
50328 2006-05-17  Bruno Haible  <bruno@clisp.org>
50329
50330         * lib/stdint_.h: Fix recognition of Cygwin.
50331
50332 2006-05-15  Bruno Haible  <bruno@clisp.org>
50333
50334         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
50335         on libtool patch by Ralf Wildenhues.
50336
50337 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50338
50339         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
50340         test for C99 conformance; (bool) 0.5 is an integer constant
50341         expression, but (bool) -0.5 is not.  Problem reported by Fedor
50342         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
50343
50344 2006-05-11  Simon Josefsson  <jas@extundo.com>
50345
50346         * m4/xvasprintf.m4: Fix obvious typo.
50347
50348 2006-05-11  Jim Meyering  <jim@meyering.net>
50349
50350         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
50351         James Lemley.
50352
50353 2006-05-10  Simon Josefsson  <jas@extundo.com>
50354
50355         * lib/md4.c: Typo fix, update copyright years.
50356         (K1, K2): Don't use L because it turn computations into 64-bit on
50357         64-bit platforms.
50358
50359 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
50360
50361         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
50362         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
50363         unwanted sign propagation, e.g., on hosts with 64-bit int.
50364         There still are some problems with reeelly weird theoretical hosts
50365         (e.g., 33-bit int) but it's not worth worrying about now.
50366         * lib/sha1.c (rol): Likewise.
50367         (K1, K2, K3, K4): Remove unnecessary L suffix.
50368
50369 2006-05-10  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/des.c: Cast to avoid warnings.
50372
50373 2006-05-09  Bruno Haible  <bruno@clisp.org>
50374
50375         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
50376         (Depends-on): Depend also on xsize, stdarg.
50377         (configure.ac): Add gl_XVASPRINTF.
50378
50379 2006-05-09  Bruno Haible  <bruno@clisp.org>
50380
50381         * m4/xvasprintf.m4: New file.
50382
50383 2006-05-09  Bruno Haible  <bruno@clisp.org>
50384
50385         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
50386         (EOVERFLOW): Define fallback value.
50387         (xstrcat): New function.
50388         (xvasprintf): Recognize the special case of a string concatenation.
50389
50390 2006-05-08  Eric Blake  <ebb9@byu.net>
50391
50392         * gnulib-tool (func_version): Base copyright year on CVS date.
50393         (func_emit_copyright_notice): New function.
50394         (func_emit_lib_Makefile_am): Use it.
50395         (func_emit_tests_Makefile_am): Likewise.
50396         (func_import): Likewise.
50397
50398 2006-05-08  Bruno Haible  <bruno@clisp.org>
50399
50400         * modules/stdarg: New file.
50401         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
50402
50403 2006-05-08  Bruno Haible  <bruno@clisp.org>
50404
50405         * m4/stdarg.m4: New file, from GNU gettext.
50406
50407 2006-05-08  Bruno Haible  <bruno@clisp.org>
50408
50409         * config/srclist.txt (build-aux/config.rpath): different from latest
50410         release.
50411
50412 2006-05-08  Bruno Haible  <bruno@clisp.org>
50413
50414         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
50415
50416 2006-05-05  Jim Meyering  <jim@meyering.net>
50417
50418         * m4/warning.m4: New file, derived from bison's file by the same name.
50419
50420 2006-05-03  Bruno Haible  <bruno@clisp.org>
50421
50422         * lib/stdint_.h: Shorter URL.
50423         * lib/inttypes.h: Likewise.
50424
50425 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50426
50427         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
50428
50429 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50430
50431         * lib/verify.h: Document the internals better.  Most of this change
50432         was written by Bruno Haible.
50433
50434 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50435
50436         * doc/verify.texi: New file, partly based on a proposal by
50437         Bruno Haible.
50438
50439 2006-05-02  Bruno Haible  <bruno@clisp.org>
50440
50441         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
50442         test from here...
50443         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
50444
50445 2006-04-29  Bruno Haible  <bruno@clisp.org>
50446
50447         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
50448         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
50449
50450 2006-04-29  Bruno Haible  <bruno@clisp.org>
50451
50452         * gnulib-tool: Make --update option actually work.
50453
50454 2006-04-29  Bruno Haible  <bruno@clisp.org>
50455
50456         * doc/gcd.texi: New file.
50457         * doc/gnulib.texi: Include it.
50458
50459 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50460
50461         * lib/getdate.y (get_date): When adding relative date, start with the
50462         initial time, not with the result of the first mktime call.
50463
50464 2006-04-25  Bruno Haible  <bruno@clisp.org>
50465
50466         * gnulib-tool (func_import): Output the include directives in three
50467         blocks, sorted separately.
50468         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50469
50470 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50471
50472         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
50473         to define main with arguments, for C++.  Reported by Eric Blake.
50474         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50475         Prefer 'int main ()' to 'int main (void)', for C++.
50476         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50477         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
50478         for 'main', for C99 and C++.
50479
50480 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50481
50482         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
50483         Don't assume that exit status -1 is valid.
50484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50485         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50486         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
50487         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
50488         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
50489         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50490         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50491         functions can be used without declaring them, or that you can
50492         exit with status -1.
50493         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50494
50495 2006-04-24  Karl Berry  <karl@gnu.org>
50496
50497         * config/srclist.txt (longdouble.m4): sync lost.
50498
50499 2006-04-24  Eric Blake  <ebb9@byu.net>
50500
50501         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50502
50503 2006-04-24  Bruno Haible  <bruno@clisp.org>
50504
50505         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50506         poll() implementation in AIX.
50507         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50508
50509 2006-04-24  Bruno Haible  <bruno@clisp.org>
50510
50511         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50512         assigned exactly once.
50513
50514 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50515             Bruno Haible  <bruno@clisp.org>
50516
50517         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50518         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50519         for AM_CPPFLAGS.
50520
50521 2006-04-23  Bruno Haible  <bruno@clisp.org>
50522
50523         * modules/copy-file: Depend on unistd.
50524         * modules/execute: Likewise.
50525         * modules/fatal-signal: Likewise.
50526         * modules/findprog: Likewise.
50527         * modules/mkdtemp : Likewise.
50528         * modules/pipe: Likewise.
50529         * modules/wait-process: Likewise.
50530
50531 2006-04-23  Bruno Haible  <bruno@clisp.org>
50532
50533         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50534         condition was already detected.
50535         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50536
50537 2006-04-23  Bruno Haible  <bruno@clisp.org>
50538
50539         * lib/copy-file.c: Include <unistd.h> unconditionally.
50540         * lib/execute.c: Likewise.
50541         * lib/fatal-signal.c: Likewise.
50542         * lib/findprog.c: Likewise.
50543         * lib/mkdtemp.c: Likewise.
50544         * lib/pipe.h: Likewise.
50545         * lib/pipe.c: Likewise.
50546         * lib/wait-process.h: Likewise.
50547
50548 2006-04-23  Bruno Haible  <bruno@clisp.org>
50549
50550         * gnulib-tool (func_usage): Fix --import description. Document
50551         --update.
50552         (func_import): Create temporary file in a temporary directory, if
50553         --dry-run is specified. Silence errors from 'grep' when there are no
50554         m4 files in $m4dir.
50555         (func_create_testdir): Silence errors from 'grep' when there are no
50556         m4 files in $m4dir.
50557         Reported by Karl Berry <karl@freefriends.org>.
50558
50559 2006-04-20  Bruno Haible  <bruno@clisp.org>
50560
50561         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50562         one argument, so that the code will be portable to Autoconf 2.60.
50563         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50564         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50565         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50566
50567 2006-04-19  Derek Price  <derek@ximbiot.com>
50568             Eric Blake  <ebb9@byu.net>
50569
50570         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50571         rather than "/full/path.h".  Update comment to match.  Shorten &
50572         generalize m4_translit call via AS_TR_CPP.
50573
50574 2006-04-19  Derek Price  <derek@ximbiot.com>
50575             Eric Blake  <ebb9@byu.net>
50576
50577         * lib/inttypes.h: Correct grammar in comment.
50578
50579 2006-04-18  Derek Price  <derek@ximbiot.com>
50580             Paul Eggert  <eggert@cs.ucla.edu>
50581
50582         * modules/inttypes: New file.
50583         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50584
50585 2006-04-18  Derek Price  <derek@ximbiot.com>
50586             Paul Eggert  <eggert@cs.ucla.edu>
50587
50588         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50589         New files.
50590
50591 2006-04-18  Derek Price  <derek@ximbiot.com>
50592             Paul Eggert  <eggert@cs.ucla.edu>
50593
50594         * lib/inttypes.h: New file.
50595         * lib/strtoimax.c: Assume <inttypes.h>.
50596
50597 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50598
50599         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50600         isn't mounted.  Problem reported by Kir Kolyshkin.
50601
50602 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50603
50604         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50605         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50606         Derek R. Price.
50607         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50608         implementation.
50609
50610 2006-04-12  Eric Blake  <ebb9@byu.net>
50611
50612         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50613         is now done automatically by the corresponding Autoconf macro.
50614
50615 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50616
50617         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50618         time_r.h.
50619
50620 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50621
50622         Merge regex changes from libc, removing some of our
50623         POSIX-conformance changes that were rejected and redoing them in a
50624         less-intrusive way.
50625
50626         * lib/regcomp.c (re_compile_internal, init_dfa):
50627         Length arg is now size_t, not Idx.  All uses changed.
50628         (peek_token): Forward decl now says internal_function.
50629         (__re_error_msgid, __re_error_msgid_idx):
50630         Now static rather than extern with attribute_hidden.
50631         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50632         For some reason libc prefers K&R style defns for external functions.
50633         (regerror) [!defined _LIBC]: Likewise.
50634         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50635         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50636         (build_range_exp, build_collating_symbol):
50637         Use K&R-style defn.
50638         (re_compile_fastmap): Use '\0' to memset, not 0.
50639         (utf8_sb_map): Make the calculations more obvious.
50640         (init_dfa, parse_bracket_exp, build_charclass_op):
50641         Call calloc and cast result, as glibc does.
50642         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50643         (build_range_exp, build_collating_symbol):
50644         Now internal functions.
50645
50646         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50647
50648         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50649         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50650         Don't depend on VMS; depend on __VMS instead, for POSIX
50651         namespace cleanness.
50652         (regoff_t): Define to ssize_t, not long int.
50653
50654         Remove the REG_ macros named below.  Instead, make the old names
50655         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50656         __USE_GNU_REGEX.
50657         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50658         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50659         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50660         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50661         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50662         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50663         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50664         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50665         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50666         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50667         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50668         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50669         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50670         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50671         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50672         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50673         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50674         (REG_NREGS):
50675         Remove.  All uses replaced by the old RE_* names.
50676         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50677         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
50678         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
50679         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
50680         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
50681         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
50682         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
50683         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
50684         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
50685         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
50686         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
50687         Don't bother having these macros be independent of each others'
50688         values, since they no longer exist in the POSIX name space.
50689
50690         Rename the following member names back to their old names,
50691         unless !__USE_GNU_REGEX.  All uses changed back.
50692         (buffer): Renamed from re_buffer.
50693         (allocated): Renamed from re_allocated.
50694         (used): Renamed from re_used.
50695         (syntax): Renamed from re_syntax.
50696         (fastmap): Renamed from re_fastmap.
50697         (translate): Renamed from re_translate.
50698         (can_be_null): Renamed from re_can_be_null.
50699         (regs_allocated): Renamed from re_regs_allocated.
50700         (fastmap_accurate): Renamed from re_fastmap_accurate.
50701         (no_sub): Renamed from re_no_sub.
50702         (not_bol): Renamed from re_not_bol.
50703         (not_eol): Renamed from re_not_eol.
50704         (newline_anchor): Renamed from re_newline_anchor.
50705         (num_regs): Renamed from rm_num_regs.
50706         (start): Renamed from rm_start.
50707         (end): Renamed from rm_end.
50708
50709         (free_state): Move up a bit.
50710
50711         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
50712         #define to be empty.
50713         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
50714         when that is what is intended.
50715         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
50716         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
50717         (MAX): New macro.
50718         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
50719         All uses changed back to re_malloc, etc.  It's now the caller's
50720         responsibility to check for overflow; all callers changed.
50721         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
50722         (re_x2nrealloc): Remove.
50723         (free_state): Remove decl.
50724
50725         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
50726         (re_set_registers, re_exec):
50727         Use K&R-style defn.
50728
50729         2006-01-31  Roland McGrath  <roland@redhat.com>
50730
50731         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
50732         Reported by Mike Frysinger <vapier@gentoo.org>.
50733
50734         2006-01-15  Andreas Jaeger  <aj@suse.de>
50735
50736         [BZ #1950]
50737         * lib/regex_internal.c (re_string_reconstruct): Adjust for
50738         build_wcs_upper_buffer change.
50739         (build_wcs_upper_buffer): Change return type.
50740
50741         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
50742
50743         * lib/regex_internal.h: Include <stdint.h> if available.
50744
50745         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
50746
50747         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
50748
50749         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50750
50751         * lib/regcomp.c: Adjust for changed secondary hash function.
50752
50753         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
50754
50755         * lib/regex.h: Pretty printing.
50756         Clean up namespace a bit.
50757
50758         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
50759
50760         * lib/regexec.c (update_cur_sifted_state, check_arrival,
50761         check_arrival_add_next_nodes): Avoid using uninitialized variable.
50762
50763         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50764                     Ulrich Drepper  <drepper@redhat.com>
50765
50766         [BZ #1302]
50767         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
50768         changed.
50769         (bitset_word_t): Renamed from bitset_word.  All uses changed.
50770
50771         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
50772
50773         [BZ #281]
50774         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
50775         * lib/regcomp.c: Remove unnecessary uses of
50776         unsigned RE_TRANSLATE_TYPE.
50777         * lib/regex_internal.h: Likewise.
50778         * lib/regex_internal.c: Likewise.
50779         * lib/regexec.c: Likewise.
50780         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
50781
50782         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
50783
50784         * lib/regexec.c (find_recover_state): Remove unnecessary
50785         initialization.
50786         (transit_state_bkref): Make DFA a const pointer.
50787         (get_subexp): Likewise.
50788         (check_arrival): Likewise.
50789         (update_cur_sifted_state): Likewise.
50790         (re_search_internal): Likewise.
50791         (prune_impossible_nodes): Likewise.
50792         (acquire_init_state_context): Likewise.
50793         (proceed_next_node): Likewise.
50794         (set_regs): Likewise.
50795         (free_fail_stack_return): Likewise.
50796         (check_arrival_expand_ecl): Mark DFA parameter as const.
50797         (check_arrival_expand_ecl_sub): Likewise.
50798         (check_subexp_limits): Likewise.
50799         (sub_epsilon_src_nodes):  Likewise.
50800         (add_epsilon_src_nodes):  Likewise.
50801         (merge_state_array): Likewise.
50802         (update_regs): Likewise.
50803         (build_trtable): Likewise.
50804         (sift_states_backward): Mark MCTX parameter as const.
50805         (build_sifted_states): Likewise.
50806         (update_cur_sifted_state): Likewise.
50807         (sift_states_mkref): Likewise.
50808         (check_arrival_expand_ecl): Mark eclosure as const.
50809         (check_dst_limits_calc_pos_1): Likewise.
50810         * lib/regex_internal.h (re_match_context_t): Make dfa a const
50811         pointer.
50812
50813         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
50814
50815         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
50816         (transit_state_sb): Likewise.
50817         (transit_state_mb): Likewise.
50818         (sift_states_iter_mb): Likewise.
50819         (check_arrival_add_next_nodes): Likewise.
50820         (check_node_accept_bytes): Change first parameter to pointer-to-const.
50821         [_LIBC] (re_search_2_stub): Use mempcpy.
50822
50823         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
50824         mbrtowc for very simple UTF-8 case.
50825
50826         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
50827         a pointer-to-const.
50828         (re_acquire_state_context): Likewise.
50829         * lib/regex_internal.h: Adjust prototypes.
50830
50831         * lib/regex.c: Prevent using C++ compilers.
50832
50833         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
50834         (re_acquire_state_context): Likewise.
50835
50836 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50837
50838         * modules/regex (Depends-on): Add ssize_t.
50839
50840 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50841
50842         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
50843         translation table.
50844
50845 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50846
50847         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
50848
50849 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
50850             Bruno Haible  <bruno@clisp.org>
50851
50852         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
50853         <sys/types.h> and <inttypes.h>.
50854
50855 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50856
50857         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
50858         `__error_t_defined', so argp.h will not typedef the former.
50859
50860 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50861
50862         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
50863         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
50864         glibc names.  Even if glibc is changed to conform to POSIX, the
50865         traditional names will be available anyway, since regex depends on
50866         the extensions module.  Also, fix a longstanding typo in the
50867         implementation of Spencer ERE test #75 from grep 2.3.  Problems
50868         reported by Emanuele Giaquinta.  Also, change sense of cached
50869         variable, so that the message makes sense.
50870
50871 2006-03-24  Simon Josefsson  <jas@extundo.com>
50872
50873         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
50874         including some doc fixes.
50875         (base64_encode_alloc): Fix +1 bug on allocation failures.
50876
50877 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50878
50879         * lib/base64.c (base64_encode): Do not read past end of array with
50880         unsanitized input on systems with CHAR_BIT > 8.
50881
50882 2006-03-24  Eric Blake  <ebb9@byu.net>
50883
50884         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
50885
50886 2006-03-22  Karl Berry  <karl@gnu.org>
50887
50888         * config/srclist.txt (*setenv.[ch]): get from coreutils.
50889         * config/srclistvars.sh (COREUTILS): new var.
50890
50891 2006-03-17  Jim Meyering  <jim@meyering.net>
50892
50893         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
50894         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
50895
50896 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50897
50898         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
50899         no longer needs it.  Instead, check that regoff_t is as least
50900         as wide as ptrdiff_t.
50901
50902         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
50903         so that our regex.h stays compatible with the installed regex.
50904         This is helpful for installers who configure --without-included-regex.
50905         Problem reported by Emanuele Giaquinta.
50906
50907 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50908
50909         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
50910         Typedef to long int, not to off_, as POSIX will likely change
50911         in that direction.
50912
50913 2006-03-15  Eric Blake  <ebb9@byu.net>
50914
50915         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
50916
50917 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50918
50919         * lib/argp-help.c (validate_uparams): Fix typo
50920         * lib/argp-parse.c (argp_default_options): Consistently begin help
50921         messages with a lowercase letter.
50922
50923 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
50924
50925         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
50926         overrun buffers and shouldn't be used (much as gets shouldn't be
50927         used).
50928         * lib/time_r.c (asctime_r, ctime_r): Likewise.
50929
50930 2006-03-08  Simon Josefsson  <jas@extundo.com>
50931
50932         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
50933         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50934
50935 2006-03-08  Simon Josefsson  <jas@extundo.com>
50936
50937         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
50938         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50939
50940 2006-03-08  Simon Josefsson  <jas@extundo.com>
50941
50942         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
50943         signal that configure disabled the device.
50944
50945 2006-03-08  Simon Josefsson  <jas@extundo.com>
50946
50947         * build-aux/maint.mk: Fix refresh-po, to handle no translated
50948         languages.
50949
50950 2006-03-07  Simon Josefsson  <jas@extundo.com>
50951
50952         * modules/getopt (Depends-on): Add unistd.
50953
50954         * modules/unistd: New file.
50955
50956 2006-03-07  Simon Josefsson  <jas@extundo.com>
50957
50958         * modules/gc-random: New file.
50959
50960 2006-03-07  Simon Josefsson  <jas@extundo.com>
50961
50962         * m4/unistd_h.m4: New file.
50963
50964 2006-03-07  Simon Josefsson  <jas@extundo.com>
50965
50966         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
50967         test to be side-effect free by storing the result in the cache
50968         variable gl_cv_lib_readline, and moving the assignment of
50969         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
50970         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50971
50972 2006-03-07  Simon Josefsson  <jas@extundo.com>
50973
50974         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
50975         error on missing devices (the functions will return an error).
50976
50977         * m4/gc.m4: Move random stuff to gc-random.m4
50978
50979 2006-03-07  Simon Josefsson  <jas@extundo.com>
50980
50981         * lib/unistd_.h: New file.
50982
50983 2006-03-07  Simon Josefsson  <jas@extundo.com>
50984
50985         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
50986
50987 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50988
50989         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
50990         Problem reported by Juan Manuel Guerrero.
50991
50992 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50993
50994         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
50995         the unistd module.
50996         * lib/getlogin_r.c: Likewise.
50997         * lib/getlogin_r.h: Likewise.
50998         * lib/glob.c: Likewise.
50999         * lib/pagealign_alloc.c: Likewise.
51000         * lib/unistd_.h: Remove; no longer needed.
51001
51002 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51003
51004         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51005         Add unistd.
51006         * modules/c-stack (Depends-on): Add unistd.
51007         * modules/getlogin_r: Likewise.
51008         * modules/glob: Likewise.
51009         * modules/pagealign_alloc: Likewise.
51010         * modules/unistd (Files): Remove lib/unistd_.h.
51011         (EXTRA_DIST): Remove.
51012         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
51013         need unistd_.h.
51014         (MOSTLYCLEANFILES): Remove unistd.h-t.
51015
51016 2006-03-03  Simon Josefsson  <jas@extundo.com>
51017
51018         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
51019
51020 2006-03-03  Simon Josefsson  <jas@extundo.com>
51021
51022         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
51023         libidn and bison.
51024
51025 2006-03-03  Simon Josefsson  <jas@extundo.com>
51026
51027         * build-aux/maint.mk: Add indent target.
51028
51029 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
51030
51031         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
51032         our replacement poll.h in any case, to avoid a differing
51033         declaration from a system header.  Seen on AIX.
51034
51035 2006-03-01  Simon Josefsson  <jas@extundo.com>
51036
51037         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
51038         <kasal@ucw.cz>.
51039
51040 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51041
51042         * modules/gettime (Depends-on): Add extensions module.
51043         * modules/nanosleep (Depends-on): Likewise.
51044         * modules/settime (Depends-on): Likewise.
51045
51046 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51047
51048         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
51049         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
51050         pedantically.
51051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51052         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
51053
51054         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
51055         not "==".  Reported by Ralf Wildenhues.
51056
51057 2006-03-01  Karl Berry  <karl@gnu.org>
51058
51059         * doc/Copyright/request-*: new files, synced from gnuorg.
51060
51061 2006-03-01  Karl Berry  <karl@gnu.org>
51062
51063         * config/srclist.txt (Copyright/*): new entries.
51064
51065 2006-02-28  Simon Josefsson  <jas@extundo.com>
51066
51067         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
51068
51069 2006-02-27  Simon Josefsson  <jas@extundo.com>
51070
51071         * lib/base64.h: Indent #define's.  From Jim Meyering
51072         <jim@meyering.net>.
51073
51074 2006-02-27  Jim Meyering  <jim@meyering.net>
51075
51076         Revert the change of 2006-02-24, so these files can continue
51077         to be sync'd from gettext.
51078         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
51079         of `config.h'.
51080
51081 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51082
51083         * modules/intprops: New file.
51084         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51085         Add intprops.
51086         * modules/getloadavg (Files): Remove lib/intprops.h.
51087         (Depends-on): Add intprops.
51088         * modules/human: Likewise.
51089         * modules/inttostr: Likewise.
51090         * modules/openat: Likewise.
51091         * modules/sig2str: Likewise.
51092         * modules/userspec: Likewise.
51093         * modules/utimecmp: Likewise.
51094         * modules/xnanosleep: Likewise.
51095         * modules/xstrtol: Likewise.
51096
51097 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
51098
51099         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
51100         * modules/lock-tests (TESTS): Use $(EXEEXT).
51101         * modules/tls-tests: Likewise.
51102         * modules/argp-tests: Likewise.
51103         (check_PROGRAMS): New var, replacing...
51104         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
51105
51106 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51107
51108         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
51109         `config.h'.
51110
51111 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51112
51113         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
51114
51115 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51116
51117         Sync from coreutils.
51118         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
51119         gl_CHDIR_SAFER.
51120
51121 2006-02-22  Jim Meyering  <jim@meyering.net>
51122
51123         Sync from coreutils.
51124         * m4/chdir-safer.m4: New file.
51125
51126 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51127
51128         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
51129         AT_FDCWD exceeds INT_MAX.
51130         * lib/openat.h (AT_FDCWD): Likewise.
51131
51132 2006-02-17  Eric Blake  <address@hidden>
51133
51134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
51135
51136 2006-02-16  Simon Josefsson  <jas@extundo.com>
51137
51138         * modules/getaddrinfo (Depends-on): Add sys_socket.
51139
51140 2006-02-15  Simon Josefsson  <jas@extundo.com>
51141
51142         * build-aux/maint.mk: Add dsyntax-check rule.
51143
51144 2006-02-15  Eric Blake  <ebb9@byu.net>
51145
51146         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
51147         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
51148         'present but cannot compile' warnings on cygwin.
51149         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
51150         use ws2tcpip.h if sys/socket.h works.
51151         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
51152         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
51153
51154 2006-02-14  Simon Josefsson  <jas@extundo.com>
51155
51156         * modules/maintainer-makefile (Files): Rename.
51157
51158         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
51159         and (the local) Makefile.cfg to maint-cfg.mk.
51160
51161         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
51162         to the latter.
51163
51164         * modules/maintainer-makefile: New module.
51165
51166         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
51167         severaly stripped to make it possible to build it up from scratch
51168         with reliable tests.
51169
51170         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
51171         fixes to permit overriding the default actions when configure and
51172         makefile are not available.
51173
51174 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51175
51176         Sync from coreutils.
51177         * modules/lstat (Depends-on): Don't depend on xalloc.
51178         (License): Change from GPL to LGPL, since this is now simply a
51179         replacement for a libc function.
51180
51181 2006-02-14  Jim Meyering  <jim@meyering.net>
51182
51183         Sync from coreutils.
51184
51185         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
51186         failure on deficient systems, and simplify gnulib lgpl dependencies.
51187         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
51188         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
51189
51190         * lib/xalloc-die.c: Remove unused definition of N_.
51191
51192 2006-02-14  Jim Meyering  <jim@meyering.net>
51193
51194         Sync from coreutils.
51195         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
51196         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
51197         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
51198         double-quote uses of that variable, to accommodate the rare case in
51199         which getmntent is available in none of the libraries checked.  This
51200         happens at least on FreeBSD 5.0.
51201
51202 2006-02-13  Simon Josefsson  <jas@extundo.com>
51203
51204         * gnulib-tool (Usage): Fix --import, from
51205         karl@freefriends.org (Karl Berry).
51206
51207 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51208
51209         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
51210
51211 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
51212
51213         * lib/argp-namefrob.h: Restore changes accidentally lost during the
51214         "autoupdate" on 2005-12-12.
51215
51216 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51217
51218         * modules/closeout (Depends-on): Remove atexit.
51219
51220 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51221
51222         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
51223         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
51224
51225 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51226
51227         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
51228         __EXTENSIONS__ if this causes compilation to fail.  Problem
51229         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
51230         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
51231
51232 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
51233
51234         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
51235         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
51236         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
51237         All uses changed.
51238
51239 2006-01-26  Simon Josefsson  <jas@extundo.com>
51240
51241         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
51242         prototype is visible on mingw32.
51243
51244         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
51245         for mingw32.
51246
51247         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
51248         mingw32).
51249
51250 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51251
51252         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
51253         attempt to open for write; this always fails, at least on POSIX
51254         hosts.  This reinstates the 2006-01-09 change, which was
51255         inadvertently removed.
51256
51257 2006-01-26  Bruno Haible  <bruno@clisp.org>
51258
51259         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
51260         Reported by Paul Eggert.
51261
51262 2006-01-26  Bruno Haible  <bruno@clisp.org>
51263             Paul Eggert  <eggert@cs.ucla.edu>
51264
51265         * lib/stdbool_.h (_Bool)
51266         [(! (defined __cplusplus || defined __BEOS__)
51267           && !defined __GNUC__
51268           && !(defined __HP_cc || defined __xlc__
51269                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
51270                || defined __sgi))]:
51271         #define to signed char in these cases too; this simplifies
51272         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
51273         etc., separately) and makes it more conservative.
51274
51275 2006-01-25  Simon Josefsson  <jas@extundo.com>
51276
51277         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
51278         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
51279         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
51280
51281 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51282
51283         * lib/argp-namefrob.h: Bugfix. Remove stray #
51284
51285 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51286
51287         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
51288         so that we test the test.
51289         Check for yet another HP-UX cc bug involving *bool |= bool.
51290
51291 2006-01-25  Karl Berry  <karl@gnu.org>
51292
51293         * config/srclist.txt (vasnprintf.c): sync lost.
51294
51295 2006-01-25  Jim Meyering  <jim@meyering.net>
51296
51297         Sync from the stable (b5) branch of coreutils:
51298
51299         * lib/fts.c (fts_children): Don't let close() clobber errno from
51300         failed fchdir().
51301
51302         * lib/fts.c (fts_stat): When following a symlink-to-directory,
51303         don't necessarily interpret stat-fails+lstat-succeeds as indicating
51304         a dangling symlink.  That can also happen at least for ELOOP.
51305         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
51306         FYI, this bug predates the inclusion of fts.c in coreutils.
51307
51308         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
51309         in their own block, so pre-c99 compilers don't object.
51310
51311         Avoid the double-free (first in fts_read, second in fts_close) that
51312         would occur when an `active' directory is made inaccessible (e.g.,
51313         via chmod a-x) during a traversal.
51314         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51315         before returning.  Reproduce this failure by
51316         mkdir -p a/b; cd a; chmod a-x . b
51317         Reported by Stavros Passas.
51318
51319 2006-01-25  Jim Meyering  <jim@meyering.net>
51320
51321         * lib/fileblocks.c: Remove more useless parentheses.
51322         * lib/readutmp.h: Likewise.
51323
51324 2006-01-25  Bruno Haible  <bruno@clisp.org>
51325
51326         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
51327         warnings.
51328         Reported by Paul Eggert.
51329
51330 2006-01-25  Bruno Haible  <bruno@clisp.org>
51331
51332         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
51333         rid of a trap command. For Solaris sh.
51334         Reported by Mark D. Baushke <mdb@gnu.org>.
51335
51336 2006-01-24  Simon Josefsson  <jas@extundo.com>
51337
51338         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
51339         Bruno.
51340
51341 2006-01-24  Karl Berry  <karl@gnu.org>
51342
51343         * config/srclist.txt (argp-namefrob.h): sync lost.
51344
51345 2006-01-24  Jim Meyering  <jim@meyering.net>
51346
51347         * modules/openat (Files): Add lib/intprops.h.
51348         From Mark D. Baushke.
51349
51350 2006-01-24  Jim Meyering  <jim@meyering.net>
51351
51352         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
51353         Reported by Mark D. Baushke.
51354
51355 2006-01-24  Jim Meyering  <jim@meyering.net>
51356
51357         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
51358
51359 2006-01-24  Bruno Haible  <bruno@clisp.org>
51360
51361         * modules/strnlen (Maintainer): Change from glibc to all.
51362
51363 2006-01-24  Bruno Haible  <bruno@clisp.org>
51364
51365         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
51366         Patch by Paul Eggert.
51367
51368 2006-01-24  Bruno Haible  <bruno@clisp.org>
51369
51370         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
51371         already has it.
51372         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
51373         2005-11-26.
51374
51375         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
51376         'signed char' to avoid problems with the built-in _Bool type.
51377         Reported by Paul Eggert on 2005-11-26.
51378
51379 2006-01-24  Bruno Haible  <bruno@clisp.org>
51380
51381         * gnulib-tool (func_import): Avoid constructing complicated sed
51382         expressions inside backquote.
51383         Report and solution by Mark D. Baushke <mdb@gnu.org>.
51384
51385 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
51386
51387         These changes imported from libc.
51388         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
51389         test and two separate function calls.
51390         * lib/strndup.c (__strndup): Add libc_hidden_def.
51391
51392 2006-01-23  Simon Josefsson  <jas@extundo.com>
51393
51394         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
51395         Remove the test_*_SOURCES variable: automake infers it by default.
51396         * modules/tls-tests: Likewise.
51397
51398 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51399
51400         Work around porting bugs reported by Dieter in
51401         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
51402         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
51403         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
51404         Include "getopt.h" first, to check interface.
51405         (getenv): Declare only if defined HAVE_DECL_GETENV &&
51406         !HAVE_DECL_GETENV.
51407         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
51408         (__strndup): Revert to K&R-style function dfns, the glibc style.
51409         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
51410         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
51411         Include strnlen.h first, to get prototype properly.
51412         (strnlen): Renamed from __strnlen.
51413         Remove weak alias.
51414
51415 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51416
51417         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
51418
51419 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51420
51421         * config/srclist.txt: Adjust to reflect glibc reorganization.
51422         This affects only comments.
51423
51424 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51425
51426          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
51427          Reported by Bruce Korb <bkorb@gnu.org>.
51428
51429 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51430
51431         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
51432         to pacify gcc -Wswitch-default.
51433
51434 2006-01-22  Bruno Haible  <bruno@clisp.org>
51435
51436         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
51437         temporary buffer for sprintf, take into account the precision also
51438         for 'd', 'i', 'u', 'o', 'x', 'X'.
51439
51440 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51441
51442         * modules/argp-tests: New module
51443         * tests/test-argp.c: New file
51444         * tests/test-argp-2.sh: New file
51445
51446 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51447
51448         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
51449         (__argp_base_name): Removed
51450         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
51451         typo.
51452         (__argp_base_name): Provide macro definition or extern declaration
51453         depending on the configuration
51454
51455 2006-01-20  Simon Josefsson  <jas@extundo.com>
51456
51457         * modules/inet_ntop (Depends-on): Depend on sys_socket.
51458
51459 2006-01-20  Simon Josefsson  <jas@extundo.com>
51460
51461         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
51462
51463 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51464
51465         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
51466         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
51467         Suggested by Bruno Haible.
51468
51469 2006-01-20  Karl Berry  <karl@gnu.org>
51470
51471         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
51472         until changes propagate, I guess.
51473
51474 2006-01-19  Simon Josefsson  <jas@extundo.com>
51475
51476         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
51477
51478 2006-01-19  Simon Josefsson  <jas@extundo.com>
51479
51480         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
51481
51482 2006-01-19  Simon Josefsson  <jas@extundo.com>
51483
51484         * gnulib-tool: Set check_PROGRAMS.
51485
51486         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51487         modules/des-tests, modules/gc-arcfour-tests,
51488         modules/gc-arctwo-tests, modules/gc-des-tests,
51489         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51490         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51491         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51492         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51493         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51494         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51495         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51496         test_*_SOURCES.
51497
51498 2006-01-18  Simon Josefsson  <jas@extundo.com>
51499
51500         * modules/socklen (Depends-on): Depend on sys_socket.
51501
51502 2006-01-18  Simon Josefsson  <jas@extundo.com>
51503
51504         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51505         modules/des-tests, modules/gc-arcfour-tests,
51506         modules/gc-arctwo-tests, modules/gc-des-tests,
51507         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51508         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51509         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51510         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51511         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51512         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51513         $(EXEEXT) to automake TESTS variable, for mingw32.
51514
51515 2006-01-17  Simon Josefsson  <jas@extundo.com>
51516
51517         * modules/socklen (Include): Need sys/socket.h.
51518
51519 2006-01-17  Bruno Haible  <bruno@clisp.org>
51520
51521         * modules/ssize_t (Include): Add <sys/types.h>.
51522
51523 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51524
51525         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51526         it's not portable and it doesn't work with cross-compiles.
51527         Problem reported by Bruno Haible.  Fix missing-$ typo in
51528         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51529         -zignore from being used with Sun's C compiler.
51530
51531 2006-01-12  Simon Josefsson  <jas@extundo.com>
51532
51533         * lib/base64.c: Fix warning, reported by Bruno Haible
51534         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51535
51536 2006-01-12  Bruno Haible  <bruno@clisp.org>
51537
51538         * modules/ldd: New file.
51539         * build-aux/ldd.sh.in: New file.
51540         * MODULES.html.sh (Support for building libraries and executables): Add
51541         ldd.
51542
51543 2006-01-12  Bruno Haible  <bruno@clisp.org>
51544
51545         * m4/ldd.m4: New file.
51546
51547 2006-01-12  Bruno Haible  <bruno@clisp.org>
51548
51549         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51550         endless loop while replacing $auxdir with build-aux.
51551
51552 2006-01-11  Simon Josefsson  <jas@extundo.com>
51553
51554         * lib/stdint_.h (SIZE_MAX): Add missing (.
51555
51556 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51557
51558         Sync from coreutils.
51559         * lib/md5.c: Fix commentary typos.
51560         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51561         * lib/md5.h (__attribute__): Remove; unused.
51562         * lib/sha1.c: Fix commentary to match md5 better.
51563         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51564         so that we don't need to worry about alignment.  All uses changed.
51565         This merges the 2005-10-28 md5 change into sha1.
51566
51567 2006-01-11  Jim Meyering  <jim@meyering.net>
51568
51569         Sync from coreutils.
51570         * lib/md5.c (OP): Fix spacing.
51571
51572 2006-01-11  Bruno Haible  <bruno@clisp.org>
51573
51574         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51575         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51576         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51577
51578 2006-01-11  Bruno Haible  <bruno@clisp.org>
51579
51580         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51581         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51582         the "early" section as well.
51583
51584 2006-01-11  Bruno Haible  <bruno@clisp.org>
51585
51586         Avoid "ar: no archive members specified" error on MacOS X.
51587         * gnulib-tool (func_modules_add_dummy): New function.
51588         (func_import, func_create_testdir): Invoke it.
51589
51590 2006-01-11  Bruno Haible  <bruno@clisp.org>
51591
51592         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51593         with $auxdir in AC_CONFIG_FILES statements.
51594
51595 2006-01-11  Bruno Haible  <bruno@clisp.org>
51596
51597         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51598         Initialize also noinst_HEADERS to empty.
51599
51600 2006-01-11  Bruno Haible  <bruno@clisp.org>
51601
51602         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51603         variables.
51604         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51605         autoreconf.
51606
51607 2006-01-11  Bruno Haible  <bruno@clisp.org>
51608
51609         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51610         overridable by the user.
51611         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51612
51613 2006-01-10  Simon Josefsson  <jas@extundo.com>
51614
51615         * modules/sys_socket: New file.
51616
51617 2006-01-10  Simon Josefsson  <jas@extundo.com>
51618
51619         * m4/sys_socket_h.m4: New file.
51620
51621 2006-01-10  Simon Josefsson  <jas@extundo.com>
51622
51623         * lib/socket_.h: New file.
51624
51625 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51626
51627         * modules/readutmp (Maintainer): Add myself.
51628
51629 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51630
51631         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51632         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51633         People who are still concerned with buggy memcmp implementations
51634         can invoke gl_FUNC_MEMCMP themselves.
51635
51636 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51637
51638         * lib/regex_internal.h (BITSET_WORD_BITS):
51639         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51640         preprocessor mishandles large unsigned values as if they were signed.
51641         Problem reported by Claudio Fontana in
51642         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51643
51644 2006-01-10  Jim Meyering  <jim@meyering.net>
51645
51646         Avoid the double-free (first in fts_read, second in fts_close) that
51647         would occur when an `active' directory is made inaccessible (e.g.,
51648         via chmod a-x) during a traversal.
51649         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51650         before returning.  Reproduce this failure by
51651         mkdir -p a/b; cd a; chmod a-x . b
51652         Reported by Stavros Passas.
51653
51654         Sync from coreutils.
51655         * lib/sha1.c: Tweak grammar in a comment.
51656
51657 2006-01-10  Jim Meyering  <jim@meyering.net>
51658
51659         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51660         Patch by Joerg Sonnenberger.
51661
51662 2006-01-10  Bruno Haible  <bruno@clisp.org>
51663
51664         * modules/readutmp: Depend on module free.
51665         * modules/strtok_r: Depend on module restrict.
51666
51667 2006-01-10  Bruno Haible  <bruno@clisp.org>
51668
51669         * modules/gettext (configure.ac): Add an invocation of
51670         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51671
51672 2006-01-10  Bruno Haible  <bruno@clisp.org>
51673
51674         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51675         Reported by Werner Lemberg <wl@gnu.org>.
51676
51677 2006-01-10  Bruno Haible  <bruno@clisp.org>
51678
51679         * lib/localcharset.c: Update from GNU gettext.
51680
51681 2006-01-10  Bruno Haible  <bruno@clisp.org>
51682
51683         * lib/argp.h (__const): Remove macro. Use const instead.
51684         * lib/argp-fmtstream.h (__const): Likewise.
51685         * lib/glob_.h (__const): Remove macro.
51686         * lib/glob-libc.h: Use const instead of __const.
51687
51688 2006-01-10  Bruno Haible  <bruno@clisp.org>
51689
51690         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
51691         variable.
51692         Needed to avoid an automake error regarding the 'gettext' module.
51693
51694 2006-01-09  Simon Josefsson  <jas@extundo.com>
51695
51696         * modules/inet_ntop (Depends-on): Add restrict.
51697
51698 2006-01-09  Simon Josefsson  <jas@extundo.com>
51699
51700         * modules/gc-rijndael-tests (License): Put under LGPL.
51701
51702         * modules/gc-des-tests (License): Likewise.
51703
51704         * modules/gc-arcfour-tests (License): Likewise.
51705
51706         * modules/gc-arctwo-tests (License): Likewise.
51707
51708         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
51709
51710         * modules/gc-hmac-sha1-tests (Files): Likewise.
51711
51712         * modules/gc-hmac-md5-tests (License): Likewise.
51713
51714         * modules/gc-sha1-tests (License): Likewise.
51715
51716         * modules/gc-md5-tests (License): Likewise.
51717
51718         * modules/gc-md4-tests (License): Likewise.
51719
51720         * modules/gc-md2-tests (License): Likewise.
51721
51722         * modules/gc-tests (License): Likewise.
51723
51724         * modules/des-tests (License): Likewise.
51725
51726         * modules/md4-tests (License): Likewise.
51727
51728         * modules/md2-tests (License): Likewise.
51729
51730 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51731
51732         Sync from coreutils:
51733
51734         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
51735         * modules/lib-ignore: New file.
51736         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
51737         chdir-safer.m4, lchmod.m4.
51738         * modules/openat: Add mkdirat.c, openat-priv.h.
51739
51740 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         Sync from coreutils.
51743         * m4/lib-ignore.m4: New file.
51744         * m4/lchmod.m4: New file.
51745
51746 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51747
51748         Sync from coreutils.
51749         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
51750         for write access: POSIX says that must fail.
51751         * lib/fts.c (diropen): Likewise.
51752         * lib/save-cwd.c (save_cwd): Likewise.
51753         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
51754         well, for minor improvements on hosts that lack O_DIRECTORY.
51755         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
51756         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
51757         Fall back on chown if open failed with EACCES.
51758
51759         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
51760         Report an error at compile-time if only a 1-second nominal clock
51761         resolution is found.
51762
51763         * lib/lchmod.h: New file.
51764         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
51765         (make_dir_parents): Use lchown rather than chown, and
51766         lchmod rather than chmod.
51767
51768         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
51769         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
51770         "proc" reported by n0dalus.
51771
51772         * lib/mountlist.c: Include <limits.h>.
51773         (dev_from_mount_options)
51774         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
51775         New function.  It no longer assumes "dev=" has the System V meaning
51776         on Linux (since it doesn't).  It also parses "dev=" more carefully.
51777         (read_file_system_list)
51778         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
51779         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
51780         dev= in that case.
51781
51782         * lib/posixtm.h (PDS_PRE_2000): New macro.
51783         * lib/posixtm.c (year): Arg is now syntax_bits rather than
51784         allow_century.  All usages changed.  Reject dates outside the range
51785         1969-1999 if PDS_PRE_2000 is used.
51786
51787 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51788
51789         Sync from coreutils.
51790         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
51791         (Time of day items): Mention the possibility of leap seconds.
51792         Problem reported by Dr. David Alan Gilbert.
51793
51794 2006-01-09  Jim Meyering  <jim@meyering.net>
51795
51796         Sync from coreutils.
51797
51798         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
51799
51800         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
51801
51802         * lib/modechange.c (mode_compile): Reject an invalid mode string
51803         that starts with an octal digit.  From Andreas Gruenbacher.
51804
51805         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
51806         and dup to open_safer and dup_safer, respectively.
51807         (openat_permissive): Fix typo in comment.
51808
51809         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
51810         "gettext.h"; either no longer needed or are guaranteed by openat.h.
51811         (_): Remove; no longer needed.
51812         (openat): Renamed from rpl_openat; no need for rpl_openat
51813         since openat.h renames openat for us.
51814         Replace most of the body with a call to openat_permissive,
51815         to avoid duplicate code.
51816         Port to (probably hypothetical) environments were mode_t is
51817         wider than int.
51818         (openat_permissive): Require mode arg, so that we can check
51819         types better.  Put it just after flags.  Change cwd failure
51820         indicator from pointer-to-bool to pointer-to-errno-value.
51821         All callers changed.
51822         Invoke openat_save_fail and/or openat_restore_fail if
51823         cwd_errno is null, so that openat can call us.
51824         (openat_permissive, fdopendir, fstatat, unlinkat):
51825         Simplify errno handling to avoid some duplicate code,
51826         as it's OK to set errno on success.
51827         * lib/openat.h: Revamp code so that function macros depend on
51828         __OPENAT_PREFIX only, not also on AT_FDCWD.
51829         (openat_ro): Remove.  Caller changed to use openat_permissive.
51830         (openat_permissive): Now a macro, if not a function.
51831         (openat_restore_fail, openat_save_fail): Now always functions,
51832         since mkdirat needs them even if __OPENAT_PREFIX is defined.
51833
51834         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
51835         and openat.c.
51836         * lib/mkdirat.c: Include openat-priv.h.
51837         Remove definitions of macros defined therein.
51838         * lib/openat.c: Likewise.
51839
51840         * lib/mkdirat.c (mkdirat): New file and function.
51841         * lib/openat.h (mkdirat): Declare.
51842
51843         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
51844
51845         * lib/openat.h (openat_permissive): Declare.
51846         (openat_ro): Define.
51847
51848         * lib/openat.c (EXPECTED_ERRNO): New macro.
51849         (openat_permissive): New function -- used in remove.c rewrite.
51850         (all functions): Set errno just before returning, only if there
51851         was an actual failure.
51852         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
51853
51854         Emulate openat-family functions using Linux's procfs, if possible.
51855         Idea and some code based on Ulrich Drepper's glibc changes.
51856
51857         * lib/openat.c: (BUILD_PROC_NAME): New macro.
51858         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
51859         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
51860         before falling back on save_cwd and restore_cwd.
51861         (fdopendir, fstatat, unlinkat): Likewise.
51862
51863         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
51864         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
51865
51866         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
51867         as second argument to va_arg.  Otherwise, some versions of gcc
51868         warn that `if this code is reached, the program will abort'.
51869
51870 2006-01-09  Jim Meyering  <jim@meyering.net>
51871
51872         Sync from coreutils.
51873         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
51874         Require openat-priv.h.
51875
51876 2006-01-09  Bruno Haible  <bruno@clisp.org>
51877
51878         * modules/strnlen (Include): Use strnlen.h.
51879
51880 2006-01-09  Bruno Haible  <bruno@clisp.org>
51881
51882         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
51883
51884 2006-01-09  Bruno Haible  <bruno@clisp.org>
51885
51886         * lib/sysexit_.h (EX_OK): New macro.
51887         Suggested by Martin Lambers <marlam@marlam.de>.
51888
51889 2006-01-09  Bruno Haible  <bruno@clisp.org>
51890
51891         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
51892         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
51893
51894 2006-01-09  Bruno Haible  <bruno@clisp.org>
51895
51896         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
51897         numbers.
51898
51899 2006-01-09  Bruno Haible  <bruno@clisp.org>
51900
51901         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
51902         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
51903         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
51904         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
51905
51906 2006-01-09  Bruno Haible  <bruno@clisp.org>
51907
51908         * build-aux/javacomp.sh.in: New file, moved from lib/.
51909         * modules/javacomp-script (Files): Update.
51910         (configure.ac): Add AC_CONFIG_FILES invocation.
51911         (EXTRA_DIST): Remove variable.
51912
51913         * build-aux/javaexec.sh.in: New file, moved from lib/.
51914         * modules/javaexec (Files): Update.
51915         (configure.ac): Add AC_CONFIG_FILES invocation.
51916         (EXTRA_DIST): Remove javaexec.sh.in.
51917
51918         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
51919         * modules/csharpcomp-script (Files): Update.
51920         (configure.ac): Add AC_CONFIG_FILES invocation.
51921         (EXTRA_DIST): Remove variable.
51922
51923         * build-aux/csharpexec.sh.in: New file, moved from lib/.
51924         * modules/csharpexec (Files): Update.
51925         (configure.ac): Add AC_CONFIG_FILES invocation.
51926         (EXTRA_DIST): Remove csharpexec.sh.in.
51927
51928 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51929
51930         Sync from coreutils.
51931
51932         Add POSIX ACL support
51933         * lib/acl.h (copy_acl, set_acl): Add declarations.
51934         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
51935         systems other than Linux.
51936         (chmod_or_fchmod): New function: use fchmod when possible,
51937         and chmod otherwise.
51938         (file_has_acl): Add a POSIX ACL implementation, with a
51939         Linux-specific subcase.
51940         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
51941         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
51942         acls are unsupported.
51943         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
51944         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
51945         are unsupported.
51946
51947 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51948
51949         Sync from coreutils.
51950         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
51951
51952 2006-01-07  Bruno Haible  <bruno@clisp.org>
51953
51954         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
51955         gl_EARLY.
51956
51957 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51958
51959         * lib/strftime.c (tzname): Don't declare if it is already #defined.
51960         Problem reported for Mingw by Mark Junker.
51961
51962 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51963
51964         * README: Gnulib normally doesn't generate a tarball.
51965
51966 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
51967
51968         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
51969         long int, not int, for nanosecond counts, so that people who are
51970         used to POSIX struct timespec won't be surprised.  Reported by Jim
51971         Meyering.
51972
51973 2005-12-28  Bruno Haible  <bruno@clisp.org>
51974
51975         * build-aux/config.rpath: Update from GNU gettext.
51976
51977 2005-12-16  Jim Meyering  <jim@meyering.net>
51978
51979         * modules/fprintftime: New module.
51980         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
51981
51982 2005-12-16  Jim Meyering  <jim@meyering.net>
51983
51984         * m4/fprintftime.m4: New file.
51985
51986 2005-12-16  Jim Meyering  <jim@meyering.net>
51987
51988         * lib/fprintftime.c, lib/fprintftime.h: New files.
51989
51990 2005-12-15  Simon Josefsson  <jas@extundo.com>
51991
51992         * modules/socklen (configure.ac): Fix M4 macro name, to align with
51993         new m4/socklen.m4.
51994
51995 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51996
51997         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
51998         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
51999
52000 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52001
52002         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
52003         * lib/argp-help.c (fill_in_uparams): Check if the constructed
52004         struct uparams is valid. Fall back to the default values if it is
52005         not.
52006
52007 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52008
52009         * modules/argp (Files): Add argp-pin.c
52010         (Depends-on): dirname
52011         (lib_SOURCES): Add argp-pin.c
52012
52013 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52014
52015         * m4/argp.m4:  Check if program_invocation_name and
52016         program_invocation_short_name are declared and define appropriate
52017         macros if they are not.
52018
52019 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52020
52021         * lib/argp-help.c (__argp_base_name): New function
52022         (__argp_short_program_name): Rewrite using __argp_base_name
52023         * lib/argp-namefrob.h: Define program_invocation_name and
52024         program_invocation_short_name if requested
52025         (__argp_base_name): Add prototype
52026         * lib/argp-parse.c (argp_def): Use gettext wrappers
52027         (argp_default_parser): Use __argp_base_name
52028         * lib/argp-pin.c: New file. Defines program_invocation_name and
52029         program_invocation_short_name on systems that lack them.
52030
52031 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52032
52033         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
52034         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52035         porting problem reported by Georg Schwarz in
52036         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52037
52038 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52039
52040         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
52041         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52042         porting problem reported by Georg Schwarz in
52043         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52044
52045 2005-12-05  Bruno Haible  <bruno@clisp.org>
52046
52047         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
52048         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
52049         Reported by Mark Junker <mjscod@gmx.de>.
52050
52051 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
52052
52053         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
52054         Use implementation from Albert Chin, with some
52055         comments/corrections by Stepan Kasal and myself.
52056
52057 2005-12-02  Bruno Haible  <bruno@clisp.org>
52058
52059         * gnulib-tool (func_import): Accept GPLed build tool modules when
52060         --lgpl is given.
52061         * modules/csharpcomp-script: New file.
52062         * modules/csharpcomp: Depend on it.
52063         * modules/javacomp-script: New file.
52064         * modules/javacomp: Depend on it.
52065         Suggested by Simon Josefsson.
52066
52067 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52068
52069         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
52070         statement, to work around an HP-UX 10.20 compiler bug reported by
52071         Peter O'Gorman.
52072
52073 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52074
52075         * modules/savedir (Depends-on): Add openat.
52076
52077 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52078
52079         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
52080         (uintmax_t) [defined uintmax_t]: Do not declare.
52081         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
52082         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
52083         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
52084         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
52085         sake of portability to weird hosts that C allows (though we don't
52086         know of any practical examples).
52087
52088         * lib/savedir.h (fdsavedir): New decl.
52089         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
52090         contains most of the former guts of savedir.
52091         (savedir): Use savedirstream.
52092         Include "openat.h".
52093
52094 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52095
52096         * modules/obstack (Files): Add m4/ulonglong.m4.
52097         Problem reported by Davide Angelocola.
52098
52099 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52100
52101         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
52102         coreutils no longer futzes with rounding modes.
52103
52104 2005-11-14  Jim Meyering  <jim@meyering.net>
52105
52106         * lib/mkstemp-safer.c: Include <config.h>, required for possible
52107         replacement of mkstemp.
52108
52109 2005-11-10  Simon Josefsson  <jas@extundo.com>
52110
52111         * lib/readline.c: Remove EOL.
52112
52113 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52114
52115         * modules/gethrxtime (Depends-on): Add gettime.
52116
52117 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52118
52119         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
52120         or gettimeofday; no longer needed.
52121
52122 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52123
52124         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
52125         time business.
52126         (gethrxtime) [! (HAVE_NANOUPTIME
52127         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
52128         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
52129         our own approximation.
52130
52131 2005-11-08  Eric Blake  <ebb9@byu.net>
52132
52133         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52134
52135 2005-11-08  Eric Blake  <ebb9@byu.net>
52136
52137         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52138
52139 2005-11-04  Bruno Haible  <bruno@clisp.org>
52140
52141         * gnulib-tool: Implement --update mode.
52142
52143 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52144
52145         Fix porting problem reported by Theodoros V. Kalamatianos.
52146         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
52147         Don't assume that futimes failing means we must fail.
52148
52149 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52150
52151         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
52152         variables to suggest the intended function of the PATH_MAX check.
52153
52154 2005-10-30  Kean Johnston  <jkj@sco.com>
52155
52156         Trivial changes to support SCO systems.
52157         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
52158         as PATH_MAX.
52159         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
52160         where __ptr is null when no I/O is pending.
52161
52162 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52163
52164         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
52165         leave errno alone.  Problem reported by Dmitry V. Levin.
52166
52167 2005-10-28  Simon Josefsson  <jas@extundo.com>
52168
52169         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
52170         Test more.
52171
52172         * tests/test-gc-md2.c, tests/test-md2.c: New files.
52173
52174         * modules/md2, modules/md2-tests: New files.
52175
52176 2005-10-28  Simon Josefsson  <jas@extundo.com>
52177
52178         * m4/inet_ntop.m4: More tests.
52179
52180         * m4/gc-md2.m4, md2.m4: New file.
52181
52182 2005-10-28  Simon Josefsson  <jas@extundo.com>
52183
52184         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
52185         "restrict" keywords, as per POSIX.  Protect the function
52186         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
52187         Don't use K&R prototypes.  Check the sprintf return values.
52188         Re-define EAFNOSUPPORT if not present.  Indent.
52189
52190         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
52191         suggested by Bruno Haible <bruno@clisp.org>.
52192
52193         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
52194
52195         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
52196
52197         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
52198         libgcrypt).
52199
52200         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
52201
52202         * lib/md2.h, lib/md2.c: New files.
52203
52204 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
52205
52206         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
52207         errno alone.  Problem reported by Frederic Jolliton.
52208
52209 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52210
52211         * modules/verify (License): Change from GPL to LGPL.  This is a
52212         tiny module and there are apparently near-equivalents that are
52213         under the BSD license.
52214
52215 2005-10-24  Simon Josefsson  <jas@extundo.com>
52216
52217         * modules/sha1: Relicense to LGPL.
52218
52219 2005-10-24  Simon Josefsson  <jas@extundo.com>
52220
52221         * lib/md4.h: Shrink buffer size, now that we changed the type.
52222
52223 2005-10-23  Simon Josefsson  <jas@extundo.com>
52224
52225         * gnulib-tool (func_import): Fix --tests-base.
52226
52227 2005-10-22  Simon Josefsson  <jas@extundo.com>
52228
52229         * modules/arcfour (Depends-on): Need stdint.
52230
52231 2005-10-22  Simon Josefsson  <jas@extundo.com>
52232
52233         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
52234         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
52235
52236 2005-10-22  Simon Josefsson  <jas@extundo.com>
52237
52238         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
52239         suggested by Bruno Haible <bruno@clisp.org>.
52240
52241 2005-10-22  Simon Josefsson  <jas@extundo.com>
52242
52243         * lib/crc.h: Include stddef.h, for size_t.
52244
52245 2005-10-22  Simon Josefsson  <jas@extundo.com>
52246
52247         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
52248         arcfour_context struct (simplify test vector testing in GNU
52249         Shishi).
52250
52251 2005-10-21  Simon Josefsson  <jas@extundo.com>
52252
52253         * modules/des, modules/des-tests: New files.
52254
52255         * modules/gc-des, modules/gc-des-tests: New files.
52256
52257         * tests/test-des.c, tests/test-gc-des.c: New file.
52258
52259 2005-10-21  Simon Josefsson  <jas@extundo.com>
52260
52261         * modules/arctwo, modules/arctwo-tests: New files.
52262
52263         * tests/test-arctwo.c: New file.
52264
52265         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
52266
52267         * tests/test-gc-arctwo.c: New file.
52268
52269 2005-10-21  Simon Josefsson  <jas@extundo.com>
52270
52271         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
52272         Bruno Haible <bruno@clisp.org>.
52273
52274         * m4/gc-des.m4: New file.
52275
52276 2005-10-21  Simon Josefsson  <jas@extundo.com>
52277
52278         * m4/arctwo.m4: New file.
52279
52280         * m4/gc-arctwo.m4: New file.
52281
52282 2005-10-21  Simon Josefsson  <jas@extundo.com>
52283
52284         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
52285         block.
52286
52287 2005-10-21  Simon Josefsson  <jas@extundo.com>
52288
52289         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
52290         <bruno@clisp.org>.
52291
52292         * lib/hmac-sha1.c (hmac_sha1): Likewise.
52293
52294         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
52295         Bruno Haible <bruno@clisp.org>.
52296
52297         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
52298         <bruno@clisp.org>.
52299
52300 2005-10-21  Simon Josefsson  <jas@extundo.com>
52301
52302         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
52303
52304 2005-10-21  Simon Josefsson  <jas@extundo.com>
52305
52306         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
52307
52308 2005-10-21  Simon Josefsson  <jas@extundo.com>
52309
52310         * lib/des.h, lib/des.c: New files.
52311
52312         * lib/gc-gnulib.c: Support DES.c
52313
52314 2005-10-21  Simon Josefsson  <jas@extundo.com>
52315
52316         * lib/arctwo.h, lib/arctwo.c: New files.
52317
52318         * lib/gc-gnulib.c: Support ARCTWO.
52319
52320 2005-10-21  Simon Josefsson  <jas@extundo.com>
52321
52322         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
52323         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52324
52325 2005-10-21  Simon Josefsson  <jas@extundo.com>
52326
52327         * gnulib-tool (func_import, func_create_testdir): Define automake
52328         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
52329         Makefile.am snippet),
52330         suggested by Bruno Haible <bruno@clisp.org>.
52331
52332         * modules/gc (Makefile.am): Use it.
52333
52334 2005-10-21  Bruno Haible  <bruno@clisp.org>
52335
52336         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
52337         patch.
52338
52339 2005-10-19  Simon Josefsson  <jas@extundo.com>
52340
52341         * tests/test-gc-rijndael.c: New file.
52342
52343         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
52344
52345 2005-10-19  Simon Josefsson  <jas@extundo.com>
52346
52347         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
52348         interface too.
52349
52350 2005-10-19  Simon Josefsson  <jas@extundo.com>
52351
52352         * tests/test-gc-arcfour.c: New file.
52353
52354         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
52355
52356 2005-10-19  Simon Josefsson  <jas@extundo.com>
52357
52358         * modules/gc-md4, modules/gc-md4-tests: New file.
52359
52360         * tests/test-gc-md4.c: New file.
52361
52362 2005-10-19  Simon Josefsson  <jas@extundo.com>
52363
52364         * m4/gc-md4.m4: New file.
52365
52366 2005-10-19  Simon Josefsson  <jas@extundo.com>
52367
52368         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
52369         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
52370         <kasal@ucw.cz>.
52371
52372 2005-10-19  Simon Josefsson  <jas@extundo.com>
52373
52374         * m4/gc-arcfour.m4: New file.
52375
52376         * m4/gc-rijndael.m4: New file.
52377
52378 2005-10-19  Simon Josefsson  <jas@extundo.com>
52379
52380         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
52381
52382 2005-10-19  Simon Josefsson  <jas@extundo.com>
52383
52384         * lib/gc-gnulib.c: Support ARCFOUR.
52385
52386 2005-10-19  Simon Josefsson  <jas@extundo.com>
52387
52388         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
52389         support.
52390
52391         * lib/gc.h: Add ECB enum type.
52392
52393         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
52394
52395 2005-10-18  Simon Josefsson  <jas@extundo.com>
52396
52397         * tests/test-md5.c: New file.
52398
52399         * modules/md5-tests: New file.
52400
52401 2005-10-18  Simon Josefsson  <jas@extundo.com>
52402
52403         * tests/test-md4.c: New file.
52404
52405         * modules/md4, modules/md4-tests: New files.
52406
52407 2005-10-18  Simon Josefsson  <jas@extundo.com>
52408
52409         * m4/md4.m4: New file.
52410
52411 2005-10-18  Simon Josefsson  <jas@extundo.com>
52412
52413         * lib/md4.h, lib/md4.c: New files, based on md5.?.
52414
52415 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
52416
52417         * gnulib-tool (func_create_testdir): Omit the second check whether
52418         BUILT_SOURCES in nonempty.
52419
52420 2005-10-17  Simon Josefsson  <jas@extundo.com>
52421
52422         * tests/test-rijndael.c: New file.
52423
52424 2005-10-17  Simon Josefsson  <jas@extundo.com>
52425
52426         * modules/sha1: Depend on stdint instead of md5.
52427
52428         * modules/md5: Depend on stdint, remove uint32_t.
52429
52430 2005-10-17  Simon Josefsson  <jas@extundo.com>
52431
52432         * modules/gc-sha1-tests: New file.
52433
52434         * tests/test-gc-sha1.c: New file.
52435
52436 2005-10-17  Simon Josefsson  <jas@extundo.com>
52437
52438         * m4/md5.m4: Remove call to uint32_t.m4.
52439
52440 2005-10-17  Simon Josefsson  <jas@extundo.com>
52441
52442         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
52443
52444         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
52445         md5.h.
52446
52447         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
52448
52449         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
52450
52451 2005-10-17  Simon Josefsson  <jas@extundo.com>
52452
52453         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
52454
52455 2005-10-17  Simon Josefsson  <jas@extundo.com>
52456
52457         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
52458
52459 2005-10-17  Simon Josefsson  <jas@extundo.com>
52460
52461         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
52462
52463         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
52464
52465 2005-10-17  Bruno Haible  <bruno@clisp.org>
52466
52467         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
52468         that it can also be used in a test.
52469
52470 2005-10-16  Bruno Haible  <bruno@clisp.org>
52471
52472         * gnulib-tool (func_emit_tests_Makefile_am): Also define
52473         TESTS_ENVIRONMENT, so that individual tests can augment it.
52474
52475         * gnulib-tool (func_create_testdir): Use an intermediate target for
52476         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
52477         macros, like $(ALLOCA_H), which cannot be passed through the command
52478         line.
52479
52480 2005-10-15  Simon Josefsson  <jas@extundo.com>
52481
52482         * modules/rijndael-tests: New file.
52483
52484         * modules/rijndael: New file.
52485
52486 2005-10-15  Simon Josefsson  <jas@extundo.com>
52487
52488         * m4/rijndael.m4: New file.
52489
52490 2005-10-15  Simon Josefsson  <jas@extundo.com>
52491
52492         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52493
52494         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52495
52496 2005-10-14  Simon Josefsson  <jas@extundo.com>
52497
52498         * tests/test-arcfour.c: New file.
52499
52500         * modules/arcfour, modules/arcfour-tests: New files.
52501
52502 2005-10-14  Simon Josefsson  <jas@extundo.com>
52503
52504         * m4/arcfour.m4: New file.
52505
52506 2005-10-14  Simon Josefsson  <jas@extundo.com>
52507
52508         * lib/arcfour.h, lib/arcfour.c: New files.
52509
52510 2005-10-14  Roland McGrath  <roland@redhat.com>
52511
52512         Import from libc.  [BZ #1331]
52513         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52514         macro argument.
52515         Reported by Matej Vela <vela@debian.org>.
52516
52517 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52518
52519         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52520         include <wchar.h>; no longer needed.
52521
52522 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52523
52524         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52525
52526 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52527         and  Ulrich Drepper  <drepper@redhat.com>
52528
52529         Import from libc.
52530         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52531         instead of inline stream orientation test and two separate
52532         function calls.  Pay no attention to USE_IN_LIBIO.
52533
52534 2005-10-13  Simon Josefsson  <jas@extundo.com>
52535
52536         * modules/gc-hmac-md5-tests: New file.
52537
52538         * tests/test-gc-hmac-sha1.c: New file.
52539
52540         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52541
52542         * modules/gc-hmac-md5-tests: New file.
52543
52544         * tests/test-gc-md5.c: New file.
52545
52546         * modules/gc-md5-tests: New file.
52547
52548 2005-10-13  Simon Josefsson  <jas@extundo.com>
52549
52550         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52551         Move memory allocation outside of loop.
52552
52553 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52554
52555         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52556         intermediate directory is in a read-only file system.  Problem
52557         reported by Eric Blake.
52558
52559 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52560
52561         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52562
52563 2005-10-12  Simon Josefsson  <jas@extundo.com>
52564
52565         * tests/test-hmac-sha1.c: New file.
52566
52567         * modules/hmac-sha1-tests: New file.
52568
52569         * modules/hmac-sha1: New file.
52570
52571 2005-10-12  Simon Josefsson  <jas@extundo.com>
52572
52573         * modules/gc-sha1: New file.
52574
52575 2005-10-12  Simon Josefsson  <jas@extundo.com>
52576
52577         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52578
52579         * tests/test-gc-pbkdf2-sha1.c: New file.
52580
52581 2005-10-12  Simon Josefsson  <jas@extundo.com>
52582
52583         * modules/gc-md5, modules/gc-hmac-md5: New files.
52584
52585         * modules/gc (Files): Remove md5, memxor and hmac files.
52586
52587 2005-10-12  Simon Josefsson  <jas@extundo.com>
52588
52589         * m4/gc-pbkdf2-sha1.m4: New file.
52590
52591         * m4/gc-hmac-sha1.m4: New file.
52592
52593         * m4/gc-sha1: New file.
52594
52595         * m4/hmac-sha1.m4: New file.
52596
52597 2005-10-12  Simon Josefsson  <jas@extundo.com>
52598
52599         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52600
52601         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52602
52603 2005-10-12  Simon Josefsson  <jas@extundo.com>
52604
52605         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52606         suggested by Bruno Haible <bruno@clisp.org>.
52607
52608 2005-10-12  Simon Josefsson  <jas@extundo.com>
52609
52610         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52611
52612 2005-10-12  Simon Josefsson  <jas@extundo.com>
52613
52614         * lib/gc-pbkdf2-sha1.c: New file.
52615
52616         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52617
52618 2005-10-12  Simon Josefsson  <jas@extundo.com>
52619
52620         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52621
52622         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52623
52624 2005-10-12  Simon Josefsson  <jas@extundo.com>
52625
52626         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52627         GC_USE_HMAC_MD5, respectively.
52628
52629         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52630         (gc_md5): Fix typo.
52631
52632         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52633
52634         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52635
52636         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52637
52638 2005-10-12  Bruno Haible  <bruno@clisp.org>
52639
52640         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52641         Reported by Stepan Kasal <kasal@ucw.cz>.
52642
52643 2005-10-11  Simon Josefsson  <jas@extundo.com>
52644
52645         * tests/test-crc.c: New file.
52646
52647         * modules/crc, modules/crc-tests: New files.
52648
52649 2005-10-11  Simon Josefsson  <jas@extundo.com>
52650
52651         * m4/crc.m4: New file.
52652
52653 2005-10-11  Simon Josefsson  <jas@extundo.com>
52654
52655         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52656
52657         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52658
52659         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52660
52661 2005-10-11  Simon Josefsson  <jas@extundo.com>
52662
52663         * lib/crc.h, lib/crc.c: New files.
52664
52665         * lib/gc.h (gc_hash_buffer): Add doc.
52666
52667 2005-10-11  Bruno Haible  <bruno@clisp.org>
52668
52669         * modules/c-strcasestr: New file.
52670         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52671
52672 2005-10-11  Bruno Haible  <bruno@clisp.org>
52673
52674         * modules/c-strcase: New file.
52675         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52676
52677 2005-10-11  Bruno Haible  <bruno@clisp.org>
52678
52679         * lib/strcasecmp.c: Include limits.h.
52680         (strcasecmp): Avoid integer overflow on exotic platforms.
52681         * lib/strncasecmp.c: Include limits.h.
52682         (strncasecmp): Avoid integer overflow on exotic platforms.
52683         Reported by Paul Eggert.
52684
52685 2005-10-11  Bruno Haible  <bruno@clisp.org>
52686
52687         * lib/c-strcasestr.h: New file, from GNU gettext.
52688         * lib/c-strcasestr.c: New file, from GNU gettext.
52689
52690 2005-10-11  Bruno Haible  <bruno@clisp.org>
52691
52692         * lib/c-strcase.h: New file, from GNU gettext.
52693         * lib/c-strcasecmp.c: New file, from GNU gettext.
52694         * lib/c-strncasecmp.c: New file, from GNU gettext.
52695
52696 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52697
52698         * modules/mempcpy (License): GPL -> LGPL.
52699         * modules/strchrnul (License): Likewise.
52700         * modules/sysexits (License): Likewise.
52701
52702 2005-10-08  Simon Josefsson  <jas@extundo.com>
52703
52704         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
52705
52706 2005-10-07  Simon Josefsson  <jas@extundo.com>
52707
52708         * m4/memxor.m4: Remove gl_C_RESTRICT call.
52709
52710 2005-10-06  Simon Josefsson  <jas@extundo.com>
52711
52712         * tests/test-hmac-md5.c: New file.
52713
52714         * modules/hmac-md5-tests: New file.
52715
52716         * modules/hmac-md5: New file.
52717
52718 2005-10-06  Simon Josefsson  <jas@extundo.com>
52719
52720         * m4/hmac-md5.m4: New file.
52721
52722         * m4/memxor.m4: Require gl_C_RESTRICT.
52723
52724 2005-10-06  Simon Josefsson  <jas@extundo.com>
52725
52726         * lib/memxor.c (memxor): Avoid casts and warnings.
52727
52728 2005-10-06  Simon Josefsson  <jas@extundo.com>
52729
52730         * lib/hmac-md5.c: New file.
52731
52732         * lib/hmac.h: New file.
52733
52734 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52735
52736         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
52737         promotes to int, not unsigned int, to catch the AIX 5.3
52738         compiler bug.
52739
52740 2005-10-05  Simon Josefsson  <jas@extundo.com>
52741
52742         * modules/memxor: New file.
52743
52744         * modules/iconv (Files): Move config.rpath to havelib, it is used
52745         there.
52746
52747         * modules/havelib (Files): Add config.rpath.
52748
52749 2005-10-05  Simon Josefsson  <jas@extundo.com>
52750
52751         * m4/memxor.m4: New file.
52752
52753 2005-10-05  Simon Josefsson  <jas@extundo.com>
52754
52755         * lib/memxor.c (memxor): Fix compiler error.
52756
52757         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
52758         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
52759
52760         * lib/memxor.h, lib/memxor.c: New files.
52761
52762         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
52763         we assume all systems have it, suggested by Jim Meyering
52764         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
52765         any systems lack sys/socket.h; mingw32 is known to lack it, but we
52766         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
52767         same reasons.
52768
52769 2005-10-05  Simon Josefsson  <jas@extundo.com>
52770
52771         * config/srclist.txt: Add glibc bug 1423 for md5.h.
52772
52773 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52774
52775         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
52776         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
52777         needed, since the source code now assumes these .h files.
52778
52779 2005-10-05  Derek Price  <derek@ximbiot.com>
52780
52781         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
52782
52783 2005-10-05  Bruno Haible  <bruno@clisp.org>
52784
52785         * modules/stdint (License): Change to LGPL.
52786
52787 2005-10-04  Simon Josefsson  <jas@extundo.com>
52788
52789         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
52790         D. Baushke" <mdb@gnu.org>.
52791
52792 2005-10-04  Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/verify.h (verify_true): Provide alternative definition for C++.
52795
52796 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
52797
52798         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
52799         (SSIZE_MAX): New macro, if not already defined.
52800         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
52801         than 2 GiB.
52802
52803 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52804
52805         Sync from coreutils.
52806         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
52807         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
52808         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
52809         ULLONG_MAX doesn't work with 2.7.2.1.
52810
52811 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52812
52813         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
52814         From Ben Pfaff.
52815
52816         * modules/exclude (Depends-on): Depend on verify.
52817         * modules/strtoimax (Depends-on): Likewise.
52818         * modules/utimecmp (Depends-on): Likewise.
52819
52820 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52821
52822         * lib/exclude.c: Include verify.h.
52823         (verify): Remove.  All callers changed to use verify.h's version.
52824         * lib/strtoimax.c: Likewise.
52825         * lib/utimecmp.c: Likewis.e
52826
52827         Sync from coreutils.
52828         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
52829         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
52830         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
52831         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
52832         bother returning ENOSYS if settimeofday or stime fails; just let
52833         them return whatever errno they want to return.
52834         * lib/utimens.c: Include unistd.h, for dup2.
52835         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
52836         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
52837
52838 2005-10-02  Jim Meyering  <jim@meyering.net>
52839
52840         Sync from coreutils.
52841         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
52842         from glibc-2.2.5 that fails for read-only files.
52843
52844 2005-10-02  Jim Meyering  <jim@meyering.net>
52845
52846         Sync from coreutils.
52847         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
52848         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
52849         `#if HAVE_CONFIG_H'.
52850         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
52851         Remove AT_FDCWD test.
52852         Do not consume the fd unless successful.
52853         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
52854         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
52855         block, so that we don't even try to compile it if settimeofday is
52856         available.  This works around a compilation failure on OSF1 V5.1,
52857         due to stime requiring a `long int*' while tv_sec is `int'.
52858
52859 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
52860
52861         Sync from coreutils.
52862         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
52863         against `yes', rather than just testing for nonempty.
52864
52865 2005-10-01  Simon Josefsson  <jas@extundo.com>
52866
52867         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
52868         and Darwin.
52869
52870         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
52871         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
52872         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
52873         freeaddrinfo and gai_strerror are declared by the POSIX headers.
52874         Check if struct addrinfo is declared.
52875
52876 2005-10-01  Simon Josefsson  <jas@extundo.com>
52877
52878         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
52879         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
52880         AI_* and EAI_* definitions.  Protect function declarations.
52881
52882 2005-10-01  Jim Meyering  <jim@meyering.net>
52883
52884         Sync from coreutils.
52885
52886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
52887         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
52888         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
52889         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52890         in the inet and nsl libraries.  Required on Solaris 5.7.
52891
52892 2005-10-01  Jim Meyering  <jim@meyering.net>
52893
52894         Sync from coreutils.
52895         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52896         in the inet and nsl libraries.  Required on Solaris 5.7.
52897
52898 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
52899
52900         * lib/getdelim.c (getdelim): Remove unused variables.
52901
52902 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52903
52904         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
52905         so that the code works even with ancient cpp.  Portability problem
52906         with GCC 2.7.2.1 reported by Thomas M.Ott.
52907
52908 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52909
52910         * modules/regex (Depends-on): Add strcase.
52911
52912         * modules/gethostname (Licence): Change from GPL to LGPL, since
52913         gethostname.c is a trivial implementation of a standard library
52914         function.
52915         * modules/poll (License): Change from GPL to LGPL, since it's
52916         derived from LGPL code.
52917
52918 2005-09-27  Jim Meyering  <jim@meyering.net>
52919
52920         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
52921         HAVE_CONFIG_H.
52922
52923         * lib/intprops.h (signed_type_or_expr__): Define.
52924         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
52925         for unsigned types.
52926
52927 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         * lib/verify.h (verify_expr): Remove, replacing with:
52930         (verify_true): New macro that returns true instead of void.
52931         (verify_type__): Remove.
52932         (verify): Use verify_true rather than verify_type__.
52933
52934 2005-09-26  Bruno Haible  <bruno@clisp.org>
52935
52936         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
52937         is necessary.
52938         (lib_SOURCES): Remove mbchar.c.
52939         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
52940         (Files): Add m4/mbrtowc.m4.
52941         * modules/mbiter: Likewise.
52942         * modules/mbuiter: Likewise.
52943
52944 2005-09-26  Bruno Haible  <bruno@clisp.org>
52945
52946         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
52947         compile mbchar.c if they are not both present.
52948         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
52949         * m4/mbiter.m4 (gl_MBITER): Likewise.
52950         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
52951         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
52952         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
52953
52954 2005-09-25  Jim Meyering  <jim@meyering.net>
52955
52956         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
52957         also uses socklen_t.
52958
52959 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
52960
52961         * lib/utimens.c (ENOSYS): Define if not already defined.
52962         (futimens): Support having a null PATH if the file descriptor
52963         is nonnegative.
52964
52965         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
52966         Remove.
52967         (__attribute): Define to empty unless GCC 3.1 or later.
52968         This works around a core dump on OpenBSD 3.4, which has GCC
52969         2.95.3, which dumps core when given __attribute__(()).  It also
52970         simplifies other tests, since we really don't want to bother with
52971         worrying about which ancient version of GCC supported what.
52972         Original problem reported by Yoann Vandoorselaere, with part of
52973         the fix suggested by Derek Price.
52974
52975 2005-09-24  Jim Meyering  <jim@meyering.net>
52976
52977         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
52978         so we can once again use a positive bitfield width of 1 -- now we
52979         don't have to explain why we were using a bitfield width of 2.
52980
52981 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52982
52983         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
52984         and similarly for the other external symbols.  Problem reported
52985         by James Gallager.
52986
52987         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
52988         bug reported by Jim Meyering.
52989
52990         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
52991         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
52992         not needed, since socklen is a prerequisite module.
52993
52994 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52995
52996         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
52997         Problem reported by Eric Blake.
52998         (getaddrinfo): Initialize se so that it's not garbage.
52999         Redo internal storage allocation so that it doesn't make unportable
53000         assumptions about alignment.
53001         Fix a memory leak.
53002
53003         * lib/utimens.c (futimens): Use futimesat if available.
53004         Prefer it to futimes since it doesn't have the futimes bug.
53005
53006         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
53007         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
53008         Instead, declare a function that returns a pointer to an array,
53009         and use verify_type__ to declare the size of the array.
53010         Problem and germ of a solution reported by Bruno Haible.
53011         (verify_type__): Use 2, not 1, for bitfield size, to avoid
53012         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
53013
53014 2005-09-23  Jim Meyering  <jim@meyering.net>
53015
53016         Sync from coreutils.
53017         Correct build failure (socklen_t not defined) on at least
53018         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
53019         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
53020
53021 2005-09-23  Jim Meyering  <jim@meyering.net>
53022
53023         * modules/getaddrinfo (Depends-on): Add socklen.
53024
53025 2005-09-23  Bruno Haible  <bruno@clisp.org>
53026
53027         * tests/test-verify.c: New file.
53028
53029 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53030
53031         Sync from coreutils.
53032
53033         * modules/argmatch (Depends-on): Add verify.
53034         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
53035         unistd-safer.
53036         * modules/save-cwd (Depends-on): Likewise.
53037
53038         * modules/openat (Files): Add lib/openat-die.c.
53039         (Depends-on): Remove error, exitfail.
53040         Add dirname.
53041
53042         * modules/verify: New file.
53043         * MODULES.html.sh (Diagnostics <assert.h>): New section,
53044         with "verify" module.
53045
53046 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53047
53048         Sync from coreutils.
53049
53050         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
53051         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
53052         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
53053         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
53054         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
53055         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
53056         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
53057         Don't bother checking for string.h, stdlib.h, unistd.h.
53058         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
53059         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
53060         module's job.
53061         * m4/jm-macros.m4 (gl_MACROS): Likewise.
53062         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
53063
53064         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
53065         (gl_GETDATE): Use it.
53066
53067         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
53068
53069 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53070
53071         Sync from coreutils.
53072
53073         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
53074         stat-time.h.
53075         * lib/argmatch.h: Include verify.h
53076         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
53077         (ARGMATCH_ASSERT): Remove; unused.
53078         * lib/canonicalize.c: Assume STDC_HEADERS.
53079         * lib/exclude.c: Include "strcase.h".
53080         * lib/regex_internal.h [!defined _LIBC]: Likewise.
53081         * lib/getusershell.c: Include stdio--.h rather than stdio.h
53082         and stdio-safer.h.
53083         (getusershell): Call fopen, not fopen_safer.
53084         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
53085         Do not include unistd-safer.h.
53086         (save_cwd): Don't call fd_safer; no longer needed
53087         now that we include fcntl--.h.
53088
53089         * lib/getdate.y (relative_time): New type.
53090         (RELATIVE_TIME_0): New constant.
53091         (parser_control): Use relative_time instead of doing it ourselves.
53092         (%union): Add new relative_time rel member.
53093         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
53094         Now typeless.
53095         (relunit, relunit_snumber): Now of type rel.
53096         (zone, rel, relunit, get_date): Adjust to above changes.
53097
53098         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
53099         Do not include unistd-safer.h.
53100         (getloadavg): Don't call fd_safer; no longer needed
53101         now that we include fcntl--.h.
53102
53103         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
53104         (make_dir_parents): Treat ENOSYS like EEXIST.
53105
53106         Improve quality of diagnostics on restore_cwd failure.
53107         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
53108         (make_dir_parents): Last arg is now int * (for errno), not bool *.
53109         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
53110         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
53111         each time through the loop.  Do not diagnose restore_cwd failure;
53112         that is the caller's job (and perhaps the caller does not care).
53113
53114         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
53115         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
53116         If the file already exists but is not a directory, don't bother
53117         to try to make its parents.
53118         Close potential file descriptor leak if we can't chdir("/") (!).
53119         Don't always return true if chdir($PWD) fails; return true only
53120         if the requested action was done successfully (except for the
53121         chdir($PWD)).
53122         Don't log final directory unless we actually made it.
53123         Refactor to avoid duplicate code to fix up permissions.
53124         Don't attempt to fix up parent permissions if chdir($PWD) fails.
53125
53126         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
53127         to make it a bit faster and (I hope) clearer.
53128         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
53129         Fix bug in formats like %2N.
53130
53131         * lib/verify.h: New file.
53132
53133 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53134
53135         Sync from coreutils.
53136         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
53137
53138 2005-09-22  Jim Meyering  <jim@meyering.net>
53139
53140         Sync from coreutils.
53141
53142         * m4/lstat.m4 (gl_FUNC_LSTAT):
53143         Use AC_LIBSOURCES to require lstat.c and lstat.h.
53144         Remove obsolete comment.
53145         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
53146         * m4/xstrtod.m4: Likewise.
53147
53148         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
53149
53150 2005-09-22  Jim Meyering  <jim@meyering.net>
53151
53152         Sync from coreutils.
53153
53154         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
53155
53156         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
53157         the .tm_year member, since otherwise gcc-4.0 would now warn about
53158         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
53159
53160         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
53161         order to avoid an unsuppressible warning from gcc on 64-bit systems.
53162
53163         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
53164         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
53165         when run in a time zone for which daylight savings time is in effect
53166         for the starting date.
53167
53168         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
53169         stop us from restricting permissions of just-created absolute-named
53170         directories.
53171         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
53172         to restore initial working directory.
53173         * lib/mkdir-p.c (make_dir_parents): New parameter:
53174         different_working_dir, to tell caller if/when we change the working
53175         directory and are unable to return to the initial one.
53176         * lib/mkdir-p.h (make_dir_parents): Update prototype.
53177         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
53178         `return false'.  This fixes a bug introduced on 2004-07-30.
53179
53180         * lib/openat.c (fdopendir): Be sure to close the supplied
53181         file descriptor before returning.  This makes our replacement
53182         implementation a little closer to Solaris's, where fdopendir
53183         ties the file descriptor to the returned DIR* pointer.
53184         * lib/openat.c (unlinkat): New function.
53185         * lib/openat.h (unlinkat): Add prototype.
53186         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
53187         (openat_restore_fail): Rename from openat_restore_die.
53188         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
53189
53190         Provide an alternative to exiting immediately upon save_cwd or
53191         restore_cwd failure.  Now, an application can arrange e.g.,
53192         to perform a longjump in that case.
53193         * lib/openat.c: Include dirname.h.
53194         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
53195         (rpl_openat, fdopendir, fstatat): Call openat_save_die
53196         and openat_restore_die rather than calling error directly.
53197         Don't include "error.h" or "exitfail.h"; they're no longer needed.
53198
53199         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
53200         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
53201         define.
53202
53203         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
53204         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
53205                             int utc, int nanoseconds);
53206         Background:
53207         date should not have to allocate a megabyte of virtual memory to
53208         handle a format argument like +%1048575T.  When implemented with
53209         strftime, it must allocate such a buffer, use strftime to fill it
53210         in, print it, then free it.
53211         With fprintftime, it simply prints everything and exits.
53212         With no need for memory allocation, that's one fewer way to fail.
53213         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
53214         optional field width, not before, so we accept %9:z, not %:9z.
53215         (my_strftime): Be sure to use L_('x') for literals.
53216
53217         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
53218         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
53219         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
53220         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
53221         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
53222         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
53223         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
53224         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
53225         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
53226         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
53227         * lib/xgethostname.c, lib/xreadlink.c:
53228         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
53229
53230         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
53231         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
53232         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
53233         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
53234         and don't include <sys/file.h>).
53235
53236 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
53237
53238         Sync from coreutils.
53239
53240         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
53241         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
53242         [!LDAV_DONE]: Avoid unused variable warning.
53243
53244 2005-09-21  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/unicodeio.h (unicode_to_mb): New declaration.
53247
53248 2005-09-20  Derek Price  <derek@ximbiot.com>
53249
53250         * lib/getaddrinfo.c: Don't include <netdb.h> included from
53251         getaddrinfo.h.
53252
53253 2005-09-20  Bruno Haible  <bruno@clisp.org>
53254
53255         * gnulib-tool: Remove trailing slashes from the values specified for
53256         --source-base, --m4-base, --tests-base, --aux-dir.
53257         Suggested by Simon Josefsson <jas@extundo.com>.
53258
53259 2005-09-20  Bruno Haible  <bruno@clisp.org>
53260
53261         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
53262         func_modules_to_filelist, func_import, func_create_testdir): Make all
53263         sorting results locale-independent, so that gnulib-cache.m4 doesn't
53264         change when gnulib-tool is invoked in a different locale.
53265
53266 2005-09-19  Simon Josefsson  <jas@extundo.com>
53267
53268         * m4/socklen.m4: Fix typo.
53269
53270 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53271
53272         Use a consistent style for including <config.h>.
53273         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
53274         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
53275         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
53276         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
53277         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
53278         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
53279         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
53280         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
53281         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
53282         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
53283         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
53284         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
53285         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
53286         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
53287         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
53288         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
53289         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
53290         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
53291         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
53292         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
53293         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
53294         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
53295         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
53296         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
53297         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
53298         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
53299         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
53300         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
53301         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
53302         lib/xstrtoumax.c, lib/yesno.c:
53303         Standardize inclusion of config.h.
53304         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
53305         lib/inttostr.h:  Removed inclusion of config.h from header files.
53306         * lib/inttostr.c:  Adjusted in-tree users.
53307         * lib/timespec.h: Remove superfluous warning to include config.h.
53308         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
53309         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
53310         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
53311         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
53312         config.h with HAVE_CONFIG_H.
53313
53314 2005-09-19  Jim Meyering  <jim@meyering.net>
53315
53316         * modules/pathmax (License): Change to LGPL.
53317
53318 2005-09-19  Derek Price  <derek@ximbiot.com>
53319
53320         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
53321
53322 2005-09-19  Bruno Haible  <bruno@clisp.org>
53323
53324         * gnulib-tool (import): Provide default for --tests-base.
53325
53326 2005-09-19  Bruno Haible  <bruno@clisp.org>
53327
53328         * doc/quote.texi: New file, extracted from gnulib.texi.
53329         * doc/ctime.texi: New file, extracted from gnulib.texi.
53330         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
53331         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
53332         * doc/gnulib.texi: Include them.
53333
53334 2005-09-18  Bruno Haible  <bruno@clisp.org>
53335
53336         Portability fix.
53337         * gnulib-tool (func_readlink): New function.
53338         (func_ln_if_changed): Use it.
53339
53340 2005-09-18  Bruno Haible  <bruno@clisp.org>
53341
53342         * gnulib-tool: Support --with-tests also with --import.
53343         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
53344         (func_import): Use variables $testsbase and $inctests. Emit a
53345         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
53346         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
53347         SUBDIRS += $testsdir.
53348         (func_create_testdir): Update.
53349
53350 2005-09-18  Bruno Haible  <bruno@clisp.org>
53351
53352         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
53353         instead of $dry_run.
53354         (func_cp_if_changed, func_mv_if_changed): Remove functions.
53355         (func_ln_if_changed): Don't handle dry-run here.
53356         (func_import): In dry-run mode, detect more precisely which actions
53357         would be performed, and don't use "...ing" verbs.
53358
53359 2005-09-18  Bruno Haible  <bruno@clisp.org>
53360
53361         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
53362         (func_import): Use join on two temporary files instead of three nested
53363         loops, in order to determine which files are new or old.
53364
53365 2005-09-18  Bruno Haible  <bruno@clisp.org>
53366
53367         * gnulib-tool (func_import): Comment out code that spits out the
53368         new files with --dry-run.
53369
53370 2005-09-18  Bruno Haible  <bruno@clisp.org>
53371
53372         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
53373
53374 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53375
53376         * lib/stat-time.h: New file.
53377         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
53378         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
53379         in a different way.
53380         (timespec_cmp): New function.
53381         * lib/utimecmp.c: Include stat-time.h.
53382         (SYSCALL_RESOLUTION): Depend on whether various struct stat
53383         members exist, not on the obsolescent ST_MTIM_NSEC.
53384         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
53385
53386 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53387
53388         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
53389
53390 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53391
53392         * MODULES.html.sh (File system functions): Add stat-time.
53393         * modules/stat-time: New file.
53394         * modules/timespec (Files): Remove m4/st_mtim.m4; this
53395         is now done in a different way, by the stat-time module.
53396         * modules/utimecmp (Depends-on): Add stat-time.
53397
53398 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53399
53400         * m4/st_mtim.m4: Remove.  Superseded by...
53401         * m4/stat-time.m4: New file.
53402         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
53403         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
53404
53405 2005-09-15  Derek Price  <derek@ximbiot.com>
53406
53407         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
53408
53409 2005-09-15  Derek Price  <derek@ximbiot.com>
53410
53411         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
53412         * lib/regex_internal.c: Ditto, using this...
53413         (__GNUC_PREREQ): ...new macro.
53414         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
53415         using...
53416         (__GNUC_PREREQ): ...this new macro.
53417
53418         * lib/strstr.h: Include string.h. Define strstr as a macro here.
53419
53420 2005-09-15  Derek Price  <derek@ximbiot.com>
53421             Paul Eggert  <eggert@cs.ucla.edu>
53422
53423         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
53424         changes, consolidating in...
53425         * lib/regex_internal.h: ...this file.
53426
53427 2005-09-13  Jim Meyering  <jim@meyering.net>
53428
53429         * lib/canon-host.c: Filter through gnu indent and reword comments
53430         slightly.
53431         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
53432
53433 2005-09-13  Derek Price  <derek@ximbiot.com>
53434
53435         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
53436         failure.
53437         Reported by Jim Meyering  <jim@meyering.net>.
53438
53439 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53440
53441         * lib/base64.c: Typo.
53442         (base64_encode): Put b64str in initialized data section.
53443
53444 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         Merge glibc and coreutils changes into gnulib, plus a few
53447         extra fixes.
53448         * lib/md5.c: Use #error rather than a string.
53449         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
53450         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
53451         (__attribute__): Define to empty for non recent-GCC.
53452         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
53453         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
53454         Renamed from their non-__ counterparts, with new macros replacing
53455         them if not _LIBC.  Add __THROW attribute.
53456         (rol): Remove.
53457         (struct md5_ctx): Align buffer if using GCC.
53458         * lib/sha1.h (struct sha1_ctx): Likewise.
53459         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
53460         The old name was backwards.
53461         (NOTSWAP): Remove; not used.
53462         (rol): New macro, moved here from md5.h.
53463         (sha1_process_block): Remove a FIXME that doesn't make sense.
53464
53465 2005-09-12  Derek Price  <derek@ximbiot.com>
53466
53467         Return usable errors from canon-host.
53468         * lib/canon-host.h: New file.
53469         * lib/canon-host.c (canon_host): Wrap...
53470         (canon_host_r): ...this new function, which now relies exclusively on
53471         getaddrinfo.
53472         (ch_strerror): New function.
53473         (last_cherror): New global.
53474         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
53475         interface.
53476         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
53477         void *.
53478         (freeaddrinfo): Free ai->ai_canonname when set.
53479
53480 2005-09-12  Derek Price  <derek@ximbiot.com>
53481
53482         Make canon-host require getaddrinfo.
53483         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
53484         AC_LIBSOURCE canon-host.h.  Call...
53485         (gl_PREREQ_CANON_HOST): ...this new function, which requires
53486         gl_GETADDRINFO.
53487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
53488
53489 2005-09-12  Derek Price  <derek@ximbiot.com>
53490
53491         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53492         LGPL.
53493         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53494
53495 2005-09-12  Derek Price  <derek@ximbiot.com>
53496
53497         * lib/gai_strerror.c: Include config.h when available.  Include
53498         getaddrinfo.h before other headers to test interface.
53499         Reported by Larry Jones <lawrence.jones@ugs.com>.
53500
53501 2005-09-12  Derek Price  <derek@ximbiot.com>
53502             Paul Eggert  <eggert@cs.ucla.edu>
53503
53504         * modules/glob (Files): Add glob-libc.h.
53505
53506 2005-09-12  Derek Price  <derek@ximbiot.com>
53507             Paul Eggert  <eggert@cs.ucla.edu>
53508
53509         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53510         glob_.h, glob-libc.h.
53511         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53512
53513 2005-09-12  Derek Price  <derek@ximbiot.com>
53514             Paul Eggert  <eggert@cs.ucla.edu>
53515
53516         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53517         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53518         protecting things that should be done only in gnulib contexts.
53519         * lib/glob_.h: New file, containing only the glob things needed for
53520         gnulib.
53521         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53522         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53523         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53524         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53525         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53526         and to respect the namespace rules better.
53527
53528 2005-09-08  Simon Josefsson  <jas@extundo.com>
53529
53530         * modules/socklen: New file.
53531
53532 2005-09-08  Simon Josefsson  <jas@extundo.com>
53533
53534         * m4/socklen.m4: New file.
53535
53536 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53537
53538         * modules/utimens (Files): Add m4/utimbuf.m4, since
53539         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53540         Reported by Sergey Poznyakoff.
53541
53542 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53543
53544         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53545         definitions, since that's the preferred style in glibc.
53546         Fix a minor spacing issue, and update copyright notice to match
53547         glibc's.
53548
53549 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53550
53551         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53552
53553 2005-09-06  Simon Josefsson  <jas@extundo.com>
53554
53555         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53556         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53557
53558 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53559
53560         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53561         warning.
53562
53563 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53564
53565         * config/srclist.txt: Add glibc bug 1302.
53566
53567 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53568
53569         Change bitset word type from unsigned int to unsigned long int,
53570         as this has better performance on typical 64-bit hosts.
53571         Port bitset code to hosts with unusual word sizes.
53572         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53573         (build_collating_symbol):
53574         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53575         argument is a bitset.  This is merely a style issue, but it makes
53576         it clearer that an entire array is expected.
53577         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53578         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53579         Port to the case where bitset_word is not the same as unsigned int.
53580         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53581         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53582         Likewise.
53583         * lib/regexec.c (check_dst_limits_calc_pos_1,
53584         check_subexp_matching_top):
53585         (build_trtable, group_nodes_into_DFAstates):
53586         Likewise.
53587         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53588         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53589         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53590         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53591         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53592         * lib/regcomp.c (optimize_subexps, lower_subexp):
53593         Work even if bitset_word has holes in its bitwise representation.
53594         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53595         * lib/regexec.c (check_dst_limits_calc_pos_1,
53596         check_subexp_matching_top):
53597         Likewise.
53598         * lib/regex_internal.c (re_string_reconstruct):
53599         Don't assume UCHAR_MAX == 255.
53600         * lib/regex_internal.h (bitset_set_all): Likewise.
53601         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53602         All uses changed.
53603         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53604         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53605         All uses changed.
53606         (BITSET_WORD_MAX): New macro.
53607         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53608         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53609         (bitset_empty, bitset_copy):
53610         Prefer sizeof (bitset) to multiplying it out ourselves.
53611         (bitset_not_merge): Remove; unused.
53612         (bitset_contain): Return bool, not unsigned int with one bit on.
53613         All callers changed.
53614         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53615         alignment than re_node_set; do this by defining a new internal
53616         type struct dests_alloc and using it to allocate memory.
53617
53618 2005-09-05  Bruno Haible  <bruno@clisp.org>
53619
53620         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53621         links.
53622
53623 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53624
53625         * modules/size_max (Makefile.am): Add size_max.h
53626
53627 2005-09-04  Derek Price  <derek@ximbiot.com>
53628
53629         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53630
53631 2005-09-03  Simon Josefsson  <jas@extundo.com>
53632
53633         * gnulib-tool: Fix typo.
53634
53635 2005-09-03  Simon Josefsson  <jas@extundo.com>
53636
53637         * config/srclist.txt: Add glibc bug 1293.
53638
53639 2005-09-03  Derek Price  <derek@ximbiot.com>
53640
53641         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53642         From Larry Jones <lawrence.jones@ugs.com>.
53643
53644 2005-09-02  Simon Josefsson  <jas@extundo.com>
53645
53646         * modules/socklen: New file.
53647
53648 2005-09-02  Simon Josefsson  <jas@extundo.com>
53649
53650         * modules/havelib: New module.
53651
53652         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53653         Use havelib.
53654
53655 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53656
53657         Check for arithmetic overflow when calculating sizes, to prevent
53658         some buffer-overflow issues.  These patches are conservative, in the
53659         sense that when I couldn't determine whether an overflow was possible,
53660         I inserted a run-time check.
53661         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53662         macros.
53663         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53664         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53665         (re_xnrealloc, re_x2nrealloc): New inline functions.
53666         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53667         parse_bracket_exp):
53668         (build_equiv_class, build_charclass): Check for arithmetic overflow
53669         in size expression calculations.
53670         * lib/regex_internal.c (re_string_realloc_buffers):
53671         (build_wcs_upper_buffer, re_node_set_add_intersect):
53672         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53673         (re_dfa_add_node, register_state): Likewise.
53674         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53675         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53676         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53677         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
53678
53679 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53682         m4/ulonglong.m4.  Problem reported by Martin Lambers.
53683
53684 2005-09-02  Bruno Haible  <bruno@clisp.org>
53685
53686         Support for lib vs. lib64 distinction on biarch platforms.
53687         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
53688         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
53689         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
53690
53691 2005-09-02  Bruno Haible  <bruno@clisp.org>
53692
53693         * gnulib-tool (import): In the other first-use case, provide defaults
53694         as well.
53695
53696 2005-09-02  Bruno Haible  <bruno@clisp.org>
53697
53698         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
53699         patches not yet found in the latest gettext release.
53700
53701 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53702
53703         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
53704         to avoid a collision with bits/local_lim.h in glibc.
53705         All uses changed.  Problem reported by Dmitry V. Levin in
53706         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
53707
53708         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
53709         bugs in int versus size_t comparisons.
53710         (re_string_context_at): Fix bug where the code assumed that
53711         Idx is signed.
53712
53713         Use bool where appropriate.
53714         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
53715         All callers changed.
53716         (calc_eclosure_iter): Likewise, for ROOT arg.
53717         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
53718         (build_charclass_op): Likewise, for NON_MATCH arg.
53719         * lib/regex_internal.c (re_string_allocate, re_string_construct):
53720         (re_string_construct_common): Likewise, for ICASE arg.
53721         * lib/regexec.c (re_search_2_stub, re_search_stub):
53722         Likewise, for RET_LEN arg.
53723         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
53724         (set_regs): Likewise, for FL_BACKTRACK arg.
53725         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
53726         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
53727         (calc_eclosure_iter, parse_bracket_exp):
53728         Use bool for internal variables that are booleans.
53729         * lib/regexec.c (re_search_internal, check_matching,
53730         proceed_next_node):
53731         (set_regs, build_sifted_states, sift_states_bkref):
53732         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
53733         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53734         (find_collation_sequence_value):
53735         Likewise.
53736         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
53737         (re_node_set_compare):
53738         Return bool, not int. All callers changed.
53739         * lib/regexec.c (check_halt_node_context, check_dst_limits):
53740         (build_trtable, check_node_accept): Likewise.
53741         * lib/regex_internal.h: Include stdbool.h.
53742
53743         Fix bugs uncovered when converting to bool.
53744         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
53745         failure instead of charging ahead blindly.
53746         * lib/regex_internal.c (register_state): Likewise.
53747         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
53748         for freeing internal storage.
53749         (group_nodes_into_DFA_states): Use unsigned int, not int, for
53750         bitset pieces used as boolean, to avoid undefined behavior
53751         on hosts that do int overflow checking.
53752
53753 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53754
53755         * config/srclist.txt: Add glibc bugs 1285-1287.
53756
53757 2005-09-01  Jim Meyering  <jim@meyering.net>
53758
53759         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
53760         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
53761         Require gl_STAT_MACROS, too.
53762
53763 2005-09-01  Bruno Haible  <bruno@clisp.org>
53764
53765         * gnulib-tool (import): In the first-use case, provide defaults.
53766
53767 2005-09-01  Bruno Haible  <bruno@clisp.org>
53768
53769         * gnulib-tool (func_import): Remove the .tmp files.
53770
53771 2005-09-01  Bruno Haible  <bruno@clisp.org>
53772
53773         * gnulib-tool (func_import): Fix handling of symbolic links.
53774
53775 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53776
53777         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
53778         old glibc regex code mishandles strings longer than 2**31 bytes.
53779         This patch fixes this when the regex code is used in gnulib
53780         (i.e., outside glibc).
53781
53782         This patch should not affect the use of the regex code inside
53783         glibc.  No doubt this problem also needs to be handled for glibc
53784         as well, but the result will be an incompatible change to the
53785         glibc ABI, and the old ABI will have to be supported too.  That
53786         can be the the subject for another patch.
53787
53788         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
53789         governing whether the rest of this patch is active.  By default,
53790         the macro is disabled and the patch has no effect.
53791         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
53792         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
53793         (struct re_pattern_buffer, re_search, re_search_2, re_match):
53794         (re_match_2, re_set_registers): Use the new types.
53795         * lib/regex_internal.h (Idx, re_hashval_t): New types.
53796         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
53797         New macros.
53798         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
53799         (re_string_context_at, bin_tree_t, re_dfastate_t):
53800         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
53801         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
53802         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
53803         (re_string_char_size_at, re_string_wchar_at):
53804         (re_string_elem_size_at):
53805         Use the new types and macros to port to 64-bit hosts.
53806         Use unsigned types for internal values, so that the code
53807         mostly works even for arrays larger than SSIZE_MAX.
53808         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
53809         (search_duplicated_node, calc_eclosure_iter, fetch_number):
53810         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
53811         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
53812         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
53813         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
53814         (calc_inveclosure, parse_dup_op, build_range_exp):
53815         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
53816         (fetch_number, create_token_tree, mark_opt_subexp):
53817         Likewise.
53818         * lib/regex_internal.c (re_string_construct_common,
53819         create_ci_newstate):
53820         (create_cd_newstate, re_string_allocate, re_string_construct):
53821         (re_string_realloc_buffers, build_wcs_upper_buffer):
53822         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
53823         (re_string_reconstruct, re_string_peek_byte_case):
53824         (re_string_fetch_byte_case, re_string_context_at):
53825         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
53826         (re_node_set_init_copy, re_node_set_add_intersect):
53827         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53828         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53829         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
53830         (re_acquire_state, re_acquire_state_context, register_state):
53831         Likewise.
53832         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
53833         search_cur_bkref_entry):
53834         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
53835         (re_search_internal, re_search_2_stub, re_search_stub)
53836         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
53837         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
53838         (update_cur_sifted_state, check_dst_limits):
53839         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53840         (check_subexp_limits, sift_states_bkref, merge_state_array):
53841         (check_subexp_matching_top, get_subexp, get_subexp_sub):
53842         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
53843         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
53844         (expand_bkref_cache, check_node_accept_bytes):
53845         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
53846         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
53847         (acquire_init_state_context, check_halt_node_context):
53848         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
53849         (sift_states_backward, clean_state_log_if_needed):
53850         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
53851         (find_recover_state, transit_state_sb, transit_state_mb):
53852         (transit_state_bkref, build_trtable, match_ctx_clean):
53853         Likewise.
53854         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
53855         to work around an assumption that REG_MISSING is negative.
53856
53857         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
53858         (seek_collating_symbol_entry) [defined _LIBC]:
53859         (lookup_collation_sequence_value) [defined _LIBC]:
53860         (build_range_exp, build_collating_symbol) [defined _LIBC]:
53861         Use prototypes rather than old-style function definitions.
53862         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
53863         (transit_state_sb) [0]:
53864         (find_collation_sequence_value) [defined _LIBC]: Likewise.
53865
53866         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
53867         rm_eo.
53868
53869         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
53870         (optimize_subexps, lower_subexp):
53871         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
53872         since the signed shift might overflow.  Use 1u<<31 instead.
53873         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53874         Likewise.
53875         * lib/regexec.c (check_dst_limits_calc_pos_1,
53876         check_subexp_matching_top): Likewise.
53877
53878         * lib/regcomp.c (optimize_subexps, lower_subexp):
53879         Use CHAR_BIT rather than 8, for clarity.
53880         * lib/regexec.c (check_dst_limits_calc_pos_1):
53881         (check_subexp_matching_top): Likewise.
53882         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
53883         have to worry about portability issues when shifting it left.
53884         Remove no-longer-needed test for table_size > 0.
53885         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
53886         in a word, as the resulting behavior is undefined.
53887         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
53888         in one case, a <= should have been an <, and in another case the
53889         whole test was missing.
53890         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
53891         the standard name CHAR_BIT.
53892         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
53893         this is not true on one's complement and signed-magnitude hosts.
53894
53895         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
53896         next_last_offset.
53897         (struct re_dfa_t): Remove unused member states_alloc.
53898         * lib/regcomp.c (init_dfa): Don't initialize unused members.
53899
53900 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53901
53902         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
53903         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
53904         and large-file glibc and in 32-bit large-file Solaris.
53905
53906 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
53909         lengths fit in regoff_t; this isn't true if regoff_t is the same
53910         width as size_t.
53911         * lib/regex.c (re_search_internal): 5th arg is LAST_START
53912         (= START + RANGE) instead of RANGE.  This avoids overflow
53913         problems when regoff_t is the same width as size_t.
53914         All callers changed.
53915         (re_search_2_stub): Check for overflow when adding the
53916         sizes of the two strings.
53917         (re_search_stub): Check for overflow when adding START
53918         to RANGE; if it occurs, substitute the extreme value.
53919
53920 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53921
53922         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
53923
53924 2005-08-31  Jim Meyering  <jim@meyering.net>
53925
53926         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
53927         a pointer-to-const.
53928         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
53929         (register_state): Likewise.
53930         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
53931         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53932         (group_nodes_into_DFAstates): Likewise.
53933
53934 2005-08-31  Jim Meyering  <jim@meyering.net>
53935
53936         * check-module: Add a FIXME comment.
53937
53938 2005-08-31  Eric Blake  <ebb9@byu.net>
53939
53940         * modules/unistd-safer (Files): Add unistd--.h.
53941         * modules/stdio-safer (Files): Add stdio--.h.
53942
53943 2005-08-31  Derek Price  <derek@ximbiot.com>
53944
53945         * lib/getdelim.c (getdelim): Return EOF on EOF.
53946         Reported by Larry Jones <lawrence.jones@ugs.com>.
53947
53948 2005-08-31  Bruno Haible  <bruno@clisp.org>
53949
53950         Avoid unnecessary diffs in the generated lib/Makefile.am.
53951         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
53952         the generated files.
53953         (func_import): Don't set cmd.
53954
53955 2005-08-31  Bruno Haible  <bruno@clisp.org>
53956
53957         * lib/strstr.c: Include <stddef.h>, for NULL.
53958         * lib/strcasestr.c: Likewise.
53959         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53960
53961 2005-08-31  Bruno Haible  <bruno@clisp.org>
53962
53963         * gnulib-tool: New option --macro-prefix.
53964         (func_import): Use macro_prefix.
53965         (import): Handle option --macro-prefix.
53966
53967 2005-08-31  Bruno Haible  <bruno@clisp.org>
53968
53969         * gnulib-tool (import): Rename most ac_* variables to cached_*.
53970         Also use new variables cached_lgpl, cached_libtool.
53971
53972 2005-08-31  Bruno Haible  <bruno@clisp.org>
53973
53974         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
53975         always instantiating them.
53976
53977 2005-08-31  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (func_import): Read the previous cached settings
53980         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
53981         earlier added by gnulib but are now dropped. Warn when a gnulib file
53982         overwrites a non-gnulib file.
53983
53984 2005-08-31  Bruno Haible  <bruno@clisp.org>
53985
53986         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
53987         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
53988         projects that don't keep autogenerated files in CVS. Put into
53989         actioncmd only the specified modules, not the transitive closure.
53990
53991 2005-08-31  Bruno Haible  <bruno@clisp.org>
53992
53993         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
53994         Create directories that shall be filled.
53995         (import): Don't look for gl_* macros in configure.ac. Recurse across
53996         all directories containing a gnulib-cache.m4 files, if meaningful.
53997
53998 2005-08-31  Bruno Haible  <bruno@clisp.org>
53999
54000         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
54001         (import): Set seen_libtool when we see gl_LIBTOOL.
54002
54003 2005-08-31  Bruno Haible  <bruno@clisp.org>
54004
54005         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
54006         declaration macro definitions from generated gnulib.m4.
54007
54008 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
54009
54010         * lib/iconvme.h: Add prototype for iconv_alloc.
54011
54012 2005-08-29  Simon Josefsson  <jas@extundo.com>
54013
54014         * lib/iconvme.c: Fix errno.
54015
54016 2005-08-29  Bruno Haible  <bruno@clisp.org>
54017
54018         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
54019         that it works when the directory contains spaces.
54020
54021 2005-08-29  Bruno Haible  <bruno@clisp.org>
54022
54023         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
54024
54025 2005-08-29  Bruno Haible  <bruno@clisp.org>
54026
54027         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
54028         Emit more advice.
54029
54030 2005-08-29  Bruno Haible  <bruno@clisp.org>
54031         and Stepan Kasal  <kasal@ucw.cz>
54032
54033         * check-module: If more parameters are given, check each of them
54034         separately; add more exceptions, as noted by Jim Meyering.
54035         (check_module): New procedure.
54036         (%exempt_header): Now contains all exceptions.
54037
54038 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
54039
54040         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
54041
54042 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54043
54044         * lib/iconvme.c: Split iconv_string into iconv_alloc.
54045
54046 2005-08-28  Bruno Haible  <bruno@clisp.org>
54047
54048         * m4/gnulib-tool.m4: New file.
54049
54050 2005-08-27  Jim Meyering  <jim@meyering.net>
54051
54052         * modules/unistd-safer (Files): Add pipe-safer.c.
54053         * modules/fcntl-safer (Files): Add creat-safer.c.
54054
54055 2005-08-27  Jim Meyering  <jim@meyering.net>
54056
54057         * m4/stdlib-safer.m4: New file.  From coreutils.
54058         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
54059         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
54060         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
54061         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
54062         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
54063
54064 2005-08-27  Jim Meyering  <jim@meyering.net>
54065
54066         * lib/fopen-safer.c: Merge minor changes from coreutils.
54067         * lib/dup-safer.c: Likewise.
54068         * lib/fd-safer.c: Likewise.
54069
54070         Merge from coreutils.
54071         * lib/stdio--.h: New file.
54072         * lib/stdlib--.h: New file.
54073         * lib/mkstemp-safer.c: New file.
54074
54075         GNU tar needs these.
54076         * lib/pipe-safer.c: New file.
54077         * lib/creat-safer.c: New file.
54078         * lib/fcntl--.h (creat): Define to creat_safer.
54079         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
54080         * lib/unistd--.h (pipe): Define to pipe_safer.
54081         * lib/unistd-safer.h: Declare pipe_safer.
54082
54083 2005-08-26  Simon Josefsson  <jas@extundo.com>
54084
54085         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
54086         Haible <bruno@clisp.org>.
54087
54088 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
54089
54090         * lib/regex_internal.h: Remove all references to
54091         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
54092         or better.
54093         (bitset_not, bitset_merge, bitset_not_merge):
54094         (bitset_mask, re_string_allocate, re_string_construct):
54095         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
54096         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
54097         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
54098         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
54099         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54100         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54101         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
54102         (re_acquire_state_context):
54103         Remove unnecessary forward decls.
54104         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
54105         Put __attribute at function definition,
54106         now that the function decl has been removed.
54107         * lib/regex_internal.c (re_string_peek_byte_case):
54108         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
54109         Likewise.
54110
54111 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
54112
54113         * m4/regex.m4: Add AC_PREREQ(2.50).
54114         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
54115
54116 2005-08-25  Simon Josefsson  <jas@extundo.com>
54117
54118         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
54119         __fsetlocking.
54120
54121 2005-08-25  Simon Josefsson  <jas@extundo.com>
54122
54123         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
54124         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
54125         GLIBC specific code.
54126
54127 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54128
54129         Make regex safe for g++.  This fixes one real bug (an "err"
54130         that should have been "*err").  g++ problem reported by
54131         Sam Steingold.
54132         * lib/regex_internal.h (re_calloc): New macro, consistent with
54133         re_malloc etc.  All callers of calloc changed to use re_calloc.
54134         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
54135         not int.  All callers changed.
54136         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
54137         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
54138         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
54139         (find_recover_state): Change "err" to "*err"; this fixes what
54140         appears to be a real bug.
54141         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
54142         versus int.
54143
54144 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54145
54146         * modules/regex (Depends-on): Add malloc, since the code
54147         assumes that !malloc(0) means failure.
54148
54149 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54150
54151         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
54152
54153         alloca modernization/simplification for regex.
54154         * lib/regex.c: Remove portability cruft for alloca.  This no longer
54155         needs to be at the start of the file, and can be moved into
54156         regex_internal.h and simplified.
54157         * lib/regex_internal.h: Include <alloca.h>.
54158         (__libc_use_alloca) [!defined _LIBC]: New macro.
54159         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
54160         now works outside glibc.
54161
54162 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54163
54164         * config/srclist.txt: Add glibc bugs 1241, 1245.
54165
54166 2005-08-25  Jim Meyering  <jim@meyering.net>
54167
54168         * lib/open-safer.c: Include <config.h>.
54169         Otherwise, we'd lose LARGEFILE support in any file using
54170         e.g. "fcntl--.h"
54171
54172 2005-08-25  Bruno Haible  <bruno@clisp.org>
54173
54174         * m4/minmax.m4: Require autoconf 2.52.
54175         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
54176         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
54177         alternatives of translit over the alphabet.
54178         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
54179
54180 2005-08-24  Simon Josefsson  <jas@extundo.com>
54181
54182         * tests/test-getpass.c: New file.
54183
54184 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54185
54186         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
54187         for GNU regex features.
54188
54189 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
54192         * lib/regex.h (regerror): Likewise.
54193
54194         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
54195         requires this.  (The code never needed it.)
54196
54197         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
54198         All uses of recently-renamed identifiers changed to use the new,
54199         POSIX-compliant names.  The code will build and run just fine
54200         without these changes, but it's better to eat our own dog food
54201         and use the standard-conforming names.
54202
54203         * lib/regex.h: Fix a multitude of POSIX name space violations.
54204         These changes have an effect only for programs that define
54205         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
54206         do not change anything for programs compiled in the normal way.
54207         Also, there is no effect on the ABI.
54208
54209         (_REGEX_SOURCE): New macro.
54210         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
54211         defined and _GNU_SOURCE is not; this fixes a name space violation.
54212
54213         Rename the following macros to obey POSIX requirements.
54214         The old names are still visible as macros if _REGEX_SOURCE is defined.
54215         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
54216         RE_BACKSLASH_ESCAPE_IN_LISTS.
54217         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
54218         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
54219         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
54220         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
54221         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
54222         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
54223         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
54224         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
54225         (REG_INTERVALS): renamed from RE_INTERVALS.
54226         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
54227         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
54228         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
54229         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
54230         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
54231         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
54232         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
54233         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
54234         RE_UNMATCHED_RIGHT_PAREN_ORD.
54235         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
54236         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
54237         (REG_DEBUG): renamed from RE_DEBUG.
54238         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
54239         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
54240         unusual, since we can't clash with the POSIX REG_ICASE.
54241         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
54242         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
54243         (REG_NO_SUB): renamed from RE_NO_SUB.
54244         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
54245         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
54246         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
54247         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
54248         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
54249         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
54250         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
54251         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
54252         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
54253         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
54254         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
54255         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
54256         RE_SYNTAX_POSIX_MINIMAL_BASIC.
54257         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
54258         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
54259         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
54260         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
54261         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
54262         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
54263         (REG_FIXED): Renamed from REGS_FIXED.
54264         (REG_NREGS): Renamed from RE_NREGS.
54265
54266         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
54267         of other REG_* macros, since POSIX says the user is allowed to
54268         #undef these macros selectively.
54269
54270         (reg_errcode_t): Update comment stating what other tables need
54271         to be consistent.
54272
54273         Rename the following enum values to obey POSIX requirements.
54274         The old names are still visible as macros.
54275         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
54276         is not defined, since GNU is supposed to be a superset of POSIX as
54277         much as possible, and since we want reg_errcode_t to be a signed
54278         type for implementation consistency.
54279         (_REG_NOERROR): Renamed from REG_NOERROR.
54280         (_REG_NOMATCH): Renamed from REG_NOMATCH.
54281         (_REG_BADPAT): Renamed from REG_BADPAT.
54282         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
54283         (_REG_ECTYPE): Renamed from REG_ECTYPE.
54284         (_REG_EESCAPE): Renamed from REG_EESCAPE.
54285         (_REG_ESUBREG): Renamed from REG_ESUBREG.
54286         (_REG_EBRACK): Renamed from REG_EBRACK.
54287         (_REG_EPAREN): Renamed from REG_EPAREN.
54288         (_REG_EBRACE): Renamed from REG_EBRACE.
54289         (_REG_BADBR): Renamed from REG_BADBR.
54290         (_REG_ERANGE): Renamed from REG_ERANGE.
54291         (_REG_ESPACE): Renamed from REG_ESPACE.
54292         (_REG_BADRPT): Renamed from REG_BADRPT.
54293         (_REG_EEND): Renamed from REG_EEND.
54294         (_REG_ESIZE): Renamed from REG_ESIZE.
54295         (_REG_ERPAREN): Renamed from REG_ERPAREN.
54296         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
54297         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
54298         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
54299         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
54300
54301         (_REG_RE_NAME, _REG_RM_NAME): New macros.
54302         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
54303         changed.  But support the old name if the new one is not defined
54304         and if _REGEX_SOURCE.
54305
54306         Change the following member names in struct re_pattern_buffer.
54307         The old names are still supported if !_REGEX_SOURCE.
54308         The new names are always supported, regardless of _REGEX_SOURCE.
54309         (re_buffer): Renamed from buffer.
54310         (re_allocated): Renamed from allocated.
54311         (re_used): Renamed from used.
54312         (re_syntax): Renamed from syntax.
54313         (re_fastmap): Renamed from fastmap.
54314         (re_translate): Renamed from translate.
54315         (re_can_be_null): Renamed from can_be_null.
54316         (re_regs_allocated): Renamed from regs_allocated.
54317         (re_fastmap_accurate): Renamed from fastmap_accurate.
54318         (re_no_sub): Renamed from no_sub.
54319         (re_not_bol): Renamed from not_bol.
54320         (re_not_eol): Renamed from not_eol.
54321         (re_newline_anchor): Renamed from newline_anchor.
54322
54323         Change the following member names in struct re_registers.
54324         The old names are still supported if !_REGEX_SOURCE.
54325         The new names are always supported, regardless of _REGEX_SOURCE.
54326         (rm_num_regs): Renamed from num_regs.
54327         (rm_start): Renamed from start.
54328         (rm_end): Renamed from end.
54329
54330         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
54331         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
54332         Prepend __ to parameter names.
54333
54334         Undo yesterday's changes.
54335
54336 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
54339         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
54340         lib/regex.c.
54341
54342 2005-08-24  Jim Meyering  <jim@meyering.net>
54343
54344         Sync from coreutils.
54345         * m4/fcntl-safer.m4: New file.
54346
54347         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
54348         and object files for this module.
54349
54350 2005-08-24  Jim Meyering  <jim@meyering.net>
54351
54352         Sync from coreutils.
54353         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
54354
54355 2005-08-24  Jim Meyering  <jim@meyering.net>
54356
54357         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
54358         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
54359
54360 2005-08-24  Jim Meyering  <jim@meyering.net>
54361
54362         * modules/fcntl-safer: New module.
54363         * modules/fts (Depends-on): Add fcntl-safer.
54364         * MODULES.html.sh (File descriptor based Input/Output):
54365         Add fcntl-safer.
54366
54367 2005-08-24  Bruno Haible  <bruno@clisp.org>
54368
54369         Support for unit test modules.
54370         * modules/README: Mention tests modules.
54371         * modules/TEMPLATE-TESTS: New file.
54372         * gnulib-tool: New options --extract-tests-module, --with-tests and
54373         --tests-base (unused for the moment).
54374         (testsbase, inctests): New variables.
54375         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
54376         (func_verify_module): Exclude TEMPLATE-TESTS.
54377         (func_verify_nontests_module, func_verify_tests_module): New functions.
54378         (func_get_dependencies): Add implicit dependency for tests modules.
54379         (func_get_tests_module): New function.
54380         (func_modules_transitive_closure): When --with-tests was specified,
54381         include the unit tests as well, unless explicitly avoided.
54382         (func_emit_lib_Makefile_am): Ignore the tests modules here.
54383         (func_emit_tests_Makefile_am): New function.
54384         (func_create_testdir): When --with-tests was specified, emit a
54385         tests/ directory.
54386         * MODULES.html.sh (Future developments): Update.
54387
54388 2005-08-24  Bruno Haible  <bruno@clisp.org>
54389
54390         * modules/tls-tests: New file.
54391         * tests/test-tls.c: New file, from GNU gettext.
54392
54393 2005-08-24  Bruno Haible  <bruno@clisp.org>
54394
54395         * modules/lock-tests: New file.
54396         * tests/test-lock.c: New file, from GNU gettext.
54397
54398 2005-08-24  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/lock.h: Add multiple inclusion guard.
54401         * lib/tls.h: Add multiple inclusion guard.
54402
54403 2005-08-24  Bruno Haible  <bruno@clisp.org>
54404
54405         * gnulib-tool: Add support for the --aux-dir option to
54406         --create-testdir, --create-megatestdir, --test, --megatest.
54407         (func_create_testdir, func_create_megatestdir): Optionally emit a
54408         AC_CONFIG_AUX_DIR directive.
54409         (create-testdir, create-megatestdir, test, megatest): Provide a
54410         default value for $auxdir.
54411
54412 2005-08-24  Bruno Haible  <bruno@clisp.org>
54413
54414         * gnulib-tool (import): Use compound statement instead of subshell
54415         where possible.
54416
54417 2005-08-24  Bruno Haible  <bruno@clisp.org>
54418
54419         * gnulib-tool (import): Change --aux-dir default to "build-aux".
54420
54421 2005-08-24  Bruno Haible  <bruno@clisp.org>
54422
54423         * gnulib-tool (func_version): Update.
54424
54425 2005-08-24  Bruno Haible  <bruno@clisp.org>
54426
54427         * gnulib-tool (func_import, func_create_testdir,
54428         func_create_megatestdir): Quote all autoconf macro arguments.
54429
54430 2005-08-24  Bruno Haible  <bruno@clisp.org>
54431
54432         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
54433         option --force, because --force causes the aclocal.m4 of each
54434         subdirectory to be newer than the corresponding config.h.in.
54435
54436 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54437
54438         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
54439         All contents moved to gl_REGEX.
54440         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
54441         assume that it does.
54442
54443 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54444
54445         * lib/regex.h (REG_NOSYS)
54446         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
54447         Define, since POSIX requires it as of 2001.
54448         (_REG_ENOSYS)
54449         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
54450         New private symbol, used to keep the enum signed in all cases.
54451         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
54452         Youngman in
54453         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
54454
54455         * lib/regex_internal.c (re_string_skip_chars, register_state):
54456         (calc_state_hash):
54457         Remove forward decls; no longer needed now that we use prototypes.
54458         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
54459         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
54460         (clean_state_log_if_needed): Likewise.
54461
54462 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54463
54464         * config/srclist.txt: Add glibc bugs 1231-1233.
54465
54466 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54467
54468         Fix problems reported by Sam Steingold in
54469         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
54470         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
54471         assumed that reg_errcode_t is a signed type, which is not
54472         necessarily true if _XOPEN_SOURCE is not defined.
54473         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
54474         since some compilers warn about it otherwise.
54475
54476 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54477
54478         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
54479         (init_word_char, create_initial_state, duplicate_node_closure):
54480         (fetch_token, peek_token_bracket, build_range_exp):
54481         (build_collating_symbol): Remove forward decls; no longer needed
54482         now that we use prototypes.
54483
54484         * lib/regcomp.c:
54485         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
54486         (re_compile_fastmap_iter, regcomp, regerror, regfree):
54487         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
54488         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
54489         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54490         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54491         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54492         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54493         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54494         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54495         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54496         (build_charclass, build_charclass_op, fetch_number, create_tree):
54497         (create_token_tree, mark_opt_subexp, duplicate_tree):
54498         Use prototypes rather than old-style definitions.
54499
54500         * lib/regex_internal.c:
54501         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54502         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54503         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54504         (re_string_reconstruct, re_string_peek_byte_case):
54505         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54506         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54507         (re_node_set_init_copy, re_node_set_add_intersect):
54508         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54509         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54510         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54511         (re_acquire_state, re_acquire_state_context, register_state):
54512         (create_ci_newstate, create_cd_newstate, free_state):
54513         Likewise.
54514         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54515         re_search_2):
54516         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54517         (re_search_internal, prune_impossible_nodes):
54518         (acquire_init_state_context, check_matching, static):
54519         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54520         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54521         (update_regs, sift_states_backward, build_sifted_states):
54522         (clean_state_log_if_needed, merge_state_array):
54523         (update_cur_sifted_state, add_epsilon_src_nodes):
54524         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54525         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54526         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54527         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54528         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54529         (check_arrival, check_arrival_add_next_nodes):
54530         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54531         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54532         (check_node_accept_bytes, check_node_accept, extend_buffers):
54533         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54534         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54535         (sift_ctx_init):
54536         Likewise.
54537
54538         * lib/regex_internal.h:
54539         (re_string_allocate, re_string_construct, re_string_reconstruct):
54540         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54541         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54542         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54543         (re_string_context_at, re_string_peek_byte_case):
54544         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54545         is defined, since we now use prototypes always.
54546
54547         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54548         C89 or better.  All uses removed.
54549
54550 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54551
54552         * config/srclist.txt: Add glibc bugs 1220-1227.
54553
54554 2005-08-20  Jim Meyering  <jim@meyering.net>
54555
54556         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54557         of unused local, dfa.
54558
54559 2005-08-20  Bruno Haible  <bruno@clisp.org>
54560
54561         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54562
54563 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54566         (re_node_set_insert_last, re_dfa_add_node):
54567         Rename local variables to avoid GCC shadowing warnings.
54568
54569 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54570
54571         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54572         [defined lint]: Suppress bogus uninitialized-variable warnings.
54573
54574         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54575         and let the caller return REG_ESPACE if out of space.  This
54576         removes an uninitialied-variable warning with GCC 4.0.1, and also
54577         avoids taking the address of a local variable.  All callers
54578         changed.
54579
54580 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54581
54582         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54583         $LIBCSRC/posix/regexec.c.
54584         Add glibc bug 1217 for regcomp.c.
54585
54586 2005-08-19  Jim Meyering  <jim@meyering.net>
54587
54588         * lib/regexec.c (proceed_next_node): Redo local variables to
54589         avoid GCC shadowing warnings.
54590
54591 2005-08-18  Bruno Haible  <bruno@clisp.org>
54592
54593         * lib/strstr.c (strstr): Fix return value in multibyte case.
54594         * lib/strcasestr.c (strcasestr): Likewise.
54595
54596 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54597
54598         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54599
54600 2005-08-17  Jim Meyering  <jim@meyering.net>
54601
54602         Make the %s format (seconds since the epoch) work for a negative
54603         number and when used with a zero-padded field width, e.g. %015s.
54604
54605         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54606         label so that it precedes the code to set `digits'.  Otherwise,
54607         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54608         print `00-22'.  Now, it prints `-0022', as it should.
54609
54610 2005-08-17  Bruno Haible  <bruno@clisp.org>
54611
54612         * modules/strstr (Files): Add m4/mbrtowc.m4.
54613         (Depends-on): Add mbuiter.
54614
54615 2005-08-17  Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/strcasestr: New file.
54618         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54619         strcasestr.
54620
54621 2005-08-17  Bruno Haible  <bruno@clisp.org>
54622
54623         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54624
54625 2005-08-17  Bruno Haible  <bruno@clisp.org>
54626
54627         * modules/mbuiter: New file.
54628         * MODULES.html.sh (Extended multibyte and wide character utilities):
54629         Add mbuiter.
54630
54631 2005-08-17  Bruno Haible  <bruno@clisp.org>
54632
54633         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54634         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54635
54636 2005-08-17  Bruno Haible  <bruno@clisp.org>
54637
54638         * m4/strcasestr.m4: New file.
54639
54640 2005-08-17  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54643         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54644
54645 2005-08-17  Bruno Haible  <bruno@clisp.org>
54646
54647         * lib/strcasestr.h: New file.
54648         * lib/strcasestr.c: New file.
54649
54650 2005-08-17  Bruno Haible  <bruno@clisp.org>
54651
54652         * lib/strcasecmp.c: Use mbuiter.h.
54653
54654 2005-08-17  Bruno Haible  <bruno@clisp.org>
54655
54656         * lib/mbuiter.h: New file.
54657
54658 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54659
54660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54661         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54662         and gl_GETOPT are both invoked via different paths (as happens
54663         with GNU tar CVS because it uses both argp and getopt), the former
54664         wins.
54665
54666 2005-08-16  Bruno Haible  <bruno@clisp.org>
54667
54668         * modules/tls: New file.
54669         * MODULES.html.sh (Multithreading): Add tls.
54670
54671 2005-08-16  Bruno Haible  <bruno@clisp.org>
54672
54673         * modules/strnlen1: New file.
54674         * MODULES.html.sh (String handling): Add strnlen1.
54675
54676 2005-08-16  Bruno Haible  <bruno@clisp.org>
54677
54678         * modules/strcase (Files): Add m4/mbrtowc.m4.
54679         (Depends-on): Add strnlen1, mbchar.
54680
54681 2005-08-16  Bruno Haible  <bruno@clisp.org>
54682
54683         * modules/mbiter: New file.
54684         * MODULES.html.sh (Extended multibyte and wide character utilities):
54685         Add mbiter.
54686
54687 2005-08-16  Bruno Haible  <bruno@clisp.org>
54688
54689         * modules/mbfile: New file.
54690         * MODULES.html.sh (Extended multibyte and wide character utilities):
54691         Add mbfile.
54692
54693 2005-08-16  Bruno Haible  <bruno@clisp.org>
54694
54695         * modules/mbchar: New file.
54696         * MODULES.html.sh (Extended multibyte and wide character utilities):
54697         New section.
54698
54699 2005-08-16  Bruno Haible  <bruno@clisp.org>
54700
54701         * m4/tls.m4: New file, from GNU gettext.
54702
54703 2005-08-16  Bruno Haible  <bruno@clisp.org>
54704
54705         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
54706         always.
54707         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
54708
54709 2005-08-16  Bruno Haible  <bruno@clisp.org>
54710
54711         * m4/mbiter.m4: New file.
54712
54713 2005-08-16  Bruno Haible  <bruno@clisp.org>
54714
54715         * m4/mbfile.m4: New file.
54716
54717 2005-08-16  Bruno Haible  <bruno@clisp.org>
54718
54719         * m4/mbchar.m4: New file.
54720
54721 2005-08-16  Bruno Haible  <bruno@clisp.org>
54722
54723         * lib/tls.h: New file, from GNU gettext.
54724         * lib/tls.c: New file, from GNU gettext.
54725
54726 2005-08-16  Bruno Haible  <bruno@clisp.org>
54727
54728         * lib/strnlen1.h: New file.
54729         * lib/strnlen1.c: New file.
54730
54731 2005-08-16  Bruno Haible  <bruno@clisp.org>
54732
54733         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
54734         (mbi_init): Update.
54735         (mbi_avail, mbi_advance): Let the iteration end before the terminating
54736         NUL byte, not after it.
54737
54738 2005-08-16  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/strcase.h (strcasecmp): Add note in comments.
54741         * lib/strncasecmp.c: Use code from strcasecmp.c.
54742         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
54743         (strcasecmp): Work correctly in multibyte locales.
54744
54745 2005-08-16  Bruno Haible  <bruno@clisp.org>
54746
54747         * lib/mbiter.h: New file.
54748
54749 2005-08-16  Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/mbfile.h: New file.
54752
54753 2005-08-16  Bruno Haible  <bruno@clisp.org>
54754
54755         * lib/mbchar.h: New file.
54756         * lib/mbchar.c: New file.
54757
54758 2005-08-16  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
54761         the valid ones. Makes the comparison operations transitive:
54762         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
54763         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
54764
54765 2005-08-15  Simon Josefsson  <jas@extundo.com>
54766
54767         * modules/ssize_t (License): Change to 'unlimited'.
54768
54769         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
54770
54771 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54772
54773         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
54774         Add comments for each pending glibc patch.
54775
54776 2005-08-15  Bruno Haible  <bruno@clisp.org>
54777
54778         * lib/regex.h (__restrict_arr): Don't define to __restrict if
54779         __cplusplus is defined.
54780
54781 2005-08-14  Jim Meyering  <jim@meyering.net>
54782
54783         Sync from coreutils.
54784
54785         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
54786         Use the hash-table-based cycle-detection code not just when
54787         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
54788         Reported by James Youngman in
54789         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
54790         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
54791         FTS_TIGHT_CYCLE_CHECK.
54792         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
54793         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
54794         once again.
54795         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
54796         * lib/fts.c (fd_safer): Remove decl.
54797         Include fcntl--.h rather than unistd-safer.h
54798         (fts_safe_changedir): Don't call fd_safer; no longer needed
54799         now that we include fcntl--.h.
54800
54801 2005-08-12  Simon Josefsson  <jas@extundo.com>
54802
54803         * modules/getndelim2: Use ssize_t module.
54804         * modules/getnline: Likewise.
54805         * modules/safe-read: Likewise.
54806         * modules/xreadlink: Likewise.
54807
54808         * modules/ssize_t: New file.
54809
54810 2005-08-12  Simon Josefsson  <jas@extundo.com>
54811
54812         * m4/readline.m4: Look for termcap, curses or ncurses if required.
54813
54814 2005-08-12  Simon Josefsson  <jas@extundo.com>
54815
54816         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54817         ssize_t.
54818
54819 2005-08-12  Simon Josefsson  <jas@extundo.com>
54820
54821         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
54822         readline, getdelim and check_version.
54823         (Support for systems lacking ISO C 99: Sizes of integer types):
54824         Add size_max.
54825
54826 2005-08-12  Bruno Haible  <bruno@clisp.org>
54827
54828         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
54829
54830 2005-08-11  Simon Josefsson  <jas@extundo.com>
54831
54832         * modules/readline: New file.
54833
54834         * modules/strnlen (Files): Add strnlen.h.
54835
54836 2005-08-11  Simon Josefsson  <jas@extundo.com>
54837
54838         * m4/readline.m4: New file.
54839
54840 2005-08-11  Simon Josefsson  <jas@extundo.com>
54841
54842         * lib/readline.h, readline.c: New file.
54843
54844 2005-08-11  Simon Josefsson  <jas@extundo.com>
54845
54846         * doc/gnulib.texi (Initial import, Finishing touches): Mention
54847         gl_AVOID.
54848
54849 2005-08-11  Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/strnlen.h (strnlen): Change parameter name to match comment.
54852
54853 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
54854
54855         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
54856
54857 2005-08-10  Simon Josefsson  <jas@extundo.com>
54858
54859         * tests/test-iconvme.c: New file.
54860
54861 2005-08-10  Simon Josefsson  <jas@extundo.com>
54862
54863         * m4/strnlen.m4: New file.
54864
54865         * m4/strndup.m4: Don't check for strnlen declaration, done in
54866         strnlen.m4.
54867
54868 2005-08-10  Simon Josefsson  <jas@extundo.com>
54869
54870         * lib/strndup.c: Use strnlen.h.
54871
54872         * lib/strnlen.h: New file.
54873
54874 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54875
54876         * README: Typos.
54877
54878 2005-08-02  Simon Josefsson  <jas@extundo.com>
54879
54880         * modules/readline: New file.
54881
54882 2005-08-02  Simon Josefsson  <jas@extundo.com>
54883
54884         * modules/getdelim: New file.
54885
54886         * modules/getline: Rewrite, don't use getndelim2.
54887
54888 2005-08-02  Simon Josefsson  <jas@extundo.com>
54889
54890         * m4/getline.m4: Separate out getdelim stuff into separate module.
54891
54892         * m4/getdelim.m4: New file.
54893
54894 2005-08-02  Simon Josefsson  <jas@extundo.com>
54895
54896         * lib/getline.h, getline.c: Rewrite.
54897
54898         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
54899
54900 2005-07-31  Bruno Haible  <bruno@clisp.org>
54901
54902         * lib/lock.h (gl_lock_initializer): New macro.
54903         (gl_lock_define_initialized): Use it.
54904         (gl_rwlock_initializer): New macro.
54905         (gl_rwlock_define_initialized): Use it.
54906         (gl_recursive_lock_initializer): New macro.
54907         (gl_recursive_lock_define_initialized): Use it.
54908
54909 2005-07-30  Karl Berry  <karl@gnu.org>
54910
54911         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
54912         Report from Ben Pfaff, regarding getopt.
54913
54914 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
54917         normal way.
54918         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
54919         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
54920         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
54921         (gl_GETOPT): Use the new macros.  Most of the implementation
54922         is moved to the new macros.  This is for programs like Emacs
54923         that don't want all the functionality of gl_GETOPT.
54924
54925 2005-07-26  Bruno Haible  <bruno@clisp.org>
54926
54927         * m4/lock.m4: Update from GNU gettext.
54928
54929 2005-07-26  Bruno Haible  <bruno@clisp.org>
54930
54931         * lib/lock.h: Update from GNU gettext.
54932         * lib/lock.c: Update from GNU gettext.
54933
54934 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
54935
54936         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
54937         obsolescent AC_TRY_RUN.  Include the default includes files, for
54938         'exit'.
54939
54940 2005-07-24  Bruno Haible  <bruno@clisp.org>
54941
54942         * modules/visibility: New file.
54943         * MODULES.html.sh (Misc): Add visibility.
54944
54945 2005-07-24  Bruno Haible  <bruno@clisp.org>
54946
54947         * m4/visibility.m4: New file.
54948
54949 2005-07-24  Bruno Haible  <bruno@clisp.org>
54950
54951         * doc/visibility.texi: New file.
54952
54953 2005-07-22  Bruno Haible  <bruno@clisp.org>
54954
54955         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
54956         $(ALLOCA_H), redundant through BUILT_SOURCES.
54957         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
54958         redundant through BUILT_SOURCES.
54959         * modules/byteswap (Makefile.am): Remove explicit dependency on
54960         $(BYTESWAP_H), redundant through BUILT_SOURCES.
54961         * modules/fnmatch (Makefile.am): Remove explicit dependency on
54962         $(FNMATCH_H), redundant through BUILT_SOURCES.
54963         * modules/getopt (Makefile.am): Remove explicit dependency on
54964         $(GETOPT_H), redundant through BUILT_SOURCES.
54965         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
54966         redundant through BUILT_SOURCES.
54967         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
54968         redundant through BUILT_SOURCES.
54969         * modules/stdbool (Makefile.am): Remove explicit dependency on
54970         $(STDBOOL_H), redundant through BUILT_SOURCES.
54971         * modules/stdint (Makefile.am): Remove explicit dependency on
54972         $(STDINT_H), redundant through BUILT_SOURCES.
54973         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
54974         Remove explicit dependency on $(SYSEXITS_H).
54975         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
54976
54977 2005-07-18  Simon Josefsson  <jas@extundo.com>
54978
54979         * lib/check-version.c (check_version): Accept identical versions too.
54980
54981 2005-07-18  Bruno Haible  <bruno@clisp.org>
54982
54983         * modules/lock: New file.
54984         * MODULES.html.sh (Multithreading): New section.
54985
54986 2005-07-18  Bruno Haible  <bruno@clisp.org>
54987
54988         * m4/lock.m4: New file, from GNU gettext.
54989
54990 2005-07-18  Bruno Haible  <bruno@clisp.org>
54991
54992         * lib/lock.h: New file, from GNU gettext.
54993         * lib/lock.c: New file, from GNU gettext.
54994
54995 2005-07-18  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/lock.h (gl_once_t): New type.
54998         (gl_once_define, gl_once): New macros.
54999         * lib/lock.c (fresh_once): New variable.
55000         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
55001         functions.
55002
55003 2005-07-16  Simon Josefsson  <jas@extundo.com>
55004
55005         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
55006         workaround, suggested by Bruno.
55007
55008 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55009
55010         * modules/xalloc (Depends-on): Add xalloc-die.
55011         * modules/xvasprintf (Depends-on): Add xalloc-die.
55012
55013 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55014
55015         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
55016         with a minor change.
55017
55018 2005-07-15  Bruno Haible  <bruno@clisp.org>
55019
55020         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
55021         When using lib/poll.c, define poll as rpl_poll.
55022
55023 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
55024
55025         * modules/argp (Depends-on): Remove unlocked-io.
55026
55027 2005-07-14  Derek Price  <derek@ximbiot.com>
55028
55029         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
55030         for glob symlink bug.
55031
55032 2005-07-14  Bruno Haible  <bruno@clisp.org>
55033
55034         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
55035         Instead, test for *_unlocked function declarations directly.
55036
55037 2005-07-11  Simon Josefsson  <jas@extundo.com>
55038
55039         * modules/size_max: New file.
55040
55041         * modules/xsize: Depend on size_max module for size_max.m4.
55042
55043 2005-07-11  Simon Josefsson  <jas@extundo.com>
55044
55045         * lib/size_max.h: New file.
55046
55047 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
55048
55049         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
55050         copyright symbol and the year.
55051         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
55052         (version_etc_va): Use parameterized copyright notice.
55053         Reword to conform to the current GNU coding standards.
55054
55055 2005-07-11  Karl Berry  <karl@gnu.org>
55056
55057         * doc/gnulib.texi (Quoting): new node.
55058         (Initial import): more info, from Patrice.
55059
55060 2005-07-11  Bruno Haible  <bruno@clisp.org>
55061
55062         * gnulib-tool (func_usage): Document option --avoid.
55063         (Command line options): Handle --avoid.
55064         (func_acceptable): New function.
55065         (func_modules_transitive_closure): Use it.
55066
55067 2005-07-11  Bruno Haible  <bruno@clisp.org>
55068
55069         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
55070         Reported by Jim Meyering.
55071
55072 2005-07-10  Bruno Haible  <bruno@clisp.org>
55073
55074         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
55075         Needed when size_t is smaller than 'unsigned int'.
55076         Reported by Paul Eggert.
55077
55078 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55079
55080         * modules/argp (Depends-on): Add unlocked-io
55081
55082 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55083
55084         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
55085         block of defines.
55086
55087 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55088
55089         * config/srclist.txt: Comment out regcomp.c, since we have a porting
55090         fix now.
55091
55092 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
55093         and Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
55096         in wint_t, not wchar_t.  Remove now-unnecessary cast.
55097
55098 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55099
55100         * modules/regex (Files): Add lib/regex_internal.c,
55101         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
55102         (Depends-on): Add extensions.
55103         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
55104
55105 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55106
55107         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
55108         pathconf.
55109         * m4/same.m4 (gl_SAME): Likewise.
55110         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
55111
55112         * m4/regex.m4: Adjust to new libc regex implementation.
55113         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
55114         all the .c and .h parts of (the new) regex.
55115         Quote the m4 stuff better.
55116         Check for RE_ICASE bug of old gnulib.
55117         Check for REG_STARTEND of recent libc.
55118         Rename local variables from jm_* to gl_*.
55119         Quote operand of "test -f".
55120         Say "recent enough" version of libc, not "version 2".
55121         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
55122         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
55123         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
55124         Remove check for btowc, isascii.
55125         Require AM_LANGINFO_CODESET.
55126
55127 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55128
55129         * lib/regex.c, regex.h: Sync from libc.
55130         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
55131         * lib/regexec.c:
55132         New files, synced from libc, except that regex_internal.h
55133         currently has a small porting fix.
55134
55135 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55136
55137         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
55138         regex_internal.c, regexec.c.
55139         Add regex_internal.h too, but as a comment, since the libc version
55140         is currently broken in gnulib mode.
55141
55142 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         Support programs like Emacs that use gnulib but not gettext.
55145         * MODULES.html.sh (Internationalization functions): Add gettext-h.
55146         * modules/gettext-h: New file.
55147         * modules/gettext (Files): Remove lib/gettext.h.
55148         (Depends-on): Add gettext-h.
55149         (Makefile.am): Remove lib_SOURCES.
55150         * modules/argmatch, modules/c-stack, modules/closeout:
55151         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
55152         * modules/execute, modules/file-type, modules/getaddrinfo:
55153         * modules/getopt, modules/human, modules/javacomp:
55154         * modules/javaexec, modules/mkdir-p, modules/obstack:
55155         * modules/openat, modules/pagealign_alloc, modules/pipe:
55156         * modules/quotearg, modules/regex, modules/rpmatch:
55157         * modules/unicodeio, modules/userspec, modules/version-etc:
55158         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
55159         * modules/xsetenv:
55160         Depend on gettext-h, not gettext.
55161
55162 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55163
55164         * gnulib-tool (func_import): Add support for 'public domain' license.
55165         * modules/alloca, modules/atexit, modules/memmove:
55166         Now public domain, not GPL.
55167         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
55168         * modules/realloc, modules/strerror, modules/strtod:
55169         Now LGPL, not GPL.
55170
55171 2005-07-05  Bruno Haible  <bruno@clisp.org>
55172
55173         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
55174         autoconf CVS. Needed for mingw.
55175
55176 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55177
55178         Remove the dependency of the strftime module on the tzset module.
55179         * modules/strftime (Depends-on): Remove dependency on tzset.
55180
55181 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55182
55183         Remove the dependency of the strftime module on the tzset module.
55184         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
55185         gl_FUNC_TZSET_CLOBBER.
55186
55187 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         Remove the dependency of the strftime module on the tzset module.
55190         * lib/strftime.c (my_strftime)
55191         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
55192         Copy the input structure, to work around some of the bug with
55193         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
55194         Solaris releases, you should also use the tzset module, but we won't
55195         require it as a dependency any more since we don't want LGPLed code
55196         to depend on GPLed code.
55197
55198 2005-07-02  Jim Meyering  <jim@meyering.net>
55199
55200         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
55201         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
55202         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
55203         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
55204
55205 2005-07-02  Jim Meyering  <jim@meyering.net>
55206
55207         * lib/backupfile.c (backup_args): Change a `0' to NULL.
55208
55209 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55210
55211         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
55212         declares only 'struct timespec;' (!).
55213
55214 2005-07-01  Jim Meyering  <jim@meyering.net>
55215
55216         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
55217         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
55218         * lib/save-cwd.c, tempname.c:
55219         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55220         and don't include <sys/file.h>).
55221
55222 2005-06-29  Jim Meyering  <jim@meyering.net>
55223
55224         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
55225         type name.  Use the variable name instead.
55226         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
55227         Likewise.
55228
55229 2005-06-28  Simon Josefsson  <jas@extundo.com>
55230
55231         * modules/check-version (Files): Add check-version.m4.
55232
55233 2005-06-28  Simon Josefsson  <jas@extundo.com>
55234
55235         * m4/check-version.m4: New file, suggested by Jim Meyering
55236         <jim@meyering.net>.
55237
55238 2005-06-28  Simon Josefsson  <jas@extundo.com>
55239
55240         * lib/check-version.h, lib/check-version.c: New files.
55241
55242 2005-06-28  Simon Josefsson  <jas@extundo.com>
55243
55244         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
55245         collision with global variable.  Better indentation.  Don't
55246         increment buffer pointer beyond buffer end.  Based on comments
55247         from Paul Eggert <eggert@cs.ucla.edu>.
55248
55249         * lib/base64.h: Indent.
55250
55251 2005-06-28  Simon Josefsson  <jas@extundo.com>
55252
55253         * doc/gnulib.texi (Library version handling): New section.
55254
55255 2005-06-28  Jim Meyering  <jim@meyering.net>
55256
55257         * check-module (find_included_lib_files): Hard-code another
55258         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
55259         but modules/fts-lgpl (correctly) does not list those files.
55260
55261         * modules/canonicalize (Files): Add lib/pathmax.h.
55262
55263 2005-06-25  Simon Josefsson  <jas@extundo.com>
55264
55265         * modules/check-version: New file.
55266
55267 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
55268
55269         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
55270         initializer of struct addrinfo, as an indication that we don't
55271         care how many members the structure has.
55272
55273 2005-06-24  Derek Price  <derek@ximbiot.com>
55274         and Bruno Haible  <bruno@clisp.org>
55275
55276         Remove stat module & update lstat.
55277         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
55278         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55279         * m4/stat.m4: Remove this file.
55280
55281 2005-06-24  Derek Price  <derek@ximbiot.com>
55282         and Bruno Haible  <bruno@clisp.org>
55283
55284         Remove stat module & update lstat.
55285         * lib/stat.c: Remove this file...
55286         (slash_aware_lstat): ...moving this content and its support...
55287         * lib/lstat.c (rpl_lstat): ...into here.
55288         * lib/lstat.h: New file.
55289
55290 2005-06-24  Derek Price  <derek@ximbiot.com>
55291         and Bruno Haible  <bruno@clisp.org>
55292
55293         Remove stat module & update lstat.
55294         * config/srclist.txt (libc sources): Remove stat.
55295
55296 2005-06-24  Derek Price  <derek@ximbiot.com>
55297         and Bruno Haible  <bruno@clisp.org>
55298
55299         Remove stat module & update lstat.
55300         * MODULES.html.sh (stat): Remove.
55301         * MODULES.html: Regenerated.
55302         * modules/lstat (Description): Correct function name.
55303         (Files): Add "lstat.h".
55304         (Depends-on): Remove stat, add xalloc, stat-macros.
55305         * modules/stat: Remove this file.
55306         (Include): Add "lstat.h", remove <sys/stat.h>.
55307
55308 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55309
55310         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
55311         (ranged_convert): Don't save conversion in a temporary struct.
55312         This causes a warning with GCC 4.0.0, and anyway in the typical
55313         case it's not worth the extra 100 bytes or so of code.
55314         (ranged_convert, __mktime_internal): When calling a function via a
55315         pointer P, use P () rather than (*P) (), as we now assume C89 or
55316         better.
55317
55318 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55319
55320         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
55321         "who -r" failed to give output.  Problem reported by Tim Waugh.
55322
55323         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
55324         (xcalloc): Use it to avoid needless tests.
55325         Problem reported by Jim Meyering.
55326
55327 2005-06-20  Derek Price  <derek@ximbiot.com>
55328
55329         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
55330         unnecessary for Autoconfs > 2.59c.
55331
55332 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55333
55334         * lib/argp.h (__option_is_short): Check upper limit of
55335         __key. Isprint() requires its argument to have the value
55336         of an unsigned char or EOF.
55337
55338 2005-06-16  Jim Meyering  <jim@meyering.net>
55339
55340         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
55341         when either N or S is zero.
55342
55343 2005-06-16  Derek Price  <derek@ximbiot.com>
55344
55345         * m4/bison.m4: Declare YACC & YFLAGS precious.
55346
55347 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
55348
55349         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
55350         multibyte string or pattern, fall back on unibyte matching.
55351         Problem reported by James Youngman.
55352
55353 2005-06-08  Bruno Haible  <bruno@clisp.org>
55354
55355         * modules/csharpcomp: New file.
55356         * MODULES.html.sh (C#): Add csharpcomp.
55357
55358 2005-06-08  Bruno Haible  <bruno@clisp.org>
55359
55360         * m4/csharpcomp.m4: New file, from GNU gettext.
55361
55362 2005-06-08  Bruno Haible  <bruno@clisp.org>
55363
55364         * lib/csharpcomp.h: New file, from GNU gettext.
55365         * lib/csharpcomp.c: New file, from GNU gettext.
55366         * lib/csharpcomp.sh.in: New file, from GNU gettext.
55367
55368 2005-06-08  Bruno Haible  <bruno@clisp.org>
55369
55370         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
55371         warning on mingw.
55372
55373 2005-06-07  Derek Price  <derek@ximbiot.com>
55374
55375         Sync from CVS.
55376         * lib/glob_.h: Indent nested #ifdef.
55377
55378 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55379
55380         Sync from coreutils.
55381         Use "file name" when talking about file names, instead of "filename"
55382         or "path", as per the GNU coding standards.
55383         * lib/mkdir-p.c: Renamed from makepath.c.
55384         (make_dir_parents): Renamed from make_path.  All callers changed.
55385         * lib/mkdir-p.h: Likewise.  All includers changed.
55386         * lib/filenamecat.c: Renamed from path-concat.c.
55387         (file_name_concat): Renamed from path_concat.  All callers changed.
55388         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
55389         * lib/filenamecat.h: Likewise.  All includers changed.
55390         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
55391         in comments or local variable names.
55392         * lib/basename.c: Likewise.
55393         * lib/canonicalize.c, canonicalize.h: Likewise.
55394         * lib/dirname.c, dirname.h: Likewise.
55395         * lib/euidaccess.c: Likewise.
55396         * lib/exclude.c: Likewise
55397         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
55398         * lib/fsusage.c, fsuage.h: Likewise.
55399         * lib/fts.c, fts_.h: Likewise.
55400         * lib/getcwd.c: Likewise.
55401         * lib/getloadavg.c: Likewise.
55402         * lib/mkstemp.c: Likewise.
55403         * lib/mountlist.c, mountlist.h: Likewise.
55404         * lib/openat.c, openat.h: Likewise.
55405         * lib/readlink-stub.c: Likewise.
55406         * lib/readutmp.c, readutmp.h: Likewise.
55407         * lib/rename.c: Likewise.
55408         * lib/rmdir.c: Likewise.
55409         * lib/same.c: Likewise.
55410         * lib/savedir.c: Likewise.
55411         * lib/stripslash.c: Likewise.
55412         * lib/tempname.c: Likewise.
55413         * lib/xreadlink.c: Likewise.
55414         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
55415         All uses changed.
55416         * lib/exclude.h: Likewise.
55417
55418         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
55419         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55420         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
55421         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55422         * lib/pathmax.h: Include <limits.h> unconditionally, since other
55423         files have been getting away with it for years (MORE/BSD 4.3
55424         is extinct now).
55425         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
55426         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55427
55428         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
55429         Define to 256, not 255, as per modern POSIX.
55430
55431 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55432
55433         Sync from coreutils.
55434         Use "file name" when talking about file names, instead of "filename"
55435         or "path", as per the GNU coding standards.
55436         * MODULES.html.sh: mkdir-p renamed from makepath.
55437         filenamecat renamed from path-concat.
55438         * modules/filenamecat: Renamed from modules/path-concat.
55439         (Files): filenamecat.h and filenamecat.c renamed from
55440         path-concat.h and path-concat.c.
55441         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
55442         (Include): filenamecat.h, not path-concat.h.
55443         * modules/mkdir-p: Renamed from modules/makepath.
55444         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
55445         makepath.c.
55446         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
55447         (Include): mkdir-p.h, not makepath.h.
55448
55449 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         Sync from coreutils.
55452         * m4/mkdir-p.m4: Renamed from makepath.m4.
55453         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
55454         Rename files from makepath.c to mkdir-p.c, and from
55455         makepath.h to mkdir-p.h.
55456         * m4/filenamecat.m4: Renamed from path-concat.m4.
55457         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
55458         Rename files from path-concat.c to filenamecat.c,
55459         and from path-concat.h to filenamecat.h.
55460         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
55461         "file name" in local variables or comments.
55462         * m4/rename.m4: Likewise.
55463
55464 2005-06-01  Bruno Haible  <bruno@clisp.org>
55465
55466         * modules/csharpexec: New file.
55467         * MODULES.html.sh (C#): New section.
55468
55469 2005-06-01  Bruno Haible  <bruno@clisp.org>
55470
55471         * m4/csharp.m4: New file, from GNU gettext.
55472         * m4/csharpexec.m4: New file, from GNU gettext.
55473
55474 2005-06-01  Bruno Haible  <bruno@clisp.org>
55475
55476         * lib/csharpexec.h: New file, from GNU gettext.
55477         * lib/csharpexec.c: New file, from GNU gettext.
55478         * lib/csharpexec.sh.in: New file, from GNU gettext.
55479
55480 2005-05-31  Derek Price  <derek@ximbiot.com>
55481             Paul Eggert  <eggert@cs.ucla.edu>
55482
55483         Sync from cvs.
55484         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55485
55486 2005-05-31  Derek Price  <derek@ximbiot.com>
55487             Paul Eggert  <eggert@cs.ucla.edu>
55488
55489         Sync from cvs.
55490         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55491
55492 2005-05-29  Derek Price  <derek@ximbiot.com>
55493
55494         * config/srclist.txt (glob_.h, glob.c): Add these files.
55495
55496 2005-05-29  Derek Price  <derek@ximbiot.com>
55497
55498         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55499         * modules/glob: New file.
55500         * modules/getlogin_r: Add link to POSIX spec in description.
55501
55502 2005-05-29  Derek Price  <derek@ximbiot.com>
55503             Paul Eggert  <eggert@cs.ucla.edu>
55504
55505         * m4/glob.m4: New file.
55506
55507 2005-05-29  Derek Price  <derek@ximbiot.com>
55508             Paul Eggert  <eggert@cs.ucla.edu>
55509
55510         * lib/glob_.h, lib/glob.c: New files.
55511
55512 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55513
55514         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55515         * modules/fts-lgpl (Depends-on): Remove gettext.
55516
55517 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55518
55519         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55520         and don't require gt_INTTYPES_PRI.
55521
55522 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55523
55524         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55525
55526         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55527         the configuration hassle isn't worth it.
55528         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55529         (LONGEST_MODIFIER, PRIuMAX): Remove.
55530
55531 2005-05-27  Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55534
55535 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55536
55537         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55538         _POSIX_PTHREAD_SEMANTICS for Solaris.
55539
55540 2005-05-25  Derek Price  <derek@ximbiot.com>
55541
55542         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55543
55544 2005-05-25  Derek Price  <derek@ximbiot.com>
55545             Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55548         * lib/getlogin_r.c, getlogin_r.h: New files.
55549
55550 2005-05-25  Bruno Haible  <bruno@clisp.org>
55551             Derek Price  <derek@ximbiot.com>
55552
55553         * lib/getlogin_r.h: Simplify API documentation.
55554
55555 2005-05-23  Derek Price  <derek@ximbiot.com>
55556
55557         * modules/minmax (Files): Add m4/minmax.m4.
55558         (configure.ac): Add gl_MINMAX.
55559
55560 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55561
55562         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55563         so that unistd-safer.h (GPL'ed code) need not be included.
55564
55565 2005-05-22  Bruno Haible  <bruno@clisp.org>
55566
55567         * m4/minmax.m4: New file.
55568         Based on a patch by Derek Price <derek@ximbiot.com>.
55569
55570 2005-05-22  Bruno Haible  <bruno@clisp.org>
55571
55572         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55573         (INT64_MIN): Fix definition.
55574         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55575
55576         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55577         NEED_SIGNED_INT_TYPES.
55578
55579         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55580         HAVE_SYSTEM_INTTYPES.
55581
55582 2005-05-22  Bruno Haible  <bruno@clisp.org>
55583
55584         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55585         Also include <sys/param.h> if it defines MIN, MAX.
55586         Based on a patch by Derek Price <derek@ximbiot.com>.
55587
55588 2005-05-21  Jim Meyering  <jim@meyering.net>
55589
55590         * modules/fts (Files): Add m4/inttypes-pri.m4.
55591         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55592
55593 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         New fts module.
55596         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55597         (setup_dir, free_dir): New functions.
55598         (enter_dir, leave_dir): Define trivial
55599         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55600         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55601         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55602         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55603         Move to fts-cycle.c.
55604         (fts_open): Use setup_dir.
55605         (fts_close): Use free_dir.
55606         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55607         This adds a label and some gotos, but the alternatives were messier.
55608         Check for memory allocation failure when entering a dir.
55609         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55610         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55611         (FTS): New member fts_cycle, that is a union that contains the
55612         old active_dir_ht and cycle_state.  All uses changed to mention
55613         fts_cycle.ht and fts_cycle.state.
55614         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55615         fts.c, with the following changes:
55616         (setup_dir, free_dir): New functions.
55617         (enter_dir): Now returns bool.  Return true if successful, false
55618         if memory exhausted.  All callers changed.
55619         Do not bother partly cleaning up on
55620         memory allocation failure; that is free_dir's job.
55621         However, free ad if hash_insert fails, to avoid memory leak.
55622         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55623         fts->fts_options to see which union member to use.
55624
55625 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55626
55627         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55628         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55629
55630 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55631
55632         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55633
55634 2005-05-20  Jim Meyering  <jim@meyering.net>
55635
55636         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55637         Now a macro, to pacify GCC.
55638
55639 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55640
55641         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55642         of -1.
55643
55644 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55645
55646         * lib/chown.c (rpl_chown): Return -1 on failure.
55647
55648 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55649
55650         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55651         Don't check for stddef.h.
55652         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55653         don't use its results.
55654         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55655         since we include them unconditionally.  Don't require
55656         AM_STDBOOL_H, since stdbool is a prerequisite.
55657         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55658         since we assume C89 or better.
55659         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55660         as we don't use their results.
55661         Don't check for fchdir, memmove, memset, strrchr, as we use
55662         them unconditionally.
55663         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55664         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55665
55666 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55667
55668         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55669         Include <stddef.h> unconditionally, since we assume C89 now.
55670         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55671         * lib/fts.c: Include fts_.h first, to check interface.
55672         Do not include intprops.h; no longer needed.
55673         Include cycle-check.h and hash.h, since fts_.h no longer does.
55674         Remove unnecessary casts of closedir to void.
55675         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55676         decide whether to decrement nlinks.
55677         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
55678         (FTS): Use struct hash_table * instead of Hash_table, so that
55679         we no longer need to include hash.h here.
55680
55681 2005-05-18  Jim Meyering  <jim@meyering.net>
55682
55683         * modules/dirfd (License): Change to LGPL.  Most of the code
55684         is already in the public domain.
55685
55686 2005-05-18  Jim Meyering  <jim@meyering.net>
55687
55688         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
55689         Reported by Yoann Vandoorselaere.
55690
55691 2005-05-17  Jim Meyering  <jim@meyering.net>
55692
55693         * m4/fts.m4: New file, from coreutils.
55694
55695 2005-05-17  Jim Meyering  <jim@meyering.net>
55696
55697         * lib/fts.c, lib/fts_.h: New files, from coreutils.
55698
55699 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         Sync from coreutils.
55702         * m4/unlinkdir.m4: New file.
55703
55704 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55705
55706         Sync from coreutils.
55707         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
55708         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
55709         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
55710         White space changes only.
55711         * lib/makepath.c (make_path): Port to hosts where leading "//" is
55712         special.
55713         * lib/yesno.c: Include getline.h, not ctype.h.
55714         (yesno): Don't remove leading white space; POSIX doesn't allow it.
55715         Use getline to remove arbitrary restriction on response length.
55716
55717 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55718
55719         * config/srclist-update: Spell out "Street" in FSF postal
55720         mail address; this is the style the FSF seems to prefer.
55721
55722         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
55723         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
55724         this updates FSF postal mail address.
55725
55726         Sync from coreutils.
55727         * modules/unlinkdir: New file.
55728         * modules/yesno (Depends-on): Add getline.
55729         * MODULES.html.sh (File system functions): Add unlinkdir.
55730
55731 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55732
55733         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
55734         lib/strsep.h:
55735         Change the initial comment to refer to GPL, not LGPL.
55736         gnulib-tool will change it to LGPL as needed.
55737
55738         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
55739         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
55740         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
55741         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
55742         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
55743         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
55744         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
55745         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
55746         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
55747         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
55748         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
55749         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
55750         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
55751         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
55752         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
55753         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
55754         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
55755         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
55756         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
55757         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
55758         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
55759         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
55760         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
55761         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
55762         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
55763         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
55764         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
55765         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
55766         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
55767         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
55768         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
55769         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
55770         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
55771         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
55772         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
55773         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
55774         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
55775         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
55776         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
55777         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
55778         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
55779         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
55780         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
55781         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
55782         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
55783         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
55784         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
55785         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
55786         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
55787         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
55788         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55789         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
55790         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
55791         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
55792         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
55793         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
55794         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
55795         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
55796         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
55797         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
55798         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
55799         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
55800         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
55801         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
55802         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
55803         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
55804         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
55805         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
55806         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
55807         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
55808         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
55809         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
55810         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
55811         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
55812         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
55813         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
55814         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
55815         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
55816         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
55817         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
55818         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
55819         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
55820         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
55821         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
55822         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
55823         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
55824         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
55825         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
55826         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
55827         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
55828         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
55829         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
55830         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
55831         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
55832         lib/yesno.c, lib/yesno.h:
55833         Update FSF postal mail address.
55834
55835 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55836
55837         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
55838         tests/test-memmem.c, tests/test-stpncpy.c:
55839         Update FSF postal mail address.
55840
55841 2005-05-13  Bruno Haible  <bruno@clisp.org>
55842
55843         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
55844         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
55845         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
55846         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
55847         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
55848         Add support for 64-bit integers in the MSVC compiler.
55849
55850 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55851
55852         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
55853
55854 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
55855
55856         * gnulib-tool (func_import): Sort and uniquify recommended includes.
55857
55858 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
55859
55860         * doc/getdate.texi (General date syntax): Don't say that date
55861         date --iso-8601=ns generates acceptable dates; it doesn't yet.
55862         Problem reported by Nic Ferrier.
55863
55864 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55865
55866         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
55867         specified in ai_socktype. Fix invalid ai_protocol
55868         check. ai_protocol is usually set to 0 or depending on
55869         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
55870         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
55871         ai_socktype / ai_protocol in the returned addrinfo structure.
55872
55873 2005-05-10  Simon Josefsson  <jas@extundo.com>
55874
55875         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
55876         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55877
55878 2005-05-10  Karl Berry  <karl@gnu.org>
55879
55880         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
55881         (from http://www.gnu.org/licenses).
55882         * doc/COPYING.LIB: also rename to COPYING.LESSER.
55883         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
55884         fdl.texi suffices.
55885
55886 2005-05-10  Karl Berry  <karl@gnu.org>
55887
55888         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
55889         (COPYING.DOC): remove.
55890
55891         * config/srclist-update: new FSF address.
55892
55893 2005-05-10  Derek Price  <derek@ximbiot.com>
55894
55895         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
55896         possible.
55897
55898 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55899             Bruno Haible  <bruno@clisp.org>
55900
55901         * modules/inet_ntop: New file.
55902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55903         inet_ntop.
55904
55905 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55906             Bruno Haible  <bruno@clisp.org>
55907
55908         * m4/inet_ntop.m4: New file.
55909
55910 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55911             Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/inet_ntop.h: New file.
55914         * lib/inet_ntop.c: New file, from glibc with modifications.
55915
55916 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
55917
55918         * modules/time_r (License): Change to LGPL.
55919         * modules/extensions (License): Change to LGPL.  Actually,
55920         the license is more permissive than that, but currently gnulib-tool
55921         doesn't know how to handle more-permissive licenses.
55922
55923         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
55924         Problem reported by Dave Love.
55925
55926 2005-05-08  Jim Meyering  <jim@meyering.net>
55927
55928         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
55929         blank.
55930
55931 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55932
55933         * modules/argmatch (Depends-on): Add stdbool.
55934         * modules/backupfile (Depends-on): Likewise.
55935         * modules/chdir-long (Depends-on): Likewise.
55936         * modules/closeout (Depends-on): Likewise.
55937         * modules/cycle-check (Depends-on): Likewise.
55938         * modules/dirname (Depends-on): Likewise.
55939         * modules/fnmatch (Depends-on): Likewise.
55940         * modules/fsusage (Depends-on): Likewise.
55941         * modules/fwriteerror (Depends-on): Likewise.
55942         * modules/getcwd (Depends-on): Likewise.
55943         * modules/getloadavg (Depends-on): Likewise.
55944         * modules/hard-locale (Depends-on): Likewise.
55945         * modules/makepath (Depends-on): Likewise.
55946         * modules/mountlist (Depends-on): Likewise.
55947         * modules/nanosleep (Depends-on): Likewise.
55948         * modules/posixtm (Depends-on): Likewise.
55949         * modules/quotearg (Depends-on): Likewise.
55950         * modules/readtokens (Depends-on): Likewise.
55951         * modules/readtokens0 (Depends-on): Likewise.
55952         * modules/readutmp (Depends-on): Likewise.
55953         * modules/save-cwd (Depends-on): Likewise.
55954         * modules/strftime (Depends-on): Likewise.
55955         * modules/userspec (Depends-on): Likewise.
55956         * modules/utimecmp (Depends-on): Likewise.
55957         * modules/xgetcwd (Depends-on): Likewise.
55958         * modules/xnanosleep (Depends-on): Likewise.
55959         * modules/xstrtod (Depends-on): Likewise.
55960         * modules/yesno (Depends-on): Likewise.
55961
55962 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55963
55964         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
55965         needless checks.
55966
55967 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55968
55969         Merge from coreutils.  Among other things,
55970         add bulletproofing for cases where stdin, stdout, or stderr are closed.
55971         * lib/fd-safer.c: New file.
55972         * lib/fcntl-safer.h, open-safer.c: Remove.
55973         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
55974         * lib/dup-safer.c: Include unistd-safer.h first.
55975         Don't include errno.h.
55976         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
55977         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
55978         * lib/file-type.c: Rely on file-type.h change.
55979         * lib/getloadavg.c: Include unistd-safer.h.
55980         (getloadavg): Use safer open.
55981         * lib/getusershell.c: Include "stdio-safer.h".
55982         (getusershell): Use safer fopen.
55983         * lib/long-options.c (long_options): Use NULL rather than 0.
55984         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
55985         'free'.
55986         * lib/modechange.c: Likewise.
55987         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
55988         (MODE_DONE): New constant.
55989         (struct mode_change): Remove 'next' member.
55990         (make_node_op_equals): New function; like the old one of the
55991         same name, except it allocates an array.
55992         (mode_compile, mode_create_from_ref): Use it.
55993         (mode_compile): Allocate result as an array, not a linked list.
55994         Parse octal string ourself, so that we catch mistakes like "+0".
55995         (mode_adjust): Arg is an array, not a linked list.
55996         * lib/modechange.c: Include stat-macros.h, xalloc.h.
55997         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
55998         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
55999         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
56000         Remove.  This is now stat-macros.h's job.
56001         (talloc): Remove.  All callers replaced by xalloc, so that
56002         our invokers don't have to worry about reporting memory failures.
56003         (make_node_op_equals): Remove.
56004         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56005         New constants.
56006         (struct mode_change): Moved here from modechange.h.
56007         (mode_append_entry): Remove.
56008         (mode_compile): Remove MASKED_OPS arg, since it encouraged
56009         apps to have incorrect behavior.  Use simpler algorithm for head
56010         and tail.  Don't futz with umask; that's now the job of mode_adjust.
56011         Detect more invalid usages rather than having somewhat-random behavior.
56012         Don't insert an "a=" action, as that leads to incorrect behavior.
56013         (mode_compile, mode_create_from_ref): Return NULL on error instead
56014         of an enum, since now there's only one way to have an error.  All
56015         callers changed.
56016         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
56017         at the correct time.  Simplify calculation of "+u" and its ilk.
56018         Don't mishandle "+X".
56019         (mode_free): Remove "register" and localize decls.
56020         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56021         (struct mode_change): Move to modechange.c; callers don't
56022         need to see this stuff.
56023         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
56024         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
56025         (mode_change, mode_adjust): Reflect the new signatures noted above.
56026         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
56027         that might redefine system include files.
56028         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
56029         (my_usleep): Use NULL rather than (void *) 0.
56030         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
56031         Use siginterrupt to specify that system calls should be interrupted.
56032         (rpl_nanosleep): Move initialization of suspended closer to call of
56033         my_usleep.
56034         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
56035         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
56036         (desirable_utmp_entry): New function.
56037         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
56038         using x2nrealloc, to simplify logic.
56039         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
56040         size calculation.  Do not assume utmp file is a regular file.
56041         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
56042         (READ_UTMP_CHECK_PIDS): New constant.
56043         * lib/save-cwd.c: Include unistd-safer.h.
56044         (save_cwd): Use fd_safer.
56045         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
56046         [!_LIBC] Include "stat-macros.h" instead.
56047         * lib/unistd-safer.h (fd_safer): New decl.
56048
56049 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56050
56051         * modules/getloadavg (Depends-on): Add unistd-safer.
56052         * modules/getusershell (Depends-on): Add stdio-safer.
56053         * modules/lstat (Depends-on): Remove xalloc.
56054         * modules/mkstemp (Depends-on): Add stat-macros.
56055         * modules/modechange (Depends-on): Remove xstrtol.
56056         Add stat-macros, xalloc.
56057         * modules/save-cwd (Depends-on): Add unistd-safer.
56058         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
56059         * modules/unistd-safer (Files): Add lib/fd-safer.c
56060         (Makefile.am): Remove lib_SOURCES.
56061
56062         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
56063         Remove fcntl-safer; unistd-safer supersedes it.
56064
56065 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56066
56067         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
56068         AC_HEADER_STAT.
56069         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
56070         (gl_PREREQ_CHOWN): Remove.
56071         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
56072         it.  Don't require AC_HEADER_STAT.
56073         (gl_PREREQ_LSTAT): Remove.
56074         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
56075         Don't require AC_HEADER_STAT.
56076         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
56077         (gl_PREREQ_RMDIR): Remove.
56078         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
56079         mention stat-macros.h or AC_HEADER_STAT, since we'll make
56080         the stat-macros module a prerequisite.
56081         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
56082         * m4/filemode.m4 (gl_FILEMODE): Likewise.
56083         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
56084         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
56085         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
56086         variable names.
56087         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
56088         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
56089         variable prefixes.
56090         * m4/fcntl-safer.m4: Remove.
56091         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
56092         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
56093         Invoke gl_PREREQ_FD_SAFER.
56094         (gl_PREREQ_FD_SAFER): New macro.
56095         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
56096         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
56097         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
56098         Remove duplicate call to AC_LIBOBJ(readutmp).
56099         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
56100
56101         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
56102         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
56103
56104 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56105
56106         * MODULES.html.sh (Misc): Add byteswap.
56107
56108 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56109
56110         * modules/getcwd (Depends-on): Add extensions.
56111         * modules/openat (Depends-on): Likewise.
56112
56113 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56114
56115         * modules/byteswap: New file.
56116
56117 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56118
56119         * m4/byteswap.m4: New file.
56120
56121 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56122
56123         * lib/byteswap_.h: New file.
56124
56125 2005-04-25  Karl Berry  <karl@gnu.org>
56126
56127         * m4/gettext.m4: Update from GNU gettext 0.14.4.
56128
56129 2005-04-25  Albert Chin  <china@thewrittenword.com>
56130
56131         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
56132         Toolkit C bug.
56133
56134 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
56135
56136         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
56137         (func_ln_if_changed) Remove forcibly for no error message
56138         in case file does not exist.
56139
56140 2005-04-19  Simon Josefsson  <jas@extundo.com>
56141
56142         * gnulib-tool (Options): Make --symlink mean --symbolic.
56143
56144 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
56145
56146         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
56147
56148 2005-04-16  Simon Josefsson  <jas@extundo.com>
56149
56150         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
56151
56152 2005-04-15  Simon Josefsson  <jas@extundo.com>
56153
56154         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
56155
56156 2005-04-15  Simon Josefsson  <jas@extundo.com>
56157
56158         * gnulib-tool: Rename --symlink to --symbolic.
56159
56160 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
56161
56162         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
56163         symbolic links to files instead of copying/moving.  Add --aux-dir,
56164         specifying directory relative --dir where auxiliary build tools
56165         are placed.
56166
56167 2005-04-14  Bruno Haible  <bruno@clisp.org>
56168
56169         * modules/allocsa (License): Change to LGPL.
56170         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56171
56172 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56173
56174         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
56175         that "UTC +1 second" continues to work.  Problem reported
56176         by Dmitry V. Levin.
56177         (relunit_snumber): New rule.
56178         (relunit): Use it.
56179
56180 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56181
56182         * lib/getdate.y (universal_time_zone_table): New constant.
56183         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
56184         universal_time_zone_table.
56185         (lookup_zone): Prefer universal_time_zone_table to
56186         local_time_zone_table, so that "GMT" time stamps are allowed in
56187         London during the summer.  Problem reported by Ian Abbott.
56188
56189 2005-04-12  Jim Meyering  <jim@meyering.net>
56190
56191         * lib/human.c (humblock): Set *options even when returning due to
56192         xstrtoumax conversion failure.  Thanks to a used-uninitialized
56193         warning from gcc-4.
56194
56195 2005-04-09  Jim Meyering  <jim@meyering.net>
56196
56197         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
56198         -Wuninitialized: initialize tm0.tm_year.
56199
56200 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56201
56202         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
56203         count, since there's no maximum.  All uses changed.
56204         Add member dsts_seen.
56205         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
56206         not being INT_MAX.
56207         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
56208         Use pc_rels_seen to decide whther a date is absolute.
56209
56210         * lib/getdate.y (number): Don't overwrite year.
56211         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
56212         check.
56213
56214 2005-04-02  Simon Josefsson  <jas@extundo.com>
56215
56216         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
56217         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
56218
56219 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
56220
56221         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
56222         where no absolute path name can be longer than PATH_MAX.
56223
56224 2005-03-27  Jim Meyering  <jim@meyering.net>
56225
56226         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
56227
56228 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
56229
56230         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
56231         "one's complement" -> "ones' complement" in comment, as per Knuth.
56232         "value of type" -> "type or expression" in comment.
56233         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
56234
56235 2005-03-26  Jim Meyering  <jim@meyering.net>
56236
56237         Comment nits.
56238         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
56239         Correct typos: s/or/of/.
56240
56241 2005-03-26  Jim Meyering  <jim@meyering.net>
56242
56243         * modules/check-include-files: Move to ../ and rename to...
56244         * check-module: ...this.
56245
56246 2005-03-25  Jim Meyering  <jim@meyering.net>
56247
56248         * modules/xvasprintf (Files): Add xalloc.h.
56249
56250 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56251
56252         * modules/gettext (Files): config/config.rpath ->
56253         build-aux/config.rpath
56254         * modules/iconv (Files): Likewise.
56255         Problem reported by Oskar Liljeblad.
56256
56257 2005-03-23  Jim Meyering  <jim@meyering.net>
56258
56259         * modules/check-include-files: New script to check for
56260         missing dependencies, multiple includes, etc.
56261
56262         * modules/c-strtold (Depends-on): Add xalloc.
56263         * modules/c-strtod (Depends-on): Add xalloc.
56264         * modules/hash (Depends-on): Add xalloc.
56265         (Files): Remove lib/xalloc.h.
56266
56267         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
56268         * modules/userspec (Files): Add lib/inttostr.h.
56269
56270 2005-03-23  Jim Meyering  <jim@meyering.net>
56271
56272         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
56273
56274 2005-03-22  Jim Meyering  <jim@meyering.net>
56275
56276         * modules/stat-macros: New module.
56277         * modules/canonicalize, modules/euidaccess, modules/file-type,
56278         * modules/filemode, modules/lchown, modules/makepath,
56279         * modules/rmdir, modules/stat: Depend on new stat-macros module
56280         rather than listing lib/stat-macros.h manually.
56281         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
56282
56283 2005-03-22  Jim Meyering  <jim@meyering.net>
56284
56285         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
56286
56287 2005-03-22  Bruno Haible  <bruno@clisp.org>
56288
56289         * config/srclist.txt: Replace target directory 'config' with
56290         'build-aux'.
56291         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
56292         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
56293         ../build-aux/.
56294
56295 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
56296
56297         * modules/chdir-long (Depends-on): Add mempcpy.
56298
56299         * modules/acl, modules/backupfile, modules/c-strtod,
56300         modules/c-strtold, modules/canon-host, modules/canonicalize,
56301         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
56302         modules/exclude, modules/exitfail, modules/file-type,
56303         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
56304         modules/getdate, modules/getline, modules/getpagesize,
56305         modules/getpass, modules/getugroups, modules/group-member,
56306         modules/hard-locale, modules/hash, modules/human, modules/idcache,
56307         modules/inttostr, modules/long-options, modules/makepath,
56308         modules/md5, modules/memcasecmp, modules/memcoll,
56309         modules/modechange, modules/mountlist, modules/path-concat,
56310         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
56311         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
56312         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
56313         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
56314         modules/strftime, modules/strndup, modules/strverscmp,
56315         modules/timespec, modules/unlocked-io, modules/userspec,
56316         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
56317         modules/yesno:
56318         Remove lib_SOURCES line from Makefile.am section, as this is now
56319         done automatically by the corresponding Autoconf macro.
56320
56321 2005-03-21  Jim Meyering  <jim@meyering.net>
56322
56323         Changes imported from coreutils.
56324
56325         * lib/cycle-check.c: Don't include xalloc.h.
56326
56327         * lib/path-concat.c: Don't include assert.h.
56328         (path_concat): Remove assertion that would have triggered
56329         for ABASE starting with more than one slash.
56330         Reported by Andreas Schwab.
56331
56332         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
56333         properly when ABASE is an absolute file name.
56334         Correct the description of this function.
56335         Include <assert.h>.
56336         Add an assertion and a test driver.
56337         This fixes a bug introduced on 2004-07-02.
56338         Andreas Schwab reported the resulting failure of cp --parents:
56339         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
56340
56341 2005-03-21  Jim Meyering  <jim@meyering.net>
56342
56343         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
56344         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
56345
56346 2005-03-21  Jim Meyering  <jim@meyering.net>
56347         and  Paul Eggert  <eggert@cs.ucla.edu>
56348
56349         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
56350         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
56351         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
56352         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
56353         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
56354         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
56355         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
56356         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
56357         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
56358         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
56359         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
56360         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
56361         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
56362         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
56363         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
56364         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
56365         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
56366         for these modules.
56367
56368 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
56369
56370         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
56371         (which shouldn't happen), generate nothing instead of returning 0
56372         immediately, so that nstrftime (NULL, ...) doesn't return 0.
56373
56374 2005-03-16  Bruno Haible  <bruno@clisp.org>
56375
56376         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
56377         HAVE_LONGLONG_64BIT.
56378
56379 2005-03-16  Bruno Haible  <bruno@clisp.org>
56380
56381         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
56382         HAVE_LONGLONG_64BIT.
56383
56384 2005-03-16  Bruno Haible  <bruno@clisp.org>
56385
56386         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
56387         HAVE_LONGLONG_64BIT.
56388
56389 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56390
56391         * lib/strftime.c (my_strftime): Prepend space to format so that we can
56392         reliably distinguish strftime failure from empty output on POSIX
56393         hosts.
56394
56395 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56396
56397         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
56398         (iconv_string): Don't guess a size-zero buffer, as that might cause
56399         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
56400         result would be 'too large', where 'too large' is (heuristically)
56401         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
56402         overflow concerns.  This will prevent some unwanted malloc failures
56403         when the inputs are very large.
56404
56405 2005-03-15  Karl Berry  <karl@gnu.org>
56406
56407         * config/srclist.txt (config.rpath): from gettext.
56408         * config/config.rpath: update.
56409
56410 2005-03-15  Bruno Haible  <bruno@clisp.org>
56411
56412         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
56413         to 'negate'.
56414
56415         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
56416         variable.
56417
56418         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
56419         results.
56420
56421 2005-03-14  Simon Josefsson  <jas@extundo.com>
56422
56423         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
56424         <fx@gnu.org>.
56425
56426 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
56427
56428         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
56429         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
56430         intprops.h.
56431         * lib/strtol.c: Likewise.
56432
56433 2005-03-14  Jim Meyering  <jim@meyering.net>
56434
56435         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
56436         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
56437         to be nonzero so that we (and caller) can detect the difference
56438         between a valid zero-length expansion and an error return, even
56439         when the underlying strftime fails before writing anything into
56440         that location.
56441
56442 2005-03-14  Bruno Haible  <bruno@clisp.org>
56443
56444         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
56445         Update from GNU gettext 0.14.3.
56446
56447 2005-03-10  Jim Meyering  <jim@meyering.net>
56448
56449         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
56450
56451 2005-03-10  Jim Meyering  <jim@meyering.net>
56452
56453         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
56454         so that this module works on systems without fchdir.
56455
56456 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
56457
56458         Factor int-properties macros into a single file, except for
56459         glibc-related files.
56460         * lib/intprops.h: New file.
56461         * lib/getloadavg.c: Include it instead of limits.h.
56462         (INT_STRLEN_BOUND): Remove.
56463         * lib/human.c: Include intprops.h.
56464         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
56465         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
56466         302/1000.
56467         * lib/inttostr.h: Include intprops.h instead of limits.h.
56468         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
56469         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
56470         for consistency with intprops.h.
56471         (time_t_is_integer, twos_complement_arithmetic): Use them.
56472         * lib/sig2str.h: Include <signal.h>, intprops.h.
56473         (INT_STRLEN_BOUND): Remove.
56474         * lib/strftime.c (TYPE_SIGNED): Remove.
56475         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
56476         * lib/strtol.c: Adjust comments to match intprops.h.
56477         * lib/userspec.c: Include intprops.h.
56478         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
56479         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
56480         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
56481         instead of rolling our own expressions.
56482         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
56483
56484         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
56485         instead of int.
56486         (my_strftime): Do not mishandle years close to INT_MAX, by doing
56487         the right thing even if adding 1900 would overflow.  Similarly
56488         for tm_mon + 1 and tm_yday + 1.
56489         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56490         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56491         (DO_SIGNED_NUMBER): New macro.
56492         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56493
56494 2005-03-07  Bruno Haible  <bruno@clisp.org>
56495
56496         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56497
56498 2005-03-07  Bruno Haible  <bruno@clisp.org>
56499
56500         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56501
56502 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56503
56504         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56505         (func_import): Only replace files via --import when they have actually
56506         changed.
56507
56508 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56509
56510         * m4/mmap-anon.m4: New file.
56511         * m4/pagealign_alloc.m4: New file.
56512
56513 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56514             Bruno Haible  <bruno@clisp.org>
56515
56516         * modules/pagealign_alloc: New file.
56517         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56518
56519 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56520             Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/pagealign_alloc.h: New file.
56523         * lib/pagealign_alloc.c: New file.
56524
56525 2005-03-03  Bruno Haible  <bruno@clisp.org>
56526
56527         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56528         Use an all-permissive copyright notice, recommended by RMS.
56529
56530 2005-03-02  Bruno Haible  <bruno@clisp.org>
56531
56532         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56533         of AIX, the replacement has to be done only after <string.h> is
56534         included, therefore not in config.h. stpncpy.h does the replacement,
56535         and stpncpy.c uses it.
56536
56537 2005-03-02  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56540         stpncpy.c uses it.
56541
56542 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56543
56544         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56545         The workaround isn't strictly needed for POSIX conformance, and
56546         it's too much of a pain to configure and maintain.  We'll ask
56547         people to fix their kernels instead.
56548         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56549         (NANOSLEEP_BUG_WORKAROUND): Remove.
56550         (xnanosleep): Remove the workaround.
56551
56552 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56553
56554         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56555         Reported by Derek Price.
56556         (Include): Add "timespec.h".
56557
56558         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56559
56560 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56561
56562         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56563         to detect nanosleep bug.
56564
56565 2005-03-01  Bruno Haible  <bruno@clisp.org>
56566
56567         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56568
56569 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56570
56571         * modules/gethrxtime: New file.
56572         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56573         (Depends-on): Add gethrxtime.
56574         (configure.ac): Add gl_XNANOSLEEP.
56575         (Makefile.am): Remove lib_SOURCES line.
56576
56577 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56578
56579         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56580         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56581
56582 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56583
56584         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56585         * lib/timespec.h (gettime): Return void, since it always
56586         succeeds now.  All uses changed.
56587         * lib/gettime.c (gettime) Likewise.
56588         [HAVE_NANOTIME]: Prefer nanotime.
56589         Assume gettimeofday succeeds, as POSIX requires.
56590         Assime time () succeeds, since other code already does.
56591         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56592         (timespec_subtract): Remove.
56593         (NANOSLEEP_BUG_WORKAROUND): New constant.
56594         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56595         things considerably.  Use it only on GNU/Linux hosts, since the
56596         workaround shouldn't be needed elsewhere.
56597
56598 2005-02-24  Bruno Haible  <bruno@clisp.org>
56599
56600         * modules/gettext (Files): Add m4/glibc2.m4.
56601
56602 2005-02-24  Bruno Haible  <bruno@clisp.org>
56603
56604         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56605         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56606         * m4/progtest.m4:
56607         Update from GNU gettext 0.14.2.
56608         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56609
56610 2005-02-24  Bruno Haible  <bruno@clisp.org>
56611
56612         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56613         * lib/config.charset: Update from GNU gettext 0.14.2.
56614
56615 2005-02-24  Bruno Haible  <bruno@clisp.org>
56616
56617         * lib/gettext.h: Update from GNU gettext 0.14.2.
56618
56619 2005-02-23  Simon Josefsson  <jas@extundo.com>
56620
56621         * m4/iconvme.m4: New file.
56622
56623 2005-02-23  Jim Meyering  <jim@meyering.net>
56624
56625         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56626         change.
56627         Thanks to Bruno Haible for catching it.
56628
56629 2005-02-22  Simon Josefsson  <jas@extundo.com>
56630
56631         * modules/iconvme: New file.
56632
56633         * MODULES.html.sh: Add iconvme.
56634
56635 2005-02-22  Simon Josefsson  <jas@extundo.com>
56636
56637         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56638
56639 2005-02-22  Simon Josefsson  <jas@extundo.com>
56640
56641         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56642
56643 2005-02-22  Jim Meyering  <jim@meyering.net>
56644
56645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56646         s/ifndef/ifdef/.
56647
56648 2005-02-20  Neil Conway  <neilc@samurai.com>
56649
56650         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56651         returned by OSX/Darwin if the specified buffer is not large
56652         enough for the hostname.
56653
56654 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56655
56656         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56657         pass it to _help, otherwise the latter coredumps trying to
56658         dereference state.root_argp.
56659
56660 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56661
56662         * modules/chdir-long (Depends-on): Add memrchr.
56663         * modules/memrchr (Files): Add lib/memrchr.h.
56664         (Include): "memrchr.h".
56665
56666 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56667
56668         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56669
56670 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56671
56672         * lib/memrchr.h: New file.
56673         * lib/chdir-long.c: Include it.
56674         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56675         Don't bother including stddef.h.
56676
56677 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56678
56679         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
56680         inclusion.
56681         Include <sys/types.h>, for dev_t.
56682         (ME_DUMMY, ME_REMOTE): Move from here....
56683         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
56684         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
56685         Dmitry V. Levin.
56686         Include mountlist.h first, to test the interface.
56687
56688 2005-01-29  Bruno Haible  <bruno@clisp.org>
56689
56690         * lib/progname.c (program_name): Initialize.
56691         Needed when linking statically on MacOS X.
56692
56693 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56694
56695         Sync from coreutils.
56696         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
56697         (Depends-on): Add c-strtod.
56698         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
56699
56700 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56701
56702         Sync from coreutils.
56703         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
56704
56705         Remove files that are specific to coreutils.
56706         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
56707
56708 2005-01-28  Bruno Haible  <bruno@clisp.org>
56709
56710         * modules/javacomp: New file.
56711         * MODULES.html.sh (Java): Add javacomp.
56712
56713 2005-01-28  Bruno Haible  <bruno@clisp.org>
56714
56715         * m4/javacomp.m4: New file, from GNU gettext.
56716
56717 2005-01-28  Bruno Haible  <bruno@clisp.org>
56718
56719         * lib/javacomp.sh.in: New file, from GNU gettext.
56720         * lib/javacomp.h: New file, from GNU gettext.
56721         * lib/javacomp.c: New file, from GNU gettext.
56722
56723 2005-01-26  Simon Josefsson  <jas@extundo.com>
56724
56725         * lib/gai_strerror.c: Use GPL in header.
56726
56727 2005-01-26  Bruno Haible  <bruno@clisp.org>
56728
56729         * modules/javaexec: New file.
56730         * MODULES.html.sh (Java): Add javaexec.
56731
56732 2005-01-26  Bruno Haible  <bruno@clisp.org>
56733
56734         * m4/javaexec.m4: New file, from GNU gettext.
56735
56736 2005-01-26  Bruno Haible  <bruno@clisp.org>
56737
56738         * lib/javaexec.sh.in: New file, from GNU gettext.
56739         * lib/javaexec.h: New file, from GNU gettext.
56740         * lib/javaexec.c: New file, from GNU gettext.
56741
56742 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56743
56744         * modules/lchown (Depends-on): Remove lchown.h
56745
56746 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56747
56748         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
56749         must be defined if the header file was not found, in order
56750         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
56751
56752 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56753
56754         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
56755         initializers for struct pentry_state.
56756         (__argp_error): Check return value of __asprintf
56757         (__argp_failure): Translate error message
56758
56759         * lib/argp-parse.c: Removed braces around the expansion of N_()
56760
56761 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56762
56763         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
56764         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
56765         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
56766         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
56767         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
56768         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
56769         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
56770         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
56771         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
56772         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
56773         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
56774         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
56775         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
56776         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
56777         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
56778         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
56779         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
56780         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
56781         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
56782         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
56783         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
56784         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
56785         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
56786         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
56787         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
56788         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
56789         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
56790         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
56791         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
56792         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
56793         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
56794         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
56795         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
56796         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
56797         xstrtol.m4, xstrtoumax.m4, yesno.m4:
56798         Use an all-permissive copyright notice, recommended by RMS.
56799
56800 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56801
56802         * modules/chdir-long (Depends-on): Remove mempcpy.
56803
56804 2005-01-21  Jim Meyering  <jim@meyering.net>
56805
56806         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
56807         same value as for Solaris 9.
56808
56809         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
56810         component length.  This included changing the parameter to be
56811         of type `char *' rather than `char const *'.
56812         * lib/chdir-long.h (chdir_long): Update prototype.
56813
56814         * lib/openat.c (fdopendir, fstatat): New functions.
56815         * lib/openat.h: Include headers required for use of DIR and struct
56816         stat.
56817         [AT_SYMLINK_NOFOLLOW]: Define.
56818         (fdopendir, fstatat): Add prototypes.
56819
56820 2005-01-21  Bruno Haible  <bruno@clisp.org>
56821
56822         * modules/classpath: New file.
56823         * MODULES.html.sh (Java): Add classpath.
56824
56825 2005-01-21  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/classpath.h: New file, from GNU gettext.
56828         * lib/classpath.c: New file, from GNU gettext.
56829
56830 2005-01-20  Simon Josefsson  <jas@extundo.com>
56831
56832         * modules/version-etc-fsf: New file.
56833
56834 2005-01-20  Simon Josefsson  <jas@extundo.com>
56835
56836         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
56837         * lib/version-etc.c: Remove version_etc_copyright.
56838         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
56839         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
56840
56841 2005-01-20  Simon Josefsson  <jas@extundo.com>
56842
56843         * lib/base64.h (isbase64): Add.
56844
56845         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
56846         using a unsigned prototype, don't inline.
56847         (base64_decode): Use it.
56848
56849 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56850
56851         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
56852         it.
56853
56854 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56855
56856         * lib/save-cwd.c (save_cwd): Remove code to support the case
56857         where fchdir is missing or flaky.
56858
56859 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56860
56861         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
56862
56863 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56864
56865         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
56866         AC_LIBSOURCES now does this.
56867         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
56868         with new ullong_max module.
56869
56870 2005-01-19  Bruno Haible  <bruno@clisp.org>
56871
56872         * modules/sh-quote: New file.
56873         * MODULES.html.sh (Executing programs): Add sh-quote.
56874
56875 2005-01-19  Bruno Haible  <bruno@clisp.org>
56876
56877         * lib/sh-quote.h: New file, from GNU gettext.
56878         * lib/sh-quote.c: New file, from GNU gettext.
56879
56880 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56881
56882         Merge from coreutils.
56883         * m4/ullong_max.m4: New file.
56884         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
56885         (gl_MACROS): Assume localeconv exists.
56886
56887 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56888
56889         Merge changes from coreutils, as described below in several
56890         changelogs dated today.
56891
56892         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
56893         (O_DIRECTORY): Remove; not needed here, since "." must be
56894         a directory.  All uses removed.
56895         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
56896         universal on Suns, and we also need to test for IRIX.
56897         Revamp code to use 'if' rather than '#if'.
56898         Avoid unnecessary comparison of cwd->desc to 0.
56899
56900         * lib/utimens.c (futimens): Robustify the previous patch, by checking
56901         for known valid error numbers rather than observed invalid ones.
56902
56903 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56904
56905         * modules/ullong_max: New file.
56906
56907         * modules/chdir-long, modules/openat: New files.
56908         * modules/save-cwd (Depends-on): Depend on chdir-long.
56909         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
56910
56911 2005-01-18  Jim Meyering  <jim@meyering.net>
56912
56913         Merge from coreutils.
56914         * m4/chdir-long.m4, m4/openat.m4: New files.
56915         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
56916         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
56917         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
56918         is sane and DOES follow symlinks.  Besides, testing 20 different
56919         systems found no broken chown implementations.
56920         Prompted by a change in rsync's copy of this macro.
56921         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
56922
56923         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
56924
56925         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
56926         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
56927         NULL-means-set-to-current-time semantics.
56928         Remove temporary file immediately, rather than waiting
56929         for configure's at-exit trap code to do it.
56930
56931 2005-01-18  Jim Meyering  <jim@meyering.net>
56932
56933         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56934
56935         * lib/utimens.c (futimens): Account for the fact that futimes
56936         can also fail with errno == ENOSYS or errno == ENOENT.
56937         Patch from Dmitry V. Levin.
56938
56939         Change the name of the robust chdir function from chdir to chdir_long.
56940         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
56941         (restore_cwd): Use chdir_long, not chdir.
56942         * lib/chdir-long.c: Renamed from chdir.c.
56943         * lib/chdir-long.h: Renamed from chdir.h.
56944         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
56945         Hurd.
56946
56947 2005-01-18  Bruno Haible  <bruno@clisp.org>
56948
56949         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
56950         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
56951         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
56952         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
56953         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
56954         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
56955         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
56956         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
56957         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
56958         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
56959         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
56960         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
56961         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
56962         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
56963         Use an all-permissive copyright notice, recommended by RMS.
56964
56965 2005-01-18  Bob Proulx  <bob@proulx.com>
56966
56967         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
56968         simplify offsetof() macro construct to avoid compile failure with
56969         native HP-UX 11.0 ANSI C compiler.
56970
56971 2005-01-17  Bruno Haible  <bruno@clisp.org>
56972
56973         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
56974         redundant because stpncpy.m4 takes care of it.
56975
56976 2005-01-17  Bruno Haible  <bruno@clisp.org>
56977
56978         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
56979
56980 2005-01-17  Bruno Haible  <bruno@clisp.org>
56981
56982         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
56983         used.
56984
56985 2005-01-17  Bruno Haible  <bruno@clisp.org>
56986
56987         * lib/fwriteerror.h (fwriteerror): Change specification to include
56988         fclose.
56989         * lib/fwriteerror.c: Include <stdbool.h>.
56990         (fwriteerror): At the end, close the file stream. Record whether
56991         stdout was already closed.
56992
56993 2005-01-17  Bruno Haible  <bruno@clisp.org>
56994
56995         * lib/execute.c (environ): Declare if needed.
56996         * lib/pipe.c (environ): Likewise.
56997         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
56998
56999 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57000
57001         * modules/argp: Depend on vsnprintf
57002
57003 2005-01-10  Jim Meyering  <jim@meyering.net>
57004
57005         * modules/closeout (Depends-on): Add atexit.
57006
57007 2005-01-06  Bruno Haible  <bruno@clisp.org>
57008
57009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
57010
57011 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57012
57013         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
57014         definitions to be after all include files, to avoid collisions.
57015         Problem reported by Bob Proulx.
57016
57017 2005-01-04  Jim Meyering  <jim@meyering.net>
57018
57019         Changes imported from coreutils.
57020         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
57021         as the mkstemp template, use a temporary directory and an
57022         8.3-friendly template to avoid trouble on systems like DJGPP.
57023         Reported by Juan M. Guerrero via Stepan Kasal.
57024         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
57025         close. Remove the temporary directory right away, rather than waiting
57026         for configure's at-exit trap code to do it.
57027         Suggestion from Stepan Kasal.
57028
57029 2005-01-01  Simon Josefsson  <jas@extundo.com>
57030
57031         * gnulib-tool: Print #include directives when --import'ing.
57032
57033 2004-12-28  Simon Josefsson  <jas@extundo.com>
57034
57035         * tests/test-base64.c: Include required header files.  Remove
57036         unused variables.
57037
57038 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57039
57040         * modules/error (Depends-on): Remove gettext.
57041
57042 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57043
57044         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
57045         not needed.  This removes a dependency on the gettext module.
57046         [defined _LIBC]: Do not include <libintl.h>; not needed.
57047
57048 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57049
57050         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
57051         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
57052
57053 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57054
57055         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
57056         HAVE_DECL_STRTOLD.
57057
57058 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57059
57060         * modules/getdate (Depends-on): Remove alloca-opt.
57061
57062 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57063
57064         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
57065
57066 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         * lib/argp-parse.c: Include <stddef.h>.
57069         (alignof, alignto): New macros.
57070         (parser_init): Don't assume that void * is aligned sufficiently
57071         for struct option.
57072
57073         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
57074         need to extend the stack.
57075         (YYINITDEPTH): New macro, so that the initial stack isn't overly
57076         large.
57077
57078 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57079
57080         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
57081
57082 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57083
57084         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
57085         (2004-10-24) change.  Apparently this was a false alarm.
57086
57087         * modules/getdate: Depend on alloca-opt, not alloca.
57088
57089 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57090
57091         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
57092         Remove now-obsolete comment about AIX.
57093         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
57094         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
57095         (YYMAXDEPTH): New macro.
57096
57097 2004-12-18  Simon Josefsson  <jas@extundo.com>
57098
57099         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
57100
57101 2004-12-18  Bruno Haible  <bruno@clisp.org>
57102
57103         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
57104
57105 2004-12-18  Bruno Haible  <bruno@clisp.org>
57106
57107         * lib/fatal-signal.c (fatal_signals): Make non-const.
57108         (init_fatal_signals): New function.
57109         (uninstall_handlers, install_handlers): Ignore signals that were set to
57110         SIG_IGN.
57111         (at_fatal_signal): Call init_fatal_signals.
57112         (init_fatal_signal_set): Likewise. Ignore signals that were set to
57113         SIG_IGN.
57114         Reported by Paul Eggert.
57115
57116 2004-12-18  Bruno Haible  <bruno@clisp.org>
57117
57118         * doc/alloca.texi: New file.
57119         * doc/alloca-opt.texi: New file.
57120
57121 2004-12-17  Jim Meyering  <jim@meyering.net>
57122
57123         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
57124         Otherwise, install-sh could exit with improper exit status when
57125         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
57126
57127 2004-12-16  Simon Josefsson  <jas@extundo.com>
57128
57129         * tests/test-base64.c: Add license.
57130
57131 2004-12-15  Stepan Kasal  <address@hidden>
57132
57133         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
57134
57135 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
57136
57137         * modules/getcwd (Files): Add m4/d-ino.m4.
57138         Suggested by Mark D. Baushke.
57139
57140 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57141
57142         * lib/getdate.y (textint): New member "negative".
57143         (time_zone_hhmm): New function.
57144         Expect 14 shift-reduce conflicts, not 13.
57145         (o_colon_minutes): New rule.
57146         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
57147         (yylex): Set the "negative" member of signed numbers.
57148
57149 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57150
57151         * doc/getdate.texi (Time of day items, Time zone items):
57152         Describe new formats +00:00, UTC+00:00.
57153
57154 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57155
57156         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
57157         spurious "-l"s.  Problem reported by Stepan Kasal.
57158
57159 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
57160
57161         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
57162         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
57163
57164 2004-12-04  Simon Josefsson  <jas@extundo.com>
57165
57166         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
57167         Vandoorselaere <yoann@prelude-ids.org>.
57168
57169 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57170
57171         Changes imported from coreutils.
57172         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
57173         exist.
57174         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
57175
57176 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57177
57178         Changes imported from coreutils.
57179         * lib/hard-locale.c: Assume <locale.h> exists.
57180         Include "strdup.h".
57181         (GLIBC_VERSION): New macro.
57182         (hard_locale): Assume setlocale exists.
57183         Rewrite to avoid #ifdef.
57184         Use strdup rather than malloc + strcpy.
57185         * lib/human.c: Assume <locale.h> exists.
57186         (human_readable): Assume localeconv exists.
57187
57188 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57189
57190         * modules/hard-locale (Depends-on): Add strdup.
57191
57192 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57193
57194         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
57195         convert T2, not T.  (Imported from libc.)
57196
57197 2004-11-30  Simon Josefsson  <jas@extundo.com>
57198
57199         * modules/restrict (License): Change to LGPL.
57200
57201 2004-11-30  Simon Josefsson  <jas@extundo.com>
57202
57203         * m4/restrict.m4: Add copyright and copying conditions.
57204
57205 2004-11-30  Simon Josefsson  <jas@extundo.com>
57206
57207         * m4/base64.m4: New file.
57208
57209 2004-11-30  Simon Josefsson  <jas@extundo.com>
57210
57211         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
57212         base64.
57213
57214         * tests/test-base64.c: New file.
57215
57216         * modules/base64: New file.
57217
57218 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57219
57220         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
57221         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
57222
57223         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
57224
57225 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57226
57227         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
57228         (__getcwd.c): Don't restore errno; glibc doesn't.
57229         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
57230         first, falling back to our code only if its results look suspicious.
57231         Ensure that the resulting buffer is only as large as necessary.
57232
57233         * lib/readutmp.c: Include readutmp.h first.
57234         Include <errno.h>, since readutmp.h no longer does that.
57235         * lib/readutmp.h: Don't include <errno.h>,
57236         <sys/param.h>, <time.h>; not needed to establish interface.
57237         (errno): Remove decl.
57238         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
57239         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
57240         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
57241
57242 2004-11-28  Simon Josefsson  <jas@extundo.com>
57243
57244         * lib/base64.h, base64.c: New file.
57245
57246 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57247
57248         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
57249
57250 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57251
57252         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
57253         (Depends-on): Remove pathmax, same.  Add mempcpy.
57254         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
57255         (Makefile.am): Append getcwd.h to lib_SOURCES.
57256         (Include): Add getcwd.h.
57257         (Maintainer): Change from Jim Meyering to "all, glibc",
57258         since getdate now uses intended-for-glibc code.
57259         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
57260         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
57261
57262 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57263
57264         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
57265         HP's ANSI C compiler.
57266         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
57267         Declaring int functions causes warnings on some modern systems and
57268         shouldn't be needed to compile on ancient ones.
57269         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
57270         defined.
57271
57272         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
57273         with the following changes.
57274         (__set_errno): Parenthesize properly.
57275         Include <stdbool.h>.
57276         (MIN, MAX, MATCHING_INO): New macros.
57277         (__getcwd): Define with prototype, not K&R form.
57278         Use heuristics to allocate default buffer on stack if possible.
57279         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
57280         behavior, and to avoid the PATH_MAX limit when computing
57281         ../../../../...
57282         Use MATCHING_INO to compare inode number to file.
57283         Check for arithmetic overflow in size calculations.
57284         Fix bug in reallocation of dot array that caused getcwd to fail
57285         on directories nested deeper than 75.
57286         Be more careful about saving errno on error.
57287         Do not use realloc; use only free+malloc, as this is a bit
57288         more flexible and avoids a needless copy operation.
57289         Do not inspect st_dev and st_ino for symbolic links; POSIX
57290         doesn't specify the latter.
57291         Check for closedir errors.
57292         Avoid needless casts.
57293         Use "#ifdef weak_alias" around weak_alias, to be like other
57294         glibc code.
57295         The following changes to getcwd.c have effect only when used in
57296         gnulib; they have no effect inside glibc proper.
57297         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
57298         as alloca isn't used.
57299         (alloca, __alloca): Likewise.
57300         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
57301         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57302         unconditionally, as gnulib assumes C89 or better.
57303         Do not include <sys/param.h>.
57304         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
57305         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
57306         better.
57307         (NULL) [!defined NULL]: Remove; we assume C89 or better.
57308         Include <dirent.h> in a way that is compatible with modern Autoconf.
57309         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
57310         New macros, if not already defined.
57311         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
57312         Use "_LIBC", not "defined _LIBC", for consistency.
57313         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
57314         a mempcpy module.
57315         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
57316         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
57317         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
57318         credit only to Jim Meyering and adjust the copyright dates.
57319         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
57320         <stdlib.h>, <unistd.h>, "pathmax.h".
57321         Instead, include "xgetcwd.h" (first) and "getcwd.h".
57322         (INITIAL_BUFFER_SIZE): Remove.
57323         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
57324
57325 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57326
57327         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
57328         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
57329         Use the _ONCE methods, for efficiency.
57330         Check for fcntl.h.  In test program, include <errno.h>
57331         and <fcntl.h> if available.  Remove old K&R cruft from
57332         test program.  Check for common errors in GNU/Linux,
57333         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
57334         don't do AC_LIBOBJ, as that's getcwd.m4's job.
57335         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
57336         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
57337         name accordingly.
57338         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
57339         accommodate new getcwd.c.
57340         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
57341         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
57342         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
57343         that's all we need now.
57344
57345 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57346
57347         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
57348         argp-parse.c depends on getopt internals, that means we should
57349         always use our getopt, to be on the safe side.
57350         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
57351         order not to spoil the result of an eventual previous invocation
57352         of gl_GETOPT_SUBSTITUTE.
57353
57354 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57355
57356         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
57357         redefinition warnings. To avoid them, include the defines
57358         in `#if !defined __need_getopt ... #endif'. The only place
57359         where __getopt_argv_const is used is in definitions
57360         of getopt_long and getopt_long_only below, which are as well
57361         protected by `#ifndef __need_getopt'.
57362         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
57363         __need_getopt after including <stdio.h> and <unistd.h> These
57364         headers might have defined it.
57365
57366 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57367
57368         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
57369
57370 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57371
57372         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
57373         (futimens): New function, which uses futimes if available.
57374         (futimens, utimens): Support timespec==NULL, with same semantics
57375         as utime and utimens.
57376         * lib/utimens.h (futimens): New decl.
57377
57378 2004-11-23  Jim Meyering  <jim@meyering.net>
57379
57380         * lib/getopt_.h: Remove trailing blanks.
57381
57382 2004-11-23  Jim Meyering  <jim@meyering.net>
57383
57384         * lib/__fpending.c: Add comment.
57385
57386 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
57387
57388         * modules/canonicalize (Depends-on): Add xreadlink.
57389         Problem reported by James Youngman.
57390
57391 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57392
57393         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
57394         New macros.
57395         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
57396         optopt): Use them instead of invoking ## directly; otherwise, the
57397         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
57398
57399 2004-11-19  Bruno Haible  <bruno@clisp.org>
57400
57401         * lib/strtok_r.c: Move comments from here...
57402         * lib/strtok_r.h: ... to here.
57403
57404 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57405
57406         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
57407         implementations that mishandle size_t overflow.
57408
57409 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57410
57411         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
57412         might fail.  Problem reported by Yoann Vandoorselaere.
57413         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
57414         implementations that mishandle size_t overflow.
57415
57416 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57417
57418         * modules/canon-host (Depends-on): Add strdup.
57419
57420 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57421
57422         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
57423
57424 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57425
57426         * lib/canon-host.c: Include "strdup.h".
57427         (canon_host): Use getaddrinfo if available, so that IPv6 works.
57428         Use strdup instead of malloc/strcpy to duplicate strings.
57429
57430         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
57431         (human_space_before_unit): New constant.
57432         * lib/human.c (human_readable): Support it.
57433
57434         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
57435         (xgetcwd): Set errno correctly when failing.
57436         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
57437         the failure is actually due to a PATH_MAX problem.
57438
57439         Further getopt changes to make it more likely that glibc will
57440         buy the changes back.
57441         * lib/getopt.c (POSIXLY_CORRECT): New constant.
57442         (getopt): Use it, so to preserve glibc semantic
57443         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
57444         when compiling for libc.
57445         * lib/getopt_.h (__getopt_argv_const): Bring it back.
57446         (getopt_long, getopt_long_only): Use it.
57447
57448         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57449         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
57450         (getopt): Argv is now char * const *, as per standard.
57451         (_getopt_internal_r, _getopt_internal): Argv is now char **,
57452         not char *__getopt_argv_const *.
57453         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57454         _getopt_long_only_r): Likewise.
57455         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
57456         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57457         _getopt_long_r, _getopt_long_only_r): Likewise.
57458         * lib/getopt_.h (__getopt_argv_const): Remove.
57459         (getopt): Argv is now char * const *, as per standard.
57460
57461         * lib/getdate.y (tORDINAL): New token.
57462         (day, relunit): Allow it for relative times.
57463         (relative_time_table): Use tORDINAL for ordinals.
57464
57465 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57466
57467         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
57468         Document that "second" isn't allowed as an ordinal number.
57469
57470 2004-11-16  Jim Meyering  <jim@meyering.net>
57471
57472         * modules/closeout (Depends-on): Add fpending.
57473
57474 2004-11-15  Jim Meyering  <jim@meyering.net>
57475
57476         * lib/closeout.c: Include "__fpending.h" once again.
57477         Include <stdbool.h>.
57478         (close_stdout): Don't fail just because stdout was closed initially,
57479         since some programs don't write to stdout in the normal course of
57480         operation (other than --version and --help), and we don't want this
57481         function to make e.g. `touch file >&-' fail.
57482         But do fail if it was closed and someone has tried to write to it.
57483         E.g., `printf foo >&-' must fail.
57484
57485 2004-11-13  Jim Meyering  <jim@meyering.net>
57486
57487         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
57488
57489 2004-11-12  Simon Josefsson  <jas@extundo.com>
57490
57491         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57492         small doc fix is still pending.
57493
57494 2004-11-11  Simon Josefsson  <jas@extundo.com>
57495
57496         * modules/strtok_r: New file.
57497
57498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57499         strtok_r.
57500
57501 2004-11-11  Simon Josefsson  <jas@extundo.com>
57502
57503         * m4/strtok_r.m4: New file.
57504
57505         * m4/getopt.m4: Replace opterr.
57506
57507 2004-11-11  Simon Josefsson  <jas@extundo.com>
57508
57509         * lib/strtok_r.h, strtok_r.c: New file.
57510
57511 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57512
57513         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57514         of replacing opterr, getopt, etc.  This should handle the
57515         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57516
57517 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57518
57519         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57520         we can stop lying to compilers about the constness of argv when we
57521         are compiled outside glibc.
57522         (getopt, getopt_long, getopt_long_only): Use it.
57523         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57524         _getopt_internal, getopt): Likewise.
57525         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57526         _getopt_long_only_r): Likewise.
57527         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57528         _getopt_long_r, _getopt_long_only_r): Likewise.
57529
57530         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57531         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57532         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57533         the other external symbols.
57534         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57535         declaration, since the above renaming now works around collisions.
57536
57537 2004-11-11  Jim Meyering  <jim@meyering.net>
57538
57539         * lib/linebreak.c: Remove trailing blanks.
57540         * lib/alloca_.h: Likewise.
57541         * lib/acosl.c: Likewise.
57542         * lib/euidaccess.c: Likewise.
57543         * lib/allocsa.h: Likewise.
57544
57545 2004-11-10  Simon Josefsson  <jas@extundo.com>
57546
57547         * m4/getaddrinfo.m4: New file.
57548
57549 2004-11-10  Simon Josefsson  <jas@extundo.com>
57550
57551         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57552
57553 2004-11-10  Simon Josefsson  <jas@extundo.com>
57554
57555         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57556         getaddrinfo.
57557
57558         * modules/getaddrinfo: New file.
57559
57560 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57563
57564 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57565
57566         * lib/mktime.c (SHR): New macro, which is a portable
57567         substitute for >> that should work even on Crays.
57568         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57569         Problem reported by Mark D. Baushke in
57570         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57571         * lib/getdate.y (SHR): Likewise.
57572         (tm_diff): Use it.
57573         * lib/strftime.c (SHR): Likewise.
57574         (tm_diff): Use it.
57575         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57576         quote_these_too, so that right shifts are well defined.  All uses
57577         changed.
57578
57579 2004-11-10  Jim Meyering  <jim@meyering.net>
57580
57581         Ensure that no close failure goes unreported.
57582         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57583         return early when it seems there's nothing to flush.
57584         Don't include __fpending.h.
57585
57586 2004-11-10  Jim Meyering  <jim@meyering.net>
57587
57588         * modules/closeout (Depends-on): Remove fpending.
57589
57590 2004-11-10  Jim Meyering  <jim@meyering.net>
57591
57592         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57593
57594 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57595
57596         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57597         gl_FUNC_STRFTIME.
57598         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57599         and AC_REQUIRE when possible, to avoid duplicate checks.
57600         Check for <wchar.h>.
57601
57602 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57603
57604         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57605
57606 2004-11-09  Bruno Haible  <bruno@clisp.org>
57607
57608         * m4/sockpfaf.m4: New file.
57609
57610 2004-11-05  Bruno Haible  <bruno@clisp.org>
57611
57612         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57613         Reported by Mark D. Baushke <mdb@cvshome.org>.
57614
57615 2004-11-04  Bruno Haible  <bruno@clisp.org>
57616
57617         2004-09-11  Bruno Haible  <bruno@clisp.org>
57618                 * allocsa.valgrind: New file.
57619         2004-02-06  Bruno Haible  <bruno@clisp.org>
57620                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57621                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57622                 Reported by Christopher Seip <chris.seip@hp.com>.
57623
57624 2004-11-04  Bruno Haible  <bruno@clisp.org>
57625
57626         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57627         (Makefile.am): Distribute it.
57628
57629 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57630
57631         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57632         with errno == ERANGE if the buffer is too small.
57633         Problem reported by Mark D. Baushke.
57634
57635 2004-11-03  Albert Chin  <china@thewrittenword.com>
57636             Paul Eggert  <eggert@cs.ucla.edu>
57637
57638         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57639         equivalent, substitute $ac_type for equivalent type rather than
57640         blindly using uint32_t *always* which won't work if uint32_t is not
57641         available.  Define _UINT32_T to work around typedef of uint32_t if
57642         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57643         2.5.1.
57644
57645 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57646
57647         * m4/jm-macros.m4: Sync from coreutils.
57648         (gl_MACROS): Check for mbrlen, for pathchk.
57649         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57650
57651 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57652
57653         * lib/xreadlink.c (MAXSIZE): New macro.
57654         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57655         size does not exceed MAXSIZE.  Avoid cast.
57656         As suggested by Mark D. Baushke in
57657         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57658         if readlink fails with buffer size just under MAXSIZE, try again
57659         with MAXSIZE.
57660
57661 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57662
57663         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57664
57665 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57666         and  Paul Eggert  <eggert@cs.ucla.edu>
57667
57668         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57669         (get_date): Overparenthesize to avoid GCC warning.
57670
57671 2004-11-02  Bruno Haible  <bruno@clisp.org>
57672
57673         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57674         returns void.
57675
57676 2004-11-02  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
57679         function returns void.
57680
57681 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57682
57683         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
57684         fflush_unlocked, flockfile, funlockfile, funlockfile,
57685         fputs_unlocked, putc_unlocked.
57686
57687 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57688
57689         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57690         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
57691         already declared.
57692
57693 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         * modules/getdate (Files): Add doc/getdate.texi.
57696         (Depends-on): Add setenv, xalloc.
57697
57698 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57699
57700         * lib/getdate.y: Add support for TZ="foo" within a date string.
57701         Fix some bugs near time_t boundaries.  Reject dates with
57702         out-of-range components, e.g., "Sept 31".
57703         Include <stdlib.h>, "setenv.h", "xalloc.h".
57704         (ISDIGIT_LOCALE): Remove; unused.
57705         Note that the TZ and time functions used here are not reentrant.
57706         (mktime_ok, get_tz): New functions.
57707         (TZBUFSIZE): New constant.
57708         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
57709         This requires that we sometimes generate our own TZ="XXX..." setting.
57710
57711 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57712
57713         * doc/getdate.texi: New file, from coreutils with modifications for
57714         the new TZ parsing.
57715
57716 2004-10-27  Derek R. Price  <derek@ximbiot.com>
57717
57718         * lib/mktime.c (not_equal_tm): Remove redundant check.
57719
57720 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57721
57722         * modules/regex (lib_SOURCES): Add regex.c.
57723         Reported by James Youngman in
57724         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
57725
57726 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57727
57728         * lib/getdate.y: Use Bison 1.875 features, and some minor
57729         code cleanups.  This change does not affect semantics.
57730         Don't include <stdlib.h>; no longer needed.
57731         Don't include unlocked-io.h; only the "#if TEST" code uses
57732         stdio, and performance isn't crucial there.
57733         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
57734         Bison 1.875 features as described below.
57735         All uses of "PC." replaced by "pc->".
57736         (YYSTYPE): Add a forward declaration.
57737         (yylex, yyerror): Use full prototypes in forward decls.
57738         Use "%pure-parser" rather than obsolescent "%pure_parser".
57739         Use %parse-param and %lex-param instead of obsolescent
57740         YYPARSE_PARAM and YYLEX_PARAM.
57741         (meridian_table, month_and_day_table, time_units_table,
57742         relative_time_table, time_zone_table, military_table,
57743         lookup_zone, lookup_word, get_date):
57744         Use NULL instead of 0 where appropriate.
57745         (to_hour): Avoid abort (), to avoid a dependency on
57746         stdlib.h.
57747         (yyerror, yylex): Now accepts parser_control * arg.
57748         (main) [TEST]: Use '\0' rather than 0 for char.
57749
57750 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57751
57752         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
57753
57754 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57755
57756         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
57757         It's now the caller's responsibility to handle the case where
57758         !HAVE_GETPAGESIZE && !defined getpagesize.
57759
57760         * lib/mktime.c (leapyear): Arg is long int, not int.
57761
57762 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
57765
57766 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57767
57768         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
57769         missing.  Problem reported by James Youngman.
57770
57771 2004-10-16  Simon Josefsson  <jas@extundo.com>
57772
57773         * gnulib-tool: Fix comments.  Fix parse problem.
57774         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
57775
57776 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
57777
57778         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
57779         implementation of getopt_long.  Problem reported by Alexander Taler in:
57780         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
57781
57782 2004-10-15  Bruno Haible  <bruno@clisp.org>
57783
57784         * gnulib-tool: Untabify. Initialize supplied_libname.
57785         (func_usage): More homogenous output.
57786         (func_modules_transitive_closure, func_modules_to_filelist,
57787         func_emit_lib_Makefile_am): New functions.
57788         (func_import): New function, extracted from big case statement. Use
57789         func_get_license, func_modules_transitive_closure,
57790         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
57791         opt_lgpl. Don't use test -a, as it's not portable.
57792         (func_create_testdir): Use func_modules_transitive_closure,
57793         func_modules_to_filelist, func_emit_lib_Makefile_am.
57794
57795 2004-10-15  Bruno Haible  <bruno@clisp.org>
57796
57797         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
57798
57799 2004-10-15  Bruno Haible  <bruno@clisp.org>
57800
57801         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
57802         the portions belonging to each module.
57803         Suggested by Derek Robert Price <derek@ximbiot.com>.
57804
57805 2004-10-12  Simon Josefsson  <jas@extundo.com>
57806
57807         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57808         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
57809         to real functions.
57810
57811 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57812
57813         * modules/vsnprintf: New file.
57814
57815 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57816
57817         * m4/vsnprintf.m4: New file.
57818
57819 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57820
57821         * lib/vsnprintf.h: New file.
57822         * lib/vsnprintf.c: New file.
57823
57824 2004-10-11  Bruno Haible  <bruno@clisp.org>
57825
57826         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
57827         vsnprintf.
57828
57829 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57830
57831         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
57832
57833 2004-10-07  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
57836         fits into the provided buffer.
57837
57838 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57839
57840         * lib/diacrit.c, diacrit.h: Add GPL notice.
57841
57842         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
57843         notice.
57844         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
57845         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
57846         This avoids a potential constant-folding bug.
57847
57848 2004-10-05  Bruno Haible  <bruno@clisp.org>
57849
57850         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
57851         for the declaration of strsep.
57852
57853 2004-10-05  Bruno Haible  <bruno@clisp.org>
57854
57855         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
57856
57857 2004-10-04  Simon Josefsson  <jas@extundo.com>
57858
57859         * modules/memmem: New file.
57860         * tests/test-memmem.c: New file.
57861         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
57862
57863 2004-10-04  Simon Josefsson  <jas@extundo.com>
57864
57865         * m4/memmem.m4: New file.
57866
57867 2004-10-04  Simon Josefsson  <jas@extundo.com>
57868
57869         * lib/memmem.h: New file.
57870         * lib/memmem.c: New file, taken from glibc.
57871
57872 2004-10-04  Simon Josefsson  <jas@extundo.com>
57873
57874         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
57875         '#ifdef USE_UNLOCKED_IO'.
57876
57877 2004-10-04  Simon Josefsson  <jas@extundo.com>
57878
57879         * config/srclist.txt: Add memmem from glibc.
57880
57881 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57882
57883         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
57884
57885         * modules/argmatch, modules/argp, modules/closeout, modules/error,
57886         modules/exclude, modules/getdate, modules/getline,
57887         modules/getndelim2, modules/getpass, modules/getpass-gnu,
57888         modules/getusershell, modules/linebuffer, modules/md5,
57889         modules/mountlist, modules/posixtm, modules/readtokens,
57890         modules/readutmp, modules/regex, modules/sha1,
57891         modules/version-etc, modules/yesno:
57892         Remove dependency on unlocked-io.
57893
57894 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57895
57896         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
57897
57898         * m4/unlocked-io.m4: Add copyright notice.
57899         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
57900
57901 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57902
57903         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
57904         * lib/xmalloc.c (xmemdup): Likewise.
57905         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
57906         XFREE): Remove these long-obsolescent macros.
57907         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
57908         * lib/xstrdup.c: Remove.
57909
57910         * lib/regex.c (re_comp): Cast gettext return value to char *,
57911         Problem reported by Martin Neitzel via Mark D. Baushke.
57912
57913 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57914
57915         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
57916         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
57917         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
57918         regex.c, sha1.c, version-etc.c, yesno.c:
57919         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
57920         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
57921         the includer's responsibility.
57922
57923         Sync from coreutils.
57924
57925         * lib/modechange.c (mode_compile): Don't decrement a pointer that
57926         points to the start of a string, as the C Standard says the
57927         resulting behavior is undefined.
57928
57929         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
57930         simple -> simple_backups, numbered_existing ->
57931         numbered_existing_backups, numbered -> numbered_backups
57932         to avoid shadowing problems.  All uses changed.
57933         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
57934         * lib/backupfile.c (check_extension, numbered_backup):
57935         Rename locals to avoid shadowing 'basename'.
57936         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
57937         once.
57938
57939         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
57940         * lib/.cvsignore: Add getopt.h.
57941
57942 2004-10-04  Bruno Haible  <bruno@clisp.org>
57943
57944         * modules/README: New file.
57945         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
57946         not a module.
57947
57948 2004-10-02  Jim Meyering  <jim@meyering.net>
57949
57950         * lib/dirfd.h, getpagesize.h: Add copyright notice.
57951
57952 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57953
57954         * modules/strsep: New file.
57955
57956 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57957
57958         * m4/strsep.m4: New file.
57959
57960 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57961
57962         * lib/strsep.h: New file.
57963         * lib/strsep.c: New file.
57964
57965 2004-10-01  Simon Josefsson  <jas@extundo.com>
57966
57967         * lib/snprintf.c (snprintf): Handle size==0.
57968
57969 2004-10-01  Simon Josefsson  <jas@extundo.com>
57970             Bruno Haible  <bruno@clisp.org>
57971
57972         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
57973         (snprintf): Declare 'args'.
57974
57975 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
57976
57977         * lib/snprintf.c: Remove comments as to why each header is needed.
57978
57979 2004-10-01  Bruno Haible  <bruno@clisp.org>
57980
57981         * MODULES.html.sh: Add strsep.
57982
57983 2004-09-30  Simon Josefsson  <jas@extundo.com>
57984
57985         * modules/snprintf: New file.
57986
57987 2004-09-30  Simon Josefsson  <jas@extundo.com>
57988
57989         * m4/snprintf.m4: New file.
57990
57991 2004-09-30  Simon Josefsson  <jas@extundo.com>
57992
57993         * lib/snprintf.h, lib/snprintf.c: New files.
57994
57995 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57996
57997         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
57998         (hol_entry_help): Never translate an empty string.
57999         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
58000         * lib/argp.h (OPTION_NO_TRANS): New option.
58001
58002 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         * modules/argp (Maintainer): Replace Simon Josefsson
58005         by Sergey Poznyakoff.
58006
58007 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58008
58009         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
58010         changes merged back into glibc.
58011
58012 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58013
58014         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
58015
58016 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58017
58018         * lib/xvasprintf.c: Include xalloc.h.
58019         (xvasprintf): Use xalloc_die, not xmalloc_die.
58020
58021 2004-09-29  Bruno Haible  <bruno@clisp.org>
58022
58023         * modules/alloca-opt: New file, derived from modules/alloca.
58024         * modules/allocsa: Depend on alloca-opt instead of alloca.
58025         * modules/setenv: Likewise.
58026         * modules/vasnprintf: Likewise.
58027         * MODULES.html.sh: Add alloca-opt.
58028
58029 2004-09-28  Simon Josefsson  <jas@extundo.com>
58030
58031         * gnulib-tool: New parameter --lgpl, to asseert that modules are
58032         LGPL, and to replace license template from GPL to LGPL.
58033
58034 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58035
58036         * modules/dummy: Change license to LGPL.
58037
58038 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58039
58040         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
58041
58042 2004-09-24  Simon Josefsson  <jas@extundo.com>
58043
58044         * modules/minmax (License): Change from GPL to LGPL.
58045
58046 2004-09-23  Simon Josefsson  <jas@extundo.com>
58047
58048         * gnulib-tool (--import): Typo.
58049
58050 2004-09-23  Simon Josefsson  <jas@extundo.com>
58051
58052         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
58053
58054 2004-09-22  Bruno Haible  <bruno@clisp.org>
58055
58056         * modules/*: Add 'License' field.
58057         * gnulib-tool: Accept --extract-license option.
58058         (func_get_license): New function.
58059
58060 2004-09-21  Bruno Haible  <bruno@clisp.org>
58061
58062         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
58063         Reported by Simon Josefsson.
58064
58065 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58066
58067         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
58068         gl_AC_TYPE_LONG_LONG.
58069
58070 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58071
58072         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
58073
58074 2004-09-18  Simon Josefsson  <jas@extundo.com>
58075         and  Paul Eggert  <eggert@cs.ucla.edu>
58076
58077         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
58078         calls with autoreconf.  Define GL_LIB.
58079
58080 2004-09-14  Karl Berry  <karl@gnu.org>
58081
58082         * config/srclist.txt: unsync setenv.c, sigh.
58083
58084 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
58087         Problem reported by Bruno Haible in:
58088         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
58089
58090 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58091
58092         * config/srclist.txt: Comment out argp-pvh.c.
58093
58094 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
58095
58096         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
58097         in case some system header has #define'd it.  Problem reported by
58098         Soeren D. Schulze in
58099         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
58100
58101 2004-09-09  Karl Berry  <karl@gnu.org>
58102
58103         * regex.[ch]: delete from the root.  These were supposed to be
58104                 synced with emacs cvs, but this has not happened for about
58105                 a year, and anyway nothing else uses emacs regex.[ch].
58106                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
58107                 lib/regex[.ch] is untouched.
58108
58109 2004-09-09  Bruno Haible  <bruno@clisp.org>
58110
58111         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
58112
58113 2004-09-09  Bruno Haible  <bruno@clisp.org>
58114
58115         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
58116         modifications.
58117         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
58118
58119 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58120
58121         * modules/xvasprintf: New file.
58122         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
58123
58124 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58125
58126         * lib/xvasprintf.h: New file.
58127         * lib/xvasprintf.c: New file.
58128         * lib/xasprintf.c: New file.
58129
58130 2004-09-08  Bruno Haible  <bruno@clisp.org>
58131
58132         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
58133
58134 2004-09-08  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
58137         length is > INT_MAX.
58138         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
58139         more.
58140
58141 2004-09-08  Bruno Haible  <bruno@clisp.org>
58142
58143         * lib/stdint_.h: New file, taken from GNU clisp.
58144
58145 2004-09-08  Bruno Haible  <bruno@clisp.org>
58146             Oskar Liljeblad  <oskar@osk.mine.nu>
58147
58148         * modules/stdint: New file.
58149         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
58150
58151 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58152
58153         Import from coreutils.
58154         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
58155         strings on unbounded length.  alloca's performance benefits aren't
58156         that important here.
58157         (V_STRDUP): Remove.
58158         (parse_with_separator): New function, with most of the internals
58159         of the old parse_user_spec.  Allow user to omit both user and group,
58160         for compatibility with FreeBSD.
58161         Clone only the user name, not the entire spec.
58162         Do not set *uid, *gid unless entirely successful.
58163         Avoid memory leak in some failing cases.
58164         Fix regression for USER.GROUP reported by Dmitry V. Levin in
58165         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
58166         (parse_user_spec): Rewrite to use parse_with_separator.
58167
58168 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58169
58170         * modules/userspec: Don't depend on alloca.
58171
58172 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58173
58174         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
58175
58176 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58177
58178         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
58179         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
58180         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
58181
58182 2004-08-16  Simon Josefsson  <jas@extundo.com>
58183
58184         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
58185         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
58186         Add --dry-run for --import.
58187         Let user provided command line parameters override configure.ac
58188         settings.
58189
58190 2004-08-12  Simon Josefsson  <jas@extundo.com>
58191
58192         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
58193         as discussed with Paul Eggert in threads rooted at
58194         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
58195         and
58196         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
58197         Before, the test was empty, and relied on ELIDE_CODE in source
58198         code.)
58199         (gl_PREREQ_GETOPT): New macro.
58200         (gl_GETOPT): Use them.
58201
58202 2004-08-12  Simon Josefsson  <jas@extundo.com>
58203
58204         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
58205         * lib/getopt_.h: Renamed from getopt.h.
58206
58207 2004-08-12  Simon Josefsson  <jas@extundo.com>
58208
58209         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
58210         Change default library name from libfoo to libgnu.
58211         Now, if you have a configure.ac that says:
58212                 gl_SOURCE_BASE(gl)
58213                 gl_M4_BASE(gl/m4)
58214                 gl_MODULES(error getopt etcetera)
58215                 gl_INIT
58216         you can import all you need by running:
58217                 ../gnulib/gnulib-tool --import
58218
58219         * modules/getopt (Files): Rename getopt.h to getopt_.h.
58220         (Makefile.am): Rewrite, use logic from argz.
58221         (Include): Use <getopt.h> instead of "getopt.h".
58222
58223 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58224
58225         * modules/argp (Files): Add m4/unlocked-io.m4.
58226         (Depends-on): Add extensions.
58227
58228 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58229
58230         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
58231         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
58232         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
58233         Check for program_invocation_name, program_invocation_short_name,
58234         flockfile, funlockfile, features.h, _getopt_long_only_r.
58235
58236 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58237
58238         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
58239         its complicated substitute.
58240         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
58241         and program_invocation_name.
58242         (__argp_basename) [!_LIBC]: Remove; the only use was
58243         replaced by its body.
58244         (__argp_short_program_name): Change condition from
58245         !defined __argp_short_program_name to
58246         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
58247         to match argp-namefrob.h.
58248         (__argp_failure): Don't assume strerror_r returns char *.
58249         * lib/argp-parse.c (N_): Define unconditionally.
58250         (argp_default_options): Fill out initializers with 0 to avoid
58251         gcc warnings.
58252
58253 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58254
58255         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
58256         getopt1.c.
58257
58258 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58259
58260         Merge from coreutils.
58261
58262         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
58263
58264         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
58265         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
58266
58267 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58268
58269         Merge from coreutils.
58270
58271         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
58272         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
58273         for Reliant Unix 5.43.
58274
58275         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
58276         (union fooround): Use uintmax_t, not long int.
58277         The rest is a merge from libc:
58278         [defined _LIBC]: Include <shlib-compat.h>.
58279         (_obstack) [defined _LIBC]: Remove after 2.3.4.
58280
58281         * lib/settime.c (settime): Recode to avoid warning with
58282         Sun Forte C 6U2.
58283
58284         * lib/strverscmp.c: Convert to UTF-8.
58285
58286 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58287
58288         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58289         m4/uintmax_t.m4.
58290
58291 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58292
58293         * modules/xalloc-die: New file.
58294         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
58295
58296         * modules/md5 (Files): Add m4/uint32_t.m4.
58297         * modules/sha1: Renamed from modules/sha.
58298         (Files):
58299         Rename lib/sha.h to lib/sha1.h.
58300         Rename lib/sha.c to lib/sha1.c.
58301         Rename m4/sha.m4 to m4/sha1.m4.
58302         (lib_SOURCES): Likewise.
58303         (configure.ac): Rename gl_SHA to gl_SHA1.
58304         (Include): sha.h -> sha1.h.
58305
58306 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58307
58308         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
58309         * m4/sha1.m4: Renamed from sha.m4.
58310         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
58311
58312 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58313
58314         * lib/obstack.h (obstack_empty_p):
58315         Don't assume that chunk->contents is suitably aligned.
58316         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
58317         Likewise. Problem reported by Benno in
58318         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
58319
58320         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
58321         readable.  This could be improved further but it'd take some work.
58322
58323 2004-08-08  Simon Josefsson  <jas@extundo.com>
58324
58325         * modules/xgethostname (Depends-on): Remove exit and error (not
58326         used).
58327
58328         * modules/getpass-gnu: Add getpass.h.
58329         (Depends-on): Add stdbool.
58330         * modules/getpass: Add getpass.h.
58331
58332 2004-08-08  Simon Josefsson  <jas@extundo.com>
58333
58334         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
58335         Check getpass declaration.
58336
58337 2004-08-08  Simon Josefsson  <jas@extundo.com>
58338
58339         * lib/xgethostname.c: Don't include error.h (not used).
58340
58341         * lib/getpass.h: Add.
58342         * lib/getpass.c: Include getpass.h first.
58343
58344 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
58345
58346         * lib/xalloc-die.c: New file.
58347         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
58348         All uses removed.
58349         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
58350         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
58351         xalloc-die.c.
58352         (_, N_, xalloc_die): Move to xalloc-die.c.
58353         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
58354         so that we needn't mess with xalloc_msg_memory_exhausted.
58355
58356         * lib/sha1.h: Renamed from sha.h.
58357         (SHA1_H): Renamed from _SHA_H.
58358         (sha1_ctx): Renamed from sha_ctx.
58359         (sha1_init_ctx): Renamed from sha_init_ctx.
58360         (sha1_process_block): Renamed from sha_process_block.
58361         (sha1_process_bytes): Renamed from sha_process_bytes.
58362         (sha1_finish_ctx): Renamed from sha_finish_ctx.
58363         (sha1_read_ctx): Renamed from sha_read_ctx.
58364         (sha1_stream): Renamed from sha_stream.
58365         (sha1_buffer): Renamed from sha_buffer.
58366         * lib/sha1.c: Likewise; renamed from sha.c.
58367         Do not include <sys/types.h>.
58368         Include <stddef.h> rather than <stdlib.h>.
58369
58370 2004-08-08  Bruno Haible  <bruno@clisp.org>
58371
58372         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
58373         FILESYSTEM_PREFIX_LEN.
58374         * lib/progreloc.c: Likewise.
58375         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
58376
58377 2004-08-06  Simon Josefsson  <jas@extundo.com>
58378
58379         * modules/progname (Depends-on): Don't depend on stdbool.
58380
58381 2004-08-06  Simon Josefsson  <jas@extundo.com>
58382
58383         * modules/getsubopt: New file.
58384         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58385         getsubopt.
58386
58387 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         More merge from coreutils.
58390
58391         * m4/utimens.m4, m4/utimecmp.m4: New files.
58392         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
58393         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
58394         prereq.m4, sha.m4: Import changes from coreutils.
58395
58396 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58397
58398         More merge from coreutils.
58399         * modules/raise, modules/readtokens0, modules/utimens:
58400         * modules/utimecmp, module/xnanosleep: New files.
58401         * modules/strftime: Add lib/strftime.h.
58402         Change include from <time.h> to "strftime.h".
58403         * modules/yesno: Add lib/yesno.h.
58404         * modules/backupfile: Remove lib/addext.c.
58405         * modules/euidaccess: Add stat-macros.h.
58406         * modules/canonicalize, modules/euidaccess,
58407         modules/filemode, modules/lchown, modules/makepath,
58408         modules/rmdir, modules/stat: Likewise.
58409
58410 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         Merge from tar.
58413         * lib/argp-help.c (make_hol, hol_append): Don't assume that
58414         SIZE_MAX is a valid preprocessor constant.
58415         (__argp_basename): Change from "#ifndef _LIBC"
58416         to "#ifndef __argp_short_program_name", so that
58417         we don't compile these functions for tar.
58418
58419         More merges from coreutils.
58420         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
58421         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
58422         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
58423         * lib/addext.c: Remove; no longer needed.
58424         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
58425         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
58426         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
58427         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
58428         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
58429         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
58430         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
58431         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
58432         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
58433         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58434         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
58435         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
58436         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
58437         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
58438         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
58439         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
58440         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
58441         Import changes from coreutils.
58442
58443 2004-08-05  Simon Josefsson  <jas@extundo.com>
58444
58445         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
58446
58447 2004-08-05  Simon Josefsson  <jas@extundo.com>
58448
58449         * m4/getsubopt.m4: New file.
58450
58451 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58452
58453         Merge from coreutils.
58454
58455         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
58456         * m4/getcwd-path-max.m4: New files.
58457
58458         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
58459         FILESYSTEM_PREFIX_LEN ->
58460         FILE_SYSTEM_PREFIX_LEN.
58461         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
58462         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
58463         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
58464         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
58465
58466         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
58467         prerequisite modules now handle the DOS stuff.
58468         Don't check for unistd.h.
58469
58470 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58471
58472         Merge from coreutils.
58473
58474         * lib/.gdb-history: Remove; this doesn't belong here.
58475
58476         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
58477         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
58478         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
58479         * lib/getcwd.c: New files.
58480
58481         * lib/dirname.h: Include <stdbool.h>.
58482         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
58483         for consistency with POSIX terminology.  All uses changed.
58484         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
58485         (strip_trailing_slashes): Use bool for booleans.
58486         * lib/stripslash.c (strip_trailing_slashes): Likewise.
58487
58488         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
58489         sometimes returns a positive errno value even when it succeeds.
58490         (print_errno_message) [!LIBC]: Fall back on strerror if
58491         __strerror_r fails.
58492
58493         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58494         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58495         (longest_relative_suffix): New function.
58496         (path_concat): Use it.  Assume first argument is not NULL.
58497         Port to DOS.  Omit redundant separators.
58498         Report an error instead of returning NULL.
58499         Use mempcpy instead of memcpy.
58500         (xpath_concat): Remove: not declared or used.
58501
58502         * lib/same.h: Include <stdbool.h>
58503         (same_name): Return bool, not int.
58504         * lib/same.c (same_name): Likewise.
58505         (errno): Don't declare; we assume C89 or better now.
58506
58507         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58508         if not already defined.
58509
58510         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58511         * lib/dup-safer.c (errno): Likewise.
58512
58513 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         Merge from coreutils.
58516         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58517         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58518         * modules/path-concat: Don't depend on strdup.
58519
58520 2004-08-03  Simon Josefsson  <jas@extundo.com>
58521
58522         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58523         * lib/progname.h: Don't include stdbool.h.
58524
58525 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58528         * MODULES.html.sh (func_all_modules): Remove fatal.
58529
58530 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58531
58532         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58533
58534 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58535
58536         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58537         working.
58538
58539 2004-08-02  Simon Josefsson  <jas@extundo.com>
58540
58541         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58542         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58543         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58544
58545 2004-08-01  Simon Josefsson  <jas@extundo.com>
58546
58547         * lib/xgetdomainname.c: Include stdlib.h, for free().
58548
58549 2004-07-19  Bruno Haible  <bruno@clisp.org>
58550
58551         * MODULES.html.sh (func_all_modules): Add dummy.
58552
58553 2004-07-16  Simon Josefsson  <jas@extundo.com>
58554
58555         * modules/dummy: New file.
58556
58557 2004-07-16  Simon Josefsson  <jas@extundo.com>
58558
58559         * lib/dummy.c: New file.
58560
58561 2004-07-16  Bruno Haible  <bruno@clisp.org>
58562
58563         * lib/backupfile.h: Add extern "C" for C++.
58564         * lib/closeout.h: Likewise.
58565         * lib/copy-file.h: Likewise.
58566         * lib/findprog.h: Likewise.
58567         * lib/full-write.h: Likewise.
58568         * lib/pathname.h: Likewise.
58569         * lib/progname.h: Likewise.
58570         * lib/stpcpy.h: Likewise.
58571         * lib/stpncpy.h: Likewise.
58572         * lib/strcase.h: Likewise.
58573         * lib/strstr.h: Likewise.
58574         * lib/xalloc.h: Likewise.
58575
58576         * lib/mbswidth.h: Add extern "C" for C++.
58577         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58578
58579 2004-07-13  Robert Millan  <robertmh@gnu.org>
58580
58581         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58582
58583 2004-07-09  Simon Josefsson  <jas@extundo.com>
58584
58585         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58586         failed without this.)
58587
58588 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58589
58590         * modules/chown (Files): Add lib/fchown-stub.c, since
58591         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58592
58593 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58594
58595         * lib/fchown-stub.c: New file.
58596
58597 2004-06-24  Jim Meyering  <jim@meyering.net>
58598
58599         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58600
58601 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         * modules/argz: Omit "#include".
58604
58605         * MODULES.html.sh (func_all_modules): Add calloc, to match
58606         2004-06-01 addition of calloc module.
58607
58608 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58609
58610         * m4/argz.m4: New file, which is autoupdated from libtool.
58611
58612 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58615         libtool.
58616
58617 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58618
58619         * config/srclist-update: Don't insist on "USA." before the
58620         close-comment, as libtool omits the period and puts the */ on a
58621         separate line.
58622         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58623         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58624
58625 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58626
58627         * modules/argz: New file.
58628         * MODULES.html.sh (func_all_modules): Add argz.
58629
58630 2004-06-12  Jim Meyering  <jim@meyering.net>
58631         and  Paul Eggert  <eggert@cs.ucla.edu>
58632
58633         * modules/hash (Files): Add lib/xalloc.h.
58634         * modules/pipe (Depends-on): Add wait-process.
58635         * modules/stat (Depends-on): Add xalloc.
58636         * modules/userspec (Files): Add lib/userspec.h.
58637         * modules/xstrto
58638
58639         Upgrade from gettext-0.13.
58640         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58641         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58642         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58643
58644 2004-06-10  Jim Meyering  <jim@meyering.net>
58645
58646         * lib/calloc.c: New file.
58647
58648 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58649
58650         * lib/getdate.y (yylex): Allow space between sign and number.
58651         Problem reported by Dan Jacobson.
58652
58653 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58654
58655         Merge from coreutils CVS.
58656
58657         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58658         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58659         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58660         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58661         xstrtol.m4: Fix copyright date and/or serial number.
58662
58663         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58664         See if we need an fchown replacement.
58665         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58666         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58667         and use the replacement function if we detect either defect.
58668
58669         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58670         gl_UTIMECMP.
58671
58672 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58673         and  Jim Meyering  <jim@meyering.net>
58674
58675         Merge from coreutils CVS.
58676
58677         * lib/stat-macros.h: New file, with contents from file-type.h
58678         and coreutils' system.h.
58679         * lib/file-type.c: Include "stat-macros.h".
58680         * lib/file-type.h (file_type): Move all macro definitions to new file,
58681         stat-macros.h.
58682
58683         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
58684         Wrap old code with this conditional.
58685         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
58686         function that does not dereference symlinks.
58687         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
58688
58689         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
58690         dependency problems.
58691         (xreadlink): Accept new arg SIZE, for efficiency.
58692         All decls and uses changed.
58693         * lib/xreadlink.h: Include <stddef.h>, for size_t.
58694
58695         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
58696         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
58697
58698         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
58699         sysexits.h.
58700
58701 2004-06-01  Jim Meyering  <jim@meyering.net>
58702
58703         * m4/calloc.m4: New file.
58704
58705 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
58706
58707         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
58708         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
58709         Also, fix a typo in a diagnostic.
58710
58711 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
58714         or AC_FUNC_REALLOC.
58715
58716 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58717
58718         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
58719         macros to be defined.
58720         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
58721         the allocator returns NULL because the requested size is zero.
58722
58723 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58724
58725         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
58726         var.  Add comment explaining why libc still defines it.  This
58727         merges the following patch from glibc:
58728         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
58729
58730 2004-05-20  Andreas Schwab  <schwab@suse.de>
58731
58732         * m4/free.m4: Replace free if it not known to work, not the other
58733         way round.
58734
58735 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
58738         present in glibc since revision 1.1 of this file.
58739         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
58740         obstack_alignment_mask, obstack_alloc, obstack_base,
58741         obstack_blank, obstack_blank_fast, obstack_chunk_size,
58742         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
58743         obstack_grow0, obstack_init, obstack_int_grow,
58744         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
58745         obstack_next_free, obstack_object_size, obstack_ptr_grow,
58746         obstack_ptr_grow_fast, obstack_room): Remove declarations of
58747         nonexistent functions.
58748
58749 2004-05-18  Karl Berry  <karl@gnu.org>
58750
58751         * config/srclist.txt: break link for vasnprintf.c.
58752
58753 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         Port obstack to the AS/400, where pointers are 16 bytes wide and
58756         you cannot cast an integer to a valid pointer.  This patch is
58757         currently waiting to be integrated into glibc; see
58758         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
58759
58760         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
58761         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
58762         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
58763         (struct obstack): temp member is now a union of a pointer and
58764         an integer, instead of an integer.  All integer uses changed.
58765         This does not affect the physical layout of struct obstack,
58766         except on hosts (like the AS/400) where the size or alignment of
58767         void * is greater than that of ptrdiff_t.
58768         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
58769         __STDC__)]: Store temporary in pointer member of union, not
58770         integer member.
58771         * lib/obstack.c: Include <stddef.h>, for offsetof.
58772         (struct fooalign): Remove; it doesn't need a name.
58773         (union fooround): Change double to long double, and add void *.
58774         (DEFAULT_ALIGNMENT): Use offsetof to compute.
58775         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
58776         not a macro.  Hence the values are always int; so remove all
58777         casts-to-int in uses.
58778
58779 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
58782         we can get this patch merged into glibc.
58783
58784 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58785             Paul Eggert  <eggert@cs.ucla.edu>
58786
58787         * m4/argp: Depend on alloca.
58788
58789 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58790             Paul Eggert  <eggert@cs.ucla.edu>
58791
58792         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
58793         freecoding.
58794
58795 2004-05-17  Bruno Haible  <bruno@clisp.org>
58796
58797         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
58798         precision that consists of a '.' followed by an empty digit string.
58799         Patch by Tor Lillqvist <tml@iki.fi>.
58800
58801 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
58804         for backward compatibility with older code.  We need our own
58805         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
58806         it under some other name, and our alloca.h will define it.
58807
58808 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58809             Derek Price  <derek@ximbiot.com>
58810
58811         * lib/alloca.c: Include <alloca.h>, to get our interface.
58812         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
58813         include <alloca.h> first.  Use C89 prototype for alloca; this
58814         requires including <stddef.h> for size_t.  Use extern "C" if C++.
58815         Use #elif for simplicity, since we can assume C89 now.
58816         Don't try to source the system alloca.h since it will not be found
58817         and to prevent recursively including its replacement.
58818         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
58819         * lib/regex.c: Likewise.
58820
58821 2004-05-16  Derek Price  <derek@ximbiot.com>
58822             Paul Eggert  <eggert@cs.ucla.edu>
58823
58824         getline cleanup.  This changes the getndelim2 API: both order of
58825         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
58826         no delimiter).
58827
58828         * lib/getline.c: Don't include stddef.h or stdio.h, since our
58829         interface does that.
58830         (getline): Always use getdelim, so that we don't have two
58831         copies of this code.
58832         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
58833         if available.
58834         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
58835         (GETNDELIM2_MAXIMUM): New macro.
58836         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
58837         instead of the old practice of delim2==0.  All callers changed.
58838         Return -1 on overflow, instead of returning junk.
58839         Do not set *linesize unless allocation succeeds.
58840         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
58841         that we include sys/types.h.
58842         * lib/getnline.h: Likewise.
58843         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
58844         (getndelim2): Reorder arguments.
58845         * lib/getnline.c (getnline, getndelim):
58846         Don't discard the NMAX argument.
58847         (getnline): Invoke getndelim, to avoid code duplication.
58848         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
58849         of (size_t) -1 by callers of the getnline family.
58850
58851 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58852
58853         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
58854         Check for gettimeofday.
58855         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
58856         Check for settimeofday, stime.
58857
58858 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58859
58860         * lib/nanosleep.c (suspended): Change its type from int to
58861         sig_atomic_t volatile.
58862         (first_call): Make it private to rpl_nanosleep, and have it
58863         be zero initially as that's a bit faster.
58864         (my_usleep): Round up fractional times instead of truncating them,
58865         as this is the usual meaning for 'sleep'.
58866
58867         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
58868         doesn't work.
58869         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
58870         (ENOSYS): Define if not defined.
58871         (settime): Fall back on stime if it exists and settimeofday fails.
58872         But don't bother with fallbacks if a method fails with errno == EPERM.
58873
58874 2004-05-11  Jim Meyering  <jim@meyering.net>
58875
58876         Prior to this change, the save_cwd caller required read access to the
58877         current directory on most systems (ones with the fchdir function).
58878
58879         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
58880         fails, try write-only, and finally, resort to using xgetcwd.
58881
58882 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58883
58884         * lib/obstack.c, obstack.h: Import changes from libc.
58885
58886 2004-04-28  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
58889         also implicitly appends .exe to executables.
58890         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
58891         accepts Windows pathnames.
58892         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58893         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58894         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58895         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58896         Reported by Derek Robert Price <derek@ximbiot.com>.
58897
58898 2004-04-21  Karl Berry  <karl@gnu.org>
58899
58900         * config/srclist.txt (localcharset.c): break sync.
58901
58902 2004-04-20  Paul Eggert  <eggert@twinsun.com>
58903
58904         * m4/host-os.m4: Add a copyright notice.
58905
58906 2004-04-20  Jim Meyering  <jim@meyering.net>
58907
58908         Change UTILS_ to gl_ in AC_DEFINE'd names.
58909         Change utils_- and jm_-prefixed variables, too.
58910         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
58911         UTILS_FUNC_MKDIR_TRAILING_SLASH.
58912         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
58913
58914         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
58915         Don't emit trailing blanks.
58916         Also rename jm_-prefixed variables to have gl_ prefix.
58917
58918         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
58919         Also rename jm_-prefixed variables to have gl_ prefix.
58920
58921         * m4/jm-macros.m4: Reflect the renamings.
58922         * m4/prereq.m4: Likewise.
58923
58924 2004-04-20  Jim Meyering  <jim@meyering.net>
58925
58926         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
58927         memory.
58928
58929 2004-04-20  Jim Meyering  <jim@meyering.net>
58930             Bruno Haible  <bruno@clisp.org>
58931
58932         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
58933         memory when realloc fails.
58934
58935 2004-04-19  Jim Meyering  <jim@meyering.net>
58936
58937         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
58938         now that readutmp.c may call `free (0)'.
58939
58940 2004-04-19  Bruno Haible  <bruno@clisp.org>
58941
58942         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
58943         * m4/inttypes_h.m4: Likewise.
58944         * m4/stdint_h.m4: Likewise.
58945         * m4/intmax_t.m4: Likewise.
58946         * m4/uintmax_t.m4: Likewise.
58947
58948 2004-04-18  Jim Meyering  <jim@meyering.net>
58949
58950         * m4/prereq.m4: Don't forbid jm_ prefix.
58951
58952         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
58953         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
58954         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
58955         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
58956         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
58957         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
58958         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
58959         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
58960         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
58961         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
58962         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
58963         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
58964         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
58965         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
58966         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
58967         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
58968         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
58969         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
58970         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
58971
58972 2004-04-18  Jim Meyering  <jim@meyering.net>
58973
58974         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
58975         failure, don't leak memory and do call END_UTMP_ENT.
58976
58977 2004-04-16  Jim Meyering  <jim@meyering.net>
58978
58979         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
58980         coreutils' stat program.
58981         (gl_PREREQ): Don't require jm_PREREQ_STAT.
58982
58983 2004-04-11  Paul Eggert  <eggert@twinsun.com>
58984
58985         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
58986         C89.
58987         (CHAR_BIT): Remove, since we assume C89.
58988         Include <stdint.h> if available, as per current Autoconf CVS advice.
58989
58990 2004-03-31  Jim Meyering  <jim@meyering.net>
58991
58992         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
58993         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
58994         * m4/xalloc.m4: Likewise.
58995
58996 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58997
58998         Merge from coreutils.
58999
59000         * m4/inttostr.m4: New file.
59001         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
59002         Require AM_STDBOOL_H and gl_TIMESPEC instead.
59003         Require gl_CLOCK_TIME.
59004         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
59005
59006 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59007
59008         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
59009         not bool, to be more consistent with Unix conventions.
59010         Suggested by Bruno Haible.
59011
59012         Merge from coreutils.
59013
59014         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
59015         * lib/umaxtostr.c: New files.
59016
59017         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
59018         the usual <time.h> dance.
59019         (get_date): Change signature to support fractional time stamps.
59020         All callers changed.
59021         * lib/getdate.y: Include "getdate.h" first, as we can now
59022         assume C89 and don't need to worry about 'const'.
59023         Similarly, include "unlocked-io.h" near start, not in middle.
59024         Include <limits.h>.
59025         (textint.value): Use long int rather than int.
59026         (textint.digits): Use size_t rather than int.
59027         (BILLION, LOG10_BILLION): New constants.
59028         (parser_control): New member rel_ns.  Members day_ordinal,
59029         time_zone, month, day, hour, minutes, rel_year, rel_month,
59030         rel_day, rel_hour, rel_minutes, rel_seconds
59031         are now long int, not int.  Member seconds is now struct timespec,
59032         not int.  New member timespec_seen.  Members dates_seen, days_seen,
59033         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
59034         not int.
59035         (%union.intval): Now long int, not int.
59036         New member timespec.
59037         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
59038         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
59039         (spec): Now is a timespec or an item list.
59040         (timespec, items): New nonterminals.
59041         (time, rel, relunit, number, get_date):
59042         Add support for fractional seconds.
59043         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
59044         (gmtime, localtime, mktime): Remove decls; not needed with C89.
59045         (to_hour): First arg is now long int, not int.
59046         (to_year): Returns long int, not int.
59047         Don't treat year -70 like 70.
59048         (tm_diff): Returns long int, not int.
59049         (lookup_word): Use bool instead of int when appropriate.
59050         (yylex): Use size_t for count, not int.
59051         Detect overflow when parsing large integer constants.
59052         Add support for fractions.
59053         (get_date): Make pointers 'const' if possible.
59054         Use more-portable code to detect integer overflow.
59055         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
59056         Don't use ctime; it's not reliable if the year has >4 digits.
59057
59058         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
59059         This is for compatibility with BSD.
59060
59061         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
59062         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
59063         From coreutils' system.h.
59064
59065         * lib/userspec.c: Don't include "posixver.h".
59066         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
59067         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
59068         compatible extension.  Simplify code by removing a boolean int
59069         that was always nonzero if a string was nonnull.
59070
59071 2004-03-30  Jim Meyering  <jim@meyering.net>
59072
59073         Merge from coreutils.
59074
59075         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
59076         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
59077         on some systems one must include <grp.h> before it.
59078         Reported by Christian Krackowizer.
59079
59080 2004-03-30  Jim Meyering  <jim@meyering.net>
59081
59082         Merge from coreutils.
59083
59084         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
59085
59086         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
59087         an empty input stream.
59088
59089         * lib/readtokens.c: Include <stdbool.h>.
59090         (readtoken): Use `size_t' rather than int/long.
59091         All callers adjusted.
59092         Use `bool' rather than `int' where appropriate.
59093         Use memset rather than an explicit loop.
59094         Use x2nrealloc rather than xrealloc.
59095         Allow the use of `\0' as a delimiter.
59096         (readtokens): Likewise.
59097         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
59098
59099 2004-03-30  Jim Meyering  <jim@meyering.net>
59100
59101         * m4/realloc.m4: Remove file, since now it does no more than
59102         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
59103         the `configure.ac' section of module/realloc.
59104         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
59105
59106 2004-03-30  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
59109         nonnull.
59110
59111 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59112
59113         Merge changes to getloadavg.c from coreutils and Emacs.
59114
59115         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
59116         Define to an expression, not to the empty string.
59117         Include cloexec.h and xalloc.h.
59118         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
59119         Use set_cloexec_flag rather than rolling our own.
59120         * lib/cloexec.c, lib/cloexec.h: New files.
59121
59122 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59123
59124         * m4/cloexec.m4: New file.
59125
59126 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59127
59128         * lib/getopt.h: Sync with libc CVS.
59129
59130 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59131             Bruno Haible  <bruno@clisp.org>
59132
59133         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
59134         mbswidth.
59135
59136 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59137             Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/mbswidth.h: Include <wchar.h> only if
59140         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
59141         <wchar.h>.
59142         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
59143
59144 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59145
59146         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
59147         Sync with libc CVS.
59148         * lib/getopt_int.h: New file, also synced from libc.
59149
59150 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59151
59152         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
59153         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
59154         Bring back getopt.c, getopt.h, getopt1.c.
59155
59156 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59157
59158         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
59159         All uses changed.  Check for sa_sigaction member; this fixes
59160         a bug first reported by Jason Andrade in
59161         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59162
59163 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59164
59165         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
59166         '#if' expressions.  Unlike the code it replaces, it does not
59167         depend on (defined _SC_PAGESIZE).  However, it does depend on
59168         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
59169         first reported by Jason Andrade in
59170         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59171
59172 2004-02-25  Simon Josefsson  <jas@extundo.com>
59173
59174         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
59175
59176 2004-02-25  Simon Josefsson  <jas@extundo.com>
59177
59178         * lib/strdup.h: New file.
59179         * lib/strdup.c: Include it.
59180         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
59181         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
59182
59183 2004-02-23  Karl Berry  <karl@gnu.org>
59184
59185         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
59186         (from fencepost.gnu.org:/gd/gnuorg).
59187
59188 2004-02-23  Karl Berry  <karl@gnu.org>
59189
59190         * config/srclistvars.sh (GNUORG) [karl]: redefine.
59191         * config/srclist.txt: add maintain/standards documents.
59192
59193 2004-02-18  Bruno Haible  <bruno@clisp.org>
59194
59195         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
59196         Reported by Derek Robert Price <derek@ximbiot.com>.
59197
59198 2004-02-16  Karl Berry  <karl@gnu.org>
59199
59200         * config/mkinstalldirs, install-sh: update from automake.
59201
59202 2004-02-06  Karl Berry  <karl@gnu.org>
59203
59204         * m4/po.m4: update from gettext 0.14.1.
59205
59206 2004-02-06  Karl Berry  <karl@gnu.org>
59207
59208         * lib/config.charset: update from gettext 0.14.1.
59209
59210 2004-02-05  Paul Eggert  <eggert@twinsun.com>
59211
59212         Add comments and code, prompted by suggestions from Bruno Haible
59213         for sh-quote.
59214         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
59215         describing the enum quoting_style values.
59216         * lib/quotearg.c (quotearg_alloc): New function.
59217         (quotearg_buffer_restyled): Treat lone { and } as special.
59218         Treat = as special.  Work around bug with older shells
59219         that "see" a '\' that is really the 2nd byte of a multibyte char.
59220         Quote empty string with shell_quoting_style.
59221
59222 2004-02-03  Bruno Haible  <bruno@clisp.org>
59223
59224         * m4/pipe.m4: New file, from GNU gettext.
59225
59226 2004-02-03  Bruno Haible  <bruno@clisp.org>
59227
59228         * lib/pipe.h: New file, from GNU gettext.
59229         * lib/pipe.c: New file, from GNU gettext.
59230
59231 2004-01-27  Bruno Haible  <bruno@clisp.org>
59232
59233         * m4/execute.m4: New file, from GNU gettext.
59234
59235 2004-01-27  Bruno Haible  <bruno@clisp.org>
59236
59237         * lib/execute.h: New file, from GNU gettext.
59238         * lib/execute.c: New file, from GNU gettext.
59239         * lib/w32spawn.h: New file, from GNU gettext.
59240
59241 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59242
59243         Merge from diffutils.
59244
59245         * lib/file-type.c (file_type): Add typed memory objects.
59246         * lib/file-type.h (S_TYPEISTMO): New macro.
59247
59248         * lib/c-stack.h (c_stack_action): Remove argv argument.
59249         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
59250         (die): Don't calculate message unless segv_action returns.
59251         (get_stack_location, min_address_from_argv, max_address_from_argv,
59252         volatile stack_base, volatile_stack_size): Remove.
59253         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
59254         that every segmentation violation is a stack overflow.  (Ouch!)
59255         See Debian bug 136249 (still outstanding) for more info about why
59256         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
59257
59258 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59259
59260         Exit-status fix from coreutils.
59261
59262         Use exit_failure consistently in place of EXIT_FAILURE,
59263         so that program exit statuses are consistent on failure.
59264
59265         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
59266         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
59267         * lib/argmatch.h: Comment fix to match the above.
59268         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
59269         Now a macro referring to exit_failure, instead of a separate
59270         variable.  Include "exitfail.h" to get it.
59271         * lib/xstrtol.h: Include "exitfail.h".
59272         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
59273
59274         * lib/long-options.c (parse_long_options): Use prototype
59275         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
59276         for clarity.
59277
59278 2004-01-21  Jim Meyering  <jim@meyering.net>
59279
59280         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
59281         so as not to conflict with a different-sized __mktime_internal
59282         function in GNU libc.
59283         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
59284         Problem building statically-linked `ls' reported by Michael Brunnbauer.
59285
59286 2004-01-20  Karl Berry  <karl@gnu.org>
59287
59288         * config/config.guess: update from config.
59289
59290         * config/srclistvars.sh: GNUWWWLICENSES for karl.
59291
59292 2004-01-20  Bruno Haible  <bruno@clisp.org>
59293
59294         Safer stack allocation.
59295         * lib/setenv.c: Include allocsa.h.
59296         (alloca): Remove fallback definition.
59297         (freea): Remove macro.
59298         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
59299         instead of freea.
59300
59301 2004-01-20  Bruno Haible  <bruno@clisp.org>
59302
59303         * m4/eealloc.m4: New file, from GNU gettext.
59304
59305 2004-01-20  Bruno Haible  <bruno@clisp.org>
59306
59307         * m4/allocsa.m4: New file, from GNU gettext.
59308
59309 2004-01-20  Bruno Haible  <bruno@clisp.org>
59310
59311         * lib/xallocsa.h: New file, from GNU gettext.
59312         * lib/xallocsa.c: New file, from GNU gettext.
59313
59314 2004-01-20  Bruno Haible  <bruno@clisp.org>
59315
59316         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
59317
59318 2004-01-20  Bruno Haible  <bruno@clisp.org>
59319
59320         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
59321         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
59322         specially.
59323
59324 2004-01-20  Bruno Haible  <bruno@clisp.org>
59325
59326         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
59327         patch.
59328
59329 2004-01-20  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
59332
59333 2004-01-20  Bruno Haible  <bruno@clisp.org>
59334
59335         * lib/eealloc.h: New file.
59336
59337 2004-01-20  Bruno Haible  <bruno@clisp.org>
59338
59339         * lib/binary-io.h: Avoid warnings on Cygwin.
59340
59341 2004-01-20  Bruno Haible  <bruno@clisp.org>
59342
59343         * lib/allocsa.h: New file, from GNU gettext.
59344         * lib/allocsa.c: New file, from GNU gettext.
59345
59346 2004-01-18  Karl Berry  <karl@gnu.org>
59347
59348         * doc/gpl.texi, doc/lgpl.texi: new files.
59349
59350 2004-01-18  Karl Berry  <karl@gnu.org>
59351
59352         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
59353         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
59354
59355 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59356
59357         Merge from coreutils.
59358
59359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
59360         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
59361         (gl_DEFAULT_POSIX2_VERSION): Move
59362         the documentation from 'configure' into 'config.hin',
59363         so that 'configure --help' isn't burdened by it and
59364         we don't have to worry about its formatting there.
59365         Reword the documentation so that it's more succinct
59366         and can be run together into a single paragraph.
59367         * m4/same.m4 (gl_SAME): Check for pathconf.
59368
59369 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59370
59371         Merge from coreutils.
59372
59373         * lib/posixver.c: Include posixver.h.
59374
59375         * lib/same.c: Include <stdbool.h>, <limits.h>.
59376         (_POSIX_NAME_MAX): Define if not defined.
59377         (MIN): New macro.
59378         (same_name): If file names are silently truncated, report
59379         that the file names are the same if they are the same after
59380         the silent truncation.
59381
59382         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
59383         conversion function.
59384         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
59385         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
59386         longer needed.
59387
59388 2004-01-15  Jim Meyering  <jim@meyering.net>
59389
59390         Merge from coreutils.
59391
59392         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
59393         if no library is required.
59394         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
59395         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
59396         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
59397         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
59398         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
59399         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
59400         value, $ac_cv_search_crypt, if it's "none required".
59401         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
59402         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
59403         not gl_FUNC_GETLOADAVG.
59404         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
59405         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
59406
59407 2004-01-15  Jim Meyering  <jim@meyering.net>
59408
59409         Merge from coreutils.
59410
59411         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
59412         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
59413         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
59414
59415         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
59416         optional configure-time default.
59417
59418         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59419
59420         * lib/xreadlink.c (xreadlink): Correct outdated comment.
59421
59422 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
59423
59424         Merge from coreutils.
59425
59426         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
59427         value, $ac_cv_search_nanosleep, if it's "none required".
59428
59429 2004-01-14  Paul Eggert  <eggert@twinsun.com>
59430
59431         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
59432         with like-named macro in fnmatch.c.
59433         (EXT): Use an internal constant instead.
59434
59435         Merge fnmatch patches from glibc.
59436         * lib/fnmatch.c (mbsinit): Remove define.
59437         Add libc_hidden_ver (__fnmatch, fnmatch).
59438         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
59439         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
59440
59441 2004-01-14  Karl Berry  <karl@gnu.org>
59442
59443         * config/install-sh: update from automake.
59444
59445 2004-01-13  Karl Berry  <karl@gnu.org>
59446
59447         * config/install-sh: update from automake.
59448
59449 2004-01-09  Karl Berry  <karl@gnu.org>
59450
59451         * config/install-sh: update from automake.
59452
59453 2004-01-05  Karl Berry  <karl@gnu.org>
59454
59455         * config/config.{sub,guess}: update from config.
59456
59457 2003-12-31  Karl Berry  <karl@gnu.org>
59458
59459         * config/depcomp: update from automake.
59460
59461 2003-12-14  Karl Berry  <karl@gnu.org>
59462
59463         * lib/config.charset: update from gettext-runtime.
59464
59465 2003-12-03  Paul Eggert  <eggert@twinsun.com>
59466
59467         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
59468         Bug reported by Alfred M. Szmidt.
59469
59470 2003-12-03  Bruno Haible  <bruno@clisp.org>
59471
59472         * m4/gettext.m4: Upgrade from gettext-0.13.
59473         * m4/po.m4: Upgrade from gettext-0.13.
59474         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
59475         * m4/intmax.m4: New file, from gettext-0.13.
59476         * m4/printf-posix.m4: New file, from gettext-0.13.
59477
59478 2003-11-29  Karl Berry  <karl@gnu.org>
59479
59480         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
59481
59482 2003-11-25  Paul Eggert  <eggert@twinsun.com>
59483             Bruno Haible  <bruno@clisp.org>
59484
59485         * lib/printf-parse.h: Don't include sys/types.h.
59486         (ARG_NONE): New macro.
59487         (char_directive): Change type of *arg_index fields to size_t.
59488         * lib/printf-parse.c: Don't include sys/types.h.
59489         (SSIZE_MAX): Remove macro.
59490         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59491         Remove unnecessary overflow check.
59492         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59493         fields.
59494
59495 2003-11-25  Bruno Haible  <bruno@clisp.org>
59496
59497         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59498
59499 2003-11-25  Bruno Haible  <bruno@clisp.org>
59500
59501         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59502         gt_TYPE_SSIZE_T.
59503
59504 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59505
59506         * modules/alloca: Remove dependency on xalloc.
59507
59508 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59509
59510         * lib/alloca.c: Remove dependency on xalloc module.
59511         (xalloc_die): Remove.
59512         (memory_full) [!defined emacs]: New macro.
59513         [!defined emacs]: Don't include xalloc.h.
59514         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59515         address arithmetic overflows.  Change datatypes a bit to avoid
59516         unnecessary casts.
59517
59518 2003-11-22  Jim Meyering  <jim@meyering.net>
59519
59520         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59521         s/size/size_t/.
59522
59523 2003-11-21  Karl Berry  <karl@gnu.org>
59524
59525         * config/config.{sub,guess}: update from config.
59526
59527 2003-11-18  Karl Berry  <karl@gnu.org>
59528
59529         * config/config.{sub,guess}: update from config.
59530
59531         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59532
59533 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59534
59535         * README: Mention that S+T cannot overflow if S is the size of
59536         an existing object and T is sufficiently small.
59537
59538 2003-11-17  Jim Meyering  <jim@meyering.net>
59539
59540         On systems without utime and without a utimes function capable of
59541         dealing with a NULL struct utimbuf* argument, this utime replacement
59542         could -- in unusual circumstances -- leak a file descriptor.
59543         * lib/utime.c: Include <unistd.h> and <errno.h>.
59544         (utime_null): Be sure to close `fd' and to preserve errno.
59545         Reported by Geoff Collyer via Arnold Robbins.
59546
59547 2003-11-17  Bruno Haible  <bruno@clisp.org>
59548
59549         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59550         (Depends-on): Add xsize.
59551
59552 2003-11-17  Bruno Haible  <bruno@clisp.org>
59553
59554         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59555
59556 2003-11-17  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/vasnprintf.c (alloca): Remove fallback definition.
59559         (freea): Remove definition.
59560         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59561         Reported by Paul Eggert.
59562
59563 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59564             Bruno Haible  <bruno@clisp.org>
59565
59566         Protect against address arithmetic overflow.
59567         * lib/printf-args.h: Include stddef.h.
59568         (arguments): Change type of field 'count' to size_t.
59569         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59570         'unsigned int' where appropriate.
59571         * lib/printf-parse.h: Include sys/types.h.
59572         (char_directive): Change type of *arg_index fields to ssize_t.
59573         (char_directives): Change type of fields 'count', max_*_length to
59574         size_t.
59575         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59576         (SSIZE_MAX): Define fallback value.
59577         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59578         instead of 'int' where appropriate. Check a_allocated, d_allocated
59579         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59580         * lib/vasnprintf.c: Include xsize.h.
59581         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59582         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59583         overflow. Avoid wraparound when converting a width or precision from
59584         decimal to binary.
59585
59586 2003-11-16  Bruno Haible  <bruno@clisp.org>
59587
59588         Update from GNU gettext.
59589         * lib/printf-parse.c: Generalize to it can be compiled for wide
59590         strings.
59591         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59592         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59593         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59594         SNPRINTF): New macros.
59595         Don't include <alloca.h> if the file is used inside libintl.
59596         (local_wcslen): New function, for Solaris 2.5.1.
59597         (VASNPRINTF): Use it instead of wcslen.
59598
59599 2003-11-16  Bruno Haible  <bruno@clisp.org>
59600
59601         * lib/xsize.h (xmax): New function.
59602         (xsum, xsum3, xsum4): Declare as "pure" functions.
59603
59604 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59605
59606         * modules/xalloc (Files): Undo latest change, since xalloc.h
59607         no longer needs SIZE_MAX or PTRDIFF_MAX.
59608
59609 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59610
59611         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59612         gl_PTRDIFF_MAX.
59613
59614 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59615
59616         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59617         "return", to pacify some unknown compiler.  Problem reported
59618         by Joerg Schilling.
59619
59620 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59621
59622         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59623         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59624         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59625         heuristic is just as accurate as far as we know, and it removes a
59626         dependency on size_max.m4 and ptrdiff_max.m4.
59627
59628 2003-11-11  Bruno Haible  <bruno@clisp.org>
59629
59630         * modules/xsize (Files): Add m4/size_max.m4.
59631         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59632
59633 2003-11-11  Bruno Haible  <bruno@clisp.org>
59634
59635         * m4/size_max.m4: New file.
59636         * m4/ptrdiff_max.m4: New file.
59637         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59638         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59639         (gl_XALLOC): Invoke it.
59640
59641 2003-11-11  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59644         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59645         defined.
59646
59647 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59648
59649         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59650         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59651         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59652         From Bruno Haible.
59653         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59654         not (size_t) -1, since it's defined here.
59655
59656 2003-11-09  Karl Berry  <karl@gnu.org>
59657
59658         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59659
59660 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59661
59662         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59663         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59664         Reject sizes of exactly SIZE_MAX bytes.
59665         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59666         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59667
59668 2003-11-05  Bruno Haible  <bruno@clisp.org>
59669
59670         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59671         SIZE_MAX defined in <limits.h> on Solaris.
59672
59673 2003-11-04  Jim Meyering  <jim@meyering.net>
59674
59675         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59676         variable names, rather than @VAR@.
59677         * modules/poll: Likewise.
59678
59679 2003-11-04  Bruno Haible  <bruno@clisp.org>
59680
59681         * modules/xsize: New file.
59682         * modules/linebreak: Depend on xsize.
59683         * MODULES.html.sh (func_all_modules): Add xsize.
59684
59685 2003-11-04  Bruno Haible  <bruno@clisp.org>
59686
59687         * m4/xsize.m4: New file.
59688
59689 2003-11-04  Bruno Haible  <bruno@clisp.org>
59690
59691         * lib/xsize.h: New file.
59692         * lib/linebreak.c: Include xsize.h.
59693         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
59694         argument for overflow.
59695         Suggested by Paul Eggert.
59696
59697 2003-11-03  Karl Berry  <karl@gnu.org>
59698
59699         * config/config.{guess,sub}: update from config.
59700
59701 2003-11-03  Jim Meyering  <jim@meyering.net>
59702
59703         * modules/userspec (lib_SOURCES): Add userspec.h.
59704         (Include): Add "userspec.h".
59705         Improve description.
59706
59707 2003-11-03  Jim Meyering  <jim@meyering.net>
59708
59709         * lib/userspec.c: Include "userspec.h".
59710         * lib/userspec.h: New file.
59711
59712 2003-11-03  Bruno Haible  <bruno@clisp.org>
59713
59714         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
59715
59716 2003-11-03  Bruno Haible  <bruno@clisp.org>
59717
59718         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
59719         available, to avoid (extremely rare) race condition.
59720         Suggested by Paul Eggert.
59721
59722 2003-11-02  Karl Berry  <karl@gnu.org>
59723
59724         * config/srclist.txt (vasprintf.c): sync broken, sigh.
59725
59726 2003-10-31  Paul Eggert  <eggert@twinsun.com>
59727
59728         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
59729         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
59730         (read_filesystem_list): Set and use me_type_malloced.
59731         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
59732         whatever the type happens to be), for brevity and consistency.
59733         Check for size calculation overflow on Alphas running OSF/1.
59734
59735 2003-10-31  Jim Meyering  <jim@meyering.net>
59736
59737         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
59738
59739         * lib/linebuffer.c: Include <string.h> for declaration of memset.
59740
59741 2003-10-30  Paul Eggert  <eggert@twinsun.com>
59742             Bruno Haible  <bruno@clisp.org>
59743
59744         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
59745         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
59746
59747 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59748
59749         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
59750         netbsd*-gnu*.  Suggested by Robert Millan.
59751
59752 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59753
59754         * modules/group-member: Depend on stdbool.
59755
59756 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59757
59758         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
59759
59760 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59761
59762         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
59763         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
59764         after the 'gnu' in these cases.  This fixes some bugs in the
59765         previous change, and is based on suggestions by Robert Millan.
59766
59767 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59768
59769         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
59770         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
59771         no longer needed.
59772         * lib/quotearg.c (quotearg_n_options): Use it.
59773         * lib/group-member.c: Include <stdbool.h>.
59774         (free_group_info): Arg is now const *; don't free arg.
59775         (get_group_info): Now returns bool and accepts struct group_info *,
59776         rather than returning a malloc'ed struct group_info *.
59777         All uses changed.  Check for overflow in internal size calculation.
59778
59779         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
59780         rather than xmalloc/xrealloc.
59781         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
59782         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
59783         conformance bug: the old code used a pointer after freeing the
59784         storage that it addressed.
59785         * lib/hash.c (hash_initialize): Simplify the code by using
59786         xalloc_oversized rather than doing it by hand.
59787         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
59788         the buffer preserved.  Use free and xmalloc instead.
59789         * lib/quotearg.c (quotearg_n_options): Likewise.
59790         Use a simpler test for size overflow.  Don't use xalloc_oversized
59791         because unsigned int might be wider than size_t (!); this suggests
59792         that we should switch from unsigned int to size_t for slot numbers.
59793
59794 2003-10-28  Paul Eggert  <eggert@twinsun.com>
59795
59796         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
59797         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
59798         NetBSD kernels.  Requested by Richard Stallman.
59799
59800 2003-10-27  Paul Eggert  <eggert@twinsun.com>
59801
59802         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
59803         to allocate the returned structure.  Do not allocate a subarray,
59804         as x2nrealloc will do that.
59805         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
59806         instead of xnrealloc.
59807         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
59808
59809 2003-10-27  Bruno Haible  <bruno@clisp.org>
59810
59811         * lib/stdbool_.h: Better support for BeOS.
59812
59813 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59814
59815         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
59816         now uses inline.
59817
59818 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59819
59820         * lib/xalloc.h (xalloc_oversized): New static inline function, for
59821         callers that want to do their own size-overflow checking.  Include
59822         <stdbool.h>, since xalloc_oversized returns bool.
59823         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
59824         to use xalloc_oversized.
59825
59826         Add two functions x2realloc, x2nrealloc, for programs that grow
59827         arrays dynamically by doubling their sizes.
59828         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
59829         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
59830         New functions.
59831
59832         Port to C99 semantics for 'inline' of external functions.
59833         Bug reported by Bruno Haible.
59834         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
59835         with the old contents of xnmalloc.
59836         (xnmalloc, xmalloc): Use it.
59837         (xnrealloc_inline): New static inline function,
59838         with the old contents of xnrealloc.
59839         (xnrealloc, xrealloc): Use it.
59840
59841         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
59842         that.
59843
59844 2003-10-26  Karl Berry  <karl@gnu.org>
59845
59846         * config/srclist.txt (COPYING.DOC): no longer available from
59847         /gd/gnuorg; don't know where the ultimate source is.
59848
59849 2003-10-25  Paul Eggert  <eggert@twinsun.com>
59850
59851         Fix several address-calculation bugs in the hash modules,
59852         plus some minor code cleanup.
59853
59854         * lib/hash.h: Include <stdbool.h>, for bool.
59855         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
59856         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
59857         hash_get_n_entries, hash_get_max_bucket_length,
59858         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
59859         hash_rehash): Use size_t rather than unsigned.
59860         * lib/hash.c (struct hash_table, hash_get_n_buckets,
59861         hash_get_n_buckets_used, hash_get_n_entries,
59862         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
59863         hash_get_entries, hash_do_for_each, hash_string, is_prime,
59864         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
59865         Likewise.
59866         (SIZE_MAX): Define if not defined.
59867         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
59868         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
59869         hash_print):
59870         Use const * when possible.
59871         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
59872         (check_tuning): Fix bug: if tuning parameters were very close to
59873         0 or 1, rounding errors could have caused subscript violations.
59874         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
59875         (hash_initialize): Add 'fail:' label
59876         to free table and return NULL, and use it to simplify code.
59877         Use calloc rather than clearing the storage ourself.
59878         (hash_initialize, hash_rehash): Check for arithmetic overflow in
59879         buffer size calculations.
59880         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
59881         Include <stddef.h>, for size_t.
59882         * lib/hash-pjw.c (hash_pjw): Likewise.
59883         Switch to method described by Bruno Haible.
59884         Include <limits.h>, for CHAR_BIT.
59885         (SIZE_BITS): New macro.
59886
59887 2003-10-23  Paul Eggert  <eggert@twinsun.com>
59888
59889         * m4/getline.m4 (AM_FUNC_GETLINE):
59890         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
59891         hosts.  Problem reported by Derek Robert Price in
59892         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
59893         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
59894         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
59895
59896 2003-10-21  Paul Eggert  <eggert@twinsun.com>
59897
59898         * lib/getndelim2.c (getndelim2): When size calculation overflows,
59899         ceiling the allocation at NMAX bytes rather than silently
59900         discarding input bytes before NMAX is reached.  This makes
59901         a difference only if NMAX exceeds SIZE_MAX / 2.
59902
59903         * lib/obstack.c: Merge from glibc.
59904         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
59905         Add libc_hidden_def (_obstack_newchunk).
59906         (_obstack_free) [! defined _LIBC]: Remove.
59907         [defined _LIBC]: Make a strong alias from obstack_free, rather than
59908         a clone of the function body.
59909         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
59910         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
59911
59912         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
59913         glibc.
59914         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
59915         arg to memcpy.
59916
59917         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
59918         (obstack_ptr_grow_fast, obstack_int_grow_fast):
59919         Don't use lvalue casts, as GCC plans to remove support for them
59920         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
59921         was also present in the non-GCC version, indicating that this
59922         code had always been buggy and had never been widely used.
59923         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
59924         Use the fast variant of each macro, rather than copying the
59925         definiens of the fast variant; that way, we'll be more likely to
59926         catch future bugs in the fast variants.
59927
59928 2003-10-20  Bruno Haible  <bruno@clisp.org>
59929
59930         * modules/wait-process: New file.
59931         * MODULES.html.sh (func_all_modules): Add wait-process.
59932
59933 2003-10-20  Bruno Haible  <bruno@clisp.org>
59934
59935         * m4/wait-process.m4: New file.
59936
59937 2003-10-20  Bruno Haible  <bruno@clisp.org>
59938
59939         * lib/wait-process.h: New file, from GNU gettext.
59940         * lib/wait-process.c: New file, from GNU gettext.
59941
59942 2003-10-19  Jim Meyering  <jim@meyering.net>
59943
59944         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
59945         HPUX 10.20.
59946
59947 2003-10-18  Karl Berry  <karl@gnu.org>
59948
59949         * config/config.guess: update from config.
59950
59951 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59952
59953         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
59954         (getgroups): First arg is int, not size_t.
59955         Don't let 'free' mangle errno.
59956
59957 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59958
59959         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
59960
59961 2003-10-16  Karl Berry  <karl@gnu.org>
59962
59963         * config/config.{guess,sub}: update from config.
59964
59965 2003-10-16  Jim Meyering  <jim@meyering.net>
59966
59967         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
59968         memcpy.
59969
59970 2003-10-15  Paul Eggert  <eggert@twinsun.com>
59971
59972         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
59973         (SIZE_MAX): Remove.
59974         (new_exclude, add_exclude_file): Initial size no longer needs to
59975         be a power of 2.
59976         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
59977         our own address arithmetic overflow checking.
59978
59979         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
59980         (fnmatch): Do not alloca more than 2000 wide characters;
59981         instead, use malloc for large buffers.
59982         Check for address arithmetic overflow, and return -1
59983         with errno set to ENOMEM in that case.
59984         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
59985         (NEW_PATTERN): Do not alloca more than 8000 bytes;
59986         instead, return -1.  Check for address arithmetic overflow.
59987
59988 2003-10-14  Paul Eggert  <eggert@twinsun.com>
59989
59990         Handle invalid suffixes and overflow independently, so that
59991         callers can treat them independently as needed.  Fix some bugs in
59992         suffix handling, e.g., "100k@" was not diagnosed as an invalid
59993         suffix for a human-readable blocksize.  The major caller-visible
59994         change is the addition of a new
59995         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
59996         that both overflow and suffix chars were found.
59997
59998         * lib/human.c (humblock): Don't check separately for invalid suffix
59999         char; that is xstrtoumax's job (now that its bug is fixed).
60000         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
60001         INTMAX_MAX]: New macros.
60002         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
60003         TYPE_MAXIMUM): New macros.
60004         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
60005         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
60006         if overflow occurs, as it's what __strtol does and it's more useful
60007         in practice.
60008         (__xstrtol): If __strtol reports some error other than ERANGE,
60009         reflect it to the caller as LONGINT_INVALID.  If it reports
60010         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
60011         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
60012         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
60013         value.
60014         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
60015         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
60016         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
60017         [defined UINTMAX_MAX]: New macros.
60018
60019 2003-10-14  Bruno Haible  <bruno@clisp.org>
60020
60021         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
60022
60023 2003-10-14  Bruno Haible  <bruno@clisp.org>
60024
60025         * m4/sig_atomic_t: New file, from GNU gettext.
60026         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
60027
60028 2003-10-14  Bruno Haible  <bruno@clisp.org>
60029
60030         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
60031         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
60032         Also use volatile where needed.
60033
60034 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60035
60036         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
60037         Change maintainer from Bruno Haible to 'all'.
60038
60039 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60040
60041         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
60042
60043 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60044
60045         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
60046         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
60047         and define in terms of the other primitives.
60048         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
60049         (SIZE_MAX): Define if not already defined.
60050         (array_size_overflow): New function.
60051         (xalloc_die): Abort instead of exiting if 'error' returns.
60052         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
60053         (xmalloc, xrealloc): Use them.
60054         (xcalloc): Check for address arithmetic overflow.
60055         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
60056         a bit faster than strcpy.
60057
60058 2003-10-10  Simon Josefsson  <jas@extundo.com>
60059
60060         * modules/argp (Depends-on): Add restrict and strcase.
60061
60062 2003-10-10  Simon Josefsson  <jas@extundo.com>
60063
60064         * m4/argp.m4: Add AC_C_INLINE.
60065
60066 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60067
60068         Merge getpass from libc, plus a few fixes.
60069
60070         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
60071         Include <stdbool.h>.
60072         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
60073         __fsetlocking to empty.
60074         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
60075         do include <bits/libc-lock.h>.
60076         Do not include <fcntl.h>; not needed.
60077         [_LIBC]: Include <wchar.h>.
60078         (NOTCANCEL_MODE): New macro.
60079         (flockfile, funlockfile) [_LIBC]: New macros.
60080         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
60081         [!_LIBC]: New macros.
60082         (call_fclose): New function.
60083         (getpass): Use it.  Save tty stream separately; this simplifies the
60084         code and makes it more reliable if stdin happens to equal stdout.
60085         Invoke __fsetlocking on tty.
60086         Handle thread cancellation if needed.
60087         Namespace cleanup (use __tcgetattr, __getline).
60088         Use bool for Booleans.
60089         [USE_IN_LIBIO]: Handle wide streams.
60090         [!_LIBC]: Unconditionally do the fseek, since we don't know what
60091         stream might go where.
60092
60093         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
60094         doesn't have to include <stdio.h> before us.
60095         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
60096         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
60097         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
60098         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
60099         if not declared, so that we can use getpass.c code from libc without
60100         rewriting it.
60101         (flockfile, ftrylockfile, funlockfile): New macros.
60102
60103 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60104
60105         * modules/getpass: Depend on stdbool.
60106
60107 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60108
60109         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
60110
60111 2003-10-07  Karl Berry  <karl@gnu.org>
60112
60113         * config/config.{guess,sub}: update from config.
60114
60115 2003-10-06  Jim Meyering  <jim@meyering.net>
60116             Bruno Haible  <bruno@clisp.org>
60117
60118         This lets translators provide better translations for the
60119         "Written by ..." part of --version output.
60120         * lib/version-etc.h: Include stdarg.h.
60121         (version_etc_copyright): Declare as readonly.
60122         (version_etc): Make this function variadic with a NULL-terminated list
60123         of author name strings.
60124         (version_etc_va): New declaration.
60125         * lib/version-etc.c: Include stdarg.h, stdlib.h.
60126         (version_etc_copyright): Declare as readonly.
60127         (version_etc_va): New function. Provide a different translatable string
60128         for each possible number of authors < 10. Abbreviate when there are 10
60129         authors or more.
60130         (version_etc): Make this function variadic. Call version_etc_va.
60131         Suggestion from Gary V. Vaughan.
60132
60133         * lib/long-options.h (parse_long_options): Change prototype: the
60134         authors string is moved to the end and becomes variadic.
60135         * lib/long-options.c: Include stdarg.h.
60136         (parse_long_options): Make this function variadic, too.
60137         Call version_etc_va, not version_etc.
60138
60139 2003-10-06  Bruno Haible  <bruno@clisp.org>
60140
60141         * modules/version-etc-2: Remove file.
60142         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
60143
60144 2003-10-06  Bruno Haible  <bruno@clisp.org>
60145
60146         * modules/fatal-signal: New file.
60147         * MODULES.html.sh (func_all_modules): Add fatal-signal.
60148
60149 2003-10-06  Bruno Haible  <bruno@clisp.org>
60150
60151         * m4/fatal-signal.m4: New file.
60152         * m4/signalblocking.m4: New file, from GNU gettext.
60153
60154 2003-10-06  Bruno Haible  <bruno@clisp.org>
60155
60156         * lib/version-etc-2.h: Remove file.
60157         * lib/version-etc-2.c: Remove file.
60158
60159 2003-10-06  Bruno Haible  <bruno@clisp.org>
60160
60161         * lib/fatal-signal.h: New file, from GNU gettext.
60162         * lib/fatal-signal.c: New file, from GNU gettext.
60163
60164 2003-10-05  Paul Eggert  <eggert@twinsun.com>
60165
60166         * README: Rework advice for preventing empty .o files.
60167         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
60168         not <sys/types.h>.
60169
60170 2003-10-04  Karl Berry  <karl@gnu.org>
60171
60172         * lib/argp*: update from libc.
60173
60174 2003-10-04  Karl Berry  <karl@gnu.org>
60175
60176         * config/config.{guess,sub}: update from config.
60177
60178 2003-10-02  Bruno Haible  <bruno@clisp.org>
60179
60180         * modules/lchown (Include): Add lchown.h.
60181         * modules/time_r (Include): Use "..." syntax.
60182         * modules/xgetdomainname (Include): Add xgetdomainname.h.
60183
60184 2003-10-01  Simon Josefsson  <jas@extundo.com>
60185
60186         * MODULES.html.sh (func_all_modules): Move gethostname from section
60187         'based on' to section 'lacking' POSIX:2001.
60188
60189 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
60190
60191         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
60192         to output mode on the same stream.
60193
60194 2003-09-29  Paul Eggert  <eggert@twinsun.com>
60195
60196         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
60197         Fix arg typo in previous patch.
60198
60199 2003-09-28  Jim Meyering  <jim@meyering.net>
60200
60201         * lib/error.c: Correct cpp indentation.
60202
60203 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60204
60205         * modules/free: New file.
60206
60207 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60208
60209         * m4/free.m4: New file.
60210
60211 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60212
60213         * lib/minmax.h (MIN, MAX)
60214         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
60215         Omit the special code that used __typeof__, since we worry that
60216         it could be more trouble than it's worth.  See:
60217         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
60218         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
60219
60220         * lib/free.c: New file.
60221
60222 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
60223
60224         Trivial fixes to Makefile.am parts of module listings.
60225         * modules/strstr: Append strstr.h to lib_SOURCES.
60226         * modules/strcase: Likewise, for strcase.h.
60227
60228 2003-09-27  Karl Berry  <karl@gnu.org>
60229
60230         * config/mkinstalldirs: update from automake.
60231
60232 2003-09-26  Paul Eggert  <eggert@twinsun.com>
60233
60234         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
60235         (error_tail): Do not loop, reallocating temporary buffer, since
60236         the output cannot contain more wide characters than the input
60237         contains bytes, the size must be big enough already.  This avoids
60238         one potential size overflow calculation.  Check for size overflow
60239         when calculating temporary buffer size.  Free temporary buffer
60240         when done, if it was allocated with malloc; this plugs a memory
60241         leak.  Remove casts from void * to pointers, that are no longer
60242         needed now that we're assuming C89 or better.
60243
60244         Merge error changes from glibc.
60245
60246         * lib/error.c, error.h: Update copyright notice header to match glibc.
60247         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
60248         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
60249         Disable cancellation while printing error.
60250         * lib/error.h: Prepend __ to parameter names.
60251
60252 2003-09-26  Jim Meyering  <jim@meyering.net>
60253
60254         * lib/error.c (error_tail): Move some declarations
60255         into inner scope where the local variables are used.
60256
60257 2003-09-26  Bruno Haible  <bruno@clisp.org>
60258
60259         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
60260         stpncpy().
60261         Don't define stpncpy through config.h; it's now done through stpncpy.h.
60262
60263 2003-09-26  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/stpncpy.h (gnu_stpncpy): New declaration.
60266         (stpncpy): Define as alias for gnu_stpncpy.
60267         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
60268
60269 2003-09-25  Simon Josefsson  <jas@extundo.com>
60270
60271         * lib/xgetdomainname.h: New file.
60272         * lib/xgetdomainname.c: New file.
60273
60274 2003-09-25  Simon Josefsson  <jas@extundo.com>
60275             Bruno Haible  <bruno@clisp.org>
60276
60277         * modules/getdomainname: New file.
60278         * modules/xgetdomainname: New file.
60279         * MODULES.html.sh (func_all_modules): Add getdomainname,
60280         xgetdomainname.
60281
60282 2003-09-25  Simon Josefsson  <jas@extundo.com>
60283             Bruno Haible  <bruno@clisp.org>
60284
60285         * m4/getdomainname.m4: New file.
60286
60287 2003-09-25  Simon Josefsson  <jas@extundo.com>
60288             Bruno Haible  <bruno@clisp.org>
60289
60290         * lib/getdomainname.h: New file.
60291         * lib/getdomainname.c: New file.
60292
60293 2003-09-25  Karl Berry  <karl@gnu.org>
60294
60295         * lib/argp-fmtstream.c, argp-help.c: update from libc.
60296
60297 2003-09-25  Karl Berry  <karl@gnu.org>
60298
60299         * config/install-sh: update from automake.
60300
60301 2003-09-25  Bruno Haible  <bruno@clisp.org>
60302
60303         * modules/version-etc-2: New file, from modules/version-etc with
60304         modifications.
60305         * MODULES.html.sh (func_all_modules): Add version-etc-2.
60306
60307 2003-09-25  Bruno Haible  <bruno@clisp.org>
60308
60309         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
60310         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
60311
60312 2003-09-24  Simon Josefsson  <jas@extundo.com>
60313
60314         * modules/xgethostname: Add xgethostname.h.
60315
60316 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60317
60318         * lib/linebuffer.c (freebuffer): Don't free the argument, just
60319         the buffer associated with the argument.  Bug reported by
60320         Simon Josefsson.
60321
60322 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60323
60324         * README: Document assumptions that 'int' is at least 32 bits
60325         wide, that integer arithmetic is 2's complement without overflow,
60326         that there are no holes in integer values, that adding sizes of
60327         two nonoverlapping objects can't overflow, and that all-bits-zero
60328         yields scalar zero.  Fix spelling and capitalization typos.
60329
60330 2003-09-19  Karl Berry  <karl@gnu.org>
60331
60332         * lib/argp.h: update from libc.
60333
60334 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60335
60336         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
60337         to avoid spurious warnings like "AC_RUN_IFELSE was called before
60338         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
60339
60340 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60341
60342         * gnulib-tool: Use "test -h", not "test -L", for portability
60343         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
60344         (tags_regexp): Remove, since \| doesn't conform to POSIX.
60345         (sed_extract_prog): Issue s commands one-by-one, rather than
60346         using \| in one s command.
60347
60348 2003-09-16  Paul Eggert  <eggert@twinsun.com>
60349
60350         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
60351         input error, instead of returning NULL the next time we are called
60352         (and therefore losing track of errno).
60353
60354 2003-09-16  Bruno Haible  <bruno@clisp.org>
60355
60356         * gnulib-tool (func_create_testdir): Warn about duplicated
60357         dependencies.
60358
60359 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60360
60361         * modules/argmatch, modules/fatal, modules/obstack,
60362         modules/xalloc, modules/xgethostname: Sort dependencies by
60363         importance, not alphabetically.
60364
60365 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60366
60367         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
60368         fails, so that the caller gets the proper errno.
60369
60370         * lib/readutmp.c (read_utmp): Likewise.
60371         Check for fstat error.  Close stream and free storage
60372         when failing.
60373
60374 2003-09-14  Karl Berry  <karl@gnu.org>
60375
60376         * config/srclist.txt (strdup.c): disable for c89 changes.
60377
60378 2003-09-14  Jim Meyering  <jim@meyering.net>
60379
60380         * lib/getloadavg.c: Correct cpp indentation.
60381         * lib/strdup.c: Likewise.
60382         * lib/vasnprintf.c: Likewise.
60383
60384 2003-09-14  Bruno Haible  <bruno@clisp.org>
60385
60386         * modules/fwriteerror: New file.
60387         * MODULES.html.sh (func_all_modules): Add fwriteerror.
60388
60389 2003-09-14  Bruno Haible  <bruno@clisp.org>
60390
60391         * lib/fwriteerror.h: New file.
60392         * lib/fwriteerror.c: New file.
60393
60394 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60395
60396         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
60397         modules/xgethostname, modules/xalloc: Depend on exit.
60398
60399 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60400
60401         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
60402
60403         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
60404         and AC_MINIX, too, so that their extensions are available.
60405
60406         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
60407         This macro has been superseded by gl_BACKUPFILE.
60408
60409         More patches to assume C89 or better.
60410
60411         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
60412
60413         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
60414         unconditionally.
60415         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
60416         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
60417         Include <string.h>, <stdlib.h> unconditionally.
60418         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
60419         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
60420         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
60421         headers or for string.h.
60422         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
60423         or strtoul.
60424
60425         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
60426         headers.
60427         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
60428         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60429         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
60430         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
60431         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60432         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
60433         memcpy, memset.
60434         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
60435         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
60436         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
60437         strtol.
60438         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
60439         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
60440         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
60441         strtoul.
60442
60443 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60444
60445         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
60446         * lib/obstack.c [!defined _LIBC]: Likewise.
60447         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
60448         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
60449         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
60450
60451         More changes to assume C89 or better.
60452
60453         * lib/error.c (error_tail): Assume vprintf.
60454
60455         * lib/argmatch.c (getenv): Remove decl.
60456         * lib/progreloc.c (get_full_program_name): Define via prototype.
60457         * lib/setenv.c (clearenv): Likewise.
60458         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
60459         needed.
60460         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
60461         (malloc, memcpy): Remove decls.
60462         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
60463         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
60464         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60465         (memcpy): Remove macro.
60466         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
60467         (__P): Remove.  All uses removed.
60468         (PTR): Remove.  All uses changed to void *.
60469         (CHAR_BIT, NULL): Remove.
60470         (spaces, zeros, memset_space, memset_zero)
60471         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
60472         Remove.
60473         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
60474         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
60475         Define with prototype.
60476         Remove now-unnecessary prototype decl.
60477         (extra_args_spec): Assume ANSI C.  All uses changed.
60478         (extra_args_spec_iso): Remove.
60479         (my_strftime, emacs_strftimeu): Define via prototype.
60480         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
60481         unconditionally.
60482         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
60483         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
60484         (strtoul, strtol): Remove decls.
60485         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
60486         LONG_MAX): Remove.
60487         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60488         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
60489         (LOCALE_PARAM_PROTO): New macro.
60490         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60491         (INTERNAL (strtol), strtol): Define with a prototype.
60492         (PARAMS): Remove.  All uses removed.
60493         * lib/tempname.c: Include <string.h> unconditionally.
60494         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60495         * lib/xgethostname.c (main): Define with a prototype.
60496         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60497         Include <stdlib.h> unconditionally.
60498         (calloc, malloc, realloc, free): Remove decls.
60499         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60500         Include <stdlib.h> unconditionally.  Sort include file names.
60501         (strtod): Remove.
60502         (xstrtod): Define with a prototype.
60503         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60504         (strtol, strtoul): Remove decls.
60505
60506 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60507
60508         More patches to assume C89 or better.
60509         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60510         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60511         string.h, memchr, STDC_HEADERS.
60512
60513 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60514
60515         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60516         Include <stdlib.h>, <string.h> unconditionally.
60517         Remove now-unnecessary cast to char *.
60518         * lib/strnlen.c: Include <string.h> unconditionally.
60519         * lib/yesno.c (yesno): Define with a prototype.
60520
60521 2003-09-11  Bruno Haible  <bruno@clisp.org>
60522
60523         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60524
60525 2003-09-10  Jim Meyering  <jim@meyering.net>
60526
60527         * lib/error.c: Correct indentation of cpp directives.
60528
60529 2003-09-10  Bruno Haible  <bruno@clisp.org>
60530
60531         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60532         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60533         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60534         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60535         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60536         <stdlib.h> and <string.h> checks.
60537         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60538         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60539
60540 2003-09-10  Bruno Haible  <bruno@clisp.org>
60541
60542         * lib/strcspn.c: Include <string.h> unconditionally.
60543         * lib/strpbrk.c: Include <string.h> unconditionally.
60544         * lib/strstr.c: Include <string.h> unconditionally.
60545         * lib/unicodeio.c: Include <string.h> unconditionally.
60546         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60547         * lib/unsetenv.c: Likewise.
60548         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60549         * lib/yesno.c: Include <stdlib.h> unconditionally.
60550         (rpmatch): Add prototype.
60551
60552 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60553
60554         More patches to assume C89 or better.
60555         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60556         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60557         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60558         or for string.h.
60559         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60560         stdlib.h.
60561         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60562         C headers.
60563         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60564         string.h.
60565         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60566         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60567         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60568         or for string.h.
60569         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60570         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60571         C headers.
60572         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60573         memcpy.
60574         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60575         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60576         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60577         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60578         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60579         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60580         string.h, free.
60581         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60582         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60583         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60584         C headers, or for string.h.
60585         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60586         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60587         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60588         headers, memory.h, stdlib.h, string.h, strings.h.
60589         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60590         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60591         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60592         strchr.
60593         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60594         headers, memory.h, string.h.
60595         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60596         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60597         free.
60598         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60599         headers.
60600         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60601         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60602         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60603         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60604         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60605
60606 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60607
60608         More K&R removal.
60609
60610         * lib/acosl.c (main): Use a prototype.
60611         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60612         tanl.c: Likewise.
60613
60614         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60615
60616         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60617         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60618         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60619         with a prototype.
60620         * lib/getopt.c (const): Remove macro.
60621         Include <string.h> unconditionally.
60622         (my_index): Remove; all uses changed to strchr.
60623         (strlen): Remove decl.
60624         (exchange): Remove forward decl; no longer needed.
60625         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60626         Define with prototype.
60627         * lib/getopt1.c (const): Remove macro.
60628         (getopt_long, getopt_long_only, main): Define with prototype.
60629
60630         * lib/getugroups.c: Include <string.h> unconditionally.
60631
60632         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60633         (getusershell, setusershell, endusershell, readname, main):
60634         Define with prototypes.
60635
60636         * lib/group-member.c: Include group-member.h first.
60637         Include <stdlib.h> unconditionally.
60638
60639         * lib/hard-locale.c: Include hard-locale.h first.
60640         Include <stdlib.h>, <string.h> unconditionally.
60641
60642         * lib/hash.c (free, malloc): Remove decls.
60643         Include <stdlib.h> unconditionally.
60644
60645         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60646         (getenv): Do not declare.
60647
60648         * lib/idcache.c: Include <string.h> unconditionally.
60649
60650         * lib/long-options.c: Include long-options.h first, to test interface.
60651         Include <stdlib.h> unconditionally.
60652
60653         * lib/makepath.c: Include makepath.h first, to test interface.
60654         Include <stdlib.h> and <string.h> unconditionally.
60655
60656         * lib/linebuffer.c: Include <stdlib.h>.
60657         (free): Remove decl.
60658
60659         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60660         stddef.h. rpl_malloc returns void *, not char *.
60661         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60662         prototype.
60663
60664         * lib/md5.h: Include <limits.h> unconditionally.
60665         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60666         (__P): Remove; all uses removed.
60667         * lib/md5.c: Include "md5.h" first.
60668         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60669         md5_buffer, md5_process_bytes, md5_process_block):
60670         Define with prototypes.
60671         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60672         * lib/sha.c: Include "sha.h" first.
60673         Include <stdlib.h>, <string.h> unconditionally.
60674
60675         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60676         * lib/memcmp.c (__ptr_t): Likewise.
60677         * lib/memrchr.c (__ptr_t): Likewise.
60678         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
60679         Include <string.h> unconditionally.
60680         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
60681         * lib/memchr.c: Include <stdlib.h> unconditionally.
60682         * lib/memchr.c (LONG_MAX): Remove.
60683         * lib/memrchr.c (LONG_MAX): Likewise.
60684         * lib/memchr.c (__memchr): Define via a prototype.
60685         * lib/memrchr.c (__memrchr): Likewise.
60686         * lib/memcmp.c (__P): Remove, and remove all uses.
60687         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
60688         Remove forward decls; no longer needed.
60689         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
60690         Use types required by C89 in prototype.
60691
60692         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
60693         * lib/savedir.c: Likewise.
60694         * lib/mkdir.c (free): Remove decl.
60695         * lib/rmdir.c (rmdir): Define with a prototype.
60696         * lib/savedir.c: Include savedir.h first, to test interface.
60697
60698         * lib/mktime.c (STDC_HEADERS): Remove.
60699         Include <stdlib.h>, <string.h> unconditionally.
60700
60701         * lib/modechange.c: Include <stdlib.h> unconditionally.
60702         (malloc): Remove decl.
60703
60704         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
60705         (free): Remove decl.
60706
60707         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
60708         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
60709         (This type really should be intptr_t, but that's a C99ism.)
60710         (_obstack_memcpy): Remove: all uses changed to memcpy.
60711         Include <string.h> unconditionally.
60712         (struct obstack): Assume __STDC__ for types of members
60713         chunkfun, freefun, extra_arg.
60714         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
60715         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
60716         obstack_begin, obstack_specify_allocation,
60717         obstack_specify_allocation_with_arg, obstack_chunkfun,
60718         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
60719         Remove unprototyped decls and the macros that use them.
60720         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
60721         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
60722         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
60723         (defined __STDC__ && __STDC__)]:
60724         Remove nonprototyped code.
60725         Include <stdlib.h> unconditionally.
60726         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
60727         _obstack_allocated_p, _obstack_free, obstack_free,
60728         _obstack_memory_used, print_and_abort):
60729         Define using prototypes.
60730         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
60731         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
60732         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
60733         obstack_next_free, obstack_object_size, obstack_room) [0]:
60734         Remove unused, unprototyped code.
60735
60736         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
60737
60738         * lib/physmem.c (physmem_total, physmem_available, main): Define
60739         with prototypes.
60740
60741         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
60742         (main): Define with a prototype.
60743
60744         * lib/posixver.c (getenv): Remove decl.
60745
60746         * lib/putenv.c (malloc): Returns void *, not char *.
60747         Include <string.h> unconditionally.
60748         (strchr, memcpy, NULL): Do not define.
60749
60750         * lib/readtokens.c: Include readtokens.h first, to test interface.
60751         Include <stdlib.h>, <string.h> unconditionally.
60752         (init_tokenbuffer): Define with a prototype.
60753
60754         * lib/regex.c (PARAMS): Remove.  All uses removed.
60755         All uses of _RE_ARGS removed, too.
60756         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60757         unconditionally.
60758         (bzero): Assume memset exists.
60759         (memcmp, memcpy, NULL): Remove.
60760         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
60761         char, or assignments to local vars of type signed char.
60762         (init_syntax_once, PREFIX(extract_number_and_incr),
60763         PREFIX(print_partial_compiled_pattern),
60764         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
60765         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
60766         PREFIX(regex_grow_registers), PREFIX(regex_compile),
60767         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
60768         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
60769         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
60770         wcs_compile_range, byte_compile_range, truncate_wchar,
60771         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
60772         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
60773         count_mbs_length, wcs_re_match_2_internal,
60774         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
60775         PREFIX(alt_match_null_string_p),
60776         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
60777         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
60778         regfree, PREFIX(extract_number)): Define with prototype.  Remove
60779         now-unnecessary declaration, if any.
60780         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
60781         regcomp, regexec):
60782         Remove now-unnecessary casts among pointer types.
60783         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
60784
60785         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
60786         (free): Remove decl.
60787
60788         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
60789
60790         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
60791         (free): Remove decl.
60792
60793         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
60794         * lib/xgetcwd.c: Likewise.
60795
60796         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
60797         (free): Remove decl.
60798
60799         * lib/strchrnul.c (strchrnul): Define with a prototype.
60800         Fix bug: c_in was not converted to char before searching.
60801
60802         The following changes are not K&R related:
60803
60804         * lib/group-member.h: Include <sys/types.h>, so that this file is
60805         self-contained.
60806         * lib/makepath.h: Likewise.
60807
60808         * lib/getusershell.c (readname, default_index, line_size, readname):
60809         Use size_t, not int, for sizes.
60810         (readname): If the size overflows, report an error instead of
60811         looping forever.
60812
60813 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60814
60815         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
60816         libc.
60817
60818 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60819
60820         * README: New section: portability guidelines.
60821
60822 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60823
60824         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
60825         C89 spec.
60826
60827 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60828
60829         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
60830
60831 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60832
60833         Assume C89 or better; remove K&R cruft.
60834         A few of these changes were first proposed by Derek Robert Price
60835         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
60836
60837         * lib/addext.c: Include <string.h> unconditionally.
60838         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
60839         Don't declare getenv or malloc.
60840
60841         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
60842         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
60843         (NULL): Remove.
60844         (find_stack_direction, alloca): Use prototypes.
60845
60846         * lib/atexit.c (atexit): Define using a prototype.
60847
60848         * lib/basename.c, dirname.c, stripslash.c:
60849         Include <string.h> unconditionally.
60850
60851         * lib/bcopy.c: Include <stddef.h>.
60852         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
60853
60854         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
60855
60856         * lib/error.h (error, error_at_line, error_print_progname)
60857         [! (defined (__STDC__) && __STDC__)]: Remove decls.
60858         * lib/error.c: Include error.h first, to check interface.
60859         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60860         (VA_START): Remove; all uses changeed to va_start.
60861         (exit, strerror): Remove decls.
60862         (error_print_progname): Prototype uncondionally.
60863         Don't include <errno.h>; no longer needed.
60864         (private_strerror): Remove.
60865         (error_tail): Always define.
60866         (error, error_at_line): Assume C89 or better; always use prototypes.
60867         * lib/fatal.c: Include "fatal.h" first, to test interface.
60868         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60869         (VA_START): Remove; all uses changed to va_start.
60870         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
60871         this case.
60872         (exit): Remove decl.
60873         (fatal): Prototype unconditionally.  Assume va_start works.
60874         Abort at end, to pacify gcc.
60875
60876         * lib/euidaccess.c (main): Define with a prototype.
60877
60878         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
60879
60880         * lib/exitfail.c: Include <stdlib.h> unconditionally.
60881
60882         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
60883         prototypes.
60884         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
60885         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
60886         (getenv): Remove decl.
60887         (fnmatch): Define using a prototype.
60888         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
60889         (FCT): Define using a prototype.
60890
60891         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
60892
60893         * lib/gethostname.c: Include <stddef.h>.
60894         (gethostname): Define with prototype.  Length is size_t, not int.
60895
60896 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60897
60898         Assume C89 or better; remove K&R cruft.
60899         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
60900         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
60901         string.h, getenv, malloc.
60902         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
60903         headers.
60904         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
60905         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
60906         do not check for strerror.
60907         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
60908         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
60909         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
60910         do not check for doprnt or vprintf.
60911         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
60912         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
60913
60914 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60915
60916         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
60917         getversion.c should have been removed then, but was accidentally
60918         preserved.
60919
60920         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
60921         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
60922
60923 2003-09-08  Karl Berry  <karl@gnu.org>
60924
60925         * config/config.sub, config.guess, srclistvars.sh: update from savannah
60926                 config, forget about prep.
60927
60928         * config/depcomp, missing: update from automake.
60929
60930 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60931
60932         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
60933         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60934
60935 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60936
60937         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
60938         copy_tm_result.  Bug reported by Simon Josefsson in
60939         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60940
60941 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60942
60943         * m4/time_r.m4: New file.
60944         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
60945         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
60946         is. Check for timegm declaration.
60947         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
60948         Do not check for gmtime_r.
60949         Replace mktime if __mktime_internal does not exist and if mktime
60950         hasn't been replaced already.
60951
60952 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60953
60954         * lib/time_r.c, lib/time_r.h: New files.
60955
60956         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
60957         __localtime_r.
60958         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
60959         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
60960
60961         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
60962         __gmtime_r.
60963         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
60964         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
60965         Include <time_r.h>.
60966
60967         * lib/timegm.c: Switch to glibc implementation, with the following
60968         changes:
60969         [defined HAVE_CONFIG_H]: Include <config.h>.
60970         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
60971         (__mktime_internal) [!defined _LIBC]: New decl.
60972         (__gmtime_r) [!defined _LIBC]: New macro and function.
60973         (timegm): Use a prototype, since gnulib assumes C89.
60974         Do not bother declaring tmp to be const, as it's not really usefu.
60975         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
60976         (timegm): Declare only if HAVE_DECL_TIMEGM.
60977
60978 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60979
60980         * MODULES.html.sh (func_all_modules): Add time_r.
60981         * modules/time_r: New file.
60982         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
60983         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
60984
60985 2003-09-03  Paul Eggert  <eggert@twinsun.com>
60986
60987         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
60988         Bug reported by Lute Kamstra in
60989         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
60990
60991         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
60992         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
60993         course with correspondingly smaller numbers for tomorrow and
60994         yesterday.  From Tadayoshi Funaba.  Originally installed into
60995         sh-utils on 1999-08-07, but the patch got lost (I guess during the
60996         coreutils merge?).
60997
60998 2003-08-31  Simon Josefsson  <jas@extundo.com>
60999
61000         * modules/timegm: New file.
61001         * MODULES.html.sh (func_all_modules): Add timegm.
61002
61003 2003-08-31  Simon Josefsson  <jas@extundo.com>
61004
61005         * m4/timegm.m4: New file.
61006
61007 2003-08-31  Simon Josefsson  <jas@extundo.com>
61008
61009         * lib/timegm.h: New file.
61010         * lib/timegm.c: New file.  Based on
61011         wget-1.8.2/src/http.c:mktime_from_utc.
61012
61013 2003-08-31  Karl Berry  <karl@gnu.org>
61014
61015         * lib/argp.h: update from libc.
61016
61017 2003-08-28  Bruno Haible  <bruno@clisp.org>
61018
61019         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
61020         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
61021         followed by '#define fnmatch fnmatch_posix' gives an error.
61022
61023 2003-08-28  Bruno Haible  <bruno@clisp.org>
61024
61025         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
61026         warning on QNX, which defines O_BINARY to 000000.
61027
61028 2003-08-27  Jim Meyering  <jim@meyering.net>
61029
61030         * m4/mkstemp.m4: Require that the system mkstemp be able to create
61031         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
61032         would fail after 32.  Reported by Danny Levinson.  Details here:
61033         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
61034
61035 2003-08-24  Bruno Haible  <bruno@clisp.org>
61036
61037         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
61038         MSVC7 <stdio.h> is included later.
61039
61040 2003-08-22  Simon Josefsson  <jas@extundo.com>
61041
61042         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
61043
61044 2003-08-20  Karl Berry  <karl@gnu.org>
61045
61046         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
61047
61048 2003-08-20  Bruno Haible  <bruno@clisp.org>
61049
61050         * modules/progname: New file.
61051         * MODULES.html.sh (func_all_modules): Add progname.
61052
61053 2003-08-20  Bruno Haible  <bruno@clisp.org>
61054
61055         * lib/progname.h: New file, from GNU gettext.
61056         * lib/progname.c: New file, from GNU gettext.
61057         * lib/progreloc.c: New file, from GNU gettext.
61058
61059 2003-08-19  Jim Meyering  <jim@meyering.net>
61060
61061         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
61062         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
61063
61064 2003-08-19  Bruno Haible  <bruno@clisp.org>
61065
61066         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
61067         more.
61068
61069 2003-08-19  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/xstrdup.c: Assume <string.h> exists.
61072
61073 2003-08-18  Paul Eggert  <eggert@twinsun.com>
61074
61075         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
61076         in makefile rules.
61077
61078 2003-08-18  Jim Meyering  <jim@meyering.net>
61079
61080         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
61081         * m4/lib-ld.m4: Likewise.
61082
61083 2003-08-18  Jim Meyering  <jim@meyering.net>
61084
61085         * lib/setenv.h: Indent nested cpp directive.
61086         * lib/vasnprintf.c: Remove trailing blanks.
61087
61088 2003-08-17  Simon Josefsson  <jas@extundo.com>
61089
61090         * modules/xstrndup: New file.
61091         * MODULES.html.sh (func_all_modules): Add xstrndup.
61092
61093 2003-08-17  Simon Josefsson  <jas@extundo.com>
61094
61095         * modules/argp: Fix autoconf macro name. Add more dependencies.
61096
61097 2003-08-17  Simon Josefsson  <jas@extundo.com>
61098
61099         * m4/xstrndup.m4: New file.
61100
61101 2003-08-17  Simon Josefsson  <jas@extundo.com>
61102
61103         * m4/argp.m4: New file.
61104
61105 2003-08-17  Simon Josefsson  <jas@extundo.com>
61106             Bruno Haible  <bruno@clisp.org>
61107
61108         * lib/xstrndup.h: New file.
61109         * lib/xstrndup.c: New file.
61110
61111 2003-08-17  Bruno Haible  <bruno@clisp.org>
61112
61113         * modules/strndup (Files, Include): Add lib/strndup.h.
61114
61115 2003-08-17  Bruno Haible  <bruno@clisp.org>
61116
61117         * modules/euidaccess (Files): Add lib/euidaccess.h.
61118
61119 2003-08-17  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/strndup.h: New file.
61122
61123 2003-08-17  Bruno Haible  <bruno@clisp.org>
61124
61125         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
61126         like AC_GNU_SOURCE.
61127         * modules/extensions (configure.ac): Comment out the invocation of
61128         gl_USE_SYSTEM_EXTENSIONS.
61129
61130 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61131
61132         Merges from coreutils, etc.
61133         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
61134         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
61135         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
61136         fixing a typo.
61137         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
61138         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
61139
61140 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61141
61142         Document merge from coreutils.
61143         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
61144         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
61145         * modules/utime: Add m4/utimes-null.m4.
61146
61147 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61148
61149         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
61150         space, undoing this 2003-08-12 change:
61151         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61152
61153 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61154
61155         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
61156         strtoul.c from libc, undoing this 2003-08-12 change:
61157         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61158
61159 2003-08-16  Jim Meyering  <jim@meyering.net>
61160
61161         Merges from coreutils.
61162         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
61163         prefix.  Adjust cache variables similarly.  Create 500 rather than
61164         just 300 files, to exercise bug on Darwin6.5, too.
61165         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
61166         $missing_dir.
61167         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
61168         AM_SYS_POSIX_TERMIOS.
61169         Reported by mkc@mathdogs.com.
61170         Also change use of $am_cv_sys_posix_termios
61171         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
61172         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
61173         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
61174         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
61175         in /proc/mounts until it finds one with matching device number.  This
61176         is unnecessary when the FILE argument *is* a mount point.  No stat call
61177         is necessary in that case.  So, disable the statvfs-testing code on
61178         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
61179         as RedHat bug# 84846.
61180         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61181         to 1MB, so as not to render systems with no stack size limit (e.g.,
61182         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61183         Include <unistd.h>.  On some systems,
61184         it is required for the definition of _SC_PAGESIZE.
61185
61186 2003-08-16  Jim Meyering  <jim@meyering.net>
61187
61188         Merge from coreutils.
61189         * lib/xstrtoimax.c: #else #if -> #elif.
61190         * lib/xstrtoumax.c: Likewise.
61191
61192 2003-08-16  Jim Meyering  <jim@meyering.net>
61193
61194         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
61195         * m4/utimes.m4: Removed.
61196         * m4/utimes-null.m4: Renamed from utimes.m4.
61197
61198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61199         to 1MB, so as not to render systems with no stack size limit (e.g.,
61200         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61201         Include <unistd.h>.  On some systems,
61202         it is required for the definition of _SC_PAGESIZE.
61203
61204 2003-08-16  Jim Meyering  <jim@meyering.net>
61205         and Paul Eggert  <eggert@cs.ucla.edu>
61206
61207         Merges from coreutils, etc.
61208
61209         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
61210         using the latest version from cvs.  This avoids problems with #line
61211         directives using a vendor (Sun) compiler.
61212         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
61213         Don't set GETGROUPS_LIB here; now it's
61214         done via getgroups.m4's wrapper function.
61215         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
61216         rather than just in sh-util/configure.in, so that the
61217         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
61218         same.
61219         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
61220         AC_FUNC_GETLOADAVG where to find getloadavg.c.
61221         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
61222         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
61223         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
61224         Remove code that is now done by the newly-required macros.
61225         Append $(EXEEXT) to DF_PROG.
61226         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
61227         Do not invoke or require the following here,
61228         since prereq.m4 or some gnulib .m4 now does this for us:
61229         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
61230         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
61231         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
61232         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
61233         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
61234         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
61235         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
61236         AC_FUNC_OBSTACK.
61237         Do not replace the following functions, as this is now the job
61238         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
61239         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
61240         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
61241         atexit getpass, strdup, getpagesize.
61242         Replace 'raise'.
61243         Do not check for the following functions, as this is now the job
61244         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
61245         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
61246         setregid.
61247         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
61248         Check for sys/sysctl.h.
61249         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
61250         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
61251         of checking for ssize_t ourselves.
61252
61253         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
61254         Require every macro that gnulib/modules/* suggests for us.
61255         (jm_PREREQ_ADDEXT): New macro.
61256         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
61257         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
61258
61259         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
61260         (gl_PHYSMEM): Use it.
61261         Also check for `table' function.
61262         Check for new headers and functions.
61263         Add check for sys/sysmp.h.
61264         With suggestions from Kaveh Ghazi.
61265         Ignore headers that are present but cannot be compiled.  This
61266         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
61267         C 5.4.
61268
61269 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61270
61271         Document merge from coreutils.
61272         * modules/userspec: Depend on posixver.
61273         * modules/strftime: Depend on tzset.
61274
61275 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61276
61277         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
61278         rather than tab, after '#' in shell-script copyright notices.
61279         Suggested by Bruno Haible.
61280
61281 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61282
61283         * config/srclist-update: Use three spaces, rather than tab, after '#'
61284         in shell-script copyright notices.  Suggested by Bruno Haible.
61285         Remove unnecessary parenthesization in regular expression.
61286
61287 2003-08-15  Jim Meyering  <jim@meyering.net>
61288
61289         Merge from coreutils.
61290         * lib/xgethostname.c: Include <stdlib.h>.
61291         (xghostname): Don't exit for anything other than memory-related
61292         failure; just return NULL.
61293         * lib/userspec.c: Include "posixver.h".
61294         (parse_user_spec): Accept `.' as a separator only
61295         in pre-POSIX-200112 mode.
61296         * lib/strtoimax.c: Use #elif rather than #else #if.
61297         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
61298         Remove function, now that we can rely on a working tzset function.
61299         [!_LIBC]: Ensure that the required autoconf test has been run.
61300         [!defined _NL_CURRENT && HAVE_STRFTIME]:
61301         Use underlying_strftime for %r.
61302         * lib/sha.c: Merge in some clean-up and optimization changes from
61303         glibc.
61304         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
61305         Ensure that it is a multiple of 64.
61306         Rearrange loop exit tests so as to avoid performing an
61307         additional fread after encountering an error or EOF.
61308         * lib/realloc.c: Update copyright date.
61309
61310 2003-08-15  Jim Meyering  <jim@meyering.net>
61311         and Paul Eggert  <eggert@twinsun.com>
61312
61313         Merge from coreutils.
61314         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
61315         member but strut utmpx does not.  Needed for AIX 4.3.3.
61316         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
61317
61318 2003-08-15  Jim Meyering  <jim@meyering.net>
61319         and Paul Eggert  <eggert@cs.ucla.edu>
61320
61321         Merges from coreutils, etc.
61322         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
61323         Require gl_FUNC_TZSET_CLOBBER.
61324         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
61325         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
61326         members.
61327
61328 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61329
61330         Help the merge from coreutils.
61331         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
61332         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
61333         * m4/tzset.m4: Use it too.
61334
61335 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61336
61337         * modules/tzset: New file.
61338
61339 2003-08-14  Jim Meyering  <jim@meyering.net>
61340
61341         Merges from coreutils.
61342         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
61343         variable names, rather than @FNMATCH_H@.
61344         * modules/alloca: Likewise for $(ALLOCA_H).
61345
61346         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
61347         the three copies of the literal target, `fnmatch.h'.
61348         * modules/alloca (alloca.h): Likewise.
61349
61350 2003-08-14  Jim Meyering  <jim@meyering.net>
61351
61352         Merge from coreutils.
61353         * m4/tzset.m4: New file.
61354         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
61355         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
61356         otherwise, AIX 5.1 systems would end up using the latter.
61357         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
61358         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
61359         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
61360         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
61361
61362 2003-08-14  Jim Meyering  <jim@meyering.net>
61363
61364         Merge from coreutils.
61365         * lib/obstack.h: Whitespace changes.
61366         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
61367         and xcalloc return values.
61368         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
61369         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
61370         hang on OSF/1 5.1 for DIR on both local and remote file systems.
61371         Reported by (and fix confirmed by) Nelson H. F. Beebe.
61372         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61373         error from mntctl.
61374         Use mntctl's return value to drive the entry-processing loop, since
61375         we can't rely on the value of the vmt_length member in the last
61376         entry.  On some systems doing so could result in exhausting
61377         virtual memory.  Based in part on a patch from Mike Jetzer.
61378
61379 2003-08-14  Jim Meyering  <jim@meyering.net>
61380         and Paul Eggert  <eggert@twinsun.com>
61381
61382         Merges from coreutils, plus other fixes.
61383         * lib/physmem.c: Merge in portability changes from gcc/libiberty
61384         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
61385         for credits and details.  Thanks to Kaveh Ghazi for helping
61386         to keep these files in sync.
61387         (ARRAY_SIZE): Define it.
61388         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
61389         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
61390         (memcasecmp): Don't assume size_t fits in unsigned int.
61391         Remove casts and duplicate code.
61392         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
61393         (memcpy): Remove definition.
61394         Merge in some clean-up and optimization changes from glibc.
61395         [BLOCKSIZE]: Move definition to top of file.
61396         Ensure that it is a multiple of 64.
61397         Rearrange loop exit tests so as to avoid performing an
61398         additional fread after encountering an error or EOF.
61399         * lib/md5.h (md5_uintptr): Define.
61400         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
61401         return to the initial working directory.  Preserve errno
61402         for caller.
61403         * lib/idcache.c: Include "xalloc.h".
61404         (xmalloc, xrealloc): Remove decls.
61405         (getuser): Remove casts no longer required in C89.
61406         * lib/human.c: Include stdio.h, for sprintf.
61407         * lib/group-member.c: Include "xalloc.h".
61408         (xmalloc, xrealloc): Remove decls.
61409         (get_group_info): Remove casts no longer required in C89.
61410         * lib/getusershell.c (readname): Remove casts no longer required in
61411         C89.
61412         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
61413         * lib/getline.c: Whitespace fix, from coreutils.
61414
61415 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61416
61417         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
61418         Check for isascii.
61419
61420         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61421         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61422         Undo previous (whitespace-only) change.
61423
61424 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61425
61426         * lib/exclude.c: Include <ctype.h>
61427         (IN_CTYPE_DOMAIN): New macro.
61428         (is_space): New fn.
61429         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
61430         and empty lines.
61431
61432         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61433         Undo previous (whitespace-only) change.
61434
61435 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61436
61437         * config/srclist-update: Change update back to the old behavior,
61438         leaving whitespace alone.  Use one 'sed' command rather than a
61439         pipeline.
61440         (fixlicense): Now a variable, not a function.
61441         (remove_trailing_blanks): Remove.
61442         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
61443         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61444         Undo previous (whitespace-only) change.
61445
61446 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61447
61448         Merge from coreutils.
61449         * modules/euidaccess: Add lib_SOURCES, include for new
61450         file euidaccess.h
61451
61452 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61453
61454         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61455         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61456         Normalize leading white space and remove trailing white space.
61457
61458         Merge from coreutils
61459         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
61460
61461         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
61462         0.12.1.  These files are now being upgraded automatically by
61463         ../config/srclist-update.
61464
61465 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61466
61467         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61468         Normalize leading white space and remove trailing white space.
61469         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
61470         notice, as per ../config/srclist-update.
61471
61472         Merge from coreutils.
61473         * lib/euidaccess.h: New file.
61474         * lib/euidaccess.c: Include it.
61475         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
61476         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
61477         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
61478
61479 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61480
61481         * config/srclist-update: Add copyright notice.
61482         (remove_id_lines, remove_trailing_blanks): New constants.
61483         (fixfile): Use them to normalize spacing a bit in copied files.
61484         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61485         Normalize leading white space and remove trailing white space.
61486
61487         * config/texinfo.tex: Sync with texinfo.
61488
61489         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61490         strtoul.c from libc, to merge coreutils whitespace changes.
61491
61492         * config/srclist.txt: Get the following m4 files from gettext:
61493         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61494         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61495         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61496         wint_t.m4.
61497
61498 2003-08-12  Karl Berry  <karl@gnu.org>
61499
61500         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61501         been made.
61502
61503 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61504
61505         * modules/gnu-source, m4/gnu-source.m4:
61506         Remove; we're assuming Autoconf 2.54 or later now.
61507         Suggested by Bruno Haible.
61508         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61509
61510 2003-08-11  Bruno Haible  <bruno@clisp.org>
61511
61512         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61513
61514 2003-08-11  Bruno Haible  <bruno@clisp.org>
61515
61516         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61517         (vasnprintf): Use it instead of wcslen.
61518
61519 2003-08-11  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61522         value to ensure that _Bool promotes to int. Use #define for _Bool when
61523         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61524
61525 2003-08-10  Karl Berry  <karl@gnu.org>
61526
61527         * lib/regex.h: update from libc (whitespace fix).
61528
61529 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61530
61531         Merge some files from coreutils.  These changes were
61532         originally made by Jim Meyering.
61533         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61534         many older Unixes require this.
61535         * lib/alloca.c (alloca): Remove cast to argument of free;
61536         no longer needed in C89.
61537         * lib/alloca_.h, regex.h: Fix white space to match
61538         what GNU indent does.
61539
61540 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61541
61542         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61543         apparently Emacs's Unicode mode got confused before my 2003-08-05
61544         checkin.
61545
61546 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61547
61548         * m4/extensions.m4: New file.
61549         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61550         Require gl_USE_SYSTEM_EXTENSIONS.
61551         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61552         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61553
61554 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61555
61556         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61557         * modules/extensions, modules/gnu-source: New files.
61558         * modules/timespec, modules/unlocked-io: Depend on extensions.
61559
61560 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61561
61562         * modules/restrict: New file.
61563         * MODULES.html.sh (func_all_modules): Add restrict.
61564         * modules/regex: Depend on restrict.
61565
61566 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61567
61568         * m4/restrict.m4: New file.
61569         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61570
61571 2003-08-07  Bruno Haible  <bruno@clisp.org>
61572
61573         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61574         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61575
61576 2003-08-07  Bruno Haible  <bruno@clisp.org>
61577
61578         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61579         makes the module 'getndelim2' compatible with the module 'getline'.
61580
61581 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61582
61583         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61584         byte with "\201" to avoid glitches when editing that source file
61585         with multi-gnome-terminal.
61586
61587 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61588
61589         * lib/bumpalloc.h: Remove.
61590
61591 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61592
61593         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61594         * modules/bumpalloc: Remove.
61595
61596 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61597
61598         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61599         GNU coding style.
61600
61601         Merge from coreutils.
61602         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61603         1. From glibc.
61604         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61605         from Karl Berry, implemented by Jim Meyering.
61606         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61607         from Dmitry V. Levin.
61608         Remove anachronistic cast of xrealloc.
61609         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61610         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61611         type. Otherwise, it wouldn't compile with at least /bin/cc on
61612         ymp-cray-unicos9.0.2.X.
61613         Combine two mostly-identical uses of alloca into one.
61614         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61615
61616 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61617
61618         [From Emacs.]
61619
61620         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61621         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61622         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61623         obsolete NLIST_NAME_UNION.
61624         [__GNU__]: Undef BSD and FSCALE.
61625         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61626
61627 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61628
61629         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61630         an enum type, so that it's guaranteed to promote to int.  See:
61631         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61632
61633 2003-08-03  Karl Berry  <karl@gnu.org>
61634
61635         * config/depcomp: update from automake.
61636
61637 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61638
61639         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61640         (strerror): Don't assume that a printable int fits in 14 bytes.
61641
61642 2003-07-31  Bruno Haible  <bruno@clisp.org>
61643
61644         * modules/getpass-gnu: New file.
61645         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61646
61647 2003-07-31  Bruno Haible  <bruno@clisp.org>
61648
61649         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61650
61651 2003-07-24  Karl Berry  <karl@gnu.org>
61652
61653         * config/missing: update from automake.
61654
61655 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61656             Bruno Haible  <bruno@clisp.org>
61657
61658         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61659         * lib/getline.c (getline, getdelim): Likewise.
61660         Remove _GNU_SOURCE define; now it's defined in config.h through
61661         m4/getline.m4.
61662
61663 2003-07-23  Karl Berry  <karl@gnu.org>
61664
61665         * config/config.sub: update from prep.
61666
61667 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61668
61669         * modules/xalloc (Depends-on): Add exitfail.
61670         * modules/xmemcoll: Likewise.
61671
61672 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61673
61674         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61675         over-parenthesization in macros.
61676
61677         Sync with coreutils.
61678
61679         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
61680         required by C99.
61681
61682         Use `exit_failure' for xalloc and xmemcoll instead of their own
61683         private exit-failure variables.
61684         * lib/xalloc.h (xalloc_exit_failure): Remove.
61685         * lib/xmalloc.c: Likewise.  Include exitfail.h.
61686         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
61687         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
61688         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
61689         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
61690
61691 2003-07-20  Jim Meyering  <jim@meyering.net>
61692
61693         * modules/closeout (Depends-on): Add exitfail.
61694         Suggestion from Bruno Haible.
61695
61696 2003-07-19  Karl Berry  <karl@gnu.org>
61697
61698         * config/config.sub: update from prep.
61699
61700 2003-07-18  Paul Eggert  <eggert@twinsun.com>
61701
61702         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
61703         Remove.
61704         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
61705         to test that it can stand by itself.  Include "exitfail.h".
61706         Clients should set exit_failure instead.
61707         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
61708
61709 2003-07-18  Bruno Haible  <bruno@clisp.org>
61710
61711         * modules/getndelim2: New file.
61712         * modules/getline: Share files with module getndelim2.
61713         * modules/getnline: Depend on getndelim2 instead of sharing files with
61714         it. Add getnline.c to lib_SOURCES.
61715         * MODULES.html.sh (func_all_modules): Add getndelim2.
61716
61717 2003-07-18  Bruno Haible  <bruno@clisp.org>
61718
61719         * m4/getndelim2.m4: New file.
61720         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
61721         invoke gl_PREREQ_GETNDELIM2.
61722         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
61723         gl_PREREQ_GETNDELIM2.
61724         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
61725         gl_GETNDELIM2.
61726
61727 2003-07-18  Bruno Haible  <bruno@clisp.org>
61728
61729         * lib/getndelim2.h: New file.
61730         * lib/getndelim2.c: Make into a module of its own. Include config.h,
61731         getndelim2.h.
61732         (getndelim2): Make non-static. Change return type to ssize_t.
61733         * lib/getline.h: Change argument names.
61734         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
61735         * lib/getnline.c: Include getndelim2.h.
61736
61737 2003-07-18  Andreas Schwab  <schwab@suse.de>
61738
61739         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
61740
61741 2003-07-17  Karl Berry  <karl@gnu.org>
61742
61743         * config/config.sub: update from prep.
61744
61745 2003-07-17  Bruno Haible  <bruno@clisp.org>
61746
61747         * modules/getnline: New file.
61748         * modules/getline: Add lib/getndelim2.c to source file list.
61749         * MODULES.html.sh (func_all_modules): Add getnline.
61750
61751 2003-07-17  Bruno Haible  <bruno@clisp.org>
61752
61753         * m4/getnline.m4: New file.
61754
61755 2003-07-17  Bruno Haible  <bruno@clisp.org>
61756
61757         * m4/Makefile.am.in: Remove file.
61758         * m4/Makefile.am: Remove file.
61759         * m4/Makefile.in: Remove file.
61760
61761 2003-07-17  Bruno Haible  <bruno@clisp.org>
61762
61763         * lib/getnline.h: New file.
61764         * lib/getnline.c: New file.
61765         * lib/getndelim2.c: New file, extracted from getline.c.
61766         (getndelim2): Renamed from getdelim2, with added nmax argument.
61767         * lib/getline.c: Include getndelim2.c.
61768         (getdelim2): Moved out to getndelim2.c.
61769         (getline, getdelim): Update.
61770
61771 2003-07-17  Bruno Haible  <bruno@clisp.org>
61772
61773         * lib/Makefile.am: Remove file.
61774         * lib/Makefile.in: Remove file.
61775
61776 2003-07-17  Bruno Haible  <bruno@clisp.org>
61777
61778         * configure.in: Remove file.
61779         * Makefile.in: Remove file.
61780
61781 2003-07-17  Bruno Haible  <bruno@clisp.org>
61782
61783         * MODULES.html.sh: Put the </BODY> right before </HTML>.
61784
61785 2003-07-16  Karl Berry  <karl@gnu.org>
61786
61787         * config/srclist-update: was running fixlicense twice, which caused
61788                 texinfo.tex to be nullified for some reason.  Simplify,
61789                 $gplsrc is no longer needed as far as I can see?
61790
61791 2003-07-16  Jim Meyering  <jim@meyering.net>
61792
61793         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
61794
61795 2003-07-15  Paul Eggert  <eggert@twinsun.com>
61796
61797         * config/srclist.txt: Get the following files from gettext-runtime/intl
61798         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
61799         ref-del.sin.  From Bruno Haible.
61800         * config/srclist-update (fixfile): Change grep pattern again, since the
61801         previous fix didn't work (there was another trailing $).  Use
61802         '[$]' to escape the $s.
61803
61804 2003-07-15  Karl Berry  <karl@gnu.org>
61805
61806         * lib/vasnprintf.c: update from gettext.
61807
61808 2003-07-15  Karl Berry  <karl@gnu.org>
61809
61810         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
61811         gets expanded when surrounded by '$'.
61812
61813 2003-07-15  Jim Meyering  <jim@meyering.net>
61814
61815         * modules/save-cwd: Don't depend on error.  From Derek Price.
61816
61817 2003-07-15  Jim Meyering  <jim@meyering.net>
61818
61819         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
61820
61821 2003-07-14  Simon Josefsson  <jas@extundo.com>
61822
61823         * modules/mempcpy: New file.
61824         * MODULES.html.sh (func_all_modules): Add mempcpy.
61825
61826 2003-07-14  Simon Josefsson  <jas@extundo.com>
61827
61828         * m4/mempcpy.m4: New file.
61829
61830 2003-07-14  Simon Josefsson  <jas@extundo.com>
61831
61832         * lib/mempcpy.h: New file.
61833         * lib/mempcpy.c: New file.
61834
61835 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61836
61837         * modules/getdate, modules/posixtm: Depend on mktime.
61838
61839 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61840
61841         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
61842         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
61843         unicodeio.c, unicodeio.h, unlocked-io.h:
61844         Switch from LGPL to GPL.
61845
61846 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61847
61848         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
61849         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
61850         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
61851         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
61852         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
61853         updated automatically by ../config/srclist-update.  This changes
61854         their license from LPGL to GPL.
61855
61856 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61857
61858         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
61859         assumed to refer to the root of the most recent stable gettext version.
61860         * config/srclistvars.sh: Add defaults for eggert.
61861         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
61862         Match "This program" as well as "The program".  This is needed
61863         for gettext.
61864
61865 2003-07-14  Jim Meyering  <jim@meyering.net>
61866
61867         Don't emit diagnostics.  Let callers do that.
61868         * lib/save-cwd.c: Don't include "error.h".
61869         (save_cwd): Don't call error.  Ensure that errno is valid
61870         when returning nonzero.
61871
61872         * lib/save-cwd.h (restore_cwd): Update prototype.
61873         * lib/save-cwd.c (restore_cwd): Remove two parameters.
61874         Simplify.  Don't call error upon failure.  Let callers do that.
61875         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
61876         when auditing is enabled.  But don't bother updating the #if.
61877
61878 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
61879
61880         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
61881         it breaks C++ compilation.
61882         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
61883
61884 2003-07-10  Simon Josefsson  <jas@extundo.com>
61885
61886         * modules/strchrnul (Makefile.am): Add strchrnul.h.
61887
61888 2003-07-10  Jim Meyering  <jim@meyering.net>
61889
61890         * m4/clock_time.m4: Remove trailing blank.
61891         * m4/intmax_t.m4: Likewise.
61892
61893 2003-07-10  Jim Meyering  <jim@meyering.net>
61894
61895         * lib/vasnprintf.c: Remove trailing blanks.
61896         Make cpp indentation consistent.
61897
61898 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61899
61900         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
61901         posixver.c, strftime.c, strnlen.c, strverscmp.c:
61902         Switch from LGPL to GPL.
61903
61904 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61905
61906         * config/srclist.txt: Sort sublists.  Add
61907         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
61908         that differ from gnulib for one reason or another; we'd like this list
61909         to be smaller but for now let's document what we have.
61910
61911 2003-07-08  Paul Eggert  <eggert@twinsun.com>
61912
61913         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
61914         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
61915         and sweeter "eval x=$x".
61916         * config/srclist.txt: Get lib/argp* from glibc.
61917
61918 2003-07-07  Paul Eggert  <eggert@twinsun.com>
61919
61920         * lib/mktime.c: Fix some boundary cases and remove need for floating
61921         point.
61922
61923         Issue a compile-time diagnostic if time_t is floating point, or if
61924         two's complement arithmetic is not in effect, or if arithmetic
61925         right shift does not propagate the sign.  These assumptions were
61926         all in the original code but they weren't checked.
61927
61928         (TIME_T_MIDPOINT, verify): New macros.
61929         (__isleap): Remove; it has integer overflow problems.
61930         (leapyear): New function, without those problems.
61931         (ydhms_tm_diff): Remove; splitting into two parts.
61932         (ydhms_diff): New function, containing the arithmetic part of
61933         the old ydhms_tm_diff function.  Issue a compile-time
61934         diagnostic if we are not using C99 integer division.
61935         Avoid casts when possible.
61936         (guess_time_tm): New function, containing the checking part of
61937         the old ydhms_tm_diff function.  Return the new value, rather than
61938         the difference between it and the old.  Accept a new argument T
61939         so that *T specifies the old value.  Check for overflow in the result.
61940
61941         (__mktime_internal): Use a time_t offset, not a long int offset.
61942         This undoes the 2003-06-04 change, which is no longer needed now
61943         that we have better overflow checking.
61944         (localtime_offset): Likewise.
61945
61946         (__mktime_internal): Avoid harmful overflow on hosts where time_t
61947         and long are 64-bit but int is only 32-bit.
61948         (ydhms_diff): Use long int to store year1 and yday1.
61949         Issue a compile-time diagnostic if long int is not wide enough.
61950
61951         (__mktime_internal): Use long int to store adjusted year and yday.
61952         Use plain C rather than preprocessor commands, if that doesn't
61953         affect efficiency.
61954         Check for overflow (and try to repair) after each probe
61955         rather than checking only at the very end.  This avoids some bugs
61956         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
61957         does not equal GMT offset at maximum time).
61958         Use integer to check for overflow rather than floating point; this
61959         is more portable to non-IEEE hosts, and is a tad faster.
61960         When we detect that we are oscillating between two values,
61961         don't check whether tm_isdst has the requested value, since
61962         we already know the answer.  When tm_isdst has the wrong value,
61963         use a different heuristic to find the right one, based on the
61964         extreme values actually observed in practice in tz2003a,
61965         rather than the (overly optimistic) "previous 3 calendar quarters".
61966
61967         (not_equal_tm, print_tm, check_result): Use "const T" rather than
61968         "T const" to accommodate glibc style.
61969         (check_result): Use less-confusing report format.  "long" -> "long int.
61970         (main): Likewise.
61971         Don't loop if the iteration overflows time_t.
61972         Allow a negative step in the iteration.
61973
61974 2003-07-06  Karl Berry  <karl@gnu.org>
61975
61976         * config/depcomp: update from automake.
61977         * config/config.sub: update from prep.
61978
61979 2003-07-03  Karl Berry  <karl@gnu.org>
61980
61981         * config/config.guess: update from prep.
61982
61983 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61984
61985         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
61986         xreadlink.c now includes it unconditionally.
61987
61988 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61989
61990         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
61991         having it depend on HAVE_SYS_TYPES_H.
61992
61993 2003-07-01  Bruno Haible  <bruno@clisp.org>
61994
61995         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
61996         <sys/types.h> should be sufficient.
61997         Reported by Paul Eggert.
61998
61999 2003-06-26  Karl Berry  <karl@gnu.org>
62000
62001         * config/depcomp: update from automake.
62002
62003 2003-06-26  Bruno Haible  <bruno@clisp.org>
62004
62005         * modules/human: Depend on module stdbool.
62006
62007 2003-06-25  Bruno Haible  <bruno@clisp.org>
62008
62009         * modules/readlink: New file.
62010         * modules/xreadlink: Depend on it.
62011         * MODULES.html.sh (func_all_modules): Add readlink.
62012
62013 2003-06-25  Bruno Haible  <bruno@clisp.org>
62014
62015         * m4/readlink.m4: New file.
62016
62017 2003-06-25  Bruno Haible  <bruno@clisp.org>
62018
62019         * lib/readlink.c: New file.
62020
62021 2003-06-22  Karl Berry  <karl@gnu.org>
62022
62023         * config/srclist.txt: update mkinstalldirs from automake.
62024         * config/mkinstalldirs: update.
62025
62026 2003-06-22  Bruno Haible  <bruno@clisp.org>
62027
62028         Portability to mingw32.
62029         * m4/ssize_t.m4: New file, from GNU gettext.
62030         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
62031         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
62032
62033 2003-06-22  Bruno Haible  <bruno@clisp.org>
62034
62035         * modules/safe-read: Add m4/ssize_t.m4.
62036         * modules/xreadlink: Add m4/ssize_t.m4.
62037
62038 2003-06-20  Bruno Haible  <bruno@clisp.org>
62039
62040         Assume C89, so PARAMS isn't needed.
62041         * lib/unicodeio.h (PARAMS): Remove.
62042         * lib/unicodeio.c: Don't use PARAMS.
62043
62044 2003-06-18  Karl Berry  <karl@gnu.org>
62045
62046         * config/config.{guess,sub}: update from prep.
62047
62048 2003-06-18  Jim Meyering  <jim@meyering.net>
62049
62050         Merge changes from coreutils.
62051         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
62052         Remove explicit declarations of xmalloc and realloc.
62053         Include xalloc.h.
62054         (read_utmp): Remove anachronistic cast of xmalloc.
62055
62056 2003-06-17  Paul Eggert  <eggert@twinsun.com>
62057
62058         Assume C89, so PARAMS isn't needed.
62059         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
62060         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
62061         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
62062         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
62063         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
62064         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
62065         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
62066         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
62067         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
62068         lib/xstrtod.h, lib/xstrtol.h: Likewise.
62069         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
62070         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
62071         no longer needed. Anyway, config.h should always be included before any
62072         other file.
62073
62074 2003-06-11  Simon Josefsson  <jas@extundo.com>
62075
62076         * modules/sysexits: New file.
62077         * MODULES.html.sh (func_all_modules): Add sysexits.
62078
62079 2003-06-11  Simon Josefsson  <jas@extundo.com>
62080
62081         * lib/sysexit_.h: New file.
62082
62083 2003-06-11  Derek Price  <derek@ximbiot.com>
62084
62085         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
62086         necessary.
62087
62088 2003-06-11  Bruno Haible  <bruno@clisp.org>
62089
62090         * m4/sysexits.m4: New file.
62091
62092 2003-06-10  Simon Josefsson  <jas@extundo.com>
62093
62094         * lib/argp.h: New file, from glibc.
62095         * lib/argp-ba.c: New file, from glibc.
62096         * lib/argp-eexst.c: New file, from glibc.
62097         * lib/argp-fmtstream.c: New file, from glibc.
62098         * lib/argp-fmtstream.h: New file, from glibc.
62099         * lib/argp-fs-xinl.c: New file, from glibc.
62100         * lib/argp-help.c: New file, from glibc.
62101         * lib/argp-namefrob.h: New file, from glibc.
62102         * lib/argp-parse.c: New file, from glibc.
62103         * lib/argp-pv.c: New file, from glibc.
62104         * lib/argp-pvh.c: New file, from glibc.
62105         * lib/argp-xinl.c: New file, from glibc.
62106
62107 2003-06-10  Simon Josefsson  <jas@extundo.com>
62108
62109         * modules/strchrnul: New file.
62110
62111 2003-06-10  Simon Josefsson  <jas@extundo.com>
62112
62113         * modules/argp: New file.
62114
62115 2003-06-10  Simon Josefsson  <jas@extundo.com>
62116
62117         * m4/strchrnul.m4: New file.
62118
62119 2003-06-10  Simon Josefsson  <jas@extundo.com>
62120
62121         * lib/strchrnul.h: New file.
62122         * lib/strchrnul.c: New file.
62123
62124 2003-06-10  Bruno Haible  <bruno@clisp.org>
62125
62126         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
62127
62128 2003-06-07  Karl Berry  <karl@gnu.org>
62129
62130         * config/config.{guess,sub}: update from prep.
62131
62132 2003-06-07  Jim Meyering  <jim@meyering.net>
62133
62134         * modules/strtod: Use $(...) notation, not @...@ for
62135         AC_REPLACE'd variables.
62136         * modules/localcharset: Likewise.
62137
62138 2003-06-07  Jim Meyering  <jim@meyering.net>
62139
62140         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
62141         in place of my name in the copyright comment.
62142         Remove definition and uses of __P.
62143
62144         From coreutils.
62145         * lib/stat.c: Don't declare xmalloc explicitly.
62146         Instead, include "xalloc.h".
62147         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
62148         xrealloc, and xcalloc return values.
62149         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
62150         Improve comment.
62151         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
62152
62153 2003-06-07  Bruno Haible  <bruno@clisp.org>
62154
62155         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
62156         avoid AC_CONFIG_LINKS.
62157         * modules/fnmatch (Makefile.am): Use explicit creation rule for
62158         fnmatch.h, to avoid AC_CONFIG_LINKS.
62159         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
62160
62161 2003-06-07  Bruno Haible  <bruno@clisp.org>
62162
62163         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
62164         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
62165         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62166         directory.
62167         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
62168         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62169         directory.
62170
62171 2003-06-06  Jim Meyering  <jim@meyering.net>
62172
62173         Merge from coreutils.
62174         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
62175         Consolidate declarations and initializations of *_base* locals.
62176
62177         Merge from coreutils.
62178         This avoids a core dump on systems without GNU putenv,
62179         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
62180         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
62181         (unsetenv): New static function, from GNU libc.
62182         (rpl_putenv): Use it.
62183
62184         * lib/modechange.c: Remove trailing blanks.
62185
62186         Merge from coreutils.
62187         * lib/fsusage.c: Remove declaration of statfs.
62188         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
62189
62190         * lib/posixtm.c: Include <stdbool.h> unconditionally.
62191
62192 2003-06-06  Jim Meyering  <jim@meyering.net>
62193
62194         * lib/stdbool_.h: Renamed from stdbool.h.in.
62195
62196 2003-06-06  Jim Meyering  <jim@meyering.net>
62197             Bruno Haible  <bruno@clisp.org>
62198
62199         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
62200         Adjust Makefile.am snippet not to redirect directly to target.
62201         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
62202
62203 2003-06-05  Paul Eggert  <eggert@twinsun.com>
62204
62205         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
62206         mismatch, look in future quarters as well as past.  This fixes a
62207         bug when processing fall-backwards gaps immediately after a long
62208         period of daylight-saving time.
62209
62210         * lib/mktime.c: Assume freestanding C89 or better.
62211         (HAVE_LIMITS_H): Remove.  Assume it's 1.
62212         (__P): Remove; not used.
62213         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
62214         (mktime, not_equal_tm, print_tm, check_result,
62215         main): Use prototypes.  Use const * where appropriate.
62216         (main): Fix typo in testing code that uncovered by above changes.
62217         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
62218
62219 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62220
62221         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
62222         locale.h, localeconv.  This merges changes from coreutils.
62223
62224         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
62225         It can be removed after the next Autoconf is released.
62226         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
62227         needed.
62228
62229 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62230
62231         * lib/mktime.c: Fix Debian bug 177940
62232         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
62233         (localtime_offset): Now long int, not time_t, because we want it
62234         to be guaranteed to be signed.  All uses changed.
62235         (__mktime_internal): If overflow would occur when adding offset,
62236         don't add it.
62237
62238         Merge 'human' changes from coreutils.  Rewrite to support
62239         locale-specific notations like thousands separators.
62240         * lib/human.c: Simplify authorship notice.
62241         Include human.h immediately after config.h.
62242         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
62243         <limits.h>: Do not include, since human.h does.
62244         (SIZE_MAX, UINTMAX_MAX): New macros.
62245         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
62246         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
62247         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
62248         (power_letter): Renamed from suffixes.
62249         (generate_suffix_backwards): Remove.
62250         (adjust_value): Now takes int style (because of human.h changes)
62251         and long double value (for greater precision on some platforms).
62252         (group_number): New function.
62253         (human_readable): Use it.  Use integer options, not enum.
62254         Put the options before the sizes in the arg list.
62255         Support all the new options.
62256         The old human_readable function has been removed;
62257         use inttostr.h instead.
62258         (human_readable, default_block_size, humblock):
62259         Use uintmax_t, not int, for block sizes.
62260         (human_readable_inexact, block_size_types): Remove.
62261         (block_size_opts): New constant.
62262         (human_options): Renamed from human_block_size, with new signature
62263         that allows block sizes up to UINTMAX_MAX.  All callers changed.
62264         * lib/human.h: Add copyright and authorship notice.
62265         Include <limits.h> and <stdbool.h> unconditionally.
62266         (PARAMS): Remove.  All uses removed.
62267         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
62268         (enum human_inexact_style): Remove tag; now a nameless enum.
62269         (human_floor, human_ceiling, human_round_to_even): Now have
62270         values 2, 0, 1 rather than -1, 1, 0.
62271         (human_group_digits, human_suppress_point_zero, human_autoscale,
62272         human_base_1024, human_SI, human_B): New constants.
62273         (human_readable_inexact, human_block_size): Remove.
62274         (human_readable): Size args are now uintmax_t, not int.
62275         (human_options): New decl.
62276
62277         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
62278         unnecessary now that we assume C89 or better.  This change
62279         imported from coreutils.
62280
62281         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62282         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
62283         in the 2003-05-30 sync from glibc.
62284
62285         .h files should stand alone, but we shouldn't include <sys/types.h>
62286         if we can get away with just <stddef.h>.
62287
62288         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
62289         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
62290         rather than <sys/types.h>, as we merely need size_t.
62291         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
62292         to get size_t.
62293         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
62294         Include <stdio.h>, to get FILE.
62295         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
62296         memcasecmp.h has included <stddef.h> and all we need is size_t.
62297         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
62298         our interface, instead of including <sys/types.h>
62299
62300 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62301
62302         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
62303         now, as glibc mktime is buggy on non-glibc systems.
62304
62305 2003-06-03  Karl Berry  <karl@gnu.org>
62306
62307         * config/config.sub: update from prep.
62308
62309 2003-06-02  Paul Eggert  <eggert@twinsun.com>
62310
62311         [from coreutils]
62312         Fix some minor time-related bugs with POSIX time arguments.
62313         Some valid time stamps were being rejected (notably -1, and
62314         time stamps before 1900 on 64-bit hosts).  And some invalid
62315         time stamps were being accepted, e.g. September 31.
62316
62317         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
62318         that we can return (time_t) -1 successfully.
62319         * lib/posixtm.c: Likewise.
62320         [HAVE_STDBOOL_H]: Include <stdbool.h>.
62321         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
62322         (t): Remove static var.
62323         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
62324         of static var.  All uses changed.
62325         (year): Do not reject years before 1900; they can occur with
62326         64-bit time_t.
62327         (posix_time_parse): Do not check for out-of-range components;
62328         that is now the caller's responsibility, since our checks were
62329         only approximations.
62330         (posixtime): Use mktime to check for out-of-range components,
62331         since it knows them exactly.
62332         If mktime returns (time_t) -1, check whether an error actually occurred
62333         by invoking localtime on -1.
62334         (main) [TEST_POSIXTIME]: Check for input data errors, and report
62335         posixtime failures better.
62336         Improve the test data (in comments only).
62337
62338 2003-06-02  Karl Berry  <karl@gnu.org>
62339
62340         * config/mkinstalldirs (version): new variable.
62341         (--version): new option.
62342         (usage): improve message.
62343
62344 2003-05-30  Karl Berry  <karl@gnu.org>
62345
62346         * lib/mktime.c: update from libc.
62347
62348 2003-05-30  Bruno Haible  <bruno@clisp.org>
62349
62350         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
62351         * config/config.rpath: Upgrade to gettext-0.12.1.
62352
62353 2003-05-30  Bruno Haible  <bruno@clisp.org>
62354
62355         * m4/gettext.m4: Upgrade to gettext-0.12.1.
62356         * m4/nls.m4: New file, from gettext-0.12.1.
62357         * m4/po.m4: New file, from gettext-0.12.1.
62358         * m4/progtest.m4: Upgrade to gettext-0.12.1.
62359
62360 2003-05-30  Bruno Haible  <bruno@clisp.org>
62361
62362         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
62363         * lib/localcharset.h: Likewise.
62364         * lib/localcharset.c: Likewise.
62365
62366 2003-05-29  Karl Berry  <karl@gnu.org>
62367
62368         * config/config.rpath: update from gettext.
62369
62370 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62371
62372         Assume the headers required for C89 freestanding compilers.
62373         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
62374         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
62375         * m4/human.m4 (gl_HUMAN): Likewise.
62376         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
62377         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
62378         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62379         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
62380         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62381         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
62382
62383 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62384
62385         Assume the headers required for C89 freestanding compilers.
62386         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
62387         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
62388         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
62389         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
62390         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
62391         define, since <limits.h> is guaranteed to do that.
62392         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
62393         * lib/exclude.c: Include <stdbool.h> unconditionally.
62394         * lib/tempname.c: Include <stddef.h> unconditionally.
62395         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
62396         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
62397         <stddef.h> does that.
62398         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
62399         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
62400         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
62401         needed.
62402         * lib/xstrtol.c: Likewise.
62403         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
62404         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
62405
62406         * lib/addext.c (addext): Use assignment rather than cast, to avoid
62407         warnings on some platforms.
62408
62409         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62410         arbitrarily.
62411
62412 2003-05-26  Jim Meyering  <jim@meyering.net>
62413
62414         Merge in a change from coreutils:
62415         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
62416         that is guaranteed to be `no'.  Use `no_such_member' to indicate
62417         that condition, rather than `-1' which is slightly misleading.
62418         Change the name of the cache variable to have the gl_ prefix.
62419         Prompted by a patch from Richard Dawe for DJGPP.
62420
62421 2003-05-24  Karl Berry  <karl@gnu.org>
62422
62423         * config/config.guess: update from prep.
62424
62425 2003-05-22  Karl Berry  <karl@gnu.org>
62426
62427         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
62428
62429 2003-05-20  Karl Berry  <karl@gnu.org>
62430
62431         * config/config.guess: update from prep.
62432
62433 2003-05-18  Karl Berry  <karl@gnu.org>
62434
62435         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
62436         might actually be set by the user.
62437
62438         * config/depcomp, install-sh, mdate-sh: update from automake.
62439
62440 2003-05-17  Bruno Haible  <bruno@clisp.org>
62441
62442         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
62443         invalid expansion for AC_EGREP_CPP.
62444         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62445         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62446         Suggested by Akim Demaille <akim@epita.fr> in
62447         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
62448
62449 2003-05-12  Jim Meyering  <jim@meyering.net>
62450
62451         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
62452         the space-padded-by-default conversion specifiers, %e, %k, %l.
62453
62454 2003-05-12  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
62457         the string is longer than 4 KB.
62458
62459 2003-05-11  Karl Berry  <karl@gnu.org>
62460
62461         * config/config.{guess,sub}: update from prep.
62462
62463 2003-05-09  Bruno Haible  <bruno@clisp.org>
62464
62465         * modules/error: Add m4/strerror_r.m4 to file list.
62466
62467 2003-05-03  Bruno Haible  <bruno@clisp.org>
62468
62469         Upgrade to Unicode-4.0.
62470         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
62471         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
62472         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
62473         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
62474         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
62475         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
62476         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
62477         Change width of U+E0100..U+E01EF from 1 to 0.
62478
62479 2003-04-25  Jim Meyering  <jim@meyering.net>
62480
62481         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
62482         of type size_t, not int.
62483
62484 2003-04-25  Bruno Haible  <bruno@clisp.org>
62485
62486         * lib/copy-file.c: Include <stddef.h>, for size_t.
62487
62488 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62489
62490         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62491         code which expansion is under static control.  Patch imported from
62492         Akim Demaille's patch to Bison; see
62493         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62494
62495 2003-04-14  Bruno Haible  <bruno@clisp.org>
62496
62497         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62498
62499 2003-04-11  Jim Meyering  <jim@meyering.net>
62500
62501         Merge changes from Coreutils.
62502
62503         2003-03-22  Jim Meyering  <jim@meyering.net>
62504
62505         * lib/strftime.c (widen): Cast alloca return value to proper type.
62506
62507         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62508
62509         From GNU libc.
62510         * lib/strftime.c (my_strftime): Handle very large width
62511         specifications for numeric values correctly.  Improve checks for
62512         overflow.
62513
62514         2003-01-19  Jim Meyering  <jim@meyering.net>
62515
62516         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62517         definitions.
62518         (nl_get_alt_digit) [! defined my_strftime]: Define.
62519         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62520         _nl_get_alt_digit and _nl_get_walt_digit.
62521
62522         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62523         libc. These changes have no effect outside of _LIBC.
62524
62525 2003-04-10  Bruno Haible  <bruno@clisp.org>
62526
62527         * modules/findprog: New file.
62528         * MODULES.html.sh (func_all_modules): Add it.
62529
62530 2003-04-10  Bruno Haible  <bruno@clisp.org>
62531
62532         * m4/findprog.m4: New file.
62533         * m4/eaccess.m4: New file.
62534
62535 2003-04-10  Bruno Haible  <bruno@clisp.org>
62536
62537         * lib/findprog.h: New file, from GNU gettext.
62538         * lib/findprog.c: New file, from GNU gettext.
62539
62540 2003-04-05  Jim Meyering  <jim@meyering.net>
62541
62542         Merge changes from Coreutils.
62543
62544         * lib/exclude.h (PARAMS): Remove definition and uses.
62545         * lib/exclude.c: Remove uses of `PARAMS'.
62546
62547         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62548         Add test-cases for DOS filenames. Declare program_name.
62549         (main): Set up program_name.  Patch by Rich Dawe.
62550
62551         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62552         error from mntctl.
62553         Use mntctl's return value to drive the entry-processing loop, since
62554         we can't rely on the value of the vmt_length member in the last
62555         entry.  On some systems doing so could result in exhausting
62556         virtual memory.  Based in part on a patch from Mike Jetzer.
62557
62558 2003-04-04  Bruno Haible  <bruno@clisp.org>
62559
62560         * modules/linebreak: New file.
62561         * MODULES.html.sh (func_all_modules): Add it.
62562
62563 2003-04-04  Bruno Haible  <bruno@clisp.org>
62564
62565         * m4/linebreak.m4: New file.
62566
62567 2003-04-04  Bruno Haible  <bruno@clisp.org>
62568
62569         * lib/linebreak.h: New file, from GNU gettext.
62570         * lib/linebreak.c: New file, from GNU gettext with slight
62571         modifications.
62572         * lib/lbrkprop.h: New file, from GNU gettext.
62573
62574 2003-04-03  Bruno Haible  <bruno@clisp.org>
62575
62576         * modules/utf8-ucs4: New file.
62577         * modules/utf16-ucs4: New file.
62578         * modules/ucs4-utf8: New file.
62579         * modules/ucs4-utf16: New file.
62580         * MODULES.html.sh (func_all_modules): Add them.
62581
62582 2003-04-03  Bruno Haible  <bruno@clisp.org>
62583
62584         * m4/utf-ucs4.m4: New file.
62585         * m4/ucs4-utf.m4: New file.
62586
62587 2003-04-03  Bruno Haible  <bruno@clisp.org>
62588
62589         * lib/utf8-ucs4.h: New file, from GNU gettext.
62590         * lib/utf16-ucs4.h: New file, from GNU gettext.
62591         * lib/ucs4-utf8.h: New file, from GNU gettext.
62592         * lib/ucs4-utf16.h: New file, from GNU gettext.
62593
62594 2003-04-02  Bruno Haible  <bruno@clisp.org>
62595
62596         * modules/binary-io: New file.
62597         * MODULES.html.sh (func_all_modules): Add it.
62598
62599 2003-04-02  Bruno Haible  <bruno@clisp.org>
62600
62601         * lib/binary-io.h: New file, from GNU gettext.
62602
62603 2003-04-01  Bruno Haible  <bruno@clisp.org>
62604
62605         * modules/pathname: New file.
62606         * MODULES.html.sh (func_all_modules): Add it.
62607
62608 2003-04-01  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/pathname.h: New file, from GNU gettext.
62611         * lib/concatpath.c: New file, from GNU gettext.
62612
62613 2003-03-30  Bruno Haible  <bruno@clisp.org>
62614
62615         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62616
62617 2003-03-30  Bruno Haible  <bruno@clisp.org>
62618
62619         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62620         function chown() doesn't exist.
62621
62622 2003-03-28  Bruno Haible  <bruno@clisp.org>
62623
62624         * modules/copy-file: New file.
62625         * MODULES.html.sh (func_all_modules): Add it.
62626
62627 2003-03-28  Bruno Haible  <bruno@clisp.org>
62628
62629         * m4/copy-file.m4: New file.
62630
62631 2003-03-28  Bruno Haible  <bruno@clisp.org>
62632
62633         * lib/copy-file.h: New file, from GNU gettext.
62634         * lib/copy-file.c: New file, from GNU gettext.
62635
62636 2003-03-18  Jim Meyering  <jim@meyering.net>
62637
62638         * lib/quote.c (quote_n): Fix typo in comment.
62639
62640 2003-03-18  Bruno Haible  <bruno@clisp.org>
62641
62642         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62643         checking.
62644         * m4/onceonly_2_57.m4: Likewise.
62645
62646 2003-03-17  Bruno Haible  <bruno@clisp.org>
62647
62648         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62649         (m4_quote): Remove macro.
62650         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62651
62652 2003-03-14  Jim Meyering  <jim@meyering.net>
62653
62654         Merge changes from Coreutils.
62655         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62656         to be const, in order to avoid warnings.
62657         (obstack_room): Likewise.
62658         (obstack_empty_p): Likewise.
62659
62660 2003-03-14  Bruno Haible  <bruno@clisp.org>
62661
62662         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62663         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62664
62665 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62666
62667         Merge changes from Bison.
62668         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62669         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62670         when compiling Bison 1.875's `bitset bset = obstack_alloc
62671         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62672         * lib/hash.c: Include <stdbool.h> unconditionally.
62673
62674 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62675
62676         * m4/onceonly.m4 (m4_quote): New macro.
62677         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
62678         Quote AC_FOREACH variable-expansions properly.
62679
62680 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62681
62682         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
62683
62684 2003-03-09  Paul Eggert  <eggert@twinsun.com>
62685
62686         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
62687         Reported by Bruce Becker; see:
62688         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
62689
62690 2003-03-03  Paul Eggert  <eggert@twinsun.com>
62691             Bruno Haible  <bruno@clisp.org>
62692
62693         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
62694         Reported by John Hughes, see
62695         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
62696
62697 2003-02-20  Bruno Haible  <bruno@clisp.org>
62698
62699         * MODULES.html.sh (func_all_modules): Add poll.
62700
62701 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62702
62703         * modules/poll: New file.
62704
62705 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62706
62707         * lib/poll_.h: New file.
62708         * lib/poll.c: New file.
62709
62710 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62711
62712         * m4/poll.m4: New file.
62713
62714 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62715
62716         * modules/mathl: New file.
62717
62718 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62719
62720         * lib/mathl.h: New file.
62721         * lib/acosl.c: New file.
62722         * lib/asinl.c: New file.
62723         * lib/atanl.c: New file.
62724         * lib/ceill.c: New file.
62725         * lib/cosl.c: New file.
62726         * lib/expl.c: New file.
62727         * lib/floorl.c: New file.
62728         * lib/frexpl.c: New file.
62729         * lib/ldexpl.c: New file.
62730         * lib/logl.c: New file.
62731         * lib/sincosl.c: New file.
62732         * lib/sinl.c: New file.
62733         * lib/sqrtl.c: New file.
62734         * lib/tanl.c: New file.
62735         * lib/trigl.c: New file.
62736         * lib/trigl.h: New file.
62737
62738 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62739
62740         * m4/mathl.m4: New file.
62741
62742 2003-02-18  Bruno Haible  <bruno@clisp.org>
62743
62744         * MODULES.html.sh (func_all_modules): Add mathl.
62745
62746 2003-02-17  Bruno Haible  <bruno@clisp.org>
62747
62748         * modules/mkdtemp: New module.
62749         * MODULES.html.sh (func_all_modules): Add it.
62750
62751 2003-02-17  Bruno Haible  <bruno@clisp.org>
62752
62753         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
62754
62755 2003-02-17  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/mkdtemp.h: New file, from GNU gettext.
62758         * lib/mkdtemp.c: New file, from GNU gettext.
62759
62760 2003-02-02  Jim Meyering  <jim@meyering.net>
62761
62762         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
62763         e.g. glibc-2.2.93.
62764
62765 2003-01-31  Bruno Haible  <bruno@clisp.org>
62766
62767         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
62768         'rpl_rename'.
62769         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
62770         'rpl_strnlen'.
62771         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
62772         'rpl_strtod'.
62773         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
62774         'rpl_utime'.
62775
62776 2003-01-31  Bruno Haible  <bruno@clisp.org>
62777
62778         * lib/rename.c: #undef rename before defining rpl_rename.
62779         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
62780
62781 2003-01-30  Bruno Haible  <bruno@clisp.org>
62782
62783         * modules/vasnprintf, modules/vasprintf: New modules.
62784         * MODULES.html.sh (func_all_modules): Add them.
62785
62786 2003-01-30  Bruno Haible  <bruno@clisp.org>
62787
62788         * m4/signed.m4: New file, from GNU gettext.
62789         * m4/longdouble.m4: New file, from GNU gettext.
62790         * m4/wchar_t.m4: New file, from GNU gettext.
62791         * m4/wint_t.m4: New file, from GNU gettext.
62792         * m4/vasnprintf.m4: New file.
62793         * m4/vasprintf.m4: New file.
62794
62795 2003-01-30  Bruno Haible  <bruno@clisp.org>
62796
62797         * lib/printf-args.h: New file, from GNU gettext.
62798         * lib/printf-args.c: New file, from GNU gettext.
62799         * lib/printf-parse.h: New file, from GNU gettext.
62800         * lib/printf-parse.c: New file, from GNU gettext.
62801         * lib/vasnprintf.h: New file, from GNU gettext.
62802         * lib/vasnprintf.c: New file, from GNU gettext.
62803         * lib/asnprintf.c: New file, from GNU gettext.
62804         * lib/vasprintf.h: New file, from GNU gettext with modifications.
62805         * lib/vasprintf.c: New file, from GNU gettext.
62806         * lib/asprintf.c: New file, from GNU gettext.
62807
62808 2003-01-29  Bruno Haible  <bruno@clisp.org>
62809
62810         * modules/stpncpy: New module.
62811         * MODULES.html.sh (func_all_modules): Add it.
62812
62813 2003-01-29  Bruno Haible  <bruno@clisp.org>
62814
62815         * m4/stpncpy.m4: New file.
62816
62817 2003-01-29  Bruno Haible  <bruno@clisp.org>
62818
62819         * lib/stpncpy.h: New file, from GNU gettext with modifications.
62820         * lib/stpncpy.c: New file, from GNU gettext with modifications.
62821
62822 2003-01-28  Bruno Haible  <bruno@clisp.org>
62823
62824         * modules/c-ctype: New module.
62825         * MODULES.html.sh (func_all_modules): Add it.
62826
62827 2003-01-28  Bruno Haible  <bruno@clisp.org>
62828
62829         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
62830         Paul Eggert.
62831         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
62832         Paul Eggert.
62833
62834 2003-01-27  Bruno Haible  <bruno@clisp.org>
62835
62836         * modules/xsetenv: New module.
62837         * MODULES.html.sh (func_all_modules): Add it.
62838
62839 2003-01-27  Bruno Haible  <bruno@clisp.org>
62840
62841         * lib/xsetenv.h: New file, from GNU gettext.
62842         * lib/xsetenv.c: New file, from GNU gettext.
62843
62844 2003-01-23  Jim Meyering  <jim@meyering.net>
62845
62846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
62847         from working on systems without dirfd (at least Irix and OSF1/Tru64).
62848
62849 2003-01-23  Bruno Haible  <bruno@clisp.org>
62850
62851         * modules/minmax: New module.
62852         * MODULES.html.sh (func_all_modules): Add it.
62853
62854 2003-01-23  Bruno Haible  <bruno@clisp.org>
62855
62856         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
62857         Eggert.
62858
62859 2003-01-22  Bruno Haible  <bruno@clisp.org>
62860
62861         * modules/exit: New module.
62862         * MODULES.html.sh (func_all_modules): Add it.
62863
62864 2003-01-22  Bruno Haible  <bruno@clisp.org>
62865
62866         * lib/exit.h: New file, from GNU gettext.
62867
62868 2003-01-19  Bruno Haible  <bruno@clisp.org>
62869
62870         * gnulib-tool: Recognize option --extract-maintainer.
62871         (func_get_maintainer): New function.
62872         * modules/*: Add Maintainer entry.
62873
62874 2003-01-16  Jim Meyering  <jim@meyering.net>
62875
62876         * m4/regex.m4: The `regex' struct is both input and output.
62877         Initialize it before each use.  Patch by Tim Waugh.
62878
62879 2003-01-16  Bruno Haible  <bruno@clisp.org>
62880
62881         * MODULES.html.sh: Add a table of contents. Add the module name as
62882         leftmost column. Add hyperlinks.
62883
62884 2003-01-15  Bruno Haible  <bruno@clisp.org>
62885
62886         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
62887
62888 2003-01-15  Bruno Haible  <bruno@clisp.org>
62889
62890         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
62891         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
62892         suffix.
62893
62894 2003-01-15  Bruno Haible  <bruno@clisp.org>
62895
62896         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
62897
62898 2003-01-15  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
62901         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
62902
62903 2003-01-14  Jim Meyering  <jim@meyering.net>
62904
62905         * lib/same.c (same_name): Tweak a comment.
62906
62907 2003-01-14  Bruno Haible  <bruno@clisp.org>
62908
62909         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
62910         when a string comparison is sufficient.
62911
62912 2003-01-14  Bruno Haible  <bruno@clisp.org>
62913
62914         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
62915         'unsigned int'.
62916
62917 2003-01-14  Bruno Haible  <bruno@clisp.org>
62918
62919         * lib/hash-pjw.c: Add comment about low quality of this function.
62920
62921 2003-01-13  Bruno Haible  <bruno@clisp.org>
62922
62923         * modules/stpcpy: Distribute lib/stpcpy.h.
62924         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
62925
62926 2003-01-13  Bruno Haible  <bruno@clisp.org>
62927
62928         * modules/*: Add a description.
62929         * modules/strpbrk: Fix Makefile.am snippet.
62930         * modules/strtoimax: Fix dependencies.
62931         * modules/strtoumax: Likewise.
62932
62933 2003-01-13  Bruno Haible  <bruno@clisp.org>
62934
62935         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
62936         * modules/alloca (Makefile.am): All object files depend on alloca.h.
62937         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
62938
62939 2003-01-13  Bruno Haible  <bruno@clisp.org>
62940
62941         * gnulib-tool (func_create_testdir): Store config/* files in the main
62942         directory.
62943         * config.rpath: Move to ...
62944         * config/config.rpath: ... here.
62945         * modules/gettext: Contains config/config.rpath, not config.rpath.
62946         * modules/iconv: Likewise.
62947
62948 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62949
62950         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62951         to avoid collisions with libcurses and libreadline.
62952
62953         * m4/getstr.m4: Remove.
62954         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
62955
62956 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62957
62958         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62959         to avoid collisions with libcurses and libreadline.
62960
62961         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
62962         * lib/getstr.h, getstr.c: Remove.
62963         * lib/getline.c: Include "getline.h", to check interface.
62964         Move body of old getstr.c here: this defines MIN_CHUNK and
62965         declares getdelim2, which is renamed from getstr.
62966         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
62967
62968         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
62969         All uses changed.
62970         * lib/linebuffer.h: Likewise.
62971         (readline): Remove backward-compatibility macro.
62972
62973 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62974
62975         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62976         to avoid collisions with libcurses and libreadline.
62977         * getstr: Remove.
62978         * MODULES.html.sh: Remove getstr.
62979         * modules/getline: Depend on unlocked-io, not getstr.
62980
62981 2003-01-12  Jim Meyering  <jim@meyering.net>
62982
62983         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
62984
62985 2003-01-10  Bruno Haible  <bruno@clisp.org>
62986
62987         * modules/alloca: Change Makefile.am requirements. Simplify Include
62988         requirements. Add lib/alloca_.h to file list.
62989
62990 2003-01-10  Bruno Haible  <bruno@clisp.org>
62991
62992         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
62993
62994 2003-01-10  Bruno Haible  <bruno@clisp.org>
62995
62996         * lib/alloca_.h: New file.
62997         * lib/getdate.y: Unconditionally include alloca.h.
62998         * lib/makepath.c: Likewise.
62999         * lib/setenv.c: Likewise.
63000         * lib/userspec.c: Likewise.
63001
63002 2003-01-09  Karl Berry  <karl@gnu.org>
63003
63004         * MODULES.html.sh: include `dirname $0` in PATH, to find
63005         gnulib-tool.
63006
63007 2003-01-09  Bruno Haible  <bruno@clisp.org>
63008
63009         * modules/stdbool: Change configure.ac, Makefile.am requirements.
63010         Simplify Include requirements. Add lib/stdbool.h.in to file list.
63011
63012 2003-01-09  Bruno Haible  <bruno@clisp.org>
63013
63014         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
63015
63016 2003-01-09  Bruno Haible  <bruno@clisp.org>
63017
63018         * lib/stdbool.h.in: New file.
63019
63020 2003-01-09  Bruno Haible  <bruno@clisp.org>
63021
63022         * gnulib-tool (func_all_modules): Ignore files ending in ~.
63023         * MODULES.html.sh: Likewise.
63024
63025 2003-01-08  Jim Meyering  <jim@meyering.net>
63026
63027         * lib/full-write.c: Undefine and define-away `const' after inclusion
63028         of errno.h, not before.  Suggestion from Bruno Haible.
63029
63030 2003-01-08  Bruno Haible  <bruno@clisp.org>
63031
63032         * modules/full-read: Depend on full-write.
63033
63034 2003-01-08  Bruno Haible  <bruno@clisp.org>
63035
63036         * lib/safe-read.c: Include specification header first, to ensure its
63037         selfcontainedness.
63038         * lib/full-write.c: Likewise.
63039
63040 2003-01-07  Jim Meyering  <jim@meyering.net>
63041
63042         * lib/full-write.c: Rework so that it may serve to define full_read,
63043         too.
63044         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
63045
63046 2003-01-07  Bruno Haible  <bruno@clisp.org>
63047
63048         * lib/strtoimax.c: Include <stdint.h> as an alternative to
63049         <inttypes.h>.
63050         * lib/xstrtol.h: Likewise.
63051         * lib/xstrtoimax.c: Likewise.
63052         * lib/xstrtoumax.c: Likewise.
63053         * lib/human.h: Likewise.
63054
63055         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
63056         on systems that have <inttypes.h> but not <stdint.h>.
63057
63058 2003-01-07  Bruno Haible  <bruno@clisp.org>
63059
63060         * MODULES.html.sh: Add copyright notice.
63061         (missed_files): Omit CVS directory entries.
63062         (func_module): Make it work with sed-3.02.
63063         * MODULES.txt: Remove file.
63064
63065 2003-01-06  Jim Meyering  <jim@meyering.net>
63066
63067         * lib/version-etc.c: Update year in translatable copyright string.
63068
63069 2003-01-03  Karl Berry  <karl@gnu.org>
63070
63071         * config/config.{guess,sub}: update from prep.
63072
63073 2003-01-02  Karl Berry  <karl@gnu.org>
63074
63075         * doc/COPYING.DOC: belatedly updated to 1.2.
63076
63077 2003-01-01  Karl Berry  <karl@gnu.org>
63078
63079         * gnulib-tool (func_verify_module): report module name $module in
63080         error message, not $1.
63081         * gnulib-tool (create-testdir): don't complain if destdir couldn't
63082         be created, only if it doesn't exist.
63083         * gnulib-tool (last_checkin_date): don't expand the $Date here.
63084
63085 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63086
63087         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
63088
63089 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63090
63091         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
63092         memcmp if strcoll doesn't work.
63093
63094 2002-12-31  Bruno Haible  <bruno@clisp.org>
63095
63096         * lib/utime.c (utime_null): No need to call ftruncate if the file was
63097         nonempty.
63098
63099 2002-12-31  Bruno Haible  <bruno@clisp.org>
63100
63101         * lib/memcoll.c (STRCOLL): New macro.
63102         (memcoll): Use it.
63103
63104 2002-12-31  Bruno Haible  <bruno@clisp.org>
63105
63106         * lib/localcharset.h: New file.
63107         * lib/localcharset.c: Include it.
63108         * lib/unicodeio.c: Likewise.
63109
63110 2002-12-31  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
63113         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
63114
63115 2002-12-31  Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/getline.h: Include <stddef.h>, for size_t.
63118
63119         * lib/unicodeio.h: Include <stddef.h>, for size_t.
63120         * lib/unicodeio.c: Don't include <stddef.h>.
63121
63122 2002-12-31  Bruno Haible  <bruno@clisp.org>
63123
63124         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
63125         HAVE_TM_ZONE.
63126
63127 2002-12-24  Karl Berry  <karl@gnu.org>
63128
63129         * config/config.guess: update from prep.
63130
63131 2002-12-24  Bruno Haible  <bruno@clisp.org>
63132
63133         General infrasructure.
63134         * m4/README: Rewritten.
63135         * m4/onceonly.m4: New file.
63136         * m4/onceonly_2_57.m4: New file.
63137
63138         Module atexit.
63139         * m4/atexit.m4: New file.
63140
63141         Module strtod.
63142         * m4/strtod.m4: New file.
63143
63144         Module strtol.
63145         * m4/strtol.m4: New file.
63146
63147         Module strtoul.
63148         * m4/strtoul.m4: New file.
63149
63150         Module memchr.
63151         * m4/memchr.m4: New file.
63152
63153         Module memcmp.
63154         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
63155         (jm_FUNC_MEMCMP): Invoke it.
63156
63157         Module memcpy.
63158         * m4/memcpy.m4: New file.
63159
63160         Module memmove.
63161         * m4/memmove.m4: New file.
63162
63163         Module memset.
63164         * m4/memset.m4: New file.
63165
63166         Module strcspn.
63167         * m4/strcspn.m4: New file.
63168
63169         Module strpbrk.
63170         * m4/strpbrk.m4: New file.
63171
63172         Module strstr.
63173         * m4/strstr.m4: New file.
63174
63175         Module strerror.
63176         * m4/strerror.m4: New file.
63177
63178         Module mktime.
63179         * m4/mktime.m4: Renamed from jm-mktime.m4.
63180         (gl_PREREQ_MKTIME): New macro.
63181         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
63182
63183         Module malloc.
63184         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
63185         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
63186         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
63187
63188         Module realloc.
63189         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
63190         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
63191         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
63192
63193         Module strftime.
63194         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
63195         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
63196         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
63197         gl_TM_GMTOFF.
63198         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
63199
63200         Module xalloc.
63201         * m4/xalloc.m4: New file.
63202
63203         Module alloca.
63204         * m4/alloca.m4: New file.
63205
63206         Module putenv.
63207         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
63208         (jm_FUNC_PUTENV): Invoke it.
63209
63210         Module setenv.
63211         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
63212         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
63213         when invoked twice.
63214         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
63215         gt_FUNC_SETENV.
63216
63217         Module memrchr.
63218         * m4/memrchr.m4: New file.
63219
63220         Module stpcpy.
63221         * m4/stpcpy.m4: New file.
63222
63223         Module strcase.
63224         * m4/strcase.m4: New file.
63225
63226         Module strdup.
63227         * m4/strdup.m4: New file.
63228
63229         Module strnlen.
63230         * m4/strnlen.m4: New file.
63231
63232         Module strndup.
63233         * m4/strndup.m4: New file.
63234
63235         Module xstrtod.
63236         * m4/xstrtod.m4: New file.
63237
63238         Module xstrtol.
63239         * m4/xstrtol.m4: New file.
63240
63241         Module getdate.
63242         * m4/getdate.m4: New file.
63243
63244         Module unlocked-io.
63245         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
63246         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
63247         * m4/jm-glibc-io.m4n: Remove file.
63248
63249         Module long-options.
63250         * m4/long-options.m4: New file.
63251
63252         Module md5.
63253         * m4/md5.m4: New file.
63254
63255         Module sha.
63256         * m4/sha.m4: New file.
63257
63258         Module getstr.
63259         * m4/getstr.m4: New file.
63260
63261         Module getline.
63262         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
63263         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
63264         <sys/types.h>, for size_t. Use the function name gnu_getline, not
63265         simply getline. Infoke gl_PREREQ_GETLINE.
63266
63267         Module obstack.
63268         * m4/obstack.m4: New file.
63269
63270         Module hash.
63271         * m4/hash.m4: New file.
63272
63273         Module readtokens.
63274         * m4/readtokens.m4: New file.
63275
63276         Module strverscmp.
63277         * m4/strverscmp.m4: New file.
63278
63279         Module stdbool.
63280         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
63281         OSF/1.
63282
63283         Module strtoll.
63284         * m4/strtoll.m4: New file.
63285
63286         Module strtoull.
63287         * m4/strtoull.m4: New file.
63288
63289         Module strtoimax.
63290         * m4/strtoimax.m4: New file.
63291
63292         Module strtoumax.
63293         * m4/strtoumax.m4: New file.
63294
63295         Module xstrtoimax.
63296         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
63297         jm_AC_PREREQ_XSTRTOIMAX.
63298         Moved the strtol prerequisites to strtol.m4.
63299         Moved the strtoll prerequisites to strtoll.m4.
63300         Moved the strtoimax prerequisites to strtoimax.m4.
63301
63302         Module xstrtoumax.
63303         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
63304         jm_AC_PREREQ_XSTRTOUMAX.
63305         Moved the strtoul prerequisites to strtoul.m4.
63306         Moved the strtoull prerequisites to strtoull.m4.
63307         Moved the strtoumax prerequisites to strtoumax.m4.
63308
63309         Module chown.
63310         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
63311         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
63312
63313         Module dup2.
63314         * m4/dup2.m4: New file.
63315
63316         Module ftruncate.
63317         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
63318         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
63319
63320         Module getgroups.
63321         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
63322         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
63323
63324         Module gettimeofday.
63325         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
63326         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
63327         gl_PREREQ_GETTIMEOFDAY.
63328
63329         Module mkdir.
63330         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
63331         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
63332
63333         Module mkstemp.
63334         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
63335         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
63336         jm_AC_TYPE_UINTMAX_T.
63337         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
63338
63339         Module stat.
63340         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
63341         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
63342
63343         Module lstat.
63344         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
63345         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
63346
63347         Module timespec.
63348         * m4/timespec.m4 (gl_TIMESPEC): New macro.
63349         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
63350         * m4/st_mtim.m4: Indentation.
63351
63352         Module nanosleep.
63353         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
63354         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
63355         gl_PREREQ_NANOSLEEP.
63356
63357         Module regex.
63358         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
63359         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
63360         (gl_REGEX): New macro.
63361
63362         Module rename.
63363         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
63364         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
63365
63366         Module rmdir.
63367         * m4/rmdir.m4: New file.
63368
63369         Module utime.
63370         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
63371         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
63372         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
63373
63374         Module dirname.
63375         * m4/dirname.m4: New file.
63376
63377         Module getopt.
63378         * m4/getopt.m4: New file.
63379
63380         Module unistd-safer.
63381         * m4/unistd-safer.m4: New file.
63382
63383         Module fnmatch.
63384         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
63385         declaration.
63386         (gl_PREREQ_FNMATCH_EXTRA): New macro.
63387         (gl_FUNC_FNMATCH_POSIX): New macro.
63388         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
63389         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
63390         simply fnmatch.
63391
63392         Module exclude.
63393         * m4/exclude.m4: New file.
63394
63395         Module human.
63396         * m4/human.m4: New file.
63397
63398         Module acl.
63399         * m4/acl.m4: Nop.
63400
63401         Module backupfile.
63402         * m4/backupfile.m4: New file.
63403         * m4/d-ino.m4: Indentation.
63404
63405         Module fsusage.
63406         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
63407         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
63408         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
63409
63410         Module dirfd.
63411         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
63412         requirements.
63413
63414         Module euidaccess.
63415         * m4/euidaccess.m4: New file.
63416
63417         Module file-type.
63418         * m4/file-type.m4: New file.
63419
63420         Module fileblocks.
63421         * m4/fileblocks.m4: New file.
63422
63423         Module filemode.
63424         * m4/filemode.m4: New file.
63425
63426         Module isdir.
63427         * m4/isdir.m4: New file.
63428
63429         Module lchown.
63430         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
63431         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
63432
63433         Module makepath.
63434         * m4/makepath.m4: New file.
63435
63436         Module modechange.
63437         * m4/modechange.m4: New file.
63438
63439         Module mountlist.
63440         * m4/mountlist.m4: New file.
63441         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
63442         Indentation.
63443
63444         Module path-concat.
63445         * m4/path-concat.m4: New file.
63446
63447         Module pathmax.
63448         * m4/pathmax.m4: New file.
63449
63450         Module same.
63451         * m4/same.m4: New file.
63452
63453         Module save-cwd.
63454         * m4/save-cwd.m4: New file.
63455
63456         Module savedir.
63457         * m4/savedir.m4: New file.
63458
63459         Module xgetcwd.
63460         * m4/xgetcwd.m4: New file.
63461         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
63462
63463         Module xreadlink.
63464         * m4/xreadlink.m4: New file.
63465
63466         Module safe-read.
63467         * m4/safe-read.m4: New file.
63468
63469         Module safe-write.
63470         * m4/safe-write.m4: New file.
63471
63472         Module closeout.
63473         * m4/closeout.m4: New file.
63474
63475         Module stdio-safer.
63476         * m4/stdio-safer.m4: New file.
63477
63478         Module getpass.
63479         * m4/getpass.m4: New file.
63480
63481         Module getugroups.
63482         * m4/getugroups.m4: New file.
63483
63484         Module group-member.
63485         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
63486         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
63487
63488         Module idcache.
63489         * m4/idcache.m4: New file.
63490
63491         Module userspec.
63492         * m4/userspec.m4: New file.
63493
63494         Module gettime.
63495         * m4/clock_time.m4: New file.
63496         * m4/gettime.m4: New file.
63497
63498         Module settime.
63499         * m4/settime.m4: New file.
63500
63501         Module posixtm.
63502         * m4/posixtm.m4: New file.
63503
63504         Module gethostname.
63505         * m4/gethostname.m4: New file.
63506
63507         Module canon-host.
63508         * m4/canon-host.m4: New file.
63509
63510         Module gettext.
63511         * m4/codeset.m4: New file, from gettext-0.11.5.
63512         * m4/gettext.m4: New file, from gettext-0.11.5.
63513         * m4/glibc21.m4: New file, from gettext-0.11.5.
63514         * m4/iconv.m4: New file, from gettext-0.11.5.
63515         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63516         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63517         * m4/inttypes.m4: New file, from gettext-0.11.5.
63518         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63519         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63520         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63521         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63522         * m4/lib-link.m4: New file, from gettext-0.11.5.
63523         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63524         * m4/progtest.m4: New file, from gettext-0.11.5.
63525         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63526         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63527         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63528
63529         Module localcharset.
63530         * m4/localcharset.m4: New file.
63531
63532         Module hard-locale.
63533         * m4/hard-locale.m4: New file.
63534
63535         Module mbswidth.
63536         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63537         onceonly macros.
63538         * m4/mbrtowc.m4: Add comment.
63539
63540         Module memcasecmp.
63541         * m4/memcasecmp.m4: New file.
63542
63543         Module memcoll.
63544         * m4/memcoll.m4: New file.
63545
63546         Module unicodeio.
63547         * m4/unicodeio.m4: New file.
63548
63549         Module rpmatch.
63550         * m4/rpmatch.m4: New file.
63551
63552         Module yesno.
63553         * m4/yesno.m4: New file.
63554
63555         Module exitfail.
63556         * m4/exitfail.m4: New file.
63557
63558         Module c-stack.
63559         * m4/c-stack.m4 (gl_C_STACK): New macro.
63560         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63561
63562         Module error.
63563         * m4/error.m4 (gl_ERROR): New macro.
63564         (jm_PREREQ_ERROR): Use onceonly macros.
63565
63566         Module fatal.
63567         * m4/fatal.m4: New file.
63568
63569         Module getloadavg.
63570         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63571         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63572
63573         Module getpagesize.
63574         * m4/getpagesize.m4: New file.
63575
63576         Module getusershell.
63577         * m4/getusershell.m4: New file.
63578
63579         Module physmem.
63580         * m4/physmem.m4: New file.
63581
63582         Module posixver.
63583         * m4/posixver.m4: New file.
63584
63585         Module quotearg.
63586         * m4/quotearg.m4: New file.
63587
63588         Module quote.
63589         * m4/quote.m4: New file.
63590
63591         Module readutmp.
63592         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63593
63594         Module sig2str.
63595         * m4/sig2str.m4: New file.
63596
63597         Other.
63598         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63599         ulonglong.m4.
63600         * m4/intmax_t.m4: New file.
63601         * m4/d-type.m4: Indentation.
63602         * m4/jm-macros.m4: Update.
63603         * m4/prereq.m4 (jm_PREREQ): Update.
63604         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63605         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63606         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63607         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63608         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63609         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63610         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63611         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63612         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63613         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63614         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63615         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63616         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63617         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63618         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63619         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63620         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63621         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63622         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63623
63624 2002-12-24  Bruno Haible  <bruno@clisp.org>
63625
63626         * MODULES.txt: Update according to m4/ changes.
63627
63628         Module gettext.
63629         * config.rpath: New file, from gettext-0.11.5.
63630
63631         * modules/*: New module descriptions.
63632         * gnulib-tool: New file.
63633         * MODULES.html.sh: New file.
63634
63635 2002-12-21  Karl Berry  <karl@gnu.org>
63636
63637         * doc/fdl.texi: update to version 1.2.
63638
63639 2002-12-19  Karl Berry  <karl@gnu.org>
63640
63641         * config/config.guess: update from prep.
63642
63643 2002-12-18  Bruno Haible  <bruno@clisp.org>
63644
63645         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63646         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63647
63648 2002-12-17  Bruno Haible  <bruno@clisp.org>
63649
63650         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63651         stdlib.h, string.h.
63652
63653 2002-12-17  Bruno Haible  <bruno@clisp.org>
63654
63655         * lib/canon-host.c (strdup): Remove unused declaration.
63656
63657         * lib/fsusage.c: Include full_read.h.
63658         (get_fs_usage): Use full_read instead of safe_read.
63659
63660         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63661
63662 2002-12-12  Karl Berry  <karl@gnu.org>
63663
63664         * config/config.guess: update from prep.
63665
63666 2002-12-11  Bruno Haible  <bruno@clisp.org>
63667
63668         * m4/setenv.m4: New file, from gettext-0.11.5.
63669
63670 2002-12-11  Bruno Haible  <bruno@clisp.org>
63671
63672         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63673         not unsetenv().
63674         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63675         modifications:
63676
63677         2002-12-11  Bruno Haible  <bruno@clisp.org>
63678
63679                 * setenv.c (alloca): Fall back to malloc.
63680                 (freea): New macro.
63681                 (setenv): Use freea() to free memory allocated with alloca().
63682
63683         2002-11-13  Bruno Haible  <bruno@clisp.org>
63684
63685                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
63686                 function declarations.
63687                 * unsetenv.c (unsetenv): Likewise.
63688
63689         2002-03-04  Bruno Haible  <bruno@clisp.org>
63690
63691                 Portability to AIX 4.3.3.
63692                 * unsetenv.c: New file, extracted from setenv.c.
63693                 * setenv.c: Move the unsetenv() function to unsetenv.c.
63694
63695         2001-12-20  Bruno Haible  <bruno@clisp.org>
63696
63697                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
63698                 use malloc instead. For SunOS 4.
63699
63700         2001-12-11  Bruno Haible  <bruno@clisp.org>
63701
63702                 * setenv.c: Declare alloca.
63703                 (compar_fn_t): New typedef.
63704                 (KNOWN_VALUE, STORE_VALUE): Use it.
63705
63706         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
63707         setenv.h.
63708
63709 2002-12-10  Paul Eggert  <eggert@twinsun.com>
63710
63711         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
63712         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
63713         Choose values that are less likely to collide with system fnmatch
63714         options.
63715         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
63716         defined (e.g., a pure POSIX system).
63717         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
63718         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
63719
63720 2002-12-06  Paul Eggert  <eggert@twinsun.com>
63721
63722         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
63723         a pain in practice to deal with generated m4 files.  This change
63724         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
63725
63726         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
63727         and jm-glibc-io.m4, as they are no longer a special case.
63728         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
63729         kludge and the auto-generation stuff.  Check only whether the
63730         functions are declared, not whether they exist, since older hosts
63731         that don't declare the functions can't use the optimization anyway.
63732
63733 2002-12-06  Jim Meyering  <jim@meyering.net>
63734
63735         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
63736
63737         Merge in changes from libc's misc/error.c, in preparation
63738         for the merge of gnulib's changes back into libc.
63739
63740         * lib/error.c (_): Define only if not already defined.
63741         Move definition to follow all #include directives.
63742         Include unlocked-io.h only if !_LIBC.
63743         [_LIBC]: Include <libio/libioP.h>.
63744         [USE_IN_LIBIO]: Include <libio/iolibio.h>
63745         (fflush): Tweak definition to use INTUSE.
63746         (putc): Define.
63747
63748 2002-12-05  Paul Eggert  <eggert@twinsun.com>
63749
63750         * lib/alloca.c [defined emacs]: Include "lisp.h".
63751         (xalloc_die) [defined emacs]: New macro.
63752         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
63753         [! defined emacs]: Include <xalloc.h>.
63754         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
63755         (pointer): Typedef to POINTER_TYPE *.
63756         (malloc): Remove decl; we now always use xmalloc.
63757         (alloca): Use old-style definition, since Emacs needs this.
63758         Check for arithmetic overflow when computing combined size.
63759
63760 2002-12-04  Paul Eggert  <eggert@twinsun.com>
63761
63762         Do not generate unlocked-io.h automatically, since it's easier to
63763         maintain it by hand.
63764
63765         * lib/unlocked-io.h: New file, from GNU diffutils,
63766         but with proper copyright notice and attribution.
63767         * lib/gen-uio: Remove.
63768         * lib/Makefile.am: Add copyright notice.
63769         (libfetish_a_SOURCES): Add unlocked-io.h.
63770         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
63771         (DISTCLEANFILES, io_functions): Remove macros.
63772         (EXTRA_DIST): Remove gen_uio.
63773         (unlocked-io.h): Remove rule.
63774
63775 2002-12-04  Jim Meyering  <jim@meyering.net>
63776
63777         Reflect the fact that stat.c and lstat.c are no longer generated.
63778         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
63779         (DISTCLEANFILES): Likewise.
63780         (EXTRA_DIST): Likewise.
63781         (all_local): Don't depend on stat.c or lstat.c.
63782         (stat.c, lstat.c): Remove rules.
63783         (EXTRA_DIST): Remove xstat.in.
63784
63785         * lib/xstat.in: Remove file.  Contents moved into stat.c.
63786         * lib/stat.c: New file.  Contents mostly from xstat.in.
63787         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
63788         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
63789
63790         * lib/safe-read.c: Rework so that it may serve to define safe_write,
63791         too.
63792         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
63793
63794 2002-12-03  Jim Meyering  <jim@meyering.net>
63795
63796         * lib/safe-read.c, safe-write.c: Change variable names and comments,
63797         but not semantics, to minimize the differences between these two files.
63798         (safe_read): Change comment to mention SAFE_READ_ERROR.
63799
63800         * lib/safe-read.c (IS_EINTR): Define.
63801         (safe_read): Use IS_EINTR in place of in-function cpp directives.
63802
63803 2002-12-02  Jim Meyering  <jim@meyering.net>
63804
63805         * lib/safe-read.c (EINTR): Define.
63806         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63807         (INT_MAX): Provide fallback.
63808         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
63809
63810         * lib/safe-read.h (SAFE_READ_ERROR): Define.
63811
63812 2002-12-02  Bruno Haible  <bruno@clisp.org>
63813
63814         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
63815         Define, taken from safe-read.c.
63816         (INT_MAX): Provide fallback.
63817         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
63818         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
63819
63820         * lib/safe-read.c (EINTR): Remove definition.
63821         (safe_read): Don't use EINTR if it is absent.
63822
63823 2002-12-01  Jim Meyering  <jim@meyering.net>
63824
63825         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
63826         zero.
63827         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
63828
63829 2002-11-27  Paul Eggert  <eggert@twinsun.com>
63830
63831         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
63832         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
63833         with `if (! (value < limit)) abort ();', for readability.
63834
63835 2002-11-26  Karl Berry  <karl@gnu.org>
63836
63837         * lib/strdup.c: copy from libc again, with jim's ok.
63838         * lib/.cppi-disable: re-add strdup.c
63839
63840 2002-11-25  Karl Berry  <karl@gnu.org>
63841
63842         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
63843         instead of "strtol.c".
63844
63845 2002-11-25  Karl Berry  <karl@gnu.org>
63846
63847         * config/install-sh: update from automake for variable quoting, $0 in
63848         error msgs, etc.
63849
63850         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
63851         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
63852         entry.
63853
63854 2002-11-25  Jim Meyering  <jim@meyering.net>
63855
63856         * lib/mktime.c: Sync from libc, now that it has the latest fix.
63857
63858 2002-11-24  Karl Berry  <karl@gnu.org>
63859
63860         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
63861         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
63862
63863 2002-11-24  Jim Meyering  <jim@meyering.net>
63864
63865         Update from coreutils:
63866
63867         * lib/mktime.c: Merge in changes from libc.
63868
63869         Avoid a link-time failure on some Linux systems.
63870         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
63871         (otherwise).
63872         (__mon_yday): Declare with the STATIC attribute.
63873         (__mktime_internal): Likewise.
63874         Based on a report from Greg Schafer.
63875
63876 2002-11-23  Jim Meyering  <jim@meyering.net>
63877
63878         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
63879         Use `unsigned', not `int', as type of index.
63880
63881         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
63882
63883         * lib/fsusage.c: Remove unneeded parentheses around operands of
63884         `defined'.
63885
63886 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63887
63888         * lib/quotearg.h: Allow multiple inclusion by surrounding with
63889         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
63890         so that we can be included first.
63891         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
63892         * lib/quotearg.c: Include quotearg.h immediately after config.h.
63893         No need to include stddef.h or sys/types.h any more.
63894         Surround local include files with "", not "<>".
63895         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
63896         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
63897         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
63898         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
63899         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
63900         (ISPRINT): Remove; no longer needed now that we assume C89.
63901
63902         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
63903         Preserve errno.
63904
63905         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
63906         quotearg_char): Use SIZE_MAX rather than
63907         (size_t) -1 when we are talking about "infinity".
63908
63909         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
63910
63911 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63912
63913         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
63914         hint that one should use `if (! x) abort ();' rather than `assert
63915         (x);', and anyway it's one less thing to worry about configuring.
63916         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
63917         hash_rehash, hash_insert): Use abort rather than assert.
63918
63919 2002-11-22  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/safe-read.h: Assume C89. Add comments.
63922         (safe_read): Change return type to size_t.
63923         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
63924         byte counts > SSIZE_MAX correctly.
63925         * lib/safe-write.h: New file.
63926         * lib/safe-write.c: New file.
63927         * lib/full-read.h: New file.
63928         * lib/full-read.c: New file.
63929         * lib/full-write.h: Assume C89. Add comments.
63930         * lib/full-write.c: Include safe-write.h.
63931         (full_write): Rewritten to use safe_write.
63932         Suggested by Jim Meyering and Paul Eggert.
63933
63934 2002-11-21  Jim Meyering  <jim@meyering.net>
63935
63936         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
63937
63938         Merge in changes from the coreutils.
63939
63940         2002-09-25  Paul Eggert  <eggert@twinsun.com>
63941         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
63942         <stdint.h>.
63943         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
63944         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
63945         int.  Work more efficiently if X is the same width as uintmax_t.
63946         Do not compare X to -1, to avoid bogus compiler warning.
63947         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
63948         Don't assume that f_frsize and f_bsize are the same type.
63949
63950         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
63951         warning on FreeBSD.
63952
63953         * lib/makepath.c (make_path): Restore umask *before* creating the final
63954         component.
63955         (make_path): Minor reformatting.
63956
63957         * lib/xmalloc.c: Adjust to work with new autoconf macros,
63958         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
63959         HAVE_MALLOC/HAVE_REALLOC.
63960
63961         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
63962         dummy ones.  At least on GNU/Linux systems, `auto' means something
63963         else.
63964         From Michael Stone.
63965
63966 2002-11-21  Bruno Haible  <bruno@clisp.org>
63967
63968         Remove case insensitive option matching.
63969         * lib/argmatch.h (argcasematch): Remove declaration.
63970         (ARGCASEMATCH): Remove macro.
63971         (__xargmatch_internal): Remove case_sensitive argument.
63972         (XARGMATCH): Update.
63973         (XARGCASEMATCH): Remove macro.
63974         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
63975         case_sensitive argument.
63976         (argcasematch): Remove function.
63977         (__xargmatch_internal): Remove case_sensitive argument.
63978         (main): Use XARGMATCH instead of XARGCASEMATCH.
63979
63980         * lib/xmalloc.c: Change compile-time error message. Add comment about
63981         required autoconf version.
63982
63983 2002-11-20  Paul Eggert  <eggert@twinsun.com>
63984
63985         Merge argmatch cleanups from Bison.  Assume C89.
63986
63987         * lib/argmatch.c: Include config.h here, not in argmatch.h.
63988         Include stdlib.h, for EXIT_FAILURE.
63989         Always include <string.h>, since we assume C89.
63990         (EXIT_FAILURE): Remove pre-C89 bug workaround.
63991         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
63992         Include <stddef.h> instead, since it's all we need for size_t.
63993         (PARAMS): Remove.  All uses removed.
63994         (ARRAY_CARDINALITY): Do not bother to #undef.
63995         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
63996         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63997         Remove unnecessary parentheses.
63998         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63999         Insert necessary parentheses.
64000         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
64001         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
64002
64003 2002-11-19  Bruno Haible  <bruno@clisp.org>
64004
64005         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
64006         * lib/mbswidth.h: Include <stddef.h>, for size_t.
64007
64008         * lib/mbswidth.h (PARAMS): Remove macro.
64009         (mbswidth, mbsnwidth): Use ANSI C function declarations.
64010         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
64011
64012         * lib/gcd.h (PARAMS): Remove macro.
64013         (gcd): Use ANSI C function declarations.
64014         * lib/gcd.c (gcd): Likewise.
64015
64016 2002-11-15  Bruno Haible  <bruno@clisp.org>
64017
64018         * lib/strcspn.c: Include <stddef.h>.
64019         (strcspn): Use ANSI C function declaration. Change return type to
64020         size_t. Use NULL.
64021         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
64022         (strpbrk): Use NULL.
64023         * lib/strpbrk.h (PARAMS): Remove macro.
64024         (strpbrk): Use ANSI C function declaration.
64025         * lib/strstr.c: Don't include <sys/types.h>.
64026         * lib/strstr.h (PARAMS): Remove macro.
64027         (strstr): Use ANSI C function declarations.
64028
64029 2002-11-14  Karl Berry  <karl@gnu.org>
64030
64031         * config/mkinstalldirs: `do' on separate line, instead of
64032         `for var; do'.
64033
64034 2002-11-06  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
64037         * lib/gcd.c (gcd): Likewise.
64038
64039 2002-11-05  Bruno Haible  <bruno@clisp.org>
64040
64041         * lib/gcd.h: New file, from gettext-0.11.5.
64042         * lib/gcd.c: New file, from gettext-0.11.5.
64043
64044 2002-11-05  Bruno Haible  <bruno@clisp.org>
64045
64046         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64047         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64048         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64049         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64050
64051         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
64052         <libintl.h>.
64053         * lib/makepath.c: Include gettext.h instead of <locale.h> and
64054         <libintl.h>.
64055
64056         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
64057         * lib/human.c: Include gettext.h instead of <libintl.h>.
64058         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
64059         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
64060         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
64061         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
64062         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
64063         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
64064         (textdomain): Remove definition.
64065         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
64066
64067         * lib/long-options.c: Remove include of <libintl.h> and definition of
64068         _.
64069         * lib/same.c: Remove include of <libintl.h> and definition of _.
64070
64071 2002-11-04  Owen Taylor  <otaylor@redhat.com>
64072
64073         * lib/config.charset: A few additions for Solaris.
64074
64075 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64076
64077         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
64078         * lib/localcharset.c (locale_charset): Declare as extern "C".
64079
64080 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64081
64082         * lib/config.charset: msdos in uk_UA uses CP1125.
64083
64084 2002-11-04  Bruno Haible  <bruno@clisp.org>
64085
64086         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
64087         * lib/strcase.h: New file, from GNU gettext-0.11.5.
64088         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
64089         * lib/strstr.h: New file, from GNU gettext-0.11.5.
64090         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
64091
64092 2002-11-04  Bruno Haible  <bruno@clisp.org>
64093
64094         * lib/localcharset.c (locale_charset): Don't return an empty string.
64095
64096 2002-11-04  Bruno Haible  <bruno@clisp.org>
64097
64098         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
64099         aliases.
64100
64101 2002-11-04  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/config.charset: Update for newest glibc. Add canonical names
64104         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
64105
64106 2002-11-04  Bruno Haible  <bruno@clisp.org>
64107
64108         * lib/config.charset: Add support for NetBSD.
64109
64110 2002-11-04  Bruno Haible  <bruno@clisp.org>
64111
64112         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
64113
64114 2002-11-01  Bruno Haible  <bruno@clisp.org>
64115
64116         * configure.in: Add AC_CONFIG_AUX_DIR call.
64117         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
64118         test/Makefile.
64119         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
64120
64121 2002-09-28  Karl Berry  <karl@gnu.org>
64122
64123         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
64124         installed automake until the next release, since changes have been
64125         made.
64126
64127 2002-09-25  Karl Berry  <karl@gnu.org>
64128
64129         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
64130         * lib/getopt*: copy from libc/posix.
64131         * lib/gettext.h: copy from gettext.
64132         * lib/.cppi-disable: add strdup.c, gettext.h.
64133
64134 2002-09-25  Karl Berry  <karl@gnu.org>
64135
64136         * config/srclist.txt: enable gettext.h check.
64137         * config/config.{guess,sub}: update from prep.
64138         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
64139                 from automake 1.6.3.
64140         See srclist*.
64141
64142 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
64143
64144         * regex.c (PATFETCH): Remove the translating fetch.
64145         (PATFETCH_RAW): Rename to PATFETCH.
64146         (set_image_of_range): New fun.
64147         (SET_RANGE_TABLE_WORK_AREA): Use it.
64148         (regex_compile): Don't translate the pattern chars so eagerly.
64149         Only do it when inserting an `exactn' bytecode or when handling
64150         a char-range.
64151         (mutually_exclusive_p): Avoid empty statement.
64152
64153 2002-07-06  Jim Meyering  <meyering@lucent.com>
64154
64155         * m4/README: Don't mention Makefile.am.in.
64156         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
64157
64158 2002-07-01  Jim Meyering  <meyering@lucent.com>
64159
64160         * lib/c-stack.c: Include sys/time.h.
64161         From Volker Borchert.
64162
64163 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64164
64165         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
64166
64167 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64168
64169         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
64170         New macro.  Use it uniformly instead of
64171         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
64172         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
64173         reported by Vin Shelton.
64174
64175 2002-06-22  Paul Eggert  <eggert@twinsun.com>
64176
64177         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
64178         Do not assume SA_SIGINFO behavior.
64179         Bug reported by Jim Meyering on NetBSD 1.5.2.
64180
64181 2002-06-22  Jim Meyering  <meyering@lucent.com>
64182
64183         * m4/c-stack.m4: New file, from diffutils-2.8.2.
64184         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
64185
64186         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
64187         now that configure.ac uses AC_GNU_SOURCE.
64188         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
64189         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
64190
64191         Update to latest tools.  Suggestions from Paul Eggert.
64192         * m4/stdbool.m4: New file, from diffutils-2.8.2.
64193         * m4/gnu-source.m4: Update from diffutils-2.8.2.
64194         * m4/fnmatch.m4: Likewise.
64195         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
64196         to AC_HEADER_STDBOOL
64197
64198 2002-06-22  Jim Meyering  <meyering@lucent.com>
64199
64200         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
64201         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
64202
64203 2002-06-22  Jim Meyering  <meyering@lucent.com>
64204
64205         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
64206
64207         * lib/exitfail.c, exitfail.h: Likewise.
64208         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
64209
64210         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
64211         of fnmatch.h.
64212         (EXTRA_DIST): Add fnmatch_loop.c.
64213         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
64214
64215         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
64216         * lib/fnmatch.c: Update from diffutils-2.8.2.
64217         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
64218         * lib/fnmatch.h: Remove file.
64219
64220 2002-06-21  Jim Meyering  <meyering@lucent.com>
64221
64222         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
64223         * m4/mbrtowc.m4: Likewise.
64224
64225         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
64226         * m4/mbswidth.m4: Reflect name change:
64227         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
64228         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
64229
64230         * m4/lib-link.m4: Update from gettext-0.11.2.
64231         * m4/gettext.m4: Likewise.
64232
64233         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
64234         From Alfred M. Szmidt.
64235
64236 2002-06-18  Paul Eggert  <eggert@twinsun.com>
64237
64238         * lib/file-type.h: Report an error if neither S_ISREG nor
64239         S_IFREG is defined, instead of using a test specific to glibc
64240         2.2.  This should be safe, since POSIX requires S_ISREG and
64241         Unix Version 7 had S_IFREG.  We don't need to check for
64242         <sys/types.h> since we don't use any symbols that it defines.
64243
64244 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
64245
64246         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
64247         $@-t, so that each temporary file name is unique and valid in the first
64248         8 characters, for operation under DOS.
64249
64250 2002-06-15  Paul Eggert  <eggert@twinsun.com>
64251
64252         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
64253
64254 2002-06-15  Jim Meyering  <meyering@lucent.com>
64255
64256         Work even with DJGPP 2.03, which lacks support for symlinks.
64257         From Richard Dawe.
64258         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
64259         is defined.
64260         * lib/lchown.c (S_ISLNK): Likewise.
64261
64262 2002-06-15  Jim Meyering  <meyering@lucent.com>
64263
64264         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
64265         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
64266         have been included before this file.
64267
64268 2002-06-14  Jim Meyering  <meyering@lucent.com>
64269
64270         * lib/file-type.h: Use the version from diffutils-2.8.2.
64271         * lib/file-type.c: Likewise.
64272
64273 2002-06-07  Jim Meyering  <meyering@lucent.com>
64274
64275         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
64276         They're needed at least for NetBSD 1.5.2.
64277         ($statxfs_includes): Include those same headers.
64278         ($statxfs_includes): Include sys/vfs.h if available.
64279         ($statxfs_includes): Likewise for sys/statvfs.h.
64280         Check for the following members in both structs statfs and statvfs:
64281         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
64282
64283 2002-06-01  Jim Meyering  <meyering@lucent.com>
64284
64285         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
64286         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
64287
64288 2002-05-28  Jim Meyering  <meyering@lucent.com>
64289
64290         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
64291         Reported by Volker Borchert.
64292
64293 2002-05-27  Jim Meyering  <meyering@lucent.com>
64294
64295         Fix a problem seen only on nonconforming systems whereby ls.c's
64296         use of localtime, and then of gettimeofday would cause trouble:
64297         the localtime call used to initialize rpl_gettimeofday's save
64298         mechanism would clobber ls's current local time information so
64299         that in any long listing the first file would always be listed
64300         with date 1970-01-01.  Analysis by Volker Borchert.
64301
64302         * lib/gettimeofday.c (localtime): Undefine.
64303         (rpl_localtime): New function.
64304
64305 2002-05-27  Jim Meyering  <meyering@lucent.com>
64306
64307         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
64308         localtime.
64309
64310         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
64311         use the replacement function; it wouldn't resolve at link time.
64312         Reported by Volker Borchert.
64313
64314 2002-05-22  Jim Meyering  <meyering@lucent.com>
64315
64316         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
64317         file-type.h.
64318         * lib/file-type.h: New file.
64319         * lib/file-type.c (file_type): New file/function.  Extracted from
64320         diffutils.
64321
64322 2002-04-30  Jim Meyering  <meyering@lucent.com>
64323
64324         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
64325
64326 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64327
64328         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
64329
64330 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64331
64332         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
64333         Do not check for alloca.h (no longer used) or stdbool.h (was never
64334         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
64335
64336 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64337
64338         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
64339
64340 2002-04-29  Jim Meyering  <meyering@lucent.com>
64341
64342         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
64343         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
64344         Use AC_FUNC_STRNLEN here instead.
64345
64346         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
64347         With autoconf-2.53a, it's part of AC_PROG_CC.
64348
64349 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64350
64351         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
64352         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
64353
64354 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64355
64356         * lib/sig2str.h, lib/sig2str.c: New files.
64357         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
64358
64359 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64360
64361         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
64362         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
64363         of 127, since 64 is the largest conceivable number for ancient
64364         nonstandard hosts.
64365         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
64366
64367 2002-04-28  Jim Meyering  <meyering@lucent.com>
64368
64369         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
64370
64371 2002-04-24  Jim Meyering  <meyering@lucent.com>
64372
64373         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
64374         (jm_PREREQ): Use it.
64375
64376         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
64377         mach/mach.h fcntl.h.
64378         Check for this function: setlocale.
64379
64380 2002-04-24  Jim Meyering  <meyering@lucent.com>
64381
64382         * lib/gettext.h: New file, from Gettext.
64383         * lib/Makefile.am (INCLUDES): Remove -I../intl.
64384         (libfetish_a_SOURCES): Add gettext.h.
64385
64386 2002-04-16  Jim Meyering  <meyering@lucent.com>
64387
64388         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
64389         ut_pid, ut_id, ut_exit.
64390
64391 2002-04-16  Jim Meyering  <meyering@lucent.com>
64392
64393         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
64394         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
64395         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
64396
64397 2002-04-12  Jim Meyering  <meyering@lucent.com>
64398
64399         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
64400         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
64401         existence of the getmntinfo function.  Needed for Darwin 5.3.
64402
64403         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
64404         This is necessary at least on Darwin 5.3.
64405
64406         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
64407         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
64408         strnlen.o in the library, and that makes some versions of ranlib
64409         object.
64410
64411 2002-04-12  Jim Meyering  <meyering@lucent.com>
64412
64413         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
64414
64415 2002-04-09  Jim Meyering  <meyering@lucent.com>
64416
64417         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
64418         to be more precise.  Rather than saying we're checking whether the
64419         function `works', say what we're testing.
64420         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
64421         Reported by Bruno Haible.
64422
64423 2002-03-10  Jim Meyering  <meyering@lucent.com>
64424
64425         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
64426         Suggestion from Santiago Vila.
64427
64428 2002-03-08  Jim Meyering  <meyering@lucent.com>
64429
64430         * lib/rename.c: Mention that this wrapper is needed also on
64431         mips-dec-ultrix4.4 systems.
64432
64433 2002-03-02  Jim Meyering  <meyering@lucent.com>
64434
64435         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
64436         not HAVE_CLOCK_SETTIME.
64437
64438 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64439
64440         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
64441         Check for clock_settime.
64442
64443 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64444
64445         * lib/nanosleep.h: Rename to....
64446         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
64447
64448         * lib/gettime.c: New file.
64449         * lib/settime.c: New file.
64450         * lib/stime.c: Remove.
64451
64452         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
64453         timespec.h.  Remove nanosleep.h.
64454
64455 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64456
64457         * m4/acl.m4: New file.
64458         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
64459         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
64460
64461 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64462
64463         * lib/acl.c, lib/acl.h: New files.
64464         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
64465
64466 2002-02-24  Jim Meyering  <meyering@lucent.com>
64467
64468         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
64469         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
64470         cause trouble.  Reported by Nelson Beebe.
64471
64472 2002-02-23  Paul Eggert  <eggert@twinsun.com>
64473
64474         * lib/path-concat.c (xpath_concat): Reorder code to pacify
64475         compilers that don't know that xalloc_die never returns.
64476
64477 2002-02-20  Jim Meyering  <meyering@lucent.com>
64478
64479         * lib/getdate.c: Regenerate using bison-1.33.
64480
64481 2002-02-17  Jim Meyering  <meyering@lucent.com>
64482
64483         * config/config.guess (main): Don't use `head -1'; it's no longer
64484         portable. Use `sed 1q' instead.
64485
64486 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
64487
64488         * m4/codeset.m4: Upgrade to gettext-0.11.
64489         * m4/gettext.m4: Upgrade to gettext-0.11.
64490         * m4/glibc21.m4: Upgrade to gettext-0.11.
64491         * m4/iconv.m4: Upgrade to gettext-0.11.
64492         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64493         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64494         * m4/lib-ld.m4: New file, from gettext-0.11.
64495         * m4/lib-link.m4: New file, from gettext-0.11.
64496         * m4/lib-prefix.m4: New file, from gettext-0.11.
64497         * m4/progtest.m4: Upgrade to gettext-0.11.
64498
64499 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64500
64501         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64502         (jm_PREREQ): Use it.
64503
64504 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64505
64506         * lib/posixver.c, lib/posixver.h: New files.
64507         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64508
64509 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64510             Bruno Haible  <bruno@clisp.org>
64511
64512         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64513         (fwrite_success_callback): New declaration.
64514         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64515         print_unicode_char. Call failure callback instead of error.
64516         (fwrite_success_callback): New function.
64517         (exit_failure_callback): New function.
64518         (fallback_failure_callback): New function.
64519         (print_unicode_char): Call unicode_to_mb.
64520
64521 2002-01-26  Jim Meyering  <meyering@lucent.com>
64522
64523         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64524         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64525
64526 2002-01-26  Jim Meyering  <meyering@lucent.com>
64527
64528         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64529
64530 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64531
64532         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64533
64534 2002-01-22  Jim Meyering  <meyering@lucent.com>
64535
64536         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64537         Otherwise, some versions of automake would omit the rule that makes
64538         Makefile from Makefile.in.
64539
64540 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64541
64542         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64543         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64544         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64545         (memcoll): Set errno to zero if there is no error.
64546
64547         * lib/quotearg.c (quotearg_buffer_restyled):
64548         Fix bug with quoting buffers containing NUL when backslashing escapes.
64549         This bug was exposed by the other changes in this patch.
64550         (quotearg_n_options): New arg ARGSIZE.
64551         All callers changed.
64552         (quoting_options_from_style): New function.
64553         (quotearg_n_style): Use it.
64554         (quotearg_n_style_mem): New function.
64555
64556         * lib/quotearg.h (quotearg_n_style_mem): New function.
64557
64558 2002-01-19  Jim Meyering  <meyering@lucent.com>
64559
64560         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64561         Remove useless quotes: DF_PROG="df".
64562         * m4/strnlen.m4: New file.
64563
64564 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64565
64566         * lib/backupfile.c (ISDIGIT): Comment fix.
64567         * lib/getdate.y (ISDIGIT): Likewise.
64568         * lib/posixtm.c (ISDIGIT, year): Likewise.
64569         * lib/strverscmp.c (ISDIGIT): Likewise.
64570         * lib/userspec.c (ISDIGIT): Likewise.
64571
64572 2002-01-16  Jim Meyering  <meyering@lucent.com>
64573
64574         * lib/getdate.y: Add three semicolons, each just before a closing
64575         brace. Bison (as of version 1.31) no longer papers over that mistake.
64576
64577 2002-01-05  Jim Meyering  <meyering@lucent.com>
64578
64579         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64580
64581 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64582
64583         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64584         not silently exit merely because the output buffer happens to
64585         have nothing pending.
64586
64587 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64588
64589         See the big note in ../ChangeLog.
64590         * lib/human.c (suffixes): Prefer K to k for 1024.
64591         (generate_suffix_backwards): New function.
64592         (human_readable_inexact): Use it.
64593         * lib/xstrtol.c (__xstrtol): If there is no number but there
64594         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64595         Accept 'K' as well as 'k'.
64596
64597 2001-12-15  Jim Meyering  <meyering@lucent.com>
64598
64599         * lib/regex.h (__restrict_arr): Update from libc.
64600
64601         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64602         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64603         (STREQ): Define.
64604
64605 2001-12-14  Jim Meyering  <meyering@lucent.com>
64606
64607         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64608         Suggestion from Bruno Haible.
64609
64610 2001-12-10  Jim Meyering  <meyering@lucent.com>
64611
64612         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64613         xrealloc, Instead, include "xalloc.h".
64614         (initbuffer): Don't cast xmalloc return value to char*.
64615         (readline): Reword comment.
64616         Don't cast xrealloc return value to char*
64617         Return NULL, not 0.
64618
64619 2001-12-09  Jim Meyering  <meyering@lucent.com>
64620
64621         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64622         about `signed and unsigned type in conditional expression'.
64623         * lib/posixtm.c (posix_time_parse): Likewise.
64624
64625         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64626
64627         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64628         to avoid a pedantic warning.
64629
64630         * lib/getstr.c: Don't include assert.h.
64631         (getstr): Remove warning-evoking assertions.
64632         Return -1 if offset parameter is out of bounds.
64633         Change the type of a local from int to size_t.
64634
64635         * lib/strftime.c (my_strftime_localtime_r): Include this function
64636         definition in the `#if ! HAVE_TM_GMTOFF' block.
64637
64638         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64639         Include xalloc.h instead.
64640
64641 2001-12-02  Jim Meyering  <meyering@lucent.com>
64642
64643         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64644         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64645         included.
64646
64647         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64648         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64649
64650 2001-11-30  Akim Demaille  <akim@epita.fr>
64651
64652         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64653         before being defined.
64654
64655 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64656
64657         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64658         First arg is int, not unsigned.
64659         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64660         (SIZE_MAX, UINT_MAX): New macros.
64661         (quotearg_n_options): Abort if N is negative.
64662         Avoid overflow check on hosts where size_t is 64 bits and int
64663         is 32 bits, as overflow is impossible there.
64664         Fix off-by-one typo that caused unnecessary reallocation.
64665
64666 2001-11-27  Jim Meyering  <meyering@lucent.com>
64667
64668         * lib/tempname.c: Merge with version from libc.
64669         * lib/regex.c: Likewise.
64670
64671         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64672         systems for which STDC_HEADERS is 0, it was not included, resulting in
64673         a warning about an integer-to-pointer conversion problem with getenv.
64674         Reported by Volker Borchert.
64675
64676 2001-11-26  Jim Meyering  <meyering@lucent.com>
64677
64678         * lib/gtod.h: Remove file.
64679         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
64680         * lib/gettimeofday.c: Don't include gtod.h.
64681         (GTOD_init): Remove function.
64682         (rpl_gettimeofday): Do its job here instead, rather than aborting.
64683         Suggestion from Volker Borchert.
64684
64685 2001-11-23  Jim Meyering  <meyering@lucent.com>
64686
64687         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
64688         it.
64689         * lib/hash.c (struct hash_table): Define it here instead.
64690
64691 2001-11-22  Jim Meyering  <meyering@lucent.com>
64692
64693         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
64694
64695 2001-11-20  Jim Meyering  <meyering@lucent.com>
64696
64697         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
64698         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
64699
64700 2001-11-19  Jim Meyering  <meyering@lucent.com>
64701
64702         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
64703         directory.  Use "conftestXXXXXX" as the template.
64704         Suggestion from Paul Eggert.
64705
64706         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
64707         immediately, so the test doesn't mistakenly hit the max-open-files
64708         limit.
64709
64710 2001-11-18  Paul Eggert  <eggert@twinsun.com>
64711
64712         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
64713         (TEMPORARIES): New macro.
64714         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
64715         removes an artificial limitation (e.g. HP-UX 10.20, where
64716         TMP_MAX is 17576).
64717
64718 2001-11-18  Jim Meyering  <meyering@lucent.com>
64719
64720         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
64721
64722 2001-11-18  Jim Meyering  <meyering@lucent.com>
64723
64724         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
64725         on SunOS 4.
64726
64727         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
64728         files will be created before anything else.
64729
64730 2001-11-17  Paul Eggert  <eggert@twinsun.com>
64731
64732         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
64733         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
64734
64735 2001-11-17  Jim Meyering  <meyering@lucent.com>
64736
64737         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
64738         Prompted by a report from Bob Proulx.
64739
64740         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
64741         Instead, require UTILS_FUNC_MKSTEMP.
64742
64743 2001-11-17  Jim Meyering  <meyering@lucent.com>
64744
64745         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
64746         Now, that's done as part of AC_FUNC_STRTOD.
64747
64748 2001-11-17  Jim Meyering  <meyering@lucent.com>
64749
64750         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
64751         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
64752         rather than group writable.  Patch by Juan F. Codagnone.
64753
64754         * lib/readtokens.c: Remove explicit declarations of xmalloc and
64755         xrealloc, Instead, include "xalloc.h".
64756
64757         * lib/mountlist.c: Include unlocked-io.h after all system headers.
64758         Remove explicit declarations of xmalloc, xrealloc,
64759         and xstrdup.  Instead, include "xalloc.h".
64760
64761         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
64762         unlocked-io.h.
64763         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
64764         Likewise.
64765         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
64766
64767         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
64768         Reported by Padraig Brady.
64769
64770         * lib/mkstemp.c: #undef mkstemp.
64771         Include config.h.
64772         (rpl_mkstemp): Rename from mkstemp.
64773         Protoize.
64774
64775 2001-11-16  Jim Meyering  <meyering@lucent.com>
64776
64777         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
64778         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
64779         determine the amount of total physical memory, use pstat_getstatic.
64780         HPUX-11 doesn't define _SC_PHYS_PAGES.
64781         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
64782         If sysconf couldn't be used to determine the amount of available
64783         physical memory, use both pstat_getstatic and pstat_getdynamic.
64784         Based on a patch from Bob Proulx.
64785
64786 2001-11-10  Jim Meyering  <meyering@lucent.com>
64787
64788         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
64789         (jm_PREREQ): Use it.
64790
64791 2001-11-09  Jim Meyering  <meyering@lucent.com>
64792
64793         * m4/jm-macros.m4: Require autoconf-2.52f.
64794         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
64795         Use these AC_-prefixed names, not the AM_-prefixed ones.
64796
64797         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
64798
64799 2001-11-05  Jim Meyering  <meyering@lucent.com>
64800
64801         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
64802
64803 2001-11-04  Jim Meyering  <meyering@lucent.com>
64804
64805         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
64806         $DEFS.
64807
64808 2001-11-03  Jim Meyering  <meyering@lucent.com>
64809
64810         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
64811         of AC_DEFUN.
64812
64813         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
64814         know the name of the variable in the macro definition.
64815
64816 2001-11-03  Jim Meyering  <meyering@lucent.com>
64817
64818         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
64819         in argmatch_to_argument call.
64820
64821         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
64822         argument.
64823
64824         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
64825         e.g., a fault due to an attempt to free a NULL pointer.
64826
64827 2001-11-01  Jim Meyering  <meyering@lucent.com>
64828
64829         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
64830         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
64831
64832 2001-11-01  Jim Meyering  <meyering@lucent.com>
64833
64834         * lib/dirfd.c, lib/dirfd.h: New files.
64835         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
64836
64837         * lib/hash.c (hash_print) [TESTING]: Clean up.
64838
64839 2001-10-22  Paul Eggert  <eggert@twinsun.com>
64840
64841         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
64842         to avoid a warning if -Wall.
64843
64844 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
64845
64846         * README: New file
64847         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
64848         (per RMS's instructions, this is now the canonical source)
64849         * lgpl/, gpl/: New directories.
64850
64851 2001-10-21  Paul Eggert  <eggert@twinsun.com>
64852
64853         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
64854
64855 2001-10-21  Jim Meyering  <meyering@lucent.com>
64856
64857         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
64858         this code would end up calling gettext even in packages built
64859         with --disable-nls.
64860         * lib/getopt.c (_): Likewise.
64861         * lib/regex.c (_): Likewise.
64862
64863 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64864
64865         * m4/error.m4 (jm_PREREQ_ERROR):
64866         Do not invoke AC_CHECK_FUNCS with strerror_r, as
64867         AC_FUNC_STRERROR_R does that.
64868         Check for strerror declaration.
64869
64870         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
64871         are supposed to have them these days.
64872         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
64873         Merge changes from latest Autoconf CVS.
64874         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
64875         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
64876         POSIX decided to standardize on the int flavor of strerror_r.
64877
64878 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64879
64880         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
64881         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
64882         Use strerror_r that is only a macro, even if it is not a function.
64883         (strerror): Check for HAVE_DECL_STRERROR before declaring.
64884         (private_strerror): Use prototypes, not old-style function definition.
64885         (print_errno_message): New function.
64886         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
64887         char*-flavored one.
64888         (error_tail, error, error_at_line): Use it.
64889
64890 2001-10-11  Jim Meyering  <meyering@lucent.com>
64891
64892         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
64893         and quote_n (1, ... to avoid clobbering a buffer.
64894
64895 2001-10-05  Jim Meyering  <meyering@lucent.com>
64896
64897         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
64898         hash-pjw.h.
64899         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
64900         * lib/hash-pjw.h: New file.
64901
64902 2001-09-30  Jim Meyering  <meyering@lucent.com>
64903
64904         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
64905         `struct fsstat' has the `f_fstypename' member.
64906         Use that to define FS_TYPE, which is now used to make
64907         the getfsstat link test tighter.
64908
64909 2001-09-30  Jim Meyering  <meyering@lucent.com>
64910
64911         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
64912         Include <sys/ucred.h>, for Apple Darwin.
64913         Include sys/mount.h and sys/fs_types.h only if available.
64914         (FS_TYPE): Define.
64915         (read_filesystem_list): Use FS_TYPE.
64916
64917 2001-09-29  Paul Eggert  <eggert@twinsun.com>
64918
64919         * lib/exclude.c (excluded_filename): 0 -> false, since it's
64920         a boolean context.
64921
64922 2001-09-29  Jim Meyering  <meyering@lucent.com>
64923
64924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64925         [one-argument getmntent function]): Include stdio.h before mntent.h.
64926         SunOS 4.1.x needs it for the declaration of `FILE'.
64927         Patch by Volker Borchert.
64928
64929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64930         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
64931         sys/fs_types.h, and make the link-test for getfsstat guard #include
64932         directives with appropriate #if HAVE_*_H tests so that we can
64933         detect getfsstat on Apple Darwin1.3.7 systems.
64934         Reported by Nelson Beebe.
64935         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
64936
64937 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64938
64939         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64940         #defines strtoimax.  Also treat the other strto* functions
64941         like strtoimax.
64942
64943         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64944         Check for strtoul and strtoumax,
64945         as those declarations are made even in the signed case.
64946         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
64947         Likewise, for strtol and strtoimax.
64948
64949 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64950
64951         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64952         #defines strtoimax.  Also treat the other strto* functions
64953         like strtoimax.
64954
64955         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
64956         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
64957         (strtoimax, strtoumax): Do not declare if already defined as a macro.
64958
64959 2001-09-26  Jim Meyering  <meyering@lucent.com>
64960
64961         Most macros in unlocked-io.h had the wrong number of arguments.
64962         * lib/gen-uio: New script.
64963         (USE_UNLOCKED_IO): Define to 1 if not already defined.
64964         * lib/unlocked-io.hin: Remove file.
64965         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
64966         rather than trying to embed it here.
64967         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
64968         Reported by Padraig Brady.
64969
64970 2001-09-25  Volker Borchert  <bt@teknon.de>
64971
64972         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
64973         `result'.
64974
64975 2001-09-24  Jim Meyering  <meyering@lucent.com>
64976
64977         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
64978
64979 2001-09-23  Jim Meyering  <meyering@lucent.com>
64980
64981         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
64982         instead of the mere test for existence of mntent.h.  The latter
64983         would get a false-positive on AIX 3.4 systems.
64984         In the outer getmntent if-block, don't die if neither of the getmntent
64985         tests succeeds.  Instead, just fall through and continue with the
64986         remaining tests.
64987
64988 2001-09-23  Jim Meyering  <meyering@lucent.com>
64989
64990         * lib/mountlist.c: Remove useless parentheses in #if directives.
64991         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
64992         the deprecated MOUNTED symbol is no longer defined in mntent.h.
64993
64994 2001-09-22  Jim Meyering  <meyering@lucent.com>
64995
64996         * m4/gettext.m4: New file.  From gettext.
64997         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
64998         * m4/progtest.m4: Likewise
64999         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
65000         * m4/glibc21.m4: Likewise.
65001
65002         * m4/libintl.m4: Remove.  No longer used.
65003
65004 2001-09-22  Jim Meyering  <meyering@lucent.com>
65005
65006         * lib/localcharset.c: Update from latest gettext.
65007         * lib/config.charset: Likewise.
65008
65009 2001-09-20  Jim Meyering  <meyering@lucent.com>
65010
65011         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
65012         strtoimax.
65013         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
65014         strtoumax.
65015
65016 2001-09-20  Jim Meyering  <meyering@lucent.com>
65017
65018         * lib/xstrtol.c (strtoimax): Guard declaration with
65019         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
65020         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
65021         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
65022         (strtoumax): Likewise, for completeness (it wasn't necessary).
65023
65024 2001-09-17  Paul Eggert  <eggert@twinsun.com>
65025
65026         * lib/strtoimax.c (HAVE_LONG_LONG):
65027         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
65028         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
65029         to work around bug in IBM C compiler.
65030
65031 2001-09-17  Jim Meyering  <meyering@lucent.com>
65032
65033         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
65034         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
65035         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
65036         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
65037         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
65038         whenever the right hand side need not be expanded by the shell.
65039
65040 2001-09-16  Paul Eggert  <eggert@twinsun.com>
65041
65042         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
65043         library.  It's not correct, as some older glibcs are buggy.
65044         fnmatch wasn't fixed until glibc 2.2.
65045
65046         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
65047         special shell magic here.
65048
65049 2001-09-16  Jim Meyering  <meyering@lucent.com>
65050
65051         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
65052         * m4/jm-macros.m4: Require it.
65053
65054 2001-09-16  Jim Meyering  <meyering@lucent.com>
65055
65056         * lib/mkdir.c: New file.
65057
65058 2001-09-15  Jim Meyering  <meyering@lucent.com>
65059
65060         * m4/jm-macros.m4: Check for help2man.
65061
65062 2001-09-11  Jim Meyering  <meyering@lucent.com>
65063
65064         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
65065         The body, by Paul Eggert, was moved here from configure.in.
65066         * m4/jm-macros.m4: Require UTILS_HOST_OS.
65067
65068 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65069
65070         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
65071         (jm_PREREQ): Use it.
65072
65073 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65074
65075         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
65076         Use ssize_t, not int, to store result of readlink.
65077         Check for ssize_t overflow as well as size_t overflow,
65078         as POSIX says the result of readlink is implementation-defined
65079         when ssize_t overflows.
65080         Remove unnecessary cast to char*.
65081         Use free+malloc instead of realloc, as the storage doesn't need
65082         to be preserved and it's clearer and can be more efficient that way.
65083         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
65084         * lib/xreadlink.h (xreadlink): Update prototype.
65085
65086 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65087
65088         * lib/xgetcwd.c: Revert some of the previous change; intead,
65089         fix the HAVE_GETCWD_NULL code to behave more like the
65090         !HAVE_GETCWD_NULL code used to.
65091
65092         Include "xalloc.h".
65093         (xgetcwd): Do not return NULL when memory is exhausted; instead,
65094         invoke xalloc_die.
65095
65096 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65097
65098         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
65099         sys/param.h, as pathmax.h includes them.
65100
65101 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65102
65103         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
65104         (jm_PREREQ_XGETCWD): New macro.
65105
65106         * m4/getcwd.m4: New file.
65107
65108 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65109
65110         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
65111         like the HAVE_GETCWD_NULL code.
65112         Include pathmax.h if not HAVE_GETCWD.
65113         Do not include xalloc.h.
65114         (INITIAL_BUFFER_SIZE): New symbol.
65115         Do not use xmalloc / xrealloc, since the caller is responsible for
65116         handling errors.  Preserve errno around `free' during failure.
65117         Do not overrun buffer when using getwd.
65118
65119 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65120
65121         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
65122         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
65123         getcwd (NULL, 0).
65124
65125 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65126
65127         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
65128         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
65129         spotted by Jim Meyering.
65130
65131 2001-09-03  Jim Meyering  <meyering@lucent.com>
65132
65133         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
65134         failure.
65135
65136 2001-09-02  Jim Meyering  <meyering@lucent.com>
65137
65138         * lib/error.c: Update from GNU libc.
65139
65140 2001-09-01  Jim Meyering  <meyering@lucent.com>
65141
65142         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
65143         Used by df.
65144
65145 2001-09-01  Jim Meyering  <meyering@lucent.com>
65146
65147         * lib/xreadlink.c: New file.
65148         * lib/xreadlink.h: New file.
65149         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
65150         xreadlink.h.
65151
65152         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
65153         doesn't conflict with sparc Solaris 7's definition in
65154         /usr/include/sys/int_types.h.
65155
65156         * lib/exclude.c: Use `""', not `<>' to #include non-system header
65157         files.
65158         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
65159         and strncasecmp as r-values.  Unixware didn't have declarations.
65160
65161 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65162
65163         * lib/xstrtol.h: Add copyright notice.
65164         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
65165         LONGINT_INVALID_SUFFIX_CHAR.
65166
65167 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65168
65169         * lib/xstrtol.c (strtoimax): New decl.
65170
65171 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65172
65173         * lib/xgetcwd.c: Don't include pathmax.h.
65174         Include stdlib.h and unistd.h if available.
65175         Include xalloc.h.
65176         (xmalloc, xstrdup, free): Remove decls.
65177         (xgetcwd): Don't assume sizes fit in unsigned.
65178         Check for overflow when computing sizes.
65179         Simplify reallocation code.
65180
65181 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65182
65183         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
65184         a directory's st_size can have an arbitrary value, so the old
65185         usage could waste an arbitrary amount of memory.  All uses
65186         changed.
65187         * lib/savedir.h: Update prototype.
65188
65189 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65190
65191         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
65192
65193         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
65194         old strtoimax.c.
65195
65196         Also, make the following further changes to make this file's
65197         configuration more similar to that of strtol.c:
65198         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
65199         (strtoumax, uintmax_t, strtoull, strtol): Remove.
65200         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
65201         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
65202         changed to signed values.
65203
65204         And make the following changes as well:
65205         Fix copyright notice, as 1999 was missing.
65206         (verify): New macro.
65207         (strtoimax): Check sizes at compile-time, not run-time.
65208         Prefer strtol to strtoll if both work.
65209         (main): Remove; it was not that useful and was a pain to maintain.
65210
65211         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
65212
65213 2001-08-31  Jim Meyering  <meyering@lucent.com>
65214
65215         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
65216         Use an initial, malloc'd, buffer of length 128 rather than
65217         a statically allocated one of length 1024.
65218
65219 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65220
65221         Simplify code, partly by assuming autoconf 2.52 semantics.
65222
65223         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
65224
65225         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
65226         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
65227         All uses removed.
65228         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
65229         Move AC_REQUIRE to next-to-top level, to avoid confusion.
65230         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
65231         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
65232         jm_AC_HEADER_INTTYPES_H.
65233         * m4/jm-macros.m4 (jm_MACROS): Likewise.
65234
65235         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
65236
65237         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65238         Quote first arg of AC_DEFUN.
65239         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
65240         since they are needed to parse the include file even if we need
65241         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
65242         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
65243         but with opposite signedness.
65244
65245 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65246
65247         Merge 'exclude' changes from tar 1.13.22.
65248         This fixes one or two unlikely storage allocation overflow bugs,
65249         but doesn't change user-visible behavior otherwise.
65250
65251 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65252
65253         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
65254         (jm_PREREQ_EXCLUDE): New macro.
65255
65256 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65257
65258         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
65259         tm to be declared.
65260
65261 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65262
65263         * lib/hash.c: Remove '2001' from copyright notice.
65264
65265 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65266
65267         * lib/full-write.h: New file.
65268         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
65269         * lib/full-write.c: Correct credits, as cccp.c no longer
65270         exists and anyway it was so heavily changed from the old cccp
65271         code as to be unrecognizable.  Include full-write.h.
65272         (full_write) Return size_t, with short writes meaning failure.
65273         All callers changed.  This fixes a bug with large buffers
65274         on 64-bit hosts.
65275         * lib/utime.c: Include full-write.h.
65276
65277 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65278
65279         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
65280         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
65281         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
65282         Include if available.
65283         (<xalloc.h>): Include
65284         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
65285         (verify): New macro.  Use it to verify that EXCLUDE macros do not
65286         collide with FNM macros.
65287         (struct patopts): New struct.
65288         (struct exclude): Use it, as exclude patterns now come with options.
65289         (new_exclude): Support above changes.
65290         (new_exclude, add_exclude_file):
65291         Initial size must now be a power of two to simplify overflow checking.
65292         (free_exclude, fnmatch_no_wildcards): New function.
65293         (excluded_filename): No longer requires options arg, as the options
65294         are determined by add_exclude.  Now returns bool, not int.
65295         (excluded_filename, add_exclude):
65296         Add support for the fancy new exclusion options.
65297         (add_exclude, add_exclude_file): Now takes int options arg.
65298         Check for arithmetic overflow when computing sizes.
65299         (add_exclude_file): xrealloc might modify errno, so don't
65300         realloc until after errno might be used.
65301
65302         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
65303         New macros.
65304         (free_exclude): New decl.
65305         (add_exclude, add_exclude_file): Now takes int options arg.
65306         (excluded_filename): No longer requires options arg, as the options
65307         are determined by add_exclude.  Now returns bool, not int.
65308
65309 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65310
65311         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
65312
65313 2001-08-27  Jim Meyering  <meyering@lucent.com>
65314
65315         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
65316
65317         * lib/version-etc.c (N_): Remove definition.
65318         Revert most of last change.
65319         Instead, simply don't mark the `Copyright...' string for translation.
65320         Based on advice from Paul Eggert.
65321
65322         * lib/strtoxmax.c: Tweak comment.
65323
65324 2001-08-26  Jim Meyering  <meyering@lucent.com>
65325
65326         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
65327
65328         * m4/xstrtoimax.m4: New file.
65329         * m4/xstrtoumax.m4: Add comments explaining why we
65330         AC_REPLACE_FUNCS(strtol).
65331
65332 2001-08-26  Jim Meyering  <meyering@lucent.com>
65333
65334         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
65335         of copyright with `%s' so translators don't get an untranslated
65336         message in 2002.
65337         (COPYRIGHT_YEAR): Define.
65338         (version_etc): Use fprintf rather than fputs.
65339         Suggestion from Ulrich Drepper.
65340
65341         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
65342
65343         * lib/strtoll.c: New file, from GNU libc.
65344         * lib/xstrtoimax.c: New file.
65345
65346         * lib/xstrtol.h: Add xstrtoimax.
65347         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
65348         * lib/strtoimax.c: New file.  Likewise, but first define
65349         STRTOUXMAX_SIGNED.
65350
65351         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
65352         ...
65353         * lib/strtoxmax.c: ... then renamed to this.
65354
65355 2001-08-18  Paul Eggert  <eggert@twinsun.com>
65356
65357         * m4/inttypes.m4: Add AC_PREREQ(2.13).
65358         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
65359         (jm_AC_TYPE_INTMAX_T): New macro.
65360         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
65361
65362         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
65363
65364         * m4/longlong.m4: Renamed from ulonglong.m4.
65365         * m4/inttypes.m4: Renamed from inttypes_h.m4.
65366         * m4/uintmax_t.m4: Removed.
65367
65368 2001-08-13  Paul Eggert  <eggert@twinsun.com>
65369
65370         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
65371         Port to Solaris 8, where 'sed' requires a space after the 'r'
65372         command, and where sh dislikes "$/".  Clean up the spacing a bit.
65373         Redirect output to $tmp just once.
65374
65375 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
65376
65377         * lib/addext.c (<errno.h>): Include.
65378         (errno): Declare if not defined.
65379         (addext): Work correctly when pathconf returns -1 and leaves
65380         errno alone because there is no limit.  Also, work even if
65381         pathconf returns a value greater than SIZE_MAX.
65382
65383 2001-08-12  Jim Meyering  <meyering@lucent.com>
65384
65385         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
65386         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
65387         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
65388         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
65389         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
65390         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
65391         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
65392         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
65393         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
65394         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
65395         utime.m4, utimes.m4, xstrtoumax.m4:
65396         Quote the first argument in each use of AC_DEFUN.
65397
65398 2001-08-12  Jim Meyering  <meyering@lucent.com>
65399
65400         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
65401         Simply `return getcwd (NULL, 0);'.
65402         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
65403         Use 1300 as initial value for length, not PATH_MAX.
65404
65405         * lib/pathmax.h: Clean up cpp syntax.
65406
65407 2001-08-12  Jim Meyering  <meyering@lucent.com>
65408
65409         * lib/gettimeofday.c: New file.
65410         * lib/gtod.h: New file.
65411         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
65412
65413 2001-08-05  Jim Meyering  <meyering@lucent.com>
65414
65415         * m4/jm-macros.m4: Require autoconf-2.52.
65416
65417 2001-08-04  Jim Meyering  <meyering@lucent.com>
65418
65419         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
65420         stmt, to get in sync with glibc.
65421
65422 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65423
65424         The following changes are from gettext 0.10.39 as maintained by
65425         Bruno Haible.
65426
65427         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
65428         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
65429         with inverted sense.  All uses changed.
65430
65431         * lib/mbswidth.c: Don't include <limits.h>.
65432         Include <stdlib.h> and <string.h> unconditionally.
65433         (iswcntrl, mbsinit, ISCNTRL): New macros.
65434         (mbsnwidth): Use K&R style function declarations.
65435         Don't bother checking for MB_LEN_MAX == 1, since the compiler
65436         can optimize it when MB_CUR_MAX == 1.
65437         The width of control characters is zero, not 1.
65438
65439 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65440
65441         The following changes are from gettext 0.10.39 as maintained by
65442         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
65443
65444         * m4/codeset.m4: Upgrade to serial AM1.
65445         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
65446         all uses changed.  Quote first arg of AC_DEFUN.
65447         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
65448
65449         * m4/iconv.m4: Upgrade to serial AM2.
65450         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
65451         Add --with-libconv-prefix.
65452         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
65453         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
65454         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
65455         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
65456         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
65457
65458         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
65459         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
65460         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
65461         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
65462         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
65463         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
65464         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65465         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
65466         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65467
65468         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
65469         string.h any more.
65470
65471         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
65472         not the default value.
65473
65474         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
65475         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
65476         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
65477         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
65478         Also check for iswcntrl, used for wcwidth fallback.
65479         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
65480         to Autoconf 2.13.
65481
65482 2001-08-03  Jim Meyering  <meyering@lucent.com>
65483
65484         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
65485         as it was in the original.  Reported by Paul Eggert.
65486
65487 2001-07-16  Jim Meyering  <meyering@lucent.com>
65488
65489         * m4/gettimeofday.m4: New file.
65490         Prompted by a report from Bernhard Baehr.
65491
65492 2001-07-15  Jim Meyering  <meyering@lucent.com>
65493
65494         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65495         stuff. Now it's in ../Makefile.cfg.
65496
65497 2001-07-15  Jim Meyering  <meyering@lucent.com>
65498
65499         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65500         (BUILT_SOURCES): Add unlocked-io.h.
65501         (io_functions): Define.
65502         (unlocked-io.h): New rule.
65503         (DISTCLEANFILES): Add unlocked-io.h.
65504         (all-local): Depend on unlocked-io.h, to ensure it is created.
65505
65506         * lib/unlocked-io.hin: New file
65507
65508         * lib/regex.c: Update from glibc.
65509
65510 2001-07-05  Jim Meyering  <meyering@lucent.com>
65511
65512         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65513         recommendation.
65514         (libfetish_a_SOURCES): Put all .h files here instead.
65515         Remove a thus-exposed (better checks in automake) duplicate and
65516         two unnecessary .h files.
65517
65518 2001-07-04  Jim Meyering  <meyering@lucent.com>
65519
65520         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65521         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65522         distcheck failure.
65523
65524 2001-07-02  Jim Meyering  <meyering@lucent.com>
65525
65526         The following changes were prompted by suggestions from Bruno Haible.
65527
65528         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65529         is now generated.
65530         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65531         definition of EXTRA_DIST.
65532         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65533         ensure that the generated file is created/updated whenever the list
65534         of $(unlocked_functions) is changed.
65535         (jm-glibc-io.m4): New rule.
65536         (unlocked-io.h): New rule -- currently unused.
65537
65538 2001-06-24  Jim Meyering  <meyering@lucent.com>
65539
65540         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65541         unmatched right bracket, rather than kludging it with an extra,
65542         falsely-matching quote in a comment.  Patch by Akim Demaille.
65543
65544 2001-06-11  Jim Meyering  <meyering@lucent.com>
65545
65546         * lib/regex.c: Update from GNU libc.
65547
65548 2001-05-27  Jim Meyering  <meyering@lucent.com>
65549
65550         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65551         Check for ut_type in struct utmp.
65552
65553 2001-05-27  Jim Meyering  <meyering@lucent.com>
65554
65555         * lib/readutmp.h (UT_TYPE): Define.
65556
65557 2001-05-24  Jim Meyering  <meyering@lucent.com>
65558
65559         * lib/argmatch.c: Include "quote.h".
65560         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65561         quote function.  Reported by Göran Uddeborg.
65562
65563 2001-05-22  Jim Meyering  <meyering@lucent.com>
65564
65565         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65566         now that we use the package-supplied version unconditionally.
65567         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65568
65569 2001-05-21  Jim Meyering  <meyering@lucent.com>
65570
65571         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65572         shell syntax errors.
65573
65574 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65575
65576         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65577
65578 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65579
65580         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65581         Don't bother to check library strftime, since
65582         we'll be using our own my_strftime function anyway.
65583         Define my_strftime instead of strftime.
65584
65585 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65586
65587         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65588         which is not yet declared.
65589
65590 2001-05-15  Jim Meyering  <meyering@lucent.com>
65591
65592         * m4/regex.m4: Use proper quoting so brackets appear in the test
65593         program.
65594         Reported by, and with help from, Bruno Haible.
65595
65596 2001-05-13  Jim Meyering  <meyering@lucent.com>
65597
65598         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65599         undefined.
65600
65601 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65602
65603         dirname code cleanup.  base_name now behaves more compatibly
65604         with POSIX basename when given file names that have trailing
65605         slashes, and similarly for dir_name.  Add new primitives
65606         base_len and dir_len.  Put the directory-name-related decls
65607         into dirname.h.
65608
65609         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65610         * lib/backupfile.c (base_name): Likewise.
65611         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65612         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65613         * lib/makepath.c (strip_trailing_slashes): Likewise.
65614         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65615         ISSLASH): Likewise.
65616         * lib/rename.c (strip_trailing_slashes): Likewise.
65617         * lib/same.c (base_name): Likewise.
65618         * lib/stripslash.c (ISSLASH): Likewise.
65619
65620         * lib/addext.c: Include <dirname.h> after size_t is defined.
65621         * lib/backupfile.c: Likewise.
65622
65623         * lib/addext.c (addext): Use base_len to trim redundant
65624         trailing slashes instead of doing it ourselves.
65625         But do not trim the last slash if it is not redundant.
65626
65627         * lib/backupfile.c (find_backup_file_name,
65628         max_backup_version): Use base_len instead of rolling it ourselves.
65629         Handle the case of "" and (on DOS) "C:" correctly.
65630
65631         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65632         needed. Include <string.h>, <dirname.h>.
65633         (base_name): Allow file names ending in slashes, other than names
65634         that are all slashes.  In this case, return the basename followed
65635         by the slashes.  This is more general, and can be used in places
65636         where the original base_name purposely had an assertion failure.
65637         (base_len): New function.
65638
65639         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65640         Do not include <assert.h>; no longer needed.
65641         Include xalloc.h.
65642         (memrchr): Remove decl.
65643         (dir_name_r): Remove.
65644         (dir_len): Renamed from dirlen.  All callers changed.
65645         Rewrite in terms of base_name, for simplicity and consistency.
65646         (dir_name): Never return NULL.  All callers changed.
65647         Do not include <stdlib.h> in test program; no longer needed.
65648         return 0; is fine for test program.
65649
65650         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65651         New macros.
65652         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65653
65654         * lib/path-concat.c (path_concat): Use base_len to compute
65655         base length, not strlen; this means we cannot rely on memcpy
65656         to null-terminate.
65657
65658         * lib/same.c (STREQ): Remove.
65659         (same_name): Handle the case where the basename ends in trailing '/'.
65660
65661         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65662         a slash was stripped.  Do not strip the last slash after a
65663         file system prefix.
65664
65665 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65666
65667         * lib/Makefile.am (libfetish_a_SOURCES):
65668         Add strftime.c, since we now compile it on all hosts.
65669
65670         * lib/strftime.c (my_strftime):
65671         Define to nstrftime if emacs, but only if my_strftime is not defined.
65672         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65673         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65674         Add one more extra argument: a nanoseconds value.
65675         All uses changed.
65676         (ns): New macro.
65677         (my_strftime function): Add %N format.
65678         (emacs_strftimeu): Renamed from emacs_strftime,
65679         with extra ut argument.
65680
65681 2001-05-09  Paul Eggert  <eggert@twinsun.com>
65682
65683         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
65684
65685 2001-04-21  Jim Meyering  <meyering@lucent.com>
65686
65687         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
65688         doesn't interfere.
65689
65690 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65691
65692         * m4/ftruncate.m4: Check for chsize.
65693         Link with ftruncate.o unconditionally if ftruncate is missing.
65694         This was required when cross-compiling to i586-mingw32msvc.
65695
65696 2001-04-08  Jim Meyering  <meyering@lucent.com>
65697
65698         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
65699         recomputed; that's necessary when the offset spans a DST transition.
65700         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
65701
65702 2001-04-02  Jim Meyering  <meyering@lucent.com>
65703
65704         * lib/regex.h, regex.c: Update from GNU libc.
65705
65706 2001-03-24  Jim Meyering  <meyering@lucent.com>
65707
65708         * m4/jm-macros.m4: Require autoconf-2.49d.
65709
65710 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
65711
65712         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
65713
65714 2001-03-19  Paul Eggert  <eggert@twinsun.com>
65715
65716         * lib/version-etc.c (version_etc_copyright): Update to 2001.
65717
65718 2001-03-17  Jim Meyering  <meyering@lucent.com>
65719
65720         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
65721         now that the version in autoconf is equivalent.
65722         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
65723
65724         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
65725         Suggestion from Akim Demaille.
65726
65727         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
65728         (jm_PREREQ_TEMPNAME): New function.
65729
65730 2001-03-16  Paul Eggert  <eggert@twinsun.com>
65731
65732         * lib/tempname.c (uint64_t): Define to uintmax_t if
65733         not defined, and if UINT64_MAX is not defined.
65734         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
65735         Reported by John David Anglin.
65736
65737 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
65738
65739         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
65740         resolve alias if codeset is empty.
65741         * lib/config.charset (BeOS): Use wildcard syntax.
65742
65743 2001-03-13  Jim Meyering  <meyering@lucent.com>
65744
65745         * lib/path-concat.c (path_concat)
65746         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
65747         concatenating e.g., `C:' and `foo'.
65748         From Bruno Haible.
65749
65750 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65751
65752         * lib/localcharset.c (locale_charset): Don't use
65753         setlocale(LC_CTYPE,NULL). Don't return NULL.
65754         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
65755
65756 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65757
65758         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
65759         support for DOS/DJGPP.
65760
65761 2001-03-01  Paul Eggert  <eggert@twinsun.com>
65762
65763         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
65764         lacks mkstemp.  Compile our own tempname.c if we compile our own
65765         mkstemp.c, as mkstemp relies on tempname.
65766
65767 2001-03-01  Jim Meyering  <meyering@lucent.com>
65768
65769         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
65770         AH_VERBATIM really does output its argument verbatim.
65771
65772 2001-02-28  Paul Eggert  <eggert@twinsun.com>
65773
65774         * lib/Makefile.am (libfetish_a_SOURCES):
65775         Add dup-safer.c, fopen-safer.c.
65776         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
65777
65778         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
65779         * lib/unistd-safer.h: New files.
65780
65781 2001-02-25  Paul Eggert  <eggert@twinsun.com>
65782
65783         The mkstemp replacement is taken from glibc 2.2.2, with some
65784         portability fixes for use outside glibc, as follows:
65785
65786         * lib/tempname.c (struct_stat64): New macro.
65787         (direxists, __gen_tempname): Use it.
65788         This avoids a portability problem with Solaris 8.
65789
65790         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
65791         (<stddef.h>, <stdint.h>, <string.h>):
65792         Include only if STDC_HEADERS || _LIBC.
65793         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
65794         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
65795         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
65796         (__set_errno): Define this macro if <errno.h> doesn't.
65797         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
65798         Define these macros if <stdio.h> doesn't.
65799         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
65800         Define these macros if <sys/stat.h>
65801         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
65802         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
65803         __xstat64): Define if not _LIBC.
65804         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
65805         (__gen_tempname): Invoke gettimeofday only if
65806         HAVE_GETTIMEOFDAY || _LIBC;
65807         otherwise, fall back on plain "time".
65808         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
65809
65810         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
65811
65812         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
65813
65814 2001-02-18  Paul Eggert  <eggert@twinsun.com>
65815
65816         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
65817
65818 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65819
65820         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
65821         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
65822         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
65823         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65824
65825 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65826
65827         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
65828         Remove workaround macros for hosts that have mbrtowc but not
65829         mbstate_t, as we now insist on proper declarations for both
65830         before using mbrtowc.
65831
65832 2001-02-17  Jim Meyering  <meyering@lucent.com>
65833
65834         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
65835         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
65836         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
65837         UnixWare 7.1.1.
65838
65839         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
65840         rather than AC_CACHE_VAL.
65841
65842 2001-02-17  Jim Meyering  <meyering@lucent.com>
65843
65844         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
65845         around included file name.
65846
65847         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
65848
65849         * lib/strftime.c: Update from GNU libc (the only changes were to
65850         comments).
65851
65852 2001-02-17  Jim Meyering  <meyering@lucent.com>
65853
65854         * lib/regex.c: Update from libc.
65855
65856 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
65857
65858         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
65859         clash.
65860
65861 2001-02-16  Paul Eggert  <eggert@twinsun.com>
65862
65863         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
65864         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
65865         Reported by Mark Hounschell via Paul Eggert.
65866
65867 2001-02-07  Jim Meyering  <meyering@lucent.com>
65868
65869         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
65870
65871 2001-02-05  Jim Meyering  <meyering@lucent.com>
65872
65873         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
65874         it includes the patch required for `large file' support with at least
65875         HP-UX's 10.20 /bin/cc.
65876
65877 2001-02-03  Jim Meyering  <meyering@lucent.com>
65878
65879         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
65880         AS_IF, now that it works once again (mysteriously).
65881         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65882
65883 2001-01-30  Jim Meyering  <meyering@lucent.com>
65884
65885         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
65886         * m4/chown.m4: Rename conftestchown to conftest.chown.
65887         * m4/rename.m4: s/conftestdir/conftest.d1/ and
65888         s/conftestdir2/conftest.d2/.
65889         * m4/utimes.m4: s/conftestdata/conftest.data/
65890         Inspired by Pavel Roskin's change in autoconf.
65891
65892 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
65893
65894         * lib/config.charset: Update for FreeBSD 4.2.
65895
65896 2001-01-27  Jim Meyering  <meyering@lucent.com>
65897
65898         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
65899         a use of AS_IF.
65900         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65901
65902 2001-01-26  Jim Meyering  <meyering@lucent.com>
65903
65904         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
65905         quotearg.c includes it.
65906
65907 2001-01-26  Jim Meyering  <meyering@lucent.com>
65908
65909         * lib/quotearg.c: Include stddef.h.
65910         * lib/quote.c: Include stddef.h.
65911         Reported by Axel Kittenberger.
65912
65913         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
65914         line in double quotes so that it evokes a better diagnostic.
65915         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
65916         Reported by Axel Kittenberger.
65917
65918 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
65919
65920         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
65921         as if it was a `charset'.
65922
65923 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65924
65925         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
65926         has const.
65927
65928 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65929
65930         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
65931         to avoid a warning.  Add back 'const' to inptr.
65932
65933 2001-01-20  Jim Meyering  <meyering@lucent.com>
65934
65935         Be sure that headers are checked before used in code compiled
65936         for the type checks.
65937         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
65938         In place of that, invoke jm_CHECK_ALL_TYPES.
65939         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
65940         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
65941         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
65942         The check for ssize_t was mistakenly run before the test for unistd.h.
65943
65944         The configure-time check for stdbool.h was missing.
65945         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
65946         (jm_PREREQ_HASH): New function.
65947
65948 2001-01-17  Jim Meyering  <meyering@lucent.com>
65949
65950         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
65951         for autoconf-2.49c.
65952         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
65953
65954 2001-01-16  Jim Meyering  <meyering@lucent.com>
65955
65956         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
65957         From Bruno Haible.
65958
65959 2001-01-14  Jim Meyering  <meyering@lucent.com>
65960
65961         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
65962         foo and bar.  Create conftestdir/ in the script, not in the C code.
65963         Remove directories in the script, not in the C code.
65964         Remove conftestdir{,2} before trying to create the directory.
65965         Make the entire configure script fail if the mkdir fails.
65966
65967 2001-01-14  Jim Meyering  <meyering@lucent.com>
65968
65969         * lib/rename.c: New file.  From Volker Borchert.
65970         Include stdlib.h, string.h or strings.h, and xalloc.h.
65971         Use strip_trailing_slashes rather than open-coding it.
65972
65973 2001-01-03  Paul Eggert  <eggert@twinsun.com>
65974
65975         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
65976
65977 2001-01-03  Jim Meyering  <meyering@lucent.com>
65978
65979         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
65980         of local `inptr' to avoid warning with some system declarations of
65981         iconv.
65982
65983 2001-01-02  Volker Borchert  <bt@teknon.de>
65984
65985         * m4/rename.m4: New file.
65986         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
65987
65988 2001-01-01  Jim Meyering  <meyering@lucent.com>
65989
65990         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
65991         even on systems with utmpx.h.  It's necessary for the declaration of
65992         utmp's ut_user member.  Reported by Andreas Jaeger.
65993
65994         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
65995         available. They are required for the declarations of getgrgid and
65996         getpwuid resp.
65997         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
65998         Reported by Andreas Jaeger.
65999
66000 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
66001
66002         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
66003         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
66004         so `make install' also works in VPATH builds.
66005
66006 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
66007
66008         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
66009         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
66010         can be used in subdirectories.
66011
66012 2000-12-29  Paul Eggert  <eggert@twinsun.com>
66013
66014         * lib/modechange.c: Do not assume that mode_t uses the
66015         traditional octal encoding.  E.g. "chmod 1 FOO" should set
66016         the other-execute bit of FOO even if S_IXOTH != 1.
66017
66018         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
66019         WOTH, XOTH, ALLM): New macros.
66020         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
66021          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
66022         Use them.
66023         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
66024         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
66025         (mode_compile):
66026         No need to use uintmax_t; unsigned long is long enough.
66027         Don't bother to get suffix since we don't use it.
66028
66029 2000-12-26  Jim Meyering  <meyering@lucent.com>
66030
66031         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
66032         better with autoheader.
66033
66034 2000-12-24  Jim Meyering  <meyering@lucent.com>
66035
66036         * lib/hash.c (is_prime): Return explicit boolean values.
66037         (hash_get_first): Return NULL to appease Irix5.6's 89.
66038         Reported by Nelson Beebe.
66039
66040 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
66041
66042         * lib/localcharset.c (locale_charset): Add support for Win32.
66043
66044 2000-12-18  Paul Eggert  <eggert@twinsun.com>
66045
66046         * lib/physmem.h, lib/physmem.c: New files.
66047
66048         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
66049         (noinst_HEADERS): Add physmem.h.
66050
66051         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
66052         't' for compatibility with Solaris 8 sort.
66053
66054 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
66055
66056         * lib/config.charset: Add support for BeOS.
66057
66058 2000-12-17  Jim Meyering  <meyering@lucent.com>
66059
66060         * m4/dos.m4 (jm_AC_DOS): New file and macro.
66061         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
66062
66063 2000-12-16  Jim Meyering  <meyering@lucent.com>
66064
66065         This bug had a serious impact on chown: `chown N:M FILE' (for integer
66066         N and M) would have treated it like `chown N:N FILE'.
66067
66068         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
66069
66070 2000-12-16  Jim Meyering  <meyering@lucent.com>
66071
66072         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
66073         SHELLS_FILE to a file name that's useful on djgpp systems.
66074         Include stdlib.h.
66075         (ADDITIONAL_DEFAULT_SHELLS): Define.
66076         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
66077         Based mostly on a patch from Prashant TR.
66078
66079 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
66080
66081         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
66082         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
66083         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
66084
66085 2000-12-08  Andreas Schwab  <schwab@suse.de>
66086
66087         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
66088         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
66089
66090 2000-12-07  Jim Meyering  <meyering@lucent.com>
66091
66092         * lib/stripslash.c (ISSLASH): Define.
66093         (strip_trailing_slashes): Use ISSLASH rather than comparing against
66094         `/'.
66095         From Prashant TR.
66096
66097         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
66098         (dir_name_r): Declare this function as static.
66099         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
66100         manifest itself on a name containing a mix of slashes and
66101         backslashes.
66102         Make this function work with names starting with a DOS-style
66103         drive letter and colon prefix.
66104         (dir_name): Append `.' if necessary.
66105         Based mostly on patches from Prashant TR and Eli Zaretskii.
66106
66107         * lib/dirname.h (dir_name_r): Remove prototype.
66108
66109 2000-12-06  Paul Eggert  <eggert@twinsun.com>
66110
66111         * m4/off_t-format.m4: Remove this file.
66112         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
66113
66114 2000-12-06  Jim Meyering  <meyering@lucent.com>
66115
66116         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
66117         replacement strtoull, we may well need the replacement strtoul, too.
66118         Check for declarations of strtoul and strtoull.
66119         Check for strtol.  Mainly as a cue to cause automake to include
66120         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
66121         Check for limits.h -- strtol.c needs it.
66122
66123 2000-12-05  Jim Meyering  <meyering@lucent.com>
66124
66125         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
66126
66127 2000-12-04  Jim Meyering  <meyering@lucent.com>
66128
66129         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
66130         Also include memory.h, stdlib.h, unistd.h if appropriate.
66131         Reported by Andreas Jaeger (conflicting declaration of malloc).
66132
66133 2000-12-02  Jim Meyering  <meyering@lucent.com>
66134
66135         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
66136         * m4/jm-macros.m4 (jm_MACROS): require it.
66137
66138 2000-12-02  Jim Meyering  <meyering@lucent.com>
66139
66140         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
66141
66142 2000-12-01  Paul Eggert  <eggert@twinsun.com>
66143
66144         * lib/memrchr.c: Include <config.h> before any system include file.
66145
66146 2000-11-30  Jim Meyering  <meyering@lucent.com>
66147
66148         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
66149
66150 2000-11-30  Jim Meyering  <meyering@lucent.com>
66151
66152         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
66153
66154 2000-11-29  Paul Eggert  <eggert@twinsun.com>
66155
66156         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
66157
66158 2000-11-26  Jim Meyering  <meyering@lucent.com>
66159
66160         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
66161
66162 2000-11-22  Paul Eggert  <eggert@twinsun.com>
66163
66164         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
66165         size of (size_t) -1; it's not portable.
66166
66167 2000-11-17  Jim Meyering  <meyering@lucent.com>
66168
66169         * lib/strstr.c: Update from GNU libc.
66170
66171 2000-11-17  Akim Demaille  <akim@epita.fr>
66172
66173         * lib/obstack.h: Formatting changes.
66174         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
66175         prevent type checking.
66176         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
66177         cast the value to (void *): assigning a `foo *' to a `void *'
66178         variable is valid.
66179         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
66180
66181 2000-11-16  Jim Meyering  <meyering@lucent.com>
66182
66183         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
66184
66185 2000-11-11  Jim Meyering  <meyering@lucent.com>
66186
66187         * lib/error.c: Add a couple #includes, merging from GNU libc version.
66188
66189 2000-11-10  Jim Meyering  <meyering@lucent.com>
66190
66191         * lib/obstack.h: Update from GNU libc.
66192         * lib/obstack.c: Likewise.
66193
66194 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
66195
66196         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
66197
66198 2000-11-06  Paul Eggert  <eggert@twinsun.com>
66199
66200         * lib/getusershell.c (setusershell): Use rewind rather than
66201         fseek/fseeko, to avoid configuration hassles with fseeko.
66202         Don't bother opening SHELLS_FILE if shellstream is NULL;
66203         it's not necessary.
66204
66205 2000-11-05  Jim Meyering  <meyering@lucent.com>
66206
66207         * lib/makepath.h (make_dir): Declare.
66208         * lib/makepath.c (make_dir): Remove `static' attribute.
66209         Tweak a comment.
66210
66211 2000-11-04  Jim Meyering  <meyering@lucent.com>
66212
66213         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
66214
66215 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
66216
66217         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
66218         last one in a bucket, advance to the next bucket.
66219
66220 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
66221
66222         * lib/fnmatch.c: Do not comment out all the code if we are using
66223         the GNU C library, because in some cases we are replacing buggy
66224         code in the GNU C library itself.
66225
66226 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
66227
66228         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
66229         (regex_compile): Catch bogus \(\1\).
66230
66231 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66232
66233         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
66234         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
66235         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
66236
66237 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66238
66239         * lib/error.h, getline.h, modechange.h:
66240         Remove "2000" from Copyright line, as the file hasn't been
66241         changed this year other than in the copyright notice.
66242
66243         * lib/xalloc.h: Add "2000" to Copyright line, as this file
66244         was changed this year.
66245
66246 2000-10-29  Jim Meyering  <meyering@lucent.com>
66247
66248         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
66249         renaming.
66250         * m4/ls-mntd-fs.m4: Likewise
66251
66252 2000-10-29  Jim Meyering  <meyering@lucent.com>
66253
66254         * lib/xstat.in: Fix grammar in comment.
66255
66256 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
66257
66258         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
66259         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
66260         doesn't define __restrict_arr.
66261
66262 2000-10-28  Jim Meyering  <meyering@lucent.com>
66263
66264         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
66265         (jm_PREREQ_MEMCHR): New function.
66266
66267 2000-10-28  Jim Meyering  <meyering@lucent.com>
66268
66269         * lib/memchr.c: Update from libc.
66270         Adjust for portability:
66271         [HAVE_STDLIB_H]: Include stdlib.h.
66272         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
66273         Undef __memchr, too.
66274         [!weak_alias]: Define __memchr to memchr.
66275
66276         * lib/regex.c: Update from libc.
66277         * lib/regex.h: Likewise.
66278         * lib/getopt1.c: Likewise.
66279         * lib/memcmp.c: Likewise.
66280
66281         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
66282         Avoid using fseek, when possible -- it's broken by design.
66283         Patch by Ulrich Drepper.
66284
66285 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
66286
66287         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
66288         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
66289         Giving in to popular pressure to shut up the compiler with casts.
66290
66291 2000-10-26  Jim Meyering  <meyering@lucent.com>
66292
66293         * lib/strftime.c: Update from libc.
66294
66295 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
66296
66297         * regex.c: More `unsigned char' -> `re_char' changes.
66298         Also change several `int' into `re_wchar_t'.
66299         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
66300         (PUSH_FAILURE_POINTER): Don't cast any more.
66301         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
66302         We want GCC to complain, since this piece of code makes
66303         re_match non-reentrant, which *should* be fixed.
66304         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
66305         (EXTEND_BUFFER): Use RETALLOC.
66306         (SET_LIST_BIT): Don't cast.
66307         (re_wchar_t): New type.
66308         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
66309         that those two functions will always properly return.
66310         (IMMEDIATE_QUIT_CHECK): Cast to void.
66311         (analyse_first): Use recursion rather than an explicit stack.
66312         (re_compile_fastmap): Can't fail anymore.
66313         (re_search_2): Don't check re_compile_fastmap for failure.
66314         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
66315         Now also sets the new value (passed in a new argument).
66316         (re_match_2_internal): Use it.
66317         Also, use a new var `reg' of type size_t when looping through regs
66318         rather than reuse the inappropriate `mcnt'.
66319
66320 2000-10-25  Jim Meyering  <meyering@lucent.com>
66321
66322         * lib/obstack.c: Update from libc.
66323
66324 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
66325
66326         * regex.c (regex_compile): Change the way of handling a range from
66327         a char less than 256 to a char not less than 256.
66328
66329 2000-10-24  Andrew Innes  <andrewi@gnu.org>
66330
66331         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
66332         NT-Emacs only.
66333         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
66334         so that re_search functions only quit when callers expect them to.
66335
66336 2000-10-23  Jim Meyering  <meyering@lucent.com>
66337
66338         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
66339         wrong.  That set_locale call must not have any side effects.
66340         From Paul Eggert.
66341
66342 2000-10-22  Jim Meyering  <meyering@lucent.com>
66343
66344         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
66345         [CYCLIC]: Remove now-unused definition.
66346
66347         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
66348         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
66349         Suggestion from Ulrich Drepper.
66350
66351 2000-10-21  Jim Meyering  <meyering@lucent.com>
66352
66353         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
66354         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
66355         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
66356
66357 2000-10-21  Jim Meyering  <meyering@lucent.com>
66358
66359         * lib/dirname.c (memrchr): Declare if necessary.
66360         (dir_name): Remove the restriction that there be no
66361         trailing slashes.  Now, this code skips past them, effectively
66362         ignoring them.
66363         [TEST_DIRNAME] (main): New unit tests.
66364
66365         * lib/memrchr.c: New file from GNU libc.
66366         Undef __memrchr, too.
66367         [!weak_alias]: Define __memrchr to memrchr.
66368         Guard weak_alias use with `#ifdef weak_alias'.
66369
66370 2000-10-21  Jim Meyering  <meyering@lucent.com>
66371
66372         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
66373         (dir_name): Use dir_name_r.
66374         * lib/dirname.h (dir_name_r): Declare it.
66375
66376 2000-10-17  Jim Meyering  <meyering@lucent.com>
66377
66378         * lib/quote.h (PARAMS): Define and use.
66379         Reported by Akim Demaille.
66380
66381         * lib/getopt.c: Update from libc.
66382
66383 2000-10-16  Jim Meyering  <meyering@lucent.com>
66384
66385         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
66386         setlocale.
66387         From Jan Fedak.
66388
66389 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
66390
66391         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
66392
66393 2000-09-25  Jim Meyering  <meyering@lucent.com>
66394
66395         * lib/md5.h (rol): Define (from GnuPG).
66396
66397         * lib/sha.c: Give credit (GnuPG) where due.
66398         (M): Use rol rather than open-coding it.
66399         Add a FIXME comment.
66400
66401 2000-09-21  Jim Meyering  <meyering@lucent.com>
66402
66403         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
66404         Reported by Michael Stone.
66405
66406 2000-09-20  Jim Meyering  <meyering@lucent.com>
66407
66408         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
66409         (noinst_HEADERS): Add sha.h.
66410         Based on code from Scott G. Miller and from GnuPG.
66411
66412 2000-09-18  Jim Meyering  <meyering@lucent.com>
66413
66414         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
66415         LIBS. Otherwise, everyone ends up linking with -lelf for some
66416         configurations.
66417         Reported by Mike Stone.
66418
66419 2000-09-15  Jim Meyering  <meyering@lucent.com>
66420
66421         * lib/regex.c: Update from libc.
66422
66423 2000-09-10  Jim Meyering  <meyering@lucent.com>
66424
66425         * lib/getopt.c (_getopt_internal): Update from glibc.
66426
66427 2000-09-09  Jim Meyering  <meyering@lucent.com>
66428
66429         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
66430         think it should be used as a general replacement for isascii.
66431         * lib/fnmatch.c: Likewise.
66432         * lib/mbswidth.c: Likewise
66433         * lib/regex.c: Likewise.
66434
66435         Don't use atoi.
66436         * lib/userspec.c: Include sys/param.h and limits.h.
66437         Include xstrtol.h.
66438         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66439         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
66440         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
66441         UID, GID.  Check range.
66442
66443 2000-09-06  Jim Meyering  <meyering@lucent.com>
66444
66445         * lib/getopt.c (_getopt_internal): Update from glibc.
66446
66447 2000-08-30  Jim Meyering  <meyering@lucent.com>
66448
66449         * lib/strftime.c: Merge in changes from GNU libc.
66450
66451 2000-08-26  Jim Meyering  <meyering@lucent.com>
66452
66453         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
66454         * m4/fpending.m4: New file.
66455
66456 2000-08-26  Jim Meyering  <meyering@lucent.com>
66457
66458         * lib/closeout.c: Include "__fpending.h".
66459         (close_stdout_status): Return right away if there's nothing to flush.
66460
66461         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
66462         * lib/__fpending.c: New file.
66463         * lib/__fpending.h: New file.
66464
66465 2000-08-20  Jim Meyering  <meyering@lucent.com>
66466
66467         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
66468         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
66469         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
66470
66471 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
66472
66473         Improve fileutils installation on systems where running
66474         programs (like install) can't be unlinked.
66475         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
66476         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
66477
66478 2000-08-07  Paul Eggert  <eggert@twinsun.com>
66479
66480         Standardize on "memory exhausted" instead of "Memory exhausted"
66481         or "virtual memory exhausted".
66482         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
66483         "virtual memory exhausted".
66484         * lib/same.c (same_name): Invoke xalloc_die instead of printing
66485         our own message.
66486         * lib/userspec.c (parse_user_spec): Likewise.
66487         * lib/bumpalloc.h: comment fix
66488         * lib/same.c, userspec.c: Include xalloc.h.
66489
66490         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66491         not char *const and pointing to a constant array.
66492         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66493         (xrealloc): Comment fix.
66494
66495         * lib/userspec.c (parse_user_spec):
66496         Don't translate a message until just before returning,
66497         to avoid unnecessary translation.
66498
66499 2000-08-07  Jim Meyering  <meyering@lucent.com>
66500
66501         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66502         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66503         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66504         getgroups.c, gethostname.c, getopt.h, group-member.c,
66505         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66506         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66507         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66508         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66509         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66510         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66511         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66512         yesno.c: Back out Copyright date changes for each file with no change
66513         this year.  This eases coordination with other programs using the same
66514         source code modules.  From Paul Eggert.
66515
66516 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66517
66518         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66519         not char, for compatibility with glibc 2.1.3 strftime.c.
66520
66521 2000-08-03  Greg McGary  <greg@mcgary.org>
66522
66523         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66524         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66525         (EXTEND_BUFFER): Use them.
66526
66527 2000-08-01  Jim Meyering  <meyering@lucent.com>
66528
66529         * lib/dirname.c (ISSLASH): Define.
66530         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66531         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66532         both `\' and `/' may be use as path separators.
66533         Based on a patch from Prashant TR.
66534
66535 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66536
66537         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66538         slot vector a constant, since it might get modified.
66539
66540 2000-07-31  Jim Meyering  <meyering@lucent.com>
66541
66542         * lib/xmalloc.c: Use `virtual memory exhausted', not
66543         `Memory exhausted'.
66544         * lib/obstack.c (print_and_abort): Likewise.
66545
66546 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66547
66548         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66549         buffer, so that the caller can always quote one small
66550         component of a "memory exhausted" message in slot 0.
66551         From a suggestion by Jim Meyering.
66552
66553 2000-07-30  Jim Meyering  <meyering@lucent.com>
66554
66555         * lib/makepath.c (make_path): Quote the other instance, too.
66556
66557         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66558         (STATIC_BUF_SIZE): Define.
66559         (quotearg_n_options): Use only statically allocated storage when
66560         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66561         than STATIC_BUF_SIZE.
66562
66563 2000-07-29  Jim Meyering  <meyering@lucent.com>
66564
66565         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66566         * lib/dirname.c (dir_name): Likewise.
66567
66568         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66569         `/'.
66570
66571         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66572         (dir_name): Assert that there are no trailing slashes.
66573
66574 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66575
66576         * lib/mbswidth.h (mbswidth): Add a flags argument.
66577         (mbswidth): New declaration.
66578         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66579         * lib/mbswidth.c (mbswidth): Add a flags argument.
66580         (mbsnwidth): New function.
66581
66582 2000-07-24  Jim Meyering  <meyering@lucent.com>
66583
66584         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66585
66586 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66587
66588         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66589
66590 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66591
66592         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66593         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66594         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66595         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66596         invoke multibyte primitives.
66597
66598 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66599
66600         * lib/quotearg.c:
66601         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66602         so that mbstate_t is always defined.
66603
66604         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66605         be 1 in at least one GCC installation, and this configuration
66606         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66607         performance on hosts that have mbrtowc but have only unibyte
66608         locales, but I assume these hosts are rare.
66609
66610 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66611
66612         * lib/mbswidth.c (_XOPEN_SOURCE):
66613         Don't define; this causes problems on Solaris 7.
66614         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66615
66616 2000-07-23  Jim Meyering  <meyering@lucent.com>
66617
66618         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66619         too: getgrgid, getpwuid, getuid.
66620
66621 2000-07-23  Jim Meyering  <meyering@lucent.com>
66622
66623         * lib/basename.c (base_name): Add an assertion.
66624
66625 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66626
66627         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66628         shadow its mbsinit function.
66629
66630 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66631
66632         * lib/mbswidth.h: New file.
66633         * lib/mbswidth.c: New file.
66634         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66635         (noinst_HEADERS): Add mbswidth.h.
66636
66637 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66638
66639         * lib/config.charset: Add support for FreeBSD. Improve support for
66640         HP-UX and IRIX 6.
66641
66642 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66643
66644         * m4/mbswidth.m4: New file.
66645         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66646
66647 2000-07-15  Jim Meyering  <meyering@lucent.com>
66648
66649         * lib/makepath.c: Include quote.h.
66650         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66651         corresponding argument in a `quote (...)' call.
66652         Give better diagnostics.
66653
66654         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66655         (noinst_HEADERS): Add quote.h.
66656
66657         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66658         from tar's src/misc.c.
66659         * lib/quote.h: New file.  Prototypes for same.
66660
66661 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66662
66663         From a suggestion by Bruno Haible.
66664         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66665         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66666         to decide whether to define the BeOS workaround macro;
66667         this adjusts to the change to AC_MBSTATE_T.
66668
66669 2000-07-14  Jim Meyering  <meyering@lucent.com>
66670
66671         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66672         jm_AC_TYPE_UINTMAX_T.
66673
66674 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66675
66676         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66677
66678         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
66679         quotearg_buffer_restyled): Add support for
66680         clocale_quoting_style.  Undo previous change to
66681         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
66682         and "{RIGHT QUOTATION MARK}" msgids.
66683
66684 2000-07-10  Paul Eggert  <eggert@twinsun.com>
66685
66686         From a suggestion by Bruno Haible.
66687         * m4/mbstate_t.m4 (AC_MBSTATE_T):
66688         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
66689         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
66690         and mbstate_t, to a single-part test that simply defines mbstate_t.
66691         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
66692         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
66693
66694 2000-07-10  Jim Meyering  <meyering@lucent.com>
66695
66696         * m4/strerror_r.m4: Mirror the correction made in autoconf.
66697
66698         * m4/gnu-source.m4: Output to confdefs.h directly.
66699         Suggestion from Akim Demaille.
66700
66701 2000-07-09  Paul Eggert  <eggert@twinsun.com>
66702
66703         The old behavior of quoting `like this' doesn't look good with
66704         newer, ISO-style fonts.  See:
66705         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
66706
66707         Instead, quote "like this" by default.  Let the translator
66708         tailor the locale-specific quoting behavior by providing
66709         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
66710
66711         * lib/quotearg.c (N_): New macro.
66712         (gettext_default): New function.
66713         (quotearg_buffer_restyled): Use
66714         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
66715         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
66716
66717 2000-07-09  Jim Meyering  <meyering@lucent.com>
66718
66719         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
66720         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
66721
66722         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
66723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
66724
66725 2000-07-09  Jim Meyering  <meyering@lucent.com>
66726
66727         * lib/Most files: Update copyright dates to include 2000.
66728
66729 2000-07-08  Jim Meyering  <meyering@lucent.com>
66730
66731         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
66732         if not defined.
66733         (xgethostname): Remove now-unnecessary #ifdef.
66734         Move declaration of `err' into loop where it's used.
66735
66736 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66737         and Bruno Haible  <haible@clisp.cons.org>
66738
66739         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
66740         only if the test for an object-type mbstate_t fails.  This
66741         prevents us from mistakenly reporting that mbstate_t is a
66742         system object type after we "#define mbstate_t int" to work
66743         around its lack.
66744
66745 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66746         and Bruno Haible  <haible@clisp.cons.org>
66747
66748         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
66749
66750 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66751
66752         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
66753         to strerror_r.
66754         Include <ctype.h> for use of isalpha.
66755
66756 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66757
66758         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
66759         by allocating a larger buffer. Test the gethostname return value for
66760         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
66761         returns an error and ENAMETOOLONG isn't defined.
66762
66763 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66764
66765         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
66766         dimension.
66767
66768 2000-07-04  Jim Meyering  <meyering@lucent.com>
66769
66770         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
66771         of the deprecated AC_CHECKING.
66772
66773 2000-07-04  Jim Meyering  <meyering@lucent.com>
66774
66775         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
66776         Reported by Bruno Haible.
66777
66778 2000-07-04  Jim Meyering  <meyering@lucent.com>
66779
66780         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
66781         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
66782         lacks mbrtowc.
66783
66784 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66785
66786         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
66787         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
66788
66789 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66790         and Bruno Haible  <haible@clisp.cons.org>
66791
66792         * lib/quotearg.c (mbrtowc):
66793         Assign to *pwc, and return 1 only if result is nonzero.
66794         (iswprint): Use ISPRINT when substituting our own mbrtowc.
66795
66796 2000-07-03  Jim Meyering  <meyering@lucent.com>
66797
66798         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
66799
66800 2000-07-03  Jim Meyering  <meyering@lucent.com>
66801
66802         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
66803         This is necessary to get a definition of e.g., UTMP_FILE on
66804         HP-UX 10.20.
66805         From Bob Proulx.
66806
66807 2000-07-02  Jim Meyering  <meyering@lucent.com>
66808
66809         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
66810
66811         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
66812         AC_LIBOBJ(function_name).
66813         * m4/chown.m4: Likewise.
66814         * m4/fnmatch.m4: Likewise.
66815         * m4/ftruncate.m4: Likewise.
66816         * m4/getgroups.m4: Likewise.
66817         * m4/getline.m4: Likewise.
66818         * m4/group-member.m4: Likewise.
66819         * m4/jm-macros.m4: Likewise.
66820         * m4/lstat.m4: Likewise.
66821         * m4/malloc.m4: Likewise.
66822         * m4/memcmp.m4: Likewise.
66823         * m4/nanosleep.m4: Likewise.
66824         * m4/putenv.m4: Likewise.
66825         * m4/realloc.m4: Likewise.
66826         * m4/regex.m4: Likewise.
66827         * m4/stat.m4: Likewise.
66828         * m4/strftime.m4: Likewise.
66829
66830 2000-07-02  Jim Meyering  <meyering@lucent.com>
66831
66832         * lib/quotearg.c (mbstate_t): Don't define here.
66833
66834 2000-07-02  Jim Meyering  <meyering@lucent.com>
66835
66836         * lib/nanosleep.c (SIGCONT): Define if not already defined.
66837
66838 2000-07-01  Jim Meyering  <meyering@lucent.com>
66839
66840         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
66841
66842 2000-07-01  Jim Meyering  <meyering@lucent.com>
66843
66844         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
66845         problem.
66846
66847 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66848
66849         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
66850         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
66851
66852 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66853
66854         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
66855         per change in ../m4/ls-mntd-fs.m4.
66856         (read_filesystem_list): Ignore symbolic links.
66857
66858 2000-06-29  Jim Meyering  <meyering@lucent.com>
66859
66860         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
66861         for declaration of strcmp.
66862
66863         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
66864
66865         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
66866         Avoid warning by casting result to `char *' to remove `const'.
66867
66868 2000-06-28  Jim Meyering  <meyering@lucent.com>
66869
66870         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
66871         included by quotearg.c, for which we perform this test.  From
66872         Bruno Haible.
66873
66874 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66875
66876         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
66877         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
66878         <utmpx.h> exists, put readutmp.o into LIBOBJS.
66879
66880 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66881
66882         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
66883
66884 2000-06-26  Paul Eggert  <eggert@twinsun.com>
66885
66886         savedir now sets errno on failure and invokes xmalloc to get memory.
66887         Fix a couple of other minor bugs while we're at it.
66888
66889         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
66890         (NAMLEN): Remove macro.
66891         (malloc, realloc): Remove decls.
66892         (stpcpy): Likewise.
66893         ("xalloc.h"): Include.
66894         (NAME_SIZE_DEFAULT): New macro.
66895         (savedir): Use xmalloc / xrealloc to allocate memory.
66896         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
66897         Skip "" directory entries.
66898         Use strlen to calculate directory entry length, since the old method
66899         is rarely used these days and isn't worth supporting.
66900         Don't use a pointer after freeing it.
66901         Check for integer overflow when calculating allocation size.
66902         Use memcpy to copy entries, instead of stpcpy.
66903         Set errno properly when returning NULL.
66904         Check for readdir error.
66905
66906 2000-06-26  Jim Meyering  <meyering@lucent.com>
66907
66908         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
66909
66910 2000-06-25  Jim Meyering  <meyering@lucent.com>
66911
66912         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
66913         Linux header bug when _XOPEN_SOURCE is defined to 500.
66914
66915 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66916
66917         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
66918         deficiency.
66919
66920 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66921
66922         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
66923         Include xalloc.h.
66924         Don't include <stdlib.h>.  Don't declare malloc, realloc.
66925
66926 2000-06-24  Jim Meyering  <meyering@lucent.com>
66927
66928         * m4/strerror_r.m4: Revive this file -- to try out an experimental
66929         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
66930         for which strerror does return char*, but which lacks a conveniently
66931         accessible declaration of the function.  If the compile-test says
66932         strerror_r doesn't work, then resort to a `run'-test that works on
66933         BeOS and segfaults on DEC Unix.
66934
66935 2000-06-24  Jim Meyering  <meyering@lucent.com>
66936
66937         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
66938
66939 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66940
66941         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
66942         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
66943
66944 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66945
66946         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
66947         (mbrtowc, mbstate_t): Define substitutes if
66948         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
66949         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
66950         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
66951
66952 2000-06-23  Jim Meyering  <meyering@lucent.com>
66953
66954         * m4/afs.m4: Add missing AC_MSG_RESULT.
66955         Reported by Bruno Haible.
66956
66957         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
66958         Suggestion from Bruno Haible.
66959
66960 2000-06-23  Jim Meyering  <meyering@lucent.com>
66961
66962         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
66963
66964 2000-06-21  Jim Meyering  <meyering@lucent.com>
66965
66966         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
66967
66968 2000-06-21  Jim Meyering  <meyering@lucent.com>
66969
66970         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
66971         (noinst_HEADERS): Add getstr.h.
66972
66973         * lib/getline.c (getstr): Move into a separate file.
66974         * lib/getstr.c (getstr): New file, extracted from getline.c, with
66975         the following changes: new parameter, delim2; both delim[12]
66976         parameters have type `int', not `char'.  The latter would lose
66977         with 8-bit delimiters.
66978         * lib/getstr.h: New file.
66979
66980 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66981
66982         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
66983         than 1024, return a memory chunk of least possible size, instead
66984         of size PATH_MAX + 2. In the loop, increment the size proportionally.
66985         Use free/xmalloc instead of xrealloc to avoid copying for very long
66986         paths.
66987
66988 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66989
66990         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
66991         the empty string.
66992
66993 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66994
66995         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
66996         address, not strdup.  Include <stdlib.h> and don't declare free().
66997
66998 2000-06-19  Jim Meyering  <meyering@lucent.com>
66999
67000         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
67001
67002 2000-06-18  Jim Meyering  <meyering@lucent.com>
67003
67004         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
67005
67006         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
67007         `checking whether...' message to be consistent with that of the
67008         lstat test.
67009
67010 2000-06-18  Jim Meyering  <meyering@lucent.com>
67011
67012         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
67013         Besides, these days every porting target provides a mkdir function.
67014
67015         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
67016         needed. (this snippet comes from src/system.h).
67017
67018 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
67019
67020         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
67021
67022 2000-06-15  Paul Eggert  <eggert@twinsun.com>
67023
67024         * lib/human.c (adjust_value): New function.
67025         (human_readable_inexact): Apply rounding style even when
67026         printing approximate values.
67027
67028 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67029
67030         * lib/human.c (human_readable_inexact): Allow an input block
67031         size that is not a multiple of the output block size, and vice versa.
67032         Reported by Piergiorgio Sartor.
67033
67034 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67035
67036         * lib/getdate.y (get_date): Apply relative times after time
67037         zone indicator, not before.  Reported by Todd A. Jacobs.
67038
67039 2000-06-13  Jim Meyering  <meyering@lucent.com>
67040
67041         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
67042
67043         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
67044
67045 2000-06-12  Paul Eggert  <eggert@twinsun.com>
67046
67047         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
67048
67049 2000-06-12  Jim Meyering  <meyering@lucent.com>
67050
67051         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
67052         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
67053         optional argument.
67054         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
67055         the optional argument, `lib'.
67056
67057 2000-06-08  Jim Meyering  <meyering@lucent.com>
67058
67059         * m4/largefile.m4: Remove file (now that it's part of autoconf).
67060
67061 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67062
67063         Rewrite largefile configuration so that we don't need to run
67064         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
67065         AC_CANONICAL_HOST in configure.in -- jmm]
67066
67067         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
67068         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
67069         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
67070         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
67071         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
67072         All uses changed.
67073         Instead of inspecting the output of getconf, try to compile the
67074         test program without and with the macro definition.
67075         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
67076         for getconf.  Instead, check for the needed flags by compiling
67077         test programs.
67078
67079 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67080
67081         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
67082
67083 2000-06-04  Jim Meyering  <meyering@lucent.com>
67084
67085         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
67086         SunOS 4.1.4 for which gid_t is an unsigned type.
67087
67088 2000-06-03  Jim Meyering  <meyering@lucent.com>
67089
67090         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
67091         now that autoconf requires that.
67092
67093         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
67094         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
67095         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
67096
67097 2000-06-03  Jim Meyering  <meyering@lucent.com>
67098
67099         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
67100
67101 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67102
67103         * m4/glibc21.m4: New file.
67104         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
67105
67106 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67107
67108         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
67109         newer, don't install charset.alias.
67110         * lib/config.charset: Change the Linux/glibc rules so they become empty
67111         on glibc-2.1 or newer.
67112
67113 2000-06-02  Jim Meyering  <meyering@lucent.com>
67114
67115         * lib/mountlist.c: Back out last change.  Instead, do this...
67116         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
67117         me_dummy member using the same `ignore'-testing code.
67118         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
67119         fs_type strings.
67120         From Mark D. Roth.
67121
67122 2000-05-29  Jim Meyering  <meyering@lucent.com>
67123
67124         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
67125         mounts with the `ignore' attribute.  Based on a patch from
67126         Mark D. Roth.
67127
67128 2000-05-28  Jim Meyering  <meyering@lucent.com>
67129
67130         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
67131         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67132         * m4/stat.m4: Likewise.
67133         * m4/lstat.m4: Likewise.
67134         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
67135
67136         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
67137         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
67138
67139 2000-05-26  Jim Meyering  <meyering@lucent.com>
67140
67141         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
67142
67143 2000-05-24  Jim Meyering  <meyering@lucent.com>
67144
67145         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
67146         autoconf requires that.
67147         * m4/lib-check.m4: Likewise.
67148         * m4/jm-macros.m4: Likewise.
67149         * m4/strftime.m4: Likewise.
67150
67151         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
67152         AC_CHECK_DECLS, now that autoconf requires that.
67153
67154 2000-05-22  Jim Meyering  <meyering@lucent.com>
67155
67156         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67157         * m4/lstat.m4: Likewise.
67158
67159 2000-05-22  Jim Meyering  <meyering@lucent.com>
67160
67161         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
67162
67163 2000-05-20  Jim Meyering  <meyering@lucent.com>
67164
67165         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
67166         (jm_PREREQ): Use it.
67167
67168 2000-05-18  Jim Meyering  <meyering@lucent.com>
67169
67170         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
67171         back, too, since it may have been modified by allocate_entry.
67172         (hash_delete): Rewrite to use neither the assignment operator
67173         nor the comma operator in an if-expression.
67174
67175 2000-05-15  Paul Eggert  <eggert@twinsun.com>
67176
67177         * lib/closeout.c:
67178         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
67179         Remove; no longer needed.
67180         "quotearg.h": Add include.
67181         (file_name): Do not bother to explicitly initialize to NULL; it's less
67182         efficient on some hosts.
67183         (close_stdout_status): Remove test as to whether stdout was already
67184         closed; it breaks for the case "echo x | sort >&-".
67185         Quote file name colons.
67186         Do not assume that _("write error") lacks format strings.
67187
67188 2000-05-15  Jim Meyering  <meyering@lucent.com>
67189
67190         * lib/version-etc.c (version_etc_copyright): Update the copyright
67191         string used in all --version output.
67192
67193 2000-05-14  Jim Meyering  <meyering@lucent.com>
67194
67195         * lib/closeout.c (close_stdout_set_file_name): New function.
67196         (close_stdout_status): Use new file-scoped global.
67197         Return right away if fstat says the stdout file descriptor is invalid.
67198         * lib/closeout.h (close_stdout_set_file_name): Declare.
67199
67200 2000-05-10  Jim Meyering  <meyering@lucent.com>
67201
67202         * lib/closeout.c [default_exit_status]: New file-scoped variable.
67203         (close_stdout_set_status): New function.
67204         * lib/closeout.h (close_stdout_set_status): Declare.
67205
67206 2000-05-09  Jim Meyering  <meyering@lucent.com>
67207
67208         * m4/gettext.m4: Rename this...
67209         * m4/libintl.m4: ...to this.
67210
67211 2000-05-08  Jim Meyering  <meyering@lucent.com>
67212
67213         * lib/long-options.c: Don't include closeout.h.
67214         (parse_long_options): Don't call close_stdout for --version.
67215
67216 2000-05-06  Paul Eggert  <eggert@twinsun.com>
67217
67218         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
67219         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
67220         2.1.3 bug.  This avoids a clash when files like regex.c define
67221         _GNU_SOURCE.
67222
67223 2000-05-06  Jim Meyering  <meyering@lucent.com>
67224
67225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
67226         (AC_REPLACE_FUNCS): Add strnlen.
67227
67228         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
67229         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
67230
67231         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
67232         AC_SEARCH_LIBS call for nanosleep.
67233         (LIB_NANOSLEEP): Set and AC_SUBST.
67234
67235 2000-05-06  Jim Meyering  <meyering@lucent.com>
67236
67237         * lib/strnlen.c: Undefine __strnlen and strnlen.
67238         [!weak_alias]: Define __strnlen to strnlen.
67239
67240         * lib/atexit.c: New file, from libiberty.
67241
67242 2000-05-06  Jim Meyering  <meyering@lucent.com>
67243
67244         * lib/closeout.c (close_stdout_status): Also check for errors on the
67245         stderr stream.
67246
67247 2000-05-05  Jim Meyering  <meyering@lucent.com>
67248
67249         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
67250         AC_SEARCH_LIBS call for clock_gettime.
67251         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
67252
67253         * m4/search-libs.m4: Update from autoconf.
67254
67255         su doesn't work on Solaris 2.6.
67256         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
67257         <shadow.h>.  Reported by Dragos Harabor.
67258
67259 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
67260
67261         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
67262         memcpy instead of xmalloc, xrealloc, path_concat.
67263         (locale_charset): Treat empty environment variables as absent.
67264         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
67265
67266 2000-05-04  Jim Meyering  <meyering@lucent.com>
67267
67268         * lib/getopt.c: Update from glibc.
67269         * lib/obstack.c: Likewise.
67270         * lib/obstack.h: Likewise.
67271         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
67272         file
67273
67274         * lib/regex.h: Likewise.
67275         * lib/strndup.c: Likewise.
67276         * lib/strnlen.c: New file, from glibc.
67277
67278 2000-05-03  Jim Meyering  <meyering@lucent.com>
67279
67280         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
67281
67282 2000-05-02  Paul Eggert  <eggert@twinsun.com>
67283
67284         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
67285         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
67286         compile-time test, rather than inspecting host and OS, to
67287         decide whether to define _LARGEFILE_SOURCE.
67288
67289 2000-05-01  Jim Meyering  <meyering@lucent.com>
67290
67291         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
67292
67293         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
67294         Based on a patch from Bruno Haible.
67295
67296 2000-05-01  Jim Meyering  <meyering@lucent.com>
67297
67298         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
67299
67300 2000-04-29  Jim Meyering  <meyering@lucent.com>
67301
67302         * lib/path-concat.c: Declare strdup only if it's not defined.
67303         * lib/canon-host.c: Likewise.
67304
67305 2000-04-28  Jim Meyering  <meyering@lucent.com>
67306
67307         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
67308         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
67309         is included first, then limits.h is included by locale.h by libintl.h.
67310         From John David Anglin.
67311
67312 2000-04-25  Jim Meyering  <meyering@lucent.com>
67313
67314         * lib/makepath.c (S_IRWXUGO): Define.
67315         (make_path): Always perform explicit chmod if MODE specifies any
67316         of the `special' permission bits.  Prompted by a bug report against
67317         install from Mate Wierdl and Joost van Baal.
67318
67319 2000-04-18  Jim Meyering  <meyering@lucent.com>
67320
67321         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
67322         (jm_PREREQ): Use it.
67323
67324 2000-04-18  Jim Meyering  <meyering@lucent.com>
67325
67326         * lib/README: New file.
67327
67328         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
67329         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
67330
67331 2000-04-17  Jim Meyering  <meyering@lucent.com>
67332
67333         Get it right :-)
67334         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
67335         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
67336         Suggestion from Akim Demaille.
67337
67338 2000-04-17  Jim Meyering  <meyering@lucent.com>
67339
67340         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
67341         the definition of it to rpl_strftime also defined-away the system's
67342         declaration.
67343
67344 2000-04-15  Jim Meyering  <meyering@lucent.com>
67345
67346         Use `C' to denote so-called `contiguous' files, the same way
67347         that tar does.
67348         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
67349         (ftypelet): Use S_ISCTG.
67350         From Michael Deutschmann.
67351
67352 2000-04-14  Jim Meyering  <meyering@lucent.com>
67353
67354         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
67355         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
67356         clobbered.
67357
67358 2000-04-14  Jim Meyering  <meyering@lucent.com>
67359
67360         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
67361
67362 2000-04-13  Jim Meyering  <meyering@lucent.com>
67363
67364         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
67365         AH_VERBATIM to insert required #ifndef into config.h.in.
67366         Suggestion from Akim Demaille.
67367
67368 2000-04-12  Jim Meyering  <meyering@lucent.com>
67369
67370         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
67371         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
67372         Christian Krackowizer.
67373
67374         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
67375         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
67376         (AC_SYS_LARGEFILE): Require.
67377         (AM_C_PROTOTYPES): Require.
67378
67379 2000-04-08  Jim Meyering  <meyering@lucent.com>
67380
67381         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
67382         names don't conflict.  Reported by Eli Zaretskii.
67383
67384 2000-04-07  Jim Meyering  <meyering@lucent.com>
67385
67386         * lib/putenv.c: Move inclusion of errno.h so it follows that of
67387         sys/types.h, to work around system header problems on AIX 3.2.5.
67388         From Bruno Haible.
67389
67390 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
67391
67392         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
67393         bug.  Deal with the different error behavior of Irix iconv.
67394
67395 2000-04-05  Paul Eggert  <eggert@twinsun.com>
67396
67397         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
67398         IRIX if the installer said otherwise.
67399
67400 2000-04-05  Jim Meyering  <meyering@lucent.com>
67401
67402         Portability tweaks required for ultrix4.3.
67403         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
67404         (jm_CHECK_DECLS): Add getutent to the list of functions.
67405         (_jm_DECL_HEADERS): Add utmpx.h.
67406         From John David Anglin.
67407
67408         * m4/strftime.m4: Back out the 2000-04-02 change.
67409         Instead of that change, simply undefine putenv in the test program.
67410
67411 2000-04-05  Jim Meyering  <meyering@lucent.com>
67412
67413         Portability tweaks required for ultrix4.3.
67414         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
67415         getutent.
67416         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
67417         * lib/canon-host.c: Declare strdup.
67418         * lib/path-concat.c: Likewise.
67419         From John David Anglin.
67420
67421 2000-04-04  Jim Meyering  <meyering@lucent.com>
67422
67423         Be more DOS 8.3-friendly.
67424         * lib/ref-add.sin: Renamed from ref-add.sed.in.
67425         * lib/ref-del.sin: Renamed from ref-del.sed.in.
67426         * lib/Makefile.am: Reflect renaming.
67427         Reported by Eli Zaretskii.
67428
67429         Use a temporary file name that won't clash with `charset.alias'
67430         in the DOS 8.3 name space.
67431         * lib/Makefile.am (charset_tmp): Define.
67432         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
67433         (uninstall-local): Likewise.
67434         Reported by Eli Zaretskii.
67435
67436 2000-04-03  Jim Meyering  <meyering@lucent.com>
67437
67438         * m4/gettext.m4: Fix typo in comment.
67439
67440         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
67441         textutils/configure.in).  Suggestion from Paul Eggert.
67442         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
67443
67444 2000-04-02  Paul Eggert  <eggert@twinsun.com>
67445
67446         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
67447         variable in the shell rather than using putenv, which isn't
67448         portable.  This avoids the configure-time inter-test dependency
67449         on the potentially-renamed putenv function.
67450
67451 2000-03-30  Paul Eggert  <eggert@twinsun.com>
67452
67453         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
67454         before checking struct stat.st_blksize, so that
67455         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
67456
67457 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67458
67459         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
67460         since strftime.c uses HAVE_STRFTIME to decide whether to use
67461         the underlying strftime.
67462
67463 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67464
67465         * lib/time/strftime.c (my_strftime): Make sure we call the system
67466         strftime, not ourselves, when invoking the underlying strftime.
67467
67468 2000-03-24  Jim Meyering  <meyering@lucent.com>
67469
67470         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
67471         (charset_alias): Define.
67472         (install-exec-local): Factor out common code.
67473         (uninstall-local): Split lines longer than 80.
67474         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
67475         (SUFFIXES): Define.
67476         (.sed.in.sed): New rule.  Don't redirect directly to $@.
67477         (CLEANFILES): Add ref-add.sed and ref-del.sed.
67478
67479 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
67480
67481         * lib/config.charset: Output a line containing "Packages using this
67482         file".
67483         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
67484         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
67485         ref-del.sed): New rules.
67486
67487 2000-03-17  Jim Meyering  <meyering@lucent.com>
67488
67489         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67490         Otherwise, include <strings.h>
67491
67492 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67493
67494         * lib/unicodeio.c (utf8_wctomb): New function.
67495         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67496         format instead of in UCS-4 with platform dependent endianness.
67497
67498 2000-03-10  Jim Meyering  <meyering@lucent.com>
67499
67500         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67501         From Marco Franzen.
67502
67503 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67504
67505         * lib/savedir.c (savedir): Work even if directory size is
67506         negative; this can happen with some screwy NFS configurations.
67507
67508 2000-03-06  Jim Meyering  <meyering@lucent.com>
67509
67510         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67511         if it's NULL (because we ran out of memory).  From Bruno Haible.
67512
67513 2000-03-05  Jim Meyering  <meyering@lucent.com>
67514
67515         * lib/localcharset.c ("path-concat.h"): Include.
67516         (get_charset_aliases): Use path_concat instead of ANSI string
67517         concatenation.
67518
67519         * lib/unicodeio.h (PARAMS): Define.
67520         Use it to guard prototype.
67521
67522 2000-03-04  Jim Meyering  <meyering@lucent.com>
67523
67524         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67525         for lib/localcharset.c.
67526
67527 2000-03-04  Jim Meyering  <meyering@lucent.com>
67528
67529         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67530         installing into it.
67531         (uninstall-local): Uncomment this rule so `make distcheck' works
67532         once again.
67533
67534         * lib/unicodeio.c (<errno.h>): Include it.
67535         (errno): Declare if not defined.
67536
67537         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67538
67539         * lib/config.charset: New version, incorporating remarks from a linux
67540         i18n mailing list.  From Bruno Haible.
67541
67542 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67543
67544         * m4/codeset.m4: New file.
67545         * m4/iconv.m4: New file.
67546         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67547
67548 2000-03-03  Jim Meyering  <meyering@lucent.com>
67549
67550         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67551
67552 2000-03-02  Jim Meyering  <meyering@lucent.com>
67553
67554         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67555         the messages come out on separate lines.
67556
67557         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67558         rather than jm_CHECK_DECLARATIONS.
67559         * m4/decl.m4: Remove now-unused file.
67560
67561         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67562         geteuid.
67563
67564 2000-03-02  Jim Meyering  <meyering@lucent.com>
67565
67566         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67567
67568 2000-03-01  Jim Meyering  <meyering@lucent.com>
67569
67570         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67571         * lib/unicodeio.c: Likewise.
67572
67573 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67574
67575         * lib/config.charset: New file.
67576         * lib/localcharset.c: New file.
67577         * lib/unicodeio.h, lib/unicodeio.c: New files.
67578         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67579         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67580         (noinst_HEADERS): Add unicodeio.h.
67581         (all-local, install-exec-local, charset.alias): New targets.
67582
67583 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67584
67585         * lib/quotearg.c (ALERT_CHAR): New macro.
67586         (quotearg_buffer_restyled): Use it.
67587
67588 2000-02-27  Jim Meyering  <meyering@lucent.com>
67589
67590         * m4/check-decl.m4: Add getenv to the list.
67591
67592 2000-02-27  Jim Meyering  <meyering@lucent.com>
67593
67594         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67595         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67596
67597         * lib/backupfile.c: Guard inclusion of stdlib.h with
67598         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67599         Declare malloc if needed.
67600
67601         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67602         `#ifndef HAVE_DECL..'
67603         now that autoconf always defines the HAVE_DECL_ symbols.
67604         * lib/human.c: Likewise.
67605         * lib/same.c: Likewise.
67606         * lib/strtoumax.c: Likewise.
67607
67608         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67609         declaration check was not run.
67610         * lib/hash.c: Likewise.
67611         * lib/human.c: Likewise.
67612         * lib/same.c: Likewise.
67613         * lib/strtoumax.c: Likewise.
67614
67615         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67616         `.', then first look up the entire `.'-containing string as a login
67617         name.
67618
67619 2000-02-23  Jim Meyering  <meyering@lucent.com>
67620
67621         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67622         in place of my hack.
67623
67624 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67625
67626         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67627         (textint): New typedef.
67628         (parser_control): Member year changed from int to textint.
67629         All uses changed.
67630         (YYSTYPE): Removed; replaced by %union with int and textint members.
67631         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67632         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67633         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67634         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67635         (date, number, to_year): Use width of number in digits, not its value,
67636         to determine whether it's a 2-digit year, or a 2-digit time.
67637         (yylex): Store number of digits of numeric tokens.
67638         Reported by John Kendall.
67639
67640         (parser_control): Changed from struct parser_control to typedef (for
67641         consistency).  All uses changed.
67642
67643         (tID): Removed; not used.
67644         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67645
67646 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67647
67648         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67649         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67650
67651 2000-02-12  Jim Meyering  <meyering@lucent.com>
67652
67653         * lib/userspec.c (ISDIGIT): Define it.
67654         (isdigit): Remove definition.
67655         (is_number): Use ISDIGIT, not isdigit.
67656         <libintl.h>: Include.
67657         (_ and N_): Define.
67658         (parse_user_spec): Mark translatable strings.
67659
67660 2000-02-10  Jim Meyering  <meyering@lucent.com>
67661
67662         With these changes, nanosleep.[ch] are finally enough like the other
67663         lib/* replacement files to compile on a few more losing systems.
67664
67665         * lib/nanosleep.h: Don't include config.h.
67666         Remove prototype from declaration of nanosleep.
67667         (PARAMS): Remove now-unneeded definition.
67668         * lib/nanosleep.c: #undef nanosleep.
67669         (rpl_nanosleep): Rename from nanosleep.
67670
67671 2000-02-10  Jim Meyering  <meyering@lucent.com>
67672
67673         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67674         gnu_nanosleep to rpl_nanosleep.
67675
67676 2000-02-09  Jim Meyering  <meyering@lucent.com>
67677
67678         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
67679         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
67680
67681 2000-02-08  Akim Demaille  <akim@epita.fr>
67682
67683         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
67684         `[' and `]' and remove uses of `changequote'.
67685         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
67686         (AC_SYS_LARGEFILE): Likewise.
67687         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67688         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
67689         of changequote.
67690         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
67691         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
67692         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
67693         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
67694
67695 2000-02-05  Jim Meyering  <meyering@lucent.com>
67696
67697         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
67698         Remove explicit use of AC_HEADER_TIME.  It is required by
67699         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
67700         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
67701         in autoconf whereby the expansion of the latter ended up preceding
67702         the expansion of its prerequisite, AC_HEADER_TIME.
67703         Reported by Volker Borchert.
67704
67705 2000-02-03  Jim Meyering  <meyering@lucent.com>
67706
67707         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
67708
67709 2000-02-03  Jim Meyering  <meyering@lucent.com>
67710
67711         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
67712         rather than with `#if HAVE_UTMPNAME'.
67713
67714 2000-02-02  Jim Meyering  <meyering@lucent.com>
67715
67716         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
67717         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
67718         Reported by Eli Zaretskii.
67719
67720 2000-02-01  Jim Meyering  <meyering@lucent.com>
67721
67722         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
67723
67724 2000-01-31  Jim Meyering  <meyering@lucent.com>
67725
67726         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
67727         functions.  Add the time.h and sys/time.h headers along with the
67728         AC_REQUIRE'ment of AC_HEADER_TIME.
67729
67730 2000-01-31  Jim Meyering  <meyering@lucent.com>
67731
67732         * lib/nanosleep.h (nanosleep): Guard declaration with
67733         `#if ! HAVE_DECL_NANOSLEEP'.
67734         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
67735         the declaration in that vendor's sys/timers.h.
67736         Reported by Christian Krackowizer.
67737
67738         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
67739         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
67740         (ISPRINT): Likewise.
67741         Reported by Tom Tromey.
67742
67743 2000-01-30  Jim Meyering  <meyering@lucent.com>
67744
67745         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
67746
67747         * m4/prereq.m4 (utmp_includes): Define.
67748         Check for ut_user and ut_name members in both struct utmpx
67749         and struct utmp.
67750
67751 2000-01-30  Jim Meyering  <meyering@lucent.com>
67752
67753         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
67754         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
67755         header files where only utmpx.ut_user is declared.
67756
67757         * lib/readutmp.h (UT_USER): Define.
67758
67759 2000-01-29  Jim Meyering  <meyering@lucent.com>
67760
67761         * m4/lib-check.m4: New file containing library-related checks from
67762         fileutils and sh-utils (textutils had none).
67763
67764 2000-01-28  Jim Meyering  <meyering@lucent.com>
67765
67766         * m4/perl.m4: Change format of warning message to look more like that
67767         from the missing script.  Suggestion from François Pinard.
67768
67769 2000-01-25  Jim Meyering  <meyering@lucent.com>
67770
67771         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
67772         well as time.h in the compile check.
67773         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
67774         Fix typo in cross-compiling case: s/yes/no/.
67775
67776 2000-01-23  Jim Meyering  <meyering@lucent.com>
67777
67778         * m4/jm-macros.m4: Move df-related tests here from
67779         fileutils/configure.in
67780
67781         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
67782         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
67783
67784         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
67785         s/space/ac_fsusage_space/.
67786         (jm_FILE_SYSTEM_USAGE): Take two parameters.
67787
67788         * m4/ftruncate.m4: New file (derived from part of
67789         fileutils/configure.in).
67790         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
67791         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
67792
67793         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
67794         AC_SUBST these here, rather than just in sh-util/configure.in, so
67795         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
67796         all the same.
67797         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
67798         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
67799         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
67800         (AC_SUBST(POW_LIBM)): Likewise.
67801         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
67802
67803 2000-01-23  Jim Meyering  <meyering@lucent.com>
67804
67805         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
67806         obstack.c.
67807
67808 2000-01-22  Jim Meyering  <meyering@lucent.com>
67809
67810         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
67811
67812         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
67813
67814         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
67815         configure.in
67816         (AC_CHECK_HEADERS): Likewise for sh-utils.
67817         (AC_CHECK_HEADERS): Likewise for textutils.
67818         Merge the three lists of headers.
67819
67820         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
67821         from fileutils' configure.in.
67822
67823         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
67824         code. Moved tests into their own function (_jm_DECL_HEADERS) in
67825         check-decl.m4.
67826
67827         * m4/check-decl.m4: Use #if rather than #ifdef.
67828         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
67829         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
67830         (_jm_DECL_HEADERS): Define new function.
67831         (jm_CHECK_DECLARATIONS): Require it.
67832
67833 2000-01-22  Jim Meyering  <meyering@lucent.com>
67834
67835         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
67836         [! HAVE_DECL_STRTOULL]: Declare strtoull.
67837         Required for some AIX systems.  Reported by Christian Krackowizer.
67838         [TESTING] (main): New function.
67839
67840         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
67841         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
67842         letters.
67843
67844         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
67845         iswprint.
67846
67847         * lib/strverscmp.c (ISDIGIT): Define.
67848         (strverscmp): Use ISDIGIT, not isdigit.
67849
67850 2000-01-19  Jim Meyering  <meyering@lucent.com>
67851
67852         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
67853         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
67854         defines `struct timespec' in <sys/time.h>
67855
67856         * m4/c-bs-a.m4: Remove uses of changequote altogether.
67857         Thanks to Akim for explaining.
67858
67859 2000-01-17  Paul Eggert  <eggert@twinsun.com>
67860
67861         * lib/nanosleep.c (nanosleep):
67862         Don't use SA_INTERRUPT to decide whether to call sigaction, as
67863         POSIX.1 doesn't require SA_INTERRUPT and some systems
67864         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
67865         it's been part of POSIX.1 since day 1 (in 1988).
67866
67867 2000-01-17  Jim Meyering  <meyering@lucent.com>
67868
67869         * lib/interlock: Remove unused file.  Reported by François Pinard.
67870
67871 2000-01-16  Paul Eggert  <eggert@twinsun.com>
67872
67873         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
67874         alert, backslash, formfeed, and vertical tab unnecessarily in
67875         shell quoting style.
67876
67877 2000-01-16  Jim Meyering  <meyering@lucent.com>
67878
67879         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
67880         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
67881         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
67882         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
67883
67884 2000-01-16  Jim Meyering  <meyering@lucent.com>
67885
67886         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
67887         because the latter didn't work.
67888
67889 2000-01-15  Jim Meyering  <meyering@lucent.com>
67890
67891         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
67892         (AC_REPLACE_FUNCS): Add memcpy and memset.
67893         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
67894         Add strpbrk.
67895         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
67896
67897 2000-01-12  Jim Meyering  <meyering@lucent.com>
67898
67899         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
67900         (jm_PREREQ): Use it.
67901         (jm_PREREQ_READUTMP): New macro.
67902         (jm_PREREQ): Use it.
67903
67904 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67905
67906         Quote multibyte characters correctly.
67907         * m4/c-bs-a.m4: New file.
67908         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
67909         (jm_PREREQ): Use it.
67910
67911 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67912
67913         * m4/uintmax_t.m4: Port to autoconf 2.13.
67914
67915 2000-01-08  Jim Meyering  <meyering@ascend.com>
67916
67917         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
67918         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
67919
67920 2000-01-04  Jim Meyering  <meyering@ascend.com>
67921
67922         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
67923         jm_STRUCT_DIRENT_D_TYPE.
67924         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
67925         jm_STRUCT_DIRENT_D_INO.
67926         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
67927         jm_STRUCT_UTIMBUF.
67928         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
67929         renamings.
67930         * m4/utime.m4: Likewise.
67931
67932         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
67933         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
67934
67935 2000-01-03  Paul Eggert  <eggert@twinsun.com>
67936
67937         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
67938         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
67939
67940 2000-01-02  Jim Meyering  <meyering@ascend.com>
67941
67942         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
67943         remember if this is necessary.
67944
67945 1999-12-26  Jim Meyering  <meyering@ascend.com>
67946
67947         * m4/jm-macros.m4: Use it here.
67948         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
67949
67950 1999-12-23  Jim Meyering  <meyering@ascend.com>
67951
67952         * m4/jm-macros.m4: Check for clock_gettime (moved from
67953         fileutils/configure.in)
67954         Check for gettimeofday.
67955
67956 1999-12-20  Jim Meyering  <meyering@ascend.com>
67957
67958         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
67959         autoconf-2.14a-1999-12-20.
67960
67961 1999-12-19  Jim Meyering  <meyering@ascend.com>
67962
67963         * m4/lstat-slash.m4: New file.
67964         * m4/jm-macros.m4: Use the new macro:
67965         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67966
67967 1999-12-07  Jim Meyering  <meyering@ascend.com>
67968
67969         * m4/perl.m4: Require that File::Compare be available, too.
67970         Too many systems seem to lack it.
67971
67972         * m4/strftime.m4: Add checks for most of the cpp macros tested in
67973         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
67974
67975 1999-11-18  Paul Eggert  <eggert@twinsun.com>
67976
67977         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
67978         problem with the QNX 4.25 shell, which doesn't propagate exit
67979         status of failed commands inside shell assignments.
67980
67981 1999-11-17  Jim Meyering  <meyering@ascend.com>
67982
67983         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
67984
67985 1999-11-07  Jim Meyering  <meyering@ascend.com>
67986
67987         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
67988
67989 1999-11-06  Jim Meyering  <meyering@ascend.com>
67990
67991         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
67992         * m4/jm-macros.m4 (jm_MACROS): Use it here.
67993
67994 1999-11-05  Jim Meyering  <meyering@ascend.com>
67995
67996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
67997         configure.in of textutils, fileutils, and sh-utils into this one
67998         (shared between those packages) file.
67999         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
68000         AC_STRUCT_ST_BLKSIZE.
68001
68002 1999-11-03  Jim Meyering  <meyering@ascend.com>
68003
68004         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
68005         of AC_CHECK_TYPE checks includes unistd.h.
68006         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
68007         Suggestion from Akim Demaille.
68008
68009 1999-10-30  Jim Meyering  <meyering@ascend.com>
68010
68011         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
68012         m4-quoted string.
68013         * m4/ls-mntd-fs.m4: Likewise.
68014         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
68015         * m4/jm-winsz1.m4: Likewise.
68016
68017         * m4/const.m4: Remove file, since the fix made it into the experimental
68018         version of autoconf.
68019         * m4/mktime.m4: Likewise.
68020
68021         * m4/check-type.m4: Remove file, now that the latest version of
68022         AC_CHECK_TYPE takes a third arg to specify additional #includes.
68023
68024         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
68025         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
68026         AC_CHECK_TYPE.
68027
68028 1999-10-04  Jim Meyering  <meyering@ascend.com>
68029
68030         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
68031
68032 1999-09-22  Paul Eggert  <eggert@twinsun.com>
68033
68034         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
68035         2.95.1 bug with HP-UX 10.20.
68036
68037 1999-09-17  Jim Meyering  <meyering@ascend.com>
68038
68039         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
68040         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
68041         due to missing strdup (against sh-utils-2.0).
68042
68043 1999-08-29  Jim Meyering  <meyering@ascend.com>
68044
68045         * m4/jm-macros.m4: Require jm_BISON.
68046         * m4/bison.m4: New file.
68047
68048 1999-08-17  Paul Eggert  <eggert@twinsun.com>
68049
68050         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
68051         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
68052
68053 1999-08-05  Jim Meyering  <meyering@ascend.com>
68054
68055         * m4/getline.m4: Rename test file from conftestdata to conftest.data
68056         to avoid conflicts with `conftest' on 8+3 filesystems.
68057         Suggestion from Eli Zaretskii.
68058
68059 1999-08-04  Jim Meyering  <meyering@ascend.com>
68060
68061         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
68062         fileutils and sh-utils (textutils's getline test was inadequate).
68063         (AM_FUNC_GETLINE): Run this test.
68064         (AC_CHECK_FUNCS): Check for getdelim.
68065         Reported by Bob Proulx.
68066
68067 1999-08-02  Jim Meyering  <meyering@ascend.com>
68068
68069         * m4/jm-macros.m4: Add a comment.
68070
68071 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68072
68073         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
68074         <inttypes.h> defines strtoumax as a macro (and not as a
68075         function).
68076
68077 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68078
68079         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
68080         that we can shift, multiply and divide unsigned long long
68081         values; Ultrix cc can't do it.
68082
68083 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68084
68085         * m4/mktime.m4: New file, which is a preview of what should appear
68086         in the next public autoconf release.
68087
68088 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68089
68090         * m4/lfs.m4: Remove this file.
68091         * m4/largefile.m4: New file.  It contains the old contents of
68092         lfs.m4, except that all names with prefix AC_LFS have been
68093         changed to use the prefix AC_SYS_LARGEFILE instead, to be
68094         compatible with future autoconf versions.  Also, some minor m4
68095         quoting problems have been fixed.
68096
68097 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68098
68099         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
68100         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
68101         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
68102         and simplify the shell code.
68103
68104 1999-08-01  Jim Meyering  <meyering@ascend.com>
68105
68106         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
68107         m4.
68108
68109 1999-07-20  Jim Meyering  <meyering@ascend.com>
68110
68111         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
68112
68113 1999-07-15  Jim Meyering  <meyering@ascend.com>
68114
68115         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
68116
68117 1999-05-22  Jim Meyering  <meyering@ascend.com>
68118
68119         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
68120
68121 1999-05-20  Jim Meyering  <meyering@ascend.com>
68122
68123         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
68124         Add a colon after each `then' in case $4 is empty.
68125
68126 1999-05-16  Jim Meyering  <meyering@ascend.com>
68127
68128         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
68129
68130 1999-05-10  Jim Meyering  <meyering@ascend.com>
68131
68132         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
68133
68134         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
68135         AC_FUNC_MKTIME.
68136
68137 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
68138
68139         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
68140
68141 1999-05-04  Paul Eggert  <eggert@twinsun.com>
68142
68143         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
68144         not CPPFLAGS, so that linking works correctly in IRIX.
68145
68146 1999-04-30  Paul Eggert  <eggert@twinsun.com>
68147
68148         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
68149
68150 1999-04-20  Paul Eggert  <eggert@twinsun.com>
68151
68152         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
68153         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
68154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
68155         jm_AC_TYPE_UNSIGNED_LONG_LONG.
68156         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
68157
68158         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
68159
68160 1999-04-20  Jim Meyering  <meyering@ascend.com>
68161
68162         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
68163         AC_REPLACE xstroull if necessary.  From Paul Eggert.
68164         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
68165
68166 1999-04-18  Jim Meyering  <meyering@ascend.com>
68167
68168         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
68169         * m4/jm-macros.m4: Use it.
68170
68171 1999-04-06  Jim Meyering  <meyering@ascend.com>
68172
68173         * m4/strftime.m4: Remove test for %f.
68174
68175 1999-03-29  Jim Meyering  <meyering@ascend.com>
68176
68177         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
68178         superset of the AC_TYPE_* checks in the textutils, fileutils,
68179         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
68180         AC_TYPE_PID_T.
68181
68182 1999-03-28  Jim Meyering  <meyering@ascend.com>
68183
68184         * m4/jm-macros.m4: Define GNU_PACKAGE here.
68185         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
68186         replaced e.g., in the *.sh files of the sh-utils.
68187
68188 1999-03-20  Jim Meyering  <meyering@ascend.com>
68189
68190         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
68191         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
68192         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
68193
68194 1999-03-19  Jim Meyering  <meyering@ascend.com>
68195
68196         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
68197
68198 1999-03-12  Jim Meyering  <meyering@ascend.com>
68199
68200         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
68201
68202 1999-03-07  Jim Meyering  <meyering@ascend.com>
68203
68204         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
68205         declared.
68206
68207 1999-02-17  Jim Meyering  <meyering@ascend.com>
68208
68209         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
68210         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
68211
68212 1999-02-07  Jim Meyering  <meyering@ascend.com>
68213
68214         * m4/group-member.m4: New file -- extracted from sh-utils'
68215         configure.in.
68216
68217         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
68218         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
68219
68220 1999-02-06  Jim Meyering  <meyering@ascend.com>
68221
68222         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
68223         * m4/fnmatch.m4: Likewise.
68224         * m4/getgroups.m4: Likewise.
68225         * m4/lstat.m4: Likewise.
68226         * m4/malloc.m4: Likewise.
68227         * m4/putenv.m4: Likewise.
68228         * m4/realloc.m4: Likewise.
68229         * m4/regex.m4: Likewise.
68230         * m4/stat.m4: Likewise.
68231         * m4/strftime.m4: Likewise.
68232         Suggestion from Alain Magloire.
68233
68234         * m4/chown.m4: Use `.$ac_objext', not `.o'.
68235         * m4/fnmatch.m4: Likewise.
68236         * m4/getgroups.m4: Likewise.
68237         * m4/getline.m4: Likewise.
68238         * m4/lstat.m4: Likewise.
68239         * m4/malloc.m4: Likewise.
68240         * m4/memcmp.m4: Likewise.
68241         * m4/putenv.m4: Likewise.
68242         * m4/realloc.m4: Likewise.
68243         * m4/regex.m4: Likewise.
68244         * m4/stat.m4: Likewise.
68245         * m4/strftime.m4: Likewise.
68246         Suggestion from Alain Magloire.
68247
68248         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
68249         an argument.
68250
68251         * m4/regex.m4: Add a run-time Test for proper operation of
68252         re_compile_pattern.
68253
68254 1999-01-31  Jim Meyering  <meyering@ascend.com>
68255
68256         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
68257
68258 1999-01-30  Jim Meyering  <meyering@ascend.com>
68259
68260         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
68261
68262         * m4/jm-mktime.m4: Make this a wrapper around the official
68263         AM_FUNC_MKTIME rather than my private copy, now that the official one
68264         is up to date.
68265         * m4/mktime.m4: Remove file.
68266
68267         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
68268         * m4/uptime.m4: Likewise.
68269         * m4/uintmax_t.m4: Likewise.
68270
68271 1999-01-28  Jim Meyering  <meyering@ascend.com>
68272
68273         * m4/jm-macros.m4: Use jm_AFS.
68274         * m4/afs.m4: New file (from fileutils' configure.in).
68275
68276         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
68277         * m4/chown.m4: Likewise.
68278         * m4/d-ino.m4: Likewise.
68279         * m4/d-type.m4: Likewise.
68280         * m4/fnmatch.m4: Likewise.
68281         * m4/getgroups.m4: Likewise.
68282         * m4/gettext.m4: Likewise.
68283         * m4/jm-mktime.m4: Likewise.
68284         * m4/jm-winsz2.m4: Likewise.
68285         * m4/lcmessage.m4: Likewise.
68286         * m4/ls-mntd-fs.m4: Likewise.
68287         * m4/malloc.m4: Likewise.
68288         * m4/memcmp.m4: Likewise.
68289         * m4/putenv.m4: Likewise.
68290         * m4/realloc.m4: Likewise.
68291         * m4/st_mtim.m4: Likewise.
68292         * m4/strftime.m4: Likewise.
68293
68294 1999-01-16  Jim Meyering  <meyering@ascend.com>
68295
68296         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
68297         (ARGMATCH_DIE_DECL): Define.
68298
68299 1999-01-12  Jim Meyering  <meyering@ascend.com>
68300
68301         * m4/Makefile.am.in: Rewrite to avoid using fmt.
68302         Reported by Lars Hecking.
68303
68304 1999-01-10  Jim Meyering  <meyering@ascend.com>
68305
68306         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
68307         gross kludge.
68308         * m4/inttypes_h.m4: Likewise.
68309         * m4/lstat.m4: Likewise.
68310         * m4/malloc.m4: Likewise.
68311         * m4/readdir.m4: Likewise.
68312         * m4/realloc.m4: Likewise.
68313         * m4/st_dm_mode.m4: Likewise.
68314         * m4/stat.m4: Likewise.
68315         * m4/utimbuf.m4: Likewise.
68316         * m4/utimes.m4: Likewise.
68317
68318         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
68319         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
68320         comments in config.h.in are meaningful.
68321
68322         * m4/jm-macros.m4: Require autoconf-2.13 here.
68323
68324         * m4/regex.m4: By default, don't use the included regex.c on systems
68325         with glibc 2.  Suggestion from Uli Drepper.
68326
68327 1999-01-02  Jim Meyering  <meyering@ascend.com>
68328
68329         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
68330
68331 1998-12-18  Jim Meyering  <meyering@ascend.com>
68332
68333         * m4/Makefile.am.in (Makefile.am): Simplify rule.
68334         Based on a suggestion from Lars Hecking.
68335
68336 1998-11-16  Paul Eggert  <eggert@twinsun.com>
68337
68338         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
68339
68340 1998-11-16  Jim Meyering  <meyering@ascend.com>
68341
68342         * m4/lfs.m4: Double-quote the `uname...` expression.
68343
68344 1998-11-14  Jim Meyering  <meyering@ascend.com>
68345
68346         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
68347         * m4/stat.m4: Likewise.
68348
68349 1998-11-03  Jim Meyering  <meyering@ascend.com>
68350
68351         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
68352         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
68353
68354 1998-10-18  Jim Meyering  <meyering@ascend.com>
68355
68356         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
68357
68358 1998-10-17  Jim Meyering  <meyering@ascend.com>
68359
68360         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
68361         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
68362         calls for those previously hard-coded headers.  Instead, take a new
68363         parameter.
68364         (jm_CHECK_DECLARATIONS): Reflect interface change.
68365         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
68366         (jm_CHECK_DECL_LOCALTIME_R): New macro.
68367
68368         * m4/mktime.m4: Test for spring-forward gap before long-running test.
68369
68370 1998-10-14  Jim Meyering  <meyering@ascend.com>
68371
68372         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
68373         instead of "TZ=America/Vancouver".  From Paul Eggert.
68374
68375 1998-10-11  Jim Meyering  <meyering@ascend.com>
68376
68377         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
68378         This adds a test for a recently added compatibility fix for mktime.c.
68379         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
68380
68381 1998-09-27  Jim Meyering  <meyering@ascend.com>
68382
68383         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
68384
68385         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
68386         ../configure.in, including a change from Gordon Matzigkeit to allow
68387         cross-compiling for the Hurd.
68388
68389         * m4/glibc.m4: New file/macro to test for the GNU C Library
68390         versions 1 and 2.  From Gordon Matzigkeit.
68391         Indent.
68392
68393 1998-09-21  Jim Meyering  <meyering@ascend.com>
68394
68395         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
68396
68397 1998-08-18  Paul Eggert  <eggert@twinsun.com>
68398
68399         Port nanosecond-resolution times to UnixWare 2.1.2 and
68400         pedantic Solaris 2.6.
68401
68402         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
68403         AC_STRUCT_ST_MTIM.
68404         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
68405         Generate name of ns member, instead of just 1 or undef.
68406         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
68407
68408 1998-08-15  Jim Meyering  <meyering@ascend.com>
68409
68410         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
68411         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
68412         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
68413         instead of jm_TYPE_SSIZE_T.
68414
68415 1998-08-12  Jim Meyering  <meyering@ascend.com>
68416
68417         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
68418
68419 1998-08-02  Jim Meyering  <meyering@ascend.com>
68420
68421         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
68422         in acconfig.h manually.
68423
68424 1998-07-31  Paul Eggert  <eggert@twinsun.com>
68425
68426         * m4/st_mtim.m4: New file.
68427
68428 1998-07-28  Jim Meyering  <meyering@ascend.com>
68429
68430         * m4/utimes.m4: Undef stat.
68431
68432 1998-07-25  Jim Meyering  <meyering@ascend.com>
68433
68434         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
68435         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
68436
68437 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
68438
68439         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
68440         uid and gid actually remain unchanged.
68441
68442 1998-07-07  Jim Meyering  <meyering@ascend.com>
68443
68444         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
68445
68446 1998-07-04  Jim Meyering  <meyering@ascend.com>
68447
68448         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
68449         to prove that this macro can be used in packages without regex.c.
68450
68451 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
68452
68453         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
68454         is to be used.
68455
68456 1998-07-03  Jim Meyering  <meyering@ascend.com>
68457
68458         * m4/gettext.m4: Add -lintl if it's found to be necessary.
68459
68460         * m4/gettext.m4: New file -- from gettext-0.10.35.
68461         * m4/lcmessage.m4: Likewise.
68462         * m4/progtest.m4: Likewise.
68463
68464         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
68465         * m4/jm-macros.m4: Require the new macro.
68466
68467 1998-06-29  Jim Meyering  <meyering@ascend.com>
68468
68469         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
68470         for the definition of NGROUPS (used in a system header included
68471         by sys/mount.h).
68472
68473 1998-06-28  Jim Meyering  <meyering@ascend.com>
68474
68475         * m4/ls-mntd-fs.m4: New file.
68476         * m4/fstypename.m4: New file.
68477
68478         * m4/jm-macros.m4: Require the new macro.
68479         * m4/jm-glibc-io.m4: New file.
68480
68481 1998-05-19  Jim Meyering  <meyering@ascend.com>
68482
68483         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
68484         * m4/lchown.m4: New file.
68485
68486         * m4/Makefile.am.in: New file.
68487         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
68488
68489 1998-05-14  Jim Meyering  <meyering@ascend.com>
68490
68491         * m4/Makefile.am (EXTRA_DIST): Add them.
68492         * m4/jm-macros.m4: New file.
68493         * m4/utimbuf.m4: New file.
68494
68495 1998-05-12  Jim Meyering  <meyering@ascend.com>
68496
68497         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68498
68499 1998-05-11  Jim Meyering  <meyering@ascend.com>
68500
68501         * m4/isc-posix.m4: New file.
68502
68503 1998-05-10  Jim Meyering  <meyering@ascend.com>
68504
68505         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68506
68507 1998-05-09  Jim Meyering  <meyering@ascend.com>
68508
68509         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68510         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68511         with automake.
68512
68513         * m4/ssize_t.m4: New file.
68514         * m4/mktime.m4: Remove file -- the new automake has this now.
68515
68516 1998-04-26  Jim Meyering  <meyering@ascend.com>
68517
68518         * m4/assert.m4: New file.
68519         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68520
68521 1998-04-05  Jim Meyering  <meyering@ascend.com>
68522
68523         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68524         (jm_PREREQ): Use it here.
68525
68526 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68527
68528         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68529         in acconfig.h.
68530
68531 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68532
68533         * m4/prereq.m4: New file.
68534         * m4/error.m4: New file.
68535         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68536
68537 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68538
68539         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68540         cache-check for the same variable -- that defeated the purpose of
68541         the test; the test program was never run.  This was a problem only
68542         on systems with losing getline functions -- HP-UX 10.20 is one.
68543         Reported by Bjorn Helgaas.
68544
68545 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68546
68547         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68548
68549 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68550
68551         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68552
68553         * m4/const.m4: New file.  Use an initializer in this declaration
68554         typedef int charset[2]; const charset x;
68555         Reported by Bob Glickstein.
68556
68557 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68558
68559         * m4/chown.m4: Fix reversed types on -1 args to chown.
68560         From Kaveh Ghazi.
68561
68562 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68563
68564         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68565         Add lseek and memchr.
68566
68567         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68568         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68569         have a 20-character limit on names.
68570
68571 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68572
68573         * m4/inttypes_h.m4: New file.
68574         * m4/uintmax_t.m4: New file.
68575         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68576
68577
68578         -----
68579
68580         Local Variables:
68581         coding: utf-8
68582         End:
68583
68584         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68585
68586         Copying and distribution of this file, with or without
68587         modification, are permitted provided the copyright notice
68588         and this notice are preserved.