round: Update regarding AIX.
[gnulib.git] / ChangeLog
1 2010-07-30  Bruno Haible  <bruno@clisp.org>
2
3         round: Update regarding AIX.
4         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
5         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
6         Reported by Rainer Tammer.
7
8 2010-07-30  Bruno Haible  <bruno@clisp.org>
9
10         rename: Update regarding AIX.
11         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13         Reported by Rainer Tammer.
14
15 2010-07-30  Bruno Haible  <bruno@clisp.org>
16
17         printf.m4: Update regarding AIX.
18         * m4/printf.m4: Update comments regarding AIX.
19         Reported by Rainer Tammer.
20
21 2010-07-30  Bruno Haible  <bruno@clisp.org>
22
23         iconv: Update regarding AIX.
24         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
25         AIX 7.
26         Reported by Rainer Tammer.
27
28 2010-07-30  Bruno Haible  <bruno@clisp.org>
29
30         getopt: Update regarding AIX.
31         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32         no on AIX.
33         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
34         Reported by Rainer Tammer.
35
36 2010-07-30  Bruno Haible  <bruno@clisp.org>
37
38         ldexpl; Update regarding AIX.
39         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
40         on AIX 7.
41         Reported by Rainer Tammer.
42
43 2010-07-30  Bruno Haible  <bruno@clisp.org>
44
45         frexpl: Update regarding AIX.
46         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
47         on AIX 7.
48         Reported by Rainer Tammer.
49
50 2010-07-30  Bruno Haible  <bruno@clisp.org>
51
52         open, fopen: Update regarding AIX.
53         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
54         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
55         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
56         * doc/posix-functions/fopen.texi: Likewise.
57         Reported by Rainer Tammer.
58
59 2010-07-30  Bruno Haible  <bruno@clisp.org>
60
61         chown: Update doc regarding AIX.
62         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
63         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
64         Reported by Rainer Tammer.
65
66 2010-07-30  Eric Blake  <eblake@redhat.com>
67
68         strtod: fix bug in replacement function on AIX
69         * lib/strtod.c (strtod): Special case broken "0x" parse in
70         underlying strtod.
71         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
72         * doc/posix-functions/strtod.texi (strtod): Likewise.
73         Reported by Rainer Tammer.
74
75 2010-07-30  Bruno Haible  <bruno@clisp.org>
76
77         mbrlen: Fix cross-compilation guess for AIX.
78         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
79         guess. Leftover from 2008-12-22.
80
81 2010-07-30  Bruno Haible  <bruno@clisp.org>
82
83         mbrtowc: Fix cross-compilation guess for AIX.
84         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
85         guess. Leftover from 2008-12-21.
86
87 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
88
89         init.sh: work around trap limitation of some shells
90         * tests/init.sh (setup_): Move exit trap outside of shell function.
91
92 2010-07-29  Eric Blake  <eblake@redhat.com>
93
94         strtod: aid debugging
95         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
96         understanding why strtod is rejected.
97
98 2010-07-28  Bruno Haible  <bruno@clisp.org>
99
100         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
101         * lib/unistr/u8-chr.c: Include <string.h>.
102         * tests/unistr/test-u8-chr.c: Likewise.
103         * tests/unistr/test-u16-chr.c: Likewise.
104         * tests/unistr/test-u32-chr.c: Likewise.
105         * tests/unistr/test-u8-strchr.c: Likewise.
106         * tests/unistr/test-u16-strchr.c: Likewise.
107         * tests/unistr/test-u32-strchr.c: Likewise.
108         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
109         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
110         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
111         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
112
113 2010-07-28  Bruno Haible  <bruno@clisp.org>
114
115         Use spaces for indentation, not tabs.
116         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
117
118 2010-07-27  Bruno Haible  <bruno@clisp.org>
119
120         mbspcasecmp: Fix function specification.
121         * lib/string.in.h (mbspcasecmp): Fix specification comment.
122         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
123         Reported by Eric Blake <eblake@redhat.com>.
124
125 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
126
127         timespec: use cast and not conditional, as truncation isn't possible
128         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
129         instead of a conditional.  Comment about the situation in more detail.
130         This undoes most of the 2009-10-29 patch.
131
132 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
133
134         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
135         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
136         * lib/unistr/u8-strchr.c: Likewise.
137         * modules/unistr/u8-chr: Depend on memchr.
138
139         unistr/u*-strchr: add tests
140         * modules/unistr/u8-strchr-tests: New file.
141         * modules/unistr/u16-strchr-tests: New file.
142         * modules/unistr/u32-strchr-tests: New file.
143         * tests/unistr/test-strchr.h: New file.
144         * tests/unistr/test-u8-strchr.c: New file.
145         * tests/unistr/test-u16-strchr.c: New file.
146         * tests/unistr/test-u32-strchr.c: New file.
147
148         unistr/u*-chr: test multibyte sequences more
149         * tests/unistr/test-chr.h: Do complete testing of the characters in the
150         test vector.
151         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
152         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
153         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
154
155         unistr/u*-chr: test multibyte sequences
156         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
157
158         unistr/u*-chr: prepare for multibyte tests
159         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
160         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
161         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
162         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
163         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
164         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
165
166 2010-07-18  Bruno Haible  <bruno@clisp.org>
167
168         unistr/u8-strchr: Optimize non-ASCII argument case.
169         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
170         because the first byte often matches anyway.
171         Reported by Pádraig Brady <P@draigbrady.com>.
172
173 2010-07-15  Karl Berry  <karl@gnu.org>
174
175         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
176
177 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
178
179         getcwd: on Solaris, work better if ancestors are inaccessible
180         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
181         buffer and size, try again with a large buffer.  This works better
182         on Solaris, since its getcwd succeeds even if the path to the root
183         is inaccessible, and this is helpful in common cases such as .zfs
184         hidden directories.  Problem reported by J Chapman Flack in
185         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
186         Use system getcwd if it's declared, not merely if it's partly
187         working; use the partly-working test only to avoid needless effort
188         if the system getcwd fails.
189         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
190         comment that was already obsolete and is now even more obsolete.
191         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
192         now might call strdup.
193
194 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
195
196         pthread: Add enough so that coreutils/src/sort.c compiles.
197         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
198         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
199         gnulib. Include <sched.h> and <time.h>, as per POSIX.
200         Include <sys/types.h>, in case it defines pthread_t.
201         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
202         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
203         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
204         (pthread_rwlockattr_t, pthread_spinlock_t):
205         New typedefs, if HAVE_PTHREAD_T is not defined.
206         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
207         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
208         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
209         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
210         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
211         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
212         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
213         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
214         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
215         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
216         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
217         New macros.
218         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
219         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
220         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
221         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
222         (pthread_spin_unlock): New dummy functions.
223         (pthread_create): Return EAGAIN; don't set errno.
224         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
225         require AC_C_INLINE.
226         * modules/pthread (Depends-on): Add sched, time.
227         (pthread.h): Use AM_V_GEN.
228
229 2010-07-13  Bruno Haible  <bruno@clisp.org>
230
231         striconveh: Don't malloc memory if the result buffer is sufficient.
232         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
233         buffer if its size is sufficient.
234         Reported by Ludovic Courtès <ludo@gnu.org>.
235
236 2010-07-13  Bruno Haible  <bruno@clisp.org>
237
238         strtod: Add safety check.
239         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
240
241 2010-07-12  Bruno Haible  <bruno@clisp.org>
242
243         Unify tests that set gl_cv_func_ldexpl_no_libm.
244         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
245         gl_FUNC_LDEXPL.
246         (gl_FUNC_LDEXPL): Invoke it.
247         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
248
249 2010-07-12  Bruno Haible  <bruno@clisp.org>
250
251         Unify tests that set gl_cv_func_ldexp_no_libm.
252         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
253         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
254         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
255         (configure.ac): Simply invoke gl_FUNC_LDEXP.
256         * modules/strtod (Files): Add m4/ldexp.m4.
257
258 2010-07-12  Bruno Haible  <bruno@clisp.org>
259
260         Unify tests that set gl_cv_func_frexpl_no_libm.
261         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
262         gl_FUNC_FREXPL_NO_LIBM.
263         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
265
266 2010-07-12  Bruno Haible  <bruno@clisp.org>
267
268         Unify tests that set gl_cv_func_frexp_no_libm.
269         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
270         gl_FUNC_FREXP_NO_LIBM.
271         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
272         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
273
274 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
275
276         memcoll: clarify sizes versus lengths, document better, and tweak perf
277         * lib/memcoll.c (strcoll_loop, memcoll0):
278         Improve quality of descriptive comments.  Name variables
279         consistently as to whether they are lengths (which do not include
280         terminating null) versus sizes (which do).
281         * lib/xmemcoll.c (xmemcoll0): Likewise.
282         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
283         returned when s1size == 0; this is easier to compile and saves
284         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
285
286 2010-07-12  Bruno Haible  <bruno@clisp.org>
287
288         Tests for module '_Exit'.
289         * modules/_Exit-tests: New file.
290         * tests/test-_Exit.sh: New file.
291         * tests/test-_Exit.c: New file.
292
293         New module '_Exit'.
294         * lib/stdlib.in.h (__attribute__): New macro.
295         (_Exit): New declaration.
296         * lib/_Exit.c: New file.
297         * m4/_Exit.m4: New file.
298         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
299         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
300         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
301         * modules/_Exit: New file.
302         * tests/test-stdlib-c++.cc (_Exit): Check signature.
303         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
304
305 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
306
307         strtod: make it more-accurate typically, and don't require libm
308         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
309         Include limits.h.  Don't include string.h.
310         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
311         (locale_isspace): New function, so that no casts are needed to
312         check whether *s is a space.
313         (ldexp): Provide an unused dummy if not available.
314         (scale_radix_exp, parse_number, underlying_strtod): New functions.
315         (strtod): Use them.  This implementation prefers to use the
316         underlying strtod if available, falling back on our own code
317         only to fix known bugs.  This is more likely to produce an
318         accurate result.  Also, it avoids the use of libm functions.
319         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
320         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
321         was absent, but it caused a test failure with coreutils.
322         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
323         with libm.
324         * modules/strtod (Makefile.am, Link): libm is no longer needed.
325         * modules/strtod-tests (Makefile.am): Likewise.
326
327 2010-07-11  Pádraig Brady  <P@draigBrady.com>
328             Bruno Haible  <bruno@clisp.org>
329
330         unistr/u8-strchr: Optimize ASCII argument case.
331         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
332
333 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
334
335         (x)memcoll: minor tweaks
336         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
337         is after the type that it qualifies.
338         (memcoll0): Likewise.
339         * lib/memcoll.h (memcoll0): Likewise.
340         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
341         * lib/xmemcoll.h (xmemcoll0): Likewise.
342         * lib/memcoll.c (memcoll0): Correct the comment.  This function
343         differs from memcoll in that the NUL byte is part of the argument.
344         Omit the abort-checks, as performance is a real issue here.  Plus,
345         the checks were wrong anyway (an off-by-one error).  Omit local
346         variable 'diff', as it's a bit clearer that way.
347         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
348         no longer needed.
349
350 2010-07-08  Chen Guo <chenguo4@yahoo.com>
351
352         (x)memcoll: speedup when input is known to be NUL delimited
353         * lib/memcoll.c: Include stdlib.
354         (memcoll0) New function.
355         (strcoll_loop) New function, refactored for use in both memcoll
356         and memcoll0.
357         * lib/memcoll.h: Add prototype for memcoll0.
358         * lib/xmemcoll.c: (xmemcoll0) New function.
359         (collate_error) New function, refactored for use in both xmemcoll
360         and xmemcoll0.
361         * lib/xmemcoll.h: Add prototype for xmemcoll0.
362         * m4/memcoll.m4: add inline invocation.
363
364 2010-07-06  Pádraig Brady  <P@draigBrady.com>
365
366         * build-aux/bootstrap: Remove any local translations
367         from the translation project synchronization directory,
368         so that local only translations are not distributed.
369
370 2010-07-04  Bruno Haible  <bruno@clisp.org>
371
372         fsusage: Clarify which code applies to which platforms.
373         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
374         platform.
375         * lib/fsusage.c (get_fs_usage): Likewise.
376
377 2010-07-04  Bruno Haible  <bruno@clisp.org>
378
379         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
380         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
381         Reported by Martin Lambers <marlam@marlam.de>.
382
383 2010-07-04  Jim Meyering  <meyering@redhat.com>
384
385         hash: once again explicitly disallow insertion of NULL
386         * lib/hash.c (hash_insert0): Reinstate just-removed test:
387         inserting a NULL pointer cannot work with these functions.
388         Add a comment with details.
389         This reverts part of the 2010-07-01 commit, 5bef1a35
390         "hash: extend module to deal with non-pointer keys".
391
392 2010-07-01  Bruno Haible  <bruno@clisp.org>
393
394         stdbool: Update doc.
395         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
396         Info from Christian Weisgerber <naddy@mips.inka.de>.
397
398 2010-07-01  Jim Meyering  <meyering@redhat.com>
399
400         hash: extend module to deal with non-pointer keys
401         * lib/hash.c (hash_insert0): New interface, much like hash_insert
402         but that allows insertion of non-pointer entries.
403         Do not disallow an ENTRY value of NULL.
404         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
405         * lib/hash.h (hash_insert0): Declare.
406
407 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
408
409         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
410         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
411         not present (i.e. with autoconf 2.59 and when using gettextize, not
412         gnulib), require AC_GNU_SOURCE instead.
413
414 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
415
416         idpriv-drop: Fix tests.
417         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
418         not to the test-idpriv-droptemp program.
419
420 2010-06-29  Bruno Haible  <bruno@clisp.org>
421
422         string: Fix syntax error with g++ 2.96.
423         * lib/string.in.h (__pure__): Remove definition.
424         (_GL_ATTRIBUTE_PURE): New macro.
425         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
426         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
427         Reported by Christian Weisgerber <naddy@mips.inka.de>.
428
429 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
430
431         unitypes: Fix bug introduced on 2010-05-18.
432         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
433
434 2010-06-22  Eric Blake  <eblake@redhat.com>
435
436         memmem: slight optimization
437         * lib/str-two-way.h (critical_factorization): Update comments.
438         Reduce work during factorization phase.
439         Reported by Carlos Bueno <carlos@bueno.org>.
440
441 2010-06-21  Bruno Haible  <bruno@clisp.org>
442
443         Fix HAVE_CALLOC_POSIX misnomer.
444         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
445         !HAVE_CALLOC_POSIX.
446         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
447         HAVE_CALLOC_POSIX.
448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
449         instead of HAVE_CALLOC_POSIX.
450         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
451         HAVE_CALLOC_POSIX.
452
453         Use modern idiom for calloc() replacement.
454         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
455         AC_FUNC_CALLOC.
456         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
457         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
458         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
459         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
460         (gl_REPLACE_CALLOC): New macro.
461
462 2010-06-21  Bruno Haible  <bruno@clisp.org>
463
464         Fix HAVE_REALLOC_POSIX misnomer.
465         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
466         !HAVE_REALLOC_POSIX.
467         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
468         HAVE_REALLOC_POSIX.
469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
470         instead of HAVE_REALLOC_POSIX.
471         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
472         HAVE_REALLOC_POSIX.
473
474         Use modern idiom for realloc() replacement.
475         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
476         AC_FUNC_REALLOC.
477         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
478         Autoconf's AC_FUNC_REALLOC.
479         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
480         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
481         (gl_REPLACE_REALLOC): New macro.
482         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
483
484 2010-06-21  Bruno Haible  <bruno@clisp.org>
485
486         Fix HAVE_MALLOC_POSIX misnomer.
487         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
488         !HAVE_MALLOC_POSIX.
489         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
490         HAVE_MALLOC_POSIX.
491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
492         instead of HAVE_MALLOC_POSIX.
493         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
494         HAVE_MALLOC_POSIX.
495
496         Use modern idiom for malloc() replacement.
497         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
498         AC_FUNC_MALLOC.
499         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
500         Autoconf's AC_FUNC_MALLOC.
501         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
502         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
503         (gl_REPLACE_MALLOC): New macro.
504         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
505
506 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
507
508         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
509         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
510         This macro takes 3 arguments, not 4.
511
512 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
513
514         ipv6: fix detection under mingw
515         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
516         in6_addr.
517
518 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
519
520         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
521         that strtod() works when cross-compiling to a glibc version known
522         to work.
523
524 2010-06-15  Bruno Haible  <bruno@clisp.org>
525
526         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
527
528 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
529
530         select: Correct timeout.
531         * lib/select.c (rpl_select): Compute wait_timeout correctly.
532
533 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
534
535         git-version-gen: init shell var to avoid env var influence
536         * build-aux/git-version-gen (v): Init shell var to empty.
537
538 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
539
540         priv-set: Don't assume that priv.h exists merely because getppriv does.
541         See Jan Andersen's bug report about AIX 5L in
542         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
543         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
544         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
545         * lib/priv-set.h: Likewise.
546         * tests/test-priv-set.c: Likewise.
547
548 2010-06-13  Bruno Haible  <bruno@clisp.org>
549
550         relocatable: Make it easier to test whether to install wrappers.
551         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
552         RELOCATABLE_VIA_WRAPPER.
553
554 2010-06-13  Bruno Haible  <bruno@clisp.org>
555
556         gnulib-tool: Display specified modules and dependencies differently.
557         * gnulib-tool (func_show_module_list): New function.
558         (func_import, func_create_testdir): Invoke it.
559         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
560
561 2010-06-13  Bruno Haible  <bruno@clisp.org>
562
563         gnulib-tool: Align code of func_import and func_create_testdir.
564         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
565         specified_modules.
566
567 2010-06-12  Jim Meyering  <meyering@redhat.com>
568
569         test-inttostr: avoid spurious failure on Solaris 9
570         * tests/test-inttostr.c (main): Skip the test when snprintf fails
571         to accept "%ju".  Reported by Bruno Haible.
572
573 2010-06-11  Jim Meyering  <meyering@redhat.com>
574
575         test-sys_socket: mark variables as used more readably
576         * tests/test-sys_socket.c (main): Mark otherwise unused variables
577         as "used" explicitly via (void) statement casts.  This is more
578         readable than using them in an artificial return expression.
579         Suggestion from Bruno Haible.
580
581 2010-06-11  Bruno Haible  <bruno@clisp.org>
582
583         Avoid some more warnings from "gcc -Wwrite-strings".
584         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
585         to 'const char *'.
586         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
587         * tests/test-c-strcasestr.c (main): Likewise.
588         * tests/test-mbscasestr1.c (main): Likewise.
589         * tests/test-mbscasestr2.c (main): Likewise.
590         * tests/test-memmem.c (main): Likewise.
591         * tests/test-strstr.c (main): Likewise.
592         * tests/test-strcasestr.c (main): Likewise.
593
594 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
595
596         init.sh: change framework_failure_ to fail with status 99, not 1
597         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
598         automake's parallel-tests rule that this is an unexpected failure,
599         even if the test is listed in XFAIL_TESTS.
600
601 2010-06-11  Jim Meyering  <meyering@redhat.com>
602
603         test-inttostr: avoid warnings about 4-6KB literal strings
604         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
605         Include "macros.h", for its definition of ASSERT.
606         (CK): s/assert/ASSERT/
607         * modules/inttostr-tests (Files): Add macros.h.
608
609         init.sh: don't use $ME_ or skip_ before they are defined
610         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
611         their first uses.  Also hoist their companions: warn_, fail_,
612         framework_failure_, $stderr_fileno.  Prompted by a patch from
613         Stefano Lattarini.
614
615         test-sys_socket: avoid set-but-not-used warnings from gcc
616         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
617         avoid warning about set-but-not-used variables.
618
619         test-xvasprintf: avoid 'const' discard warnings
620         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
621         "const" when assigning from literal strings.
622         (test_xasprintf): Add "void" in function argument list to placate
623         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
624
625         tests: avoid compilation warnings in argmatch and exclude tests...
626         in packages that define ARGMATCH_DIE_DECL, like coreutils.
627         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
628         Since it always exits, declare with the "noreturn" attribute.
629         * tests/test-argmatch.c: Likewise.
630
631         tests: avoid 'const' discard warnings in mbsstr tests
632         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
633         * tests/test-mbsstr2.c (main): Likewise.
634
635         test-verify: avoid warning from gcc's -Wmissing-declarations
636         * tests/test-verify.c (function): Declare to be static.
637
638         test-inttostr.c: include <string.h> for use of strcmp
639         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
640
641         test-linkat: avoid failed assertion on "other" architectures
642         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
643         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
644         sparc: https://bugs.launchpad.net/bugs/591968
645
646 2010-06-11  Jim Meyering  <meyering@redhat.com>
647
648         printf.m4: avoid autoconf's "Expanded Before Required" warning
649         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
650         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
651         autoconf warning.
652
653 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
654
655         Replacement header templates are now named with ".in", not "_".
656         * doc/gnulib-intro.texi: Correct.
657
658 2010-06-10  Jim Meyering  <meyering@redhat.com>
659
660         inttostr-tests: depend on snprintf, not snprintf-posix
661         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
662         snprintf-posix, to avoid this aclocal failure:
663           missing file gnulib-tests/vasnprintf.c
664           configure.ac:45: error: expected source file, required through \
665           AC_LIBSOURCES, not found
666
667 2010-06-10  Jim Meyering  <meyering@redhat.com>
668
669         inttostr: add a new function, inttostr, and tests
670         The namesake function was not available.  The existence of the
671         template file, inttostr.c makes its addition nontrivial.
672         * lib/anytostr.c: Rename from inttostr.c.
673         (anytostr): Rename from inttostr.
674         * lib/inttostr.c: New file.
675         * modules/inttostr (Files): Add anytostr.c.
676         (Makefile.am): Set lib_SOURCES instead of ...
677         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
678         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
679         * lib/offtostr.c: Likewise.
680         * lib/uinttostr.c: Likewise.
681         * lib/umaxtostr.c: Likewise.
682         * modules/inttostr-tests: New file.
683         * tests/test-inttostr.c: New file.  Test these functions.
684
685 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
686             Bruno Haible  <bruno@clisp.org>
687
688         Add "Extending Gnulib" chapter to manual.
689         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
690         chapter.
691         (Extending Gnulib): New chapter.
692         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
693         chapter.
694
695 2010-06-09  Bruno Haible  <bruno@clisp.org>
696
697         Avoid relocwrapper link errors due to gnulib replacement functions.
698         * lib/areadlink.c: Use the system's malloc, realloc functions.
699         (areadlink): Set errno to ENOMEM explicitly.
700         * modules/areadlink (Depends-on): Remove malloc-posix.
701         Reported by Ben Pfaff <blp@cs.stanford.edu>.
702
703 2010-06-09  Bruno Haible  <bruno@clisp.org>
704
705         Avoid relocwrapper link errors due to gnulib replacement functions.
706         * lib/canonicalize-lgpl.c: Use the system's malloc function.
707         * lib/malloca.c: Likewise.
708         * lib/relocatable.c: Likewise.
709         * lib/progreloc.c: Use the system's malloc, sprintf functions.
710         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
711         * lib/setenv.c: Use the system's malloc, realloc functions.
712         * lib/strerror.c: Use the system's sprintf function.
713         Reported by Ben Pfaff <blp@cs.stanford.edu>.
714
715 2010-06-04  Bruno Haible  <bruno@clisp.org>
716
717         Prefer documented low-level autoconf macro names.
718         * m4/lib-link.m4: Use m4_translit instead of translit.
719         * m4/environ.m4: Likewise.
720         * m4/mathfunc.m4: Likewise.
721         * m4/onceonly.m4: Likewise.
722         * m4/stdint.m4: Likewise.
723         Suggested by Eric Blake.
724
725 2010-06-04  Martin Lambers  <marlam@marlam.de>
726             Bruno Haible  <bruno@clisp.org>
727
728         havelib: Allow library names with '+' characters.
729         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
730         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
731
732 2010-06-09  Bruno Haible  <bruno@clisp.org>
733
734         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
735         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
736         realloc failed.
737
738 2010-06-08  Peter Simons  <simons@cryp.to>
739
740         maint.mk: make the news-check rule more configurable
741         * top/maint.mk (news-check-lines-spec) New variable.
742         (news-check): Use "sed -n 1,10p" in place of "head".
743
744 2010-06-07  Jim Meyering  <meyering@redhat.com>
745
746         do-release-commit-and-tag: fix typo in --help
747         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
748
749         regex: avoid new dead-code warning with gcc-4.6.0
750         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
751         if-block containing a while-loop.  It's been unused for at least
752         5 years.
753
754 2010-06-05  Bruno Haible  <bruno@clisp.org>
755
756         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
757         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
758
759 2010-06-04  Bruno Haible  <bruno@clisp.org>
760
761         Update to GNU gettext 0.18.1.
762         * modules/gettext (configure.ac): Require gettext infrastructure from
763         version 0.18.1.
764
765 2010-06-03  Bruno Haible  <bruno@clisp.org>
766
767         Don't use AC_LIBOBJ with file names in subdirectories.
768         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
769         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
770         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
771         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
772         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
773         gl_LIBUNISTRING_LIBSOURCE.
774         (Makefile.am): Augment lib_SOURCES here, conditionally.
775         * NEWS: Drop requirement for Automake option 'subdir-objects'.
776
777 2010-06-03  Bruno Haible  <bruno@clisp.org>
778
779         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
780         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
781         expansion does not end with a newline.
782         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
783         unnecessary newline.
784
785 2010-06-03  Bruno Haible  <bruno@clisp.org>
786
787         Reduce dependencies.
788         * tests/test-quotearg.h: New file, extracted from
789         tests/test-quotearg.c.
790         * tests/test-quotearg-simple.c: New file, extracted from
791         tests/test-quotearg.c.
792         * tests/test-quotearg.c: Don't include <ctype.h>.
793         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
794         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
795         use_quote_double_quotes, use_quotearg_colon): Moved to
796         tests/test-quotearg.h.
797         (results_g, flag_results, custom_quotes, custom_results): Moved
798         to tests/test-quotearg-simple.c.
799         (main): Moved the part that does not depend on gettext to
800         tests/test-quotearg-simple.c. Return 77 if the test cannot be
801         performed.
802         * modules/quotearg-simple: New file.
803         * modules/quotearg-simple-tests: New file.
804         * modules/quotearg (Depends-on): Add quotearg-simple.
805         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
806         (Files): Add tests/test-quotearg.h.
807         Reported by Paolo Bonzini.
808
809 2010-06-03  Bruno Haible  <bruno@clisp.org>
810
811         Reduce dependencies.
812         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
813
814 2010-06-03  Bruno Haible  <bruno@clisp.org>
815
816         time: Undefine more broken macros.
817         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
818         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
819         Reported by Eric Blake.
820
821 2010-06-03  Bruno Haible  <bruno@clisp.org>
822
823         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
824         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
825         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
826         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
827         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
828         Reported by Ludovic Courtès <ludo@gnu.org>.
829
830 2010-06-02  Eric Blake  <eblake@redhat.com>
831
832         time: work with mingw + pthreads-win32 library
833         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
834         if timespec is defined only in pthread.h.
835         * modules/time (Makefile.am): Substitute it.
836         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
837         <pthread.h>, when needed.
838         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
839         from the library.
840
841 2010-05-31  Bruno Haible  <bruno@clisp.org>
842
843         Avoid expanding two macros in the wrong order.
844         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
845         gl_LIBUNISTRING if it is defined.
846         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
847         autoconf >= 2.64.
848         Reported by Ludovic Courtès <ludo@gnu.org>.
849
850 2010-05-27  Jim Meyering  <meyering@redhat.com>
851
852         maint.mk: also prohibit "#undef" of always-defined symbols
853         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
854         Allow more than one space before the symbol name.
855         (sc_prohibit_always-defined_macros): Use grep's -E, now that
856         the regexp uses alternation.
857
858 2010-05-26  Eric Blake  <eblake@redhat.com>
859
860         maint.mk: avoid echo -e
861         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
862         Convert all uses of echo -* to printf.
863         Reported by Matthias Bolte.
864
865 2010-05-25  Bruno Haible  <bruno@clisp.org>
866
867         Update to GNU gettext 0.18, part 2.
868         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
869         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
870
871 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
872
873         Add missing include in test-pwrite.c.
874         * tests/test-pwrite.c: Include string.h, for strcmp.
875
876 2010-05-24  Bruno Haible  <bruno@clisp.org>
877
878         * NEWS: Mention requirement for Automake option 'subdir-objects'.
879
880 2010-05-24  Bruno Haible  <bruno@clisp.org>
881
882         Don't use conversion with transliteration in u{8,16,32}_strcoll.
883         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
884         iconveh_error argument.
885         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
886         U_STRCONV_TO_LOCALE.
887         * lib/unistr/u16-strcoll.c: Likewise.
888         * lib/unistr/u32-strcoll.c: Likewise.
889         * modules/unistr/u8-strcoll (Depends-on): Add
890         uniconv/u8-strconv-to-enc, localcharset. Remove
891         uniconv/u8-strconv-to-locale.
892         (configure.ac): Bump version number.
893         * modules/unistr/u16-strcoll (Depends-on): Add
894         uniconv/u16-strconv-to-enc, localcharset. Remove
895         uniconv/u16-strconv-to-locale.
896         (configure.ac): Bump version number.
897         * modules/unistr/u32-strcoll (Depends-on): Add
898         uniconv/u32-strconv-to-enc, localcharset. Remove
899         uniconv/u32-strconv-to-locale.
900         (configure.ac): Bump version number.
901
902 2010-05-24  Bruno Haible  <bruno@clisp.org>
903
904         Avoid a test failure on NetBSD 5.0.
905         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
906         an iconv() bug.
907
908 2010-05-24  Bruno Haible  <bruno@clisp.org>
909
910         Adjust #include directive style.
911         * modules/regex (Includes): Recommend to write <regex.h>.
912
913 2010-05-24  Bruno Haible  <bruno@clisp.org>
914
915         regex: Don't require alloca.
916         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
917         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
918         only inside if (0).
919
920 2010-05-23  Jim Meyering  <meyering@redhat.com>
921
922         test-renameat.c: include <sys/stat.h>
923         * tests/test-renameat.c: Include <sys/stat.h>; required for
924         definition of S_IS* macros.
925
926 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
927
928         Update maintainer documentation for 'relocatable-prog' module.
929         * doc/relocatable-maint.texi: Update.
930         Comments by Bruno Haible.
931
932 2010-05-23  Bruno Haible  <bruno@clisp.org>
933
934         git-merge-changelog: Enable --split-merged-entry by default.
935         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
936         (usage): Don't mention this option any more.
937         Reported by Ralf Wildenhues.
938
939 2010-05-23  Jim Meyering  <meyering@redhat.com>
940
941         test-pwrite: do not leave behind a test file named "out"
942         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
943         The trivial-looking use of init.sh is really necessary.
944         It ensures that the temporary file, "out", is created in
945         a temporary directory, and removed upon termination.
946         * tests/test-pwrite.sh: Re-add file.
947         * modules/pwrite-tests: Reference it.
948
949 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
950
951         Fix output redirection buglet in init.sh.
952         * tests/init.sh: Fix redirection of stderr.
953
954 2010-05-20  Simon Josefsson  <simon@josefsson.org>
955
956         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
957
958 2010-05-17  Simon Josefsson  <simon@josefsson.org>
959
960         * modules/valgrind-tests: New file.
961         * m4/valgrind-tests.m4: New file.
962         * doc/valgrind-tests.texi: New file.
963         * doc/gnulib.texi (Running self-tests under valgrind): New
964         section.
965
966 2010-05-19  Bruno Haible  <bruno@clisp.org>
967
968         Clean up dead code in recent commit.
969         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
970         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
971         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
972         Suggested by Paolo Bonzini.
973
974 2010-05-19  Bruno Haible  <bruno@clisp.org>
975
976         Avoid valgrind error reports from libunistring.
977         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
978         * modules/libunistring (Files): Add it.
979         * modules/libunistring-optional (Files): Likewise.
980
981 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
982             Bruno Haible  <bruno@clisp.org>
983
984         New module 'libunistring-optional'.
985         * modules/libunistring-optional: New file.
986         * m4/libunistring-base.m4: New file.
987         * m4/libunistring-optional.m4: New file.
988         * lib/unicase.in.h: Renamed from lib/unicase.h.
989         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
990         * lib/unictype.in.h: Renamed from lib/unictype.h.
991         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
992         * lib/uniname.in.h: Renamed from lib/uniname.h.
993         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
994         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
995         * lib/unistr.in.h: Renamed from lib/unistr.h.
996         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
997         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
998         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
999         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
1000         gl_LIBUNISTRING. If the library was found, determine the installed
1001         version and set LIBUNISTRING_VERSION.
1002         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
1003         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
1004         handle a configuration option --with-included-libunistring.
1005         * modules/libunistring (Files): Add m4/absolute-header.m4.
1006         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
1007         Add m4/libunistring-base.m4.
1008         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1009         (Makefile.am): Build unicase.h from unicase.in.h.
1010         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
1011         Add m4/libunistring-base.m4.
1012         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1013         (Makefile.am): Build uniconv.h from uniconv.in.h.
1014         * modules/unictype/base (Files): Use unictype.in.h instead of
1015         unictype.h. Add m4/libunistring-base.m4.
1016         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1017         (Makefile.am): Build unictype.h from unictype.in.h.
1018         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
1019         Add m4/libunistring-base.m4.
1020         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1021         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
1022         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
1023         Add m4/libunistring-base.m4.
1024         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1025         (Makefile.am): Build uniname.h from uniname.in.h.
1026         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
1027         Add m4/libunistring-base.m4.
1028         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1029         (Makefile.am): Build uninorm.h from uninorm.in.h.
1030         * modules/unistdio/base (Files): Use unistdio.in.h instead of
1031         unistdio.h. Add m4/libunistring-base.m4.
1032         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1033         (Makefile.am): Build unistdio.h from unistdio.in.h.
1034         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
1035         Add m4/libunistring-base.m4.
1036         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1037         (Makefile.am): Build unistr.h from unistr.in.h.
1038         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
1039         Add m4/libunistring-base.m4.
1040         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1041         (Makefile.am): Build unitypes.h from unitypes.in.h.
1042         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
1043         Add m4/libunistring-base.m4.
1044         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1045         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
1046         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
1047         uniwidth.h. Add m4/libunistring-base.m4.
1048         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1049         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
1050         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
1051         instead of augmenting lib_SOURCES.
1052         * modules/unicase/empty-suffix-context: Likewise.
1053         * modules/unicase/locale-language: Likewise.
1054         * modules/unicase/tolower: Likewise.
1055         * modules/unicase/totitle: Likewise.
1056         * modules/unicase/toupper: Likewise.
1057         * modules/unicase/u8-casecmp: Likewise.
1058         * modules/unicase/u8-casecoll: Likewise.
1059         * modules/unicase/u8-casefold: Likewise.
1060         * modules/unicase/u8-casexfrm: Likewise.
1061         * modules/unicase/u8-ct-casefold: Likewise.
1062         * modules/unicase/u8-ct-tolower: Likewise.
1063         * modules/unicase/u8-ct-totitle: Likewise.
1064         * modules/unicase/u8-ct-toupper: Likewise.
1065         * modules/unicase/u8-is-cased: Likewise.
1066         * modules/unicase/u8-is-casefolded: Likewise.
1067         * modules/unicase/u8-is-lowercase: Likewise.
1068         * modules/unicase/u8-is-titlecase: Likewise.
1069         * modules/unicase/u8-is-uppercase: Likewise.
1070         * modules/unicase/u8-prefix-context: Likewise.
1071         * modules/unicase/u8-suffix-context: Likewise.
1072         * modules/unicase/u8-tolower: Likewise.
1073         * modules/unicase/u8-totitle: Likewise.
1074         * modules/unicase/u8-toupper: Likewise.
1075         * modules/unicase/u16-casecmp: Likewise.
1076         * modules/unicase/u16-casecoll: Likewise.
1077         * modules/unicase/u16-casefold: Likewise.
1078         * modules/unicase/u16-casexfrm: Likewise.
1079         * modules/unicase/u16-ct-casefold: Likewise.
1080         * modules/unicase/u16-ct-tolower: Likewise.
1081         * modules/unicase/u16-ct-totitle: Likewise.
1082         * modules/unicase/u16-ct-toupper: Likewise.
1083         * modules/unicase/u16-is-cased: Likewise.
1084         * modules/unicase/u16-is-casefolded: Likewise.
1085         * modules/unicase/u16-is-lowercase: Likewise.
1086         * modules/unicase/u16-is-titlecase: Likewise.
1087         * modules/unicase/u16-is-uppercase: Likewise.
1088         * modules/unicase/u16-prefix-context: Likewise.
1089         * modules/unicase/u16-suffix-context: Likewise.
1090         * modules/unicase/u16-tolower: Likewise.
1091         * modules/unicase/u16-totitle: Likewise.
1092         * modules/unicase/u16-toupper: Likewise.
1093         * modules/unicase/u32-casecmp: Likewise.
1094         * modules/unicase/u32-casecoll: Likewise.
1095         * modules/unicase/u32-casefold: Likewise.
1096         * modules/unicase/u32-casexfrm: Likewise.
1097         * modules/unicase/u32-ct-casefold: Likewise.
1098         * modules/unicase/u32-ct-tolower: Likewise.
1099         * modules/unicase/u32-ct-totitle: Likewise.
1100         * modules/unicase/u32-ct-toupper: Likewise.
1101         * modules/unicase/u32-is-cased: Likewise.
1102         * modules/unicase/u32-is-casefolded: Likewise.
1103         * modules/unicase/u32-is-lowercase: Likewise.
1104         * modules/unicase/u32-is-titlecase: Likewise.
1105         * modules/unicase/u32-is-uppercase: Likewise.
1106         * modules/unicase/u32-prefix-context: Likewise.
1107         * modules/unicase/u32-suffix-context: Likewise.
1108         * modules/unicase/u32-tolower: Likewise.
1109         * modules/unicase/u32-totitle: Likewise.
1110         * modules/unicase/u32-toupper: Likewise.
1111         * modules/unicase/ulc-casecmp: Likewise.
1112         * modules/unicase/ulc-casecoll: Likewise.
1113         * modules/unicase/ulc-casexfrm: Likewise.
1114         * modules/uniconv/u8-conv-from-enc: Likewise.
1115         * modules/uniconv/u8-conv-to-enc: Likewise.
1116         * modules/uniconv/u8-strconv-from-enc: Likewise.
1117         * modules/uniconv/u8-strconv-from-locale: Likewise.
1118         * modules/uniconv/u8-strconv-to-enc: Likewise.
1119         * modules/uniconv/u8-strconv-to-locale: Likewise.
1120         * modules/uniconv/u16-conv-from-enc: Likewise.
1121         * modules/uniconv/u16-conv-to-enc: Likewise.
1122         * modules/uniconv/u16-strconv-from-enc: Likewise.
1123         * modules/uniconv/u16-strconv-from-locale: Likewise.
1124         * modules/uniconv/u16-strconv-to-enc: Likewise.
1125         * modules/uniconv/u16-strconv-to-locale: Likewise.
1126         * modules/uniconv/u32-conv-from-enc: Likewise.
1127         * modules/uniconv/u32-conv-to-enc: Likewise.
1128         * modules/uniconv/u32-strconv-from-enc: Likewise.
1129         * modules/uniconv/u32-strconv-from-locale: Likewise.
1130         * modules/uniconv/u32-strconv-to-enc: Likewise.
1131         * modules/uniconv/u32-strconv-to-locale: Likewise.
1132         * modules/unictype/bidicategory-byname: Likewise.
1133         * modules/unictype/bidicategory-name: Likewise.
1134         * modules/unictype/bidicategory-of: Likewise.
1135         * modules/unictype/bidicategory-test: Likewise.
1136         * modules/unictype/block-list: Likewise.
1137         * modules/unictype/block-test: Likewise.
1138         * modules/unictype/category-C: Likewise.
1139         * modules/unictype/category-Cc: Likewise.
1140         * modules/unictype/category-Cf: Likewise.
1141         * modules/unictype/category-Cn: Likewise.
1142         * modules/unictype/category-Co: Likewise.
1143         * modules/unictype/category-Cs: Likewise.
1144         * modules/unictype/category-L: Likewise.
1145         * modules/unictype/category-Ll: Likewise.
1146         * modules/unictype/category-Lm: Likewise.
1147         * modules/unictype/category-Lo: Likewise.
1148         * modules/unictype/category-Lt: Likewise.
1149         * modules/unictype/category-Lu: Likewise.
1150         * modules/unictype/category-M: Likewise.
1151         * modules/unictype/category-Mc: Likewise.
1152         * modules/unictype/category-Me: Likewise.
1153         * modules/unictype/category-Mn: Likewise.
1154         * modules/unictype/category-N: Likewise.
1155         * modules/unictype/category-Nd: Likewise.
1156         * modules/unictype/category-Nl: Likewise.
1157         * modules/unictype/category-No: Likewise.
1158         * modules/unictype/category-P: Likewise.
1159         * modules/unictype/category-Pc: Likewise.
1160         * modules/unictype/category-Pd: Likewise.
1161         * modules/unictype/category-Pe: Likewise.
1162         * modules/unictype/category-Pf: Likewise.
1163         * modules/unictype/category-Pi: Likewise.
1164         * modules/unictype/category-Po: Likewise.
1165         * modules/unictype/category-Ps: Likewise.
1166         * modules/unictype/category-S: Likewise.
1167         * modules/unictype/category-Sc: Likewise.
1168         * modules/unictype/category-Sk: Likewise.
1169         * modules/unictype/category-Sm: Likewise.
1170         * modules/unictype/category-So: Likewise.
1171         * modules/unictype/category-Z: Likewise.
1172         * modules/unictype/category-Zl: Likewise.
1173         * modules/unictype/category-Zp: Likewise.
1174         * modules/unictype/category-Zs: Likewise.
1175         * modules/unictype/category-and: Likewise.
1176         * modules/unictype/category-and-not: Likewise.
1177         * modules/unictype/category-byname: Likewise.
1178         * modules/unictype/category-name: Likewise.
1179         * modules/unictype/category-none: Likewise.
1180         * modules/unictype/category-of: Likewise.
1181         * modules/unictype/category-or: Likewise.
1182         * modules/unictype/category-test: Likewise.
1183         * modules/unictype/combining-class: Likewise.
1184         * modules/unictype/ctype-alnum: Likewise.
1185         * modules/unictype/ctype-alpha: Likewise.
1186         * modules/unictype/ctype-blank: Likewise.
1187         * modules/unictype/ctype-cntrl: Likewise.
1188         * modules/unictype/ctype-digit: Likewise.
1189         * modules/unictype/ctype-graph: Likewise.
1190         * modules/unictype/ctype-lower: Likewise.
1191         * modules/unictype/ctype-print: Likewise.
1192         * modules/unictype/ctype-punct: Likewise.
1193         * modules/unictype/ctype-space: Likewise.
1194         * modules/unictype/ctype-upper: Likewise.
1195         * modules/unictype/ctype-xdigit: Likewise.
1196         * modules/unictype/decimal-digit: Likewise.
1197         * modules/unictype/digit: Likewise.
1198         * modules/unictype/mirror: Likewise.
1199         * modules/unictype/numeric: Likewise.
1200         * modules/unictype/property-alphabetic: Likewise.
1201         * modules/unictype/property-ascii-hex-digit: Likewise.
1202         * modules/unictype/property-bidi-arabic-digit: Likewise.
1203         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
1204         * modules/unictype/property-bidi-block-separator: Likewise.
1205         * modules/unictype/property-bidi-boundary-neutral: Likewise.
1206         * modules/unictype/property-bidi-common-separator: Likewise.
1207         * modules/unictype/property-bidi-control: Likewise.
1208         * modules/unictype/property-bidi-embedding-or-override: Likewise.
1209         * modules/unictype/property-bidi-eur-num-separator: Likewise.
1210         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
1211         * modules/unictype/property-bidi-european-digit: Likewise.
1212         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
1213         * modules/unictype/property-bidi-left-to-right: Likewise.
1214         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
1215         * modules/unictype/property-bidi-other-neutral: Likewise.
1216         * modules/unictype/property-bidi-pdf: Likewise.
1217         * modules/unictype/property-bidi-segment-separator: Likewise.
1218         * modules/unictype/property-bidi-whitespace: Likewise.
1219         * modules/unictype/property-byname: Likewise.
1220         * modules/unictype/property-combining: Likewise.
1221         * modules/unictype/property-composite: Likewise.
1222         * modules/unictype/property-currency-symbol: Likewise.
1223         * modules/unictype/property-dash: Likewise.
1224         * modules/unictype/property-decimal-digit: Likewise.
1225         * modules/unictype/property-default-ignorable-code-point: Likewise.
1226         * modules/unictype/property-deprecated: Likewise.
1227         * modules/unictype/property-diacritic: Likewise.
1228         * modules/unictype/property-extender: Likewise.
1229         * modules/unictype/property-format-control: Likewise.
1230         * modules/unictype/property-grapheme-base: Likewise.
1231         * modules/unictype/property-grapheme-extend: Likewise.
1232         * modules/unictype/property-grapheme-link: Likewise.
1233         * modules/unictype/property-hex-digit: Likewise.
1234         * modules/unictype/property-hyphen: Likewise.
1235         * modules/unictype/property-id-continue: Likewise.
1236         * modules/unictype/property-id-start: Likewise.
1237         * modules/unictype/property-ideographic: Likewise.
1238         * modules/unictype/property-ids-binary-operator: Likewise.
1239         * modules/unictype/property-ids-trinary-operator: Likewise.
1240         * modules/unictype/property-ignorable-control: Likewise.
1241         * modules/unictype/property-iso-control: Likewise.
1242         * modules/unictype/property-join-control: Likewise.
1243         * modules/unictype/property-left-of-pair: Likewise.
1244         * modules/unictype/property-line-separator: Likewise.
1245         * modules/unictype/property-logical-order-exception: Likewise.
1246         * modules/unictype/property-lowercase: Likewise.
1247         * modules/unictype/property-math: Likewise.
1248         * modules/unictype/property-non-break: Likewise.
1249         * modules/unictype/property-not-a-character: Likewise.
1250         * modules/unictype/property-numeric: Likewise.
1251         * modules/unictype/property-other-alphabetic: Likewise.
1252         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
1253         * modules/unictype/property-other-grapheme-extend: Likewise.
1254         * modules/unictype/property-other-id-continue: Likewise.
1255         * modules/unictype/property-other-id-start: Likewise.
1256         * modules/unictype/property-other-lowercase: Likewise.
1257         * modules/unictype/property-other-math: Likewise.
1258         * modules/unictype/property-other-uppercase: Likewise.
1259         * modules/unictype/property-paired-punctuation: Likewise.
1260         * modules/unictype/property-paragraph-separator: Likewise.
1261         * modules/unictype/property-pattern-syntax: Likewise.
1262         * modules/unictype/property-pattern-white-space: Likewise.
1263         * modules/unictype/property-private-use: Likewise.
1264         * modules/unictype/property-punctuation: Likewise.
1265         * modules/unictype/property-quotation-mark: Likewise.
1266         * modules/unictype/property-radical: Likewise.
1267         * modules/unictype/property-sentence-terminal: Likewise.
1268         * modules/unictype/property-soft-dotted: Likewise.
1269         * modules/unictype/property-space: Likewise.
1270         * modules/unictype/property-terminal-punctuation: Likewise.
1271         * modules/unictype/property-test: Likewise.
1272         * modules/unictype/property-titlecase: Likewise.
1273         * modules/unictype/property-unassigned-code-value: Likewise.
1274         * modules/unictype/property-unified-ideograph: Likewise.
1275         * modules/unictype/property-uppercase: Likewise.
1276         * modules/unictype/property-variation-selector: Likewise.
1277         * modules/unictype/property-white-space: Likewise.
1278         * modules/unictype/property-xid-continue: Likewise.
1279         * modules/unictype/property-xid-start: Likewise.
1280         * modules/unictype/property-zero-width: Likewise.
1281         * modules/unictype/scripts: Likewise.
1282         * modules/unictype/syntax-c-ident: Likewise.
1283         * modules/unictype/syntax-c-whitespace: Likewise.
1284         * modules/unictype/syntax-java-ident: Likewise.
1285         * modules/unictype/syntax-java-whitespace: Likewise.
1286         * modules/unilbrk/u8-possible-linebreaks: Likewise.
1287         * modules/unilbrk/u8-width-linebreaks: Likewise.
1288         * modules/unilbrk/u16-possible-linebreaks: Likewise.
1289         * modules/unilbrk/u16-width-linebreaks: Likewise.
1290         * modules/unilbrk/u32-possible-linebreaks: Likewise.
1291         * modules/unilbrk/u32-width-linebreaks: Likewise.
1292         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
1293         * modules/unilbrk/ulc-width-linebreaks: Likewise.
1294         * modules/uniname/uniname: Likewise.
1295         * modules/uninorm/canonical-decomposition: Likewise.
1296         * modules/uninorm/composition: Likewise.
1297         * modules/uninorm/decomposing-form: Likewise.
1298         * modules/uninorm/decomposition: Likewise.
1299         * modules/uninorm/filter: Likewise.
1300         * modules/uninorm/nfc: Likewise.
1301         * modules/uninorm/nfd: Likewise.
1302         * modules/uninorm/nfkc: Likewise.
1303         * modules/uninorm/nfkd: Likewise.
1304         * modules/uninorm/u8-normalize: Likewise.
1305         * modules/uninorm/u8-normcmp: Likewise.
1306         * modules/uninorm/u8-normcoll: Likewise.
1307         * modules/uninorm/u8-normxfrm: Likewise.
1308         * modules/uninorm/u16-normalize: Likewise.
1309         * modules/uninorm/u16-normcmp: Likewise.
1310         * modules/uninorm/u16-normcoll: Likewise.
1311         * modules/uninorm/u16-normxfrm: Likewise.
1312         * modules/uninorm/u32-normalize: Likewise.
1313         * modules/uninorm/u32-normcmp: Likewise.
1314         * modules/uninorm/u32-normcoll: Likewise.
1315         * modules/uninorm/u32-normxfrm: Likewise.
1316         * modules/unistdio/u8-asnprintf: Likewise.
1317         * modules/unistdio/u8-asprintf: Likewise.
1318         * modules/unistdio/u8-snprintf: Likewise.
1319         * modules/unistdio/u8-sprintf: Likewise.
1320         * modules/unistdio/u8-u8-asnprintf: Likewise.
1321         * modules/unistdio/u8-u8-asprintf: Likewise.
1322         * modules/unistdio/u8-u8-snprintf: Likewise.
1323         * modules/unistdio/u8-u8-sprintf: Likewise.
1324         * modules/unistdio/u8-u8-vasnprintf: Likewise.
1325         * modules/unistdio/u8-u8-vasprintf: Likewise.
1326         * modules/unistdio/u8-u8-vsnprintf: Likewise.
1327         * modules/unistdio/u8-u8-vsprintf: Likewise.
1328         * modules/unistdio/u8-vasnprintf: Likewise.
1329         * modules/unistdio/u8-vasprintf: Likewise.
1330         * modules/unistdio/u8-vsnprintf: Likewise.
1331         * modules/unistdio/u8-vsprintf: Likewise.
1332         * modules/unistdio/u16-asnprintf: Likewise.
1333         * modules/unistdio/u16-asprintf: Likewise.
1334         * modules/unistdio/u16-snprintf: Likewise.
1335         * modules/unistdio/u16-sprintf: Likewise.
1336         * modules/unistdio/u16-u16-asnprintf: Likewise.
1337         * modules/unistdio/u16-u16-asprintf: Likewise.
1338         * modules/unistdio/u16-u16-snprintf: Likewise.
1339         * modules/unistdio/u16-u16-sprintf: Likewise.
1340         * modules/unistdio/u16-u16-vasnprintf: Likewise.
1341         * modules/unistdio/u16-u16-vasprintf: Likewise.
1342         * modules/unistdio/u16-u16-vsnprintf: Likewise.
1343         * modules/unistdio/u16-u16-vsprintf: Likewise.
1344         * modules/unistdio/u16-vasnprintf: Likewise.
1345         * modules/unistdio/u16-vasprintf: Likewise.
1346         * modules/unistdio/u16-vsnprintf: Likewise.
1347         * modules/unistdio/u16-vsprintf: Likewise.
1348         * modules/unistdio/u32-asnprintf: Likewise.
1349         * modules/unistdio/u32-asprintf: Likewise.
1350         * modules/unistdio/u32-snprintf: Likewise.
1351         * modules/unistdio/u32-sprintf: Likewise.
1352         * modules/unistdio/u32-u32-asnprintf: Likewise.
1353         * modules/unistdio/u32-u32-asprintf: Likewise.
1354         * modules/unistdio/u32-u32-snprintf: Likewise.
1355         * modules/unistdio/u32-u32-sprintf: Likewise.
1356         * modules/unistdio/u32-u32-vasnprintf: Likewise.
1357         * modules/unistdio/u32-u32-vasprintf: Likewise.
1358         * modules/unistdio/u32-u32-vsnprintf: Likewise.
1359         * modules/unistdio/u32-u32-vsprintf: Likewise.
1360         * modules/unistdio/u32-vasnprintf: Likewise.
1361         * modules/unistdio/u32-vasprintf: Likewise.
1362         * modules/unistdio/u32-vsnprintf: Likewise.
1363         * modules/unistdio/u32-vsprintf: Likewise.
1364         * modules/unistdio/ulc-asnprintf: Likewise.
1365         * modules/unistdio/ulc-asprintf: Likewise.
1366         * modules/unistdio/ulc-fprintf: Likewise.
1367         * modules/unistdio/ulc-snprintf: Likewise.
1368         * modules/unistdio/ulc-sprintf: Likewise.
1369         * modules/unistdio/ulc-vasnprintf: Likewise.
1370         * modules/unistdio/ulc-vasprintf: Likewise.
1371         * modules/unistdio/ulc-vfprintf: Likewise.
1372         * modules/unistdio/ulc-vsnprintf: Likewise.
1373         * modules/unistdio/ulc-vsprintf: Likewise.
1374         * modules/unistr/u8-check: Likewise.
1375         * modules/unistr/u8-chr: Likewise.
1376         * modules/unistr/u8-cmp: Likewise.
1377         * modules/unistr/u8-cmp2: Likewise.
1378         * modules/unistr/u8-cpy: Likewise.
1379         * modules/unistr/u8-cpy-alloc: Likewise.
1380         * modules/unistr/u8-endswith: Likewise.
1381         * modules/unistr/u8-mblen: Likewise.
1382         * modules/unistr/u8-mbsnlen: Likewise.
1383         * modules/unistr/u8-mbtouc: Likewise.
1384         * modules/unistr/u8-mbtouc-unsafe: Likewise.
1385         * modules/unistr/u8-mbtoucr: Likewise.
1386         * modules/unistr/u8-move: Likewise.
1387         * modules/unistr/u8-next: Likewise.
1388         * modules/unistr/u8-prev: Likewise.
1389         * modules/unistr/u8-set: Likewise.
1390         * modules/unistr/u8-startswith: Likewise.
1391         * modules/unistr/u8-stpcpy: Likewise.
1392         * modules/unistr/u8-stpncpy: Likewise.
1393         * modules/unistr/u8-strcat: Likewise.
1394         * modules/unistr/u8-strchr: Likewise.
1395         * modules/unistr/u8-strcmp: Likewise.
1396         * modules/unistr/u8-strcoll: Likewise.
1397         * modules/unistr/u8-strcpy: Likewise.
1398         * modules/unistr/u8-strcspn: Likewise.
1399         * modules/unistr/u8-strdup: Likewise.
1400         * modules/unistr/u8-strlen: Likewise.
1401         * modules/unistr/u8-strmblen: Likewise.
1402         * modules/unistr/u8-strmbtouc: Likewise.
1403         * modules/unistr/u8-strncat: Likewise.
1404         * modules/unistr/u8-strncmp: Likewise.
1405         * modules/unistr/u8-strncpy: Likewise.
1406         * modules/unistr/u8-strnlen: Likewise.
1407         * modules/unistr/u8-strpbrk: Likewise.
1408         * modules/unistr/u8-strrchr: Likewise.
1409         * modules/unistr/u8-strspn: Likewise.
1410         * modules/unistr/u8-strstr: Likewise.
1411         * modules/unistr/u8-strtok: Likewise.
1412         * modules/unistr/u8-to-u16: Likewise.
1413         * modules/unistr/u8-to-u32: Likewise.
1414         * modules/unistr/u8-uctomb: Likewise.
1415         * modules/unistr/u16-check: Likewise.
1416         * modules/unistr/u16-chr: Likewise.
1417         * modules/unistr/u16-cmp: Likewise.
1418         * modules/unistr/u16-cmp2: Likewise.
1419         * modules/unistr/u16-cpy: Likewise.
1420         * modules/unistr/u16-cpy-alloc: Likewise.
1421         * modules/unistr/u16-endswith: Likewise.
1422         * modules/unistr/u16-mblen: Likewise.
1423         * modules/unistr/u16-mbsnlen: Likewise.
1424         * modules/unistr/u16-mbtouc: Likewise.
1425         * modules/unistr/u16-mbtouc-unsafe: Likewise.
1426         * modules/unistr/u16-mbtoucr: Likewise.
1427         * modules/unistr/u16-move: Likewise.
1428         * modules/unistr/u16-next: Likewise.
1429         * modules/unistr/u16-prev: Likewise.
1430         * modules/unistr/u16-set: Likewise.
1431         * modules/unistr/u16-startswith: Likewise.
1432         * modules/unistr/u16-stpcpy: Likewise.
1433         * modules/unistr/u16-stpncpy: Likewise.
1434         * modules/unistr/u16-strcat: Likewise.
1435         * modules/unistr/u16-strchr: Likewise.
1436         * modules/unistr/u16-strcmp: Likewise.
1437         * modules/unistr/u16-strcoll: Likewise.
1438         * modules/unistr/u16-strcpy: Likewise.
1439         * modules/unistr/u16-strcspn: Likewise.
1440         * modules/unistr/u16-strdup: Likewise.
1441         * modules/unistr/u16-strlen: Likewise.
1442         * modules/unistr/u16-strmblen: Likewise.
1443         * modules/unistr/u16-strmbtouc: Likewise.
1444         * modules/unistr/u16-strncat: Likewise.
1445         * modules/unistr/u16-strncmp: Likewise.
1446         * modules/unistr/u16-strncpy: Likewise.
1447         * modules/unistr/u16-strnlen: Likewise.
1448         * modules/unistr/u16-strpbrk: Likewise.
1449         * modules/unistr/u16-strrchr: Likewise.
1450         * modules/unistr/u16-strspn: Likewise.
1451         * modules/unistr/u16-strstr: Likewise.
1452         * modules/unistr/u16-strtok: Likewise.
1453         * modules/unistr/u16-to-u32: Likewise.
1454         * modules/unistr/u16-to-u8: Likewise.
1455         * modules/unistr/u16-uctomb: Likewise.
1456         * modules/unistr/u32-check: Likewise.
1457         * modules/unistr/u32-chr: Likewise.
1458         * modules/unistr/u32-cmp: Likewise.
1459         * modules/unistr/u32-cmp2: Likewise.
1460         * modules/unistr/u32-cpy: Likewise.
1461         * modules/unistr/u32-cpy-alloc: Likewise.
1462         * modules/unistr/u32-endswith: Likewise.
1463         * modules/unistr/u32-mblen: Likewise.
1464         * modules/unistr/u32-mbsnlen: Likewise.
1465         * modules/unistr/u32-mbtouc: Likewise.
1466         * modules/unistr/u32-mbtouc-unsafe: Likewise.
1467         * modules/unistr/u32-mbtoucr: Likewise.
1468         * modules/unistr/u32-move: Likewise.
1469         * modules/unistr/u32-next: Likewise.
1470         * modules/unistr/u32-prev: Likewise.
1471         * modules/unistr/u32-set: Likewise.
1472         * modules/unistr/u32-startswith: Likewise.
1473         * modules/unistr/u32-stpcpy: Likewise.
1474         * modules/unistr/u32-stpncpy: Likewise.
1475         * modules/unistr/u32-strcat: Likewise.
1476         * modules/unistr/u32-strchr: Likewise.
1477         * modules/unistr/u32-strcmp: Likewise.
1478         * modules/unistr/u32-strcoll: Likewise.
1479         * modules/unistr/u32-strcpy: Likewise.
1480         * modules/unistr/u32-strcspn: Likewise.
1481         * modules/unistr/u32-strdup: Likewise.
1482         * modules/unistr/u32-strlen: Likewise.
1483         * modules/unistr/u32-strmblen: Likewise.
1484         * modules/unistr/u32-strmbtouc: Likewise.
1485         * modules/unistr/u32-strncat: Likewise.
1486         * modules/unistr/u32-strncmp: Likewise.
1487         * modules/unistr/u32-strncpy: Likewise.
1488         * modules/unistr/u32-strnlen: Likewise.
1489         * modules/unistr/u32-strpbrk: Likewise.
1490         * modules/unistr/u32-strrchr: Likewise.
1491         * modules/unistr/u32-strspn: Likewise.
1492         * modules/unistr/u32-strstr: Likewise.
1493         * modules/unistr/u32-strtok: Likewise.
1494         * modules/unistr/u32-to-u16: Likewise.
1495         * modules/unistr/u32-to-u8: Likewise.
1496         * modules/unistr/u32-uctomb: Likewise.
1497         * modules/uniwbrk/u8-wordbreaks: Likewise.
1498         * modules/uniwbrk/u16-wordbreaks: Likewise.
1499         * modules/uniwbrk/u32-wordbreaks: Likewise.
1500         * modules/uniwbrk/ulc-wordbreaks: Likewise.
1501         * modules/uniwbrk/wordbreak-property: Likewise.
1502         * modules/uniwidth/u8-strwidth: Likewise.
1503         * modules/uniwidth/u8-width: Likewise.
1504         * modules/uniwidth/u16-strwidth: Likewise.
1505         * modules/uniwidth/u16-width: Likewise.
1506         * modules/uniwidth/u32-strwidth: Likewise.
1507         * modules/uniwidth/u32-width: Likewise.
1508         * modules/uniwidth/width: Likewise.
1509         * modules/unicase/cased-tests (Makefile.am): Link all test programs
1510         with $(LIBUNISTRING).
1511         * modules/unicase/ignorable-tests: Likewise.
1512         * modules/unicase/locale-language-tests: Likewise.
1513         * modules/unicase/tolower-tests: Likewise.
1514         * modules/unicase/totitle-tests: Likewise.
1515         * modules/unicase/toupper-tests: Likewise.
1516         * modules/unicase/u8-casecmp-tests: Likewise.
1517         * modules/unicase/u8-casecoll-tests: Likewise.
1518         * modules/unicase/u8-casefold-tests: Likewise.
1519         * modules/unicase/u8-is-cased-tests: Likewise.
1520         * modules/unicase/u8-is-casefolded-tests: Likewise.
1521         * modules/unicase/u8-is-lowercase-tests: Likewise.
1522         * modules/unicase/u8-is-titlecase-tests: Likewise.
1523         * modules/unicase/u8-is-uppercase-tests: Likewise.
1524         * modules/unicase/u8-tolower-tests: Likewise.
1525         * modules/unicase/u8-totitle-tests: Likewise.
1526         * modules/unicase/u8-toupper-tests: Likewise.
1527         * modules/unicase/u16-casecmp-tests: Likewise.
1528         * modules/unicase/u16-casecoll-tests: Likewise.
1529         * modules/unicase/u16-casefold-tests: Likewise.
1530         * modules/unicase/u16-is-cased-tests: Likewise.
1531         * modules/unicase/u16-is-casefolded-tests: Likewise.
1532         * modules/unicase/u16-is-lowercase-tests: Likewise.
1533         * modules/unicase/u16-is-titlecase-tests: Likewise.
1534         * modules/unicase/u16-is-uppercase-tests: Likewise.
1535         * modules/unicase/u16-tolower-tests: Likewise.
1536         * modules/unicase/u16-totitle-tests: Likewise.
1537         * modules/unicase/u16-toupper-tests: Likewise.
1538         * modules/unicase/u32-casecmp-tests: Likewise.
1539         * modules/unicase/u32-casecoll-tests: Likewise.
1540         * modules/unicase/u32-casefold-tests: Likewise.
1541         * modules/unicase/u32-is-cased-tests: Likewise.
1542         * modules/unicase/u32-is-casefolded-tests: Likewise.
1543         * modules/unicase/u32-is-lowercase-tests: Likewise.
1544         * modules/unicase/u32-is-titlecase-tests: Likewise.
1545         * modules/unicase/u32-is-uppercase-tests: Likewise.
1546         * modules/unicase/u32-tolower-tests: Likewise.
1547         * modules/unicase/u32-totitle-tests: Likewise.
1548         * modules/unicase/u32-toupper-tests: Likewise.
1549         * modules/unicase/ulc-casecmp-tests: Likewise.
1550         * modules/unicase/ulc-casecoll-tests: Likewise.
1551         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1552         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1553         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1554         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1555         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1556         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1557         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1558         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1559         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1560         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1561         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1562         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1563         * modules/unictype/bidicategory-byname-tests: Likewise.
1564         * modules/unictype/bidicategory-name-tests: Likewise.
1565         * modules/unictype/bidicategory-of-tests: Likewise.
1566         * modules/unictype/bidicategory-test-tests: Likewise.
1567         * modules/unictype/block-list-tests: Likewise.
1568         * modules/unictype/block-of-tests: Likewise.
1569         * modules/unictype/block-test-tests: Likewise.
1570         * modules/unictype/category-C-tests: Likewise.
1571         * modules/unictype/category-Cc-tests: Likewise.
1572         * modules/unictype/category-Cf-tests: Likewise.
1573         * modules/unictype/category-Cn-tests: Likewise.
1574         * modules/unictype/category-Co-tests: Likewise.
1575         * modules/unictype/category-Cs-tests: Likewise.
1576         * modules/unictype/category-L-tests: Likewise.
1577         * modules/unictype/category-Ll-tests: Likewise.
1578         * modules/unictype/category-Lm-tests: Likewise.
1579         * modules/unictype/category-Lo-tests: Likewise.
1580         * modules/unictype/category-Lt-tests: Likewise.
1581         * modules/unictype/category-Lu-tests: Likewise.
1582         * modules/unictype/category-M-tests: Likewise.
1583         * modules/unictype/category-Mc-tests: Likewise.
1584         * modules/unictype/category-Me-tests: Likewise.
1585         * modules/unictype/category-Mn-tests: Likewise.
1586         * modules/unictype/category-N-tests: Likewise.
1587         * modules/unictype/category-Nd-tests: Likewise.
1588         * modules/unictype/category-Nl-tests: Likewise.
1589         * modules/unictype/category-No-tests: Likewise.
1590         * modules/unictype/category-P-tests: Likewise.
1591         * modules/unictype/category-Pc-tests: Likewise.
1592         * modules/unictype/category-Pd-tests: Likewise.
1593         * modules/unictype/category-Pe-tests: Likewise.
1594         * modules/unictype/category-Pf-tests: Likewise.
1595         * modules/unictype/category-Pi-tests: Likewise.
1596         * modules/unictype/category-Po-tests: Likewise.
1597         * modules/unictype/category-Ps-tests: Likewise.
1598         * modules/unictype/category-S-tests: Likewise.
1599         * modules/unictype/category-Sc-tests: Likewise.
1600         * modules/unictype/category-Sk-tests: Likewise.
1601         * modules/unictype/category-Sm-tests: Likewise.
1602         * modules/unictype/category-So-tests: Likewise.
1603         * modules/unictype/category-Z-tests: Likewise.
1604         * modules/unictype/category-Zl-tests: Likewise.
1605         * modules/unictype/category-Zp-tests: Likewise.
1606         * modules/unictype/category-Zs-tests: Likewise.
1607         * modules/unictype/category-and-not-tests: Likewise.
1608         * modules/unictype/category-and-tests: Likewise.
1609         * modules/unictype/category-byname-tests: Likewise.
1610         * modules/unictype/category-name-tests: Likewise.
1611         * modules/unictype/category-none-tests: Likewise.
1612         * modules/unictype/category-of-tests: Likewise.
1613         * modules/unictype/category-or-tests: Likewise.
1614         * modules/unictype/category-test-withtable-tests: Likewise.
1615         * modules/unictype/combining-class-tests: Likewise.
1616         * modules/unictype/ctype-alnum-tests: Likewise.
1617         * modules/unictype/ctype-alpha-tests: Likewise.
1618         * modules/unictype/ctype-blank-tests: Likewise.
1619         * modules/unictype/ctype-cntrl-tests: Likewise.
1620         * modules/unictype/ctype-digit-tests: Likewise.
1621         * modules/unictype/ctype-graph-tests: Likewise.
1622         * modules/unictype/ctype-lower-tests: Likewise.
1623         * modules/unictype/ctype-print-tests: Likewise.
1624         * modules/unictype/ctype-punct-tests: Likewise.
1625         * modules/unictype/ctype-space-tests: Likewise.
1626         * modules/unictype/ctype-upper-tests: Likewise.
1627         * modules/unictype/ctype-xdigit-tests: Likewise.
1628         * modules/unictype/decimal-digit-tests: Likewise.
1629         * modules/unictype/digit-tests: Likewise.
1630         * modules/unictype/mirror-tests: Likewise.
1631         * modules/unictype/numeric-tests: Likewise.
1632         * modules/unictype/property-alphabetic-tests: Likewise.
1633         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1634         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1635         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1636         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1637         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1638         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1639         * modules/unictype/property-bidi-control-tests: Likewise.
1640         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1641         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1642         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1643         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1644         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1645         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1646         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1647         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1648         * modules/unictype/property-bidi-pdf-tests: Likewise.
1649         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1650         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1651         * modules/unictype/property-byname-tests: Likewise.
1652         * modules/unictype/property-combining-tests: Likewise.
1653         * modules/unictype/property-composite-tests: Likewise.
1654         * modules/unictype/property-currency-symbol-tests: Likewise.
1655         * modules/unictype/property-dash-tests: Likewise.
1656         * modules/unictype/property-decimal-digit-tests: Likewise.
1657         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1658         * modules/unictype/property-deprecated-tests: Likewise.
1659         * modules/unictype/property-diacritic-tests: Likewise.
1660         * modules/unictype/property-extender-tests: Likewise.
1661         * modules/unictype/property-format-control-tests: Likewise.
1662         * modules/unictype/property-grapheme-base-tests: Likewise.
1663         * modules/unictype/property-grapheme-extend-tests: Likewise.
1664         * modules/unictype/property-grapheme-link-tests: Likewise.
1665         * modules/unictype/property-hex-digit-tests: Likewise.
1666         * modules/unictype/property-hyphen-tests: Likewise.
1667         * modules/unictype/property-id-continue-tests: Likewise.
1668         * modules/unictype/property-id-start-tests: Likewise.
1669         * modules/unictype/property-ideographic-tests: Likewise.
1670         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1671         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1672         * modules/unictype/property-ignorable-control-tests: Likewise.
1673         * modules/unictype/property-iso-control-tests: Likewise.
1674         * modules/unictype/property-join-control-tests: Likewise.
1675         * modules/unictype/property-left-of-pair-tests: Likewise.
1676         * modules/unictype/property-line-separator-tests: Likewise.
1677         * modules/unictype/property-logical-order-exception-tests: Likewise.
1678         * modules/unictype/property-lowercase-tests: Likewise.
1679         * modules/unictype/property-math-tests: Likewise.
1680         * modules/unictype/property-non-break-tests: Likewise.
1681         * modules/unictype/property-not-a-character-tests: Likewise.
1682         * modules/unictype/property-numeric-tests: Likewise.
1683         * modules/unictype/property-other-alphabetic-tests: Likewise.
1684         * modules/unictype/property-other-default-ignorable-code-point-tests:
1685         Likewise.
1686         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1687         * modules/unictype/property-other-id-continue-tests: Likewise.
1688         * modules/unictype/property-other-id-start-tests: Likewise.
1689         * modules/unictype/property-other-lowercase-tests: Likewise.
1690         * modules/unictype/property-other-math-tests: Likewise.
1691         * modules/unictype/property-other-uppercase-tests: Likewise.
1692         * modules/unictype/property-paired-punctuation-tests: Likewise.
1693         * modules/unictype/property-paragraph-separator-tests: Likewise.
1694         * modules/unictype/property-pattern-syntax-tests: Likewise.
1695         * modules/unictype/property-pattern-white-space-tests: Likewise.
1696         * modules/unictype/property-private-use-tests: Likewise.
1697         * modules/unictype/property-punctuation-tests: Likewise.
1698         * modules/unictype/property-quotation-mark-tests: Likewise.
1699         * modules/unictype/property-radical-tests: Likewise.
1700         * modules/unictype/property-sentence-terminal-tests: Likewise.
1701         * modules/unictype/property-soft-dotted-tests: Likewise.
1702         * modules/unictype/property-space-tests: Likewise.
1703         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1704         * modules/unictype/property-test-tests: Likewise.
1705         * modules/unictype/property-titlecase-tests: Likewise.
1706         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1707         * modules/unictype/property-unified-ideograph-tests: Likewise.
1708         * modules/unictype/property-uppercase-tests: Likewise.
1709         * modules/unictype/property-variation-selector-tests: Likewise.
1710         * modules/unictype/property-white-space-tests: Likewise.
1711         * modules/unictype/property-xid-continue-tests: Likewise.
1712         * modules/unictype/property-xid-start-tests: Likewise.
1713         * modules/unictype/property-zero-width-tests: Likewise.
1714         * modules/unictype/scripts-tests: Likewise.
1715         * modules/unictype/syntax-c-ident-tests: Likewise.
1716         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1717         * modules/unictype/syntax-java-ident-tests: Likewise.
1718         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1719         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
1720         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
1721         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
1722         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
1723         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
1724         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
1725         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
1726         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
1727         * modules/uniname/uniname-tests: Likewise.
1728         * modules/uninorm/canonical-decomposition-tests: Likewise.
1729         * modules/uninorm/compat-decomposition-tests: Likewise.
1730         * modules/uninorm/composition-tests: Likewise.
1731         * modules/uninorm/decomposing-form-tests: Likewise.
1732         * modules/uninorm/decomposition-tests: Likewise.
1733         * modules/uninorm/filter-tests: Likewise.
1734         * modules/uninorm/nfc-tests: Likewise.
1735         * modules/uninorm/nfd-tests: Likewise.
1736         * modules/uninorm/nfkc-tests: Likewise.
1737         * modules/uninorm/nfkd-tests: Likewise.
1738         * modules/uninorm/u8-normcmp-tests: Likewise.
1739         * modules/uninorm/u8-normcoll-tests: Likewise.
1740         * modules/uninorm/u16-normcmp-tests: Likewise.
1741         * modules/uninorm/u16-normcoll-tests: Likewise.
1742         * modules/uninorm/u32-normcmp-tests: Likewise.
1743         * modules/uninorm/u32-normcoll-tests: Likewise.
1744         * modules/unistdio/u8-asnprintf-tests: Likewise.
1745         * modules/unistdio/u8-vasnprintf-tests: Likewise.
1746         * modules/unistdio/u8-vasprintf-tests: Likewise.
1747         * modules/unistdio/u8-vsnprintf-tests: Likewise.
1748         * modules/unistdio/u8-vsprintf-tests: Likewise.
1749         * modules/unistdio/u16-asnprintf-tests: Likewise.
1750         * modules/unistdio/u16-vasnprintf-tests: Likewise.
1751         * modules/unistdio/u16-vasprintf-tests: Likewise.
1752         * modules/unistdio/u16-vsnprintf-tests: Likewise.
1753         * modules/unistdio/u16-vsprintf-tests: Likewise.
1754         * modules/unistdio/u32-asnprintf-tests: Likewise.
1755         * modules/unistdio/u32-vasnprintf-tests: Likewise.
1756         * modules/unistdio/u32-vasprintf-tests: Likewise.
1757         * modules/unistdio/u32-vsnprintf-tests: Likewise.
1758         * modules/unistdio/u32-vsprintf-tests: Likewise.
1759         * modules/unistdio/ulc-asnprintf-tests: Likewise.
1760         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
1761         * modules/unistdio/ulc-vasprintf-tests: Likewise.
1762         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
1763         * modules/unistdio/ulc-vsprintf-tests: Likewise.
1764         * modules/unistr/u8-check-tests: Likewise.
1765         * modules/unistr/u8-chr-tests: Likewise.
1766         * modules/unistr/u8-cmp-tests: Likewise.
1767         * modules/unistr/u8-cmp2-tests: Likewise.
1768         * modules/unistr/u8-cpy-alloc-tests: Likewise.
1769         * modules/unistr/u8-cpy-tests: Likewise.
1770         * modules/unistr/u8-mblen-tests: Likewise.
1771         * modules/unistr/u8-mbsnlen-tests: Likewise.
1772         * modules/unistr/u8-mbtouc-tests: Likewise.
1773         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
1774         * modules/unistr/u8-mbtoucr-tests: Likewise.
1775         * modules/unistr/u8-move-tests: Likewise.
1776         * modules/unistr/u8-next-tests: Likewise.
1777         * modules/unistr/u8-prev-tests: Likewise.
1778         * modules/unistr/u8-set-tests: Likewise.
1779         * modules/unistr/u8-stpcpy-tests: Likewise.
1780         * modules/unistr/u8-stpncpy-tests: Likewise.
1781         * modules/unistr/u8-strcat-tests: Likewise.
1782         * modules/unistr/u8-strcmp-tests: Likewise.
1783         * modules/unistr/u8-strcoll-tests: Likewise.
1784         * modules/unistr/u8-strcpy-tests: Likewise.
1785         * modules/unistr/u8-strdup-tests: Likewise.
1786         * modules/unistr/u8-strlen-tests: Likewise.
1787         * modules/unistr/u8-strmblen-tests: Likewise.
1788         * modules/unistr/u8-strmbtouc-tests: Likewise.
1789         * modules/unistr/u8-strncat-tests: Likewise.
1790         * modules/unistr/u8-strncmp-tests: Likewise.
1791         * modules/unistr/u8-strncpy-tests: Likewise.
1792         * modules/unistr/u8-strnlen-tests: Likewise.
1793         * modules/unistr/u8-to-u16-tests: Likewise.
1794         * modules/unistr/u8-to-u32-tests: Likewise.
1795         * modules/unistr/u8-uctomb-tests: Likewise.
1796         * modules/unistr/u16-check-tests: Likewise.
1797         * modules/unistr/u16-chr-tests: Likewise.
1798         * modules/unistr/u16-cmp-tests: Likewise.
1799         * modules/unistr/u16-cmp2-tests: Likewise.
1800         * modules/unistr/u16-cpy-alloc-tests: Likewise.
1801         * modules/unistr/u16-cpy-tests: Likewise.
1802         * modules/unistr/u16-mblen-tests: Likewise.
1803         * modules/unistr/u16-mbsnlen-tests: Likewise.
1804         * modules/unistr/u16-mbtouc-tests: Likewise.
1805         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
1806         * modules/unistr/u16-mbtoucr-tests: Likewise.
1807         * modules/unistr/u16-move-tests: Likewise.
1808         * modules/unistr/u16-next-tests: Likewise.
1809         * modules/unistr/u16-prev-tests: Likewise.
1810         * modules/unistr/u16-set-tests: Likewise.
1811         * modules/unistr/u16-stpcpy-tests: Likewise.
1812         * modules/unistr/u16-stpncpy-tests: Likewise.
1813         * modules/unistr/u16-strcat-tests: Likewise.
1814         * modules/unistr/u16-strcmp-tests: Likewise.
1815         * modules/unistr/u16-strcoll-tests: Likewise.
1816         * modules/unistr/u16-strcpy-tests: Likewise.
1817         * modules/unistr/u16-strdup-tests: Likewise.
1818         * modules/unistr/u16-strlen-tests: Likewise.
1819         * modules/unistr/u16-strmblen-tests: Likewise.
1820         * modules/unistr/u16-strmbtouc-tests: Likewise.
1821         * modules/unistr/u16-strncat-tests: Likewise.
1822         * modules/unistr/u16-strncmp-tests: Likewise.
1823         * modules/unistr/u16-strncpy-tests: Likewise.
1824         * modules/unistr/u16-strnlen-tests: Likewise.
1825         * modules/unistr/u16-to-u32-tests: Likewise.
1826         * modules/unistr/u16-to-u8-tests: Likewise.
1827         * modules/unistr/u16-uctomb-tests: Likewise.
1828         * modules/unistr/u32-check-tests: Likewise.
1829         * modules/unistr/u32-chr-tests: Likewise.
1830         * modules/unistr/u32-cmp-tests: Likewise.
1831         * modules/unistr/u32-cmp2-tests: Likewise.
1832         * modules/unistr/u32-cpy-alloc-tests: Likewise.
1833         * modules/unistr/u32-cpy-tests: Likewise.
1834         * modules/unistr/u32-mblen-tests: Likewise.
1835         * modules/unistr/u32-mbsnlen-tests: Likewise.
1836         * modules/unistr/u32-mbtouc-tests: Likewise.
1837         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
1838         * modules/unistr/u32-mbtoucr-tests: Likewise.
1839         * modules/unistr/u32-move-tests: Likewise.
1840         * modules/unistr/u32-next-tests: Likewise.
1841         * modules/unistr/u32-prev-tests: Likewise.
1842         * modules/unistr/u32-set-tests: Likewise.
1843         * modules/unistr/u32-stpcpy-tests: Likewise.
1844         * modules/unistr/u32-stpncpy-tests: Likewise.
1845         * modules/unistr/u32-strcat-tests: Likewise.
1846         * modules/unistr/u32-strcmp-tests: Likewise.
1847         * modules/unistr/u32-strcoll-tests: Likewise.
1848         * modules/unistr/u32-strcpy-tests: Likewise.
1849         * modules/unistr/u32-strdup-tests: Likewise.
1850         * modules/unistr/u32-strlen-tests: Likewise.
1851         * modules/unistr/u32-strmblen-tests: Likewise.
1852         * modules/unistr/u32-strmbtouc-tests: Likewise.
1853         * modules/unistr/u32-strncat-tests: Likewise.
1854         * modules/unistr/u32-strncmp-tests: Likewise.
1855         * modules/unistr/u32-strncpy-tests: Likewise.
1856         * modules/unistr/u32-strnlen-tests: Likewise.
1857         * modules/unistr/u32-to-u16-tests: Likewise.
1858         * modules/unistr/u32-to-u8-tests: Likewise.
1859         * modules/unistr/u32-uctomb-tests: Likewise.
1860         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
1861         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
1862         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
1863         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
1864         * modules/uniwidth/u8-strwidth-tests: Likewise.
1865         * modules/uniwidth/u8-width-tests: Likewise.
1866         * modules/uniwidth/u16-strwidth-tests: Likewise.
1867         * modules/uniwidth/u16-width-tests: Likewise.
1868         * modules/uniwidth/u32-strwidth-tests: Likewise.
1869         * modules/uniwidth/u32-width-tests: Likewise.
1870         * modules/uniwidth/width-tests: Likewise.
1871
1872 2010-05-18  Richard Jones  <rjones@redhat.com>
1873
1874         doc: users.txt: list hivex
1875         * users.txt: Add hivex.
1876
1877 2010-05-18  Richard Jones  <rjones@redhat.com>
1878
1879         doc: users.txt: list febootstrap
1880         * users.txt: Add febootstrap.
1881
1882 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
1883
1884         bootstrap: fix an error when gnulib is not used as a git submodule
1885         * build-aux/bootstrap (gnulib_path): If its length is zero then
1886         assign "gnulib" to it.
1887         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
1888
1889 2010-05-16  Bruno Haible  <bruno@clisp.org>
1890
1891         Avoid autoconf warnings about AM_ICONV.
1892         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
1893         2.64.
1894
1895 2010-05-16  Bruno Haible  <bruno@clisp.org>
1896
1897         absolute-header: Make the macro usable in more situations.
1898         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
1899         from gl_ABSOLUTE_HEADER.
1900         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
1901
1902 2010-05-16  James Youngman  <jay@gnu.org>
1903
1904         doc: update users.txt
1905         * users.txt: Add CSSC.
1906
1907 2010-05-16  Jim Meyering  <meyering@redhat.com>
1908
1909         init.sh: fix an error in the previous change; add more comments
1910         * tests/init.sh: Compare exit code in loop against 9, not 2.
1911         Patch by Bruno Haible.
1912         Make the two tests more similar by adding an empty "then" clause.
1913         Add comments.
1914
1915         init.sh: avoid unnecessary shell re-exec
1916         * tests/init.sh: Improve the re-exec-required check to first test the
1917         current shell.  If it passes the test, do not search for a shell that
1918         does pass, and do not re-exec.  This test is particularly contorted to
1919         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
1920         of $(...) evokes a syntax error and causes immediate shell exit with
1921         status 2.  Bruno Haible reported that the re-exec made it impossible
1922         to single-step through any init.sh-using script.
1923
1924 2010-05-16  Bruno Haible  <bruno@clisp.org>
1925
1926         Fix collision between gnulib's and libintl's printf replacements.
1927         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
1928         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
1929         (printf): When using GNU C, map the __printf__ function to rpl_printf
1930         via __asm__. When not using GNU C, define rpl_printf instead of
1931         __printf__.
1932         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
1933         commit.
1934         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
1935         commit.
1936         * m4/asm-underscore.m4: New file.
1937         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
1938         * modules/stdio (Files): Add m4/asm-underscore.m4.
1939         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
1940         Reported by Ben Pfaff.
1941
1942 2010-05-16  Bruno Haible  <bruno@clisp.org>
1943
1944         verify: Avoid skipping the test on openSUSE 11.0.
1945         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
1946
1947 2010-05-13  Bruno Haible  <bruno@clisp.org>
1948
1949         Avoid useless warnings from G++.
1950         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
1951         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
1952         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1953
1954 2010-05-11  Jim Meyering  <meyering@redhat.com>
1955
1956         maint.mk: tweak preceding change
1957         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
1958         regexps tighter by anchoring at EOL, and make the new group "shy"
1959         for slightly decreased overhead.
1960
1961 2010-05-11  Eric Blake  <eblake@redhat.com>
1962
1963         maint.mk: gnulib doesn't guarantee NSIG
1964         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
1965
1966 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1967
1968         test-pwrite.c: Remove unused variable declaration.
1969         * tests/test-pwrite.c (main): Remove read_buf declaration.
1970
1971         Remove useless test-pwrite.sh file.
1972         * tests/test-pwrite.sh: Delete file.
1973         * modules/pwrite-tests: Remove references.
1974         Reported by Bruno Haible.
1975
1976 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1977
1978         init.sh: fix a typo
1979         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
1980
1981 2010-05-10  Jim Meyering  <meyering@redhat.com>
1982
1983         maint.mk: avoid using a temporary file in the always-defined-macros check
1984         * top/maint.mk (.re-defmac): Remove rule.
1985         (gl_trap_): Remove definition.
1986         (sc_prohibit_always-defined_macros): Rewrite not to create and
1987         depend on a temporary file.  Instead, depend on GNU grep's ability
1988         to read a list of regular expressions from stdin when given "-f -".
1989
1990 2010-05-09  Bruno Haible  <bruno@clisp.org>
1991
1992         Update to GNU gettext 0.18, part 1.
1993         * m4/gettext.m4: Update to GNU gettext 0.18.
1994         * m4/intl.m4: Likewise.
1995         * m4/po.m4: Likewise.
1996         * modules/gettext (Files): Add m4/fcntl-o.m4.
1997         (configure.ac): Require gettext infrastructure from version 0.18.
1998
1999 2010-05-09  Jim Meyering  <meyering@redhat.com>
2000
2001         init.sh: enable MALLOC_PERTURB_
2002         * tests/init.sh: Enable glibc's malloc-perturbing option.
2003
2004         maint.mk: improve sc_cross_check_PATH_usage_in_tests
2005         With my recent change in init.sh from the two-line form:
2006             -#   : ${srcdir=.}
2007             -#   . "$srcdir/init.sh"; path_prepend_ .
2008             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
2009         I noticed that using the one-line form would cause this test
2010         to fail with a false-positive, or to stop working altogether,
2011         depending on whether help-version changed or all the tests did.
2012         * top/maint.mk (_hv_regex): Remove this definition.
2013         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
2014         (_hv_regex_strong): Use a stronger regex to check for conformance.
2015         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
2016         Give a separate diagnostic for lack of conforming use.
2017
2018         maint.mk: prohibit definition of symbols defined by gnulib
2019         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
2020         definition of symbols defined by gnulib.
2021
2022 2010-05-09  Bruno Haible  <bruno@clisp.org>
2023
2024         acl: Avoid test failure on Cygwin-hosted mingw.
2025         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
2026
2027 2010-05-09  Bruno Haible  <bruno@clisp.org>
2028
2029         error: Use system's fcntl function.
2030         * lib/error.c (fcntl): Undefine.
2031
2032 2010-05-09  Jim Meyering  <meyering@redhat.com>
2033
2034         verify: adjust formatting to be more consistent
2035         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
2036         argument-list '('s, and after one comma.
2037
2038 2010-05-09  Bruno Haible  <bruno@clisp.org>
2039
2040         error: More reliable output on mingw.
2041         * lib/error.c: Include <windows.h>.
2042         (is_open): New function.
2043         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
2044         defined.
2045
2046 2010-05-09  Bruno Haible  <bruno@clisp.org>
2047
2048         vasnprintf: Fix syntax errors in libintl build on mingw.
2049         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
2050         pad_ourselves and prec_ourselves after use.
2051
2052 2010-05-08  Bruno Haible  <bruno@clisp.org>
2053
2054         * lib/config.charset: Update comments for Cygwin 1.7.
2055         * lib/localcharset.c: Likewise.
2056
2057 2010-05-07  Jim Meyering  <meyering@redhat.com>
2058
2059         init.sh: improve comments
2060         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
2061         . "${srcdir=.}/init.sh"; path_prepend_ .
2062         Add a note about path_prepend_ and the alternative of using
2063         TESTS_ENVIRONMENT.
2064
2065 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2066
2067         exclude: Unescape hashed patterns in wildcard mode.
2068         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
2069         to the hash list.
2070         * tests/test-exclude8.sh: New test case.
2071         * modules/exclude-tests: Add new test.
2072
2073 2010-05-05  Eric Blake  <eblake@redhat.com>
2074
2075         verify: automate tests
2076         * modules/verify-tests: New module.
2077         * tests/test-verify.sh: New file.
2078         * tests/test-verify.c: Guard each negative test with a unique id.
2079         Also avoid warning about unused left hand of comma expressions.
2080
2081 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2082
2083         Further improvements to verify.h, suggested by Eric Blake.
2084         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
2085         the GL_* versions, to avoid collision with OpenGL.
2086         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
2087         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
2088         than testing merely whether it's defined.
2089
2090         Modify verify.h to pacify gcc -Wredundant_decls.
2091         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
2092         These use the prefix "GL_" since they're likely to be useful elsewhere.
2093         We may need to break them out into a different .h file.
2094         (__COUNTER__): Define to 0 if the compiler doesn't support it.
2095         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
2096         of verify_function__.
2097
2098 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2099
2100         Tests for module pwrite.
2101         * modules/pwrite-tests: New file.
2102         * tests/test-pwrite.sh: New file.
2103         * tests/test-pwrite.c: New file.
2104
2105         New module pwrite.
2106         * lib/unistd.in.h (pwrite): New declaration.
2107         * lib/pwrite.c: New file, from glibc with modifications.
2108         * m4/pwrite.m4: New file.
2109         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
2110         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
2111         REPLACE_PWRITE.
2112         * modules/pwrite: New file.
2113         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
2114         REPLACE_PWRITE.
2115         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
2116         * doc/posix-functions/pwrite.texi: Mention the new module.
2117
2118 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2119
2120         pread: Update documentation.
2121         * doc/posix-functions/pread.texi: Mention the 'pread' module.
2122
2123 2010-05-04  Eric Blake  <eblake@redhat.com>
2124
2125         docs: update cygwin progress
2126         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
2127         this bug.
2128         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
2129         Added in cygwin 1.7.2.
2130         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
2131         Likewise.
2132         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
2133         Likewise.
2134         * doc/glibc-functions/dup3.texi (dup3): Likewise.
2135         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2136         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2137         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
2138         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
2139         Mention nproc module.
2140         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
2141         bug in cygwin 1.7.5 addition.
2142         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
2143         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
2144         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
2145         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
2146         1.7.5.
2147         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
2148         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
2149         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
2150         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
2151         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
2152         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
2153         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
2154         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
2155         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
2156         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
2157         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
2158         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
2159         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
2160         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
2161         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
2162         Likewise.
2163         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
2164         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
2165         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
2166         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
2167         Likewise.
2168         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
2169         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
2170         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
2171         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
2172         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
2173         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
2174         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
2175         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
2176         Likewise.
2177         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
2178         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
2179         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
2180         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
2181         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
2182         Likewise.
2183         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
2184         Likewise.
2185         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
2186         Likewise.
2187         * doc/glibc-functions/xdrrec_endofrecord.texi
2188         (xdrrec_endofrecord): Likewise.
2189         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
2190         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
2191         Likewise.
2192         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
2193         Likewise.
2194
2195 2010-05-04  Jim Meyering  <meyering@redhat.com>
2196
2197         gendocs.sh: make its "-s FILE" option more useful
2198         * build-aux/gendocs.sh: When honoring the -s FILE option, update
2199         $PACKAGE to reflect the probably-different basename of "FILE".
2200
2201 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2202
2203         bootstrap: don't ignore download_po_files failure
2204         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
2205         failure.
2206
2207 2010-05-03  Jim Meyering  <meyering@redhat.com>
2208
2209         maint.mk: allow to pass options to gendocs.sh
2210         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
2211         (gendocs_options_): New overridable variable.
2212
2213         gnu-web-doc-update: don't ignore configure or build failure
2214         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
2215
2216         announce-gen: backslash-escape '@'s in --help output
2217         * build-aux/announce-gen: Fix syntax errors.
2218
2219         maint.mk, announce-gen: allow project-specific announcement mail headers
2220         * top/maint.mk (translation_project_): Define default.
2221         (announcement_Cc_, announcement_mail_headers_): Likewise.
2222         (announcement): Invoke announce-gen with new --mail-headers option.
2223         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
2224
2225         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
2226         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
2227         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
2228         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
2229         line in the "err2" output file when running "make check" in verbose
2230         mode (i.e., with set -x enabled).
2231
2232 2010-05-03  Bruno Haible  <bruno@clisp.org>
2233
2234         wctob: Fix for weird platforms.
2235         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
2236         argument value.
2237
2238 2010-05-03  Jim Meyering  <meyering@redhat.com>
2239
2240         maint.mk: prohibit unwarranted use of <strings.h>
2241         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
2242         strings.h in a file that does not also use strcasecmp, strncasecmp,
2243         ffs or ffsll.
2244
2245         maint.mk: remove obsolete comments
2246         * top/maint.mk: Remove stale, commented-out rules.
2247
2248 2010-05-02  Bruno Haible  <bruno@clisp.org>
2249
2250         wcwidth: Declare also when it's aliased.
2251         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
2252         macro.
2253
2254 2010-05-02  Bruno Haible  <bruno@clisp.org>
2255
2256         Fix regression from 2010-04-25.
2257         * gnulib-tool (func_modules_transitive_closure): Check the status of
2258         all modules, not only of the tests that are of the form foo-tests where
2259         foo is a module.
2260
2261 2010-05-02  Bruno Haible  <bruno@clisp.org>
2262
2263         wctob: Work around nasty Cygwin 1.7.2 bug.
2264         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
2265         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
2266
2267 2010-05-01  Bruno Haible  <bruno@clisp.org>
2268
2269         fpurge: Sharper test.
2270         * tests/test-fpurge.c (main): Add one more ftell check.
2271         * modules/fpurge-tests (Depends-on): Add ftell.
2272         Suggested by Eric Blake.
2273
2274 2010-05-01  Bruno Haible  <bruno@clisp.org>
2275
2276         ftello: Another test.
2277         * tests/test-ftello3.c: New file.
2278         * modules/ftello-tests (Files): Add it.
2279         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2280         MOSTLYCLEANFILES.
2281
2282         ftell: Another test.
2283         * tests/test-ftell3.c: New file.
2284         * modules/ftell-tests (Files): Add it.
2285         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2286         MOSTLYCLEANFILES.
2287
2288 2010-05-01  Bruno Haible  <bruno@clisp.org>
2289
2290         ftell, ftello: Work around Solaris bug.
2291         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
2292         * lib/ftello.c: Include stdio-impl.h.
2293         (ftello): On Solaris, when _IOWRT is set, compute the result without
2294         looking at _IOREAD.
2295         * modules/ftello (Files): Add lib/stdio-impl.h.
2296         * doc/posix-functions/ftell.texi: Mention Solaris bug.
2297         * doc/posix-functions/ftello.texi: Likewise.
2298         Reported by Eric Blake.
2299
2300 2010-05-01  Bruno Haible  <bruno@clisp.org>
2301
2302         freading: Adapt to special meaning of _IOREAD flag on Solaris.
2303         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
2304         the _IOWRT flag is also set.
2305
2306 2010-05-01  Bruno Haible  <bruno@clisp.org>
2307
2308         Fix doc about a HP-UX stdio bug.
2309         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
2310         * doc/posix-functions/ftello.texi: Likewise.
2311
2312 2010-05-01  Bruno Haible  <bruno@clisp.org>
2313
2314         lseek test: Fix failure on Solaris.
2315         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
2316         output.
2317
2318 2010-04-30  Jim Meyering  <meyering@redhat.com>
2319
2320         bootstrap: don't ignore failure to generate po*/Makevars
2321         * build-aux/bootstrap (with_gettext): Don't ignore failure
2322         to create po/Makevars or runtime-po/Makevars.
2323
2324 2010-04-29  Eric Blake  <eblake@redhat.com>
2325
2326         headers: relax license to LGPLv2+
2327         * modules/fcntl-h (License): Relax license.
2328         * modules/getopt-posix (License): Likewise.
2329         * modules/locale (License): Likewise.
2330         * modules/math (License): Likewise.
2331         * modules/pty (License): Likewise.
2332         * modules/sched (License): Likewise.
2333         * modules/search (License): Likewise.
2334         * modules/spawn (License): Likewise.
2335         * modules/stdarg (License): Likewise.
2336         * modules/sysexits (License): Likewise.
2337
2338 2010-04-29  Jim Meyering  <meyering@redhat.com>
2339
2340         inttypes: relax license to LGPLv2+
2341         * modules/inttypes (License): Relax license.
2342
2343 2010-04-29  Simon Josefsson  <simon@josefsson.org>
2344
2345         * top/maint.mk (indent): Run twice to produce idempotent results.
2346
2347 2010-04-28  Bruno Haible  <bruno@clisp.org>
2348
2349         getdate: Generate getdate.c in the source directory.
2350         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
2351         MOSTLYCLEANFILES.
2352         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
2353
2354 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
2355
2356         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
2357         is not declared as a const *; avoid warnings in that case.
2358
2359 2010-04-28  Eric Blake  <eblake@redhat.com>
2360
2361         canonicalize-lgpl: avoid compiler warning
2362         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
2363         declaration' / 'extraneous semicolon' warning with some compilers.
2364         Reported by Andreas Gruenbacher.
2365
2366 2010-04-28  Jim Meyering  <meyering@redhat.com>
2367
2368         init.sh: ensure a more reliable exit status when exiting via trap
2369         * tests/init.sh (setup_): Don't rely on $? in signal handler.
2370         Inspired by patches from Dmitry V. Levin.
2371         Also trap on signal 3 (SIGQUIT).
2372
2373 2010-04-27  Bruno Haible  <bruno@clisp.org>
2374
2375         Update doc about utimes().
2376         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
2377         'utimens' module.
2378         Reported by Andreas Gruenbacher <agruen@suse.de>.
2379
2380 2010-04-27  Eric Blake  <eblake@redhat.com>
2381
2382         full-read, full-write: relax license
2383         * modules/full-read (License): Drop to LGPLv2+.
2384         * modules/full-write (License): Likewise.
2385         * modules/safe-read (License): Likewise.
2386         * modules/safe-write (License): Likewise.
2387
2388         pthread: mention library for linking
2389         * modules/pthread (Link): Mention $(LIB_PTHREAD).
2390
2391 2010-04-27  Jim Meyering  <meyering@redhat.com>
2392
2393         maint.mk: fix a bug introduced in last change
2394         * top/maint.mk (gl_assured_headers_): Now that all names are on
2395         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
2396         is not anchored to end of word, it should be adequate.
2397
2398         maint.mk: avoid side-effect in latest syntax-check
2399         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
2400         to run commands via $(shell...), and hence to incur cost only when
2401         the new rule is actually run.
2402
2403         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
2404         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
2405         and use that to create a regexp used to detect all #if HAVE_..._H uses.
2406         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
2407         (gl_assured_headers_, az_, AZ_): Define.
2408         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
2409
2410 2010-04-26  Jim Meyering  <jim@meyering.net>
2411             Bruno Haible  <bruno@clisp.org>
2412
2413         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
2414         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
2415         Prompted by an exchange with Gilles Espinasse.
2416
2417 2010-04-26  Jim Meyering  <meyering@redhat.com>
2418
2419         git-version-gen: aesthetic tweak
2420         * build-aux/git-version-gen: Use "$nl" rather than a literal,
2421         so that the command remains on a single line.
2422
2423 2010-04-26  Eric Blake  <eblake@redhat.com>
2424
2425         git-version-gen: allow use on EBCDIC hosts
2426         * build-aux/git-version-gen (dirty): Use literal rather than tying
2427         ourselves to ascii.
2428         Reported by Steve Goetze.
2429
2430 2010-04-25  Bruno Haible  <bruno@clisp.org>
2431
2432         netdb: Add support for GNULIB_POSIXCHECK.
2433         * lib/netdb.in.h: Include warn-on-use.h.
2434         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
2435         functions are used when GNULIB_POSIXCHECK is defined and the
2436         getaddrinfo module is not in use.
2437         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
2438         freeaddrinfo, gai_strerror, getnameinfo are declared.
2439         * modules/netdb (Depends-on): Add warn-on-use.
2440         (Makefile.am): Include warn-on-use.h in netdb.h.
2441
2442 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
2443
2444         build: avoid "make check" failure without .git/ directory
2445         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
2446         there is no .git/ directory.
2447
2448 2010-04-25  Bruno Haible  <bruno@clisp.org>
2449
2450         ptsname: Fix misuse of ttyname_r.
2451         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
2452         of errno.
2453
2454 2010-04-25  Bruno Haible  <bruno@clisp.org>
2455
2456         ttyname_r: Make it work on Solaris 10.
2457         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
2458         if the system function has the POSIX declaration. Test whether the
2459         function fails if the buffer is less than 128 bytes large.
2460         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
2461         system's ttyname_r function. Provide a reasonably large buffer.
2462         * modules/ttyname_r (Depends-on): Add extensions.
2463         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
2464
2465 2010-04-25  Bruno Haible  <bruno@clisp.org>
2466
2467         Use the 'extensions' module for some more functions on Solaris.
2468         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
2469         module.
2470         * doc/posix-functions/ctime_r.texi: Likewise.
2471         * doc/posix-functions/getgrgid_r.texi: Likewise.
2472         * doc/posix-functions/getgrnam_r.texi: Likewise.
2473         * doc/posix-functions/getpwnam_r.texi: Likewise.
2474         * doc/posix-functions/getpwuid_r.texi: Likewise.
2475         * doc/posix-functions/readdir_r.texi: Likewise.
2476         * doc/posix-functions/sigwait.texi: Likewise.
2477         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
2478         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
2479
2480 2010-04-25  Bruno Haible  <bruno@clisp.org>
2481
2482         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
2483         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
2484         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
2485         * lib/ttyname_r.c: Include <limits.h>.
2486         (ttyname_r): Define using the system's ttyname_r function, if it exists
2487         and not on Solaris.
2488         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
2489         set.
2490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
2491         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
2492         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
2493         Reported by Simon Josefsson.
2494
2495 2010-04-25  Bruno Haible  <bruno@clisp.org>
2496
2497         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
2498         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
2499         * doc/posix-functions/ctime_r.texi: Likewise.
2500         * doc/posix-functions/getgrgid_r.texi: Likewise.
2501         * doc/posix-functions/getgrnam_r.texi: Likewise.
2502         * doc/posix-functions/getlogin_r.texi: Likewise.
2503         * doc/posix-functions/getpwnam_r.texi: Likewise.
2504         * doc/posix-functions/getpwuid_r.texi: Likewise.
2505         * doc/posix-functions/readdir_r.texi: Likewise.
2506         * doc/posix-functions/sigwait.texi: Likewise.
2507         * doc/posix-functions/ttyname_r.texi: Likewise.
2508         Reported by Simon Josefsson.
2509
2510 2010-04-25  Bruno Haible  <bruno@clisp.org>
2511
2512         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
2513         * gnulib-tool (func_usage): Document that --with-*-tests options apply
2514         also to --create-testdir.
2515         (func_acceptable): Don't consider the status of *-tests modules here.
2516         (func_modules_transitive_closure): Consider it here, before including a
2517         test module.
2518         (func_import, func_create_testdir): Set inc_all_direct_tests,
2519         inc_all_indirect_tests.
2520         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
2521         --create-testdir and --create-megatestdir.
2522
2523 2010-04-25  Bruno Haible  <bruno@clisp.org>
2524
2525         gnulib-tool: Add --without-*-tests options.
2526         * gnulib-tool (func_usage): Document the --without-*-tests options.
2527         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
2528         excl_unportable_tests): New variables.
2529         Fail if they are specified with --import or --update.
2530         (func_acceptable): Respect the excl_*_tests variables.
2531         (func_import): Set the excl_*_tests variables to empty.
2532
2533 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2534             Bruno Haible  <bruno@clisp.org>
2535
2536         Work around a MacOS X 10.4 bug with openpty.
2537         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2538         * tests/test-openpty.c (main): Close the master side explicitly.
2539
2540 2010-04-25  Bruno Haible  <bruno@clisp.org>
2541
2542         strnlen: Fix a C++ test error on MacOS X and Solaris.
2543         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2544         the function is not declared.
2545         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2546         Simon Josefsson.
2547
2548 2010-04-24  Bruno Haible  <bruno@clisp.org>
2549
2550         Avoid a gcc warning.
2551         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2552         of correct type for %08lx directive.
2553         Reported by Eric Blake.
2554
2555 2010-04-24  Bruno Haible  <bruno@clisp.org>
2556
2557         vasnprintf: Correct errno value in case of out-of-memory.
2558         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2559         or sprintf. Use the errno value from SNPRINTF or sprintf.
2560         Reported by Ian Beckwith <ianb@erislabs.net>.
2561
2562 2010-04-24  Bruno Haible  <bruno@clisp.org>
2563
2564         ansi-c++-opt: Find correct compiler when cross-compiling.
2565         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2566         AC_CHECK_PROGS.
2567         Reported by Simon Josefsson.
2568
2569 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2570
2571         vc-list-files: Add support for subversion
2572         * build-aux/vc-list-files: Use "svn list" to generate the list of
2573         files controlled by subversion.
2574
2575 2010-04-23  Jim Meyering  <meyering@redhat.com>
2576
2577         vc-list-files tests: convert to use init.sh
2578         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2579         path_prepend_.
2580         Use Exit, not exit.
2581         Use skip_ rather than open coding it.
2582         Remove trap set-up and compare definitions.
2583         * tests/test-vc-list-files-git.sh: Likewise.
2584         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2585
2586 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2587
2588         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2589         backup files.
2590
2591 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2592
2593         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2594
2595 2010-04-20  Eric Blake  <eblake@redhat.com>
2596
2597         tests: be robust to ignored SIGPIPE
2598         * tests/test-select-in.sh: Consume all output.
2599         * tests/test-lseek.sh: Check correct exit status, while avoiding
2600         EPIPE.
2601
2602 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2603             Bruno Haible  <bruno@clisp.org>
2604
2605         visibility: Don't use -fvisibility if it leads to a warning.
2606         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2607         yes, don't pretend that visibility works if it leads to a warning.
2608         Reported by Mike Gran <spk121@yahoo.com>.
2609
2610 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2611
2612         * build-aux/bootstrap: Use "git -h" for testing for supported options
2613         instead of "git --help".  The short-form option only shows a summary,
2614         and doesn't layout the full man page.  Grep for the full option name
2615         in the summary, too.
2616
2617 2010-04-19  Bruno Haible  <bruno@clisp.org>
2618
2619         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2620         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2621         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2622         mention of RELOCATABLE_STRIP.
2623         Reported by Sylvain Beucler <beuc@beuc.net>.
2624
2625 2010-04-19  Bruno Haible  <bruno@clisp.org>
2626
2627         * lib/diffseq.h: Fix typo in comment.
2628         Reported by Eric Blake.
2629
2630 2010-04-19  Bruno Haible  <bruno@clisp.org>
2631
2632         ioctl: Move autoconf macro to a .m4 file.
2633         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2634         * modules/ioctl (Files): Add it.
2635         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2636         Reported by Ian Beckwith <ianb@erislabs.net>.
2637
2638 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2639             Bruno Haible  <bruno@clisp.org>
2640
2641         diffseq: Accommodate use-case with abstract arrays.
2642         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2643         is not defined.
2644         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2645         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2646
2647 2010-04-18  Bruno Haible  <bruno@clisp.org>
2648
2649         * doc/posix-headers/stdbool.texi: More precise wording.
2650
2651 2010-04-17  Jim Meyering  <meyering@redhat.com>
2652
2653         maint.mk: use gnu-style indentation in an embedded perl script
2654         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2655         Rename variable: s/two/last_two_bytes/
2656
2657 2010-04-16  Eric Blake  <eblake@redhat.com>
2658
2659         test-stdbool: skip test that fails with Solaris CC
2660         * tests/test-stdbool.c (f): Skip test that causes compilation
2661         error under buggy C++ compiler.
2662         * lib/stdbool.in.h: Document the limitation.
2663         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2664
2665         setenv: allow compilation with C++
2666         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2667         register keyword.
2668
2669         stdint: allow test to pass with C++
2670         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2671
2672         getopt: allow compilation with C++
2673         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2674         struct.
2675         * lib/getopt.c (_getopt_internal_r): Use correct type.
2676         Reported by Dagobert Michelson, via Joel E. Denny.
2677
2678 2010-04-16  Bruno Haible  <bruno@clisp.org>
2679
2680         Override netdb.h always.
2681         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2682         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2683         Reported by Ludovic Courtès <ludo@gnu.org>.
2684
2685 2010-04-15  Bruno Haible  <bruno@clisp.org>
2686
2687         openpty: Fix mistake from 2010-03-21.
2688         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2689         Reported by Simon Josefsson.
2690
2691 2010-04-15  Eric Blake  <eblake@redhat.com>
2692
2693         test-forkpty: fix expected signature
2694         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2695         Reported by Simon Josefsson.
2696
2697 2010-04-15  Jim Meyering  <meyering@redhat.com>
2698
2699         maint.mk: texinfo_suffix_re_: correct the default regexp
2700         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2701
2702         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2703         make it configurable via texinfo_suffix_re_.
2704
2705 2010-04-14  Eric Blake  <eblake@redhat.com>
2706
2707         strtok_r: relax license to LGPLv2+
2708         * modules/strtok_r (License): Relax license.
2709         Reported by Matthias Bolte.
2710
2711 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2712
2713         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2714         version 1.4.4 by default instead of requiring the libgcrypt
2715         version used during build.  This makes it possible to use the
2716         application with older but still binary compatible libgcrypt
2717         versions.
2718
2719 2010-04-13  Eric Blake  <eblake@redhat.com>
2720
2721         getopt-gnu: match recent glibc fixes and posix ruling
2722         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
2723         '+' handling, when requesting extensions.
2724         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
2725         'W;' handling.
2726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
2727         * doc/posix-functions/getopt.texi (getopt): Document this.
2728         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2729         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2730         Likewise.
2731
2732         getopt: merge bug fixes from glibc
2733         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
2734         diagnostics.  Honor '+:' correctly.  Reject ';'.
2735
2736         getopt-posix: detect MacOS bug
2737         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
2738         optind when missing a required argument.
2739         * doc/posix-functions/getopt.texi (getopt): Document the bug.
2740         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2741         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2742         Likewise.
2743
2744         getopt-posix: avoid spurious failure on Solaris
2745         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
2746         an indicator that setting optind=1 is sufficient for reset.
2747
2748         getopt-posix: avoid spurious failure on FreeBSD
2749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
2750         in POSIX mode, since the m4 test uses it.
2751
2752         gnulib-tool: silence warning on BSD sh
2753         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
2754
2755 2010-04-13  Jim Meyering  <meyering@redhat.com>
2756
2757         doc: users.txt: GNU patch now uses gnulib
2758         * users.txt: Add patch.
2759
2760 2010-04-12  Jim Meyering  <meyering@redhat.com>
2761
2762         maint.mk: generate more concise timing data for syntax-check rules
2763         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
2764         " done" from each line that reports a syntax-check test duration.
2765
2766 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
2767
2768         git-version-gen: use "git update-index..." rather than "git status"
2769         * build-aux/git-version-gen: Use git update-index --refresh, not
2770         "git status".  With some versions of git, "git status" would fail
2771         to update the index and result in an unwarranted "-dirty" suffix.
2772
2773 2010-04-11  Jim Meyering  <meyering@redhat.com>
2774
2775         openat: correct formatting (no semantic change)
2776         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
2777         Suggested by Bruno Haible.
2778
2779 2010-04-11  Bruno Haible  <bruno@clisp.org>
2780
2781         Stricter declaration checking in testdirs.
2782         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2783         If for_tests is true, augment AM_CPPFLAGS to define
2784         GNULIB_STRICT_CHECKING.
2785         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
2786         GNULIB_STRICT_CHECKING is defined, verify that the function is
2787         declared.
2788
2789 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
2790             Bruno Haible  <bruno@clisp.org>
2791
2792         libunistring: Improve configure output.
2793         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
2794         Don't say "consider installing GNU libunistring" when checking again
2795         with libiconv.
2796
2797 2010-04-11  Bruno Haible  <bruno@clisp.org>
2798
2799         libunistring: Correct value of $LTLIBUNISTRING.
2800         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
2801         correct the value of $LTLIBUNISTRING.
2802
2803 2010-04-11  Bruno Haible  <bruno@clisp.org>
2804
2805         havelib: Add static libraries to LIBS in the right order.
2806         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
2807         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
2808
2809 2010-04-11  Bruno Haible  <bruno@clisp.org>
2810
2811         libunistring: Detect libunistring also when it depends on libiconv.
2812         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
2813         the second AC_LIB_HAVE_LINKFLAGS invocation.
2814
2815 2010-04-11  James Youngman  <jay@gnu.org>
2816
2817         close-stream: declare local scalars to be "const"
2818         * lib/close-stream.c (close_stream): Make boolean variables const
2819         to document the fact that we set but do not change them.
2820
2821 2010-04-11  Bruno Haible  <bruno@clisp.org>
2822
2823         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
2824
2825 2010-04-11  Jim Meyering  <meyering@redhat.com>
2826
2827         maint.mk: don't include dist-check.mk
2828         * top/maint.mk: Remove bogus include directive.
2829
2830         maint.mk: improve empty-line-at-EOF check
2831         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
2832         solution, rather than tail+Perl-based one.  The latter would read
2833         a few kilobytes from the end of each file, and did not handle empty
2834         files properly.
2835
2836         maint.mk: print the elapsed time for each syntax-check rule
2837         * top/maint.mk (sc_m_rules_): Save start time in a file.
2838         (sc_z_rules_): New rules: remove temp file and print elapsed time.
2839         (local-check): Interpose the .z rules
2840
2841 2010-04-11  Jim Meyering  <meyering@redhat.com>
2842
2843         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
2844         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
2845         empty file with one that ends in an empty line.
2846
2847 2010-04-10  Bruno Haible  <bruno@clisp.org>
2848
2849         mkdir: Make it work on mingw64.
2850         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
2851         * lib/mkdir.c: Update comment.
2852         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
2853
2854 2010-04-10  Bruno Haible  <bruno@clisp.org>
2855
2856         Don't override improved macro from newer autoconf.
2857         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
2858         autoconf >= 2.62.
2859         Reported by Joel E. Denny <jdenny@clemson.edu>.
2860
2861 2010-04-10  Jim Meyering  <meyering@redhat.com>
2862
2863         maint.mk: new syntax-check rule: prohibit empty lines at end of file
2864         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
2865
2866         maint.mk: correct a diagnostic
2867         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
2868         in diagnostic; now use $prohibit.
2869
2870 2010-04-10  Bruno Haible  <address@hidden>
2871
2872         fchownat: Fix a C++ test error on Solaris 8.
2873         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
2874         the function does not exist.
2875
2876 2010-04-10  Bruno Haible  <bruno@clisp.org>
2877
2878         vasnprintf: Add more tests.
2879         * tests/test-vasnprintf-posix.c: Include <errno.h>.
2880         (test_function): Test converting an invalid wide string.
2881
2882         vasnprintf: Correct handling of unconvertible wide string arguments.
2883         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
2884         VASNPRINTF.
2885         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
2886         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
2887         smaller than the expected maximum need for the directive. Set errno to
2888         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
2889         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
2890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
2891         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
2892         * modules/vasnprintf (Files): Add m4/printf.m4.
2893         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2894
2895 2010-04-10  Bruno Haible  <bruno@clisp.org>
2896
2897         vasnprintf: Fix crash in %ls directive.
2898         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
2899         string is passed as argument to %ls, with no precision and no width.
2900         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2901
2902 2010-04-10  Bruno Haible  <bruno@clisp.org>
2903
2904         vasnprintf: Fix multiple test failures on mingw.
2905         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
2906         _snprintf, or snwprintf, not _snwprintf.
2907
2908 2010-04-10  Bruno Haible  <bruno@clisp.org>
2909
2910         write: Fix a C++ test error on mingw.
2911         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
2912
2913 2010-04-10  Bruno Haible  <bruno@clisp.org>
2914
2915         vasnprintf test: Reduce code duplication.
2916         * tests/test-vasnprintf.c (test_function): New function, extracted from
2917         test_vasnprintf.
2918         (test_vasnprintf, test_asnprintf): Invoke it.
2919
2920 2010-04-10  Bruno Haible  <bruno@clisp.org>
2921
2922         strnlen: Fix warning in C++ mode on MacOS X.
2923         * lib/string.in.h (strnlen): Use the modern idiom.
2924         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
2925         defining strnlen as a macro already in <config.h>.
2926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2927         REPLACE_STRNLEN.
2928         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
2929         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2930
2931 2010-04-08  James Youngman  <jay@gnu.org>
2932
2933         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
2934         the example.
2935
2936 2010-04-09  Jim Meyering  <meyering@redhat.com>
2937
2938         maint.mk: print better diagnostic when there is no $(_hv_file)
2939         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
2940         announce that when $(_hv_file) (aka help-version) does not exist.
2941
2942         init.sh: run tr in the "C" locale to avoid multibyte interpretation
2943         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
2944         not try to interpret its random input bytes.  Jarno Rajahalme reported
2945         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
2946         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
2947         (mktempd_): Likewise, just in case.
2948
2949         ftruncate: add two years to projected module removal date: 2012
2950         * m4/ftruncate.m4: Adjust comments.
2951
2952         ftruncate: mark module as obsolete; even MinGW provides it, now
2953         * modules/ftruncate (Status): Obsolete.
2954         (Notice): Say that.
2955         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
2956         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
2957
2958 2010-04-08  Bruno Haible  <bruno@clisp.org>
2959
2960         Fix side effects from tests-related modules.
2961         * modules/dprintf-posix (Comment): New section.
2962         * modules/fprintf-posix (Comment): Likewise.
2963         * modules/obstack-printf-posix (Comment): Likewise.
2964         * modules/printf-posix (Comment): Likewise.
2965         * modules/snprintf-posix (Comment): Likewise.
2966         * modules/sprintf-posix (Comment): Likewise.
2967         * modules/vasnprintf-posix (Comment): Likewise.
2968         * modules/vasprintf-posix (Comment): Likewise.
2969         * modules/vdprintf-posix (Comment): Likewise.
2970         * modules/vfprintf-posix (Comment): Likewise.
2971         * modules/vprintf-posix (Comment): Likewise.
2972         * modules/vsnprintf-posix (Comment): Likewise.
2973         * modules/vsprintf-posix (Comment): Likewise.
2974         * modules/xprintf-posix (Comment): Likewise.
2975         * modules/xvasprintf-posix (Comment): Likewise.
2976         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
2977         * modules/floorf-tests (Depends-on): Likewise.
2978         * modules/round-tests (Depends-on): Likewise.
2979         * modules/roundf-tests (Depends-on): Likewise.
2980         * modules/trunc-tests (Depends-on): Likewise.
2981         * modules/truncf-tests (Depends-on): Likewise.
2982         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
2983         'fprintf-posix' module is not present.
2984         * tests/test-floorf2.c (check): Likewise.
2985         * tests/test-trunc2.c (check): Likewise.
2986         * tests/test-truncf2.c (check): Likewise.
2987         * tests/test-round2.c (equal): Likewise.
2988         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2989
2990 2010-04-07  Karl Berry  <karl@gnu.org>
2991
2992         * config/srclist.txt,
2993         * config/srclistvars.sh,
2994         * config/srclist-update: doc fixes.
2995
2996 2010-04-07  Jim Meyering  <meyering@redhat.com>
2997
2998         maint.mk: add a PATH crosschecking syntax-check rule
2999         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
3000         Useful if you use a test like the one in help-version (coreutils,
3001         diffutils, grep, gzip) that ensures $(VERSION) matches what is
3002         printed by prog --version.
3003
3004 2010-04-06  Bruno Haible  <bruno@clisp.org>
3005
3006         Fix link error on mingw.
3007         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
3008         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
3009
3010 2010-04-06  Bruno Haible  <bruno@clisp.org>
3011
3012         Assume rmdir exists.
3013         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
3014
3015 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
3016
3017         doc: update users.txt
3018         * users.txt: Add gcal.
3019
3020 2010-04-06  Jim Meyering  <meyering@redhat.com>
3021
3022         init.sh: simply unset TMPDIR rather than risking env -i
3023         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
3024         although it probably works fine on all Unix-based systems, some
3025         systems (Cygwin?) cannot tolerate a totally cleared environment.
3026         Suggestion from Eric Blake.
3027
3028 2010-04-06  Jim Meyering  <meyering@redhat.com>
3029
3030         init.sh: portability fix: use env's POSIX-specified -i option not -u
3031         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
3032         than unportable env -u.  Solaris 5.11's env lacks support for -u.
3033
3034 2010-04-05  Bruno Haible  <bruno@clisp.org>
3035
3036         btowc: Work around Cygwin 1.7.2 bug.
3037         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
3038         does not map NUL to 0.
3039         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
3040
3041 2010-04-05  Bruno Haible  <bruno@clisp.org>
3042
3043         Make the multithread modules work on Cygwin 1.7.2.
3044         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
3045         imported symbols can be declared weak, so that it returns "no" on
3046         Cygwin 1.7.2.
3047
3048 2010-04-05  Bruno Haible  <bruno@clisp.org>
3049
3050         Use the module 'strncat'.
3051         * modules/unistr/u8-strncat (Depends-on): Add strncat.
3052
3053         Tests for module 'strncat'.
3054         * modules/strncat-tests: New file.
3055         * tests/test-strncat.c: New file.
3056
3057         New module 'strncat'.
3058         * lib/string.in.h (strncat): New declaration.
3059         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
3060         * m4/strncat.m4: New file, based on m4/memchr.m4.
3061         * modules/strncat: New file.
3062         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
3063         is declared.
3064         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
3065         REPLACE_STRNCAT.
3066         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
3067         REPLACE_STRNCAT.
3068         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
3069         module.
3070         * tests/test-string-c++.cc: Check signature of strncat.
3071
3072 2010-04-05  Jim Meyering  <meyering@redhat.com>
3073
3074         xstrtoumax-tests: convert to use init.sh
3075         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
3076         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3077         Use Exit, not exit.
3078         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3079
3080         xstrtoimax-tests: convert to use init.sh
3081         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
3082         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3083         Use Exit, not exit.
3084         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3085
3086 2010-04-05  Bruno Haible  <bruno@clisp.org>
3087
3088         sys_socket: Avoid #define replacements in C++ mode.
3089         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
3090         warning to the function if possible, rather than #defining the symbol
3091         to a dysfunctional alias.
3092
3093 2010-04-05  Bruno Haible  <bruno@clisp.org>
3094
3095         fseeko: Fix C++ test error on mingw.
3096         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
3097         gl_FUNC_FSEEKO.
3098         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
3099         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
3100         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
3101         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
3102
3103 2010-04-05  Bruno Haible  <bruno@clisp.org>
3104
3105         duplocale: Improve test output.
3106         * tests/test-duplocale.c (main): Print reason for skipped test.
3107
3108 2010-04-05  Bruno Haible  <bruno@clisp.org>
3109
3110         Assume rmdir exists.
3111         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
3112         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
3113
3114 2010-04-05  Bruno Haible  <bruno@clisp.org>
3115
3116         Fix link error on Solaris 8 with cc.
3117         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
3118
3119 2010-04-05  Bruno Haible  <bruno@clisp.org>
3120
3121         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3122         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
3123
3124 2010-04-05  Bruno Haible  <bruno@clisp.org>
3125
3126         vasprintf: Update documentation.
3127         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
3128
3129 2010-04-05  Bruno Haible  <bruno@clisp.org>
3130
3131         ptsname: Improve test.
3132         * tests/test-ptsname.c (main): Also try the various master names of BSD
3133         systems.
3134
3135 2010-04-05  Bruno Haible  <bruno@clisp.org>
3136
3137         memchr: Avoid a possible C++ test error.
3138         * lib/string.in.h (memchr): Provide declaration if function is missing.
3139         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
3140         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
3141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
3142         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
3143
3144 2010-04-05  Bruno Haible  <bruno@clisp.org>
3145
3146         strtok_r: Improve idiom.
3147         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
3148         AC_LIBOBJ is used.
3149
3150 2010-04-05  Bruno Haible  <bruno@clisp.org>
3151
3152         strdup: Improve idiom.
3153         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
3154         AC_LIBOBJ is used.
3155         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
3156         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
3157         when AC_LIBOBJ is used.
3158
3159 2010-04-05  Bruno Haible  <bruno@clisp.org>
3160
3161         mbsinit, mbrtowc, wcrtomb: Improve idioms.
3162         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
3163         don't set REPLACE_MBSINIT to 1.
3164         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
3165         don't set REPLACE_MBRTOWC to 1.
3166         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
3167         exist, don't set REPLACE_MBSRTOWCS to 1.
3168         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
3169         exist, don't set REPLACE_MBSNRTOWCS to 1.
3170         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
3171         don't set REPLACE_WCRTOMB to 1.
3172         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
3173         exist, don't set REPLACE_WCSRTOMBS to 1.
3174         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
3175         exist, don't set REPLACE_WCSNRTOMBS to 1.
3176
3177 2010-04-05  Bruno Haible  <bruno@clisp.org>
3178
3179         ldexpl: Improve idiom.
3180         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
3181         make sure to set HAVE_DECL_LDEXPL to 0.
3182
3183 2010-04-05  Jim Meyering  <meyering@redhat.com>
3184
3185         xstrtol-tests: convert to use init.sh
3186         * modules/xstrtol-tests (Files): Add tests/init.sh.
3187         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3188         Use Exit, not exit.
3189         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3190
3191         atexit-tests: convert to use init.sh
3192         * modules/atexit-tests (Files): Add tests/init.sh.
3193         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3194         Use Exit, not exit.
3195         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3196
3197         init.sh: fix typo
3198         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
3199
3200         init.sh: make it easier for a test script to write to the tty, ...
3201         when using automake's parallel-tests mode.
3202         * tests/init.sh (stderr_fileno_): Define overridable variable.
3203         (warn_): New function, to use it.
3204         (fail_, skip_, framework_failure_): Use warn_.
3205
3206 2010-04-04  Bruno Haible  <bruno@clisp.org>
3207
3208         btowc: Avoid warning.
3209         * lib/btowc.c: Include <stdlib.h>.
3210         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
3211
3212 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3213             Bruno Haible  <bruno@clisp.org>
3214
3215         wchar: Port to NetBSD 1.5.
3216         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
3217         * lib/wctype.in.h (WEOF): Likewise.
3218
3219 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3220             Bruno Haible  <bruno@clisp.org>
3221
3222         Port extended stdio to NetBSD 1.5.
3223         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
3224         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
3225         older.
3226
3227 2010-04-04  Bruno Haible  <bruno@clisp.org>
3228
3229         string: Remove unused substitution.
3230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3231         HAVE_DECL_STRERROR.
3232         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
3233
3234 2010-04-04  Bruno Haible  <bruno@clisp.org>
3235
3236         strtod: Avoid a possible C++ test error.
3237         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
3238         set REPLACE_STRTOD.
3239
3240 2010-04-04  Bruno Haible  <bruno@clisp.org>
3241
3242         strerror: Update documentation.
3243         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
3244
3245 2010-04-04  Bruno Haible  <bruno@clisp.org>
3246
3247         stdio: Fix some C++ test errors on Solaris 8 with GCC.
3248         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
3249         _GL_CXXALIAS_SYS_CAST.
3250
3251 2010-04-04  Bruno Haible  <bruno@clisp.org>
3252
3253         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3254         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
3255         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
3256         REPLACE_FREXPL to 1.
3257         * doc/posix-functions/frexpl.texi: Update documentation.
3258
3259 2010-04-04  Bruno Haible  <bruno@clisp.org>
3260
3261         math: Fix some C++ test errors on Solaris 8 and Cygwin.
3262         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
3263
3264 2010-04-04  Bruno Haible  <bruno@clisp.org>
3265
3266         Implement nanosleep for native Windows.
3267         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
3268
3269 2010-04-04  Bruno Haible  <bruno@clisp.org>
3270
3271         math: Fix some C++ test errors on Solaris 8.
3272         * lib/math.in.h (truncf, trunc): Use simpler idiom.
3273
3274 2010-04-04  Bruno Haible  <bruno@clisp.org>
3275
3276         math: Fix some C++ test errors on Cygwin.
3277         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
3278         truncl): Provide declaration if the system does not have it.
3279         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
3280         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
3281         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
3282         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
3283         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
3284         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
3285         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
3286         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
3287         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
3288         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
3289         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
3290         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
3291         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
3292         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
3293         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
3294         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
3295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
3296         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3297         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3298         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
3299         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3300         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3301
3302 2010-04-04  Bruno Haible  <bruno@clisp.org>
3303
3304         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
3305         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3306         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3307         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3308         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3309         * m4/isinf.m4 (gl_ISINF): Likewise.
3310         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3311
3312 2010-04-04  Bruno Haible  <bruno@clisp.org>
3313
3314         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
3315         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3316
3317 2010-04-04  Bruno Haible  <bruno@clisp.org>
3318
3319         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
3320         * modules/tmpfile (configure.ac): Update.
3321
3322         tmpfile: Fix C++ test error on mingw.
3323         * lib/stdio.in.h (tmpfile): New declaration.
3324         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
3325         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
3326         * modules/tmpfile (Depends-on): Add stdio.
3327         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3328         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
3329         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
3330         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
3331         REPLACE_TMPFILE.
3332         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
3333
3334 2010-04-04  Bruno Haible  <bruno@clisp.org>
3335
3336         ioctl: Fix C++ test error on mingw.
3337         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
3338         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
3339         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
3340
3341 2010-04-03  Bruno Haible  <bruno@clisp.org>
3342
3343         wcwidth: Fix C++ test error on mingw.
3344         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
3345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
3346         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
3347
3348 2010-04-03  Bruno Haible  <bruno@clisp.org>
3349
3350         nanosleep: Fix C++ test error on mingw.
3351         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
3352         * lib/time.in.h (nanosleep): Use modern idiom.
3353         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
3354         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
3355         REPLACE_NANOSLEEP to 1.
3356         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
3357         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
3358
3359 2010-04-03  Bruno Haible  <bruno@clisp.org>
3360
3361         strptime: Fix C++ test error on mingw.
3362         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
3363         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
3364         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
3365         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
3366         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
3367         not REPLACE_STRPTIME.
3368         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
3369         REPLACE_STRPTIME.
3370
3371 2010-04-03  Bruno Haible  <bruno@clisp.org>
3372
3373         timegm: Fix C++ test error on mingw.
3374         * lib/time.in.h (timegm): Use modern idiom.
3375         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
3376         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
3377         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
3378         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
3379
3380 2010-04-03  Bruno Haible  <bruno@clisp.org>
3381
3382         timegm: Assume declaration if function exists.
3383         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
3384         if it exists. Don't clobber ac_cv_func_timegm.
3385
3386 2010-04-03  Bruno Haible  <bruno@clisp.org>
3387
3388         time_r: Fix C++ test error on mingw.
3389         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
3390         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
3391         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
3392         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
3393         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
3394
3395 2010-04-03  Bruno Haible  <bruno@clisp.org>
3396
3397         time_r: Minor updates.
3398         * modules/time_r (Description): Mention the provided functions.
3399         * lib/time_r.c: Don't include <string.h>.
3400         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
3401         * doc/posix-functions/localtime_r.texi: Likewise.
3402
3403 2010-04-03  Bruno Haible  <bruno@clisp.org>
3404
3405         time: Fix regression introduced on 2010-03-08.
3406         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
3407         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
3408
3409 2010-04-03  Jim Meyering  <meyering@redhat.com>
3410
3411         maint.mk: don't silently disable project-specific syntax-check rules
3412         * top/maint.mk (_prohibit_regexp): Define, to help people realize
3413         that they need to convert their project-specific syntax-check rules
3414         to use the new _sc_search_regexp.
3415
3416 2010-04-03  Bruno Haible  <bruno@clisp.org>
3417
3418         fchdir: Fix regression introduced on 2010-03-08.
3419         * lib/unistd.in.h (fchdir): Fix declaration.
3420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
3421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
3422         REPLACE_FCHDIR.
3423         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
3424         REPLACE_FCHDIR.
3425
3426 2010-04-03  Bruno Haible  <bruno@clisp.org>
3427
3428         getpagesize: Fix C++ test error on mingw.
3429         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
3430         system does not declare the function.
3431         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
3432         declared.
3433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3434         HAVE_DECL_GETPAGESIZE.
3435         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
3436
3437 2010-04-03  Bruno Haible  <bruno@clisp.org>
3438
3439         stdio: Make C++ tests work on mingw.
3440         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
3441         does not declare the function.
3442
3443 2010-04-03  Bruno Haible  <bruno@clisp.org>
3444
3445         ftello: Fix C++ test error on mingw.
3446         * lib/stdio.in.h (ftello): Use modern idiom.
3447         * lib/ftello.c (ftello): Renamed from rpl_ftello.
3448         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
3449         is missing and that it needs to be replaced.
3450         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
3451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
3452         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
3453
3454 2010-04-03  Bruno Haible  <bruno@clisp.org>
3455
3456         fseeko: Fix C++ test error on mingw.
3457         * lib/stdio.in.h (fseeko): Use modern idiom.
3458         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
3459         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
3460         is missing and that it needs to be replaced.
3461         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
3462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
3463         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
3464
3465 2010-04-03  Bruno Haible  <bruno@clisp.org>
3466
3467         mkstemp: Fix C++ test error on mingw.
3468         * lib/stdlib.in.h (mkstemp): Use modern idiom.
3469         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
3470         function is missing and that it needs to be replaced.
3471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
3472         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
3473
3474 2010-04-03  Bruno Haible  <bruno@clisp.org>
3475
3476         stpncpy: Fix C++ test error on mingw.
3477         * lib/string.in.h (stpncpy): Use modern idiom.
3478         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
3479         function is missing and that it needs to be replaced.
3480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3481         REPLACE_STPNCPY.
3482         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
3483
3484 2010-04-03  Bruno Haible  <bruno@clisp.org>
3485
3486         sys_stat: Fix C++ test error on mingw.
3487         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
3488         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
3489
3490 2010-04-03  Bruno Haible  <bruno@clisp.org>
3491
3492         pty: Update doc.
3493         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
3494
3495 2010-04-03  Bruno Haible  <bruno@clisp.org>
3496
3497         unistd: Fix C++ test error on mingw.
3498         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
3499
3500 2010-04-03  Bruno Haible  <bruno@clisp.org>
3501
3502         Update doc regarding mingw.
3503         * doc/glibc-functions/openpty.texi: Update regarding mingw.
3504         * doc/glibc-functions/login_tty.texi: Likewise.
3505         * doc/glibc-functions/forkpty.texi: Likewise.
3506
3507 2010-04-03  Bruno Haible  <bruno@clisp.org>
3508
3509         stdlib: Avoid compilation failure of c-strtold on mingw.
3510         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
3511
3512 2010-04-03  Bruno Haible  <bruno@clisp.org>
3513
3514         locale: Make C++ tests work on Cygwin and mingw.
3515         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
3516         cannot provide the function.
3517         Reported by Simon Josefsson.
3518
3519 2010-04-03  Bruno Haible  <bruno@clisp.org>
3520
3521         localename: Port to MacOS X 10.6.
3522         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
3523         memory layout of the locales in MacOS X 10.6 as well.
3524         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
3525
3526 2010-04-02  Bruno Haible  <bruno@clisp.org>
3527
3528         gnulib-tool: Ensure that long-running tests are executed last.
3529         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
3530         running tests after the one for the other tests.
3531
3532 2010-04-02  Bruno Haible  <bruno@clisp.org>
3533
3534         gnulib-tool: Ensure the tests in the main directory are executed first.
3535         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3536         start with the current directory.
3537
3538 2010-04-02  Bruno Haible  <bruno@clisp.org>
3539
3540         Tests for module 'havelib', moved here from GNU gettext.
3541         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3542         modifications.
3543         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3544         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3545         with modifications.
3546         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3547         modifications.
3548         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3549         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3550         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3551         with modifications.
3552         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3553         with modifications.
3554         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3555         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3556         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3557         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3558         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3559         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3560         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3561         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3562         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3563         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3564         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3565         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3566         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3567         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3568         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3569         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3570         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3571         with modifications.
3572         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3573         with modifications.
3574         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3575         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3576         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3577         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3578         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3579         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3580         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3581         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3582         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3583         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3584         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3585         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3586         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3587         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3588         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3589         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3590         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3591         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3592         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3593         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3594         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3595         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3596         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3597         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3598         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3599         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3600         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3601         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3602         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3603         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3604         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3605         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3606         * tests/havelib/rpathx/rpathx.c: New file, from
3607         gettext/autoconf-lib-link.
3608         * tests/havelib/rpathx/Makefile.am: New file, from
3609         gettext/autoconf-lib-link.
3610         * tests/havelib/rpathx/configure.ac: New file, from
3611         gettext/autoconf-lib-link with modifications.
3612         * tests/havelib/rpathy/rpathy.c: New file, from
3613         gettext/autoconf-lib-link.
3614         * tests/havelib/rpathy/Makefile.am: New file, from
3615         gettext/autoconf-lib-link.
3616         * tests/havelib/rpathy/configure.ac: New file, from
3617         gettext/autoconf-lib-link with modifications.
3618         * tests/havelib/rpathz/rpathz.c: New file, from
3619         gettext/autoconf-lib-link.
3620         * tests/havelib/rpathz/Makefile.am: New file, from
3621         gettext/autoconf-lib-link.
3622         * tests/havelib/rpathz/configure.ac: New file, from
3623         gettext/autoconf-lib-link with modifications.
3624         * tests/havelib/rpathlx/usex.c: New file, from
3625         gettext/autoconf-lib-link.
3626         * tests/havelib/rpathlx/Makefile.am: New file, from
3627         gettext/autoconf-lib-link.
3628         * tests/havelib/rpathlx/configure.ac: New file, from
3629         gettext/autoconf-lib-link with modifications.
3630         * tests/havelib/rpathly/usey.c: New file, from
3631         gettext/autoconf-lib-link.
3632         * tests/havelib/rpathly/Makefile.am: New file, from
3633         gettext/autoconf-lib-link.
3634         * tests/havelib/rpathly/configure.ac: New file, from
3635         gettext/autoconf-lib-link with modifications.
3636         * tests/havelib/rpathlz/usez.c: New file, from
3637         gettext/autoconf-lib-link.
3638         * tests/havelib/rpathlz/Makefile.am: New file, from
3639         gettext/autoconf-lib-link.
3640         * tests/havelib/rpathlz/configure.ac: New file, from
3641         gettext/autoconf-lib-link with modifications.
3642         * tests/havelib/rpathlyx/usey.c: New file, from
3643         gettext/autoconf-lib-link.
3644         * tests/havelib/rpathlyx/Makefile.am: New file, from
3645         gettext/autoconf-lib-link.
3646         * tests/havelib/rpathlyx/configure.ac: New file, from
3647         gettext/autoconf-lib-link with modifications.
3648         * tests/havelib/rpathlzyx/usez.c: New file, from
3649         gettext/autoconf-lib-link.
3650         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3651         gettext/autoconf-lib-link.
3652         * tests/havelib/rpathlzyx/configure.ac: New file, from
3653         gettext/autoconf-lib-link with modifications.
3654         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3655         with modifications.
3656
3657 2010-04-02  Bruno Haible  <bruno@clisp.org>
3658
3659         gnulib-tool: Create distributed built sources also for the tests.
3660         * gnulib-tool (func_create_testdir): Also generate distributed built
3661         sources in the tests directory.
3662
3663 2010-04-02  Bruno Haible  <bruno@clisp.org>
3664
3665         gnulib-tool: Obey user's environment variables.
3666         * gnulib-tool (func_create_testdir): When creating built sources,
3667         respect the environment variables for autoconf, automake, etc. given by
3668         the user.
3669
3670 2010-04-02  Bruno Haible  <bruno@clisp.org>
3671
3672         gnulib-tool: Provide the value of --m4-base to modules.
3673         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3674         of gl_m4_base.
3675
3676 2010-04-02  Eric Blake  <eblake@redhat.com>
3677
3678         maint.mk: fix some fallout
3679         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3680         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3681
3682 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3683
3684         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3685         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3686         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3687         (sc_cast_of_x_alloc_return_value): Likewise.
3688         (sc_cast_of_alloca_return_value): Likewise.
3689         (sc_space_tab): Likewise.
3690         (sc_prohibit_atoi_atof): Likewise.
3691         (sc_prohibit_magic_number_exit): Likewise.
3692         (sc_error_exit_success): Likewise.
3693         (sc_file_system): Likewise.
3694         (sc_prohibit_have_config_h): Likewise.
3695         (sc_require_config_h): Likewise.
3696         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3697         (sc_obsolete_symbols): Likewise.
3698         (sc_changelog): Likewise.
3699         (sc_program_name): Likewise.
3700         (sc_the_the): Likewise.
3701         (sc_trailing_blank): Likewise.
3702         (sc_two_space_separator_in_usage): Likewise.
3703         (sc_useless_cpp_parens): Likewise.
3704         (sc_GPL_version): Likewise.
3705         (sc_GFDL_version): Likewise.
3706         (sc_texinfo_acronym): Likewise.
3707         (sc_prohibit_cvs_keyword): Likewise.
3708         (sc_prohibit_stat_st_blocks): Likewise.
3709         (sc_prohibit_S_IS_definition): Likewise.
3710         (sc_redundant_const): Likewise.
3711         (sc_makefile_TAB_only_indentation): Likewise.
3712         (sc_m4_quote_check): Likewise.
3713         (sc_makefile_path_separator_check): Likewise.
3714         (sc_copyright_check): Likewise.
3715         (sc_Wundef_boolean): Likewise.
3716         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3717
3718         maint.mk: match 0 or more whitespace-before-function-call '('
3719         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
3720         that have zero or two-and-more spaces between the function name
3721         and the open parenthesis.
3722         (sc_error_message_warn_fatal): Likewise.
3723         (sc_error_message_uppercase): Likewise.
3724         (sc_error_message_period): Likewise.
3725
3726 2010-03-31  Eric Blake  <eblake@redhat.com>
3727
3728         maint.mk: check for [ as well as test
3729         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
3730         Based on a libvirt report by Matthias Bolte.
3731
3732         gnumakefile: don't squelch _version output
3733         * top/GNUmakefile (_version): Create one-shot dependency rather
3734         than using $(shell) when version must be regenerated.
3735         (_autoreconf): Run verbosely, by default.
3736
3737         sys_time: avoid compiler warnings
3738         * lib/sys_time.in.h (includes): Ensure gcc pragma is
3739         unconditional, fixing regression from 2010-03-29.
3740         Reported by Simon Josefsson.
3741
3742 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3743
3744         maint.mk: s/_header_without_use/_sc_header_without_use/
3745         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
3746         (sc_prohibit_assert_without_use): Use the new name.
3747         (sc_prohibit_close_stream_without_use): Likewise.
3748         (sc_prohibit_getopt_without_use): Likewise.
3749         (sc_prohibit_quotearg_without_use): Likewise.
3750         (sc_prohibit_quote_without_use): Likewise.
3751         (sc_prohibit_long_options_without_use): Likewise.
3752         (sc_prohibit_inttostr_without_use): Likewise.
3753         (sc_prohibit_ignore_value_without_use): Likewise.
3754         (sc_prohibit_error_without_use): Likewise.
3755         (sc_prohibit_xalloc_without_use): Likewise.
3756         (sc_prohibit_hash_without_use): Likewise.
3757         (sc_prohibit_hash_pjw_without_use): Likewise.
3758         (sc_prohibit_safe_read_without_use): Likewise.
3759         (sc_prohibit_argmatch_without_use): Likewise.
3760         (sc_prohibit_canonicalize_without_use): Likewise.
3761         (sc_prohibit_root_dev_ino_without_use): Likewise.
3762         (sc_prohibit_openat_without_use): Likewise.
3763         (sc_prohibit_c_ctype_without_use): Likewise.
3764         (sc_prohibit_signal_without_use): Likewise.
3765         (sc_prohibit_intprops_without_use): Likewise.
3766
3767 2010-03-30  Eric Blake  <eblake@redhat.com>
3768
3769         maint: improve module indicators
3770         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
3771         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
3772         columns, and avoid extra macro expansion.
3773
3774         fdopendir: work around FreeBSD bug
3775         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3776         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
3777         * modules/dirent (Makefile.am): Substitute it.
3778         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
3779         declaration.
3780         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
3781         fix.
3782         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3783
3784 2010-03-29  Bruno Haible  <bruno@clisp.org>
3785
3786         Emit #pragma system_header after the inclusion guard, not before.
3787         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
3788         guard that spans the entire file, not before. This enables an
3789         optimization in GCC's preprocessor.
3790         * lib/ctype.in.h: Likewise.
3791         * lib/dirent.in.h: Likewise.
3792         * lib/errno.in.h: Likewise.
3793         * lib/float.in.h: Likewise.
3794         * lib/getopt.in.h: Likewise.
3795         * lib/iconv.in.h: Likewise.
3796         * lib/langinfo.in.h: Likewise.
3797         * lib/locale.in.h: Likewise.
3798         * lib/math.in.h: Likewise.
3799         * lib/netdb.in.h: Likewise.
3800         * lib/netinet_in.in.h: Likewise.
3801         * lib/pty.in.h: Likewise.
3802         * lib/sched.in.h: Likewise.
3803         * lib/se-selinux.in.h: Likewise.
3804         * lib/search.in.h: Likewise.
3805         * lib/spawn.in.h: Likewise.
3806         * lib/stdarg.in.h: Likewise.
3807         * lib/stdint.in.h: Likewise.
3808         * lib/string.in.h: Likewise.
3809         * lib/strings.in.h: Likewise.
3810         * lib/sys_file.in.h: Likewise.
3811         * lib/sys_ioctl.in.h: Likewise.
3812         * lib/sys_time.in.h: Likewise.
3813         * lib/sys_times.in.h: Likewise.
3814         * lib/sys_utsname.in.h: Likewise.
3815         * lib/sys_wait.in.h: Likewise.
3816         * lib/sysexits.in.h: Likewise.
3817         * lib/wctype.in.h: Likewise.
3818
3819 2010-03-28  James Youngman  <jay@gnu.org>
3820
3821         save-cwd: don't leak a file descriptor when the caller execs.
3822         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
3823         saved file descriptor.
3824         * modules/save-cwd (Depends-on): Depend on cloexec.
3825
3826 2010-03-29  Bruno Haible  <bruno@clisp.org>
3827
3828         Remove vestiges of fts-lgpl module.
3829         * lib/fts_.h: Assume GNULIB_FTS is 1.
3830         * lib/fts.c: Likewise.
3831         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3832
3833 2010-03-28  Bruno Haible  <bruno@clisp.org>
3834
3835         Fix definition of tests witness macro.
3836         * gnulib-tool (func_import): Fix definition of witness macro.
3837
3838 2010-03-28  Bruno Haible  <bruno@clisp.org>
3839
3840         Fix ioctl's protoype on glibc systems.
3841         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
3842         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
3843         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
3844         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
3845         signature. If not, arrange to replace the ioctl function.
3846         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3847         REPLACE_IOCTL.
3848         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
3849         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
3850         Reported by Ludovic Courtès <ludo@gnu.org>.
3851
3852 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
3853
3854         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
3855         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
3856         made it so grep -r --include=GLOB* ... did not work.
3857
3858 2010-03-26  Jim Meyering  <meyering@redhat.com>
3859             Eric Blake  <eblake@redhat.com>
3860
3861         maint.mk: prohibit use of test's -o and -a operators
3862         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
3863
3864 2010-03-28  Bruno Haible  <bruno@clisp.org>
3865
3866         Remove unused GNULIB_XYZ macro definitions.
3867         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
3868         invocation.
3869
3870 2010-03-28  Bruno Haible  <bruno@clisp.org>
3871
3872         Mark privileged tests modules.
3873         * modules/idpriv-drop-tests (Status): New section.
3874         * modules/idpriv-droptemp-tests (Status): New section.
3875
3876 2010-03-28  Bruno Haible  <bruno@clisp.org>
3877
3878         Split C++ tests into separate tests modules.
3879         * modules/dirent-c++-tests: New file, extracted from
3880         modules/dirent-tests.
3881         * modules/dirent-tests: Depend on it.
3882         * modules/fcntl-h-c++-tests: New file, extracted from
3883         modules/fcntl-h-tests.
3884         * modules/fcntl-h-tests: Depend on it.
3885         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
3886         * modules/glob-tests: Depend on it.
3887         * modules/iconv-h-c++-tests: New file, extracted from
3888         modules/iconv-h-tests.
3889         * modules/iconv-h-tests: Depend on it.
3890         * modules/langinfo-c++-tests: New file, extracted from
3891         modules/langinfo-tests.
3892         * modules/langinfo-tests: Depend on it.
3893         * modules/locale-c++-tests: New file, extracted from
3894         modules/locale-tests.
3895         * modules/locale-tests: Depend on it.
3896         * modules/math-c++-tests: New file, extracted from modules/math-tests.
3897         * modules/math-tests: Depend on it.
3898         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
3899         * modules/pty-tests: Depend on it.
3900         * modules/search-c++-tests: New file, extracted from
3901         modules/search-tests.
3902         * modules/search-tests: Depend on it.
3903         * modules/signal-c++-tests: New file, extracted from
3904         modules/signal-tests.
3905         * modules/signal-tests: Depend on it.
3906         * modules/spawn-c++-tests: New file, extracted from
3907         modules/spawn-tests.
3908         * modules/spawn-tests: Depend on it.
3909         * modules/stdio-c++-tests: New file, extracted from
3910         modules/stdio-tests.
3911         * modules/stdio-tests: Depend on it.
3912         * modules/stdlib-c++-tests: New file, extracted from
3913         modules/stdlib-tests.
3914         * modules/stdlib-tests: Depend on it.
3915         * modules/string-c++-tests: New file, extracted from
3916         modules/string-tests.
3917         * modules/string-tests: Depend on it.
3918         * modules/sys_ioctl-c++-tests: New file, extracted from
3919         modules/sys_ioctl-tests.
3920         * modules/sys_ioctl-tests: Depend on it.
3921         * modules/sys_select-c++-tests: New file, extracted from
3922         modules/sys_select-tests.
3923         * modules/sys_select-tests: Depend on it.
3924         * modules/sys_socket-c++-tests: New file, extracted from
3925         modules/sys_socket-tests.
3926         * modules/sys_socket-tests: Depend on it.
3927         * modules/sys_stat-c++-tests: New file, extracted from
3928         modules/sys_stat-tests.
3929         * modules/sys_stat-tests: Depend on it.
3930         * modules/sys_time-c++-tests: New file, extracted from
3931         modules/sys_time-tests.
3932         * modules/sys_time-tests: Depend on it.
3933         * modules/time-c++-tests: New file, extracted from modules/time-tests.
3934         * modules/time-tests: Depend on it.
3935         * modules/unistd-c++-tests: New file, extracted from
3936         modules/unistd-tests.
3937         * modules/unistd-tests: Depend on it.
3938         * modules/wchar-c++-tests: New file, extracted from
3939         modules/wchar-tests.
3940         * modules/wchar-tests: Depend on it.
3941         * modules/wctype-c++-tests: New file, extracted from
3942         modules/wctype-tests.
3943         * modules/wctype-tests: Depend on it.
3944         Reported by Simon Josefsson.
3945
3946 2010-03-28  Bruno Haible  <bruno@clisp.org>
3947
3948         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
3949         * gnulib-tool (func_exists_module): New function, extracted from
3950         func_verify_module.
3951         (func_verify_module): Use it.
3952         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
3953         'foo' only if 'foo' exists.
3954         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
3955         module.
3956
3957 2010-03-28  Bruno Haible  <bruno@clisp.org>
3958
3959         gnulib-tool: Add support for special categories of tests.
3960         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
3961         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
3962         (func_usage): Document them.
3963         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
3964         inc_unportable_tests, inc_all_tests): New variables.
3965         (func_acceptable): Consider these variables.
3966         (func_modules_transitive_closure): Make it work when the 'Status' field
3967         consists of multiple words.
3968         (func_import): Store and restore the values of inc_cxx_tests,
3969         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
3970         inc_all_tests in gnulib-comp.m4.
3971         (func_create_testdir): Set inc_all_tests to true.
3972         * doc/gnulib.texi (Extra tests modules): New section.
3973         Suggested by Jim Meyering.
3974
3975 2010-03-28  Bruno Haible  <bruno@clisp.org>
3976
3977         ansi-c++-opt: Allow turning off the C++ build by default.
3978         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
3979         gl_CXX_CHOICE_DEFAULT_NO is defined.
3980         Requested by Eric Blake.
3981
3982 2010-03-28  Bruno Haible  <bruno@clisp.org>
3983
3984         unistd: Avoid #define replacements in C++ mode.
3985         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3986         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3987         setsockopt, shutdown, select): In C++, attach a warning to the function
3988         if possible, rather than #defining the symbol to a dysfunctional alias.
3989         Reported by John W. Eaton <jwe@gnu.org>.
3990
3991 2010-03-28  Bruno Haible  <bruno@clisp.org>
3992
3993         Fix link errors on mingw.
3994         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
3995         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
3996         $(LIBSOCKET).
3997         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
3998         $(LIBSOCKET).
3999
4000 2010-03-28  Bruno Haible  <bruno@clisp.org>
4001             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4002
4003         lib-ignore: Determine different options for different compilers.
4004         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
4005         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
4006         Add comments.
4007         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
4008         * NEWS: Mention the change.
4009
4010 2010-03-27  Bruno Haible  <bruno@clisp.org>
4011
4012         Remove unused GNULIB_XYZ macro definitions.
4013         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4014         * modules/fseek (configure.ac): Likewise.
4015         * modules/ioctl (configure.ac): Likewise.
4016         * modules/open (configure.ac): Likewise.
4017         * modules/stdlib-safer (configure.ac): Likewise.
4018
4019 2010-03-27  Bruno Haible  <bruno@clisp.org>
4020
4021         Add a remark about certain modules.
4022         * modules/malloc (Comment): New section.
4023         * modules/realloc (Comment): Likewise.
4024         * modules/sigpipe (Comment): Likewise.
4025
4026 2010-03-27  Bruno Haible  <bruno@clisp.org>
4027
4028         Resolve conflict between the two kinds of module indicators.
4029         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
4030         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
4031         * modules/canonicalize (configure.ac): Invoke
4032         gl_MODULE_INDICATOR_FOR_TESTS.
4033         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
4034         GNULIB_XYZ.
4035         * tests/test-dirent-c++.cc: Likewise.
4036         * tests/test-dirent-safer.c: Likewise.
4037         * tests/test-dup2.c: Likewise.
4038         * tests/test-fchdir.c: Likewise.
4039         * tests/test-fcntl-h-c++.cc: Likewise.
4040         * tests/test-getopt.c: Likewise.
4041         * tests/test-getopt.h: Likewise.
4042         * tests/test-langinfo-c++.cc: Likewise.
4043         * tests/test-locale-c++.cc: Likewise.
4044         * tests/test-math-c++.cc: Likewise.
4045         * tests/test-pty-c++.cc: Likewise.
4046         * tests/test-search-c++.cc: Likewise.
4047         * tests/test-signal-c++.cc: Likewise.
4048         * tests/test-spawn-c++.cc: Likewise.
4049         * tests/test-stdio-c++.cc: Likewise.
4050         * tests/test-stdlib-c++.cc: Likewise.
4051         * tests/test-string-c++.cc: Likewise.
4052         * tests/test-sys_ioctl-c++.cc: Likewise.
4053         * tests/test-sys_select-c++.cc: Likewise.
4054         * tests/test-sys_socket-c++.cc: Likewise.
4055         * tests/test-sys_stat-c++.cc: Likewise.
4056         * tests/test-sys_time-c++.cc: Likewise.
4057         * tests/test-time-c++.cc: Likewise.
4058         * tests/test-unistd-c++.cc: Likewise.
4059         * tests/test-wchar-c++.cc: Likewise.
4060         * tests/uninorm/test-u8-nfc.c: Likewise.
4061         * tests/uninorm/test-u8-nfd.c: Likewise.
4062         * tests/uninorm/test-u8-nfkc.c: Likewise.
4063         * tests/uninorm/test-u8-nfkd.c: Likewise.
4064         * tests/uninorm/test-u16-nfc.c: Likewise.
4065         * tests/uninorm/test-u16-nfd.c: Likewise.
4066         * tests/uninorm/test-u16-nfkc.c: Likewise.
4067         * tests/uninorm/test-u16-nfkd.c: Likewise.
4068         * tests/uninorm/test-u32-nfc.c: Likewise.
4069         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4070         * tests/uninorm/test-u32-nfd.c: Likewise.
4071         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4072         * tests/uninorm/test-u32-nfkc.c: Likewise.
4073         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4074         * tests/uninorm/test-u32-nfkd.c: Likewise.
4075         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4076         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4077
4078 2010-03-27  Bruno Haible  <bruno@clisp.org>
4079
4080         Distinguish two kinds of module indicators.
4081         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
4082         gl_MODULE_INDICATOR.
4083         (gl_MODULE_INDICATOR): New macro.
4084         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4085         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
4086         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4087         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4088         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4089         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4090         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4091         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4092         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4093         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4094         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4095         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4097         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4098         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4099         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4100         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4101         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4102         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4103         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4104         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4105         * modules/cloexec (configure.ac): Likewise.
4106         * modules/getopt-gnu (configure.ac): Likewise.
4107         * modules/uninorm/u8-normalize (configure.ac): Likewise.
4108         * modules/uninorm/u16-normalize (configure.ac): Likewise.
4109         * modules/uninorm/u32-normalize (configure.ac): Likewise.
4110         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
4111
4112 2010-03-27  Bruno Haible  <bruno@clisp.org>
4113
4114         New module description field 'Comment'.
4115         * gnulib-tool: New option --extract-comment.
4116         (func_usage): Document it.
4117         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
4118         (func_get_comment): New function.
4119         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
4120
4121 2010-03-27  Bruno Haible  <bruno@clisp.org>
4122
4123         Addendum to 2010-02-07 commit.
4124         * gnulib-tool (func_usage): Document --extract-applicability option.
4125
4126 2010-03-27  Bruno Haible  <bruno@clisp.org>
4127
4128         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
4129         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
4130         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
4131         rather than link errors.
4132
4133 2010-03-27  Bruno Haible  <bruno@clisp.org>
4134
4135         Avoid side effects from tests-related modules on the compilation of lib.
4136         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
4137         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
4138         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
4139         parameter. Emit into AM_CPPFLAGS a definition of the designated C
4140         macro.
4141         (func_import): Define a witness macro. Assign it a value that depends
4142         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
4143         tests-related modules.
4144         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
4145         Reported by Jim Meyering.
4146
4147 2010-03-27  Bruno Haible  <bruno@clisp.org>
4148
4149         Factorize common .m4 code.
4150         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
4151         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
4152         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
4153         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
4154         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4155         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
4156         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
4157         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4158         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4159         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4160         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
4161         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4162         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4163         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4164         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4165         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
4166         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4167         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4168         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4169         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
4170         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
4171         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4172         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4173         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4174         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4175         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4176         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
4177         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
4178         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
4179         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4180         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4181         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4182
4183 2010-03-27  Bruno Haible  <bruno@clisp.org>
4184
4185         Fix a compilation error on Cygwin with g++ >= 4.3.
4186         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
4187         if it is undefined or if we alias it to chmod.
4188         (lstat): Don't warn about the use of this function if it is undefined
4189         or if we alias it to stat.
4190         Reported by Simon Josefsson.
4191
4192 2010-03-27  Bruno Haible  <bruno@clisp.org>
4193
4194         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
4195         * modules/getlogin (configure.ac): Update.
4196
4197         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
4198         * modules/getlogin_r (configure.ac): Update.
4199
4200         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
4201         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
4202         * modules/inet_ntop (configure.ac): Update.
4203
4204         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
4205         * modules/inet_pton (configure.ac): Update.
4206
4207         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
4208         * modules/mbslen (configure.ac): Update.
4209
4210         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
4211         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
4212         * modules/forkpty (configure.ac): Update.
4213         * modules/openpty (configure.ac): Update.
4214
4215 2010-03-26  Simon Josefsson  <simon@josefsson.org>
4216
4217         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
4218         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
4219
4220 2010-03-25  Eric Blake  <eblake@redhat.com>
4221
4222         maint: use pragma consistently across replacement headers
4223         * lib/ctype.in.h (system_header): Hoist for consistent placement.
4224         * lib/dirent.in.h (system_header): Likewise.
4225         * lib/errno.in.h (system_header): Likewise.
4226         * lib/float.in.h (system_header): Likewise.
4227         * lib/getopt.in.h (system_header): Likewise.
4228         * lib/iconv.in.h (system_header): Likewise.
4229         * lib/inttypes.in.h (system_header): Likewise.
4230         * lib/langinfo.in.h (system_header): Likewise.
4231         * lib/locale.in.h (system_header): Likewise.
4232         * lib/math.in.h (system_header): Likewise.
4233         * lib/netdb.in.h (system_header): Likewise.
4234         * lib/netinet_in.in.h (system_header): Likewise.
4235         * lib/pty.in.h (system_header): Likewise.
4236         * lib/sched.in.h (system_header): Likewise.
4237         * lib/se-selinux.in.h (system_header): Likewise.
4238         * lib/search.in.h (system_header): Likewise.
4239         * lib/spawn.in.h (system_header): Likewise.
4240         * lib/stdarg.in.h (system_header): Likewise.
4241         * lib/stdint.in.h (system_header): Likewise.
4242         * lib/string.in.h (system_header): Likewise.
4243         * lib/strings.in.h (system_header): Likewise.
4244         * lib/sys_file.in.h (system_header): Likewise.
4245         * lib/sys_ioctl.in.h (system_header): Likewise.
4246         * lib/sys_socket.in.h (system_header): Likewise.
4247         * lib/sys_times.in.h (system_header): Likewise.
4248         * lib/sys_utsname.in.h (system_header): Likewise.
4249         * lib/sys_wait.in.h (system_header): Likewise.
4250         * lib/sysexits.in.h (system_header): Likewise.
4251         * lib/unistd.in.h (system_header): Likewise.
4252         * lib/wctype.in.h (system_header): Likewise.
4253
4254         arpa/inet: fix mingw compilation warning
4255         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
4256         Reported by Matthew Bolte.
4257
4258 2010-03-25  Bruno Haible  <bruno@clisp.org>
4259
4260         Avoid collision between gnulib wrapper and libintl wrapper.
4261         * lib/printf.c (printf): Don't define if a printf wrapper is already
4262         defined in intl/printf.c.
4263         Reported by Michel Boaventura <michel@michelboaventura.com>.
4264
4265 2010-03-25  Bruno Haible  <bruno@clisp.org>
4266
4267         Use ANSI C.
4268         * lib/readutmp.h (getutent): Provide ANSI C prototype.
4269
4270 2010-03-25  Bruno Haible  <bruno@clisp.org>
4271
4272         Minor formatting changes.
4273         * lib/acosl.c: Insert space before function argument list.
4274         * lib/argz.c: Likewise.
4275         * lib/asinl.c: Likewise.
4276         * lib/expl.c: Likewise.
4277         * lib/gen-uni-tables.c: Likewise.
4278         * lib/gettext.h: Likewise.
4279         * lib/glthread/lock.h: Likewise.
4280         * lib/tanl.c: Likewise.
4281         * lib/uniname/uniname.c: Likewise.
4282         * tests/test-idpriv-drop.c: Likewise.
4283         * tests/test-idpriv-droptemp.c: Likewise.
4284         * tests/test-lock.c: Likewise.
4285         * tests/test-tls.c: Likewise.
4286         * lib/argp-help.c: Insert space before function-like macro argument
4287         list.
4288         * lib/memcmp.c: Likewise.
4289         * tests/test-base64.c: Likewise.
4290         * lib/localename.c: Insert space before sizeof's argument list.
4291         * lib/safe-alloc.h: Likewise.
4292         * lib/file-set.h: Insert space before macro argument list.
4293         * tests/test-argp.c: Likewise.
4294         * lib/argp-namefrob.h: Insert space before function parameter list.
4295         * lib/getaddrinfo.c: Likewise.
4296         * lib/netdb.in.h: Likewise.
4297         * lib/parse-duration.h: Likewise.
4298         * lib/parse-duration.c: Likewise.
4299         * lib/poll.c: Likewise.
4300         * lib/select.c: Likewise.
4301         * lib/trim.h: Likewise.
4302         * tests/test-usleep.c: Likewise.
4303         * lib/ldexpl.c: Insert space before function parameter list and before
4304         function argument list.
4305         * lib/logl.c: Likewise.
4306         * lib/sqrtl.c: Likewise.
4307         * lib/trim.c: Likewise.
4308         * lib/cosl.c: Use GNU style indentation. Insert space before function
4309         argument list.
4310         * lib/sinl.c: Likewise.
4311         * lib/tsearch.c: Insert space after 'for'.
4312         Reported by Jim Meyering.
4313
4314 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
4315
4316         * maint.mk (sc_Wundef_boolean): Check for the presence of the
4317         config header before grepping, as it's not present before
4318         autoreconf/configure are run.  Reported by Simon Josefsson.
4319
4320 2010-03-23  Bruno Haible  <bruno@clisp.org>
4321
4322         pt_chown: Make it work with automake < 1.11.
4323         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
4324         Reported by Simon Josefsson.
4325
4326 2010-03-23  Bruno Haible  <bruno@clisp.org>
4327
4328         pt_chown: Don't depend on GPLed modules.
4329         * lib/pt_chown.c: Don't include idpriv.h.
4330         (main): Don't drop privileges.
4331         * modules/pt_chown (Depends-on): Remove idpriv-drop.
4332         Reported by Simon Josefsson.
4333
4334 2010-03-24  Simon Josefsson  <simon@josefsson.org>
4335
4336         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
4337         suggestions from karl@freefriends.org (Karl Berry).
4338
4339 2010-03-22  Eric Blake  <eblake@redhat.com>
4340
4341         gethostname: further tweaks
4342         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
4343         are overriding gethostname.
4344         Suggested by Bruno Haible.
4345
4346 2010-03-21  Bruno Haible  <bruno@clisp.org>
4347
4348         Fix comments.
4349         * lib/forkpty.c (rpl_forkpty): Fix comment.
4350         * lib/openpty.c (rpl_openpty): Likewise.
4351         Reported by Eric Blake.
4352
4353 2010-03-22  Eric Blake  <eblake@redhat.com>
4354
4355         gethostname: fix build on mingw
4356         * lib/unistd.in.h (includes): Work around fact that mingw
4357         <winsock2.h> re-includes <unistd.h>, by avoiding any
4358         redeclarations if we are being included by <winsock2.h>.
4359         Reported by Matthias Bolte.
4360
4361 2010-03-21  Bruno Haible  <bruno@clisp.org>
4362
4363         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4364         * lib/forkpty.c (forkpty): New replacement function, from glibc with
4365         modifications.
4366         * lib/pty.in.h (forkpty): Update declaration. Add comments.
4367         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
4368         provide the replacement.
4369         * modules/forkpty (Depends-on): Add openpty, login_tty.
4370         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
4371         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
4372         * doc/glibc-functions/forkpty.texi: More supported platforms.
4373         * config/srclist.txt: Add forkpty.c (commented).
4374
4375 2010-03-21  Bruno Haible  <bruno@clisp.org>
4376
4377         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4378         (Makefile.am): Verify that PTY_LIB is defined.
4379
4380         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
4381
4382 2010-03-21  Bruno Haible  <bruno@clisp.org>
4383
4384         Tests for module 'login_tty'.
4385         * modules/login_tty-tests: New file.
4386         * tests/test-login_tty.c: New file.
4387
4388         New module 'login_tty'.
4389         * lib/login_tty.c: New file.
4390         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
4391         * modules/login_tty: New file.
4392         * doc/glibc-functions/login_tty.texi: Mention the new module.
4393
4394 2010-03-21  Bruno Haible  <bruno@clisp.org>
4395
4396         login_tty: Documentation.
4397         * doc/glibc-functions/login_tty.texi: New file.
4398         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
4399
4400 2010-03-21  Bruno Haible  <bruno@clisp.org>
4401
4402         pty: Consistent macro naming.
4403         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
4404         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
4405         * modules/pty (configure.ac): Update.
4406
4407 2010-03-21  Bruno Haible  <bruno@clisp.org>
4408
4409         Tests for openpty: Make stricter.
4410         * tests/test-openpty.c (main): Add test of canonical processing and
4411         erase.
4412         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
4413
4414         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4415         * lib/openpty.c (openpty): New replacement function.
4416         * lib/pty.in.h: Include <termios.h>.
4417         (openpty): Update declaration. Add comments.
4418         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
4419         is not declared, arrange to provide the replacement. Check for _getpty
4420         and posix_openpt.
4421         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
4422         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
4423         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
4424         * modules/pty-tests (test_pty_c___LDADD): New variable.
4425         * doc/glibc-functions/openpty.texi: More supported platforms.
4426
4427 2010-03-21  Bruno Haible  <bruno@clisp.org>
4428
4429         setenv: Tweaks.
4430         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
4431         the test program.
4432         * doc/posix-functions/setenv.texi: Update platforms list.
4433
4434 2010-03-21  Bruno Haible  <bruno@clisp.org>
4435
4436         New module 'unlockpt'.
4437         * lib/unlockpt.c: New file, from glibc with modifications.
4438         * m4/unlockpt.m4: New file.
4439         * modules/unlockpt: New file.
4440         * lib/stdlib.in.h (unlockpt): New declaration.
4441         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
4442         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
4443         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
4444         HAVE_UNLOCKPT.
4445         * doc/posix-functions/unlockpt.texi: Mention the new module.
4446         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
4447         * config/srclist.txt: Add unlockpt.c (commented).
4448
4449 2010-03-21  Jim Meyering  <meyering@redhat.com>
4450
4451         maint.mk: prohibit inclusion of "intprops.h" without use
4452         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
4453
4454 2010-03-21  Bruno Haible  <bruno@clisp.org>
4455
4456         New module 'grantpt'.
4457         * lib/grantpt.c: New file, from glibc with modifications.
4458         * m4/grantpt.m4: New file.
4459         * modules/grantpt: New file.
4460         * lib/stdlib.in.h (grantpt): New declaration.
4461         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
4462         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
4463         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
4464         HAVE_GRANTPT.
4465         * doc/posix-functions/grantpt.texi: Mention the new module.
4466         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
4467         * config/srclist.txt: Add grantpt.c (commented).
4468
4469 2010-03-21  Bruno Haible  <bruno@clisp.org>
4470
4471         New module 'pt_chown'.
4472         * lib/pt_chown.c: New file, from glibc with modifications.
4473         * lib/pty-private.h: New file, from glibc with modifications.
4474         * modules/pt_chown: New file.
4475         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
4476
4477 2010-03-21  Bruno Haible  <bruno@clisp.org>
4478
4479         Tests for module 'ptsname'.
4480         * modules/ptsname-tests: New file.
4481         * tests/test-ptsname.c: New file.
4482
4483         New module 'ptsname'.
4484         * lib/ptsname.c: New file, from glibc with modifications.
4485         * m4/ptsname.m4: New file.
4486         * modules/ptsname: New file.
4487         * lib/stdlib.in.h (ptsname): New declaration.
4488         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
4489         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
4490         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
4491         HAVE_PTSNAME.
4492         * doc/posix-functions/ptsname.texi: Mention the new module.
4493         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
4494         * config/srclist.txt: Add ptsname.c (commented).
4495
4496 2010-03-21  Bruno Haible  <bruno@clisp.org>
4497
4498         Tests for module 'ttyname_r'.
4499         * modules/ttyname_r-tests: New file.
4500         * tests/test-ttyname_r.c: New file.
4501
4502         New module 'ttyname_r'.
4503         * lib/ttyname_r.c: New file.
4504         * m4/ttyname_r.m4: New file.
4505         * modules/ttyname_r: New file.
4506         * lib/unistd.in.h (ttyname_r): New declaration.
4507         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
4508         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
4509         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
4510         HAVE_TTYNAME_R.
4511         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
4512         * doc/posix-functions/ttyname_r.texi: Mention the new module.
4513
4514 2010-03-20  Bruno Haible  <bruno@clisp.org>
4515
4516         signal: Undefine macro definitions in C++ mode.
4517         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
4518         sigfillset): Undefine macro definitions from the system header in C++
4519         mode.
4520         Reported by John W. Eaton <jwe@gnu.org>.
4521
4522 2010-03-20  Bruno Haible  <bruno@clisp.org>
4523
4524         Ensure no #include statements inside extern "C" { ... }.
4525         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
4526         contain #include statements.
4527         * lib/time.in.h: Likewise.
4528
4529 2010-03-20  Bruno Haible  <bruno@clisp.org>
4530
4531         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4532         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4533         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4534         Reported by John W. Eaton <jwe@gnu.org>.
4535
4536 2010-03-20  Bruno Haible  <bruno@clisp.org>
4537
4538         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4539         Reported by Jim Meyering.
4540
4541 2010-03-20  Bruno Haible  <bruno@clisp.org>
4542
4543         pipe: Set errno upon failure.
4544         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4545         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4546         errno value in error message.
4547
4548 2010-03-20  Bruno Haible  <bruno@clisp.org>
4549             Jim Meyering  <meyering@redhat.com>
4550
4551         lchown: Avoid "unused variable" warning.
4552         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4553
4554 2010-03-20  Bruno Haible  <bruno@clisp.org>
4555
4556         Work around unlink() bug on MacOS X 10.5.6.
4557         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4558         attempting to unlink a parent directory.
4559         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4560         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4561         activate for the replacement function.
4562         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4563
4564 2010-03-20  Bruno Haible  <bruno@clisp.org>
4565
4566         Fix link errors on Solaris 8.
4567         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4568         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4569
4570 2010-03-19  Jim Meyering  <meyering@redhat.com>
4571
4572         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4573         The _LIBC implementation of build_range_exp correctly honors the
4574         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4575         However, the non-_LIBC implementation would ignore that syntax-bit
4576         flag and return REG_ERANGE unconditionally.
4577         This change makes it honor that flag.
4578         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4579         Make two pointer parameters "const".
4580         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4581         (parse_bracket_exp): Update caller.
4582
4583         regex.m4: correct the reversed range endpoint ([b-a]) test
4584         * m4/regex.m4: When requiring that [b-a] evoke failure,
4585         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4586         test pass once again for x86-based systems.
4587
4588 2010-03-19  Bruno Haible  <bruno@clisp.org>
4589
4590         scandir: Fix link error on Solaris 8.
4591         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4592         macros.
4593
4594 2010-03-19  Bruno Haible  <bruno@clisp.org>
4595
4596         getusershell: Fix documentation.
4597         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4598         module.
4599         * doc/glibc-functions/setusershell.texi: Likewise.
4600
4601         getusershell: Provide declaration, missing on Solaris 9.
4602         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4603         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4604         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4605         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4607         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4608         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4609         HAVE_GETUSERSHELL.
4610         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4611
4612 2010-03-19  Bruno Haible  <bruno@clisp.org>
4613
4614         wctype: Provide iswblank function.
4615         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4616         exists and is fine.
4617         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4618         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4619         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4620         * doc/posix-functions/iswblank.texi: Update.
4621
4622 2010-03-19  Bruno Haible  <bruno@clisp.org>
4623
4624         Tests of module 'pty' in C++ mode.
4625         * modules/pty-tests: New file.
4626         * tests/test-pty-c++.cc: New file.
4627         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4628
4629 2010-03-19  Eric Blake  <eblake@redhat.com>
4630
4631         logb: fix documentation
4632         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4633         1.5 declaration bug.
4634
4635         forkpty, openpty: prefer glibc's const-safe prototype
4636         * lib/forkpty.c (rpl_forkpty): New file.
4637         * lib/openpty.c (rpl_openpty): Likewise.
4638         * modules/forkpty (Files): Distribute it.
4639         * modules/openpty (Files): Likewise.
4640         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4641         check...
4642         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4643         replacement for for non-const BSD signature.
4644         * modules/pty (Makefile.am): Substitute witnesses.
4645         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4646         * tests/test-forkpty.c: Update signature check.
4647         * tests/test-openpty.c: Likewise.
4648         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4649         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4650
4651         forkpty, openpty: split functions into new modules
4652         * modules/pty (Makefile.am): Substitute new witnesses.
4653         (Libraries): Move library detection...
4654         * modules/forkpty: ...into new module.
4655         * modules/openpty: Another new module.
4656         * modules/pty-tests: Rename and split...
4657         * modules/forkpty-tests: ...to this...
4658         * modules/openpty-tests: ...and this.
4659         * tests/test-pty.c: Rename and split...
4660         * tests/test-forkpty.c: ...to this...
4661         * tests/test-openpty.c: ...and this.
4662         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4663         (gl_PTY): Split library searching...
4664         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4665         (gl_FORKPTY, gl_OPENPTY): New macros.
4666         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4667         * NEWS: Mention the split.
4668         * MODULES.html.sh (Misc): Document the modules.
4669         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4670         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4671
4672         pty: improve replacement header
4673         * lib/pty.in.h: New file.
4674         * modules/pty (Files): Ship it.
4675         (Makefile.am): Always build replacement.
4676         * m4/pty.m4: Rename...
4677         * m4/pty_h.m4: ...to this.
4678         (gl_PTY): Modernize setting of witness macros; update check of
4679         forkpty to take proper advantage of cache.
4680         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4681
4682         getopt: avoid compiler warning
4683         * lib/getopt.c (attribute_hidden): Remove unused macro.
4684
4685 2010-03-18  Bruno Haible  <bruno@clisp.org>
4686
4687         Fix link errors on Solaris 8.
4688         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4689         * modules/search-tests (test_search_c___LDADD): Likewise.
4690         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4691         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4692         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4693         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4694         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4695         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4696         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4697
4698 2010-03-18  Bruno Haible  <bruno@clisp.org>
4699
4700         Fix bug introduced on 2010-03-14.
4701         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4702         (gl_SPAWN_H): Require it.
4703         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4704         Reported by Simon Josefsson.
4705
4706 2010-03-18  Bruno Haible  <bruno@clisp.org>
4707
4708         Fix typo introduced on 2009-12-31.
4709         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4710         posix_spawn_file_actions_adddup2.
4711
4712 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4713         and Eric Blake  <eblake@redhat.com>
4714
4715         test-vc-list-files-git: make more robust
4716         * tests/test-vc-list-files-git.sh: Unset problematic environment
4717         variables.  Chain commands together.
4718
4719 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
4720
4721         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
4722         `AC_CHECK_DECL' invocation.
4723
4724 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
4725
4726         * lib/inttostr.c (inttostr): Make sure the invocation of verify
4727         appears before executable statements. Suggested by Petr Sumbera
4728         <Petr.Sumbera@Sun.COM>.
4729
4730 2010-03-14  Bruno Haible  <bruno@clisp.org>
4731
4732         * tests/test-flock.c (test_exclusive): Comment out a test that causes
4733         portability problems. Instead use a simpler test.
4734         (main): Check that invalid arguments are rejected only on Linux.
4735
4736 2010-03-14  Bruno Haible  <bruno@clisp.org>
4737
4738         Fix bug introduced on 2009-12-31.
4739         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4740         gl_PREREQ_SYS_H_WINSOCK2 always.
4741         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
4742         SYS_SOCKET_H variable.
4743         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
4744         Update comments.
4745         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
4746         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4747         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4748         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4749         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4750
4751 2010-03-14  Bruno Haible  <bruno@clisp.org>
4752
4753         Fix values returned by sinl, cosl.
4754         * lib/trigl.h: Add specification comments.
4755         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
4756         that combines the values from the precomputed table with the values of
4757         the Chebyshev polynomials.
4758
4759 2010-03-14  Bruno Haible  <bruno@clisp.org>
4760
4761         Fix compilation error when modules 'posix_spawn[p]' are not used.
4762         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
4763         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
4764
4765 2010-03-14  Bruno Haible  <bruno@clisp.org>
4766
4767         Fix compilation error on mingw when module 'time_r' is not used.
4768         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
4769         is 1.
4770         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
4771         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4772         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
4773         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
4774
4775 2010-03-14  Bruno Haible  <bruno@clisp.org>
4776
4777         Fix compilation error with Sun C.
4778         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
4779         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
4780         instead of GCC specific ULONG_LONG_MAX.
4781         * lib/xstrtoll.c: Likewise.
4782         * lib/xstrtoull.c: Likewise.
4783
4784 2010-03-13  Bruno Haible  <bruno@clisp.org>
4785
4786         Allow the user to disable C++ code and tests.
4787         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
4788         (gl_PROG_ANSI_CXX): Require it.
4789
4790 2010-03-13  Bruno Haible  <bruno@clisp.org>
4791
4792         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4793         cases.
4794
4795 2010-03-13  Bruno Haible  <bruno@clisp.org>
4796
4797         Test that gnulib does not break the standard C++ headers.
4798         * tests/test-locale-c++2.cc: New file.
4799         * modules/locale-tests (Files): Add it.
4800         (Makefile.am): Compile it for test-locale-c++.
4801         * tests/test-math-c++2.cc: New file.
4802         * modules/math-tests (Files): Add it.
4803         (Makefile.am): Compile it for test-math-c++.
4804         * tests/test-signal-c++2.cc: New file.
4805         * modules/signal-tests (Files): Add it.
4806         (Makefile.am): Compile it for test-signal-c++.
4807         * tests/test-stdio-c++2.cc: New file.
4808         * modules/stdio-tests (Files): Add it.
4809         (Makefile.am): Compile it for test-stdio-c++.
4810         * tests/test-stdlib-c++2.cc: New file.
4811         * modules/stdlib-tests (Files): Add it.
4812         (Makefile.am): Compile it for test-stdlib-c++.
4813         * tests/test-string-c++2.cc: New file.
4814         * modules/string-tests (Files): Add it.
4815         (Makefile.am): Compile it for test-string-c++.
4816         * tests/test-time-c++2.cc: New file.
4817         * modules/time-tests (Files): Add it.
4818         (Makefile.am): Compile it for test-time-c++.
4819         Reported by John W. Eaton <jwe@gnu.org>.
4820
4821 2010-03-13  Bruno Haible  <bruno@clisp.org>
4822
4823         * gnulib-tool (func_usage): Clarify which options are available for
4824         --create-testdir and --create-megatestdir.
4825
4826 2010-03-13  Bruno Haible  <bruno@clisp.org>
4827
4828         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
4829         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
4830         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
4831         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4832         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
4833         when appropriate.
4834         Reported by Jim Meyering.
4835
4836 2010-03-12  Simon Josefsson  <simon@josefsson.org>
4837
4838         * gnulib-tool (func_import): Explain origin of code.
4839
4840 2010-03-12  Bruno Haible  <bruno@clisp.org>
4841
4842         Fix problem with automake's definition of CXXLINK.
4843         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
4844         Reported by Simon Josefsson and Ludovic Courtès.
4845
4846 2010-03-12  Bruno Haible  <bruno@clisp.org>
4847
4848         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
4849         stable releases.
4850
4851 2010-03-11  Bruno Haible  <bruno@clisp.org>
4852
4853         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
4854         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
4855         whether the system provides one variant or multiple variants of the
4856         function.
4857         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
4858         C++ compilers.
4859         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
4860         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
4861         Reported by Jim Meyering.
4862
4863 2010-03-09  Simon Josefsson  <simon@josefsson.org>
4864
4865         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
4866
4867 2010-03-08  Bruno Haible  <bruno@clisp.org>
4868
4869         gnulib-tool: Add support for --libtool in --create-testdir.
4870         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
4871         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
4872
4873 2010-03-08  Eric Blake  <eblake@redhat.com>
4874
4875         gnulib-tool.texi: mention possibility of git submodule
4876         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
4877         submodules.
4878         * doc/.gitignore: Ignore another generated file.
4879
4880 2010-03-08  Karl Berry  <karl@gnu.org>
4881
4882         * doc/gnulib-tool.texi (VCS Issues): Mention third option
4883         of committing gnulib files while skipping others.
4884
4885 2010-03-07  Bruno Haible  <bruno@clisp.org>
4886
4887         Tests of module 'wctype' in C++ mode.
4888         * tests/test-wctype-c++.cc: New file.
4889         * modules/wctype-tests (Files): Add it and tests/signature.h.
4890         (Depends-on): Add ansi-c++-opt.
4891         (Makefile.am): Arrange to compile and run test-wctype-c++.
4892
4893         Tests of module 'wchar' in C++ mode.
4894         * tests/test-wchar-c++.cc: New file.
4895         * modules/wchar-tests (Files): Add it and tests/signature.h.
4896         (Depends-on): Add ansi-c++-opt.
4897         (Makefile.am): Arrange to compile and run test-wchar-c++.
4898         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
4899         gl_MODULE_INDICATOR.
4900
4901         Tests of module 'unistd' in C++ mode.
4902         * tests/test-unistd-c++.cc: New file.
4903         * modules/unistd-tests (Files): Add it and tests/signature.h.
4904         (Depends-on): Add ansi-c++-opt.
4905         (Makefile.am): Arrange to compile and run test-unistd-c++.
4906         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
4907         gl_MODULE_INDICATOR.
4908
4909         Tests of module 'time' in C++ mode.
4910         * tests/test-time-c++.cc: New file.
4911         * modules/time-tests (Files): Add it and tests/signature.h.
4912         (Depends-on): Add ansi-c++-opt.
4913         (Makefile.am): Arrange to compile and run test-time-c++.
4914         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4915
4916         Tests of module 'sys_time' in C++ mode.
4917         * tests/test-sys_time-c++.cc: New file.
4918         * modules/sys_time-tests (Files): Add it and tests/signature.h.
4919         (Depends-on): Add ansi-c++-opt.
4920         (Makefile.am): Arrange to compile and run test-sys_time-c++.
4921         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
4922         gl_MODULE_INDICATOR.
4923
4924         Tests of module 'sys_stat' in C++ mode.
4925         * tests/test-sys_stat-c++.cc: New file.
4926         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
4927         (Depends-on): Add ansi-c++-opt.
4928         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
4929         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
4930         gl_MODULE_INDICATOR.
4931
4932         Tests of module 'sys_socket' in C++ mode.
4933         * tests/test-sys_socket-c++.cc: New file.
4934         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
4935         (Depends-on): Add ansi-c++-opt.
4936         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
4937         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
4938         gl_MODULE_INDICATOR.
4939
4940         Tests of module 'sys_select' in C++ mode.
4941         * tests/test-sys_select-c++.cc: New file.
4942         * modules/sys_select-tests (Files): Add it and tests/signature.h.
4943         (Depends-on): Add ansi-c++-opt.
4944         (Makefile.am): Arrange to compile and run test-sys_select-c++.
4945         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
4946         gl_MODULE_INDICATOR.
4947
4948         Tests of module 'sys_ioctl' in C++ mode.
4949         * tests/test-sys_ioctl-c++.cc: New file.
4950         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
4951         (Depends-on): Add ansi-c++-opt.
4952         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
4953         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
4954         gl_MODULE_INDICATOR.
4955
4956         Tests of module 'string' in C++ mode.
4957         * tests/test-string-c++.cc: New file.
4958         * modules/string-tests (Files): Add it and tests/signature.h.
4959         (Depends-on): Add ansi-c++-opt.
4960         (Makefile.am): Arrange to compile and run test-string-c++.
4961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
4962         gl_MODULE_INDICATOR.
4963
4964         Tests of module 'stdlib' in C++ mode.
4965         * tests/test-stdlib-c++.cc: New file.
4966         * modules/stdlib-tests (Files): Add it and tests/signature.h.
4967         (Depends-on): Add ansi-c++-opt.
4968         (Makefile.am): Arrange to compile and run test-stdlib-c++.
4969         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
4970         gl_MODULE_INDICATOR.
4971
4972         Tests of module 'stdio' in C++ mode.
4973         * tests/test-stdio-c++.cc: New file.
4974         * modules/stdio-tests (Files): Add it and tests/signature.h.
4975         (Depends-on): Add ansi-c++-opt.
4976         (Makefile.am): Arrange to compile and run test-stdio-c++.
4977         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
4978         gl_MODULE_INDICATOR.
4979
4980         Tests of module 'spawn' in C++ mode.
4981         * tests/test-spawn-c++.cc: New file.
4982         * modules/spawn-tests (Files): Add it and tests/signature.h.
4983         (Depends-on): Add ansi-c++-opt.
4984         (Makefile.am): Arrange to compile and run test-spawn-c++.
4985         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
4986         gl_MODULE_INDICATOR.
4987
4988         Tests of module 'signal' in C++ mode.
4989         * tests/test-signal-c++.cc: New file.
4990         * modules/signal-tests (Files): Add it and tests/signature.h.
4991         (Depends-on): Add ansi-c++-opt.
4992         (Makefile.am): Arrange to compile and run test-signal-c++.
4993         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
4994         gl_MODULE_INDICATOR.
4995
4996         Tests of module 'search' in C++ mode.
4997         * tests/test-search-c++.cc: New file.
4998         * modules/search-tests (Files): Add it and tests/signature.h.
4999         (Depends-on): Add ansi-c++-opt.
5000         (Makefile.am): Arrange to compile and run test-search-c++.
5001         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
5002         gl_MODULE_INDICATOR.
5003
5004         Tests of module 'math' in C++ mode.
5005         * tests/test-math-c++.cc: New file.
5006         * modules/math-tests (Files): Add it and tests/signature.h.
5007         (Depends-on): Add ansi-c++-opt.
5008         (Makefile.am): Arrange to compile and run test-math-c++.
5009         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5010
5011         Tests of module 'locale' in C++ mode.
5012         * tests/test-locale-c++.cc: New file.
5013         * modules/locale-tests (Files): Add it and tests/signature.h.
5014         (Depends-on): Add ansi-c++-opt.
5015         (Makefile.am): Arrange to compile and run test-locale-c++.
5016         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
5017         gl_MODULE_INDICATOR.
5018
5019         Tests of module 'langinfo' in C++ mode.
5020         * tests/test-langinfo-c++.cc: New file.
5021         * modules/langinfo-tests (Files): Add it and tests/signature.h.
5022         (Depends-on): Add ansi-c++-opt.
5023         (Makefile.am): Arrange to compile and run test-langinfo-c++.
5024         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
5025         gl_MODULE_INDICATOR.
5026
5027         Tests of module 'iconv-h' in C++ mode.
5028         * tests/test-iconv-h-c++.cc: New file.
5029         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
5030         (Depends-on): Add ansi-c++-opt.
5031         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
5032
5033         Tests of module 'glob' in C++ mode.
5034         * tests/test-glob-c++.cc: New file.
5035         * modules/glob-tests (Files): Add it.
5036         (Depends-on): Add ansi-c++-opt.
5037         (Makefile.am): Arrange to compile and run test-glob-c++.
5038
5039         Tests of module 'fcntl-h' in C++ mode.
5040         * tests/test-fcntl-h-c++.cc: New file.
5041         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
5042         (Depends-on): Add ansi-c++-opt.
5043         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
5044         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
5045         gl_MODULE_INDICATOR.
5046
5047         Tests of module 'dirent' in C++ mode.
5048         * tests/test-dirent-c++.cc: New file.
5049         * modules/dirent-tests (Files): Add it and tests/signature.h.
5050         (Depends-on): Add ansi-c++-opt.
5051         (Makefile.am): Arrange to compile and run test-dirent-c++.
5052         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5053         gl_MODULE_INDICATOR.
5054
5055         New module 'ansi-c++-opt'.
5056         * modules/ansi-c++-opt: New file.
5057         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
5058
5059         Document C++ namespace mode.
5060         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
5061
5062         wctype: Avoid #define replacements in C++ mode.
5063         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
5064         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
5065         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
5066         In C++, define a namespaced alias symbol.
5067         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
5068         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
5069         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
5070         rule.
5071
5072         wchar: Avoid #define replacements in C++ mode.
5073         * lib/wchar.in.h: Include c++defs.h.
5074         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
5075         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
5076         symbol.
5077         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
5078         * modules/wchar (Depends-on): Add c++defs.
5079         (Makefile.am): Update wchar.h rule.
5080
5081         unistd: Avoid #define replacements in C++ mode.
5082         * lib/unistd.in.h: Include c++defs.h.
5083         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
5084         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
5085         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
5086         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
5087         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
5088         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
5089         symbol.
5090         (environ): Update.
5091         * modules/unistd (Depends-on): Add c++defs.
5092         (Makefile.am): Update unistd.h rule.
5093
5094         time: Avoid #define replacements in C++ mode.
5095         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
5096         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
5097         define a namespaced alias symbol.
5098         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
5099         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
5100         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
5101         * modules/time (Depends-on): Add c++defs, warn-on-use.
5102         (Makefile.am): Update time.h rule.
5103         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5104         * modules/nanosleep (configure.ac): Likewise.
5105         * modules/strptime (configure.ac): Likewise.
5106         * modules/timegm (configure.ac): Likewise.
5107
5108         sys_time: Avoid #define replacements in C++ mode.
5109         * lib/sys_time.in.h: Include c++defs.h.
5110         (gettimeofday): In C++, define a namespaced alias symbol.
5111         * modules/sys_time (Depends-on): Add c++defs.
5112         (Makefile.am): Update sys/time.h rule.
5113
5114         sys_stat: Avoid #define replacements in C++ mode.
5115         * lib/sys_stat.in.h: Include c++defs.h.
5116         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
5117         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
5118         namespaced alias symbol.
5119         In C++, define a namespaced alias symbol.
5120         * modules/sys_stat (Depends-on): Add c++defs.
5121         (Makefile.am): Update sys/stat.h rule.
5122
5123         sys_socket: Avoid #define replacements in C++ mode.
5124         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
5125         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
5126         definitions also when the system has a <sys/socket.h>.
5127         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5128         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
5129         In C++, define a namespaced alias symbol.
5130         * modules/sys_socket (Depends-on): Add c++defs.
5131         (Makefile.am): Update sys/socket.h rule.
5132
5133         sys_select: Avoid #define replacements in C++ mode.
5134         * lib/sys_select.in.h: Include c++defs.h. Enable the function
5135         definitions also when the system has a <sys/select.h>.
5136         (select): In C++, define a namespaced alias symbol.
5137         * modules/sys_select (Depends-on): Add c++defs.
5138         (Makefile.am): Update sys/select.h rule.
5139
5140         sys_ioctl: Avoid #define replacements in C++ mode.
5141         * lib/sys_ioctl.in.h: Include c++defs.h.
5142         (ioctl): In C++, define a namespaced alias symbol.
5143         * modules/sys_ioctl (Depends-on): Add c++defs.
5144         (Makefile.am): Update sys/ioctl.h rule.
5145
5146         string: Avoid #define replacements in C++ mode.
5147         * lib/string.in.h: Include c++defs.h.
5148         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
5149         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5150         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5151         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
5152         strsignal, strverscmp): In C++, define a namespaced alias symbol.
5153         * modules/string (Depends-on): Add c++defs.
5154         (Makefile.am): Update string.h rule.
5155
5156         stdlib: Avoid #define replacements in C++ mode.
5157         * lib/stdlib.in.h: Include c++defs.h.
5158         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
5159         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
5160         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
5161         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
5162         symbol.
5163         * modules/stdlib (Depends-on): Add c++defs.
5164         (Makefile.am): Update stdlib.h rule.
5165
5166         stdio: Avoid #define replacements in C++ mode.
5167         * lib/stdio.in.h: Include c++defs.h.
5168         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
5169         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
5170         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
5171         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
5172         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
5173         namespaced alias symbol.
5174         * modules/stdio (Depends-on): Add c++defs.
5175         (Makefile.am): Update stdio.h rule.
5176
5177         spawn: Avoid #define replacements in C++ mode.
5178         * lib/spawn.in.h: Include c++defs.h.
5179         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5180         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5181         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5182         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5183         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5184         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5185         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5186         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5187         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5188         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5189         In C++, define a namespaced alias symbol.
5190         * modules/spawn (Depends-on): Add c++defs.
5191         (Makefile.am): Update spawn.h rule.
5192
5193         signal: Avoid #define replacements in C++ mode.
5194         * lib/signal.in.h: Include c++defs.h.
5195         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5196         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
5197         namespaced alias symbol.
5198         * modules/signal (Depends-on): Add c++defs.
5199         (Makefile.am): Update signal.h rule.
5200
5201         search: Avoid #define replacements in C++ mode.
5202         * lib/search.in.h: Include c++defs.h.
5203         (_gl_search_compar_fn, _gl_search_action_fn): New types.
5204         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
5205         symbol.
5206         * modules/search (Depends-on): Add c++defs.
5207         (Makefile.am): Update search.h rule.
5208
5209         math: Avoid #define replacements in C++ mode.
5210         * lib/math.in.h: Include c++defs.h.
5211         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
5212         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
5213         trunc, truncl): In C++, define a namespaced alias symbol.
5214         * modules/math (Depends-on): Add c++defs.
5215         (Makefile.am): Update math.h rule.
5216
5217         locale: Avoid #define replacements in C++ mode.
5218         * lib/locale.in.h: Include c++defs.h.
5219         (duplocale): In C++, define a namespaced alias symbol.
5220         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
5221         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
5222         * modules/locale (Depends-on): Add c++defs.
5223         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
5224
5225         langinfo: Avoid #define replacements in C++ mode.
5226         * lib/langinfo.in.h: Include c++defs.h.
5227         (nl_langinfo): In C++, define a namespaced alias symbol.
5228         * modules/langinfo (Depends-on): Add c++defs.
5229         (Makefile.am): Update langinfo.h rule.
5230
5231         iconv-h: Avoid #define replacements in C++ mode.
5232         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
5233         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
5234         symbol.
5235         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
5236         whenever iconv is present.
5237         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
5238         (Makefile.am): Update iconv.h rule.
5239
5240         glob: Avoid #define replacements in C++ mode.
5241         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
5242         (_gl_glob_errfunc_fn): New type.
5243         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
5244         symbol.
5245         * modules/glob (Depends-on): Add c++defs, warn-on-use.
5246         (Makefile.am): Update glob.h rule.
5247
5248         fcntl-h: Avoid #define replacements in C++ mode.
5249         * lib/fcntl.in.h: Include c++defs.h.
5250         (fcntl, open, openat): In C++, define a namespaced alias symbol.
5251         * modules/fcntl-h (Depends-on): Add c++defs.
5252         (Makefile.am): Update fcntl.h rule.
5253
5254         dirent: Avoid #define replacements in C++ mode.
5255         * lib/dirent.in.h: Include c++defs.h.
5256         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
5257         namespaced alias symbol.
5258         (dirfd): Update declaration.
5259         * modules/dirent (Depends-on): Add c++defs.
5260         (Makefile.am): Update dirent.h rule.
5261
5262         ctype: Make it usable in C++ code.
5263         * lib/ctype.in.h: Include c++defs.h.
5264         (isblank): Declare as extern "C".
5265         * modules/ctype (Depends-on): Add c++defs.
5266         (Makefile.am): Update ctype.h rule.
5267
5268         New module 'c++defs'.
5269         * modules/c++defs: New file.
5270         * build-aux/c++defs.h: New file.
5271         Reported by John W. Eaton <jwe@gnu.org>.
5272
5273 2010-03-07  Bruno Haible  <bruno@clisp.org>
5274
5275         logb: Provide missing declaration for Cygwin.
5276         * lib/math.in.h (logb): New declaration.
5277         * m4/logb.m4: New file.
5278         * modules/logb (Files): Add m4/logb.m4.
5279         (Depends-on): Add math.
5280         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
5281         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
5282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
5283         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
5284         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
5285
5286 2010-03-07  Bruno Haible  <bruno@clisp.org>
5287
5288         Fix test-cond link error.
5289         * tests/test-cond.c: Include <stdio.h>.
5290
5291 2010-03-07  Bruno Haible  <bruno@clisp.org>
5292
5293         Fix test-dirent-safer link error.
5294         * modules/dirent-safer-tests (Makefile.am): Define
5295         test_dirent_safer_LDADD.
5296
5297 2010-03-07  Bruno Haible  <bruno@clisp.org>
5298
5299         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
5300         among default module list.
5301
5302 2010-03-07  Bruno Haible  <bruno@clisp.org>
5303
5304         Fix link error on platforms with GNU libiconv.
5305         * modules/unistr/u8-strcoll-tests (Makefile): Define
5306         test_u8_strcoll_LDADD.
5307         * modules/unistr/u16-strcoll-tests (Makefile): Define
5308         test_u16_strcoll_LDADD.
5309         * modules/unistr/u32-strcoll-tests (Makefile): Define
5310         test_u32_strcoll_LDADD.
5311
5312 2010-03-07  Bruno Haible  <bruno@clisp.org>
5313
5314         Use POSIX declarations for socket functions.
5315         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
5316         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
5317         rpl_sendto): Change declaration to match POSIX.
5318         * lib/connect.c (rpl_connect): Likewise.
5319         * lib/accept.c (rpl_accept): Likewise.
5320         * lib/bind.c (rpl_bind): Likewise.
5321         * lib/getpeername.c (rpl_getpeername): Likewise.
5322         * lib/getsockname.c (rpl_getsockname): Likewise.
5323         * lib/recv.c (rpl_recv): Likewise.
5324         * lib/send.c (rpl_send): Likewise.
5325         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5326         * lib/sendto.c (rpl_sendto): Likewise.
5327
5328 2010-03-06  Bruno Haible  <bruno@clisp.org>
5329
5330         Clarify access, euidaccess, faccessat.
5331         * doc/posix-functions/faccessat.texi: Mention security problem under
5332         "Other problems", not "Portability problems".
5333         * doc/posix-functions/access.texi: Likewise. Mention a related security
5334         problem.
5335         * doc/glibc-functions/euidaccess.texi: Mention security problems.
5336         * lib/euidaccess.c: Add comments about platforms.
5337         * lib/unistd.in.h (access, euidaccess): Add warnings.
5338
5339 2010-03-07  Bruno Haible  <bruno@clisp.org>
5340
5341         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
5342         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
5343         (POSIX_SPAWN_SETSCHEDULER): Likewise.
5344         (POSIX_SPAWN_USEVFORK): Define in a way that works when
5345         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5346         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
5347         declare when POSIX_SPAWN_SETSCHEDULER is zero.
5348         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
5349         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
5350         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
5351         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
5352         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
5353         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
5354         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
5355         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
5356         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
5357         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
5358         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
5359         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
5360         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
5361         Likewise.
5362         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
5363         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
5364         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
5365         Likewise.
5366         * tests/test-spawn.c (main): Make it work when
5367         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5368
5369 2010-03-07  Bruno Haible  <bruno@clisp.org>
5370
5371         Fix incorrect Makefile.am generation in German locale.
5372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5373         Execute sed command with character range in C locale.
5374
5375 2010-03-06  Bruno Haible  <bruno@clisp.org>
5376
5377         Tests for module 'iconv-h'.
5378         * modules/iconv-h-tests: New file.
5379         * tests/test-iconv-h.c: New file.
5380
5381         New module 'iconv-h'.
5382         * modules/iconv-h: New file.
5383         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
5384         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
5385         (configure.ac): Remove gl_ICONV_H.
5386         (Makefile.am): Remove rule for iconv.h.
5387
5388 2010-03-06  Bruno Haible  <bruno@clisp.org>
5389
5390         More consistent naming of *.m4 files.
5391         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
5392         * modules/wctype (Files): Update.
5393
5394         More consistent naming of *.m4 files.
5395         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
5396         * modules/wchar (Files): Update.
5397
5398 2010-03-06  Jim Meyering  <meyering@redhat.com>
5399
5400         euidaccess: relax license to LGPLv2+
5401         * modules/euidaccess (License): Relax to LGPLv2+.
5402
5403 2010-03-06  Bruno Haible  <bruno@clisp.org>
5404
5405         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
5406         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
5407         (Makefile.am): Augment lib_SOURCES instead.
5408
5409 2010-03-04  Jim Meyering  <meyering@redhat.com>
5410
5411         utime: remove obsolete module
5412         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
5413         unnecessary for years, and has been marked as obsolete for 10 months.
5414         * modules/utime: Remove file.
5415         * lib/utime.c: Remove file.
5416         * m4/utime.m4: Remove file.
5417         * m4/utimes-null.m4: Remove file.
5418         * doc/posix-functions/utime.texi (utime): Remove reference to
5419         the module.  Move the sole "fixed by gnulib" item into the
5420         "problems not fixed by Gnulib" list.
5421         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
5422
5423 2010-03-05  Simon Josefsson  <simon@josefsson.org>
5424
5425         * modules/exit (License): Relax license to LGPLv2+.
5426         (Status): Mark as obsolete.
5427         * NEWS: Mention deprecated 'exit' module.
5428         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
5429         of now obsolete 'exit'.
5430
5431 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5432
5433         fts-lgpl: remove unused module
5434         * modules/fts-lgpl: Remove.
5435         * MODULES.html.sh (func_all_modules): Adjust.
5436         * check-module (find_included_lib_files): Adjust.
5437         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
5438
5439 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
5440
5441         copy-acl: enhance Solaris ACL error handling
5442         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
5443         * lib/set-mode-acl.c (qset_acl): Likewise.
5444
5445 2010-03-02  Bruno Haible  <bruno@clisp.org>
5446
5447         spawn: Don't override the system defined values on FreeBSD 8.
5448         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
5449         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
5450         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
5451         if HAVE_POSIX_SPAWN is 1.
5452         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
5453
5454 2010-03-01  Bruno Haible  <bruno@clisp.org>
5455
5456         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
5457         regarding Automake.
5458
5459 2010-02-25  Bruno Haible  <bruno@clisp.org>
5460
5461         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
5462         * gnulib-tool: Define 'echo' as a function only before the ksh alias
5463         setting, not afterwards.
5464         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5465
5466 2010-02-24  Eric Blake  <eblake@redhat.com>
5467
5468         bootstrap, git-version-gen: use timestamp
5469         * build-aux/git-version-gen (scriptversion): Force UTC.
5470         * build-aux/bootstrap (scriptversion): New variable.
5471
5472         bootstrap: allow older git
5473         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
5474         older than 1.6.4.  Requested by the libvirt project.
5475
5476 2010-02-23  Eric Blake  <eblake@redhat.com>
5477
5478         warn-on-use: work with old autoconf
5479         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
5480         AS_VAR semantics of autoconf 2.60.
5481         Reported by Bruno Haible.
5482
5483         bootstrap: improve some comments
5484         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
5485         clarification comments.
5486
5487         gettimeofday: provide correct function
5488         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
5489         when replacement is declared, otherwise provide gettimeofday.
5490         Reported by Michael Goffioul.
5491
5492 2010-02-23  Jim Meyering  <meyering@redhat.com>
5493
5494         lib-ignore: relax license to "unlimited", not LGPLv2+
5495         * modules/lib-ignore (License): Relax to "unlimited".
5496
5497 2010-02-23  Jim Meyering  <meyering@redhat.com>
5498
5499         lib-ignore: relax license to LGPLv2+
5500         * modules/lib-ignore (License): Relax to LGPLv2+.
5501
5502 2010-02-22  Eric Blake  <eblake@redhat.com>
5503
5504         lseek: avoid bash 3.2 broken pipe bug
5505         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5506         warning from bash 3.2.
5507         Reported by Ben Pfaff, with analysis from Bruno Haible.
5508
5509         bootstrap: support non-FSF copyright holder
5510         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
5511         bootstrap.conf override of COPYRIGHT_HOLDER.
5512         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
5513
5514         bootstrap: interoperate with gettext 0.14.1
5515         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
5516
5517         bootstrap: allow for alternate submodule location
5518         * build-aux/bootstrap (gnulib_path): New variable; use instead of
5519         hardcoding submodule location.
5520         (gnulib_mk): Allow direct use of Makefile.am.
5521
5522         bootstrap: use GNULIB_SRCDIR to reduce disk usage
5523         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
5524         rather than reconfiguring where the submodule points.
5525
5526         gettimeofday: restore support for platforms that lack function
5527         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
5528         replacement if function is missing.
5529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
5530         * modules/sys_time (Makefile.am): Substitute it.
5531         * lib/sys_time.in.h (gettimeofday): Check it.
5532         Reported by Michael Goffioul.
5533
5534 2010-02-21  Bruno Haible  <bruno@clisp.org>
5535
5536         * lib/stdio.in.h (obstack_printf): Fix typo.
5537
5538 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5539
5540         vc-list-files: use bzr ls's -R option
5541         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5542         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5543
5544 2010-02-21  Jim Meyering  <meyering@redhat.com>
5545
5546         init.sh: fix EXEEXT shims to work also for names like test-prog
5547         * tests/init.sh: Re-exec a better shell, when needed.
5548         If the current shell lacks support for posix $(...), an init.sh-using
5549         test will now try to find a shell that supports that.  If EXEEXT is
5550         nonempty, we also require support for hyphen-in-alias-name and shell
5551         substitutions like ${var#glob}.  Failure to find such a shell results
5552         in a skipped test.
5553
5554 2010-02-21  Bruno Haible  <bruno@clisp.org>
5555
5556         Really work around around "broken pipe" error message from bash 3.2.
5557         * gnulib-tool (func_reset_sigpipe): Remove function.
5558         (echo): In bash 3.2, define to a function that uses printf.
5559         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5560
5561 2010-02-20  Bruno Haible  <bruno@clisp.org>
5562
5563         Restore support for automake 1.9.6 with autoconf 2.61.
5564         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5565         Reported by James Youngman <jay@gnu.org>.
5566
5567 2010-02-20  Bruno Haible  <bruno@clisp.org>
5568
5569         Improve *printf warning condition.
5570         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5571         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5572         and the function is overridden due to SIGPIPE emulation.
5573
5574 2010-02-20  Bruno Haible  <bruno@clisp.org>
5575
5576         * lib/stdio.in.h: Tweak comments.
5577
5578 2010-02-19  Bruno Haible  <bruno@clisp.org>
5579
5580         Make it easier to find modules. New gnulib-tool option '--find'.
5581         * gnulib-tool: New option --find.
5582         (func_usage): Document it.
5583         (func_sanitize_modulelist): New function, extracted from
5584         func_all_modules.
5585         (func_all_modules): Invoke it.
5586         * doc/gnulib-tool.texi (Which modules?): New node.
5587
5588 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5589
5590         * lib/sys_select.in.h: Provide select replacement even if
5591         sys/select.h exists on a system, for Interix.
5592
5593 2010-02-18  Jim Meyering  <meyering@redhat.com>
5594
5595         init.sh: don't use $(...) just yet
5596         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5597         to accommodate e.g., Solaris' /bin/sh.
5598
5599 2010-02-17  Bruno Haible  <bruno@clisp.org>
5600
5601         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5602         Reported by Ludovic Courtès <ludo@gnu.org>.
5603
5604 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5605
5606         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5607         linking with -lintl.
5608
5609 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5610
5611         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5612         if not provided by the system's netdb.h.  Reported by
5613         ludo@gnu.org (Ludovic Courtès).
5614
5615 2010-02-15  Jim Meyering  <meyering@redhat.com>
5616
5617         init.sh: improve portability and efficiency
5618         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5619         "dummy" in a for loop.
5620         Use '!', not '^' to select the complement of a character set used
5621         in a "case" statement.
5622         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5623         Suggestions from Eric Blake.
5624
5625         init.sh: automatically accommodate programs with the .exe suffix
5626         Automatically arrange for an invocation of "prog" to execute the
5627         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5628         may use the simpler "prog", yet still work when built on a system
5629         that requires specifying the added suffix.
5630         Do this by constructing a function named "prog" that invokes
5631         "prog.exe" for each .exe file in selected directories.
5632         * tests/init.sh (find_exe_basenames_): New function.
5633         (create_exe_shim_functions_): New function.
5634         (path_prepend_): Use it.
5635
5636         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5637         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5638         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5639
5640 2010-02-14  Jim Meyering  <meyering@redhat.com>
5641
5642         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5643         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5644         (sc_prohibit_hash_pjw_without_use): New rule.
5645
5646         maint.mk: allow the default upload destination dir to be overridden
5647         * top/maint.mk (upload_dest_dir_): Define with a default that
5648         preserves the status quo.
5649         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5650         Reported by Peter Simons.
5651
5652         maint.mk: prohibit inclusion of "hash.h" without_use
5653         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5654
5655 2010-02-10  Jim Meyering  <meyering@redhat.com>
5656
5657         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5658         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5659
5660 2010-02-09  Eric Blake  <ebb9@byu.net>
5661         and Bruno Haible  <bruno@clisp.org>
5662
5663         obstack-printf-posix: ensure declaration
5664         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5665         extracted from gl_FUNC_OBSTACK_PRINTF.
5666         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5667         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5668         Likewise.
5669         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5670         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5671         0.
5672
5673 2010-02-08  Bruno Haible  <bruno@clisp.org>
5674
5675         gnulib-tool: Fix typo in 2010-02-07 commit.
5676         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5677         Reported by Eric Blake.
5678
5679 2010-02-07  Bruno Haible  <bruno@clisp.org>
5680
5681         gnulib-tool: Fix up caching patches.
5682         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5683         option --no-cache. Use associative arrays when supported by the shell.
5684         (sed_comments): New variable.
5685         (modcache): Renamed from do_cache.
5686         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5687         abbreviate unnecessarily.
5688         (have_associative): New variable.
5689         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5690         way also for ksh and zsh.
5691         (func_init_sed_convert_to_cache_statements): New function, extracted
5692         from func_cache_lookup_module. Add support for associative arrays.
5693         Don't set the c_MODULE_cached variable here. Ignore all lines before
5694         the first field header. Remove only the final newline, not all trailing
5695         newlines. Support empty fields correctly. Limit the use of 'eval' to
5696         assignments.
5697         (func_get_description, func_get_status, func_get_notice,
5698         func_get_applicability, func_get_filelist, func_get_dependencies,
5699         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5700         func_get_automake_snippet, func_get_include_directive,
5701         func_get_link_directive, func_get_license, func_get_maintainer):
5702         Update documentation. List the unoptimized code first. Add support for
5703         associative arrays. Limit the use of 'eval' to assignments.
5704         (func_get_applicability): Undo stylistic pessimisations.
5705         (func_get_automake_snippet, func_get_include_directive): Reduce code
5706         duplication.
5707         (func_modules_transitive_closure, func_modules_add_dummy,
5708         func_modules_notice, func_modules_to_filelist, func_add_file,
5709         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5710         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5711         func_create_testdir, func_create_megatestdir): Update documentation.
5712
5713 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5714
5715         * gnulib-tool (func_cache_lookup_module): Store the module name
5716         belonging to the cache variable; error out if two different
5717         module names map to the same cache variable name.
5718
5719 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5720
5721         gnulib-tool: Make caching optional.
5722         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5723         Update matching short versions of --no-changelog.
5724         (func_usage): Update.
5725         (sed_extract_cache_prog): Renamed from ...
5726         (sed_extract_prog): ... this; revert to old extraction script.
5727         (func_get_description, func_get_status)
5728         (func_get_notice, func_get_applicability, func_get_filelist)
5729         (func_get_dependencies, func_get_autoconf_early_snippet)
5730         (func_get_autoconf_snippet, func_get_automake_snippet)
5731         (func_get_include_directive, func_get_link_directive)
5732         (func_get_license, func_get_maintainer): If $do_cache is false,
5733         use old, non-caching extraction scripts.
5734         Suggestion by Bruno Haible.
5735
5736 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5737
5738         gnulib-tool: cache module metainformation.
5739         * gnulib-tool (sed_extract_prog): Match newline before each
5740         header, and rewrite header to a shell variable suffix.
5741         (func_cache_var, func_cache_lookup_module): New functions,
5742         to turn a module name into a cache variable prefix, and to
5743         look up and cache module metainformation.
5744         (func_get_description, func_get_status)
5745         (func_get_notice, func_get_applicability, func_get_filelist)
5746         (func_get_dependencies, func_get_autoconf_early_snippet)
5747         (func_get_autoconf_snippet, func_get_automake_snippet)
5748         (func_get_include_directive, func_get_link_directive)
5749         (func_get_license, func_get_maintainer): Use
5750         func_cache_lookup_module.
5751
5752 2010-02-07  Bruno Haible  <bruno@clisp.org>
5753
5754         fnctl: Fix missing dependency.
5755         * modules/fcntl (Depends-on): Add getdtablesize.
5756         Reported by John W. Eaton <jwe@gnu.org>.
5757
5758 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5759
5760         Argp: fix recognition of short alias options.
5761
5762         * lib/argp-parse.c (convert_options): Fix improper use of
5763         `|' between character values.
5764         * tests/test-argp.c (group1_option): New alias option
5765         --read (-r).
5766         (group1_parser): Special handling for 'r'.
5767         (test15): New test case.
5768         (test_fun): Add test15.
5769         * tests/test-argp-2.sh: Update expected --help and --usage
5770         outputs.
5771
5772 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5773
5774         * tests/test-argp.c: Fix indentation.
5775
5776 2010-02-04  Eric Blake  <ebb9@byu.net>
5777
5778         gettimeofday: expose type of second argument
5779         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
5780         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
5781         * tests/test-gettimeofday.c: Use it to silence warning.
5782         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
5783         the issue.
5784
5785 2010-02-03  Jim Meyering  <meyering@redhat.com>
5786
5787         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
5788         * lib/regcomp.c (TYPE_SIGNED): Define.
5789         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
5790
5791         regcomp.c: avoid a new -Wshadow warning
5792         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
5793
5794 2010-02-01  Jim Meyering  <meyering@redhat.com>
5795
5796         removing useless parentheses in cpp #define directives
5797         For motivation, see commit c0221df4, "define STREQ(a,b)
5798         consistently, removing useless parentheses"
5799         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
5800         * lib/mountlist.c (MNT_IGNORE): Likewise.
5801         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
5802
5803 2010-02-01  Eric Blake  <ebb9@byu.net>
5804
5805         sys_time: use link-warning
5806         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
5807         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
5808         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
5809         * modules/sys_time (Depends-on): Add warn-on-use.
5810         (Makefile.am): Always build replacement.
5811         (configure.ac): Update substitutions.
5812         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
5813         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
5814         bother with SYS_TIME_H.
5815         * modules/gettimeofday (configure.ac): Declare indicator.
5816         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
5817         in use.
5818
5819         closein-tests: silence compiler warning
5820         * tests/test-closein.c (main): Ignore fread result.
5821         * modules/closein-tests (Depends-on): Add ignore-value.
5822
5823         tests: silence warning about system return
5824         * tests/test-areadlink-with-size.c (main): Ignore system result.
5825         * tests/test-areadlink.c (main): Likewise.
5826         * tests/test-areadlinkat-with-size.c (main): Likewise.
5827         * tests/test-areadlinkat.c (main): Likewise.
5828         * tests/test-canonicalize-lgpl.c (main): Likewise.
5829         * tests/test-canonicalize.c (main): Likewise.
5830         * tests/test-chown.c (main): Likewise.
5831         * tests/test-fchownat.c (main): Likewise.
5832         * tests/test-fdutimensat.c (main): Likewise.
5833         * tests/test-fstatat.c (main): Likewise.
5834         * tests/test-futimens.c (main): Likewise.
5835         * tests/test-lchown.c (main): Likewise.
5836         * tests/test-link.c (main): Likewise.
5837         * tests/test-linkat.c (main): Likewise.
5838         * tests/test-lstat.c (main): Likewise.
5839         * tests/test-mkdir.c (main): Likewise.
5840         * tests/test-mkdirat.c (main): Likewise.
5841         * tests/test-mkfifo.c (main): Likewise.
5842         * tests/test-mkfifoat.c (main): Likewise.
5843         * tests/test-mknod.c (main): Likewise.
5844         * tests/test-readlink.c (main): Likewise.
5845         * tests/test-remove.c (main): Likewise.
5846         * tests/test-rename.c (main): Likewise.
5847         * tests/test-renameat.c (main): Likewise.
5848         * tests/test-rmdir.c (main): Likewise.
5849         * tests/test-symlink.c (main): Likewise.
5850         * tests/test-symlinkat.c (main): Likewise.
5851         * tests/test-unlink.c (main): Likewise.
5852         * tests/test-unlinkat.c (main): Likewise.
5853         * tests/test-utimens.c (main): Likewise.
5854         * tests/test-utimensat.c (main): Likewise.
5855         * modules/areadlink-tests (Depends-on): Add ignore-value.
5856         * modules/areadlink-with-size-tests (Depends-on): Likewise.
5857         * modules/areadlinkat-tests (Depends-on): Likewise.
5858         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
5859         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5860         * modules/canonicalize-tests (Depends-on): Likewise.
5861         * modules/chown-tests (Depends-on): Likewise.
5862         * modules/fdutimensat-tests (Depends-on): Likewise.
5863         * modules/futimens-tests (Depends-on): Likewise.
5864         * modules/lchown-tests (Depends-on): Likewise.
5865         * modules/link-tests (Depends-on): Likewise.
5866         * modules/linkat-tests (Depends-on): Likewise.
5867         * modules/lstat-tests (Depends-on): Likewise.
5868         * modules/mkdir-tests (Depends-on): Likewise.
5869         * modules/mkfifo-tests (Depends-on): Likewise.
5870         * modules/mkfifoat-tests (Depends-on): Likewise.
5871         * modules/mknod-tests (Depends-on): Likewise.
5872         * modules/openat-tests (Depends-on): Likewise.
5873         * modules/readlink-tests (Depends-on): Likewise.
5874         * modules/remove-tests (Depends-on): Likewise.
5875         * modules/rename-tests (Depends-on): Likewise.
5876         * modules/renameat-tests (Depends-on): Likewise.
5877         * modules/rmdir-tests (Depends-on): Likewise.
5878         * modules/symlink-tests (Depends-on): Likewise.
5879         * modules/symlinkat-tests (Depends-on): Likewise.
5880         * modules/unlink-tests (Depends-on): Likewise.
5881         * modules/utimens-tests (Depends-on): Likewise.
5882         * modules/utimensat-tests (Depends-on): Likewise.
5883
5884 2010-01-31  Bruno Haible  <bruno@clisp.org>
5885
5886         Perform the same test for many <math.h> functions.
5887         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
5888         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
5889         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
5890         of gl_MATHFUNC.
5891         * modules/acos (configure.ac): Likewise.
5892         * modules/asin (configure.ac): Likewise.
5893         * modules/atan (configure.ac): Likewise.
5894         * modules/atan2 (configure.ac): Likewise.
5895         * modules/cbrt (configure.ac): Likewise.
5896         * modules/copysign (configure.ac): Likewise.
5897         * modules/cos (configure.ac): Likewise.
5898         * modules/cosh (configure.ac): Likewise.
5899         * modules/erf (configure.ac): Likewise.
5900         * modules/erfc (configure.ac): Likewise.
5901         * modules/exp (configure.ac): Likewise.
5902         * modules/fmod (configure.ac): Likewise.
5903         * modules/hypot (configure.ac): Likewise.
5904         * modules/j0 (configure.ac): Likewise.
5905         * modules/j1 (configure.ac): Likewise.
5906         * modules/jn (configure.ac): Likewise.
5907         * modules/lgamma (configure.ac): Likewise.
5908         * modules/log (configure.ac): Likewise.
5909         * modules/log10 (configure.ac): Likewise.
5910         * modules/log1p (configure.ac): Likewise.
5911         * modules/pow (configure.ac): Likewise.
5912         * modules/remainder (configure.ac): Likewise.
5913         * modules/sin (configure.ac): Likewise.
5914         * modules/sinh (configure.ac): Likewise.
5915         * modules/tan (configure.ac): Likewise.
5916         * modules/tanh (configure.ac): Likewise.
5917         * modules/y0 (configure.ac): Likewise.
5918         * modules/y1 (configure.ac): Likewise.
5919         * modules/yn (configure.ac): Likewise.
5920         Suggested by Paolo Bonzini.
5921
5922 2010-01-31  Bruno Haible  <bruno@clisp.org>
5923
5924         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
5925
5926 2010-01-31  Bruno Haible  <bruno@clisp.org>
5927
5928         Work around getdelim() bug on FreeBSD 8.0.
5929         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
5930         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
5931         not work.
5932         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
5933         is 1.
5934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
5935         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
5936         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
5937         a non-zero size.
5938         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
5939
5940 2010-01-31  Bruno Haible  <bruno@clisp.org>
5941
5942         Work around getline() bug on FreeBSD 8.0.
5943         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
5944         and a non-zero size.
5945         * tests/test-getline.c (main): Likewise.
5946         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
5947         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
5948
5949 2010-01-28  Eric Blake  <ebb9@byu.net>
5950
5951         regex: fix build failure
5952         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
5953         platforms.
5954
5955 2010-01-28  Jim Meyering  <meyering@redhat.com>
5956
5957         regex: do not ignore memory allocation failure
5958         * lib/regex_internal.c (create_cd_newstate): Detect
5959         re_node_set_init_copy failure.   Extracted from glibc commit
5960         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5961
5962         regex: sync more white-space changes from libc
5963         * lib/regex_internal.c: White-space only changes.
5964         * lib/regexec.c: Likewise.
5965
5966         regex: add many uses of __attribute_warn_unused_result__
5967         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
5968         * lib/regexec.c: Likewise.
5969         Extracted from a messy glibc commit.
5970
5971         regcomp.c: spelling and merge-artifact from glibc
5972         * lib/regcomp.c: Merge remainder of glibc's
5973         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5974
5975         regcomp.c: sync white-space changes from glibc
5976         * lib/regcomp.c: Merge to accommodate white space
5977         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5978
5979         regcomp.c: do not ignore internal return values
5980         * lib/regcomp.c: Do not ignore internal return values.
5981         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
5982         but without its white-space changes and spelling fixes.
5983
5984         regex_internal.h: define __attribute_warn_unused_result__
5985         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
5986
5987         maint: add a syntax-check rule to check for vulnerable Makefile.in
5988         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
5989
5990 2010-01-27  Jim Meyering  <meyering@redhat.com>
5991
5992         ncftpput-ftp: clean up spaces
5993         * build-aux/ncftpput-ftp: Make Copyright line consistent.
5994         Remove trailing blanks.
5995
5996 2010-01-27  Simon Josefsson  <simon@josefsson.org>
5997
5998         * build-aux/git-version-gen: Fix copyright statement.
5999         * build-aux/gnupload: Likewise.
6000         * tests/test-arcfour.c: Likewise.
6001         * tests/test-arctwo.c: Likewise.
6002         * tests/test-count-one-bits.c: Likewise.
6003         * tests/test-crc.c: Likewise.
6004         * tests/test-des.c: Likewise.
6005         * tests/test-gc-arcfour.c: Likewise.
6006         * tests/test-gc-arctwo.c: Likewise.
6007         * tests/test-gc-des.c: Likewise.
6008         * tests/test-gc-hmac-md5.c: Likewise.
6009         * tests/test-gc-hmac-sha1.c: Likewise.
6010         * tests/test-gc-md2.c: Likewise.
6011         * tests/test-gc-md4.c: Likewise.
6012         * tests/test-gc-md5.c: Likewise.
6013         * tests/test-gc-pbkdf2-sha1.c: Likewise.
6014         * tests/test-gc-rijndael.c: Likewise.
6015         * tests/test-gc-sha1.c: Likewise.
6016         * tests/test-gc.c: Likewise.
6017         * tests/test-gethostname.c: Likewise.
6018         * tests/test-gettimeofday.c: Likewise.
6019         * tests/test-hash.c: Likewise.
6020         * tests/test-hmac-md5.c: Likewise.
6021         * tests/test-hmac-sha1.c: Likewise.
6022         * tests/test-md2.c: Likewise.
6023         * tests/test-md4.c: Likewise.
6024         * tests/test-md5.c: Likewise.
6025         * tests/test-memchr.c: Likewise.
6026         * tests/test-memchr2.c: Likewise.
6027         * tests/test-memcmp.c: Likewise.
6028         * tests/test-memmem.c: Likewise.
6029         * tests/test-memrchr.c: Likewise.
6030         * tests/test-rawmemchr.c: Likewise.
6031         * tests/test-read-file.c: Likewise.
6032         * tests/test-rijndael.c: Likewise.
6033         * tests/test-sockets.c: Likewise.
6034         * tests/test-strchrnul.c: Likewise.
6035         * tests/test-strstr.c: Likewise.
6036         * tests/test-strtod.c: Likewise.
6037         * build-aux/ncftpput-ftp: Likewise.
6038
6039 2010-01-26  Eric Blake  <ebb9@byu.net>
6040
6041         ignore-value: update recommended header name
6042         * modules/ignore-value (Include): Only use <> for headers that
6043         exist in glibc.
6044
6045 2010-01-26  Jim Meyering  <meyering@redhat.com>
6046
6047         test-userspec.c: avoid compiler warnings
6048         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
6049         and "initialization discards qualifiers..." warnings.
6050         Put the first "uid" in its own scope, and make char* members "const".
6051
6052 2010-01-25  Bruno Haible  <bruno@clisp.org>
6053
6054         gnulib-tool: Make warning diagnostics consistent.
6055         * gnulib-tool (func_warning): New function.
6056         Use it everywhere where gnulib-tool produces output to stderr and it is
6057         not a fatal error.
6058
6059 2010-01-25  Bruno Haible  <bruno@clisp.org>
6060
6061         Fix test dependencies.
6062         * modules/xstrtol-tests (Depends-on): Add inttypes.
6063         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
6064
6065 2010-01-25 Pádraig Brady <P@draigBrady.com>
6066
6067         syntax-check: detect incorrect boolean macro values in config.h
6068         * modules/maintainer-makefile (configure.ac): Parameterize the location
6069         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
6070         The logic is from Eric Blake and the location indicated by Jim Meyering.
6071         Note the more natural CONFIG_HEADER name is prohibited by automake
6072         for backwards compatibility reasons.
6073         * top/maint.mk (sc_Wundef_boolean): New rule.
6074
6075 2010-01-25  Jim Meyering  <meyering@redhat.com>
6076
6077         bootstrap: detect MacOS 10.6's shasum, too
6078         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
6079         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
6080
6081 2010-01-23  Jim Meyering  <meyering@redhat.com>
6082
6083         xstrtoll: new module
6084         * modules/xstrtoll: New file.
6085         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
6086         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
6087         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
6088         ./configure fails if you use this module and lack "long long".
6089         * modules/xstrtoll-tests: New module.
6090         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
6091         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
6092         new init.sh-based test framework.
6093
6094 2010-01-24  Bruno Haible  <bruno@clisp.org>
6095
6096         Tests for module 'yn'.
6097         * modules/yn-tests: New file.
6098         * tests/test-yn.c: New file.
6099
6100         Tests for module 'y1'.
6101         * modules/y1-tests: New file.
6102         * tests/test-y1.c: New file.
6103
6104         Tests for module 'y0'.
6105         * modules/y0-tests: New file.
6106         * tests/test-y0.c: New file.
6107
6108         Tests for module 'tanh'.
6109         * modules/tanh-tests: New file.
6110         * tests/test-tanh.c: New file.
6111
6112         Tests for module 'tan'.
6113         * modules/tan-tests: New file.
6114         * tests/test-tan.c: New file.
6115
6116         Tests for module 'sqrt'.
6117         * modules/sqrt-tests: New file.
6118         * tests/test-sqrt.c: New file.
6119
6120         Tests for module 'sinh'.
6121         * modules/sinh-tests: New file.
6122         * tests/test-sinh.c: New file.
6123
6124         Tests for module 'sin'.
6125         * modules/sin-tests: New file.
6126         * tests/test-sin.c: New file.
6127
6128         Tests for module 'rint'.
6129         * modules/rint-tests: New file.
6130         * tests/test-rint.c: New file.
6131
6132         Tests for module 'remainder'.
6133         * modules/remainder-tests: New file.
6134         * tests/test-remainder.c: New file.
6135
6136         Tests for module 'pow'.
6137         * modules/pow-tests: New file.
6138         * tests/test-pow.c: New file.
6139
6140         Tests for module 'nextafter'.
6141         * modules/nextafter-tests: New file.
6142         * tests/test-nextafter.c: New file.
6143
6144         Tests for module 'modf'.
6145         * modules/modf-tests: New file.
6146         * tests/test-modf.c: New file.
6147
6148         Tests for module 'logb'.
6149         * modules/logb-tests: New file.
6150         * tests/test-logb.c: New file.
6151
6152         Tests for module 'log1p'.
6153         * modules/log1p-tests: New file.
6154         * tests/test-log1p.c: New file.
6155
6156         Tests for module 'log10'.
6157         * modules/log10-tests: New file.
6158         * tests/test-log10.c: New file.
6159
6160         Tests for module 'log'.
6161         * modules/log-tests: New file.
6162         * tests/test-log.c: New file.
6163
6164         Tests for module 'lgamma'.
6165         * modules/lgamma-tests: New file.
6166         * tests/test-lgamma.c: New file.
6167
6168         Tests for module 'ldexp'.
6169         * modules/ldexp-tests: New file.
6170         * tests/test-ldexp.c: New file.
6171
6172         Tests for module 'jn'.
6173         * modules/jn-tests: New file.
6174         * tests/test-jn.c: New file.
6175
6176         Tests for module 'j1'.
6177         * modules/j1-tests: New file.
6178         * tests/test-j1.c: New file.
6179
6180         Tests for module 'j0'.
6181         * modules/j0-tests: New file.
6182         * tests/test-j0.c: New file.
6183
6184         Tests for module 'hypot'.
6185         * modules/hypot-tests: New file.
6186         * tests/test-hypot.c: New file.
6187
6188         Tests for module 'fmod'.
6189         * modules/fmod-tests: New file.
6190         * tests/test-fmod.c: New file.
6191
6192         Tests for module 'fabs'.
6193         * modules/fabs-tests: New file.
6194         * tests/test-fabs.c: New file.
6195
6196         Tests for module 'exp'.
6197         * modules/exp-tests: New file.
6198         * tests/test-exp.c: New file.
6199
6200         Tests for module 'erfc'.
6201         * modules/erfc-tests: New file.
6202         * tests/test-erfc.c: New file.
6203
6204         Tests for module 'erf'.
6205         * modules/erf-tests: New file.
6206         * tests/test-erf.c: New file.
6207
6208         Tests for module 'cosh'.
6209         * modules/cosh-tests: New file.
6210         * tests/test-cosh.c: New file.
6211
6212         Tests for module 'cos'.
6213         * modules/cos-tests: New file.
6214         * tests/test-cos.c: New file.
6215
6216         Tests for module 'copysign'.
6217         * modules/copysign-tests: New file.
6218         * tests/test-copysign.c: New file.
6219
6220         Tests for module 'cbrt'.
6221         * modules/cbrt-tests: New file.
6222         * tests/test-cbrt.c: New file.
6223
6224         Tests for module 'atan2'.
6225         * modules/atan2-tests: New file.
6226         * tests/test-atan2.c: New file.
6227
6228         Tests for module 'atan'.
6229         * modules/atan-tests: New file.
6230         * tests/test-atan.c: New file.
6231
6232         Tests for module 'asin'.
6233         * modules/asin-tests: New file.
6234         * tests/test-asin.c: New file.
6235
6236         Tests for module 'acos'.
6237         * modules/acos-tests: New file.
6238         * tests/test-acos.c: New file.
6239
6240 2010-01-24  Bruno Haible  <bruno@clisp.org>
6241
6242         Fix tests for common <math.h> functions.
6243         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
6244         code snippet that references the function pointer, rather than merely
6245         calling the function. Substitute the FUNC_LIBM variable.
6246         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
6247         * modules/acos (configure.ac): Likewise.
6248         * modules/asin (configure.ac): Likewise.
6249         * modules/atan (configure.ac): Likewise.
6250         * modules/atan2 (configure.ac): Likewise.
6251         * modules/cbrt (configure.ac): Likewise.
6252         * modules/copysign (configure.ac): Likewise.
6253         * modules/cos (configure.ac): Likewise.
6254         * modules/cosh (configure.ac): Likewise.
6255         * modules/erf (configure.ac): Likewise.
6256         * modules/erfc (configure.ac): Likewise.
6257         * modules/exp (configure.ac): Likewise.
6258         * modules/fabs (configure.ac): Likewise.
6259         * modules/fmod (configure.ac): Likewise.
6260         * modules/hypot (configure.ac): Likewise.
6261         * modules/j0 (configure.ac): Likewise.
6262         * modules/j1 (configure.ac): Likewise.
6263         * modules/jn (configure.ac): Likewise.
6264         * modules/ldexp (configure.ac): Likewise.
6265         * modules/lgamma (configure.ac): Likewise.
6266         * modules/log (configure.ac): Likewise.
6267         * modules/log10 (configure.ac): Likewise.
6268         * modules/log1p (configure.ac): Likewise.
6269         * modules/logb (configure.ac): Likewise.
6270         * modules/modf (configure.ac): Likewise.
6271         * modules/nextafter (configure.ac): Likewise.
6272         * modules/pow (configure.ac): Likewise.
6273         * modules/remainder (configure.ac): Likewise.
6274         * modules/rint (configure.ac): Likewise.
6275         * modules/sin (configure.ac): Likewise.
6276         * modules/sinh (configure.ac): Likewise.
6277         * modules/tan (configure.ac): Likewise.
6278         * modules/tanh (configure.ac): Likewise.
6279         * modules/y0 (configure.ac): Likewise.
6280         * modules/y1 (configure.ac): Likewise.
6281         * modules/yn (configure.ac): Likewise.
6282
6283 2010-01-24  Bruno Haible  <bruno@clisp.org>
6284
6285         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
6286         * tests/test-acosl.c (x): New variable.
6287         (main): Store argument in x and fetch it from x.
6288         * tests/test-asinl.c (x): New variable.
6289         (main): Store argument in x and fetch it from x.
6290         * tests/test-atanl.c (x): New variable.
6291         (main): Store argument in x and fetch it from x.
6292         * tests/test-cosl.c (x): New variable.
6293         (main): Store argument in x and fetch it from x.
6294         * tests/test-expl.c (x): New variable.
6295         (main): Store argument in x and fetch it from x.
6296         * tests/test-logl.c (x): New variable.
6297         (main): Store argument in x and fetch it from x.
6298         * tests/test-sinl.c (x): New variable.
6299         (main): Store argument in x and fetch it from x.
6300         * tests/test-sqrtl.c (x): New variable.
6301         (main): Store argument in x and fetch it from x.
6302         * tests/test-tanl.c (x): New variable.
6303         (main): Store argument in x and fetch it from x.
6304
6305 2010-01-24  Bruno Haible  <bruno@clisp.org>
6306
6307         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
6308         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
6309         assignments to the initial TESTS_ENVIRONMENT.
6310         * doc/gnulib.texi (Unit test modules): Document it.
6311         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
6312         TESTS_ENVIRONMENT.
6313         * modules/btowc-tests (Makefile.am): Likewise.
6314         * modules/c-stack-tests (Makefile.am): Likewise.
6315         * modules/c-strcase-tests (Makefile.am): Likewise.
6316         * modules/copy-file-tests (Makefile.am): Likewise.
6317         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6318         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6319         * modules/mbrtowc-tests (Makefile.am): Likewise.
6320         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6321         * modules/mbscasestr-tests (Makefile.am): Likewise.
6322         * modules/mbschr-tests (Makefile.am): Likewise.
6323         * modules/mbscspn-tests (Makefile.am): Likewise.
6324         * modules/mbsinit-tests (Makefile.am): Likewise.
6325         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6326         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6327         * modules/mbspbrk-tests (Makefile.am): Likewise.
6328         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6329         * modules/mbsrchr-tests (Makefile.am): Likewise.
6330         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6331         * modules/mbsspn-tests (Makefile.am): Likewise.
6332         * modules/mbsstr-tests (Makefile.am): Likewise.
6333         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6334         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6335         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6336         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6337         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6338         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6339         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6340         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6341         * modules/wcrtomb-tests (Makefile.am): Likewise.
6342         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6343         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6344         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
6345         assignments from TESTS_ENVIRONMENT.
6346         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
6347         augmentation.
6348         * modules/argp-version-etc-tests (Makefile.am): Likewise.
6349         * modules/atexit-tests (Makefile.am): Likewise.
6350         * modules/binary-io-tests (Makefile.am): Likewise.
6351         * modules/closein-tests (Makefile.am): Likewise.
6352         * modules/dprintf-posix-tests (Makefile.am): Likewise.
6353         * modules/exclude-tests (Makefile.am): Likewise.
6354         * modules/fflush-tests (Makefile.am): Likewise.
6355         * modules/fpending-tests (Makefile.am): Likewise.
6356         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6357         * modules/freadahead-tests (Makefile.am): Likewise.
6358         * modules/freadptr-tests (Makefile.am): Likewise.
6359         * modules/freadseek-tests (Makefile.am): Likewise.
6360         * modules/fseek-tests (Makefile.am): Likewise.
6361         * modules/fseeko-tests (Makefile.am): Likewise.
6362         * modules/ftell-tests (Makefile.am): Likewise.
6363         * modules/ftello-tests (Makefile.am): Likewise.
6364         * modules/idpriv-drop-tests (Makefile.am): Likewise.
6365         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
6366         * modules/lseek-tests (Makefile.am): Likewise.
6367         * modules/parse-duration-tests (Makefile.am): Likewise.
6368         * modules/perror-tests (Makefile.am): Likewise.
6369         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
6370         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
6371         * modules/pipe-tests (Makefile.am): Likewise.
6372         * modules/pread-tests (Makefile.am): Likewise.
6373         * modules/printf-posix-tests (Makefile.am): Likewise.
6374         * modules/select-tests (Makefile.am): Likewise.
6375         * modules/sigpipe-tests (Makefile.am): Likewise.
6376         * modules/tsearch-tests (Makefile.am): Likewise.
6377         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6378         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6379         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6380         * modules/uniwidth/width-tests (Makefile.am): Likewise.
6381         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
6382         * modules/version-etc-tests (Makefile.am): Likewise.
6383         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6384         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6385         * modules/xalloc-die-tests (Makefile.am): Likewise.
6386         * modules/xprintf-posix-tests (Makefile.am): Likewise.
6387         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6388         * modules/xstrtol-tests (Makefile.am): Likewise.
6389         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6390         * modules/yesno-tests (Makefile.am): Likewise.
6391         Suggested by Jim Meyering.
6392
6393 2010-01-24  Bruno Haible  <bruno@clisp.org>
6394
6395         More documentation.
6396         * doc/gnulib.texi (Writing modules): New chapter.
6397         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
6398         the new chapter.
6399
6400 2010-01-24  Jim Meyering  <meyering@redhat.com>
6401
6402         maint.mk: do not prepend "./" after filtering
6403         * top/maint.mk (_prepend_srcdir_prefix): New variable
6404         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
6405         "./" when $(srcdir) is ".".
6406
6407         define STREQ(a,b) consistently, removing useless parentheses
6408         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
6409         since the only risk is that "a" or "b" contains an unparenthesized
6410         comma, but if either did that, STREQ would have 3 or more arguments.
6411         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
6412         * lib/fts.c (STREQ): Remove unnecessary parentheses.
6413         * lib/hash-triple.c (STREQ): Likewise.
6414         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
6415         * lib/getugroups.c (STREQ): Likewise.
6416
6417 2010-01-23  Jim Meyering  <meyering@redhat.com>
6418
6419         maint.mk: fix syntax-check in a non-srcdir build directory
6420         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
6421         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
6422
6423 2010-01-22  Jim Meyering  <meyering@redhat.com>
6424
6425         userspec: add unit tests
6426         * tests/test-userspec.c: New file.
6427         * modules/userspec-tests: Likewise.
6428
6429 2010-01-21  Jim Meyering  <meyering@redhat.com>
6430
6431         maint.mk: handle source file names containing "." robustly
6432         * top/maint.mk (_dot_escaped_srcdir): Define.
6433         (VC_LIST): Use it in LHS of sed substitution.
6434
6435 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
6436
6437         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
6438         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
6439         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
6440         from a non-srcdir build.
6441
6442 2010-01-20  Eric Blake  <ebb9@byu.net>
6443
6444         warn-on-use: use instead of link-warning
6445         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
6446         * modules/unistd (Depends-on, Makefile.am): Likewise.
6447         * modules/arpa_inet (Depends-on): Replace link-warning with
6448         warn-on-use.
6449         (Makefile.am): Update rules accordingly.
6450         * modules/ctype (Depends-on, Makefile.am): Likewise.
6451         * modules/dirent (Depends-on, Makefile.am): Likewise.
6452         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
6453         * modules/inttypes (Depends-on, Makefile.am): Likewise.
6454         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6455         * modules/locale (Depends-on, Makefile.am): Likewise.
6456         * modules/math (Depends-on, Makefile.am): Likewise.
6457         * modules/search (Depends-on, Makefile.am): Likewise.
6458         * modules/signal (Depends-on, Makefile.am): Likewise.
6459         * modules/spawn (Depends-on, Makefile.am): Likewise.
6460         * modules/stdlib (Depends-on, Makefile.am): Likewise.
6461         * modules/string (Depends-on, Makefile.am): Likewise.
6462         * modules/strings (Depends-on, Makefile.am): Likewise.
6463         * modules/sys_file (Depends-on, Makefile.am): Likewise.
6464         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
6465         * modules/sys_select (Depends-on, Makefile.am): Likewise.
6466         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
6467         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
6468         * modules/sys_times (Depends-on, Makefile.am): Likewise.
6469         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
6470         * modules/wchar (Depends-on, Makefile.am): Likewise.
6471         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
6472         should be poisoned.
6473         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
6474         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
6475         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
6476         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6477         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6478         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6479         * m4/math_h.m4 (gl_MATH_H): Likewise.
6480         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6481         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6482         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6483         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6484         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6485         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6486         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6487         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
6488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6489         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6490         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6491         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6492         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6493         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6494         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6495         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6496         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
6497         GL_LINK_WARNING.
6498         * lib/ctype.in.h: Likewise.
6499         * lib/dirent.in.h: Likewise.
6500         * lib/fcntl.in.h: Likewise.
6501         * lib/inttypes.in.h: Likewise.
6502         * lib/langinfo.in.h: Likewise.
6503         * lib/locale.in.h: Likewise.
6504         * lib/math.in.h: Likewise.
6505         * lib/search.in.h: Likewise.
6506         * lib/signal.in.h: Likewise.
6507         * lib/spawn.in.h: Likewise.
6508         * lib/stdio.in.h: Likewise.
6509         * lib/stdlib.in.h: Likewise.
6510         * lib/string.in.h: Likewise.
6511         * lib/strings.in.h: Likewise.
6512         * lib/sys_file.in.h: Likewise.
6513         * lib/sys_ioctl.in.h: Likewise.
6514         * lib/sys_select.in.h: Likewise.
6515         * lib/sys_socket.in.h: Likewise.
6516         * lib/sys_stat.in.h: Likewise.
6517         * lib/sys_times.in.h: Likewise.
6518         * lib/sys_utsname.in.h: Likewise.
6519         * lib/unistd.in.h: Likewise.
6520         * lib/wchar.in.h: Likewise.
6521
6522 2010-01-20  Bruno Haible  <bruno@clisp.org>
6523
6524         Avoid duplicate -lm.
6525         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
6526         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
6527         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
6528         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
6529         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
6530         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
6531         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6532         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6533         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6534         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6535         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6536         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6537         Reported by Paolo Bonzini.
6538
6539 2010-01-19  Bruno Haible  <bruno@clisp.org>
6540
6541         langinfo, nl_langinfo: Relicense under LGPLv2+.
6542         * modules/langinfo (License): Change to LGPLv2+.
6543         * modules/nl_langinfo (License): Likewise.
6544         Patch by David Lutterkort <lutter@redhat.com>.
6545
6546 2010-01-19  Bruno Haible  <bruno@clisp.org>
6547
6548         Avoid compilation error with cc on OSF/1 5.1.
6549         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6550         statement, not before.
6551         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6552
6553 2010-01-18  Bruno Haible  <bruno@clisp.org>
6554
6555         Avoid a link error due to the __printf__ symbol.
6556         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6557         and 2.6.x.
6558         (__format__, __printf__): Remove definitions.
6559         * lib/argp-fmtstream.h: Likewise.
6560         * lib/argp.h: Likewise.
6561         * lib/error.h: Likewise.
6562         * lib/vasnprintf.h: Likewise.
6563         * lib/xprintf.h: Likewise.
6564         * lib/xvasprintf.h: Likewise.
6565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6566
6567 2010-01-18  Bruno Haible  <bruno@clisp.org>
6568
6569         Tests for module 'tanl'.
6570         * modules/tanl-tests: New file.
6571         * tests/test-tanl.c: New file.
6572
6573         Tests for module 'sqrtl'.
6574         * modules/sqrtl-tests: New file.
6575         * tests/test-sqrtl.c: New file.
6576
6577         Tests for module 'sinl'.
6578         * modules/sinl-tests: New file.
6579         * tests/test-sinl.c: New file.
6580
6581         Tests for module 'logl'.
6582         * modules/logl-tests: New file.
6583         * tests/test-logl.c: New file.
6584
6585         Tests for module 'expl'.
6586         * modules/expl-tests: New file.
6587         * tests/test-expl.c: New file.
6588
6589         Tests for module 'cosl'.
6590         * modules/cosl-tests: New file.
6591         * tests/test-cosl.c: New file.
6592
6593         Tests for module 'atanl'.
6594         * modules/atanl-tests: New file.
6595         * tests/test-atanl.c: New file.
6596
6597         Tests for module 'asinl'.
6598         * modules/asinl-tests: New file.
6599         * tests/test-asinl.c: New file.
6600
6601         Tests for module 'acosl'.
6602         * modules/acosl-tests: New file.
6603         * tests/test-acosl.c: New file.
6604
6605         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6606         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6607         tanl): Use the standard gnulib idiom.
6608         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6609         * lib/sinl.c: Likewise.
6610         * lib/tanl.c: Don't include trigl.c.
6611         (kernel_tanl): Make static.
6612         * lib/sincosl.c: Include trigl.h first.
6613         * lib/trigl.c: Likewise.
6614         * m4/acosl.m4: New file.
6615         * m4/asinl.m4: New file.
6616         * m4/atanl.m4: New file.
6617         * m4/cosl.m4: New file.
6618         * m4/expl.m4: New file.
6619         * m4/logl.m4: New file.
6620         * m4/sinl.m4: New file.
6621         * m4/sqrtl.m4: New file.
6622         * m4/tanl.m4: New file.
6623         * m4/mathl.m4: Remove file.
6624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6625         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6626         Don't initialize GNULIB_MATHL.
6627         * modules/acosl: New file.
6628         * modules/asinl: New file.
6629         * modules/atanl: New file.
6630         * modules/cosl: New file.
6631         * modules/expl: New file.
6632         * modules/logl: New file.
6633         * modules/sinl: New file.
6634         * modules/sqrtl: New file.
6635         * modules/tanl: New file.
6636         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6637         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6638         substitute GNULIB_MATHL.
6639         * modules/mathl: Rewritten.
6640         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6641         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6642         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6643         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6644         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6645         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6646         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6647         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6648         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6649
6650 2010-01-18  Bruno Haible  <bruno@clisp.org>
6651
6652         sqrt: Make gl_FUNC_SQRT requirable.
6653         * m4/sqrt.m4: New file.
6654         * modules/sqrt (Files): Add it.
6655         (configure.ac): Invoke gl_FUNC_SQRT.
6656
6657 2010-01-18  Bruno Haible  <bruno@clisp.org>
6658
6659         New modules for common <math.h> functions.
6660         * m4/mathfunc.m4: New file.
6661         * modules/acos: New file.
6662         * modules/asin: New file.
6663         * modules/atan: New file.
6664         * modules/atan2: New file.
6665         * modules/cbrt: New file.
6666         * modules/copysign: New file.
6667         * modules/cos: New file.
6668         * modules/cosh: New file.
6669         * modules/erf: New file.
6670         * modules/erfc: New file.
6671         * modules/exp: New file.
6672         * modules/fabs: New file.
6673         * modules/fmod: New file.
6674         * modules/hypot: New file.
6675         * modules/j0: New file.
6676         * modules/j1: New file.
6677         * modules/jn: New file.
6678         * modules/ldexp: New file.
6679         * modules/lgamma: New file.
6680         * modules/log: New file.
6681         * modules/log10: New file.
6682         * modules/log1p: New file.
6683         * modules/logb: New file.
6684         * modules/modf: New file.
6685         * modules/nextafter: New file.
6686         * modules/pow: New file.
6687         * modules/remainder: New file.
6688         * modules/rint: New file.
6689         * modules/sin: New file.
6690         * modules/sinh: New file.
6691         * modules/sqrt: New file.
6692         * modules/tan: New file.
6693         * modules/tanh: New file.
6694         * modules/y0: New file.
6695         * modules/y1: New file.
6696         * modules/yn: New file.
6697         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6698         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6699         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6700         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6701         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6702         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6703         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6704         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6705         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6706         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6707         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6708         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6709         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6710         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6711         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6712         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6713         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6714         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6715         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6716         * doc/posix-functions/log.texi: Mention the 'log' module.
6717         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6718         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6719         * doc/posix-functions/logb.texi: Mention the 'logb' module.
6720         * doc/posix-functions/modf.texi: Mention the 'modf' module.
6721         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
6722         * doc/posix-functions/pow.texi: Mention the 'pow' module.
6723         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
6724         * doc/posix-functions/rint.texi: Mention the 'rint' module.
6725         * doc/posix-functions/sin.texi: Mention the 'sin' module.
6726         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
6727         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
6728         * doc/posix-functions/tan.texi: Mention the 'tan' module.
6729         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
6730         * doc/posix-functions/y0.texi: Mention the 'y0' module.
6731         * doc/posix-functions/y1.texi: Mention the 'y1' module.
6732         * doc/posix-functions/yn.texi: Mention the 'yn' module.
6733
6734 2010-01-18  Jim Meyering  <meyering@redhat.com>
6735
6736         ignore-value: relax license to LGPLv2+
6737         * modules/ignore-value (License): Relax to LGPLv2+.
6738
6739         getdate: don't leak when TZ contains two or more '"'s
6740         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
6741         double quote in TZ after the first one.
6742
6743         readtokens: do not leak internal token_lengths buffer
6744         * lib/readtokens.c (readtokens): Free the local, lengths,
6745         when the supplied "token_lengths" parameter is NULL.
6746
6747 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6748
6749         Fix a couple of missing LIBTHREAD link failures on AIX.
6750         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
6751         $(LIBTHREAD).
6752         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
6753
6754         Link test-poll against INET_PTON_LIB.
6755         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
6756         for inet_pton on Solaris 10.
6757
6758 2010-01-17  Bruno Haible  <bruno@clisp.org>
6759
6760         unistdio/*-sprintf: Fix typo in module description.
6761         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
6762         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
6763         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
6764         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
6765         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
6766         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
6767         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
6768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6769
6770 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6771
6772         gnulib-tool: fix filelist for AIX, HP-UX ksh.
6773         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
6774         variables in shell case patterns, for AIX and HP-UX ksh.
6775
6776         Split large sed scripts, for HP-UX sed.
6777         * modules/stdio: Split sed scripts around 50 sed commands,
6778         to avoid HP-UX limit of 99 commands, in the near future.
6779         * modules/string: Likewise.
6780         * modules/unistd: Likewise.
6781
6782         gnulib-tool: avoid writing in the current directory.
6783         * gnulib-tool (func_emit_lib_Makefile_am)
6784         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
6785         not in the current directory, so concurrent gnulib-tool
6786         instances do not interfere.
6787
6788 2010-01-16  Jim Meyering  <meyering@redhat.com>
6789
6790         doc: update users.txt
6791         * users.txt: Add grep.
6792         (diffutils, gzip): Update URLs.
6793
6794 2010-01-12  Bruno Haible  <bruno@clisp.org>
6795
6796         posix_spawn: Avoid test failure on Cygwin.
6797         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
6798         characters.
6799         Reported by Simon Josefsson.
6800
6801 2010-01-12  Bruno Haible  <bruno@clisp.org>
6802
6803         * tests/test-cond.c (main): When skipping the test, show the reason.
6804
6805 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6806
6807         * lib/striconv.c (str_cd_iconv): Avoid if before free.
6808
6809 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6810
6811         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
6812         VC_LIST_ALWAYS_EXCLUDE_REGEX.
6813
6814 2010-01-12  Eric Blake  <ebb9@byu.net>
6815
6816         build: guarantee AS_VAR_IF
6817         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
6818         (gl_AS_VAR_IF): Move...
6819         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
6820         Reported by Simon Josefsson.
6821
6822 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6823
6824         * lib/stdio.in.h: Fix typo.
6825
6826 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6827
6828         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
6829         libgpg-error.
6830
6831 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6832
6833         * tests/test-xalloc-die.sh: Use $EXEEXT.
6834
6835 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6836             Bruno Haible  <bruno@clisp.org>
6837
6838         getlogin, getlogin_r: Avoid test failure.
6839         * tests/test-getlogin.c: Include <stdio.h>.
6840         (main): Skip the test when the function fails because stdin is not a
6841         tty.
6842         * tests/test-getlogin_r.c: Include <stdio.h>.
6843         (main): Skip the test when the function fails because stdin is not a
6844         tty.
6845
6846 2010-01-11  Eric Blake  <ebb9@byu.net>
6847
6848         tests: avoid more large file warnings
6849         * tests/test-fflush.c: Avoid warning about ftell use.
6850         * tests/test-fseek.c: Avoid warning about fseek use.
6851
6852 2010-01-10  Bruno Haible  <bruno@clisp.org>
6853
6854         nproc: Work better on Linux when /proc and /sys are not mounted.
6855         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
6856         as lower bound when, on glibc/Linux systems,
6857         sysconf (_SC_NPROCESSORS_CONF) returns 1.
6858         Suggested by Pádraig Brady <P@draigbrady.com>.
6859         Reported by Dmitry V. Levin <ldv@altlinux.org>.
6860
6861         nproc: Refactor.
6862         * lib/nproc.c (num_processors_via_affinity_mask): New function,
6863         extracted from num_processors.
6864         (num_processors): Call it.
6865
6866 2010-01-11  Jim Meyering  <meyering@redhat.com>
6867
6868         utimecmp: avoid new warning from upcoming gcc-4.5.0
6869         * lib/utimecmp.c (BILLION): Define using #define rather than an
6870         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
6871
6872 2010-01-11  Eric Blake  <ebb9@byu.net>
6873
6874         math: add portability warnings for classification macros
6875         * modules/math (Depends-on): Add warn-on-use.
6876         (Makefile.am): Provide new substitutions.
6877         * m4/math_h.m4 (gl_MATH_H): Require inline.
6878         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
6879         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
6880         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
6881         implement warnings.
6882
6883         unistd: warn on use of environ without module
6884         * modules/unistd (Depends-on): Add warn-on-use.
6885         (Makefile.am): Provide new substitutions.
6886         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
6887         * lib/unistd.in.h (environ): Wrap with a warning helper function.
6888
6889         stdio: warn on suspicious uses
6890         * modules/stdio (Depends-on): Add warn-on-use.
6891         (Makefile.am): Provide new substitutions.
6892         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
6893         fseeko.
6894         * lib/stdio.in.h (gets): Always warn on use.
6895         (fseek, ftell): Adjust when warnings are issued, and honor
6896         _GL_NO_LARGE_FILES as a way to silence the warning.
6897         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
6898         any warning about large file offsets.
6899         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
6900         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
6901         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
6902         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
6903         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
6904         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
6905         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
6906         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
6907
6908         warn-on-use: new module
6909         * modules/warn-on-use: New file.
6910         * build-aux/warn-on-use.h: Likewise.
6911         * m4/warn-on-use.m4: Likewise.
6912         * MODULES.html.sh (Support for building): Mention it.
6913
6914 2010-01-10  Bruno Haible  <bruno@clisp.org>
6915
6916         Tests for module 'unistr/u32-strdup'.
6917         * modules/unistr/u32-strdup-tests: New file.
6918         * tests/unistr/test-u32-strdup.c: New file.
6919
6920         Tests for module 'unistr/u16-strdup'.
6921         * modules/unistr/u16-strdup-tests: New file.
6922         * tests/unistr/test-u16-strdup.c: New file.
6923
6924         Tests for module 'unistr/u8-strdup'.
6925         * modules/unistr/u8-strdup-tests: New file.
6926         * tests/unistr/test-u8-strdup.c: New file.
6927         * tests/unistr/test-strdup.h: New file.
6928
6929         Tests for module 'unistr/u32-strncmp'.
6930         * modules/unistr/u32-strncmp-tests: New file.
6931         * tests/unistr/test-u32-strncmp.c: New file.
6932
6933         Tests for module 'unistr/u16-strncmp'.
6934         * modules/unistr/u16-strncmp-tests: New file.
6935         * tests/unistr/test-u16-strncmp.c: New file.
6936
6937         Tests for module 'unistr/u8-strncmp'.
6938         * modules/unistr/u8-strncmp-tests: New file.
6939         * tests/unistr/test-u8-strncmp.c: New file.
6940         * tests/unistr/test-strncmp.h: New file.
6941
6942         Tests for module 'unistr/u32-strcoll'.
6943         * modules/unistr/u32-strcoll-tests: New file.
6944         * tests/unistr/test-u32-strcoll.c: New file.
6945
6946         Tests for module 'unistr/u16-strcoll'.
6947         * modules/unistr/u16-strcoll-tests: New file.
6948         * tests/unistr/test-u16-strcoll.c: New file.
6949
6950         Tests for module 'unistr/u8-strcoll'.
6951         * modules/unistr/u8-strcoll-tests: New file.
6952         * tests/unistr/test-u8-strcoll.c: New file.
6953
6954         Tests for module 'unistr/u32-strcmp'.
6955         * modules/unistr/u32-strcmp-tests: New file.
6956         * tests/unistr/test-u32-strcmp.c: New file.
6957         * tests/unistr/test-u32-strcmp.h: New file.
6958
6959         Tests for module 'unistr/u16-strcmp'.
6960         * modules/unistr/u16-strcmp-tests: New file.
6961         * tests/unistr/test-u16-strcmp.c: New file.
6962         * tests/unistr/test-u16-strcmp.h: New file.
6963
6964         Tests for module 'unistr/u8-strcmp'.
6965         * modules/unistr/u8-strcmp-tests: New file.
6966         * tests/unistr/test-u8-strcmp.c: New file.
6967         * tests/unistr/test-u8-strcmp.h: New file.
6968         * tests/unistr/test-strcmp.h: New file.
6969
6970         Tests for module 'unistr/u32-strncat'.
6971         * modules/unistr/u32-strncat-tests: New file.
6972         * tests/unistr/test-u32-strncat.c: New file.
6973
6974         Tests for module 'unistr/u16-strncat'.
6975         * modules/unistr/u16-strncat-tests: New file.
6976         * tests/unistr/test-u16-strncat.c: New file.
6977
6978         Tests for module 'unistr/u8-strncat'.
6979         * modules/unistr/u8-strncat-tests: New file.
6980         * tests/unistr/test-u8-strncat.c: New file.
6981         * tests/unistr/test-strncat.h: New file.
6982
6983         Tests for module 'unistr/u32-strcat'.
6984         * modules/unistr/u32-strcat-tests: New file.
6985         * tests/unistr/test-u32-strcat.c: New file.
6986
6987         Tests for module 'unistr/u16-strcat'.
6988         * modules/unistr/u16-strcat-tests: New file.
6989         * tests/unistr/test-u16-strcat.c: New file.
6990
6991         Tests for module 'unistr/u8-strcat'.
6992         * modules/unistr/u8-strcat-tests: New file.
6993         * tests/unistr/test-u8-strcat.c: New file.
6994         * tests/unistr/test-strcat.h: New file.
6995
6996         Tests for module 'unistr/u32-stpncpy'.
6997         * modules/unistr/u32-stpncpy-tests: New file.
6998         * tests/unistr/test-u32-stpncpy.c: New file.
6999
7000         Tests for module 'unistr/u16-stpncpy'.
7001         * modules/unistr/u16-stpncpy-tests: New file.
7002         * tests/unistr/test-u16-stpncpy.c: New file.
7003
7004         Tests for module 'unistr/u8-stpncpy'.
7005         * modules/unistr/u8-stpncpy-tests: New file.
7006         * tests/unistr/test-u8-stpncpy.c: New file.
7007         * tests/unistr/test-stpncpy.h: New file.
7008
7009         Tests for module 'unistr/u32-strncpy'.
7010         * modules/unistr/u32-strncpy-tests: New file.
7011         * tests/unistr/test-u32-strncpy.c: New file.
7012
7013         Tests for module 'unistr/u16-strncpy'.
7014         * modules/unistr/u16-strncpy-tests: New file.
7015         * tests/unistr/test-u16-strncpy.c: New file.
7016
7017         Tests for module 'unistr/u8-strncpy'.
7018         * modules/unistr/u8-strncpy-tests: New file.
7019         * tests/unistr/test-u8-strncpy.c: New file.
7020         * tests/unistr/test-strncpy.h: New file.
7021
7022         Tests for module 'unistr/u32-stpcpy'.
7023         * modules/unistr/u32-stpcpy-tests: New file.
7024         * tests/unistr/test-u32-stpcpy.c: New file.
7025
7026         Tests for module 'unistr/u16-stpcpy'.
7027         * modules/unistr/u16-stpcpy-tests: New file.
7028         * tests/unistr/test-u16-stpcpy.c: New file.
7029
7030         Tests for module 'unistr/u8-stpcpy'.
7031         * modules/unistr/u8-stpcpy-tests: New file.
7032         * tests/unistr/test-u8-stpcpy.c: New file.
7033         * tests/unistr/test-stpcpy.h: New file.
7034
7035         Tests for module 'unistr/u32-strcpy'.
7036         * modules/unistr/u32-strcpy-tests: New file.
7037         * tests/unistr/test-u32-strcpy.c: New file.
7038
7039         Tests for module 'unistr/u16-strcpy'.
7040         * modules/unistr/u16-strcpy-tests: New file.
7041         * tests/unistr/test-u16-strcpy.c: New file.
7042
7043         Tests for module 'unistr/u8-strcpy'.
7044         * modules/unistr/u8-strcpy-tests: New file.
7045         * tests/unistr/test-u8-strcpy.c: New file.
7046         * tests/unistr/test-strcpy.h: New file.
7047
7048         Tests for module 'unistr/u32-strnlen'.
7049         * modules/unistr/u32-strnlen-tests: New file.
7050         * tests/unistr/test-u32-strnlen.c: New file.
7051
7052         Tests for module 'unistr/u16-strnlen'.
7053         * modules/unistr/u16-strnlen-tests: New file.
7054         * tests/unistr/test-u16-strnlen.c: New file.
7055
7056         Tests for module 'unistr/u8-strnlen'.
7057         * modules/unistr/u8-strnlen-tests: New file.
7058         * tests/unistr/test-u8-strnlen.c: New file.
7059         * tests/unistr/test-strnlen.h: New file.
7060
7061         Tests for module 'unistr/u32-strlen'.
7062         * modules/unistr/u32-strlen-tests: New file.
7063         * tests/unistr/test-u32-strlen.c: New file.
7064
7065         Tests for module 'unistr/u16-strlen'.
7066         * modules/unistr/u16-strlen-tests: New file.
7067         * tests/unistr/test-u16-strlen.c: New file.
7068
7069         Tests for module 'unistr/u8-strlen'.
7070         * modules/unistr/u8-strlen-tests: New file.
7071         * tests/unistr/test-u8-strlen.c: New file.
7072
7073         Tests for module 'unistr/u32-prev'.
7074         * modules/unistr/u32-prev-tests: New file.
7075         * tests/unistr/test-u32-prev.c: New file.
7076
7077         Tests for module 'unistr/u16-prev'.
7078         * modules/unistr/u16-prev-tests: New file.
7079         * tests/unistr/test-u16-prev.c: New file.
7080
7081         Tests for module 'unistr/u8-prev'.
7082         * modules/unistr/u8-prev-tests: New file.
7083         * tests/unistr/test-u8-prev.c: New file.
7084
7085         Tests for module 'unistr/u32-next'.
7086         * modules/unistr/u32-next-tests: New file.
7087         * tests/unistr/test-u32-next.c: New file.
7088
7089         Tests for module 'unistr/u16-next'.
7090         * modules/unistr/u16-next-tests: New file.
7091         * tests/unistr/test-u16-next.c: New file.
7092
7093         Tests for module 'unistr/u8-next'.
7094         * modules/unistr/u8-next-tests: New file.
7095         * tests/unistr/test-u8-next.c: New file.
7096
7097         Tests for module 'unistr/u32-strmbtouc'.
7098         * modules/unistr/u32-strmbtouc-tests: New file.
7099         * tests/unistr/test-u32-strmbtouc.c: New file.
7100
7101         Tests for module 'unistr/u16-strmbtouc'.
7102         * modules/unistr/u16-strmbtouc-tests: New file.
7103         * tests/unistr/test-u16-strmbtouc.c: New file.
7104
7105         Tests for module 'unistr/u8-strmbtouc'.
7106         * modules/unistr/u8-strmbtouc-tests: New file.
7107         * tests/unistr/test-u8-strmbtouc.c: New file.
7108
7109         Tests for module 'unistr/u32-strmblen'.
7110         * modules/unistr/u32-strmblen-tests: New file.
7111         * tests/unistr/test-u32-strmblen.c: New file.
7112
7113         Tests for module 'unistr/u16-strmblen'.
7114         * modules/unistr/u16-strmblen-tests: New file.
7115         * tests/unistr/test-u16-strmblen.c: New file.
7116
7117         Tests for module 'unistr/u8-strmblen'.
7118         * modules/unistr/u8-strmblen-tests: New file.
7119         * tests/unistr/test-u8-strmblen.c: New file.
7120
7121         Tests for module 'unistr/u32-cpy-alloc'.
7122         * modules/unistr/u32-cpy-alloc-tests: New file.
7123         * tests/unistr/test-u32-cpy-alloc.c: New file.
7124
7125         Tests for module 'unistr/u16-cpy-alloc'.
7126         * modules/unistr/u16-cpy-alloc-tests: New file.
7127         * tests/unistr/test-u16-cpy-alloc.c: New file.
7128
7129         Tests for module 'unistr/u8-cpy-alloc'.
7130         * modules/unistr/u8-cpy-alloc-tests: New file.
7131         * tests/unistr/test-u8-cpy-alloc.c: New file.
7132         * tests/unistr/test-cpy-alloc.h: New file.
7133
7134         Tests for module 'unistr/u32-mbsnlen'.
7135         * modules/unistr/u32-mbsnlen-tests: New file.
7136         * tests/unistr/test-u32-mbsnlen.c: New file.
7137
7138         Tests for module 'unistr/u16-mbsnlen'.
7139         * modules/unistr/u16-mbsnlen-tests: New file.
7140         * tests/unistr/test-u16-mbsnlen.c: New file.
7141
7142         Tests for module 'unistr/u8-mbsnlen'.
7143         * modules/unistr/u8-mbsnlen-tests: New file.
7144         * tests/unistr/test-u8-mbsnlen.c: New file.
7145
7146         Tests for module 'unistr/u32-chr'.
7147         * modules/unistr/u32-chr-tests: New file.
7148         * tests/unistr/test-u32-chr.c: New file.
7149
7150         Tests for module 'unistr/u16-chr'.
7151         * modules/unistr/u16-chr-tests: New file.
7152         * tests/unistr/test-u16-chr.c: New file.
7153
7154         Tests for module 'unistr/u8-chr'.
7155         * modules/unistr/u8-chr-tests: New file.
7156         * tests/unistr/test-u8-chr.c: New file.
7157         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
7158
7159         Tests for module 'unistr/u32-cmp2'.
7160         * modules/unistr/u32-cmp2-tests: New file.
7161         * tests/unistr/test-u32-cmp2.c: New file.
7162
7163         Tests for module 'unistr/u16-cmp2'.
7164         * modules/unistr/u16-cmp2-tests: New file.
7165         * tests/unistr/test-u16-cmp2.c: New file.
7166
7167         Tests for module 'unistr/u8-cmp2'.
7168         * modules/unistr/u8-cmp2-tests: New file.
7169         * tests/unistr/test-u8-cmp2.c: New file.
7170         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
7171
7172         Tests for module 'unistr/u32-cmp'.
7173         * modules/unistr/u32-cmp-tests: New file.
7174         * tests/unistr/test-u32-cmp.c: New file.
7175
7176         Tests for module 'unistr/u16-cmp'.
7177         * modules/unistr/u16-cmp-tests: New file.
7178         * tests/unistr/test-u16-cmp.c: New file.
7179
7180         Tests for module 'unistr/u8-cmp'.
7181         * modules/unistr/u8-cmp-tests: New file.
7182         * tests/unistr/test-u8-cmp.c: New file.
7183         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
7184
7185         Tests for module 'unistr/u32-set'.
7186         * modules/unistr/u32-set-tests: New file.
7187         * tests/unistr/test-u32-set.c: New file.
7188
7189         Tests for module 'unistr/u16-set'.
7190         * modules/unistr/u16-set-tests: New file.
7191         * tests/unistr/test-u16-set.c: New file.
7192
7193         Tests for module 'unistr/u8-set'.
7194         * modules/unistr/u8-set-tests: New file.
7195         * tests/unistr/test-u8-set.c: New file.
7196         * tests/unistr/test-set.h: New file.
7197
7198         Tests for module 'unistr/u32-move'.
7199         * modules/unistr/u32-move-tests: New file.
7200         * tests/unistr/test-u32-move.c: New file.
7201
7202         Tests for module 'unistr/u16-move'.
7203         * modules/unistr/u16-move-tests: New file.
7204         * tests/unistr/test-u16-move.c: New file.
7205
7206         Tests for module 'unistr/u8-move'.
7207         * modules/unistr/u8-move-tests: New file.
7208         * tests/unistr/test-u8-move.c: New file.
7209         * tests/unistr/test-move.h: New file.
7210
7211         Tests for module 'unistr/u32-cpy'.
7212         * modules/unistr/u32-cpy-tests: New file.
7213         * tests/unistr/test-u32-cpy.c: New file.
7214
7215         Tests for module 'unistr/u16-cpy'.
7216         * modules/unistr/u16-cpy-tests: New file.
7217         * tests/unistr/test-u16-cpy.c: New file.
7218
7219         Tests for module 'unistr/u8-cpy'.
7220         * modules/unistr/u8-cpy-tests: New file.
7221         * tests/unistr/test-u8-cpy.c: New file.
7222         * tests/unistr/test-cpy.h: New file.
7223
7224 2010-01-09  Bruno Haible  <bruno@clisp.org>
7225
7226         Tests for module 'unistr/u32-uctomb'.
7227         * modules/unistr/u32-uctomb-tests: New file.
7228         * tests/unistr/test-u32-uctomb.c: New file.
7229
7230         Tests for module 'unistr/u16-uctomb'.
7231         * modules/unistr/u16-uctomb-tests: New file.
7232         * tests/unistr/test-u16-uctomb.c: New file.
7233
7234         Tests for module 'unistr/u8-uctomb'.
7235         * modules/unistr/u8-uctomb-tests: New file.
7236         * tests/unistr/test-u8-uctomb.c: New file.
7237
7238         Tests for module 'unistr/u32-mbtoucr'.
7239         * modules/unistr/u32-mbtoucr-tests: New file.
7240         * tests/unistr/test-u32-mbtoucr.c: New file.
7241
7242         Tests for module 'unistr/u16-mbtoucr'.
7243         * modules/unistr/u16-mbtoucr-tests: New file.
7244         * tests/unistr/test-u16-mbtoucr.c: New file.
7245
7246         Tests for module 'unistr/u8-mbtoucr'.
7247         * modules/unistr/u8-mbtoucr-tests: New file.
7248         * tests/unistr/test-u8-mbtoucr.c: New file.
7249
7250         Tests for module 'unistr/u32-mbtouc'.
7251         * modules/unistr/u32-mbtouc-tests: New file.
7252         * tests/unistr/test-u32-mbtouc.c: New file.
7253
7254         Tests for module 'unistr/u16-mbtouc'.
7255         * modules/unistr/u16-mbtouc-tests: New file.
7256         * tests/unistr/test-u16-mbtouc.c: New file.
7257
7258         Tests for module 'unistr/u8-mbtouc'.
7259         * modules/unistr/u8-mbtouc-tests: New file.
7260         * tests/unistr/test-u8-mbtouc.c: New file.
7261
7262         Tests for module 'unistr/u32-mbtouc-unsafe'.
7263         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
7264         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
7265         * tests/unistr/test-u32-mbtouc.h: New file.
7266
7267         Tests for module 'unistr/u16-mbtouc-unsafe'.
7268         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
7269         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
7270         * tests/unistr/test-u16-mbtouc.h: New file.
7271
7272         Tests for module 'unistr/u8-mbtouc-unsafe'.
7273         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
7274         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
7275         * tests/unistr/test-u8-mbtouc.h: New file.
7276
7277         Tests for module 'unistr/u32-mblen'.
7278         * modules/unistr/u32-mblen-tests: New file.
7279         * tests/unistr/test-u32-mblen.c: New file.
7280
7281         Tests for module 'unistr/u16-mblen'.
7282         * modules/unistr/u16-mblen-tests: New file.
7283         * tests/unistr/test-u16-mblen.c: New file.
7284
7285         Tests for module 'unistr/u8-mblen'.
7286         * modules/unistr/u8-mblen-tests: New file.
7287         * tests/unistr/test-u8-mblen.c: New file.
7288
7289         Tests for module 'unistr/u32-to-u16'.
7290         * modules/unistr/u32-to-u16-tests: New file.
7291         * tests/unistr/test-u32-to-u16.c: New file.
7292
7293         Tests for module 'unistr/u32-to-u8'.
7294         * modules/unistr/u32-to-u8-tests: New file.
7295         * tests/unistr/test-u32-to-u8.c: New file.
7296
7297         Tests for module 'unistr/u16-to-u32'.
7298         * modules/unistr/u16-to-u32-tests: New file.
7299         * tests/unistr/test-u16-to-u32.c: New file.
7300
7301         Tests for module 'unistr/u16-to-u8'.
7302         * modules/unistr/u16-to-u8-tests: New file.
7303         * tests/unistr/test-u16-to-u8.c: New file.
7304
7305         Tests for module 'unistr/u8-to-u32'.
7306         * modules/unistr/u8-to-u32-tests: New file.
7307         * tests/unistr/test-u8-to-u32.c: New file.
7308
7309         Tests for module 'unistr/u8-to-u16'.
7310         * modules/unistr/u8-to-u16-tests: New file.
7311         * tests/unistr/test-u8-to-u16.c: New file.
7312
7313         Tests for module 'unistr/u32-check'.
7314         * modules/unistr/u32-check-tests: New file.
7315         * tests/unistr/test-u32-check.c: New file.
7316
7317         Tests for module 'unistr/u16-check'.
7318         * modules/unistr/u16-check-tests: New file.
7319         * tests/unistr/test-u16-check.c: New file.
7320
7321         Tests for module 'unistr/u8-check'.
7322         * modules/unistr/u8-check-tests: New file.
7323         * tests/unistr/test-u8-check.c: New file.
7324
7325         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
7326         (category_equals): New function.
7327         (main): Add more tests.
7328         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
7329
7330         * tests/unictype/test-bidi_byname.c (main): Add more tests.
7331
7332 2010-01-10  Bruno Haible  <bruno@clisp.org>
7333
7334         unistr/u*-strcoll: Try harder to distinguish different strings.
7335         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
7336         compare s1 and s2 to see if they are different.
7337
7338 2010-01-10  Bruno Haible  <bruno@clisp.org>
7339
7340         unistr/u*-stpncpy: Fix the return value.
7341         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
7342         description of the return value consistent with stpncpy in glibc.
7343         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7344         written non-NUL unit.
7345
7346 2010-01-10  Bruno Haible  <bruno@clisp.org>
7347
7348         unistr/u*-next: Add missing dependencies.
7349         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
7350         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
7351         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
7352
7353 2010-01-10  Bruno Haible  <bruno@clisp.org>
7354
7355         unistr/u8-mbsnlen: Fix return value for incomplete character.
7356         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
7357         u8_mblen.
7358         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
7359         Remove unistr/u8-mblen.
7360         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
7361         u16_mblen.
7362         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
7363         Remove unistr/u16-mblen.
7364
7365 2010-01-10  Bruno Haible  <bruno@clisp.org>
7366
7367         wchar: Fix compilation error when <wchar.h> is used from coreutils.
7368         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
7369         Reported by Brian Gough <bjg@gnu.org> and
7370         Chris Clayton <chris2553@googlemail.com> via
7371         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
7372
7373 2010-01-09  Bruno Haible  <bruno@clisp.org>
7374
7375         unistr/u16-to-u32: Reject invalid input.
7376         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
7377         u16_mbtouc.
7378         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
7379         Remove unistr/u16-mbtouc.
7380
7381         unistr/u16-to-u8: Reject invalid input.
7382         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
7383         u16_mbtouc.
7384         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
7385         Remove unistr/u16-mbtouc.
7386
7387         unistr/u8-to-u32: Reject invalid input.
7388         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
7389         u8_mbtouc.
7390         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
7391         Remove unistr/u8-mbtouc.
7392
7393         unistr/u8-to-u16: Reject invalid input.
7394         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
7395         u8_mbtouc.
7396         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
7397         Remove unistr/u8-mbtouc.
7398
7399 2010-01-09  Bruno Haible  <bruno@clisp.org>
7400
7401         Tests for module 'getlogin'.
7402         * modules/getlogin-tests: New file.
7403         * tests/test-getlogin.c: New file.
7404
7405         New module 'getlogin'.
7406         * lib/unistd.in.h (getlogin): New declaration.
7407         * lib/getlogin.c: New file.
7408         * m4/getlogin.m4: New file.
7409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
7410         HAVE_GETLOGIN.
7411         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
7412         HAVE_GETLOGIN.
7413         * modules/getlogin: New file.
7414         * doc/posix-functions/getlogin.texi: Mention the new module.
7415         Reported by John W. Eaton <jwe@gnu.org>.
7416
7417 2010-01-09  Bruno Haible  <bruno@clisp.org>
7418
7419         getlogin_r: Support for native Windows.
7420         * lib/getlogin_r.c: Include <windows.h>
7421         (getlogin_r): Implement for native Windows.
7422         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
7423         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
7424         via John W. Eaton <jwe@gnu.org>.
7425
7426 2010-01-09  Bruno Haible  <bruno@clisp.org>
7427
7428         getlogin_r: Small fixes.
7429         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
7430         succeeds.
7431         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
7432         before testing whether getlogin_r is declared. No need to set
7433         HAVE_DECL_GETLOGIN_R to 1.
7434         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
7435
7436 2010-01-09  Bruno Haible  <bruno@clisp.org>
7437
7438         * lib/unistd.in.h (getlogin_r): Add comment.
7439
7440 2010-01-09  Bruno Haible  <bruno@clisp.org>
7441
7442         Tests for module 'getlogin_r'.
7443         * modules/getlogin_r-tests: New file.
7444         * tests/test-getlogin_r.c: New file.
7445
7446 2010-01-09  Jim Meyering  <meyering@redhat.com>
7447
7448         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
7449         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
7450         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
7451
7452 2010-01-08  Simon Josefsson  <simon@josefsson.org>
7453
7454         * lib/dup2.c (rpl_dup2): Improve comment.
7455
7456 2010-01-08  Eric Blake  <ebb9@byu.net>
7457
7458         maint.mk: allow packages to add makefile @@ exceptions
7459         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
7460         (sc_makefile_check): Rename...
7461         (sc_makefile_at_at_check): ...to this, and use hook.
7462
7463         dup2: work around mingw bug
7464         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
7465         Reported by Simon Josefsson.
7466
7467 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
7468
7469         glob: Fix C++ compilation.
7470         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
7471         C++.
7472
7473 2010-01-07  Bruno Haible  <bruno@clisp.org>
7474
7475         Fix indentation of wctype.in.h, broken since 2007-01-06.
7476         * lib/wctype.in.h: Fix indentation of preprocessor directives.
7477
7478 2010-01-07  Bruno Haible  <bruno@clisp.org>
7479
7480         mbslen: Avoid collision with system function.
7481         * lib/string.in.h [MirBSD]: Include <wchar.h>.
7482         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
7483         * m4/mbslen.m4: New file.
7484         * modules/mbslen (Files): Add it.
7485         (configure.ac): Invoke gl_MBSLEN.
7486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
7487         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
7488         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
7489         via Ian Beckwith <ianb@erislabs.net>.
7490
7491 2010-01-07  Bruno Haible  <bruno@clisp.org>
7492
7493         dirent: Document the last fix.
7494         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
7495
7496 2010-01-07  Bruno Haible  <bruno@clisp.org>
7497
7498         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
7499         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
7500         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
7501         va_list are defined.
7502         * doc/posix-headers/stdio.texi: Document the bug of missing types.
7503         Reported by Eric Blake.
7504
7505 2010-01-07  Bruno Haible  <bruno@clisp.org>
7506
7507         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
7508         * modules/xlist (Depends-on): Add 'list',
7509         * modules/xoset (Depends-on): Add 'oset'.
7510         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7511
7512 2010-01-07  Bruno Haible  <bruno@clisp.org>
7513
7514         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
7515         * doc/posix-functions/strncasecmp.texi: Likewise.
7516
7517 2010-01-07  Bruno Haible  <bruno@clisp.org>
7518
7519         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
7520
7521 2010-01-07  John W. Eaton  <jwe@octave.org>
7522
7523         wctype: allow C++ use
7524         * lib/wctype.in.h: Add extern "C" block for C++.
7525
7526 2010-01-06  Eric Blake  <ebb9@byu.net>
7527
7528         maint.mk: detect incorrect GFDL usage
7529         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
7530
7531 2010-01-06  Jim Meyering  <meyering@redhat.com>
7532         and Eric Blake  <ebb9@byu.net>
7533
7534         maint.mk: ignore multi-line copyright in NEWS
7535         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7536
7537 2010-01-06  Eric Blake  <ebb9@byu.net>
7538
7539         select: add missing dependency
7540         * modules/select-tests (Depends-on): Move sockets dependency...
7541         * modules/select (Depends-on): ...here.
7542         Reported by Ian Beckwith.
7543
7544         doc: regenerate INSTALL
7545         * doc/INSTALL: Reflect recent autoconf update.
7546         * doc/INSTALL.ISO: Likewise.
7547         * doc/INSTALL.UTF-8: Likewise.
7548
7549         pread: fix compilation on glibc
7550         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7551         Reported by Ralf Wildenhues.
7552
7553         dirent: fix test failure
7554         * lib/dirent.in.h (includes): Guarantee ino_t.
7555         Reported by Ralf Wildenhues.
7556
7557 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7558
7559         linkat, renameat: avoid bad free
7560         * lib/at-func2.c (at_func2): Fix typo.
7561         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7562
7563 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7564
7565         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7566         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7567         to avoid failure of symlink test later.
7568
7569 2010-01-06  Eric Blake  <ebb9@byu.net>
7570
7571         stdio, unistd: guarantee ssize_t
7572         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7573         2008 are exposed when needed.
7574         * lib/stdio.in.h (includes): Likewise.
7575         Reported by Ralf Wildenhues.
7576
7577 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7578
7579         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7580         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7581         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7582
7583 2010-01-06  Jim Meyering  <meyering@redhat.com>
7584
7585         readtokens: this module *does* require xalloc.h
7586         It uses only functions that were omitted by the old syntax-check rule.
7587         * lib/readtokens.c: Include "xalloc.h" once again.
7588         * modules/readtokens (Depends-on): Add xalloc.
7589         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7590
7591 2010-01-05  Eric Blake  <ebb9@byu.net>
7592
7593         maint: support 'make announcement' from a VPATH build
7594         * top/maint.mk (announcement): Look for correct NEWS file.
7595
7596 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7597
7598         utimens (fdutimens): ignore a negative FD, per contract
7599         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7600         when we have a valid file descriptor.  Otherwise, using a brand
7601         new glibc (with just-patched futimens that now fails with EBADF)
7602         would cause this function to fail with ENOSYS.
7603         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7604         See also http://bugzilla.redhat.com/552320.
7605
7606 2010-01-05  Eric Blake  <ebb9@byu.net>
7607
7608         strcase: document what it provides
7609         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7610         gnulib module.
7611         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7612         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7613
7614 2010-01-05  Jim Meyering  <meyering@redhat.com>
7615
7616         maint: remove useless inclusions of "xalloc.h"
7617         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7618         * lib/readtokens.c: Likewise.
7619         * lib/same.c: Likewise.
7620         * modules/getloadavg (Depends-on): Remove xalloc.
7621         * modules/readtokens: Likewise.
7622         * modules/same: Likewise.
7623
7624         maint.mk: include 4 more function names in alloca.h-checking regexp
7625         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7626         regexp.  Before, we would give a false-positive (saying alloca.h
7627         is included unnecessarily) when the only uses involved omitted symbols.
7628
7629         xalloc.h: use consistent formatting
7630         * lib/xalloc.h: Move declarations to start in the first column.
7631
7632 2010-01-05  Eric Blake  <ebb9@byu.net>
7633
7634         mkdir: avoid xalloc
7635         * lib/mkdir.c (includes): Drop unused header.
7636         Reported by John W. Eaton.
7637
7638 2010-01-04  Jim Meyering  <meyering@redhat.com>
7639
7640         nl_langinfo: avoid configure-time syntax error
7641         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7642         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7643         the empty string.  Don't let that provoke a shell syntax error.
7644
7645         regcomp, regexec, fnmatch: avoid array bounds read error
7646         * lib/regcomp.c (build_equiv_class): From glibc:
7647         Use only the low 24 bits of a findidx return value as an index
7648         into the weights array.  Patch by Ulrich Drepper:
7649         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7650         * lib/regexec.c (check_node_accept_bytes): Likewise.
7651         * lib/fnmatch_loop.c (FCT): Likewise.
7652
7653         regcomp: skip collseq lookup when there are no rules
7654         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7655         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7656
7657         regcomp: recognize ill-formed { } expressions
7658         * lib/regcomp.c (parse_dup_op): From glibc:
7659         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7660
7661         regcomp: fix typo in comment
7662         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7663         s/satisfy/satisfies/.
7664
7665         regcomp: sync from glibc: remove dead store
7666         * lib/regcomp.c (duplicate_node_closure): Remove useless
7667         search_duplicated_node call and dead store.
7668
7669         regcomp: sync from glibc; always use nl_langinfo
7670         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7671         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7672         * modules/regex (Depends-on): Add nl_langinfo.
7673
7674 2010-01-04  Eric Blake  <ebb9@byu.net>
7675
7676         fdopendir: fix configure test
7677         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7678
7679 2010-01-01  Bruno Haible  <bruno@clisp.org>
7680
7681         wchar: Remove unused configure check.
7682         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7683
7684 2010-01-01  Eric Blake  <ebb9@byu.net>
7685
7686         headers: make check of system header explicit
7687         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7688         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7689         ourselves.
7690         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7691         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7692         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7693         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7694         internals.
7695         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7696         missing.
7697         Suggested by Bruno Haible.
7698
7699 2010-01-01  Jim Meyering  <meyering@redhat.com>
7700
7701         ChangeLog: tweak to eliminate unnecessary copyright line
7702         * ChangeLog: Remove a copyright line that was mistakenly updated
7703         by today's update-copyright run.  Reported by Eric Blake.
7704
7705         test-update-copyright: don't let envvar setting cause test failure
7706         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7707
7708 2010-01-01  Bruno Haible  <bruno@clisp.org>
7709
7710         localename: Avoid gcc warning.
7711         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7712         function if it is not used.
7713
7714 2010-01-01  Jim Meyering  <meyering@redhat.com>
7715
7716         update nearly all FSF copyright year lists to include 2010
7717         Use the same procedure as for 2009, outlined in
7718         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7719
7720         version-etc: set COPYRIGHT_YEAR to 2010
7721         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
7722
7723 2009-12-31  Eric Blake  <ebb9@byu.net>
7724
7725         doc: correct availability of cygwin 1.5.x getopt
7726         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
7727         variables.
7728         * doc/posix-functions/opterr.texi (opterr): Likewise.
7729         * doc/posix-functions/optind.texi (optind): Likewise.
7730         * doc/posix-functions/optopt.texi (optopt): Likewise.
7731         * doc/posix-functions/tzname.texi (tzname): Likewise.
7732
7733         openat: update maintainer
7734         * modules/openat (Maintainer): Add myself.
7735
7736         utimens: avoid shadowing warning
7737         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
7738         buffers into one, to avoid shadowing, as well as avoiding a
7739         redundant stat.
7740         Reported by Jim Meyering.
7741
7742         test-dup2: avoid compiler warning
7743         * tests/test-dup2.c (is_inheritable): Only define if used.
7744
7745 2010-01-01  Bruno Haible  <bruno@clisp.org>
7746
7747         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
7748         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
7749         defined, use wctomb instead of wcrtomb.
7750
7751 2010-01-01  Bruno Haible  <bruno@clisp.org>
7752
7753         iconv: Reject native Solaris iconv.
7754         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
7755         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
7756
7757 2009-12-31  Bruno Haible  <bruno@clisp.org>
7758
7759         * tests/test-signal.c (main): Remove test of 'SIG'.
7760
7761 2009-12-31  Bruno Haible  <bruno@clisp.org>
7762
7763         spawn: Fix incomplete fix.
7764         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7765         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7766         warnings for GNULIB_POSIXCHECK again.
7767         Reported by Eric Blake.
7768
7769 2009-12-31  Bruno Haible  <bruno@clisp.org>
7770
7771         Avoid namespace pollution on glibc systems.
7772         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
7773         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
7774         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
7775         glibc systems.
7776
7777 2009-12-31  Bruno Haible  <bruno@clisp.org>
7778
7779         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
7780         (gl_REPLACE_WCHAR_H): Turn into a no-op.
7781         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
7782         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7783         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7784         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7785         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7786
7787 2009-12-31  Bruno Haible  <bruno@clisp.org>
7788
7789         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7790         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
7791         afterwards.
7792
7793 2009-12-31  Bruno Haible  <bruno@clisp.org>
7794
7795         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
7796         SYS_UTSNAME_H.
7797
7798 2009-12-31  Bruno Haible  <bruno@clisp.org>
7799
7800         spawn: Fix misapplied patch.
7801         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7802         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7803         warnings for GNULIB_POSIXCHECK.
7804
7805 2009-12-31  Bruno Haible  <bruno@clisp.org>
7806
7807         times: Update after sys_times changed.
7808         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
7809         * modules/times (Files): Add it.
7810         (configure.ac): Invoke gl_FUNC_TIMES.
7811
7812 2009-12-31  Bruno Haible  <bruno@clisp.org>
7813
7814         Use AC_C_INLINE where necessary.
7815         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
7816         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7817         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7818         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7819         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7820         * m4/mbiter.m4 (gl_MBITER): Likewise.
7821         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7822         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7823         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
7824         * modules/u64 (configure.ac): Likewise.
7825
7826 2009-12-31  Bruno Haible  <bruno@clisp.org>
7827
7828         Use AC_C_INLINE instead of module 'inline' where possible.
7829         * modules/inline (Description): Clarify purpose.
7830         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
7831         * modules/count-one-bits (Depends-on): Remove inline.
7832         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
7833         * modules/openat (Depends-on): Remove inline.
7834         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
7835         instead of depending on module 'inline'.
7836         * modules/filevercmp (Depends-on, configure.ac): Likewise.
7837         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
7838         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
7839         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
7840         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
7841         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
7842         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
7843         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
7844         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
7845         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
7846         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
7847         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
7848         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
7849         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
7850         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
7851         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
7852         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
7853         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
7854         Likewise.
7855         * modules/unictype/property-ascii-hex-digit (Depends-on,
7856         configure.ac): Likewise.
7857         * modules/unictype/property-bidi-arabic-digit (Depends-on,
7858         configure.ac): Likewise.
7859         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
7860         configure.ac): Likewise.
7861         * modules/unictype/property-bidi-block-separator (Depends-on,
7862         configure.ac): Likewise.
7863         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
7864         configure.ac): Likewise.
7865         * modules/unictype/property-bidi-common-separator (Depends-on,
7866         configure.ac): Likewise.
7867         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
7868         Likewise.
7869         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
7870         configure.ac): Likewise.
7871         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
7872         configure.ac): Likewise.
7873         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
7874         configure.ac): Likewise.
7875         * modules/unictype/property-bidi-european-digit (Depends-on,
7876         configure.ac): Likewise.
7877         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
7878         configure.ac): Likewise.
7879         * modules/unictype/property-bidi-left-to-right (Depends-on,
7880         configure.ac): Likewise.
7881         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
7882         configure.ac): Likewise.
7883         * modules/unictype/property-bidi-other-neutral (Depends-on,
7884         configure.ac): Likewise.
7885         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
7886         Likewise.
7887         * modules/unictype/property-bidi-segment-separator (Depends-on,
7888         configure.ac): Likewise.
7889         * modules/unictype/property-bidi-whitespace (Depends-on,
7890         configure.ac): Likewise.
7891         * modules/unictype/property-combining (Depends-on, configure.ac):
7892         Likewise.
7893         * modules/unictype/property-composite (Depends-on, configure.ac):
7894         Likewise.
7895         * modules/unictype/property-currency-symbol (Depends-on,
7896         configure.ac): Likewise.
7897         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
7898         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
7899         Likewise.
7900         * modules/unictype/property-default-ignorable-code-point (Depends-on,
7901         configure.ac): Likewise.
7902         * modules/unictype/property-deprecated (Depends-on, configure.ac):
7903         Likewise.
7904         * modules/unictype/property-diacritic (Depends-on, configure.ac):
7905         Likewise.
7906         * modules/unictype/property-extender (Depends-on, configure.ac):
7907         Likewise.
7908         * modules/unictype/property-format-control (Depends-on, configure.ac):
7909         Likewise.
7910         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
7911         Likewise.
7912         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
7913         Likewise.
7914         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
7915         Likewise.
7916         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
7917         Likewise.
7918         * modules/unictype/property-hyphen (Depends-on, configure.ac):
7919         Likewise.
7920         * modules/unictype/property-id-continue (Depends-on, configure.ac):
7921         Likewise.
7922         * modules/unictype/property-id-start (Depends-on, configure.ac):
7923         Likewise.
7924         * modules/unictype/property-ideographic (Depends-on, configure.ac):
7925         Likewise.
7926         * modules/unictype/property-ids-binary-operator (Depends-on,
7927         configure.ac): Likewise.
7928         * modules/unictype/property-ids-trinary-operator (Depends-on,
7929         configure.ac): Likewise.
7930         * modules/unictype/property-ignorable-control (Depends-on,
7931         configure.ac): Likewise.
7932         * modules/unictype/property-iso-control (Depends-on, configure.ac):
7933         Likewise.
7934         * modules/unictype/property-join-control (Depends-on, configure.ac):
7935         Likewise.
7936         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
7937         Likewise.
7938         * modules/unictype/property-line-separator (Depends-on, configure.ac):
7939         Likewise.
7940         * modules/unictype/property-logical-order-exception (Depends-on,
7941         configure.ac): Likewise.
7942         * modules/unictype/property-lowercase (Depends-on, configure.ac):
7943         Likewise.
7944         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
7945         * modules/unictype/property-non-break (Depends-on, configure.ac):
7946         Likewise.
7947         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
7948         Likewise.
7949         * modules/unictype/property-numeric (Depends-on, configure.ac):
7950         Likewise.
7951         * modules/unictype/property-other-alphabetic (Depends-on,
7952         configure.ac): Likewise.
7953         * modules/unictype/property-other-default-ignorable-code-point
7954         (Depends-on, configure.ac): Likewise.
7955         * modules/unictype/property-other-grapheme-extend (Depends-on,
7956         configure.ac): Likewise.
7957         * modules/unictype/property-other-id-continue (Depends-on,
7958         configure.ac): Likewise.
7959         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
7960         Likewise.
7961         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
7962         Likewise.
7963         * modules/unictype/property-other-math (Depends-on, configure.ac):
7964         Likewise.
7965         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
7966         Likewise.
7967         * modules/unictype/property-paired-punctuation (Depends-on,
7968         configure.ac): Likewise.
7969         * modules/unictype/property-paragraph-separator (Depends-on,
7970         configure.ac): Likewise.
7971         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
7972         Likewise.
7973         * modules/unictype/property-pattern-white-space (Depends-on,
7974         configure.ac): Likewise.
7975         * modules/unictype/property-private-use (Depends-on, configure.ac):
7976         Likewise.
7977         * modules/unictype/property-punctuation (Depends-on, configure.ac):
7978         Likewise.
7979         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
7980         Likewise.
7981         * modules/unictype/property-radical (Depends-on, configure.ac):
7982         Likewise.
7983         * modules/unictype/property-sentence-terminal (Depends-on,
7984         configure.ac): Likewise.
7985         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
7986         Likewise.
7987         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
7988         * modules/unictype/property-terminal-punctuation (Depends-on,
7989         configure.ac): Likewise.
7990         * modules/unictype/property-titlecase (Depends-on, configure.ac):
7991         Likewise.
7992         * modules/unictype/property-unassigned-code-value (Depends-on,
7993         configure.ac): Likewise.
7994         * modules/unictype/property-unified-ideograph (Depends-on,
7995         configure.ac): Likewise.
7996         * modules/unictype/property-uppercase (Depends-on, configure.ac):
7997         Likewise.
7998         * modules/unictype/property-variation-selector (Depends-on,
7999         configure.ac): Likewise.
8000         * modules/unictype/property-white-space (Depends-on, configure.ac):
8001         Likewise.
8002         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
8003         Likewise.
8004         * modules/unictype/property-xid-start (Depends-on, configure.ac):
8005         Likewise.
8006         * modules/unictype/property-zero-width (Depends-on, configure.ac):
8007         Likewise.
8008         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
8009         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
8010         Likewise.
8011
8012 2009-12-31  Bruno Haible  <bruno@clisp.org>
8013
8014         Remove unnecessary AC_C_INLINE invocation.
8015         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
8016         since 2009-08-21.
8017
8018 2009-12-31  Jim Meyering  <meyering@redhat.com>
8019
8020         maint.mk: don't require explicit gpg_key_ID in cfg.mk
8021         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
8022         With this change, we can all remove the gpg_key_ID = ... definition
8023         from our respective cfg.mk files.
8024
8025         maint.mk: create announcement template in ~/, not in /tmp
8026         * top/maint.mk (emit_upload_commands): Adjust.
8027         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
8028         Remove temporary file, .ci-msg.
8029
8030 2009-12-31  Eric Blake  <ebb9@byu.net>
8031
8032         link-warning: always build headers with link warnings
8033         * modules/arpa_inet (Makefile.am): Always build replacement
8034         header.
8035         * modules/ctype (Makefile.am): Likewise.
8036         * modules/dirent (Makefile.am): Likewise.
8037         * modules/inttypes (Makefile.am): Likewise.
8038         * modules/langinfo (Makefile.am): Likewise.
8039         * modules/locale (Makefile.am): Likewise.
8040         * modules/spawn (Makefile.am): Likewise.
8041         * modules/sys_file (Makefile.am): Likewise.
8042         * modules/sys_ioctl (Makefile.am): Likewise.
8043         * modules/sys_select (Makefile.am): Likewise.
8044         * modules/sys_socket (Makefile.am): Likewise.
8045         * modules/sys_times (Makefile.am): Likewise.
8046         * modules/sys_utsname (Makefile.am): Likewise.
8047         * modules/sys_wait (Makefile.am): Likewise.
8048         * modules/wchar (Makefile.am): Likewise.
8049         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
8050         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
8051         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
8052         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
8053         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
8054         Likewise.
8055         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8056         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8057         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
8058         Likewise.
8059         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
8060         Likewise.
8061         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8062         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
8063         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
8064         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8065         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8066         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8067         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8068         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
8069         (gl_WCHAR_H_DEFAULTS): Likewise.
8070
8071 2009-12-31  Eric Blake  <ebb9@byu.net>
8072
8073         signal, spawn: use link warnings
8074         * lib/signal.in.h (sigset_t): Make unconditional.
8075         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
8076         (sigpending, sigprocmask, sigaction): Add link warnings.
8077         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
8078         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
8079         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
8080         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
8081         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
8082         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
8083         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
8084         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
8085         (posix_spawn_file_actions_destroy)
8086         (posix_spawn_file_actions_addopen)
8087         (posix_spawn_file_actions_addclose)
8088         (posix_spawn_file_actions_adddup2): Likewise.
8089         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
8090         * tests/test-signal.c (main): Enhance test.
8091
8092         spawn: improve wrapper support
8093         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
8094         (gl_SPAWN_H_DEFAULTS): New defaults.
8095         * modules/spawn (Makefile.am): Substitute them.
8096         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
8097         Only declare if missing or broken.
8098
8099         sys_times, sys_utsname: use include_next
8100         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
8101         header.
8102         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
8103         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8104         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8105         * modules/sys_times (Depends-on): Add include_next.
8106         (Makefile.am): Substitute additional values.
8107         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8108         * lib/sys_times.in.h (includes): Include native header, if
8109         available.
8110         * lib/sys_utsname.in.h (includes): Likewise.
8111         * tests/test-sys_times.c (main): Enhance test.
8112
8113         fdutimensat: revert prior patch
8114         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
8115         utimens.h.
8116         Reported by Bruno Haible.
8117
8118 2009-12-30  Eric Blake  <ebb9@byu.net>
8119
8120         sys_wait: drop link-warning dependency
8121         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
8122         link-warning efforts.
8123         * lib/sys_wait.in.h: Likewise.
8124
8125         fdutimensat: remove bogus dependency
8126         * modules/fdutimensat (Depends-on): Drop inline.
8127
8128         unistd: fix typo
8129         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
8130
8131 2009-12-30  Bruno Haible  <bruno@clisp.org>
8132
8133         Fix compilation error with Solaris cc.
8134         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
8135         * lib/unicase/u16-is-invariant.c: Likewise.
8136         * lib/unicase/u32-is-invariant.c: Likewise.
8137         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8138
8139 2009-12-30  Bruno Haible  <bruno@clisp.org>
8140
8141         Fix test crash.
8142         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
8143         locales.
8144         Reported by Simon Josefsson <simon@josefsson.org>.
8145
8146 2009-12-30  Bruno Haible  <bruno@clisp.org>
8147
8148         Fix compilation error on most platforms.
8149         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
8150         Reported by Simon Josefsson <simon@josefsson.org>
8151         and Nelson H. F. Beebe <beebe@math.utah.edu>.
8152
8153 2009-12-30  Eric Blake  <ebb9@byu.net>
8154
8155         futimens, utimensat: work around ntfs-3g bug
8156         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
8157         a ctime bug is present, and expand workaround to cover ntfs-3g.
8158         * lib/utimens.c (fdutimens, lutimens): Likewise.
8159         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
8160         (validate_timespec): Adjust return value.
8161         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
8162         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8163         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
8164
8165 2009-12-29  Eric Blake  <ebb9@byu.net>
8166
8167         link-warning: make usage consistent
8168         * modules/ctype (Depends-on): Add link-warning.
8169         (Makefile.am): Update rules accordingly.
8170         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8171         * modules/locale (Depends-on, Makefile.am): Likewise.
8172         * modules/sys_file (Makefile.am): Likewise.
8173         * modules/getopt-posix (Makefile.am): Delete unused link warning
8174         efforts.
8175         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
8176         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
8177         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
8178         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
8179
8180         stdio: remove unused variables
8181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
8182         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
8183         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8184
8185         tests: test more substitute headers
8186         * modules/ctype-tests: New file.
8187         * modules/dirent-tests: Likewise.
8188         * modules/spawn-tests: Likewise.
8189         * modules/sys_file-tests: Likewise.
8190         * modules/sys_ioctl-tests: Likewise.
8191         * modules/sys_wait-tests: Likewise.
8192         * tests/test-ctype.c: Likewise.
8193         * tests/test-dirent.c: Likewise.
8194         * tests/test-spawn.c: Likewise.
8195         * tests/test-sys_file.c: Likewise.
8196         * tests/test-sys_ioctl.c: Likewise.
8197         * tests/test-sys_wait.c: Likewise.
8198         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
8199         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
8200         whether or not flock is in use.
8201
8202         tests: remove License section from module
8203         * modules/arpa_inet-tests: Remove unneeded section.
8204         * modules/byteswap-tests: Likewise.
8205         * modules/ceilf-tests: Likewise.
8206         * modules/ceill-tests: Likewise.
8207         * modules/crypto/des-tests: Likewise.
8208         * modules/crypto/gc-arcfour-tests: Likewise.
8209         * modules/crypto/gc-arctwo-tests: Likewise.
8210         * modules/crypto/gc-des-tests: Likewise.
8211         * modules/crypto/gc-hmac-md5-tests: Likewise.
8212         * modules/crypto/gc-hmac-sha1-tests: Likewise.
8213         * modules/crypto/gc-md2-tests: Likewise.
8214         * modules/crypto/gc-md4-tests: Likewise.
8215         * modules/crypto/gc-md5-tests: Likewise.
8216         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
8217         * modules/crypto/gc-rijndael-tests: Likewise.
8218         * modules/crypto/gc-sha1-tests: Likewise.
8219         * modules/crypto/gc-tests: Likewise.
8220         * modules/crypto/md2-tests: Likewise.
8221         * modules/crypto/md4-tests: Likewise.
8222         * modules/fcntl-h-tests: Likewise.
8223         * modules/floorf-tests: Likewise.
8224         * modules/floorl-tests: Likewise.
8225         * modules/frexp-nolibm-tests: Likewise.
8226         * modules/frexp-tests: Likewise.
8227         * modules/frexpl-nolibm-tests: Likewise.
8228         * modules/frexpl-tests: Likewise.
8229         * modules/getaddrinfo-tests: Likewise.
8230         * modules/inttypes-tests: Likewise.
8231         * modules/isfinite-tests: Likewise.
8232         * modules/isinf-tests: Likewise.
8233         * modules/ldexpl-tests: Likewise.
8234         * modules/locale-tests: Likewise.
8235         * modules/math-tests: Likewise.
8236         * modules/netdb-tests: Likewise.
8237         * modules/netinet_in-tests: Likewise.
8238         * modules/printf-frexp-tests: Likewise.
8239         * modules/printf-frexpl-tests: Likewise.
8240         * modules/priv-set-tests: Likewise.
8241         * modules/random_r-tests: Likewise.
8242         * modules/round-tests: Likewise.
8243         * modules/roundf-tests: Likewise.
8244         * modules/roundl-tests: Likewise.
8245         * modules/search-tests: Likewise.
8246         * modules/select-tests: Likewise.
8247         * modules/signal-tests: Likewise.
8248         * modules/stdbool-tests: Likewise.
8249         * modules/stddef-tests: Likewise.
8250         * modules/stdint-tests: Likewise.
8251         * modules/stdio-tests: Likewise.
8252         * modules/stdlib-tests: Likewise.
8253         * modules/string-tests: Likewise.
8254         * modules/strings-tests: Likewise.
8255         * modules/sys_select-tests: Likewise.
8256         * modules/sys_socket-tests: Likewise.
8257         * modules/sys_stat-tests: Likewise.
8258         * modules/sys_time-tests: Likewise.
8259         * modules/sys_utsname-tests: Likewise.
8260         * modules/sysexits-tests: Likewise.
8261         * modules/time-tests: Likewise.
8262         * modules/trunc-tests: Likewise.
8263         * modules/truncf-tests: Likewise.
8264         * modules/truncl-tests: Likewise.
8265         * modules/tsearch-tests: Likewise.
8266         * modules/unistd-tests: Likewise.
8267         * modules/wchar-tests: Likewise.
8268         * modules/wctype-tests: Likewise.
8269
8270         tests: fix license on several tests
8271         * tests/test-des.c: Update to GPLv3+.
8272         * tests/test-flock.c: Likewise.
8273         * tests/test-fsync.c: Likewise.
8274         * tests/test-futimens.h: Likewise.
8275         * tests/test-gc-arcfour.c: Likewise.
8276         * tests/test-gc-arctwo.c: Likewise.
8277         * tests/test-gc-des.c: Likewise.
8278         * tests/test-gc-hmac-md5.c: Likewise.
8279         * tests/test-gc-hmac-sha1.c: Likewise.
8280         * tests/test-gc-md2.c: Likewise.
8281         * tests/test-gc-md4.c: Likewise.
8282         * tests/test-gc-md5.c: Likewise.
8283         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8284         * tests/test-gc-rijndael.c: Likewise.
8285         * tests/test-gc-sha1.c: Likewise.
8286         * tests/test-gc.c: Likewise.
8287         * tests/test-getcwd.c: Likewise.
8288         * tests/test-link.c: Likewise.
8289         * tests/test-link.h: Likewise.
8290         * tests/test-lutimens.h: Likewise.
8291         * tests/test-md2.c: Likewise.
8292         * tests/test-md4.c: Likewise.
8293         * tests/test-mkdir.h: Likewise.
8294         * tests/test-rename.c: Likewise.
8295         * tests/test-rename.h: Likewise.
8296         * tests/test-safe-alloc.c: Likewise.
8297         * tests/test-utimens-common.h: Likewise.
8298         * tests/test-utimens.h: Likewise.
8299
8300         maint: sync license texts
8301         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
8302         * doc/gpl-3.0.texi: Revert copyright year update.
8303         * doc/lgpl-3.0.texi: Likewise.
8304
8305 2009-12-29  Jim Meyering  <meyering@redhat.com>
8306
8307         update nearly all FSF copyright year lists to include 2009
8308         The files named by the following are exempted:
8309             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
8310               test -f "$dst" && { echo "$dst"; continue; }
8311               test -d "$dst" || continue
8312               echo "$dst"/$(basename "$src")
8313             done > exempt
8314             git ls-files tests/unictype >> exempt
8315         In the remaining files, convert to all-interval notation if
8316         - there is already at least one year interval like 2000-2003
8317         - the file is maintained by me
8318         - the file is in lib/uni*/, where that style already prevails
8319         Otherwise, use update-copyright's default.
8320
8321 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8322         and Eric Blake  <ebb9@byu.net>
8323
8324         tests: don't require debug system() to pass
8325         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
8326         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8327         * tests/test-unlink.h (test_unlink_func): Likewise.
8328         * tests/test-fstatat.c (main): ...into callers.
8329         * tests/test-lstat.c (main): Likewise.
8330         * tests/test-rmdir.c (main): Likewise.
8331         * tests/test-unlink.c (main): Likewise.
8332         * tests/test-unlinkat.c (main): Likewise.
8333         * tests/test-areadlink-with-size.c (main): Don't require a
8334         debug-only system call to pass, aiding cross-testing to mingw.
8335         * tests/test-areadlink.c (main): Likewise.
8336         * tests/test-areadlinkat-with-size.c (main): Likewise.
8337         * tests/test-areadlinkat.c (main): Likewise.
8338         * tests/test-canonicalize-lgpl.c (main): Likewise.
8339         * tests/test-canonicalize.c (main): Likewise.
8340         * tests/test-chown.c (main): Likewise.
8341         * tests/test-fchownat.c (main): Likewise.
8342         * tests/test-lchown.c (main): Likewise.
8343         * tests/test-fdutimensat.c (main): Likewise.
8344         * tests/test-futimens.c (main): Likewise.
8345         * tests/test-link.c (main): Likewise.
8346         * tests/test-linkat.c (main): Likewise.
8347         * tests/test-mkdir.c (main): Likewise.
8348         * tests/test-mkdirat.c (main): Likewise.
8349         * tests/test-mkfifo.c (main): Likewise.
8350         * tests/test-mkfifoat.c (main): Likewise.
8351         * tests/test-mknod.c (main): Likewise.
8352         * tests/test-readlink.c (main): Likewise.
8353         * tests/test-remove.c (main): Likewise.
8354         * tests/test-rename.c (main): Likewise.
8355         * tests/test-renameat.c (main): Likewise.
8356         * tests/test-symlink.c (main): Likewise.
8357         * tests/test-symlinkat.c (main): Likewise.
8358         * tests/test-utimens.c (main): Likewise.
8359         * tests/test-utimensat.c (main): Likewise.
8360
8361 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8362
8363         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
8364         on $(UNUSED_PARAMETER_H) to avoid build failure.
8365
8366 2009-12-28  Jim Meyering  <meyering@redhat.com>
8367
8368         update-copyright: you may specify a max. line length other than 72
8369         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8370
8371         maint: use consistent FSF copyright line syntax
8372         * lib/posixtm.c: Add missing comma in FSF copyright line.
8373         * lib/posixtm.h: Likewise.
8374         * lib/getugroups.c: Add missing ", Inc.".
8375
8376         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
8377         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
8378         FSF copyright line.  Remove trailing blanks.
8379
8380 2009-12-28  Eric Blake  <ebb9@byu.net>
8381
8382         test-dup2: reduce dependencies
8383         * modules/cloexec (Configure.ac): Set witness.
8384         * modules/dup2-tests (Depends-on): Drop cloexec.
8385         * tests/test-dup2.c (main): Skip portion of test if cloexec module
8386         not present.
8387         Suggested by Bruno Haible.
8388
8389 2009-12-26  Bruno Haible  <bruno@clisp.org>
8390
8391         Remove an unneeded dependency.
8392         * modules/fseterr (Depends-on): Remove dup2.
8393
8394 2009-12-26  Eric Blake  <ebb9@byu.net>
8395
8396         tests: use macros.h in more places
8397         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
8398         (ASSERT_STREAM): Provide default of stderr.
8399         * tests/test-dirent-safer.c: Include macros.h, using alternate
8400         stream for assertions.
8401         * tests/test-dup-safer.c: Likewise.
8402         * tests/test-freopen-safer.c: Likewise.
8403         * tests/test-getopt.c: Likewise.
8404         * tests/test-openat-safer.c: Likewise.
8405         * tests/test-pipe.c: Likewise.
8406         * tests/test-popen-safer.c: Likewise.
8407         * modules/dirent-safer-tests (Files): Include macros.h.
8408         * modules/unistd-safer-tests (Files): Likewise.
8409         * modules/freopen-safer-tests (Files): Likewise.
8410         * modules/getopt-posix-tests (Files): Likewise.
8411         * modules/openat-safer-tests (Files): Likewise.
8412         * modules/pipe-tests (Files): Likewise.
8413
8414 2009-12-26  Bruno Haible  <bruno@clisp.org>
8415
8416         javacomp: Portability fix.
8417         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
8418         that it also works on Solaris.
8419
8420 2009-12-26  Bruno Haible  <bruno@clisp.org>
8421
8422         localename: Fix storage allocation of gl_locale_name_thread's result.
8423         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
8424         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
8425         all platforms that have 'uselocale'.
8426         (gl_locale_name_thread_unsafe): New function, extracted from
8427         gl_locale_name_thread.
8428         (gl_locale_name_thread): Call struniq on all platforms that have
8429         'uselocale'.
8430         * tests/test-localename.c (test_locale_name_thread): Check that the
8431         resulting strings are permanently allocated.
8432         * modules/localename-tests (Depends-on): Add strdup.
8433
8434 2009-12-26  Bruno Haible  <bruno@clisp.org>
8435
8436         * tests/test-localename.c (categories): Fill in the strings.
8437
8438 2009-12-26  Jim Meyering  <meyering@redhat.com>
8439
8440         isdir: complete the removal of m4/isdir.m4
8441         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
8442
8443         isdir: clean up, since at least grep still uses it
8444         * lib/isdir.c: Include "isdir.h".
8445         (S_ISDIR): Remove now-unneeded definition.
8446         * modules/isdir (Files): Add lib/isdir.h.
8447         * lib/isdir.h: New file, with declaration.
8448         * m4/isdir.m4: Remove file -- unneeded.
8449
8450 2009-12-25  Bruno Haible  <bruno@clisp.org>
8451
8452         selinux-h: Make generated .h files standalone.
8453         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
8454         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
8455         * lib/se-selinux.in.h: Likewise.
8456         * modules/selinux-h (Depends-on): Add unused-parameter.
8457         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
8458         selinux/selinux.h and selinux/context.h.
8459         Suggested by Eric Blake.
8460
8461 2009-12-25  Bruno Haible  <bruno@clisp.org>
8462
8463         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
8464         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
8465         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
8466         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
8467         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
8468
8469 2009-12-24  Bruno Haible  <bruno@clisp.org>
8470
8471         openat: Fix warning.
8472         * lib/openat-proc.c: Include <unistd.h>.
8473
8474 2009-12-24  Bruno Haible  <bruno@clisp.org>
8475
8476         New module 'unused-parameter'.
8477         * build-aux/unused-parameter.h: New file, extracted from earlier
8478         gnulib-common.m4.
8479         * modules/unused-parameter: New file.
8480         * lib/unistr.h: Include unused-parameter.h.
8481         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
8482         _GL_UNUSED.
8483         * modules/unistr/base (Depends-on): Add unused-parameter.
8484
8485 2009-12-24  Bruno Haible  <bruno@clisp.org>
8486
8487         Add missing dependencies to 'extensions' module.
8488         * m4/extensions.m4: Add comment.
8489         * modules/accept4 (Depends-on): Add extensions.
8490         * modules/dup3 (Depends-on): Likewise.
8491         * modules/fcntl (Depends-on): Likewise.
8492         * modules/futimens (Depends-on): Likewise.
8493         * modules/mknod (Depends-on): Likewise.
8494         * modules/pipe2 (Depends-on): Likewise.
8495         * modules/stat-time (Depends-on): Likewise.
8496         * modules/strcasestr-simple (Depends-on): Likewise.
8497         * modules/strsignal (Depends-on): Likewise.
8498         * modules/utimensat (Depends-on): Likewise.
8499         * modules/localcharset (Depends-on): Likewise. Needed because of
8500         gl_FCNTL_O_FLAGS.
8501         * modules/wcrtomb (Depends-on): Likewise. Needed because of
8502         AC_TYPE_MBSTATE_T.
8503         * modules/wcsnrtombs (Depends-on): Likewise.
8504         * modules/wcsrtombs (Depends-on): Likewise.
8505
8506 2009-12-24  Bruno Haible  <bruno@clisp.org>
8507
8508         binary-io: Avoid gcc warning due to SET_BINARY.
8509         * lib/binary-io.h (SET_BINARY): Cast the result to void.
8510         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
8511
8512 2009-12-24  Bruno Haible  <bruno@clisp.org>
8513
8514         Avoid future namespace pollution on glibc systems.
8515         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
8516         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
8517         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
8518         glibc systems.
8519
8520 2009-12-24  Bruno Haible  <bruno@clisp.org>
8521
8522         Refactor common macros used in tests.
8523         * tests/macros.h: New file.
8524         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
8525         and/or <stdlib.h>, if appropriate.
8526         (ASSERT, SIZEOF): Remove macros.
8527         * tests/test-areadlink-with-size.c: Likewise.
8528         * tests/test-areadlinkat.c: Likewise.
8529         * tests/test-areadlinkat-with-size.c: Likewise.
8530         * tests/test-argmatch.c: Likewise.
8531         * tests/test-argv-iter.c: Likewise.
8532         * tests/test-array-mergesort.c: Likewise.
8533         * tests/test-array_list.c: Likewise.
8534         * tests/test-array_oset.c: Likewise.
8535         * tests/test-avltree_list.c: Likewise.
8536         * tests/test-avltree_oset.c: Likewise.
8537         * tests/test-avltreehash_list.c: Likewise.
8538         * tests/test-base64.c: Likewise.
8539         * tests/test-binary-io.c: Likewise.
8540         * tests/test-bitrotate.c: Likewise.
8541         * tests/test-btowc.c: Likewise.
8542         * tests/test-byteswap.c: Likewise.
8543         * tests/test-c-ctype.c: Likewise.
8544         * tests/test-c-stack.c: Likewise.
8545         * tests/test-c-strcasecmp.c: Likewise.
8546         * tests/test-c-strcasestr.c: Likewise.
8547         * tests/test-c-strncasecmp.c: Likewise.
8548         * tests/test-c-strstr.c: Likewise.
8549         * tests/test-canonicalize-lgpl.c: Likewise.
8550         * tests/test-canonicalize.c: Likewise.
8551         * tests/test-carray_list.c: Likewise.
8552         * tests/test-ceilf1.c: Likewise.
8553         * tests/test-ceilf2.c: Likewise.
8554         * tests/test-ceill.c: Likewise.
8555         * tests/test-chown.c: Likewise.
8556         * tests/test-cloexec.c: Likewise.
8557         * tests/test-copy-acl.c: Likewise.
8558         * tests/test-copy-file.c: Likewise.
8559         * tests/test-count-one-bits.c: Likewise.
8560         * tests/test-dprintf-posix.c: Likewise.
8561         * tests/test-dup2.c: Likewise.
8562         * tests/test-dup3.c: Likewise.
8563         * tests/test-duplocale.c: Likewise.
8564         * tests/test-fbufmode.c: Likewise.
8565         * tests/test-fchdir.c: Likewise.
8566         * tests/test-fchownat.c: Likewise.
8567         * tests/test-fcntl-safer.c: Likewise.
8568         * tests/test-fcntl.c: Likewise.
8569         * tests/test-fdopendir.c: Likewise.
8570         * tests/test-fdutimensat.c: Likewise.
8571         * tests/test-fflush2.c: Likewise.
8572         * tests/test-file-has-acl.c: Likewise.
8573         * tests/test-filevercmp.c: Likewise.
8574         * tests/test-flock.c: Likewise.
8575         * tests/test-floorf1.c: Likewise.
8576         * tests/test-floorf2.c: Likewise.
8577         * tests/test-floorl.c: Likewise.
8578         * tests/test-fnmatch.c: Likewise.
8579         * tests/test-fopen.h: Likewise.
8580         * tests/test-fpending.c: Likewise.
8581         * tests/test-fprintf-posix.c: Likewise.
8582         * tests/test-fpurge.c: Likewise.
8583         * tests/test-freadable.c: Likewise.
8584         * tests/test-freadahead.c: Likewise.
8585         * tests/test-freading.c: Likewise.
8586         * tests/test-freadptr.c: Likewise.
8587         * tests/test-freadptr2.c: Likewise.
8588         * tests/test-freadseek.c: Likewise.
8589         * tests/test-freopen.c: Likewise.
8590         * tests/test-frexp.c: Likewise.
8591         * tests/test-frexpl.c: Likewise.
8592         * tests/test-fseek.c: Likewise.
8593         * tests/test-fseeko.c: Likewise.
8594         * tests/test-fstatat.c: Likewise.
8595         * tests/test-fstrcmp.c: Likewise.
8596         * tests/test-fsync.c: Likewise.
8597         * tests/test-ftell.c: Likewise.
8598         * tests/test-ftello.c: Likewise.
8599         * tests/test-func.c: Likewise.
8600         * tests/test-futimens.c: Likewise.
8601         * tests/test-fwritable.c: Likewise.
8602         * tests/test-fwriting.c: Likewise.
8603         * tests/test-getcwd.c: Likewise.
8604         * tests/test-getdate.c: Likewise.
8605         * tests/test-getdelim.c: Likewise.
8606         * tests/test-getdtablesize.c: Likewise.
8607         * tests/test-getgroups.c: Likewise.
8608         * tests/test-getline.c: Likewise.
8609         * tests/test-getndelim2.c: Likewise.
8610         * tests/test-glob.c: Likewise.
8611         * tests/test-hash.c: Likewise.
8612         * tests/test-i-ring.c: Likewise.
8613         * tests/test-iconv-utf.c: Likewise.
8614         * tests/test-iconv.c: Likewise.
8615         * tests/test-idpriv-drop.c: Likewise.
8616         * tests/test-idpriv-droptemp.c: Likewise.
8617         * tests/test-inet_ntop.c: Likewise.
8618         * tests/test-inet_pton.c: Likewise.
8619         * tests/test-isblank.c: Likewise.
8620         * tests/test-isfinite.c: Likewise.
8621         * tests/test-isinf.c: Likewise.
8622         * tests/test-isnan.c: Likewise.
8623         * tests/test-isnand.h: Likewise.
8624         * tests/test-isnanf.h: Likewise.
8625         * tests/test-isnanl.h: Likewise.
8626         * tests/test-lchown.c: Likewise.
8627         * tests/test-ldexpl.c: Likewise.
8628         * tests/test-link.c: Likewise.
8629         * tests/test-linkat.c: Likewise.
8630         * tests/test-linked_list.c: Likewise.
8631         * tests/test-linkedhash_list.c: Likewise.
8632         * tests/test-localename.c: Likewise.
8633         * tests/test-lseek.c: Likewise.
8634         * tests/test-lstat.c: Likewise.
8635         * tests/test-mbmemcasecmp.c: Likewise.
8636         * tests/test-mbmemcasecoll.c: Likewise.
8637         * tests/test-mbrtowc.c: Likewise.
8638         * tests/test-mbscasecmp.c: Likewise.
8639         * tests/test-mbscasestr1.c: Likewise.
8640         * tests/test-mbscasestr2.c: Likewise.
8641         * tests/test-mbscasestr3.c: Likewise.
8642         * tests/test-mbscasestr4.c: Likewise.
8643         * tests/test-mbschr.c: Likewise.
8644         * tests/test-mbscspn.c: Likewise.
8645         * tests/test-mbsinit.c: Likewise.
8646         * tests/test-mbsncasecmp.c: Likewise.
8647         * tests/test-mbsnrtowcs.c: Likewise.
8648         * tests/test-mbspbrk.c: Likewise.
8649         * tests/test-mbspcasecmp.c: Likewise.
8650         * tests/test-mbsrchr.c: Likewise.
8651         * tests/test-mbsrtowcs.c: Likewise.
8652         * tests/test-mbsspn.c: Likewise.
8653         * tests/test-mbsstr1.c: Likewise.
8654         * tests/test-mbsstr2.c: Likewise.
8655         * tests/test-mbsstr3.c: Likewise.
8656         * tests/test-memchr.c: Likewise.
8657         * tests/test-memchr2.c: Likewise.
8658         * tests/test-memcmp.c: Likewise.
8659         * tests/test-memmem.c: Likewise.
8660         * tests/test-memrchr.c: Likewise.
8661         * tests/test-mkdir.c: Likewise.
8662         * tests/test-mkdirat.c: Likewise.
8663         * tests/test-mkfifo.c: Likewise.
8664         * tests/test-mkfifoat.c: Likewise.
8665         * tests/test-mknod.c: Likewise.
8666         * tests/test-nanosleep.c: Likewise.
8667         * tests/test-nl_langinfo.c: Likewise.
8668         * tests/test-obstack-printf.c: Likewise.
8669         * tests/test-open.c: Likewise.
8670         * tests/test-openat.c: Likewise.
8671         * tests/test-pipe-filter-gi1.c: Likewise.
8672         * tests/test-pipe-filter-gi2-main.c: Likewise.
8673         * tests/test-pipe-filter-ii1.c: Likewise.
8674         * tests/test-pipe-filter-ii2-main.c: Likewise.
8675         * tests/test-pipe2.c: Likewise.
8676         * tests/test-popen.h: Likewise.
8677         * tests/test-posixtm.c: Likewise.
8678         * tests/test-pread.c: Likewise.
8679         * tests/test-printf-frexp.c: Likewise.
8680         * tests/test-printf-frexpl.c: Likewise.
8681         * tests/test-printf-posix.c: Likewise.
8682         * tests/test-priv-set.c: Likewise.
8683         * tests/test-quotearg.c: Likewise.
8684         * tests/test-random_r.c: Likewise.
8685         * tests/test-rawmemchr.c: Likewise.
8686         * tests/test-rbtree_list.c: Likewise.
8687         * tests/test-rbtree_oset.c: Likewise.
8688         * tests/test-rbtreehash_list.c: Likewise.
8689         * tests/test-readlink.c: Likewise.
8690         * tests/test-remove.c: Likewise.
8691         * tests/test-rename.c: Likewise.
8692         * tests/test-renameat.c: Likewise.
8693         * tests/test-rmdir.c: Likewise.
8694         * tests/test-round1.c: Likewise.
8695         * tests/test-roundf1.c: Likewise.
8696         * tests/test-roundl.c: Likewise.
8697         * tests/test-safe-alloc.c: Likewise.
8698         * tests/test-sameacls.c: Likewise.
8699         * tests/test-set-mode-acl.c: Likewise.
8700         * tests/test-setenv.c: Likewise.
8701         * tests/test-sigaction.c: Likewise.
8702         * tests/test-signbit.c: Likewise.
8703         * tests/test-sleep.c: Likewise.
8704         * tests/test-snprintf-posix.c: Likewise.
8705         * tests/test-snprintf.c: Likewise.
8706         * tests/test-sprintf-posix.c: Likewise.
8707         * tests/test-stat-time.c: Likewise.
8708         * tests/test-stat.c: Likewise.
8709         * tests/test-strcasestr.c: Likewise.
8710         * tests/test-strchrnul.c: Likewise.
8711         * tests/test-strerror.c: Likewise.
8712         * tests/test-striconv.c: Likewise.
8713         * tests/test-striconveh.c: Likewise.
8714         * tests/test-striconveha.c: Likewise.
8715         * tests/test-strsignal.c: Likewise.
8716         * tests/test-strstr.c: Likewise.
8717         * tests/test-strtod.c: Likewise.
8718         * tests/test-strverscmp.c: Likewise.
8719         * tests/test-symlink.c: Likewise.
8720         * tests/test-symlinkat.c: Likewise.
8721         * tests/test-trunc1.c: Likewise.
8722         * tests/test-trunc2.c: Likewise.
8723         * tests/test-truncf1.c: Likewise.
8724         * tests/test-truncf2.c: Likewise.
8725         * tests/test-truncl.c: Likewise.
8726         * tests/test-uname.c: Likewise.
8727         * tests/test-unlink.c: Likewise.
8728         * tests/test-unlinkat.c: Likewise.
8729         * tests/test-unsetenv.c: Likewise.
8730         * tests/test-usleep.c: Likewise.
8731         * tests/test-utimens.c: Likewise.
8732         * tests/test-utimensat.c: Likewise.
8733         * tests/test-vasnprintf-posix.c: Likewise.
8734         * tests/test-vasnprintf-posix2.c: Likewise.
8735         * tests/test-vasnprintf.c: Likewise.
8736         * tests/test-vasprintf-posix.c: Likewise.
8737         * tests/test-vasprintf.c: Likewise.
8738         * tests/test-vdprintf-posix.c: Likewise.
8739         * tests/test-vfprintf-posix.c: Likewise.
8740         * tests/test-vprintf-posix.c: Likewise.
8741         * tests/test-vsnprintf-posix.c: Likewise.
8742         * tests/test-vsnprintf.c: Likewise.
8743         * tests/test-vsprintf-posix.c: Likewise.
8744         * tests/test-wcrtomb.c: Likewise.
8745         * tests/test-wcsnrtombs.c: Likewise.
8746         * tests/test-wcsrtombs.c: Likewise.
8747         * tests/test-wctype.c: Likewise.
8748         * tests/test-wcwidth.c: Likewise.
8749         * tests/test-xfprintf-posix.c: Likewise.
8750         * tests/test-xmemdup0.c: Likewise.
8751         * tests/test-xprintf-posix.c: Likewise.
8752         * tests/test-xvasprintf.c: Likewise.
8753         * tests/unicase/test-locale-language.c: Likewise.
8754         * tests/unicase/test-mapping-part1.h: Likewise.
8755         * tests/unicase/test-predicate-part1.h: Likewise.
8756         * tests/unicase/test-u8-casecmp.c: Likewise.
8757         * tests/unicase/test-u8-casecoll.c: Likewise.
8758         * tests/unicase/test-u8-casefold.c: Likewise.
8759         * tests/unicase/test-u8-is-cased.c: Likewise.
8760         * tests/unicase/test-u8-is-casefolded.c: Likewise.
8761         * tests/unicase/test-u8-is-lowercase.c: Likewise.
8762         * tests/unicase/test-u8-is-titlecase.c: Likewise.
8763         * tests/unicase/test-u8-is-uppercase.c: Likewise.
8764         * tests/unicase/test-u8-tolower.c: Likewise.
8765         * tests/unicase/test-u8-totitle.c: Likewise.
8766         * tests/unicase/test-u8-toupper.c: Likewise.
8767         * tests/unicase/test-u16-casecmp.c: Likewise.
8768         * tests/unicase/test-u16-casecoll.c: Likewise.
8769         * tests/unicase/test-u16-casefold.c: Likewise.
8770         * tests/unicase/test-u16-is-cased.c: Likewise.
8771         * tests/unicase/test-u16-is-casefolded.c: Likewise.
8772         * tests/unicase/test-u16-is-lowercase.c: Likewise.
8773         * tests/unicase/test-u16-is-titlecase.c: Likewise.
8774         * tests/unicase/test-u16-is-uppercase.c: Likewise.
8775         * tests/unicase/test-u16-tolower.c: Likewise.
8776         * tests/unicase/test-u16-totitle.c: Likewise.
8777         * tests/unicase/test-u16-toupper.c: Likewise.
8778         * tests/unicase/test-u32-casecmp.c: Likewise.
8779         * tests/unicase/test-u32-casecoll.c: Likewise.
8780         * tests/unicase/test-u32-casefold.c: Likewise.
8781         * tests/unicase/test-u32-is-cased.c: Likewise.
8782         * tests/unicase/test-u32-is-casefolded.c: Likewise.
8783         * tests/unicase/test-u32-is-lowercase.c: Likewise.
8784         * tests/unicase/test-u32-is-titlecase.c: Likewise.
8785         * tests/unicase/test-u32-is-uppercase.c: Likewise.
8786         * tests/unicase/test-u32-tolower.c: Likewise.
8787         * tests/unicase/test-u32-totitle.c: Likewise.
8788         * tests/unicase/test-u32-toupper.c: Likewise.
8789         * tests/unicase/test-ulc-casecmp.c: Likewise.
8790         * tests/unicase/test-ulc-casecoll.c: Likewise.
8791         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8792         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8793         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8794         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8795         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8796         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8797         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8798         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8799         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8800         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8801         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8802         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8803         * tests/unictype/test-bidi_byname.c: Likewise.
8804         * tests/unictype/test-bidi_name.c: Likewise.
8805         * tests/unictype/test-bidi_of.c: Likewise.
8806         * tests/unictype/test-bidi_test.c: Likewise.
8807         * tests/unictype/test-block_list.c: Likewise.
8808         * tests/unictype/test-block_of.c: Likewise.
8809         * tests/unictype/test-block_test.c: Likewise.
8810         * tests/unictype/test-categ_and.c: Likewise.
8811         * tests/unictype/test-categ_and_not.c: Likewise.
8812         * tests/unictype/test-categ_byname.c: Likewise.
8813         * tests/unictype/test-categ_name.c: Likewise.
8814         * tests/unictype/test-categ_none.c: Likewise.
8815         * tests/unictype/test-categ_of.c: Likewise.
8816         * tests/unictype/test-categ_or.c: Likewise.
8817         * tests/unictype/test-categ_test_withtable.c: Likewise.
8818         * tests/unictype/test-combining.c: Likewise.
8819         * tests/unictype/test-decdigit.c: Likewise.
8820         * tests/unictype/test-digit.c: Likewise.
8821         * tests/unictype/test-mirror.c: Likewise.
8822         * tests/unictype/test-numeric.c: Likewise.
8823         * tests/unictype/test-pr_byname.c: Likewise.
8824         * tests/unictype/test-pr_test.c: Likewise.
8825         * tests/unictype/test-predicate-part1.h: Likewise.
8826         * tests/unictype/test-scripts.c: Likewise.
8827         * tests/unictype/test-sy_c_ident.c: Likewise.
8828         * tests/unictype/test-sy_java_ident.c: Likewise.
8829         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
8830         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
8831         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
8832         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
8833         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
8834         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
8835         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
8836         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
8837         * tests/uninorm/test-canonical-decomposition.c: Likewise.
8838         * tests/uninorm/test-compat-decomposition.c: Likewise.
8839         * tests/uninorm/test-composition.c: Likewise.
8840         * tests/uninorm/test-decomposing-form.c: Likewise.
8841         * tests/uninorm/test-decomposition.c: Likewise.
8842         * tests/uninorm/test-u8-nfc.c: Likewise.
8843         * tests/uninorm/test-u8-nfd.c: Likewise.
8844         * tests/uninorm/test-u8-nfkc.c: Likewise.
8845         * tests/uninorm/test-u8-nfkd.c: Likewise.
8846         * tests/uninorm/test-u8-normcmp.c: Likewise.
8847         * tests/uninorm/test-u8-normcoll.c: Likewise.
8848         * tests/uninorm/test-u16-nfc.c: Likewise.
8849         * tests/uninorm/test-u16-nfd.c: Likewise.
8850         * tests/uninorm/test-u16-nfkc.c: Likewise.
8851         * tests/uninorm/test-u16-nfkd.c: Likewise.
8852         * tests/uninorm/test-u16-normcmp.c: Likewise.
8853         * tests/uninorm/test-u16-normcoll.c: Likewise.
8854         * tests/uninorm/test-u32-nfc.c: Likewise.
8855         * tests/uninorm/test-u32-nfd.c: Likewise.
8856         * tests/uninorm/test-u32-nfkc.c: Likewise.
8857         * tests/uninorm/test-u32-nfkd.c: Likewise.
8858         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8859         * tests/uninorm/test-u32-normcmp.c: Likewise.
8860         * tests/uninorm/test-u32-normcoll.c: Likewise.
8861         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
8862         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8863         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8864         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8865         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8866         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8867         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8868         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8869         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8870         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8871         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8872         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8873         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8874         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8875         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8876         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8877         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8878         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8879         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8880         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8881         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8882         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8883         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8884         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8885         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8886         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8887         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8888         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8889         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8890         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
8891         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
8892         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
8893         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
8894         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8895         * tests/uniwidth/test-u8-width.c: Likewise.
8896         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8897         * tests/uniwidth/test-u16-width.c: Likewise.
8898         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8899         * tests/uniwidth/test-u32-width.c: Likewise.
8900         * tests/uniwidth/test-uc_width.c: Likewise.
8901         * tests/uniwidth/test-uc_width2.c: Likewise.
8902         * modules/acl-tests (Files): Add tests/macros.h.
8903         * modules/areadlink-tests (Files): Likewise.
8904         * modules/areadlink-with-size-tests (Files): Likewise.
8905         * modules/areadlinkat-tests (Files): Likewise.
8906         * modules/areadlinkat-with-size-tests (Files): Likewise.
8907         * modules/argmatch-tests (Files): Likewise.
8908         * modules/argv-iter-tests (Files): Likewise.
8909         * modules/array-list-tests (Files): Likewise.
8910         * modules/array-mergesort-tests (Files): Likewise.
8911         * modules/array-oset-tests (Files): Likewise.
8912         * modules/avltree-list-tests (Files): Likewise.
8913         * modules/avltree-oset-tests (Files): Likewise.
8914         * modules/avltreehash-list-tests (Files): Likewise.
8915         * modules/base64-tests (Files): Likewise.
8916         * modules/binary-io-tests (Files): Likewise.
8917         * modules/bitrotate-tests (Files): Likewise.
8918         * modules/btowc-tests (Files): Likewise.
8919         * modules/byteswap-tests (Files): Likewise.
8920         * modules/c-ctype-tests (Files): Likewise.
8921         * modules/c-stack-tests (Files): Likewise.
8922         * modules/c-strcase-tests (Files): Likewise.
8923         * modules/c-strcasestr-tests (Files): Likewise.
8924         * modules/c-strstr-tests (Files): Likewise.
8925         * modules/canonicalize-lgpl-tests (Files): Likewise.
8926         * modules/canonicalize-tests (Files): Likewise.
8927         * modules/carray-list-tests (Files): Likewise.
8928         * modules/ceilf-tests (Files): Likewise.
8929         * modules/ceill-tests (Files): Likewise.
8930         * modules/chown-tests (Files): Likewise.
8931         * modules/cloexec-tests (Files): Likewise.
8932         * modules/copy-file-tests (Files): Likewise.
8933         * modules/count-one-bits-tests (Files): Likewise.
8934         * modules/dprintf-posix-tests (Files): Likewise.
8935         * modules/dup2-tests (Files): Likewise.
8936         * modules/dup3-tests (Files): Likewise.
8937         * modules/duplocale-tests (Files): Likewise.
8938         * modules/fbufmode-tests (Files): Likewise.
8939         * modules/fchdir-tests (Files): Likewise.
8940         * modules/fcntl-safer-tests (Files): Likewise.
8941         * modules/fcntl-tests (Files): Likewise.
8942         * modules/fdopendir-tests (Files): Likewise.
8943         * modules/fdutimensat-tests (Files): Likewise.
8944         * modules/fflush-tests (Files): Likewise.
8945         * modules/filevercmp-tests (Files): Likewise.
8946         * modules/flock-tests (Files): Likewise.
8947         * modules/floorf-tests (Files): Likewise.
8948         * modules/floorl-tests (Files): Likewise.
8949         * modules/fnmatch-tests (Files): Likewise.
8950         * modules/fopen-safer-tests (Files): Likewise.
8951         * modules/fopen-tests (Files): Likewise.
8952         * modules/fpending-tests (Files): Likewise.
8953         * modules/fprintf-posix-tests (Files): Likewise.
8954         * modules/fpurge-tests (Files): Likewise.
8955         * modules/freadable-tests (Files): Likewise.
8956         * modules/freadahead-tests (Files): Likewise.
8957         * modules/freading-tests (Files): Likewise.
8958         * modules/freadptr-tests (Files): Likewise.
8959         * modules/freadseek-tests (Files): Likewise.
8960         * modules/freopen-tests (Files): Likewise.
8961         * modules/frexp-nolibm-tests (Files): Likewise.
8962         * modules/frexp-tests (Files): Likewise.
8963         * modules/frexpl-nolibm-tests (Files): Likewise.
8964         * modules/frexpl-tests (Files): Likewise.
8965         * modules/fseek-tests (Files): Likewise.
8966         * modules/fseeko-tests (Files): Likewise.
8967         * modules/fstrcmp-tests (Files): Likewise.
8968         * modules/fsync-tests (Files): Likewise.
8969         * modules/ftell-tests (Files): Likewise.
8970         * modules/ftello-tests (Files): Likewise.
8971         * modules/func-tests (Files): Likewise.
8972         * modules/futimens-tests (Files): Likewise.
8973         * modules/fwritable-tests (Files): Likewise.
8974         * modules/fwriting-tests (Files): Likewise.
8975         * modules/getcwd-tests (Files): Likewise.
8976         * modules/getdate-tests (Files): Likewise.
8977         * modules/getdelim-tests (Files): Likewise.
8978         * modules/getdtablesize-tests (Files): Likewise.
8979         * modules/getgroups-tests (Files): Likewise.
8980         * modules/getline-tests (Files): Likewise.
8981         * modules/getndelim2-tests (Files): Likewise.
8982         * modules/glob-tests (Files): Likewise.
8983         * modules/hash-tests (Files): Likewise.
8984         * modules/i-ring-tests (Files): Likewise.
8985         * modules/iconv-tests (Files): Likewise.
8986         * modules/iconv_open-utf-tests (Files): Likewise.
8987         * modules/idpriv-drop-tests (Files): Likewise.
8988         * modules/idpriv-droptemp-tests (Files): Likewise.
8989         * modules/inet_ntop-tests (Files): Likewise.
8990         * modules/inet_pton-tests (Files): Likewise.
8991         * modules/isblank-tests (Files): Likewise.
8992         * modules/isfinite-tests (Files): Likewise.
8993         * modules/isinf-tests (Files): Likewise.
8994         * modules/isnan-tests (Files): Likewise.
8995         * modules/isnand-nolibm-tests (Files): Likewise.
8996         * modules/isnand-tests (Files): Likewise.
8997         * modules/isnanf-nolibm-tests (Files): Likewise.
8998         * modules/isnanf-tests (Files): Likewise.
8999         * modules/isnanl-nolibm-tests (Files): Likewise.
9000         * modules/isnanl-tests (Files): Likewise.
9001         * modules/lchown-tests (Files): Likewise.
9002         * modules/ldexpl-tests (Files): Likewise.
9003         * modules/link-tests (Files): Likewise.
9004         * modules/linkat-tests (Files): Likewise.
9005         * modules/linked-list-tests (Files): Likewise.
9006         * modules/linkedhash-list-tests (Files): Likewise.
9007         * modules/localename-tests (Files): Likewise.
9008         * modules/lseek-tests (Files): Likewise.
9009         * modules/lstat-tests (Files): Likewise.
9010         * modules/mbmemcasecmp-tests (Files): Likewise.
9011         * modules/mbmemcasecoll-tests (Files): Likewise.
9012         * modules/mbrtowc-tests (Files): Likewise.
9013         * modules/mbscasecmp-tests (Files): Likewise.
9014         * modules/mbscasestr-tests (Files): Likewise.
9015         * modules/mbschr-tests (Files): Likewise.
9016         * modules/mbscspn-tests (Files): Likewise.
9017         * modules/mbsinit-tests (Files): Likewise.
9018         * modules/mbsncasecmp-tests (Files): Likewise.
9019         * modules/mbsnrtowcs-tests (Files): Likewise.
9020         * modules/mbspbrk-tests (Files): Likewise.
9021         * modules/mbspcasecmp-tests (Files): Likewise.
9022         * modules/mbsrchr-tests (Files): Likewise.
9023         * modules/mbsrtowcs-tests (Files): Likewise.
9024         * modules/mbsspn-tests (Files): Likewise.
9025         * modules/mbsstr-tests (Files): Likewise.
9026         * modules/memchr-tests (Files): Likewise.
9027         * modules/memchr2-tests (Files): Likewise.
9028         * modules/memcmp-tests (Files): Likewise.
9029         * modules/memmem-tests (Files): Likewise.
9030         * modules/memrchr-tests (Files): Likewise.
9031         * modules/mkdir-tests (Files): Likewise.
9032         * modules/mkfifo-tests (Files): Likewise.
9033         * modules/mkfifoat-tests (Files): Likewise.
9034         * modules/mknod-tests (Files): Likewise.
9035         * modules/nanosleep-tests (Files): Likewise.
9036         * modules/nl_langinfo-tests (Files): Likewise.
9037         * modules/obstack-printf-tests (Files): Likewise.
9038         * modules/open-tests (Files): Likewise.
9039         * modules/openat-tests (Files): Likewise.
9040         * modules/pipe-filter-gi-tests (Files): Likewise.
9041         * modules/pipe-filter-ii-tests (Files): Likewise.
9042         * modules/pipe2-tests (Files): Likewise.
9043         * modules/popen-safer-tests (Files): Likewise.
9044         * modules/popen-tests (Files): Likewise.
9045         * modules/posixtm-tests (Files): Likewise.
9046         * modules/pread-tests (Files): Likewise.
9047         * modules/printf-frexp-tests (Files): Likewise.
9048         * modules/printf-frexpl-tests (Files): Likewise.
9049         * modules/printf-posix-tests (Files): Likewise.
9050         * modules/priv-set-tests (Files): Likewise.
9051         * modules/quotearg-tests (Files): Likewise.
9052         * modules/random_r-tests (Files): Likewise.
9053         * modules/rawmemchr-tests (Files): Likewise.
9054         * modules/rbtree-list-tests (Files): Likewise.
9055         * modules/rbtree-oset-tests (Files): Likewise.
9056         * modules/rbtreehash-list-tests (Files): Likewise.
9057         * modules/readlink-tests (Files): Likewise.
9058         * modules/remove-tests (Files): Likewise.
9059         * modules/rename-tests (Files): Likewise.
9060         * modules/renameat-tests (Files): Likewise.
9061         * modules/rmdir-tests (Files): Likewise.
9062         * modules/round-tests (Files): Likewise.
9063         * modules/roundf-tests (Files): Likewise.
9064         * modules/roundl-tests (Files): Likewise.
9065         * modules/safe-alloc-tests (Files): Likewise.
9066         * modules/setenv-tests (Files): Likewise.
9067         * modules/sigaction-tests (Files): Likewise.
9068         * modules/signbit-tests (Files): Likewise.
9069         * modules/sleep-tests (Files): Likewise.
9070         * modules/snprintf-posix-tests (Files): Likewise.
9071         * modules/snprintf-tests (Files): Likewise.
9072         * modules/sprintf-posix-tests (Files): Likewise.
9073         * modules/stat-tests (Files): Likewise.
9074         * modules/stat-time-tests (Files): Likewise.
9075         * modules/strcasestr-tests (Files): Likewise.
9076         * modules/strchrnul-tests (Files): Likewise.
9077         * modules/strerror-tests (Files): Likewise.
9078         * modules/striconv-tests (Files): Likewise.
9079         * modules/striconveh-tests (Files): Likewise.
9080         * modules/striconveha-tests (Files): Likewise.
9081         * modules/strsignal-tests (Files): Likewise.
9082         * modules/strstr-tests (Files): Likewise.
9083         * modules/strtod-tests (Files): Likewise.
9084         * modules/strverscmp-tests (Files): Likewise.
9085         * modules/symlink-tests (Files): Likewise.
9086         * modules/symlinkat-tests (Files): Likewise.
9087         * modules/trunc-tests (Files): Likewise.
9088         * modules/truncf-tests (Files): Likewise.
9089         * modules/truncl-tests (Files): Likewise.
9090         * modules/uname-tests (Files): Likewise.
9091         * modules/unicase/cased-tests (Files): Likewise.
9092         * modules/unicase/ignorable-tests (Files): Likewise.
9093         * modules/unicase/locale-language-tests (Files): Likewise.
9094         * modules/unicase/tolower-tests (Files): Likewise.
9095         * modules/unicase/totitle-tests (Files): Likewise.
9096         * modules/unicase/toupper-tests (Files): Likewise.
9097         * modules/unicase/u8-casecmp-tests (Files): Likewise.
9098         * modules/unicase/u8-casecoll-tests (Files): Likewise.
9099         * modules/unicase/u8-casefold-tests (Files): Likewise.
9100         * modules/unicase/u8-is-cased-tests (Files): Likewise.
9101         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
9102         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
9103         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
9104         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
9105         * modules/unicase/u8-tolower-tests (Files): Likewise.
9106         * modules/unicase/u8-totitle-tests (Files): Likewise.
9107         * modules/unicase/u8-toupper-tests (Files): Likewise.
9108         * modules/unicase/u16-casecmp-tests (Files): Likewise.
9109         * modules/unicase/u16-casecoll-tests (Files): Likewise.
9110         * modules/unicase/u16-casefold-tests (Files): Likewise.
9111         * modules/unicase/u16-is-cased-tests (Files): Likewise.
9112         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
9113         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
9114         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
9115         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
9116         * modules/unicase/u16-tolower-tests (Files): Likewise.
9117         * modules/unicase/u16-totitle-tests (Files): Likewise.
9118         * modules/unicase/u16-toupper-tests (Files): Likewise.
9119         * modules/unicase/u32-casecmp-tests (Files): Likewise.
9120         * modules/unicase/u32-casecoll-tests (Files): Likewise.
9121         * modules/unicase/u32-casefold-tests (Files): Likewise.
9122         * modules/unicase/u32-is-cased-tests (Files): Likewise.
9123         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
9124         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
9125         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
9126         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
9127         * modules/unicase/u32-tolower-tests (Files): Likewise.
9128         * modules/unicase/u32-totitle-tests (Files): Likewise.
9129         * modules/unicase/u32-toupper-tests (Files): Likewise.
9130         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
9131         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
9132         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
9133         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
9134         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
9135         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
9136         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
9137         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
9138         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
9139         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
9140         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
9141         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
9142         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
9143         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
9144         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
9145         * modules/unictype/bidicategory-name-tests (Files): Likewise.
9146         * modules/unictype/bidicategory-of-tests (Files): Likewise.
9147         * modules/unictype/bidicategory-test-tests (Files): Likewise.
9148         * modules/unictype/block-list-tests (Files): Likewise.
9149         * modules/unictype/block-of-tests (Files): Likewise.
9150         * modules/unictype/block-test-tests (Files): Likewise.
9151         * modules/unictype/category-C-tests (Files): Likewise.
9152         * modules/unictype/category-Cc-tests (Files): Likewise.
9153         * modules/unictype/category-Cf-tests (Files): Likewise.
9154         * modules/unictype/category-Cn-tests (Files): Likewise.
9155         * modules/unictype/category-Co-tests (Files): Likewise.
9156         * modules/unictype/category-Cs-tests (Files): Likewise.
9157         * modules/unictype/category-L-tests (Files): Likewise.
9158         * modules/unictype/category-Ll-tests (Files): Likewise.
9159         * modules/unictype/category-Lm-tests (Files): Likewise.
9160         * modules/unictype/category-Lo-tests (Files): Likewise.
9161         * modules/unictype/category-Lt-tests (Files): Likewise.
9162         * modules/unictype/category-Lu-tests (Files): Likewise.
9163         * modules/unictype/category-M-tests (Files): Likewise.
9164         * modules/unictype/category-Mc-tests (Files): Likewise.
9165         * modules/unictype/category-Me-tests (Files): Likewise.
9166         * modules/unictype/category-Mn-tests (Files): Likewise.
9167         * modules/unictype/category-N-tests (Files): Likewise.
9168         * modules/unictype/category-Nd-tests (Files): Likewise.
9169         * modules/unictype/category-Nl-tests (Files): Likewise.
9170         * modules/unictype/category-No-tests (Files): Likewise.
9171         * modules/unictype/category-P-tests (Files): Likewise.
9172         * modules/unictype/category-Pc-tests (Files): Likewise.
9173         * modules/unictype/category-Pd-tests (Files): Likewise.
9174         * modules/unictype/category-Pe-tests (Files): Likewise.
9175         * modules/unictype/category-Pf-tests (Files): Likewise.
9176         * modules/unictype/category-Pi-tests (Files): Likewise.
9177         * modules/unictype/category-Po-tests (Files): Likewise.
9178         * modules/unictype/category-Ps-tests (Files): Likewise.
9179         * modules/unictype/category-S-tests (Files): Likewise.
9180         * modules/unictype/category-Sc-tests (Files): Likewise.
9181         * modules/unictype/category-Sk-tests (Files): Likewise.
9182         * modules/unictype/category-Sm-tests (Files): Likewise.
9183         * modules/unictype/category-So-tests (Files): Likewise.
9184         * modules/unictype/category-Z-tests (Files): Likewise.
9185         * modules/unictype/category-Zl-tests (Files): Likewise.
9186         * modules/unictype/category-Zp-tests (Files): Likewise.
9187         * modules/unictype/category-Zs-tests (Files): Likewise.
9188         * modules/unictype/category-and-not-tests (Files): Likewise.
9189         * modules/unictype/category-and-tests (Files): Likewise.
9190         * modules/unictype/category-byname-tests (Files): Likewise.
9191         * modules/unictype/category-name-tests (Files): Likewise.
9192         * modules/unictype/category-none-tests (Files): Likewise.
9193         * modules/unictype/category-of-tests (Files): Likewise.
9194         * modules/unictype/category-or-tests (Files): Likewise.
9195         * modules/unictype/category-test-withtable-tests (Files): Likewise.
9196         * modules/unictype/combining-class-tests (Files): Likewise.
9197         * modules/unictype/ctype-alnum-tests (Files): Likewise.
9198         * modules/unictype/ctype-alpha-tests (Files): Likewise.
9199         * modules/unictype/ctype-blank-tests (Files): Likewise.
9200         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
9201         * modules/unictype/ctype-digit-tests (Files): Likewise.
9202         * modules/unictype/ctype-graph-tests (Files): Likewise.
9203         * modules/unictype/ctype-lower-tests (Files): Likewise.
9204         * modules/unictype/ctype-print-tests (Files): Likewise.
9205         * modules/unictype/ctype-punct-tests (Files): Likewise.
9206         * modules/unictype/ctype-space-tests (Files): Likewise.
9207         * modules/unictype/ctype-upper-tests (Files): Likewise.
9208         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
9209         * modules/unictype/decimal-digit-tests (Files): Likewise.
9210         * modules/unictype/digit-tests (Files): Likewise.
9211         * modules/unictype/mirror-tests (Files): Likewise.
9212         * modules/unictype/numeric-tests (Files): Likewise.
9213         * modules/unictype/property-alphabetic-tests (Files): Likewise.
9214         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
9215         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
9216         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
9217         Likewise.
9218         * modules/unictype/property-bidi-block-separator-tests (Files):
9219         Likewise.
9220         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
9221         Likewise.
9222         * modules/unictype/property-bidi-common-separator-tests (Files):
9223         Likewise.
9224         * modules/unictype/property-bidi-control-tests (Files): Likewise.
9225         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
9226         Likewise.
9227         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
9228         Likewise.
9229         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
9230         Likewise.
9231         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
9232         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
9233         Likewise.
9234         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
9235         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
9236         Likewise.
9237         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
9238         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
9239         * modules/unictype/property-bidi-segment-separator-tests (Files):
9240         Likewise.
9241         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
9242         * modules/unictype/property-byname-tests (Files): Likewise.
9243         * modules/unictype/property-combining-tests (Files): Likewise.
9244         * modules/unictype/property-composite-tests (Files): Likewise.
9245         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
9246         * modules/unictype/property-dash-tests (Files): Likewise.
9247         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
9248         * modules/unictype/property-default-ignorable-code-point-tests (Files):
9249         Likewise.
9250         * modules/unictype/property-deprecated-tests (Files): Likewise.
9251         * modules/unictype/property-diacritic-tests (Files): Likewise.
9252         * modules/unictype/property-extender-tests (Files): Likewise.
9253         * modules/unictype/property-format-control-tests (Files): Likewise.
9254         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
9255         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
9256         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
9257         * modules/unictype/property-hex-digit-tests (Files): Likewise.
9258         * modules/unictype/property-hyphen-tests (Files): Likewise.
9259         * modules/unictype/property-id-continue-tests (Files): Likewise.
9260         * modules/unictype/property-id-start-tests (Files): Likewise.
9261         * modules/unictype/property-ideographic-tests (Files): Likewise.
9262         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
9263         * modules/unictype/property-ids-trinary-operator-tests (Files):
9264         Likewise.
9265         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
9266         * modules/unictype/property-iso-control-tests (Files): Likewise.
9267         * modules/unictype/property-join-control-tests (Files): Likewise.
9268         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
9269         * modules/unictype/property-line-separator-tests (Files): Likewise.
9270         * modules/unictype/property-logical-order-exception-tests (Files):
9271         Likewise.
9272         * modules/unictype/property-lowercase-tests (Files): Likewise.
9273         * modules/unictype/property-math-tests (Files): Likewise.
9274         * modules/unictype/property-non-break-tests (Files): Likewise.
9275         * modules/unictype/property-not-a-character-tests (Files): Likewise.
9276         * modules/unictype/property-numeric-tests (Files): Likewise.
9277         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
9278         * modules/unictype/property-other-default-ignorable-code-point-tests
9279         (Files): Likewise.
9280         * modules/unictype/property-other-grapheme-extend-tests (Files):
9281         Likewise.
9282         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
9283         * modules/unictype/property-other-id-start-tests (Files): Likewise.
9284         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
9285         * modules/unictype/property-other-math-tests (Files): Likewise.
9286         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
9287         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
9288         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
9289         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
9290         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
9291         * modules/unictype/property-private-use-tests (Files): Likewise.
9292         * modules/unictype/property-punctuation-tests (Files): Likewise.
9293         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
9294         * modules/unictype/property-radical-tests (Files): Likewise.
9295         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
9296         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
9297         * modules/unictype/property-space-tests (Files): Likewise.
9298         * modules/unictype/property-terminal-punctuation-tests (Files):
9299         Likewise.
9300         * modules/unictype/property-test-tests (Files): Likewise.
9301         * modules/unictype/property-titlecase-tests (Files): Likewise.
9302         * modules/unictype/property-unassigned-code-value-tests (Files):
9303         Likewise.
9304         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
9305         * modules/unictype/property-uppercase-tests (Files): Likewise.
9306         * modules/unictype/property-variation-selector-tests (Files): Likewise.
9307         * modules/unictype/property-white-space-tests (Files): Likewise.
9308         * modules/unictype/property-xid-continue-tests (Files): Likewise.
9309         * modules/unictype/property-xid-start-tests (Files): Likewise.
9310         * modules/unictype/property-zero-width-tests (Files): Likewise.
9311         * modules/unictype/scripts-tests (Files): Likewise.
9312         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
9313         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
9314         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
9315         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
9316         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
9317         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
9318         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
9319         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
9320         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
9321         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
9322         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
9323         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
9324         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
9325         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
9326         * modules/uninorm/composition-tests (Files): Likewise.
9327         * modules/uninorm/decomposing-form-tests (Files): Likewise.
9328         * modules/uninorm/decomposition-tests (Files): Likewise.
9329         * modules/uninorm/filter-tests (Files): Likewise.
9330         * modules/uninorm/nfc-tests (Files): Likewise.
9331         * modules/uninorm/nfd-tests (Files): Likewise.
9332         * modules/uninorm/nfkc-tests (Files): Likewise.
9333         * modules/uninorm/nfkd-tests (Files): Likewise.
9334         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
9335         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
9336         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
9337         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
9338         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
9339         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
9340         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
9341         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9342         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
9343         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
9344         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
9345         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
9346         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9347         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
9348         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
9349         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
9350         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
9351         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9352         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
9353         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
9354         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
9355         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
9356         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9357         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
9358         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
9359         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
9360         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
9361         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
9362         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
9363         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
9364         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
9365         * modules/uniwidth/u8-width-tests (Files): Likewise.
9366         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
9367         * modules/uniwidth/u16-width-tests (Files): Likewise.
9368         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
9369         * modules/uniwidth/u32-width-tests (Files): Likewise.
9370         * modules/uniwidth/width-tests (Files): Likewise.
9371         * modules/unlink-tests (Files): Likewise.
9372         * modules/unsetenv-tests (Files): Likewise.
9373         * modules/usleep-tests (Files): Likewise.
9374         * modules/utimens-tests (Files): Likewise.
9375         * modules/utimensat-tests (Files): Likewise.
9376         * modules/vasnprintf-posix-tests (Files): Likewise.
9377         * modules/vasnprintf-tests (Files): Likewise.
9378         * modules/vasprintf-posix-tests (Files): Likewise.
9379         * modules/vasprintf-tests (Files): Likewise.
9380         * modules/vdprintf-posix-tests (Files): Likewise.
9381         * modules/vfprintf-posix-tests (Files): Likewise.
9382         * modules/vprintf-posix-tests (Files): Likewise.
9383         * modules/vsnprintf-posix-tests (Files): Likewise.
9384         * modules/vsnprintf-tests (Files): Likewise.
9385         * modules/vsprintf-posix-tests (Files): Likewise.
9386         * modules/wcrtomb-tests (Files): Likewise.
9387         * modules/wcsnrtombs-tests (Files): Likewise.
9388         * modules/wcsrtombs-tests (Files): Likewise.
9389         * modules/wctype-tests (Files): Likewise.
9390         * modules/wcwidth-tests (Files): Likewise.
9391         * modules/xmemdup0-tests (Files): Likewise.
9392         * modules/xprintf-posix-tests (Files): Likewise.
9393         * modules/xvasprintf-tests (Files): Likewise.
9394
9395 2009-12-24  Eric Blake  <ebb9@byu.net>
9396
9397         test-nanosleep: fix typo
9398         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
9399         patch.
9400         Reported by Bruno Haible.
9401
9402 2009-12-24  Bruno Haible  <bruno@clisp.org>
9403
9404         Reduce namespace pollution on glibc systems.
9405         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
9406         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
9407         systems.
9408         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
9409         <getopt.h> on glibc systems.
9410         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
9411         systems.
9412         * lib/fcntl.c: Include <unistd.h> here instead.
9413
9414 2009-12-24  Bruno Haible  <bruno@clisp.org>
9415
9416         * lib/stdlib.in.h (includes): Fix typo in today's commit.
9417
9418 2009-12-24  Eric Blake  <ebb9@byu.net>
9419
9420         tests: add signature checks
9421         * tests/signature.h (SIGNATURE_CHECK): New file.
9422         * modules/atexit-tests (Files): Use it.
9423         * modules/btowc-tests (Files): Likewise.
9424         * modules/canonicalize-lgpl-tests (Files): Likewise.
9425         * modules/ceilf-tests (Files): Likewise.
9426         * modules/ceill-tests (Files): Likewise.
9427         * modules/chown-tests (Files): Likewise.
9428         * modules/dprintf-posix-tests (Files): Likewise.
9429         * modules/dup2-tests (Files): Likewise.
9430         * modules/dup3-tests (Files): Likewise.
9431         * modules/duplocale-tests (Files): Likewise.
9432         * modules/fchdir-tests (Files): Likewise.
9433         * modules/fcntl-tests (Files): Likewise.
9434         * modules/fdopendir-tests (Files): Likewise.
9435         * modules/fflush-tests (Files): Likewise.
9436         * modules/flock-tests (Files): Likewise.
9437         * modules/floorf-tests (Files): Likewise.
9438         * modules/floorl-tests (Files): Likewise.
9439         * modules/fnmatch-tests (Files): Likewise.
9440         * modules/fopen-tests (Files): Likewise.
9441         * modules/fprintf-posix-tests (Files): Likewise.
9442         * modules/freopen-tests (Files): Likewise.
9443         * modules/frexp-nolibm-tests (Files): Likewise.
9444         * modules/frexp-tests (Files): Likewise.
9445         * modules/frexpl-nolibm-tests (Files): Likewise.
9446         * modules/frexpl-tests (Files): Likewise.
9447         * modules/fseek-tests (Files): Likewise.
9448         * modules/fseeko-tests (Files): Likewise.
9449         * modules/fsync-tests (Files): Likewise.
9450         * modules/ftell-tests (Files): Likewise.
9451         * modules/ftello-tests (Files): Likewise.
9452         * modules/futimens-tests (Files): Likewise.
9453         * modules/getaddrinfo-tests (Files): Likewise.
9454         * modules/getcwd-tests (Files): Likewise.
9455         * modules/getdelim-tests (Files): Likewise.
9456         * modules/getdtablesize-tests (Files): Likewise.
9457         * modules/getgroups-tests (Files): Likewise.
9458         * modules/gethostname-tests (Files): Likewise.
9459         * modules/getline-tests (Files): Likewise.
9460         * modules/getopt-posix-tests (Files): Likewise.
9461         * modules/gettimeofday-tests (Files): Likewise.
9462         * modules/glob-tests (Files): Likewise.
9463         * modules/iconv-tests (Files): Likewise.
9464         * modules/inet_ntop-tests (Files): Likewise.
9465         * modules/inet_pton-tests (Files): Likewise.
9466         * modules/isblank-tests (Files): Likewise.
9467         * modules/lchown-tests (Files): Likewise.
9468         * modules/ldexpl-tests (Files): Likewise.
9469         * modules/link-tests (Files): Likewise.
9470         * modules/linkat-tests (Files): Likewise.
9471         * modules/lseek-tests (Files): Likewise.
9472         * modules/lstat-tests (Files): Likewise.
9473         * modules/mbrtowc-tests (Files): Likewise.
9474         * modules/mbsinit-tests (Files): Likewise.
9475         * modules/mbsnrtowcs-tests (Files): Likewise.
9476         * modules/mbsrtowcs-tests (Files): Likewise.
9477         * modules/memchr-tests (Files): Likewise.
9478         * modules/memcmp-tests (Files): Likewise.
9479         * modules/memmem-tests (Files): Likewise.
9480         * modules/memrchr-tests (Files): Likewise.
9481         * modules/mkdir-tests (Files): Likewise.
9482         * modules/mkfifo-tests (Files): Likewise.
9483         * modules/mkfifoat-tests (Files): Likewise.
9484         * modules/mknod-tests (Files): Likewise.
9485         * modules/nanosleep-tests (Files): Likewise.
9486         * modules/nl_langinfo-tests (Files): Likewise.
9487         * modules/obstack-printf-tests (Files): Likewise.
9488         * modules/open-tests (Files): Likewise.
9489         * modules/openat-tests (Files): Likewise.
9490         * modules/perror-tests (Files): Likewise.
9491         * modules/pipe2-tests (Files): Likewise.
9492         * modules/poll-tests (Files): Likewise.
9493         * modules/popen-tests (Files): Likewise.
9494         * modules/posix_spawn-tests (Files): Likewise.
9495         * modules/posix_spawnp-tests (Files): Likewise.
9496         * modules/pread-tests (Files): Likewise.
9497         * modules/printf-posix-tests (Files): Likewise.
9498         * modules/pty-tests (Files): Likewise.
9499         * modules/random_r-tests (Files): Likewise.
9500         * modules/rawmemchr-tests (Files): Likewise.
9501         * modules/readlink-tests (Files): Likewise.
9502         * modules/remove-tests (Files): Likewise.
9503         * modules/rename-tests (Files): Likewise.
9504         * modules/renameat-tests (Files): Likewise.
9505         * modules/rmdir-tests (Files): Likewise.
9506         * modules/round-tests (Files): Likewise.
9507         * modules/roundf-tests (Files): Likewise.
9508         * modules/roundl-tests (Files): Likewise.
9509         * modules/select-tests (Files): Likewise.
9510         * modules/setenv-tests (Files): Likewise.
9511         * modules/sigaction-tests (Files): Likewise.
9512         * modules/sleep-tests (Files): Likewise.
9513         * modules/snprintf-posix-tests (Files): Likewise.
9514         * modules/snprintf-tests (Files): Likewise.
9515         * modules/sprintf-posix-tests (Files): Likewise.
9516         * modules/stat-tests (Files): Likewise.
9517         * modules/strcasestr-tests (Files): Likewise.
9518         * modules/strchrnul-tests (Files): Likewise.
9519         * modules/strerror-tests (Files): Likewise.
9520         * modules/strsignal-tests (Files): Likewise.
9521         * modules/strstr-tests (Files): Likewise.
9522         * modules/strtod-tests (Files): Likewise.
9523         * modules/strverscmp-tests (Files): Likewise.
9524         * modules/symlink-tests (Files): Likewise.
9525         * modules/symlinkat-tests (Files): Likewise.
9526         * modules/times-tests (Files): Likewise.
9527         * modules/trunc-tests (Files): Likewise.
9528         * modules/truncf-tests (Files): Likewise.
9529         * modules/truncl-tests (Files): Likewise.
9530         * modules/tsearch-tests (Files): Likewise.
9531         * modules/uname-tests (Files): Likewise.
9532         * modules/unlink-tests (Files): Likewise.
9533         * modules/unsetenv-tests (Files): Likewise.
9534         * modules/usleep-tests (Files): Likewise.
9535         * modules/utimensat-tests (Files): Likewise.
9536         * modules/vasprintf-tests (Files): Likewise.
9537         * modules/vdprintf-posix-tests (Files): Likewise.
9538         * modules/vfprintf-posix-tests (Files): Likewise.
9539         * modules/vprintf-posix-tests (Files): Likewise.
9540         * modules/vsnprintf-posix-tests (Files): Likewise.
9541         * modules/vsnprintf-tests (Files): Likewise.
9542         * modules/vsprintf-posix-tests (Files): Likewise.
9543         * modules/wcrtomb-tests (Files): Likewise.
9544         * modules/wcsnrtombs-tests (Files): Likewise.
9545         * modules/wcsrtombs-tests (Files): Likewise.
9546         * modules/wcwidth-tests (Files): Likewise.
9547         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9548         * tests/test-isinf.c (isinf): Likewise.
9549         * tests/test-isnan.c (isnan): Likewise.
9550         * tests/test-signbit.c (signbit): Likewise.
9551         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9552         declaration, either as macro or with correct signature.
9553         (select): Ensure function under test is declared with correct
9554         signature in correct header.
9555         * tests/test-atexit.c (atexit): Likewise.
9556         * tests/test-btowc.c (btowc): Likewise.
9557         * tests/test-canonicalize-lgpl.c (realpath)
9558         (canonicalize_file_name): Likewise.
9559         * tests/test-ceilf1.c (ceilf): Likewise.
9560         * tests/test-ceill.c (ceill): Likewise.
9561         * tests/test-chown.c (chown): Likewise.
9562         * tests/test-dprintf-posix.c (dprintf): Likewise.
9563         * tests/test-dup2.c (dup2): Likewise.
9564         * tests/test-dup3.c (dup3): Likewise.
9565         * tests/test-duplocale.c (duplocale): Likewise.
9566         * tests/test-fchdir.c (fchdir): Likewise.
9567         * tests/test-fchownat.c (fchownat): Likewise.
9568         * tests/test-fcntl.c (fcntl): Likewise.
9569         * tests/test-fdopendir.c (fdopendir): Likewise.
9570         * tests/test-fflush.c (fflush): Likewise.
9571         * tests/test-flock.c (flock): Likewise.
9572         * tests/test-floorf1.c (floorf): Likewise.
9573         * tests/test-floorl.c (floorl): Likewise.
9574         * tests/test-fnmatch.c (fnmatch): Likewise.
9575         * tests/test-fopen.c (fopen): Likewise.
9576         * tests/test-fprintf-posix.c (fprintf): Likewise.
9577         * tests/test-freopen.c (freopen): Likewise.
9578         * tests/test-frexp.c (frexp): Likewise.
9579         * tests/test-frexpl.c (frexpl): Likewise.
9580         * tests/test-fseek.c (fseek): Likewise.
9581         * tests/test-fseeko.c (fseeko): Likewise.
9582         * tests/test-fstatat.c (fstatat): Likewise.
9583         * tests/test-fsync.c (fsync): Likewise.
9584         * tests/test-ftell.c (ftell): Likewise.
9585         * tests/test-ftello.c (ftello): Likewise.
9586         * tests/test-futimens.c (futimens): Likewise.
9587         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9588         (gai_strerror): Likewise.
9589         * tests/test-getcwd.c (getcwd): Likewise.
9590         * tests/test-getdelim.c (getdelim): Likewise.
9591         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9592         * tests/test-getgroups.c (getgroups): Likewise.
9593         * tests/test-gethostname.c (gethostname): Likewise.
9594         * tests/test-getline.c (getline): Likewise.
9595         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9596         Likewise.
9597         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9598         * tests/test-glob.c (glob, globfree): Likewise.
9599         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9600         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9601         * tests/test-inet_pton.c (inet_pton): Likewise.
9602         * tests/test-isblank.c (isblank): Likewise.
9603         * tests/test-lchown.c (lchown): Likewise.
9604         * tests/test-ldexpl.c (ldexpl): Likewise.
9605         * tests/test-link.c (link): Likewise.
9606         * tests/test-linkat.c (linkat): Likewise.
9607         * tests/test-lseek.c (lseek): Likewise.
9608         * tests/test-lstat.c (lstat): Likewise.
9609         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9610         * tests/test-mbsinit.c (mbsinit): Likewise.
9611         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9612         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9613         * tests/test-memchr.c (memchr): Likewise.
9614         * tests/test-memcmp.c (memcmp): Likewise.
9615         * tests/test-memmem.c (memmem): Likewise.
9616         * tests/test-memrchr.c (memrchr): Likewise.
9617         * tests/test-mkdir.c (mkdir): Likewise.
9618         * tests/test-mkdirat.c (mkdirat): Likewise.
9619         * tests/test-mkfifo.c (mkfifo): Likewise.
9620         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9621         * tests/test-mknod.c (mknod): Likewise.
9622         * tests/test-nanosleep.c (nanosleep): Likewise.
9623         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9624         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9625         Likewise.
9626         * tests/test-open.c (open): Likewise.
9627         * tests/test-openat.c (openat): Likewise.
9628         * tests/test-perror.c (perror): Likewise.
9629         * tests/test-pipe2.c (pipe2): Likewise.
9630         * tests/test-poll.c (poll): Likewise.
9631         * tests/test-popen.c (popen, pclose): Likewise.
9632         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9633         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9634         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9635         (posix_spawn_file_actions_destroy)
9636         (posix_spawn_file_actions_addclose)
9637         (posix_spawn_file_actions_addopen)
9638         (posix_spawn_file_actions_adddup2): Likewise.
9639         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9640         * tests/test-pread.c (pread): Likewise.
9641         * tests/test-printf-posix.c (printf): Likewise.
9642         * tests/test-pty.c (openpty, forkpty): Likewise.
9643         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9644         (random_r): Likewise.
9645         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9646         * tests/test-readlink.c (readlink): Likewise.
9647         * tests/test-remove.c (remove): Likewise.
9648         * tests/test-rename.c (rename): Likewise.
9649         * tests/test-renameat.c (renameat): Likewise.
9650         * tests/test-rmdir.c (rmdir): Likewise.
9651         * tests/test-round1.c (round): Likewise.
9652         * tests/test-roundf1.c (roundf): Likewise.
9653         * tests/test-roundl.c (roundl): Likewise.
9654         * tests/test-setenv.c (setenv): Likewise.
9655         * tests/test-sigaction.c (sigaction): Likewise.
9656         * tests/test-sleep.c (sleep): Likewise.
9657         * tests/test-snprintf.c (snprintf): Likewise.
9658         * tests/test-sprintf-posix.c (sprintf): Likewise.
9659         * tests/test-stat.c (stat): Likewise.
9660         * tests/test-stpncpy.c (stpncpy): Likewise.
9661         * tests/test-strcasestr.c (strcasestr): Likewise.
9662         * tests/test-strchrnul.c (strchrnul): Likewise.
9663         * tests/test-strerror.c (strerror): Likewise.
9664         * tests/test-strsignal.c (strsignal): Likewise.
9665         * tests/test-strstr.c (strstr): Likewise.
9666         * tests/test-strtod.c (strtod): Likewise.
9667         * tests/test-strverscmp.c (strverscmp): Likewise.
9668         * tests/test-symlink.c (symlink): Likewise.
9669         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9670         * tests/test-times.c (times): Likewise.
9671         * tests/test-trunc1.c (trunc): Likewise.
9672         * tests/test-truncf1.c (truncf): Likewise.
9673         * tests/test-truncl.c (truncl): Likewise.
9674         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9675         Likewise.
9676         * tests/test-uname.c (uname): Likewise.
9677         * tests/test-unlink.c (unlink): Likewise.
9678         * tests/test-unlinkat.c (unlinkat): Likewise.
9679         * tests/test-unsetenv.c (unsetenv): Likewise.
9680         * tests/test-usleep.c (usleep): Likewise.
9681         * tests/test-utimensat.c (utimensat): Likewise.
9682         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9683         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9684         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9685         * tests/test-vprintf-posix.c (vprintf): Likewise.
9686         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9687         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9688         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9689         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9690         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9691         * tests/test-wcwidth.c (wcwidth): Likewise.
9692
9693         build: pull in conditional headers during GNULIB_POSIXCHECK
9694         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9695         definitions from any conditionally-included headers.
9696         * lib/stdlib.in.h (includes): Likewise.
9697         * lib/unistd.in.h (includes): Likewise.
9698
9699 2009-12-24  Bruno Haible  <bruno@clisp.org>
9700
9701         * tests/test-argv-iter.c: Include header file being tested immediately
9702         after config.h.
9703         * tests/test-base64.c: Likewise.
9704         * tests/test-flock.c: Likewise.
9705         * tests/test-fsync.c: Likewise.
9706         * tests/test-getdate.c: Likewise.
9707         * tests/test-getndelim2.c: Likewise.
9708         * tests/test-isfinite.c: Likewise.
9709         * tests/test-isinf.c: Likewise.
9710         * tests/test-strerror.c: Likewise.
9711         * tests/test-strsignal.c: Likewise.
9712
9713 2009-12-23  Eric Blake  <ebb9@byu.net>
9714
9715         unistd: work around cygwin bug
9716         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9717         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9718         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9719
9720 2009-12-23  Bruno Haible  <bruno@clisp.org>
9721
9722         localename: More tests.
9723         * tests/test-localename.c (SIZEOF): New macro.
9724         (categories): New variable.
9725         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
9726         test_locale_name_default): Add test w.r.t. thread locale.
9727         (test_locale_name_thread): New function.
9728         (main): Invoke it.
9729
9730         localename: Make aware of thread locale.
9731         * lib/localename.h (gl_locale_name_thread): New declaration.
9732         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
9733         behaviour with respect to thread locale.
9734         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
9735         <langinfo.h>, glthread/lock.h.
9736         (SIZE_BITS): New macro.
9737         (string_hash): New function.
9738         (struct hash_node): New type.
9739         (HASH_TABLE_SIZE): New macro.
9740         (struniq_hash_table, struniq_lock): New variables.
9741         (struniq): New function.
9742         (gl_locale_name_thread): New function.
9743         (gl_locale_name): Invoke it.
9744         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
9745         * modules/localename (Depends-on): Add lock.
9746         Reported by Mike Gran <spk121@yahoo.com>.
9747
9748 2009-12-23  Eric Blake  <ebb9@byu.net>
9749
9750         va-args: new module
9751         * modules/va-args: New file.
9752         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
9753         * MODULES.html.sh (Core language properties): Mention it.
9754
9755         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
9756         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
9757         named alias for __attribute__((__unused__)).
9758         * lib/chown.c: Update client.
9759         * lib/fchmodat.c: Likewise.
9760         * lib/fts.c: Likewise.
9761         * lib/getdate.y: Likewise.
9762         * lib/getgroups.c: Likewise.
9763         * lib/getopt.c: Likewise.
9764         * lib/getugroups.c: Likewise.
9765         * lib/mkdir.c: Likewise.
9766         * lib/mkfifo.c: Likewise.
9767         * lib/mkfifoat.c: Likewise.
9768         * lib/mknod.c: Likewise.
9769         * lib/mknodat.c: Likewise.
9770         * lib/readlink.c: Likewise.
9771         * lib/se-context.in.h: Likewise.
9772         * lib/se-selinux.in.h: Likewise.
9773         * lib/sockets.c: Likewise.
9774         * lib/symlink.c: Likewise.
9775         * lib/symlinkat.c: Likewise.
9776         * lib/unicodeio.c: Likewise.
9777         * lib/unistr.h: Likewise.
9778         * tests/test-areadlink.c: Likewise.
9779         * tests/test-areadlinkat.c: Likewise.
9780         * tests/test-filenamecat.c: Likewise.
9781         * tests/test-fseeko.c: Likewise.
9782         * tests/test-ftello.c: Likewise.
9783         * tests/test-getdate.c: Likewise.
9784         * tests/test-getgroups.c: Likewise.
9785         * tests/test-gethostname.c: Likewise.
9786         * tests/test-quotearg.c: Likewise.
9787         * tests/test-version-etc.c: Likewise.
9788         * tests/test-xalloc-die.c: Likewise.
9789         * tests/test-xfprintf-posix.c: Likewise.
9790         * tests/test-xprintf-posix.c: Likewise.
9791         * tests/test-xvasprintf.c: Likewise.
9792
9793         tests: avoid compiler warnings
9794         * tests/test-fcntl.c (main): Delete unused parameters.
9795         * tests/test-freopen-safer.c (main): Likewise.
9796         * tests/test-xalloc-die.c (main): Mark unused parameters.
9797         * tests/test-fseeko.c (main): Likewise.
9798         * tests/test-ftello.c (main): Likewise.
9799         * tests/test-nanosleep.c (main): Avoid declaration warning.
9800         * tests/test-sleep.c (main): Likewise.
9801         * tests/test-unsetenv.c (main): Silence warning about string
9802         literal.
9803         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9804
9805 2009-12-23  Bruno Haible  <bruno@clisp.org>
9806
9807         * tests/test-localename.c (test_locale_name): New function, extracted
9808         from main. Also test mixed situations.
9809         (test_locale_name_posix, test_locale_name_environ,
9810         test_locale_name_default): New functions.
9811         (main): Invoke them all.
9812         * modules/localename-tests (configure.ac): Test for newlocale.
9813
9814 2009-12-23  Bruno Haible  <bruno@clisp.org>
9815
9816         unistd: Ensure getcwd gets declared before being overridden.
9817         * lib/unistd.in.h: Conditionally include <io.h>.
9818
9819 2009-12-22  Bruno Haible  <bruno@clisp.org>
9820
9821         wchar: Diagnose broken combination of glibc and gcc versions and flags.
9822         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
9823         (gl_WCHAR_H): Invoke it.
9824         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
9825         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
9826         Reported by Karl Berry <karl@freefriends.org>.
9827
9828 2009-12-22  Eric Blake  <ebb9@byu.net>
9829
9830         math, unistd: avoid redundant includes
9831         * lib/math.in.h (isnan): No need to re-include <math.h>.
9832         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
9833
9834         getsubopt: work around cygwin bug
9835         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
9836         avoid conflicting with system getsubopt.
9837         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
9838         bug.
9839
9840         getopt: synchronize from glibc
9841         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
9842         parameter order.  Adjust all callers.
9843         (_getopt_internal_r, main): Adjust quoting in error messages.
9844         Drop considerations for outdated POSIX 1003.2 error message.
9845         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
9846         callers.
9847         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
9848
9849         test-getopt: test stderr behavior
9850         * modules/getopt-posix-tests (Depends-on): Add dup2.
9851         * tests/test-getopt.c (ASSERT): Avoid stderr.
9852         (main): Move stderr to a temporary file.
9853         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
9854         Instead, add parameter to inform caller if output occurred.
9855         (test_getopt): Adjust all existing tests to expect silence, and
9856         add new tests of leading ":".
9857         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9858         glibc shortcomings with leading "-:" or "+:" in optstring.
9859         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9860         Likewise.
9861         * doc/posix-functions/getopt.texi (getopt): Likewise.
9862
9863         test-getopt: enhance test
9864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
9865         supports optind=0.
9866         * tests/test-getopt.c (OPTIND_MIN): Move...
9867         * tests/test-getopt.h (OPTIND_MIN): ...here.
9868         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
9869         Require that optind=0 works, since modern BSD supports it in
9870         addition to optreset, and since coreutils expects it.
9871         (test_getopt_long_only): New test.
9872         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9873         glibc shortcomings with 'W;', and enforcement of optind=0.
9874         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9875         Likewise.
9876
9877 2009-12-21  Bruno Haible  <bruno@clisp.org>
9878
9879         localename: Improvements for MacOS X and Cygwin.
9880         * lib/localename.h (gl_locale_name_environ): New declaration.
9881         * lib/localename.c (gl_locale_name_environ): New function, extracted from
9882         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
9883         (gl_locale_name_posix): Invoke it.
9884         (gl_locale_name_default): Add comments. Use Windows native API also on
9885         Cygwin.
9886
9887 2009-12-21  Bruno Haible  <bruno@clisp.org>
9888
9889         Update list of Win32 locale ids.
9890         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
9891         (LANG_SAMI): Renamed from LANG_SAAMI.
9892         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
9893         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
9894         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
9895         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
9896         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
9897         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
9898         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
9899         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
9900         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
9901         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
9902         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
9903         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
9904         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
9905         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
9906         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
9907         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
9908         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
9909         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
9910         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
9911         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
9912         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
9913         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
9914         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
9915         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
9916         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
9917         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
9918         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
9919         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
9920         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
9921         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
9922         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
9923         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
9924         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
9925         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
9926         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
9927         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
9928         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
9929         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
9930         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
9931         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
9932         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
9933         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
9934         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
9935         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
9936         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
9937         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
9938         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
9939         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
9940         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
9941         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
9942         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
9943         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
9944         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
9945         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
9946         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
9947         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
9948         Add more languages and countries for Sami, Sorbian. Add more countries
9949         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
9950         for Pashto. Change country for Syriac, Tswana.
9951
9952 2009-12-21  Eric Blake  <ebb9@byu.net>
9953
9954         test-utimens: avoid spurious failure
9955         * tests/test-chown.h (nap): Factor...
9956         * tests/nap.h: ...into new file.
9957         * tests/test-lchown.h (nap): Avoid duplication.
9958         * tests/test-utimens-common.h (nap): Use shared implementation,
9959         necessary on file systems with 1-second resolution.
9960         * modules/chown-tests (Files): Include new file.
9961         * modules/fdutimensat-tests (Files): Likewise.
9962         * modules/futimens-tests (Files): Likewise.
9963         * modules/lchown-tests (Files): Likewise.
9964         * modules/openat-tests (Files): Likewise.
9965         * modules/utimens-tests (Files): Likewise.
9966         * modules/utimensat-tests (Files): Likewise.
9967
9968 2009-12-19  Eric Blake  <ebb9@byu.net>
9969
9970         futimens, utimensat: work around Linux bug
9971         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
9972         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9973         * lib/utimensat.c (rpl_utimensat): Work around it.
9974         * lib/futimens.c (rpl_futimens): Adjust comment.
9975
9976         utimens: work around Linux ctime bug
9977         * lib/utimens.c (detect_ctime_bug): New helper function.
9978         (update_timespec): Differentiate between workaround needed for
9979         this bug vs. what is needed for systems that lack utimensat.
9980         (fdutimens, lutimens): Work around bug.
9981
9982         utimens: check for ctime update
9983         * tests/test-utimens-common.h (check_ctime): Define.
9984         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
9985         * tests/test-futimens.h (test_futimens): Likewise.
9986         * tests/test-lutimens.h (test_lutimens): Likewise.
9987         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9988         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9989
9990 2009-12-19  Bruno Haible  <bruno@clisp.org>
9991
9992         dprintf-posix: Check against memory leak fixed on 2009-12-15.
9993         * tests/test-dprintf-posix2.sh: New file.
9994         * tests/test-dprintf-posix2.c: New file.
9995         * modules/dprintf-posix-tests (Files): Add them.
9996         (configure.ac): Check for getrlimit and setrlimit.
9997         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9998
9999 2009-12-19  Bruno Haible  <bruno@clisp.org>
10000
10001         fprintf-posix: Check against memory leak fixed on 2009-12-15.
10002         * tests/test-fprintf-posix3.sh: New file.
10003         * tests/test-fprintf-posix3.c: New file.
10004         * modules/fprintf-posix-tests (Files): Add them.
10005         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10006
10007 2009-12-19  Eric Blake  <ebb9@byu.net>
10008
10009         dirfd: fix prototype
10010         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
10011         * lib/dirfd.c (dirfd): Likewise.
10012
10013         canonicalize: reduce memory usage
10014         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
10015         allocation to size.
10016         Reported by Solar Designer <solar@openwall.com>.
10017
10018 2009-12-19  Bruno Haible  <bruno@clisp.org>
10019
10020         New module attribute 'Applicability'.
10021         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
10022         * gnulib-tool: New option --extract-applicability.
10023         (func_usage): Document it.
10024         (sed_extract_prog): Recognize it.
10025         (func_get_applicability): New function.
10026         (func_import): Generalize handling of 'link-warning' module.
10027         * modules/link-warning (Applicability): New section.
10028         * modules/arg-nonnull (Applicability): New section.
10029         Repoted by Simon Josefsson <simon@josefsson.org>.
10030
10031 2009-12-19  Bruno Haible  <bruno@clisp.org>
10032
10033         fflush: tweak
10034         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
10035         * lib/fseeko.c (rpl_fseeko): Likewise.
10036
10037 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
10038
10039         * lib/gl_list.h: Fix typo in comment.
10040
10041 2009-12-16  Eric Blake  <ebb9@byu.net>
10042
10043         fcntl: use to simplify other modules
10044         * modules/cloexec (Depends-on): Add fcntl.
10045         * modules/fchdir (Depends-on): Likewise.
10046         * modules/fd-safer-flag (Depends-on): Likewise.
10047         * modules/unistd-safer (Depends-on): Likewise.
10048         * modules/dup3 (configure.ac): Set module indicator.
10049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
10050         missing.
10051         * lib/fchdir.c (_gl_register_dup): Fix comment.
10052         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
10053         * lib/dup-safer.c (dup_safer): Likewise.
10054         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
10055         * lib/dup3.c (dup3): Likewise.
10056         * tests/test-fchdir.c (main): Enhance test.
10057         Fixes a dup_cloexec bug reported by Ondřej Vašík.
10058
10059         fcntl: port portions of fcntl to mingw
10060         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
10061         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
10062         replacement for mingw.
10063         * modules/fcntl (Description): Update.
10064         (Depends-on): Add dup2.
10065         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
10066         * modules/fcntl-h (Makefile.am): Substitute it.
10067         * lib/fcntl.in.h (fcntl): Update declaration.
10068         (F_DUPFD, F_GETFD): New macros, when needed.
10069         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10070         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
10071         * tests/test-fcntl.c (check_flags, main): Enhance test for items
10072         we now guarantee.
10073
10074         fcntl: work around cygwin bug in F_DUPFD
10075         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
10076         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
10077         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
10078         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
10079         * doc/posix-functions/fcntl.texi (fcntl): Document it.
10080
10081         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
10082         * modules/fcntl (Files): List new files.
10083         (configure.ac): Run a test.
10084         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
10085         * lib/fcntl.c (rpl_fcntl): Likewise.
10086         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
10087         (gl_FCNTL_H): Always replace fcntl.h.
10088         * modules/fcntl-h (Makefile.am): Substitute witnesses.
10089         * lib/fcntl.in.h (fcntl): Declare replacement.
10090         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
10091         needed, plus a witness.
10092         * doc/posix-functions/fcntl.texi (fcntl): Document this.
10093         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10094         * tests/test-fcntl.c: New file.
10095         * modules/fcntl-tests: Likewise.
10096
10097         binary-io: avoid potential compilation warning
10098         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
10099         directives.
10100
10101         fflush: avoid compilation error on NetBSD
10102         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
10103         between off_t and fpos_t, since the latter is sometimes a struct.
10104         * lib/fseeko.c (rpl_fseeko): Likewise.
10105         Reported by Alexander Nasonov <alnsn@yandex.ru>.
10106
10107 2009-12-15  Eric Blake  <ebb9@byu.net>
10108
10109         fcntl-h, stdio, sys_ioctl: fix declarations
10110         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
10111         function must not take arguments.
10112         * lib/sys_ioctl.in.h (ioctl): Likewise.
10113         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
10114         (open): Add a link warning.
10115
10116 2009-12-15  Jim Meyering  <meyering@redhat.com>
10117
10118         areadlink, areadlink-with-size: relax license to LGPLv2+
10119         * modules/areadlink (License): Relax to LGPLv2+.
10120         * modules/areadlink-with-size (License): Likewise.
10121
10122 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
10123             Bruno Haible  <bruno@clisp.org>
10124
10125         *printf: Fix memory leak.
10126         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
10127         * lib/vfprintf.c (vfprintf): Likewise.
10128         * lib/dprintf.c (dprintf): Likewise.
10129         * lib/vdprintf.c (vdprintf): Likewise.
10130
10131 2009-12-14  Eric Blake  <ebb9@byu.net>
10132
10133         accept4: adjust module dependencies
10134         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
10135
10136         utimens: one more try at avoiding compiler warning
10137         * lib/utimens.c (lutimens): Lower scope of result.
10138
10139 2009-12-13  Bruno Haible  <bruno@clisp.org>
10140
10141         Move the malloc checking from module 'list' to new module 'xlist'.
10142         * modules/xlist: New file.
10143         * lib/gl_xlist.h: New file.
10144         * lib/gl_xlist.c: New file.
10145         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
10146         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
10147         gl_list_add_last, gl_list_add_before, gl_list_add_after,
10148         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
10149         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
10150         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
10151         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
10152         gl_sortedlist_nx_add): New declarations.
10153         (struct gl_list_implementation): Rename and change methods accordingly.
10154         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
10155         (gl_list_nx_create): Renamed from gl_list_create.
10156         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10157         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10158         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10159         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10160         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10161         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10162         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10163         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10164         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
10165         gl_list_create_empty.
10166         (gl_list_nx_create): Renamed from gl_list_create.
10167         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10168         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10169         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10170         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10171         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10172         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10173         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10174         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10175         * lib/gl_array_list.c: Don't include xalloc.h.
10176         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
10177         NULL upon out-of-memory.
10178         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
10179         out-of-memory.
10180         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
10181         Change return type to 'int'.
10182         (gl_array_nx_set_at): Renamed from gl_array_set_at.
10183         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10184         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
10185         upon out-of-memory.
10186         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
10187         upon out-of-memory.
10188         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
10189         upon out-of-memory.
10190         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
10191         upon out-of-memory.
10192         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
10193         out-of-memory.
10194         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
10195         Update.
10196         (gl_array_list_implementation): Update.
10197         * lib/gl_carray_list.c: Don't include xalloc.h.
10198         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
10199         Return NULL upon out-of-memory.
10200         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
10201         out-of-memory.
10202         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
10203         Change return type to 'int'.
10204         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
10205         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10206         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
10207         upon out-of-memory.
10208         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
10209         upon out-of-memory.
10210         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
10211         out-of-memory.
10212         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
10213         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
10214         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
10215         Update.
10216         (gl_carray_list_implementation): Update.
10217         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
10218         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
10219         gl_linked_create_empty. Return NULL upon out-of-memory.
10220         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
10221         out-of-memory.
10222         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
10223         Change return type to 'int'. Return -1 upon out-of-memory.
10224         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
10225         out-of-memory.
10226         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
10227         upon out-of-memory.
10228         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
10229         upon out-of-memory.
10230         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
10231         NULL upon out-of-memory.
10232         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
10233         upon out-of-memory.
10234         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
10235         out-of-memory.
10236         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
10237         Update.
10238         * lib/gl_linked_list.c: Don't include xalloc.h.
10239         (gl_linked_list_implementation): Update.
10240         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
10241         (add_to_bucket): Change return type to 'int'.
10242         (gl_linkedhash_list_implementation): Update.
10243         * lib/gl_anytree_list1.h (free_subtree): New function.
10244         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
10245         gl_tree_create_empty. Return NULL upon out-of-memory.
10246         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
10247         Change return type to 'int'. Return -1 upon out-of-memory.
10248         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
10249         out-of-memory.
10250         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
10251         (gl_tree_remove_node): New function, moved here from
10252         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
10253         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
10254         Update.
10255         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
10256         malloc, not xmalloc. Return NULL upon out-of-memory.
10257         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10258         out-of-memory.
10259         (gl_tree_remove_node_from_tree): New function, extracted from
10260         gl_tree_remove_node.
10261         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10262         upon out-of-memory.
10263         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10264         out-of-memory.
10265         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10266         upon out-of-memory.
10267         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10268         upon out-of-memory.
10269         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10270         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
10271         not xmalloc. Return NULL upon out-of-memory.
10272         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10273         out-of-memory.
10274         (gl_tree_remove_node_from_tree): New function, extracted from
10275         gl_tree_remove_node.
10276         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10277         upon out-of-memory.
10278         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10279         out-of-memory.
10280         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10281         upon out-of-memory.
10282         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10283         upon out-of-memory.
10284         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10285         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
10286         gl_anytree_list1.h before gl_anyavltree_list2.h.
10287         (gl_avltree_list_implementation): Update.
10288         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
10289         gl_anytree_list1.h before gl_anyavltree_list2.h.
10290         (gl_rbtree_list_implementation): Update.
10291         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
10292         Change return type to 'int'. Return -1 upon out-of-memory. Use
10293         __builtin_expect.
10294         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
10295         (gl_avltreehash_list_implementation): Update.
10296         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
10297         (gl_rbtreehash_list_implementation): Update.
10298         * modules/array-list (Depends-on): Remove xalloc.
10299         * modules/carray-list (Depends-on): Likewise.
10300         * modules/linked-list (Depends-on): Likewise.
10301         * modules/linkedhash-list (Depends-on): Likewise.
10302         * modules/avltree-list (Depends-on): Likewise.
10303         * modules/rbtree-list (Depends-on): Likewise.
10304         * modules/avltreehash-list (Depends-on): Likewise.
10305         * modules/rbtreehash-list (Depends-on): Likewise.
10306
10307         * modules/xsublist: New file.
10308         * lib/gl_xsublist.h: New file.
10309         * lib/gl_xsublist.c: New file.
10310         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
10311         (gl_sublist_nx_create): New declaration.
10312         * lib/gl_sublist.c: Don't include xalloc.h.
10313         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
10314         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
10315         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
10316         Change return type to 'int'. Return -1 upon out-of-memory.
10317         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
10318         upon out-of-memory.
10319         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
10320         NULL upon out-of-memory.
10321         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
10322         upon out-of-memory.
10323         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
10324         NULL upon out-of-memory.
10325         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
10326         NULL upon out-of-memory.
10327         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
10328         upon out-of-memory.
10329         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
10330         (gl_sublist_list_implementation): Update.
10331         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
10332         upon out-of-memory.
10333         * modules/sublist (Depends-on): Remove xalloc.
10334
10335         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
10336         * tests/test-carray_list.c: Likewise.
10337         * tests/test-linked_list.c: Likewise.
10338         * tests/test-linkedhash_list.c: Likewise.
10339         * tests/test-avltree_list.c: Likewise.
10340         * tests/test-rbtree_list.c: Likewise.
10341         * tests/test-avltreehash_list.c: Likewise.
10342         * tests/test-rbtreehash_list.c: Likewise.
10343         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
10344         * modules/carray-list-tests (Makefile.am): Likewise.
10345         * modules/linked-list-tests (Makefile.am): Likewise.
10346         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10347         * modules/avltree-list-tests (Makefile.am): Likewise.
10348         * modules/rbtree-list-tests (Makefile.am): Likewise.
10349         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10350         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10351
10352         * NEWS: Mention the changes.
10353
10354         * lib/clean-temp.c: Include gl_xlist.h.
10355         * modules/clean-temp (Depends-on): Add xlist.
10356
10357         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
10358         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
10359
10360         * tests/test-array_oset.c: Include gl_xlist.h.
10361         * modules/array-oset-tests (Depends-on): Add xlist.
10362
10363         Reported by José E. Marchesi <jemarch@gnu.org>.
10364
10365 2009-12-13  Bruno Haible  <bruno@clisp.org>
10366
10367         Move the malloc checking from module 'oset' to new module 'xoset'.
10368         * modules/xoset: New file.
10369         * lib/gl_xoset.h: New file.
10370         * lib/gl_xoset.c: New file.
10371         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
10372         declarations.
10373         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
10374         (struct gl_oset_implementation): Rename and change methods accordingly.
10375         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
10376         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10377         'int'. Mark as __warn_unused_result__.
10378         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
10379         gl_oset_create_empty.
10380         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10381         'int'.
10382         * lib/gl_array_oset.c: Don't include xalloc.h.
10383         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
10384         malloc, not xmalloc.
10385         (grow): Change return type to 'int'. Don't call xalloc_die.
10386         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
10387         to 'int'.
10388         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
10389         'int'.
10390         (gl_array_oset_implementation): Update.
10391         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
10392         gl_tree_create_empty.
10393         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
10394         'int'.
10395         * lib/gl_avltree_oset.c: Don't include xalloc.h.
10396         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10397         xmalloc.
10398         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10399         not xmalloc.
10400         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10401         xmalloc.
10402         (gl_avltree_oset_implementation): Update.
10403         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
10404         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10405         xmalloc.
10406         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10407         not xmalloc.
10408         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10409         xmalloc.
10410         (gl_rbtree_oset_implementation): Update.
10411         * modules/array-oset (Depends-on): Remove xalloc.
10412         * modules/avltree-oset (Depends-on): Likewise.
10413         * modules/rbtree-oset (Depends-on): Likewise.
10414         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
10415         * tests/test-avltree_oset.c: Likewise.
10416         * tests/test-rbtree_oset.c: Likewise.
10417         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10418         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
10419         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10420         * NEWS: Mention the change.
10421
10422 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
10423
10424         maint.mk: allow a project to override release-prep commands
10425         * top/maint.mk (alpha, beta, stable): Move release-preparatory
10426         commands into a new rule.
10427         (release-prep): New rule.
10428         (release-prep-hook): New overridable variable.
10429
10430 2009-12-13  Bruno Haible  <bruno@clisp.org>
10431
10432         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
10433
10434 2009-12-13  Jim Meyering  <meyering@redhat.com>
10435
10436         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
10437         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
10438
10439 2009-12-12  Bruno Haible  <bruno@clisp.org>
10440
10441         duplocale: Tweak.
10442         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
10443
10444 2009-12-12  Karl Berry  <karl@gnu.org>
10445
10446         * config/srclist.txt (strtoll.c): tab changes, no more sync.
10447
10448 2009-12-12  Bruno Haible  <bruno@clisp.org>
10449
10450         * m4/po.m4: Undo incorrect untabification.
10451
10452 2009-12-12  Bruno Haible  <bruno@clisp.org>
10453
10454         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
10455         * modules/c-strtod (Depends-on): Add locale.
10456         * modules/c-strtold (Depends-on): Likewise.
10457
10458 2009-12-12  Bruno Haible  <bruno@clisp.org>
10459
10460         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
10461
10462 2009-12-11  Eric Blake  <ebb9@byu.net>
10463
10464         setenv: relax requirement in light of POSIX ruling
10465         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
10466         not NULL.
10467         * tests/test-setenv.c (main): Relax test.
10468         * tests/test-unsetenv.c (main): Likewise.
10469         * doc/posix-functions/setenv.texi (setenv): Document this.
10470         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10471
10472 2009-12-11  Bruno Haible  <bruno@clisp.org>
10473
10474         New module 'fd-safer-flag'.
10475         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
10476         * lib/dup-safer.c (dup_safer_flag): Remove function.
10477         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
10478         * lib/fd-safer.c (fd_safer_flag): Remove function.
10479         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
10480         * modules/cloexec (configure.ac): Drop indicator macro.
10481         * modules/fd-safer-flag: New file.
10482         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
10483         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
10484         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
10485
10486 2009-12-11  Bruno Haible  <bruno@clisp.org>
10487
10488         Tests for module 'nl_langinfo'.
10489         * modules/nl_langinfo-tests: New file.
10490         * tests/test-nl_langinfo.sh: New file.
10491         * tests/test-nl_langinfo.c: New file.
10492
10493         New module 'nl_langinfo'.
10494         * lib/nl_langinfo.c: New file.
10495         * m4/nl_langinfo.m4: New file.
10496         * modules/nl_langinfo: New file.
10497         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
10498
10499 2009-12-11  Bruno Haible  <bruno@clisp.org>
10500
10501         Tests for module 'langinfo'.
10502         * modules/langinfo-tests: New file.
10503         * tests/test-langinfo.c: New file.
10504
10505         New module 'langinfo'.
10506         * lib/langinfo.in.h: New file.
10507         * m4/langinfo_h.m4: New file.
10508         * modules/langinfo: New file.
10509         * doc/posix-headers/langinfo.texi: Mention the new module.
10510
10511 2009-12-11  Bruno Haible  <bruno@clisp.org>
10512
10513         * lib/config.charset: Untabify.
10514
10515 2009-12-11  Bruno Haible  <bruno@clisp.org>
10516
10517         * modules/unistd-safer (configure.ac): Drop indicator macro.
10518
10519 2009-12-11  Bruno Haible  <bruno@clisp.org>
10520
10521         Move pipe2-safer code to its own file.
10522         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
10523         * lib/pipe-safer.c (pipe2_safer): Remove function.
10524         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
10525         (Makefile.am): Add it to lib_SOURCES.
10526
10527 2009-12-10  Bruno Haible  <bruno@clisp.org>
10528
10529         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
10530
10531 2009-12-10  Bruno Haible  <bruno@clisp.org>
10532
10533         Declare which arguments expect non-NULL values, for GCC and clang.
10534         * build-aux/arg-nonnull.h: New file.
10535         * modules/arg-nonnull: New file.
10536         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10537         (inet_ntop, inet_pton): Use it.
10538         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10539         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10540         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10541         (open, openat): Use it.
10542         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10543         (fnmatch): Use it.
10544         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10545         (getopt, getopt_long, getopt_long_only): Use it.
10546         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10547         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10548         Use it.
10549         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10550         (iconv_open): Use it.
10551         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10552         (strtoimax, strtoumax): Use it.
10553         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10554         (duplocale): Use it.
10555         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10556         (frexp, frexpl): Use it.
10557         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10558         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10559         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10560         (tsearch, tfind, tdelete, twalk): Use it.
10561         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10562         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10563         sigpending): Use it.
10564         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10565         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10566         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10567         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10568         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10569         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10570         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10571         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10572         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10573         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10574         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10575         Use it.
10576         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10577         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10578         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10579         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10580         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10581         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10582         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10583         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10584         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10585         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10586         strtoull, unsetenv): Use it.
10587         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10588         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10589         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10590         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10591         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10592         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10593         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10594         (strcasecmp, strncasecmp): Use it.
10595         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10596         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10597         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10598         rpl_setsockopt): Use it.
10599         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10600         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10601         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10602         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10603         (gettimeofday): Use it.
10604         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10605         (times): Use it.
10606         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10607         (uname): Use it.
10608         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10609         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10610         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10611         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10612         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10613         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10614         unlinkat, write): Use it.
10615         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10616         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10617         * lib/argv-iter.h: Include arg-nonnull.h.
10618         (_ATTRIBUTE_NONNULL_): Remove macro.
10619         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10620         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10621         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10622         optimization.
10623         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10624         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10625         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10626         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10627         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10628         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10629         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10630         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10631         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10632         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10633         * modules/dirent (Depends-on): Add arg-nonnull.
10634         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10635         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10636         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10637         * modules/fnmatch (Depends-on): Add arg-nonnull.
10638         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10639         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10640         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10641         * modules/glob (Depends-on): Add arg-nonnull.
10642         (Makefile.am): Insert arg-nonnull.h into glob.h.
10643         * modules/iconv_open (Depends-on): Add arg-nonnull.
10644         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10645         * modules/inttypes (Depends-on): Add arg-nonnull.
10646         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10647         * modules/locale (Depends-on): Add arg-nonnull.
10648         (Makefile.am): Insert arg-nonnull.h into locale.h.
10649         * modules/math (Depends-on): Add arg-nonnull.
10650         (Makefile.am): Insert arg-nonnull.h into math.h.
10651         * modules/netdb (Depends-on): Add arg-nonnull.
10652         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10653         * modules/search (Depends-on): Add arg-nonnull.
10654         (Makefile.am): Insert arg-nonnull.h into search.h.
10655         * modules/signal (Depends-on): Add arg-nonnull.
10656         (Makefile.am): Insert arg-nonnull.h into signal.h.
10657         * modules/spawn (Depends-on): Add arg-nonnull.
10658         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10659         * modules/stdio (Depends-on): Add arg-nonnull.
10660         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10661         * modules/stdlib (Depends-on): Add arg-nonnull.
10662         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10663         * modules/string (Depends-on): Add arg-nonnull.
10664         (Makefile.am): Insert arg-nonnull.h into string.h.
10665         * modules/strings (Depends-on): Add arg-nonnull.
10666         (Makefile.am): Insert arg-nonnull.h into strings.h.
10667         * modules/sys_socket (Depends-on): Add arg-nonnull.
10668         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10669         * modules/sys_stat (Depends-on): Add arg-nonnull.
10670         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10671         * modules/sys_time (Depends-on): Add arg-nonnull.
10672         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10673         * modules/sys_times (Depends-on): Add arg-nonnull.
10674         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10675         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10676         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10677         * modules/time (Depends-on): Add arg-nonnull.
10678         (Makefile.am): Insert arg-nonnull.h into time.h.
10679         * modules/unistd (Depends-on): Add arg-nonnull.
10680         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10681         * modules/wchar (Depends-on): Add arg-nonnull.
10682         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10683         * modules/argv-iter (Depends-on): Add arg-nonnull.
10684         * tests/test-canonicalize.c (null_ptr): New function.
10685         (main): Use it.
10686         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10687         (main): Use it.
10688         * tests/test-memmem.c (null_ptr): New function.
10689         (main): Use it.
10690         Reported by Jim Meyering.
10691
10692 2009-12-10  Bruno Haible  <bruno@clisp.org>
10693
10694         Use spaces for indentation, not tabs.
10695         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10696         * m4/*.m4: Untabify.
10697         * build-aux/*.h: Untabify.
10698         * tests/**/*.[hc]: Untabify.
10699         * README: New section "Indent with spaces, not TABs", based on
10700         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10701         * NEWS: Mention the change.
10702
10703 2009-12-10  Bruno Haible  <bruno@clisp.org>
10704
10705         pty test: Fix link error.
10706         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10707         test_pty_LDADD.
10708
10709 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10710
10711         * modules/pty: New file.
10712         * modules/pty-tests: New file.
10713         * m4/pty.m4: New file.
10714         * tests/test-pty.c: New file.
10715         * doc/glibc-headers/pty.texi: Modified.
10716         * doc/glibc-functions/forkpty.texi: Modified.
10717         * doc/glibc-functions/openpty.texi: Modified.
10718
10719 2009-12-10  Bruno Haible  <bruno@clisp.org>
10720
10721         Avoid syntax error in C++ mode.
10722         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
10723
10724 2009-12-10  Bruno Haible  <bruno@clisp.org>
10725
10726         Use sed with option -e.
10727         * gnulib-tool (func_version, func_emit_copyright_notice,
10728         func_emit_initmacro_end, func_import, func_create_testdir): Pass
10729         option -e to sed.
10730         * modules/link-warning (Makefile.am): Likewise.
10731
10732 2009-12-10  Jim Meyering  <meyering@redhat.com>
10733
10734         mgetgroups: do not write bytes beyond end of malloc'd buffer
10735         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
10736         username, we call getgroups with a one-element-shorter buffer,
10737         but still told it the length was original, max_n_groups.
10738
10739 2009-12-09  Eric Blake  <ebb9@byu.net>
10740
10741         cloexec: relax license
10742         * modules/cloexec (Maintainer): Add myself.
10743         (License): Use LGPL, not GPL.
10744
10745         link-warning: optimize generation
10746         * modules/link-warning (Makefile.am): Reduce process usage.
10747
10748 2009-12-09  Bruno Haible  <bruno@clisp.org>
10749
10750         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
10751         workaround was added on 2009-11-17.
10752
10753 2009-12-09  Jim Meyering  <meyering@redhat.com>
10754             Bruno Haible  <bruno@clisp.org>
10755
10756         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
10757         * modules/link-warning (Makefile.am): Make the comment-removing sed
10758         command more robust in the face of bootstrap-prepended comment lines.
10759
10760 2009-12-09  Bruno Haible  <bruno@clisp.org>
10761
10762         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
10763         most one group.
10764
10765 2009-12-09  Simon Josefsson <simon@josefsson.org>
10766             Bruno Haible  <bruno@clisp.org>
10767
10768         * build-aux/link-warning.h: Add copyright notice.
10769         * modules/link-warning (Makefile.am): Generate link-warning.h from
10770         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
10771         * NEWS: Mention change in link-warning module.
10772         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
10773         * modules/dirent (Makefile.am): Add dependency to dirent.h.
10774         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
10775         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
10776         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
10777         * modules/math (Makefile.am): Add dependency to math.h.
10778         * modules/search (Makefile.am): Add dependency to search.h.
10779         * modules/signal (Makefile.am): Add dependency to signal.h.
10780         * modules/spawn (Makefile.am): Add dependency to spawn.h.
10781         * modules/stdio (Makefile.am): Add dependency to stdio.h.
10782         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
10783         * modules/string (Makefile.am): Add dependency to string.h.
10784         * modules/strings (Makefile.am): Add dependency to strings.h.
10785         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
10786         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
10787         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
10788         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
10789         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
10790         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
10791         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
10792         * modules/unistd (Makefile.am): Add dependency to unistd.h.
10793         * modules/wchar (Makefile.am): Add dependency to wchar.h.
10794
10795 2009-12-09  Bruno Haible  <bruno@clisp.org>
10796
10797         fchdir: Optimize away rpl_fstat when possible.
10798         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
10799         REPLACE_OPEN_DIRECTORY.
10800         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
10801
10802 2009-12-09  Bruno Haible  <bruno@clisp.org>
10803
10804         * lib/fchdir.c: Update comment.
10805
10806 2009-12-09  Bruno Haible  <bruno@clisp.org>
10807
10808         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
10809
10810 2009-12-08  Eric Blake  <ebb9@byu.net>
10811
10812         fchdir: avoid memory leak on re-registration.
10813         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
10814
10815 2009-12-08  Jim Meyering  <meyering@redhat.com>
10816
10817         init.sh: avoid Solaris 10 /bin/sh portability problem
10818         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
10819         sourced script:
10820           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
10821           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
10822           bar
10823         tests/init.sh relied on that, accepting a --set-path=DIR argument,
10824         and two tests used that idiom.
10825         * tests/init.sh: Update suggested usage comments.
10826         (path_prepend_): New function, to be used in place
10827         of the --src-path=DIR option.
10828         (setup_): Move PATH-prepending code into path_prepend_.
10829         * tests/test-pread.sh: Adapt to new usage.
10830         * tests/test-xalloc-die.sh: Likewise.
10831
10832 2009-12-08  Simon Josefsson  <simon@josefsson.org>
10833
10834         * doc/gnulib.texi (Glibc pty.h): Add.
10835         * doc/glibc-functions/forkpty.texi: Add.
10836         * doc/glibc-functions/openpty.texi: Add.
10837         Suggested by Bruno Haible.
10838
10839 2009-12-08  Eric Blake  <ebb9@byu.net>
10840
10841         fchdir: fix logic bugs
10842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
10843         * tests/test-fchdir.c (main): Enhance test.
10844         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
10845         is in use.
10846
10847         dup2: fix logic bugs
10848         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
10849         REPLACE_DUP2 to decide when rpl_dup2 is needed.
10850         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
10851         exists.
10852         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
10853
10854 2009-12-07  Eric Blake  <ebb9@byu.net>
10855
10856         unlink: fix m4 detection
10857         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
10858
10859         unistd-safer: add unit test
10860         * modules/unistd-safer-tests: New file.
10861         * tests/test-dup-safer.c: Likewise.
10862         * tests/test-cloexec.c (setmode): Avoid compiler warning.
10863         * tests/test-dup2.c (setmode): Likewise.
10864         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
10865
10866         cloexec: preserve text vs. binary across dup_cloexec
10867         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
10868         mode.
10869         * modules/dup2-tests (Depends-on): Add binary-io.
10870         * modules/cloexec-tests (Depends-on): Likewise.
10871         * tests/test-dup2.c (setmode, is_mode): New helpers.
10872         (main): Add tests that translation mode is preserved.
10873         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
10874         Reported by Bruno Haible.
10875
10876         mgetgroups: reduce duplicate listings
10877         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
10878         resulting array.
10879         * tests/test-chown.h (test_chown): Simplify client.
10880         * tests/test-lchown.h (test_lchown): Likewise.
10881
10882 2009-12-06  Bruno Haible  <bruno@clisp.org>
10883
10884         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
10885         value.
10886
10887 2009-12-06  Bruno Haible  <bruno@clisp.org>
10888
10889         * lib/progname.c: Include stdio.h, stdlib.h.
10890         (set_program_name): Reject a NULL argument.
10891
10892 2009-12-05  Eric Blake  <ebb9@byu.net>
10893
10894         pipe2-safer: new module
10895         * modules/pipe2-safer: New file.
10896         * lib/unistd-safer.h (pipe2_safer): New prototype.
10897         * lib/unistd--.h (pipe2): New wrapper.
10898         * lib/pipe-safer.c (pipe2_safer): New function.
10899         * modules/pipe (Depends-on): Add pipe2-safer.
10900         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
10901
10902         stdlib-safer: preserve cloexec flag for mkostemp[s]
10903         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
10904         fd_safer_flag.
10905
10906         unistd-safer: allow preservation of cloexec status via flag
10907         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
10908         prototypes.
10909         * lib/dup-safer.c (dup_safer_flag): New function.
10910         * lib/fd-safer.c (fd_safer_flag): Likewise.
10911         * modules/cloexec (configure.ac): Set witness.
10912
10913         test-dup2: enhance test
10914         * modules/dup2-tests (Depends-on): Add cloexec.
10915         * tests/test-dup2.c (main): Enhance test.
10916
10917         cloexec: add dup_cloexec
10918         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
10919         header and comments.
10920         * lib/cloexec.c (set_cloexec_flag): Add comments.
10921         (dup_cloexec): New function, with mingw implementation borrowed
10922         from...
10923         * lib/w32spawn.h (dup_noinherit): ...here.
10924         * modules/execute (Depends-on): Add cloexec.
10925         * modules/pipe (Depends-on): Likewise.
10926         * modules/cloexec (Depends-on): Add dup2.
10927         * modules/cloexec-tests (Files): New file.
10928         * tests/test-cloexec.c: Likewise.
10929
10930         test-xalloc-die: fix test for mingw
10931         * modules/xalloc-die-tests (Files): Add tests/init.sh.
10932         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
10933         directory and .exe suffix off argv[0] output.
10934
10935         test-fseeko: fix test for mingw
10936         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
10937         than undefining fseek, so test will pass on mingw.
10938
10939 2009-12-05  Bruno Haible  <bruno@clisp.org>
10940
10941         * lib/progname.h (set_program_name): Clarify specification.
10942         * lib/progname.c (set_program_name): Likewise.
10943         Reported by Jim Meyering.
10944
10945 2009-12-05  Jim Meyering  <meyering@redhat.com>
10946
10947         maint.mk: backslash-escape parens in default regexp
10948         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
10949         backslash-escape the literal parentheses.
10950
10951         maint.mk: news-date-check: use grep -E
10952         * top/maint.mk (today): Define a Make variable, not a...
10953         (news-date-check): ...shell variable.
10954         (news-date-regexp): Use the Make variable.
10955         Use grep's -E option.  Change the failing diagnostic to mention
10956         the variable, $(news-date-regexp).
10957
10958 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
10959
10960         maintainer-makefile: allow customization of NEWS entry format
10961         * top/maint.mk (news-date-regexp): New overridable variable.
10962         (news-date-check): Use it.
10963
10964 2009-12-04  Eric Blake  <ebb9@byu.net>
10965
10966         mgetgroups: add xgetgroups, and avoid ENOSYS failures
10967         * lib/mgetgroups.h (xgetgroups): New prototype.
10968         * lib/mgetgroups.c (xgetgroups): New wrapper.
10969         (mgetgroups): Handle ENOSYS.
10970         * modules/mgetgroups (Depends-on): Add realloc.
10971         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
10972
10973         mgetgroups: avoid argument promotion issues with -1
10974         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
10975         for invalid gid_t.
10976         * tests/test-chown.h (getegid, test_chown): Likewise.
10977         * tests/test-lchown.h (getegid, test_lchown): Likewise.
10978
10979 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
10980
10981         exclude: Fix header file problems.
10982         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
10983
10984 2009-12-01  Jim Meyering  <meyering@redhat.com>
10985
10986         fts: fts_open: do not let an empty string cause immediate failure
10987         This is required in support of GNU rm, for which the command
10988         "rm A '' B" must process and remove both A and B, in spite of
10989         the empty string argument.
10990         * lib/fts.c (fts_open): Do not let the presence of an empty string
10991         cause fts_open to fail immediately.  Most fts-using tools must be
10992         able to process all arguments, in order, and can be expected to
10993         diagnose such arguments themselves.
10994
10995 2009-11-30  Eric Blake  <ebb9@byu.net>
10996
10997         utimens: fix compilation error
10998         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
10999         Declare variable at right scope.
11000
11001 2009-11-29  Jim Meyering  <meyering@redhat.com>
11002
11003         bootstrap: handle perl-5.11's changed --version output
11004         * build-aux/bootstrap (get_version): Handle perl separately,
11005         since perl-5.11's --version output is different.
11006
11007 2009-11-28  Jim Meyering  <meyering@redhat.com>
11008
11009         userspec: depend on the inttostr module, too
11010         * modules/userspec (Depends-on): Add inttostr.
11011
11012         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
11013         * lib/userspec.c (parse_with_separator): Do not accept a user ID
11014         number of MAXUID when it evaluates to (uid_t) -1.
11015         Likewise for group ID.  Reported by Matt McCutchen in
11016         <http://savannah.gnu.org/bugs/?28113>
11017
11018         userspec: reformat to use spaces, not TABs
11019         * lib/userspec.c: Expand TABs to spaces.
11020         Add Emacs' "indent-tabs-mode: nil" hint.
11021
11022 2009-11-27  Eric Blake  <ebb9@byu.net>
11023
11024         getopt-gnu: flush out another BSD bug
11025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
11026         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
11027         flush out BSD bug.
11028         * tests/test-getopt.h (test_getopt): End lists with NULL.
11029         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11030         (test_getopt_long_posix): Enhance test.
11031         * modules/getopt-posix-tests (Depends-on): Add stdbool.
11032         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
11033         getopt-gnu.
11034         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11035         Likewise.
11036
11037 2009-11-27  Simon Josefsson  <simon@josefsson.org>
11038
11039         * modules/idpriv-droptemp-tests (Notice): Fix text.
11040
11041 2009-11-27  Jim Meyering  <meyering@redhat.com>
11042
11043         test-xalloc-die: avoid spurious failure due to libtool argv difference
11044         In a libtool-enabled project, this test would fail due to a difference
11045         in the emitted program name, e.g.,
11046         -test-xalloc-die: memory exhausted
11047         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
11048         Use program to avoid that.
11049         * modules/xalloc-die-tests (Depends-on): Add progname.
11050         * tests/test-xalloc-die.c: Include progname.h".
11051         (program_name): Remove decl.
11052         (main): Call set_program_name.
11053         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
11054
11055 2009-11-26  Richard Jones  <rjones@redhat.com>
11056
11057         w32sock: leave win32 error in place.
11058         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
11059
11060 2009-11-26  Eric Blake  <ebb9@byu.net>
11061
11062         init.sh: suggest to use skip_ and fail_ functions in comments
11063         * tests/init.sh: Add a sentence.
11064
11065 2009-11-25  Bruno Haible  <bruno@clisp.org>
11066
11067         init.sh: add documentation in comments
11068         * tests/init.sh: Add some developer and user documentation.
11069
11070 2009-11-26  Jim Meyering  <meyering@redhat.com>
11071
11072         init.sh: accommodate even those who specify bogus srcdir manually
11073         * tests/init.sh: Normally, srcdir is guaranteed by automake and
11074         configure-time tests to be sanitized, so that there is no need to
11075         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
11076         (with no double quotes) suffices.  However, since tests may be
11077         invoked manually, and since you may explicitly set srcdir to the
11078         name of a directory containing spaces, do quote its uses here.
11079         * tests/test-pread.sh: Likewise.
11080         Suggested by Bruno Haible.
11081
11082         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
11083         * tests/test-pread.sh: Write no data into the pipe, because
11084         test-pread actually reads none.  This avoids a diagnostic,
11085         "bash: echo: write error: Broken pipe", that arises in the unusual
11086         event something is ignoring SIGPIPE, and might be interpreted
11087         as some sort of failure.  Reported by Bruno Haible.
11088
11089 2009-11-25  Jim Meyering  <meyering@redhat.com>
11090
11091         test-pread: cover failure with ESPIPE and EINVAL
11092         * tests/test-pread.c (main): Test for failure, too.
11093         * tests/test-pread.sh: Invoke with stdin on a pipe.
11094         Suggested by Eric Blake.
11095
11096         pread: improvement and fix
11097         * modules/pread (Depends-on): Depend on lseek, for portability to
11098         e.g., mingw.  Suggested by Eric Blake.
11099         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
11100
11101         unistd.in.h: correct declaration of pread
11102         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
11103         Reported by Richard W.M. Jones.
11104
11105         test-pread.sh: distribute the test script
11106         * modules/pread-tests (Files): Include test-pread.sh.
11107
11108         test-pread.sh: clean up
11109         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
11110         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
11111         That is unnecessary, since it's always ".".
11112         Suggestion from Eric Blake.
11113
11114         test-pread.sh: make executable
11115         * tests/test-pread.sh: Set executable bit.
11116         Reported by Eric Blake.
11117
11118         correct typo in test-pread.sh
11119         * tests/test-pread.sh: Add #! line.
11120
11121         test pread
11122         * tests/test-pread.c: New file.
11123         * tests/test-pread.sh: Likewise.
11124         * modules/pread-tests: Likewise.
11125
11126         pread: new module
11127         * modules/pread: New file.
11128         * lib/unistd.in.h (pread): Define/declare.
11129         * lib/pread.c (pread): New file.
11130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
11131         * modules/unistd (Makefile.am): Substitute witnesses.
11132         * doc/posix-functions/pread.texi (pread): Update.
11133         * MODULES.html.sh: Add pread.
11134
11135 2009-11-25  Jim Meyering  <meyering@redhat.com>
11136
11137         tests/init.sh: new file to be used via most *.sh tests
11138         * tests/init.sh: New file.
11139
11140 2009-11-25  Eric Blake  <ebb9@byu.net>
11141
11142         utimens: work around older Linux failure with symlinks
11143         * lib/utimens.c (lutimensat_works_really): New variable.
11144         (fdutimens, lutimens): Use it to manage kernels that support
11145         nanosecond times on files, but not on symlinks.
11146         Reported by Ondřej Vašík.
11147
11148         utimes: fix configure grammar
11149         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
11150
11151 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
11152
11153         regex: Fix fastmap for multibyte character ranges.
11154         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
11155         characters when a multibyte character range is included.
11156
11157 2009-11-22  Andy Wingo  <wingo@pobox.com>
11158
11159         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
11160         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
11161
11162 2009-11-24  Bruno Haible  <bruno@clisp.org>
11163
11164         doc: Most *_l functions exist in MacOS X 10.5.
11165         * doc/posix-functions/duplocale.texi: Update platforms list.
11166         * doc/posix-functions/freelocale.texi: Likewise.
11167         * doc/posix-functions/newlocale.texi: Likewise.
11168         * doc/posix-functions/uselocale.texi: Likewise.
11169         * doc/posix-functions/isalnum_l.texi: Likewise.
11170         * doc/posix-functions/isalpha_l.texi: Likewise.
11171         * doc/posix-functions/isblank_l.texi: Likewise.
11172         * doc/posix-functions/iscntrl_l.texi: Likewise.
11173         * doc/posix-functions/isdigit_l.texi: Likewise.
11174         * doc/posix-functions/isgraph_l.texi: Likewise.
11175         * doc/posix-functions/islower_l.texi: Likewise.
11176         * doc/posix-functions/isprint_l.texi: Likewise.
11177         * doc/posix-functions/ispunct_l.texi: Likewise.
11178         * doc/posix-functions/isspace_l.texi: Likewise.
11179         * doc/posix-functions/isupper_l.texi: Likewise.
11180         * doc/posix-functions/iswalnum_l.texi: Likewise.
11181         * doc/posix-functions/iswalpha_l.texi: Likewise.
11182         * doc/posix-functions/iswblank_l.texi: Likewise.
11183         * doc/posix-functions/iswcntrl_l.texi: Likewise.
11184         * doc/posix-functions/iswctype_l.texi: Likewise.
11185         * doc/posix-functions/iswdigit_l.texi: Likewise.
11186         * doc/posix-functions/iswgraph_l.texi: Likewise.
11187         * doc/posix-functions/iswlower_l.texi: Likewise.
11188         * doc/posix-functions/iswprint_l.texi: Likewise.
11189         * doc/posix-functions/iswpunct_l.texi: Likewise.
11190         * doc/posix-functions/iswspace_l.texi: Likewise.
11191         * doc/posix-functions/iswupper_l.texi: Likewise.
11192         * doc/posix-functions/iswxdigit_l.texi: Likewise.
11193         * doc/posix-functions/isxdigit_l.texi: Likewise.
11194         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
11195         * doc/posix-functions/strcasecmp_l.texi: Likewise.
11196         * doc/posix-functions/strcoll_l.texi: Likewise.
11197         * doc/posix-functions/strfmon_l.texi: Likewise.
11198         * doc/posix-functions/strftime_l.texi: Likewise.
11199         * doc/posix-functions/strncasecmp_l.texi: Likewise.
11200         * doc/posix-functions/strxfrm_l.texi: Likewise.
11201         * doc/posix-functions/tolower_l.texi: Likewise.
11202         * doc/posix-functions/toupper_l.texi: Likewise.
11203         * doc/posix-functions/towctrans_l.texi: Likewise.
11204         * doc/posix-functions/towlower_l.texi: Likewise.
11205         * doc/posix-functions/towupper_l.texi: Likewise.
11206         * doc/posix-functions/wcscoll_l.texi: Likewise.
11207         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11208         * doc/posix-functions/wctrans_l.texi: Likewise.
11209         * doc/posix-functions/wctype_l.texi: Likewise.
11210         * doc/glibc-functions/strptime_l.texi: Likewise.
11211         * doc/glibc-functions/strtod_l.texi: Likewise.
11212         * doc/glibc-functions/strtof_l.texi: Likewise.
11213         * doc/glibc-functions/strtol_l.texi: Likewise.
11214         * doc/glibc-functions/strtold_l.texi: Likewise.
11215         * doc/glibc-functions/strtoll_l.texi: Likewise.
11216         * doc/glibc-functions/strtoul_l.texi: Likewise.
11217         * doc/glibc-functions/strtoull_l.texi: Likewise.
11218         * doc/glibc-functions/wcsftime_l.texi: Likewise.
11219         * doc/glibc-functions/wcstod_l.texi: Likewise.
11220         * doc/glibc-functions/wcstof_l.texi: Likewise.
11221         * doc/glibc-functions/wcstol_l.texi: Likewise.
11222         * doc/glibc-functions/wcstold_l.texi: Likewise.
11223         * doc/glibc-functions/wcstoll_l.texi: Likewise.
11224         * doc/glibc-functions/wcstoul_l.texi: Likewise.
11225         * doc/glibc-functions/wcstoull_l.texi: Likewise.
11226
11227 2009-11-24  Bruno Haible  <bruno@clisp.org>
11228
11229         duplocale: Fix logic bug.
11230         * lib/duplocale.c: Don't include <langinfo.h>.
11231         (_NL_LOCALE_NAME): Remove macro.
11232         (rpl_duplocale): Use setlocale instead of nl_langinfo.
11233         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
11234
11235 2009-11-23  Jim Meyering  <meyering@redhat.com>
11236
11237         test-update-copyright: don't hard-code /usr/bin/perl
11238         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
11239         perl to print the current year.  Gilles Espinasse reported that
11240         the replaced use of perl was hard-coded as /usr/bin/perl.
11241
11242 2009-11-23  Bruno Haible  <bruno@clisp.org>
11243
11244         duplocale: Add support for glibc 2.3.x.
11245         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
11246
11247 2009-11-22  Bruno Haible  <bruno@clisp.org>
11248
11249         vasnprintf: Tiny optimization.
11250         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
11251         MacOS X.
11252
11253 2009-11-22  Bruno Haible  <bruno@clisp.org>
11254
11255         Tests for module 'duplocale'.
11256         * modules/duplocale-tests: New file.
11257         * tests/test-duplocale.c: New file.
11258
11259         New module 'duplocale'.
11260         * m4/duplocale.m4: New file.
11261         * lib/locale.in.h (duplocale): New declaration.
11262         * lib/duplocale.c: New file.
11263         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
11264         gl_LOCALE_H_DEFAULTS): New macros.
11265         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
11266         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
11267         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
11268         REPLACE_DUPLOCALE.
11269         * modules/duplocale: New file.
11270         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
11271
11272 2009-11-22  Bruno Haible  <bruno@clisp.org>
11273
11274         * modules/locale-tests (configure.ac): Test for newlocale function.
11275         * tests/test-locale.c: When the system has extended locale functions,
11276         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
11277
11278         locale: Make locale_t available when possible.
11279         * lib/locale.in.h: Include <xlocale.h> when it exists.
11280         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
11281         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
11282         * modules/locale (Depends-on): Add extensions.
11283         (Makefile.am): Also substitute HAVE_XLOCALE_H.
11284         * doc/posix-headers/locale.texi: Document the problem with locale_t.
11285
11286 2009-11-22  Bruno Haible  <bruno@clisp.org>
11287
11288         Add comments.
11289         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
11290         invocation.
11291         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11292         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11293         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11294
11295 2009-11-22  Bruno Haible  <bruno@clisp.org>
11296
11297         error: account for the possibility of freopen (stdout).
11298         * lib/error.c: Include <unistd.h>.
11299         (flush_stdout): New function, extracted from error and error_at_line.
11300         Determine stdout's fd dynamically.
11301         (error, error_at_line): Invoke flush_stdout.
11302         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
11303         * modules/error (Depends-on): Add unistd.
11304
11305 2009-11-22  Bruno Haible  <bruno@clisp.org>
11306
11307         diffseq: Add comment.
11308         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
11309
11310 2009-11-22  Jim Meyering  <meyering@redhat.com>
11311
11312         c-stack: avoid defining an unused static function
11313         * lib/c-stack.c (find_stack_direction): Do not define this function
11314         when it will not be used.
11315
11316         diffseq: avoid spurious gcc warnings
11317         * lib/diffseq.h (IF_LINT2): Define.
11318         (compareseq): Use it to initialize two members of "part".
11319         This avoids two used-uninitialized warnings.
11320
11321 2009-11-21  Jim Meyering  <meyering@redhat.com>
11322
11323         c-stack: avoid "ignoring return value of `write'" warning
11324         * lib/c-stack.c: Include "ignore-value.h".
11325         (die): Explicitly ignore each write return value.
11326         * modules/c-stack (Depends-on): Add ignore-value.
11327
11328 2009-11-21  Bruno Haible  <bruno@clisp.org>
11329
11330         diffseq: reduce scope of variable 'best'.
11331         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
11332         variable, earlier used for two different purposes.
11333
11334 2009-11-21  Jim Meyering  <meyering@redhat.com>
11335
11336         diffseq: remove useless assignment to "best"
11337         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
11338         assignment.  At that point "best" is already guaranteed to be zero.
11339
11340 2009-11-20  Eric Blake  <ebb9@byu.net>
11341
11342         build: mention ftp redirector in release announcements
11343         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
11344         values that used to come from cfg.mk; mention FTP redirect URL.
11345         * build-aux/announce-gen: Mention the mirror list.
11346         Suggested by Karl Berry.
11347
11348         nanosleep: improve port to mingw
11349         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
11350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
11351         LIB_NANOSLEEP, but only when needed.
11352         * modules/select (Link): Document LIBSOCKET.
11353         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
11354         enough.
11355
11356         nanosleep: work around cygwin bug
11357         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
11358         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
11359         bug.
11360         (getnow): Delete, not needed.
11361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
11362         LIB_CLOCK_GETTIME.
11363         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
11364         clock-time, gettime.
11365         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
11366         bug.
11367         * modules/nanosleep-tests: New test.
11368         * tests/test-nanosleep.c: New file.
11369
11370         sleep: work around cygwin bug
11371         * lib/sleep.c (rpl_sleep): Work around the bug.
11372         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
11373         (gl_PREREQ_SLEEP): Delete unused macro.
11374         * modules/sleep (Depends-on): Add verify.
11375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11376         * modules/unistd (Makefile.am): Substitute witness.
11377         * lib/unistd.in.h (sleep): Update prototype.
11378         * doc/posix-functions/sleep.texi (sleep): Document the bug.
11379         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
11380         * modules/sleep-tests (Depends-on): Check for alarm.
11381
11382 2009-11-20  Jim Meyering  <meyering@redhat.com>
11383
11384         maint.mk: improve sc_prohibit_magic_number_exit
11385         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
11386         so it does not match uses like System.exit(1).
11387         Add comments showing how to correct all offenders.
11388
11389 2009-11-19  Eric Blake  <ebb9@byu.net>
11390
11391         xalloc-die-tests: add missing library
11392         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
11393
11394         test-xvasprintf: silence compiler warnings
11395         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
11396         empty string from gcc.
11397
11398 2009-11-19  Jim Meyering  <meyering@redhat.com>
11399
11400         xfreopen: new module, from coreutils
11401         * modules/xfreopen: New module.
11402         * lib/xfreopen.c: New file.
11403         * lib/xfreopen.h: New file.
11404         * MODULES.html.sh (File stream based Input/Output"): Add it.
11405
11406 2009-11-19  Eric Blake  <ebb9@byu.net>
11407
11408         manywarnings: depend on warnings
11409         * modules/manywarnings (Depends-on): Add warnings.
11410
11411         build: avoid compiler warnings
11412         * lib/select.c (rpl_select): Delete unused variable.
11413         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
11414
11415 2009-11-18  Eric Blake  <ebb9@byu.net>
11416
11417         tests: avoid false negative with --with-packager
11418         * tests/test-version-etc.sh: Discard packager information.
11419         * tests/test-argp-version-etc-1.sh: Likewise.
11420         Reported by Mike Frysinger.
11421
11422         utimens: fix regression on Solaris
11423         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
11424         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
11425         can only change fd timestamps via futimesat.  Instead, use an
11426         additional witness macro to avoid BSD bug.
11427         Reported by Jim Meyering.
11428
11429 2009-11-17  Eric Blake  <ebb9@byu.net>
11430
11431         usleep: use it to simplify tests
11432         * modules/stat-time-tests (Depends-on): Add usleep.
11433         (configure.ac): Drop usleep check.
11434         * modules/chown-tests (Depends-on, configure.ac): Likewise.
11435         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
11436         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
11437         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
11438         * modules/openat-tests (Depends-on, configure.ac): Likewise.
11439         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
11440         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
11441         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
11442         Likewise.
11443         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
11444         * tests/test-lchown.h (nap): Likewise.
11445         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
11446         * tests/test-stat-time.c (nap): Likewise.
11447         * tests/test-utimens-common.h (nap): Update comments.
11448
11449         usleep: new module
11450         * modules/usleep: New file.
11451         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11452         * lib/usleep.c (usleep): Likewise.
11453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11454         * modules/unistd (Makefile.am): Substitute witnesses.
11455         * lib/unistd.in.h (usleep): Add declaration.
11456         * doc/pastposix-functions/usleep.texi (usleep): Document this.
11457         * MODULES.html.sh (Date and time): Likewise.
11458         * modules/usleep-tests (Depends-on): New test.
11459         * tests/test-usleep.c: New file.
11460
11461         chown: work around OpenBSD bug
11462         * lib/chown.c (rpl_chown): Work around the bug.
11463         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
11464         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
11465         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
11466         * modules/chown (Depends-on): Add stdbool.
11467         * modules/lchown (Depends-on): Likewise.
11468         * doc/posix-functions/chown.texi (chown): Document the bug.
11469         * doc/posix-functions/lchown.texi (lchown): Likewise.
11470         * tests/test-lchown.h (test_chown): Relax test.
11471
11472         mkstemp: avoid conflict with C++ keyword template
11473         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
11474         * lib/mkostemp.c (mkostemp): Likewise.
11475         * lib/mkostemps.c (mkostemps): Likewise.
11476         * lib/mkstemp.c (mkstemp): Likewise.
11477         * lib/mkstemps.c (mkstemps): Likewise.
11478
11479         xalloc-die-tests: optimize
11480         * tests/test-xalloc-die.sh: Reduce number of processes.
11481
11482 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11483
11484         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
11485         patch from ludo@gnu.org (Ludovic Courtès).
11486
11487 2009-11-17  Jim Meyering  <meyering@redhat.com>
11488
11489         version-etc: use proper license string
11490         * modules/version-etc (License): Use LGPL, not LGPLv3+.
11491         * modules/version-etc-fsf: Likewise.
11492
11493 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11494
11495         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
11496         printed to stdout.  Deal with EOL differences.
11497
11498 2009-11-17  Eric Blake  <ebb9@byu.net>
11499
11500         unsetenv: work around Solaris bug
11501         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
11502         * lib/unsetenv.c (rpl_unsetenv): Work around it.
11503         Reported by Jim Meyering.
11504
11505         vasnprintf: avoid compiler warnings
11506         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
11507         variables.
11508         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
11509
11510 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11511
11512         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
11513         settings since xalloc-die is no longer the self test,
11514         xalloc-die.sh is.
11515
11516 2009-11-17  Jim Meyering  <meyering@redhat.com>
11517
11518         test-xalloc-die.sh: make the code agree with the commit log
11519         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
11520         at the end, just in case you happen to have a test-xalloc-die
11521         program in some other PATH directory.
11522
11523         test-xalloc-die.sh: fix a portability bug
11524         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
11525         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
11526         Otherwise, argv[0] (as often seen in diagnostics) would be too
11527         system-dependent, sometimes with, and sometimes without the leading "./".
11528
11529         version-etc-fsf: relax license to LGPLv3+
11530         * modules/version-etc-fsf (License): Relax license.
11531
11532 2009-11-16  Eric Blake  <ebb9@byu.net>
11533
11534         xalloc-die-tests: avoid printing null pointer
11535         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11536         shell script.
11537         * tests/test-xalloc-die.c (program_name): Declare.
11538         * tests/test-xalloc-die.sh (tmpfiles): New file.
11539
11540         setenv, unsetenv: work around various bugs
11541         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11542         (setenv) [HAVE_SETENV]: Work around bugs.
11543         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11544         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11545         for bugs.
11546         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11547         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11549         * modules/stdlib (Makefile.am): Update substitutions.
11550         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11551         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11552         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11553         * modules/setenv-tests: New test.
11554         * modules/unsetenv-tests: Likewise.
11555         * tests/test-setenv.c: New file.
11556         * tests/test-unsetenv.c: Likewise.
11557
11558 2009-11-16  Jim Meyering  <meyering@redhat.com>
11559
11560         version-etc: relax license to LGPLv3+
11561         * modules/version-etc (License): Relax license.
11562
11563         better AC_REQUIRE expanded-before-required-warning avoidance
11564         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11565         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11566         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11567         which is no longer needed.
11568
11569 2009-11-16  Eric Blake  <ebb9@byu.net>
11570
11571         test-freading: clean up temporary file
11572         * tests/test-freading.c (main): Remove file on success, and use
11573         ASSERT more liberally.
11574         Reported by Jim Meyering.
11575
11576 2009-11-16  Jim Meyering  <meyering@redhat.com>
11577
11578         avoid new AC_REQUIRE expanded-before-required warnings
11579         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11580         merely using it.
11581         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11582         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11583
11584 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11585
11586         * tests/test-xalloc-die.c: New file.
11587         * modules/xalloc-die-tests: New file.
11588         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11589         XFAIL_TESTS so it can be appended by modules.
11590
11591 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11592
11593         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11594         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11595
11596 2009-11-14  Eric Blake  <ebb9@byu.net>
11597
11598         fnmatch: avoid compiler warning
11599         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11600         to silence compiler warning about mismatch signedness in ?:.
11601         Reported by Robert Millan.
11602
11603         intprops: add double-inclusion guard
11604         * lib/intprops.h: Allow idempotent includes.
11605         Suggested by Bruce Korb.
11606
11607         openat: detect Solaris fchownat bug
11608         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11609         penalizing glibc chownat when only lchownat is broken.
11610         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11611         trailing slash bugs.
11612         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11613         * modules/openat-tests (Files): Include more files.
11614         (Depends-on): Add mgetgroups, sleep, stat-time.
11615         (configure.ac): Add additional checks.
11616         (Makefile.am): Build new test.
11617         * tests/test-fchownat.c: New file.
11618
11619         lchown: detect Solaris and FreeBSD bug
11620         * lib/lchown.c (rpl_lchown): Work around bug.
11621         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11623         * modules/unistd (Makefile.am): Populate it.
11624         * lib/unistd.in.h (lchown): Update declaration.
11625         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11626         * modules/lchown-tests: New file.
11627         * tests/test-lchown.h (test_lchown): Likewise.
11628         * tests/test-lchown.c (main): Likewise.
11629
11630         chown: detect Solaris and FreeBSD bug
11631         * lib/chown.c (rpl_chown): Work around bug.
11632         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11633         (gl_PREREQ_CHOWN): Delete.
11634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11635         * modules/unistd (Makefile.am): Populate it.
11636         * lib/unistd.in.h (chown): Update declaration.
11637         * lib/lchown.c (chown): Update client.
11638         * modules/lchown (Depends-on): Add lstat.
11639         * doc/posix-functions/chown.texi (chown): Document the bug.
11640         * doc/posix-functions/getgroups.texi (getgroups): Document
11641         getgroups pitfall.
11642         * modules/chown-tests: New file.
11643         * tests/test-chown.h (test_chown): Likewise.
11644         * tests/test-chown.c (main): Likewise.
11645
11646 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11647
11648         gnulib-tool: correctly detect absence of m4 directories
11649         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11650
11651 2009-11-14  Jim Meyering  <meyering@redhat.com>
11652
11653         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11654         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11655
11656 2009-11-14  John W. Eaton  <jwe@gnu.org>
11657
11658         strftime.h: wrap funtion declaration in extern "C" block
11659         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11660
11661 2009-11-13  Eric Blake  <ebb9@byu.net>
11662
11663         getgroups: avoid compiler warning
11664         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11665
11666         getgroups: work around FreeBSD bug
11667         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11668         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11669         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11670         * tests/test-getgroups.c (main): Fix buffer overrun.
11671
11672         getgroups: avoid compilation failure
11673         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11674         * modules/getgroups (Depends-on): Add stdint.
11675
11676 2009-11-13  Jim Meyering  <meyering@redhat.com>
11677
11678         test-getgroups: avoid compilation failure
11679         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11680
11681 2009-11-13  Eric Blake  <ebb9@byu.net>
11682
11683         mgetgroups: new module, taken from coreutils
11684         * modules/mgetgroups: New file.
11685         * lib/mgetgroups.h: Likewise.
11686         * lib/mgetgroups.c (mgetgroups): Likewise.
11687         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11688         * MODULES.html.sh (Users and groups): Mention it.
11689
11690         getgroups: don't expose GETGROUPS_T to user
11691         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11692         an element at a time if GETGROUPS_T is wrong size.
11693         * lib/getugroups.h (getugroups): Change signature.
11694         * lib/unistd.in.h (getgroups): Likewise.
11695         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11696         signature needs fixing.
11697         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11698         AC_TYPE_GETGROUPS.
11699         * modules/group-member (Depends-on): Add getgroups.
11700         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11701         (group_member): Rely on getgroups replacement.
11702         * lib/getugroups.c (getugroups): Use gid_t.
11703         * tests/test-getgroups.c (main): Likewise.
11704         * NEWS: Mention the signature change.
11705         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11706         problem with signature.
11707         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11708         GETGROUPS_T is still useful for setgroups.
11709
11710         getgroups, getugroups: provide stubs for mingw
11711         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11712         * lib/getugroups.c (getugroups): Likewise.
11713         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11714         function.  Modernize replacement scheme.
11715         (gl_PREREQ_GETGROUPS): Delete.
11716         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11717         * modules/getgroups (configure.ac): Declare witness.
11718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11719         * modules/unistd (Depends-on): Substitute witness.
11720         * lib/unistd.in.h (getgroups): Declare replacement.
11721
11722         getgroups: avoid calling exit
11723         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
11724         drop xalloc.
11725         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
11726         dependencies.
11727         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
11728         exiting, in the rare case of malloc failure.
11729
11730         getgroups: fix logic error
11731         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
11732         has more than 20 groups.
11733         * modules/getgroups-tests: New test.
11734         * tests/test-getgroups.c: New file.
11735
11736 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11737
11738         * tests/test-base64.c: Improve.
11739
11740 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11741
11742         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
11743         Blake <ebb9@byu.net>.
11744
11745 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11746
11747         * tests/test-xvasprintf.c: Add %s%s related checks.
11748
11749 2009-11-12  Eric Blake  <ebb9@byu.net>
11750
11751         version-etc: match standards.texi style
11752         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
11753         and use <> only for URLs.
11754
11755 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
11756
11757         fts: do not fail on a submount during traversal
11758         * lib/fts.c (fts_build): Read the stat info again after opening
11759         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
11760         Original report at http://bugzilla.redhat.com/501848.
11761
11762 2009-11-12  Jim Meyering  <meyering@redhat.com>
11763
11764         bootstrap: sync from coreutils
11765         * build-aux/bootstrap (bootstrap_epilogue): New function.
11766         Use git_modules_config in one more place.  This make bootstrap's
11767         --gnulib-srcdir option more useful for testing.
11768
11769         bootstrap: generalize autoheader check
11770         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
11771         AC_CONFIG_HEADERS.
11772
11773 2009-11-11  Eric Blake  <ebb9@byu.net>
11774
11775         mkfifoat: use new modules for Solaris and BSD bugs
11776         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
11777         * lib/mkfifoat.c (mknodat): Split...
11778         * lib/mknodat.c (mknodat): ...into new file.
11779         * modules/mkfifoat (Files): Ship new file.
11780         (Depends-on): Add mkfifo, mknod.
11781         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
11782         (Depends-on): Add symlink.
11783         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
11784         redundant with test_mkfifo.h.
11785         (do_mkfifoat, do_mknodat): New helpers.
11786
11787         mknod: new module
11788         * modules/mknod: New file.
11789         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11790         * lib/mknod.c (mknod): Likewise.
11791         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11792         defaults.
11793         * modules/sys_stat (Makefile.am): Substitute them.
11794         * lib/sys_stat.in.h (mknod): Declare replacement.
11795         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11796         Document it.
11797         * doc/posix-functions/mknod.texi (mknod): Likewise.
11798         * modules/mknod-tests: New test.
11799         * tests/test-mknod.c: Likewise.
11800
11801         mkfifo: new module
11802         * modules/mkfifo: New file.
11803         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11804         * lib/mkfifo.c (mkfifo): Likewise.
11805         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11806         defaults.
11807         * modules/sys_stat (Makefile.am): Substitute them.
11808         * lib/sys_stat.in.h (mkfifo): Declare replacement.
11809         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11810         Document it.
11811         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
11812         * modules/mkfifo-tests: New test.
11813         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
11814         from test-mkfifoat.c.
11815         * tests/test-mkfifo.c: New file.
11816
11817         readlink: detect FreeBSD bug
11818         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
11819         slash on symlink.
11820         * doc/posix-functions/readlink.texi (readlink): Document the bug.
11821         * tests/test-readlink.h (test_readlink): Enhance test.
11822
11823         symlink: detect FreeBSD bug
11824         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
11825         slash on symlink.
11826         * doc/posix-functions/symlink.texi (symlink): Document the bug.
11827         * tests/test-symlink.h (test_symlink): Enhance test.
11828
11829 2009-11-10  Eric Blake  <ebb9@byu.net>
11830
11831         link: detect FreeBSD bug
11832         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
11833         symlink.
11834         * doc/posix-functions/link.texi (link): Document the bug.
11835         * tests/test-link.h (test_link): Enhance test.
11836         * tests/test-linkat.c (main): Update caller.
11837
11838         unlink, remove: detect FreeBSD bug
11839         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
11840         slash on symlink.
11841         * doc/posix-functions/unlink.texi (unlink): Document the bug.
11842         * doc/posix-functions/remove.texi (remove): Likewise.
11843         * tests/test-unlink.h (test_unlink): Enhance test.
11844         * tests/test-remove.c (main): Likewise.
11845
11846 2009-11-09  Eric Blake  <ebb9@byu.net>
11847
11848         rename: detect FreeBSD bug
11849         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
11850         slash on symlink.
11851         * modules/renameat-tests (Depends-on): Add filenamecat.
11852         * tests/test-rename.h (test_rename): Allow one more errno.
11853         * tests/test-renameat.c (main): Likewise.
11854         * doc/posix-functions/rename.texi (rename): Document the bug.
11855
11856         open: detect FreeBSD bug
11857         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
11858         symlink.
11859         * doc/posix-functions/open.texi (open): Document the bug.
11860         * doc/posix-functions/utimes.texi (utimes): Likewise.
11861         * tests/test-open.h (test_open): Add parameters, and test symlink
11862         handling.
11863         * tests/test-open.c (main): Adjust caller.
11864         * tests/test-fcntl-safer.c (main): Likewise.
11865         * modules/open-tests (Depends-on): Add stdbool, symlink.
11866         * modules/fcntl-safer-tests (Depends-on): Likewise.
11867         * tests/test-openat.c (main): Add test-open tests.
11868
11869         stat: detect FreeBSD bug
11870         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
11871         symlink.
11872         * doc/posix-functions/stat.texi (stat): Document the bug.
11873         * tests/test-stat.h (test_stat_func): Add argument.
11874         * tests/test-stat.c (main): Adjust caller.
11875         * tests/test-fstatat.c (main): Likewise.
11876         * modules/stat-tests (Depends-on): Add stdbool, symlink.
11877         Reported by Jim Meyering.
11878
11879 2009-11-09  James Youngman  <jay@gnu.org>
11880
11881         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
11882         * lib/strftime.c: Correct placement of #include "ignore-value.h".
11883
11884 2009-11-08  Jim Meyering  <meyering@redhat.com>
11885
11886         utimens: remove invalid futimesat call
11887         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
11888         It used the file descriptor of the target file as the DIR_FD
11889         parameter and NULL as the file name.  That caused failure with
11890         errno == EFAULT on FreeBSD-8.0-rc2
11891
11892 2009-11-07  Eric Blake  <ebb9@byu.net>
11893
11894         fflush, freadseek: use fseeko, not fseek
11895         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11896         (clear_ungetc_buffer): Avoid potential problems on large files.
11897         * lib/freadseek.c (freadseek): Likewise.
11898         * modules/freadseek (Depends-on): Add fseeko.
11899         * modules/fseek (configure.ac): Set a witness.
11900         * tests/test-fflush.c (main): Use fseeko.
11901         * tests/test-fpurge.c (fseek): Disable link warning.
11902         * tests/test-freadable.c (fseek): Likewise.
11903         * tests/test-freading.c (fseek): Likewise.
11904         * tests/test-fseeko.c (fseek): Likewise.
11905         * tests/test-ftell.c (fseek): Likewise.
11906         * tests/test-ftello.c (fseek): Likewise.
11907         * tests/test-fwritable.c (fseek): Likewise.
11908         * tests/test-fwriting.c (fseek): Likewise.
11909
11910 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11911
11912         * modules/memchr (Depends-on): Drop getpagesize dependency.
11913
11914 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11915
11916         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
11917         Reported by Ludovic Courtès.
11918         * build-aux/pmccabe2html: Improve example usage.
11919         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
11920
11921 2009-11-06  Jim Meyering  <meyering@redhat.com>
11922
11923         do-release-commit-and-tag: New module.
11924         Automate the release-commit and tag process.
11925         * build-aux/do-release-commit-and-tag: New script, from coreutils.
11926         * modules/do-release-commit-and-tag: New file.
11927         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11928
11929 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11930
11931         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
11932         because test-select.c uses inet_pton.
11933
11934 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11935
11936         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
11937         GETADDRINFO_LIB.  Bump serial number.
11938         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
11939         Suggested by Eric Blake <ebb9@byu.net>.
11940
11941 2009-11-05  Eric Blake  <ebb9@byu.net>
11942
11943         strtod: detect darwin bug
11944         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
11945         Reported by Leo Davis.
11946
11947         freopen-safer: new module
11948         * modules/freopen-safer: New module.
11949         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
11950         * lib/freopen-safer.c (freopen_safer): New file.
11951         * lib/stdio-safer.h (freopen_safer): New declaration.
11952         * lib/stdio--.h (freopen): New override.
11953         * MODULES.html.sh (File stream based Input/Output): Mention it.
11954         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
11955         freopen-safer module.
11956         * doc/posix-functions/stderr.texi (stderr): Likewise.
11957         * doc/posix-functions/stdin.texi (stdin): Likewise.
11958         * doc/posix-functions/stdout.texi (stdout): Likewise.
11959         * modules/freopen-safer-tests: New test.
11960         * tests/test-reopen-safer.c: New file.
11961
11962 2009-11-05  Jim Meyering  <meyering@redhat.com>
11963
11964         maint.mk: Prohibit inclusion of "close-stream.h" without use.
11965         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11966
11967 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11968
11969         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
11970
11971 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11972
11973         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
11974
11975 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11976
11977         Fix link error.
11978         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11979         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11980
11981 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11982
11983         * tests/test-func.c: Also test value of __func__.
11984
11985 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11986
11987         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
11988         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
11989
11990 2009-11-05  Bruno Haible  <bruno@clisp.org>
11991
11992         Fix link error.
11993         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11994         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11995         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
11996
11997 2009-11-05  Bruno Haible  <bruno@clisp.org>
11998
11999         Tests for module 'inet_pton'.
12000         * modules/inet_pton-tests: New file.
12001         * tests/test-inet_pton.c: New file.
12002
12003 2009-11-05  Bruno Haible  <bruno@clisp.org>
12004
12005         Tests for module 'inet_ntop'.
12006         * modules/inet_ntop-tests: New file.
12007         * tests/test-inet_ntop.c: New file.
12008
12009 2009-11-04  Eric Blake  <ebb9@byu.net>
12010
12011         stdlib-safer: wrap all mkstemp variants
12012         * modules/mkostemp (configure.ac): Set witness.
12013         * modules/mkostemps (configure.ac): Likewise.
12014         * modules/mkstemps (configure.ac): Likewise.
12015         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
12016         (mkstemps_safer): Wrap more functions.
12017         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
12018         wrapping.
12019         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
12020         (mkstemps_safer): Implement the wrappers.
12021
12022         mkstemps, mkostemps: new modules
12023         * modules/mkostemps: New module.
12024         * modules/mkstemps: Likewise.
12025         * lib/mkostemps.c (mkostemps): New file.
12026         * lib/mkstemps.c (mkstemps): Likewise.
12027         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
12028         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
12029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
12030         * modules/stdlib (Makefile.am): Substitute them.
12031         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
12032         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
12033         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12034         * doc/gnulib.texi (Glibc stdlib.h): Include them.
12035         * MODULES.html.sh (File system functions): Mention them.
12036
12037         tempname: resync from glibc
12038         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
12039         same values for __GT_FILE as glibc.  Abort even when assertions
12040         are disabled.
12041         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
12042         match its value otherwise.  Allow idempotent inclusion.
12043         * lib/mkdtemp.c (mkdtemp): Adjust caller.
12044         * lib/mkostemp.c (mkostemp): Likewise.
12045         * lib/mkstemp.c (mkstemp): Likewise.
12046         * lib/tmpfile.c (tmpfile): Likewise.
12047         * NEWS: Document this.
12048
12049         utimens: fix use of futimens on older Linux
12050         * lib/utimens.c (fdutimens): Use updated, rather than original,
12051         timespec to avoid bug in older Linux kernel.
12052         Reported by Simon Josefsson.
12053
12054 2009-11-04  Bruno Haible  <bruno@clisp.org>
12055
12056         Make num_processors more flexible and consistent.
12057         * lib/nproc.h (enum nproc_query): New type.
12058         (num_processors): Add a 'query' argument.
12059         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
12060         (num_processors): Add a 'query' argument. Test the value of the
12061         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
12062         mingw, count the number of CPUs available for the current process.
12063         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
12064         Check for sched_getaffinity and sched_getaffinity_np.
12065         * modules/nproc (Depends-on): Add c-ctype, extensions.
12066         * NEWS: Mention the change.
12067
12068 2009-11-03  Bruno Haible  <bruno@clisp.org>
12069
12070         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
12071
12072 2009-11-03  Jim Meyering  <meyering@redhat.com>
12073
12074         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
12075         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
12076         if it is defined.
12077
12078 2009-11-02  Eric Blake  <ebb9@byu.net>
12079
12080         mktime, timegm: share common declaration
12081         * lib/mktime-internal.h: New file.
12082         * lib/mktime.c: Use it rather than open-coding a declaration.
12083         * lib/timegm.c: Likewise.
12084         * modules/mktime (Files): Ship it.
12085         * modules/timegm (Files): Likewise.
12086         Suggested by Bruno Haible.
12087
12088         test-update-copyright: update test to match script changes
12089         * tests/test-update-copyright.sh: Avoid hard-coding perl
12090         location.  Don't update *.bak created by earlier runs.
12091
12092 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12093             Simon Josefsson  <simon@josefsson.org>
12094             Bruno Haible  <bruno@clisp.org>
12095
12096         Fix link error on Solaris 8.
12097         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
12098         also in libnsl. Define also INET_PTON_LIB.
12099         * modules/inet_pton (Link): New section.
12100
12101 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12102             Bruno Haible  <bruno@clisp.org>
12103
12104         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
12105         * modules/inet_ntop (Link): New section.
12106         Reported by Boyan Kasarov <bkasarov@gmail.com>.
12107
12108 2009-11-02  Eric Blake  <ebb9@byu.net>
12109
12110         maint: avoid compiler warnings in m4 macros
12111         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
12112         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
12113
12114 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12115
12116         * m4/pmccabe2html.m4: Remove file.
12117         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
12118         function.  Change maintainer.
12119         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
12120         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
12121         Courtès).
12122
12123 2009-10-31  Eric Blake  <ebb9@byu.net>
12124
12125         fseeko: fix m4 regression
12126         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
12127         regression from 2009-10-27.
12128         Reported by Ralf Wildenhues.
12129
12130 2009-10-31  Jim Meyering  <meyering@redhat.com>
12131
12132         inttostr: aesthetics and improved (compile-time) safety
12133         Define inttype_is_signed rather than inttype_is_unsigned,
12134         since the sole use is via "#if inttype_is_signed".
12135         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
12136         inttype_is_unsigned.
12137         * lib/offtostr.c (inttype_is_signed): Likewise.
12138         * lib/uinttostr.c (inttype_is_signed): Likewise.
12139         * lib/umaxtostr.c (inttype_is_signed): Likewise.
12140         * lib/inttostr.c (inttostr): Use verify to cross-check the
12141         inttype_is_signed value and the signedness of the actual type.
12142         * modules/inttostr (Depends-on): Add verify.
12143
12144 2009-10-30  Eric Blake  <ebb9@byu.net>
12145
12146         build: avoid compiler warnings
12147         * lib/fchmodat.c (lchmod): Mark unused variables.
12148         * lib/getopt.c (_getopt_initialize): Likewise.
12149         * lib/mktime.c (__mktime_internal): Provide prototype.
12150         * lib/inttostr.c (inttostr): Avoid compiler warning even with
12151         older gcc that do not understand #pragma GCC diagnostic.
12152         * lib/uinttostr.c (inttype_is_unsigned): Define.
12153         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
12154
12155 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12156
12157         stat: fix compilation on AIX
12158         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
12159         only see struct stat64.
12160
12161 2009-10-30  Eric Blake  <ebb9@byu.net>
12162
12163         exclude: make more robust
12164         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
12165         rather than masking a coding bug.
12166         Suggested by Bruno Haible.
12167
12168 2009-10-30  Jim Meyering  <meyering@redhat.com>
12169
12170         perl scripts: remove #!/usr/bin/perl in favor of more portable...
12171         Rather than putting #!/usr/bin/perl on the first line,
12172         start with a variant of what's recommended by "man perlrun" that
12173         invokes the first "perl" program from your shell's search path.
12174         * build-aux/gitlog-to-changelog: Replace #!... as above.
12175         Add a "Local Variables" perl mode setting.
12176         Prompted by a patch from Ludovic Courtès.
12177         Improved by Eric Blake.
12178         * build-aux/useless-if-before-free: Likewise.
12179         * build-aux/announce-gen: Likewise.
12180         * build-aux/update-copyright: Likewise.
12181
12182 2009-10-29  Eric Blake  <ebb9@byu.net>
12183
12184         filenamecat-lgpl: adjust clients
12185         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
12186         filenamecat.
12187         * modules/renameat (Depends-on): Likewise.
12188
12189         filenamecat: split into filenamecat-lgpl
12190         * modules/filenamecat-lgpl: New module.
12191         * modules/filenamecat (Files): Move library-safe files into
12192         filenamecat-lgpl.
12193         (Depends-on): Add filenamecat-lgpl.
12194         (configure.ac): Declare witness.
12195         * lib/filenamecat.h (file_name_concat): Only declare when using
12196         GPL module.
12197         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
12198         Move...
12199         * lib/filenamecat-lgpl.c: ...into new file.
12200         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
12201         (gl_FILE_NAME_CONCAT): Use it.
12202         * MODULES.html.sh (File system functions): Mention new module.
12203
12204         argp: avoid memory leak
12205         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
12206         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
12207         base_name, since the latter malloc()s and can call exit().
12208         Leak introduced 2006-07-03.
12209
12210         dirname-lgpl: adjust clients that don't need full dirname
12211         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
12212         * modules/filenamecat (Depends-on): Likewise.
12213         * modules/linkat (Depends-on): Likewise.
12214         * modules/mkancesdirs (Depends-on): Likewise.
12215         * modules/mkdir (Depends-on): Likewise.
12216         * modules/openat (Depends-on): Likewise.
12217         * modules/savewd (Depends-on): Likewise.
12218         * modules/rename (Depends-on): Likewise.
12219         (License): Relax license.
12220         * modules/mkdir-tests (Depends-on): Drop progname.
12221         (Makefile.am): Delete unneeded LDADD.
12222         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
12223
12224         dirname: split into dirname-lgpl
12225         * modules/dirname-lgpl: New module.
12226         * modules/dirname (Files): Move library-safe files into
12227         dirname-lgpl.
12228         (Depends-on): Add dirname-lgpl.
12229         (configure.ac): Declare witness.
12230         * modules/double-slash-root (License): Relax license.
12231         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
12232         module.
12233         * lib/dirname.c (dir_len, mdir_name): Move...
12234         * lib/dirname-lgpl.c: ...into new file.
12235         * lib/basename.c (last_component, base_len): Move...
12236         * lib/basename-lgpl.c: ...into new file.
12237         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
12238         (gl_DIRNAME): Use it.
12239         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
12240         Mention new module.
12241         * modules/dirname-tests (Depends-on): Add progname.
12242         * tests/test-dirname.c (program_name): Delete.
12243
12244         mkdir: make safe for libraries
12245         * modules/mkdir (Depends-on): Drop xalloc.
12246         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
12247         exit.
12248
12249         tests: avoid some compiler warnings
12250         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
12251         literals.
12252         * tests/test-memchr.c (main): Avoid type mismatch.
12253         * tests/test-arpa_inet.c (main): Avoid unused parameters.
12254         * tests/test-base64.c (main): Likewise.
12255         * tests/test-getdelim.c (main): Likewise.
12256         * tests/test-gethostname.c (main): Likewise.
12257         * tests/test-getline.c (main): Likewise.
12258         * tests/test-netinet_in.c (main): Likewise.
12259         * tests/test-select.c (open_server_socket, main): Likewise.
12260         * tests/test-select-stdin.c (main): Likewise.
12261         * tests/test-sockets.c (main): Likewise.
12262         * tests/test-strsignal.c (main): Likewise.
12263         * tests/test-sys_select.c (main): Likewise.
12264         * tests/test-sys_socket.c (main): Likewise.
12265         * tests/test-u64.c (main): Likewise.
12266         * tests/test-xfprintf-posix.c (main): Likewise.
12267         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
12268
12269         sockets: avoid compiler warning
12270         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
12271
12272         maint: detect usage(1) and other suspicious exits
12273         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
12274
12275 2009-10-29  Jim Meyering  <meyering@redhat.com>
12276
12277         timespec: long-to-int truncation could make timespec_cmp malfunction
12278         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
12279         a multiple of 2^32 nanoseconds as no difference.
12280
12281 2009-10-28  Jim Meyering  <meyering@redhat.com>
12282
12283         fprintftime: wrap macro code argument in "do {...} while(0)"
12284         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
12285         cpy macro must be a statement that can be followed by a semicolon.
12286         Now that the else clause contains a comment and is hence longer
12287         than one line, I require curly braces.  That in turn requires
12288         that we wrap this code block in the standard do...while(0).
12289
12290         fprintftime: remove stray semicolon from previous change
12291         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
12292
12293         fprintftime: avoid a warning about ignored fwrite return value
12294         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
12295         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
12296         that is unsafe.
12297         * modules/fprintftime (Depends-on): Add ignore-value.
12298
12299         exclude: avoid an unwarranted warning
12300         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
12301
12302 2009-10-27  Eric Blake  <ebb9@byu.net>
12303
12304         fseek: avoid compilation failure when fflush is replaced
12305         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
12306         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
12307         module is in use.
12308         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
12309         module is not in use; since REPLACE_FSEEK worked otherwise.
12310         (GNULIB_FTELLO): Likewise for ftell.
12311         Reported by Ian Beckwith and others.
12312
12313 2009-10-27  Bruno Haible  <bruno@clisp.org>
12314
12315         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
12316         Reported by Jim Meyering.
12317
12318 2009-10-27  Jim Meyering  <jim@meyering.net>
12319             Bruno Haible  <bruno@clisp.org>
12320
12321         Avoid warning despite dropping the return value of fwrite.
12322         * lib/unicodeio.c: Include ignore-value.h.
12323         (fwrite_success_callback): Explicitly ignore fwrite's return value.
12324         * modules/unicodeio (Depends-on): Add ignore-value.
12325
12326 2009-10-26  Eric Blake  <ebb9@byu.net>
12327
12328         areadlinkat: fix fallback path
12329         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
12330         pointer and zero.
12331
12332 2009-10-22  Pádraig Brady  <P@draigBrady.com>
12333
12334         Use a better IO block size for modern systems
12335         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
12336         * lib/md2.c: Likewise.
12337         * lib/md4.c: Likewise.
12338         * lib/md5.c: Likewise.
12339         * lib/sha1.c: Likewise.
12340         * lib/sha256.c: Likewise.
12341         * lib/sha512.c: Likewise.
12342
12343 2009-10-22  Eric Blake  <ebb9@byu.net>
12344
12345         tests: avoid several compiler warnings
12346         * tests/test-getcwd.c (main): Avoid buffer underflow.
12347         * tests/test-getdate.c (main): String literals are not safe with
12348         putenv, so use setenv.  Declare unused argument.
12349         * modules/getdate-tests (Depends-on): Add setenv.
12350         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
12351         problems with string literals in char *.
12352         * tests/test-hash.c (main): Avoid shadowing declaration.
12353         (insert_new): Treat string literals as char const *.
12354         * tests/test-getopt.h (test_getopt): Likewise.
12355         (getopt_loop): Alter types to minimize casting elsewhere.
12356         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
12357         (test_getopt_long_posix): Likewise.
12358         (do_getopt_long): Add wrapper to minimize casting.
12359         * tests/test-atexit.c (clear_temp_file): Use void.
12360         * tests/test-areadlink-with-size.c (main): Declare unused
12361         arguments.
12362         * tests/test-areadlink.c (main): Likewise.
12363         * tests/test-areadlinkat-with-size.c (main): Likewise.
12364         * tests/test-areadlinkat.c (main): Likewise.
12365         * tests/test-canonicalize-lgpl.c (main): Likewise.
12366         * tests/test-canonicalize.c (main): Likewise.
12367         * tests/test-dirent-safer.c (main): Likewise.
12368         * tests/test-dirname.c (main): Likewise.
12369         * tests/test-dup2.c (main): Likewise.
12370         * tests/test-fchdir.c (main): Likewise.
12371         * tests/test-fcntl-h.c (main): Likewise.
12372         * tests/test-fcntl-safer.c (main): Likewise.
12373         * tests/test-fdopendir.c (main): Likewise.
12374         * tests/test-fdutimensat.c (main): Likewise.
12375         * tests/test-fflush.c (main): Likewise.
12376         * tests/test-filenamecat.c (main): Likewise.
12377         * tests/test-filevercmp.c (main): Likewise.
12378         * tests/test-fopen-safer.c (main): Likewise.
12379         * tests/test-fopen.c (main): Likewise.
12380         * tests/test-fpending.c (main): Likewise.
12381         * tests/test-fpurge.c (main): Likewise.
12382         * tests/test-freading.c (main): Likewise.
12383         * tests/test-fstatat.c (main): Likewise.
12384         * tests/test-fsync.c (main): Likewise.
12385         * tests/test-futimens.c (main): Likewise.
12386         * tests/test-getndelim2.c (main): Likewise.
12387         * tests/test-gettimeofday.c (main): Likewise.
12388         * tests/test-getopt.c (main): Likewise.
12389         * tests/test-i-ring.c (main): Likewise.
12390         * tests/test-inttypes.c (main): Likewise.
12391         * tests/test-link.c (main): Likewise.
12392         * tests/test-lstat.c (main): Likewise.
12393         * tests/test-math.c (main): Likewise.
12394         * tests/test-md5.c (main): Likewise.
12395         * tests/test-memchr2.c (main): Likewise.
12396         * tests/test-memrchr.c (main): Likewise.
12397         * tests/test-mkdir.c (main): Likewise.
12398         * tests/test-mkdirat.c (main): Likewise.
12399         * tests/test-mkfifoat.c (main): Likewise.
12400         * tests/test-open.c (main): Likewise.
12401         * tests/test-openat-safer.c (main): Likewise.
12402         * tests/test-openat.c (main): Likewise.
12403         * tests/test-quotearg.c (main): Likewise.
12404         * tests/test-rawmemchr.c (main): Likewise.
12405         * tests/test-readlink.c (main): Likewise.
12406         * tests/test-remove.c (main): Likewise.
12407         * tests/test-rename.c (main): Likewise.
12408         * tests/test-renameat.c (main): Likewise.
12409         * tests/test-rmdir.c (main): Likewise.
12410         * tests/test-sha1.c (main): Likewise.
12411         * tests/test-signal.c (main): Likewise.
12412         * tests/test-sigaction.c (main): Likewise.
12413         * tests/test-stat.c (main): Likewise.
12414         * tests/test-stat-time.c (main): Likewise.
12415         * tests/test-stddef.c (main): Likewise.
12416         * tests/test-stdint.c (main): Likewise.
12417         * tests/test-stdio.c (main): Likewise.
12418         * tests/test-stdlib.c (main): Likewise.
12419         * tests/test-strchrnul.c (main): Likewise.
12420         * tests/test-strerror.c (main): Likewise.
12421         * tests/test-string.c (main): Likewise.
12422         * tests/test-strtod.c (main): Likewise.
12423         * tests/test-strverscmp.c (main): Likewise.
12424         * tests/test-symlink.c (main): Likewise.
12425         * tests/test-symlinkat.c (main): Likewise.
12426         * tests/test-sys_stat.c (main): Likewise.
12427         * tests/test-sys_time.c (main): Likewise.
12428         * tests/test-time.c (main): Likewise.
12429         * tests/test-unistd.c (main): Likewise.
12430         * tests/test-unlink.c (main): Likewise.
12431         * tests/test-unlinkat.c (main): Likewise.
12432         * tests/test-utimens.c (main): Likewise.
12433         * tests/test-utimensat.c (main): Likewise.
12434         * tests/test-version-etc.c (main): Likewise.
12435         * tests/test-wchar.c (main): Likewise.
12436         * tests/test-wctype.c (main): Likewise.
12437         * tests/test-xprintf-posix.c (main): Likewise.
12438         * tests/test-posixtm.c (main): Likewise.
12439         (STREQ): Delete unused macro.
12440         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
12441         shadowed variables.
12442         * tests/test-memchr.c (main): Likewise.
12443
12444 2009-10-21  Eric Blake  <ebb9@byu.net>
12445
12446         areadlinkat: avoid failure on older glibc
12447         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
12448         rather than mis-comparing 0 against FUNC_RESULT of char*.
12449
12450 2009-10-21  Bruno Haible  <bruno@clisp.org>
12451
12452         * modules/stpncpy (License): Relicense under LGPLv2+.
12453         Reported by David Lutterkort <lutter@redhat.com>.
12454
12455 2009-10-20  Eric Blake  <ebb9@byu.net>
12456
12457         utimensat: work around Solaris 9 bug
12458         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
12459         has trailing slash bugs.
12460         * tests/test-lutimens.h (test_lutimens): Enhance test.
12461         * tests/test-utimens.h (test_utimens): Likewise.
12462         * doc/posix-functions/utime.texi (utime): Enhance documentation.
12463         * doc/posix-functions/utimes.texi (utimes): Likewise.
12464         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12465         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
12466         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
12467         * doc/posix-functions/futimens.texi (futimens): Likewise.
12468
12469         fdutimensat: new module
12470         * modules/fdutimensat: New file.
12471         * lib/fdutimensat.c (fdutimensat): Likewise.
12472         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
12473         * MODULES.html.sh (File system functions): Mention module.
12474         * modules/fdutimensat-tests: New test.
12475         * tests/test-fdutimensat.c: Likewise.
12476
12477         doc: regenerate INSTALL
12478         * doc/INSTALL: Reflect recent autoconf update.
12479         * doc/INSTALL.ISO: Likewise.
12480         * doc/INSTALL.UTF-8: Likewise.
12481
12482 2009-10-20  Pádraig Brady  <P@draigBrady.com>
12483
12484         acl: warn if ACL support is not detected
12485         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
12486
12487 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
12488
12489         * lib/nproc.h: Add extern "C" block for C++.
12490
12491 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
12492             Bruno Haible  <bruno@clisp.org>
12493
12494         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
12495         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
12496         * doc/posix-functions/isalpha.texi: Likewise.
12497         * doc/posix-functions/isblank.texi: Likewise.
12498         * doc/posix-functions/iscntrl.texi: Likewise.
12499         * doc/posix-functions/isdigit.texi: Likewise.
12500         * doc/posix-functions/isgraph.texi: Likewise.
12501         * doc/posix-functions/islower.texi: Likewise.
12502         * doc/posix-functions/isprint.texi: Likewise.
12503         * doc/posix-functions/ispunct.texi: Likewise.
12504         * doc/posix-functions/isspace.texi: Likewise.
12505         * doc/posix-functions/isupper.texi: Likewise.
12506         * doc/posix-functions/isxdigit.texi: Likewise.
12507
12508 2009-10-18  Bruno Haible  <bruno@clisp.org>
12509
12510         Tests for module 'isblank'.
12511         * modules/isblank-tests: New file.
12512         * tests/test-isblank.c: New file.
12513
12514         New module 'isblank'.
12515         * lib/isblank.c: New file.
12516         * m4/isblank.m4: New file.
12517         * modules/isblank: New file.
12518         * doc/posix-functions/isblank.texi: Mention the new module.
12519
12520 2009-10-18  Bruno Haible  <bruno@clisp.org>
12521
12522         New module 'ctype'.
12523         * lib/ctype.in.h: New file.
12524         * m4/ctype.m4: New file.
12525         * modules/ctype: New file.
12526         * doc/posix-headers/ctype.texi: Mention the new module.
12527
12528 2009-10-18  Jim Meyering  <meyering@redhat.com>
12529
12530         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
12531         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12532         right after its initialization, rather than farther down.
12533         Keeping these in close proximity makes it easier to ensure
12534         that each such variable is initialized.  E.g.,
12535
12536             LIB_CLOCK_GETTIME=
12537             AC_SUBST([LIB_CLOCK_GETTIME])
12538
12539         This change also increments these serial numbers.
12540         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12541         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12543
12544 2009-10-18  Bruno Haible  <bruno@clisp.org>
12545
12546         Don't let environment variables perturb build.
12547         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12548         (gl_PREREQ_GETHRXTIME): ... not here.
12549
12550 2009-10-18  Bruno Haible  <bruno@clisp.org>
12551
12552         Avoid symlink attack in localcharset module.
12553         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12554         (O_NOFOLLOW): Define fallback.
12555         (get_charset_aliases): Don't open the file if it is a symbolic link.
12556         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12557         gl_FCNTL_H.
12558         (gl_FCNTL_H): Require it.
12559         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12560         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12561         Reported by Fergal Glynn <fglynn@veracode.com>.
12562
12563 2009-10-18  Bruno Haible  <bruno@clisp.org>
12564
12565         Implement nproc for mingw.
12566         * lib/nproc.c: Include <windows.h>
12567         (num_processors): On native Windows platforms, try GetSystemInfo.
12568
12569 2009-10-18  Bruno Haible  <bruno@clisp.org>
12570
12571         Implement nproc for IRIX.
12572         * lib/nproc.c: Include <sys/sysmp.h>.
12573         (num_processors): On IRIX systems, try sysmp.
12574         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12575
12576 2009-10-18  Bruno Haible  <bruno@clisp.org>
12577
12578         Implement nproc for HP-UX.
12579         * lib/nproc.c: Include <sys/pstat.h>
12580         (num_processors): On HP-UX systems, try pstat_getdynamic.
12581         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12582         pstat_getdynamic.
12583
12584 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12585             Bruno Haible  <bruno@clisp.org>
12586
12587         Implement nproc for NetBSD, OpenBSD.
12588         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12589         (ARRAY_SIZE): New macro.
12590         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12591         * m4/nproc.m4: New file.
12592         * modules/nproc (Files): Add m4/nproc.m4.
12593         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12594         (Makefile.am): Instead, augment lib_SOURCES.
12595
12596 2009-10-18  Bruno Haible  <bruno@clisp.org>
12597
12598         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12599         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12600         sys/param.h.
12601
12602 2009-10-16  Eric Blake  <ebb9@byu.net>
12603
12604         utimensat: new module
12605         * modules/utimensat: New file.
12606         * lib/utimensat.c (utimensat): Likewise.
12607         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12608         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12609         so we can work around Linux bugs.
12610         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12611         * modules/sys_stat (Makefile.am): Substitute them.
12612         * lib/sys_stat.in.h (utimensat): Declare it.
12613         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12614         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12615         * modules/utimensat-tests: New test.
12616         * tests/test-utimensat.c: Likewise.
12617
12618         utimens: let lutimens work on non-symlinks
12619         * lib/utimens.c (lutimens): Fall back to utimens rather than
12620         failing with ENOSYS, when file is not a symlink.
12621         (utimens): Reduce redirection.
12622         * tests/test-lutimens.h (test_lutimens): Update test to cover
12623         non-symlinks.
12624         * tests/test-utimens.h (test_utimens): Update test to cover
12625         symlinks.
12626         * tests/test-utimens.c (main): Update caller.
12627
12628         utimens: cache whether utimensat syscall works
12629         * lib/utimens.c (utimensat_works_really): New cache variable.
12630         (fdutimens, lutimens): Use it to avoid failing syscall.
12631
12632         test-stat-time, test-utimens: improve portability
12633         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12634         ext4 on alpha, and for cygwin.
12635         * tests/test-utimens-common.h: New file.
12636         (nap): Factor delays into single function.
12637         * tests/test-lutimens.h (test_lutimens): Use new header.
12638         * tests/test-futimens.h (test_futimens): Likewise.
12639         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12640         timestamps to occur from same machine, as was done previously for
12641         test_utimens.
12642         * modules/utimens-tests (Files): Ship new file.
12643         * modules/futimens-tests (Files): Likewise.
12644         Reported in part by Jim Meyering.
12645
12646         sys_stat: sort replacement declarations
12647         * lib/sys_stat.in.h: Sort declarations.
12648         * lib/futimens.c (futimens): Fix typo.
12649
12650 2009-10-15  Jim Meyering  <meyering@redhat.com>
12651
12652         don't let environment settings perturb build
12653         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12654         could cause a configure-time and/or build-time malfunction.
12655         Typically, a configure-time function-in-library test is performed
12656         via code like this:
12657
12658           LIB_VAR=
12659           AC_SUBST([LIB_VAR])
12660           prefix_saved_LIBS=$LIBS
12661             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12662                        [test "$ac_cv_search_FUNC" = "none required" ||
12663                         LIB_VAR=$ac_cv_search_FUNC])
12664           LIBS=$prefix_saved_LIBS
12665
12666         However, in each of the files affected by this change, the LIB_VAR=
12667         initialization was omitted.  Thus, when set in the environment, its
12668         value would propagate into generated Makefiles when FUNC is not found
12669         in LIB_NAME.
12670         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12671         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12673
12674 2009-10-14  Eric Blake  <ebb9@byu.net>
12675
12676         fchdir: avoid infinite recursion in mingw
12677         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12678         recursing.
12679
12680         test-stat-time: port to mingw
12681         * tests/test-stat-time.c (force_unlink): Return a value.
12682         (test_ctime) [W32]: Fix compilation error.
12683         (nap): Don't call usleep with too large an argument.  Use
12684         force_unlink.
12685         * doc/pastposix-functions/usleep.texi (usleep): Document the
12686         portability issue.
12687
12688 2009-10-13  Jim Meyering  <meyering@redhat.com>
12689
12690         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12691         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12692         * modules/pipe-filter-ii: Likewise.
12693         * modules/sys_socket-tests: Likewise.
12694         * modules/tsearch-tests: Likewise.
12695         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12696         (check): Depend on it.
12697
12698 2009-10-12  Eric Blake  <ebb9@byu.net>
12699
12700         utimens-tests: port to NFS file systems
12701         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12702         comparisons to avoid spurious failures from timestamp drift
12703         between NFS machines.
12704
12705 2009-10-12  Eric Blake  <ebb9@byu.net>
12706
12707         stat-time-tests: minor cleanups
12708         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12709         * tests/test-stat-time.c (nap): Separate assignment from call.
12710         Suggested by Paolo Bonzini and Bruno Haible.
12711
12712         sys_stat: guarantee struct timespec
12713         * lib/sys_stat.in.h (includes): Always include <time.h>
12714         * modules/sys_stat (Depends-on): Add time.
12715         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12716         mode_t permission values.
12717         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12718         get at subsecond timestamps.
12719
12720 2009-10-10  Eric Blake  <ebb9@byu.net>
12721
12722         futimens: new module
12723         * modules/futimens: New file.
12724         * lib/futimens.c (futimens): Likewise.
12725         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
12726         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
12727         we can work around Linux bugs.
12728         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12729         * modules/sys_stat (Makefile.am): Substitute them.
12730         * lib/sys_stat.in.h (futimens): Declare it.
12731         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12732         * doc/posix-functions/futimens.texi (futimens): Likewise.
12733         * modules/futimens-tests: New test.
12734         * tests/test-futimens.c: Likewise.
12735
12736         utimens: introduce fdutimens
12737         * lib/utimens.h (fdutimens): New prototype.
12738         * lib/utimens.c (gl_futimens): Move guts...
12739         (fdutimens): ...to new interface.
12740         * tests/test-utimens.c (do_fdutimens): Use it.
12741
12742         utimens: add UTIME_NOW and UTIME_OMIT support
12743         * lib/utimens.c (validate_timespec, update_timespec): New helper
12744         functions.
12745         (gl_futimens, lutimens): Use them.
12746         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
12747         stdbool, sys_stat.
12748         (Link): Mention resulting library dependency.
12749         * modules/utimecmp (Link): Likewise.
12750         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
12751         (Makefile.am): Pick up library dependency.
12752         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
12753         definition.
12754         * tests/test-sys_stat.c: Test the definitions.
12755         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
12756         * NEWS: Document library dependency.
12757
12758         utimecmp: support symlink timestamps
12759         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
12760         hashing when possible.  Use pathconf when available.
12761         (SYSCALL_RESOLUTION): Recognize tighter resolution.
12762         * modules/utimecmp (Depends-on): Add lstat.
12763
12764         utimens: add lutimens interface
12765         * lib/utimens.c (lutimens): New function.
12766         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
12767         * lib/utimens.h (lutimens): Declare new interface.
12768         * tests/test-utimens.c (main): Enhance test.
12769         * tests/test-lutimens.h (test_lutimens): New file.
12770         * modules/utimens-tests (Files): Distribute it.
12771         (Depends-on): Add symlink.
12772         (configure.ac): Check for usleep.
12773
12774         utimens: validate futimens usage
12775         * lib/utimens.c (gl_futimens): Require valid fd up front, using
12776         fewer syscalls on failure later on.  Avoid compiler warning on
12777         mingw.
12778         * modules/utimens (Depends-on): Add dup2.
12779
12780         utimens: add test
12781         * modules/utimens-tests: New test.
12782         * tests/test-utimens.h: New file.
12783         * tests/test-futimens.h: Likewise.
12784         * tests/test-utimens.c: Likewise.
12785
12786         doc: mention timestamp portability issues
12787         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
12788         instead.
12789         * doc/posix-functions/utime.texi (utime): Likewise.
12790         * doc/posix-functions/utimes.texi (utimes): Likewise.
12791         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
12792         instead.
12793         * doc/posix-functions/futimens.texi (futimens): Mention utimens
12794         module.
12795         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12796         Mention weakness with symlink timestamps.
12797         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
12798         to utimensat/futimens instead.
12799         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
12800
12801         test-dup2: enhance test
12802         * tests/test-dup2.c (main): Also check AT_FDCWD.
12803
12804         test-stat-time: avoid more spurious failures
12805         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
12806         xfs; and avoid race if the two timestamps cross quantization edge.
12807
12808         relocatable: prefer 'file system' over 'filesystem'
12809         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
12810         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
12811         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
12812         * doc/relocatable.texi (Enabling Relocatability): Likewise.
12813         * lib/relocatable.c (compute_curr_prefix): Likewise.
12814
12815 2009-10-10  Jim Meyering  <meyering@redhat.com>
12816
12817         stat-time-tests: check for the usleep function
12818         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
12819
12820 2009-10-10  Bruno Haible  <bruno@clisp.org>
12821
12822         * modules/xnanosleep: Put the Link section after the Include section.
12823
12824 2009-10-09  Eric Blake  <ebb9@byu.net>
12825
12826         dup2: work around FreeBSD 6.1 bug
12827         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
12828         * doc/posix-functions/dup2.texi (dup2): Document it.
12829         Reported by Nelson H. F. Beebe and Jim Meyering.
12830
12831         test-stat-time: port to buggy NFS clients
12832         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
12833         (test_ctime): Also skip test if mtime and ctime are skewed.
12834
12835         maint: prefer 'file system' over 'filesystem'
12836         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
12837         * doc/posix-functions/lstat.texi (lstat): Likewise.
12838         * lib/file-has-acl.c (file_has_acl): Likewise.
12839         * lib/fwriteerror.c [TEST]: Likewise.
12840         * tests/test-areadlink.h (test_areadlink): Likewise.
12841         * tests/test-areadlinkat-with-size.c (main): Likewise.
12842         * tests/test-areadlinkat.c (main): Likewise.
12843         * tests/test-canonicalize-lgpl.c (main): Likewise.
12844         * tests/test-canonicalize.c (main): Likewise.
12845         * tests/test-fstatat.c (main): Likewise.
12846         * tests/test-linkat.c (main): Likewise.
12847         * tests/test-lstat.h (test_lstat_func): Likewise.
12848         * tests/test-mkdir.h (test_mkdir): Likewise.
12849         * tests/test-readlink.h (test_readlink): Likewise.
12850         * tests/test-remove.c (main): Likewise.
12851         * tests/test-rename.h (test_rename): Likewise.
12852         * tests/test-renameat.c (main): Likewise.
12853         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12854         * tests/test-symlink.h (test_symlink): Likewise.
12855         * tests/test-symlinkat.c (main): Likewise.
12856         * tests/test-unlink.h (test_unlink_func): Likewise.
12857         * tests/test-unlinkat.c (main): Likewise.
12858
12859         maint: make realtime library usage explicit
12860         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
12861         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
12862         * modules/settime (Link): Likewise.
12863         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
12864
12865         test-stat-time: speed up execution
12866         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
12867         warning on mingw.
12868         (nap): New helper function.
12869         (prepare_test): Use it to reduce sleep time.
12870         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
12871         execution.
12872         * modules/stat-time-tests (configure.ac): Check for usleep.
12873
12874 2009-10-09  Jim Meyering  <meyering@redhat.com>
12875
12876         selinux-h: always use getfilecon wrappers
12877         * lib/getfilecon.c: New file.
12878         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
12879         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
12880         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
12881         (fgetfilecon): Provide a stub.
12882         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
12883         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
12884         file unconditionally.
12885         When <selinux/selinux.h> is found, arrange to use wrappers.
12886         * modules/selinux-h (Files): Add getfilecon.c.
12887         (Makefile.am): Substitute include-next-related bits
12888         into the now-always-generated selinux/selinux.h file.
12889         * doc/glibc-functions/lgetfilecon.texi: New file.
12890         * doc/glibc-functions/fgetfilecon.texi: New file.
12891         * doc/glibc-functions/getfilecon.texi: New file.
12892         * doc/glibc-functions/getfilecon-desc.texi: New file.
12893         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
12894         which to pull in the new files.
12895         * MODULES.html.sh (Misc): Add selinux-h.
12896
12897 2009-10-08  Jim Meyering  <meyering@redhat.com>
12898
12899         unistd: fix comment typo
12900         * lib/unistd.in.h (euidaccess): Fix a comment typo.
12901
12902 2009-10-08  Eric Blake  <ebb9@byu.net>
12903
12904         areadlink: use SIZE_MAX consistently
12905         * modules/areadlink (Depends-on): Add stdint.
12906         * modules/areadlink-with-size (Depends-on): Likewise.
12907         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
12908         gives NULL; drop sys/types, since unistd gives size_t; and add
12909         stdint for SIZE_MAX.
12910         (SIZE_MAX): Rely on headers.
12911         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
12912         and add stdint.
12913         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
12914         (SIZE_MAX): Likewise.
12915         (INITIAL_BUF_SIZE): Turn into enum.
12916         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
12917
12918 2009-10-08  Jim Meyering  <meyering@redhat.com>
12919
12920         areadlinkat: avoid compilation failure
12921         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
12922         Fix typo in comment.
12923
12924 2009-10-07  Eric Blake  <ebb9@byu.net>
12925
12926         areadlinkat-with-size: new module
12927         * modules/areadlinkat-with-size: New module.
12928         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
12929         * lib/areadlink.h (areadlinkat): Declare it.
12930         * MODULES.html.sh (File system functions): Mention it.
12931         * modules/areadlinkat-with-size-tests: New test.
12932         * tests/test-areadlinkat-with-size.c: New file.
12933
12934         xreadlinkat: new module
12935         * modules/xreadlinkat: New module.
12936         * lib/xreadlinkat.c (xreadlinkat): New file.
12937         * lib/xreadlink.h (xreadlinkat): Declare it.
12938         * MODULES.html.sh (File system functions): Mention it.
12939
12940         areadlinkat: new module
12941         * lib/at-func.c (FUNC_FAIL): New define.
12942         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
12943         * modules/areadlinkat: New module.
12944         * lib/linkat.c (areadlinkat): Move...
12945         * lib/areadlinkat.c (areadlinkat): ...to new file.
12946         * lib/areadlink.h (areadlinkat): Declare it.
12947         * modules/linkat (Depends-on): Add areadlinkat.
12948         * MODULES.html.sh (File system functions): Mention it.
12949         * modules/areadlinkat-tests: New test.
12950         * tests/test-areadlinkat.c: New file.
12951
12952         areadlink, areadlink-with-size: add tests
12953         * modules/areadlink-tests: New test.
12954         * modules/areadlink-with-size-tests: Likewise.
12955         * tests/test-areadlink.h: New file.
12956         * tests/test-areadlink.c: Likewise.
12957         * tests/test-areadlink-with-size.c: Likewise.
12958
12959         maint: minor cleanups
12960         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
12961         _UNUSED_PARAMETER_ instead.
12962         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
12963         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
12964         * modules/linkat-tests (Files): Distribute test-link.h.
12965
12966         openat, utimens: whitespace cleanup
12967         * lib/openat.c: Prefer space throughout, rather than mix of 8
12968         spaces vs. tabs.
12969         * lib/at-func.c: Likewise.
12970         * lib/utimens.c: Likewise.
12971
12972         openat: avoid using wrong fd
12973         * lib/openat.c (openat_permissive): Reject user's fd if saving the
12974         working directory chooses same fd.
12975         * lib/at-func.c (AT_FUNC_NAME): Likewise.
12976
12977         mkdir, mkdirat: fix cygwin 1.5.x bug
12978         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
12979         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
12980         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
12981         bug.
12982         (gl_PREREQ_MKDIR): Delete unused macro.
12983         * modules/mkdir (Files): Track file rename.
12984         (configure.ac): Update macro name.
12985         * modules/openat (Depends-on): Add mkdir.
12986         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
12987
12988         mkdir, mkdirat: add tests
12989         * modules/mkdir-tests: New test.
12990         * tests/test-mkdir.h: New file.
12991         * tests/test-mkdir.c: Likewise.
12992         * tests/test-mkdirat.c: Likewise.
12993         * modules/openat-tests (Files): Add new files.
12994         (Makefile.am): Run new test.
12995
12996 2009-10-06  Eric Blake  <ebb9@byu.net>
12997
12998         doc: tweak *at function documentation
12999         * doc/posix-functions/faccessat.texi (faccessat): Mention
13000         known issue with replacement.
13001         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
13002         * doc/posix-functions/linkat.texi (linkat): Likewise.
13003         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13004         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13005         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13006         * doc/posix-functions/renameat.texi (renameat): Likewise.
13007         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13008
13009         openat: fix GNU/Hurd bug in unlinkat
13010         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
13011         broken.
13012         * doc/posix-functions/unlink.texi (unlink): Document this.
13013         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
13014
13015         fdopendir: fix GNU/Hurd bug
13016         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
13017         allowing non-directory fds.
13018         * lib/fdopendir.c (rpl_fdopendir): Work around it.
13019         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13020         * modules/dirent (Makefile.am): Substitute it.
13021         * lib/dirent.in.h (fdopendir): Declare replacement.
13022         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
13023         * tests/test-fdopendir.c (main): Test something other than
13024         /dev/null, since on Hurd that behaves like a directory.
13025
13026         test-symlink: port to GNU/Hurd
13027         * tests/test-symlink.h (test_symlink): Relax expected errno.
13028
13029         doc: tweak more cygwin information
13030         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
13031         now compatible with glibc.
13032         * doc/posix-functions/getopt.texi (getopt): Likewise.
13033
13034         getopt-gnu: add another test
13035         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
13036         guarantee behavior relied on by m4.
13037         * tests/test-getopt.c (main): Use it.
13038         * modules/getopt-posix-tests (Depends-on): Add setenv.
13039         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
13040
13041         getopt: fix compilation on darwin
13042         * lib/getopt.in.h (includes): Leave breadcrumbs during system
13043         include.
13044         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
13045         Reported by Ludovic Courtès.
13046
13047 2009-10-06  Bruno Haible  <bruno@clisp.org>
13048
13049         * modules/size_max (Description): Discourage its use.
13050         Reported by Simon Josefsson.
13051
13052 2009-10-06  Jim Meyering  <meyering@redhat.com>
13053
13054         linkat: avoid compilation failure
13055         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
13056
13057 2009-10-05  Eric Blake  <ebb9@byu.net>
13058
13059         linkat: support Linux 2.6.17
13060         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
13061         linkat on Linux, but allow cache variable override.
13062         * lib/linkat.c (rpl_linkat): Define override.
13063         * modules/linkat (Depends-on): Add symlinkat.
13064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
13065         * modules/unistd (Makefile.am): Substitute it.
13066         * lib/unistd.in.h (linkat): Declare replacement.
13067         Reported by Pádraig Brady.
13068
13069         quotearg: port test to systems with C.UTF-8 locale
13070         * tests/test-quotearg.c (struct result_strings): Add another
13071         member, differentiating between C.ASCII and C.UTF-8 handling.
13072         (compare_strings): Add parameter.
13073         (main): Adjust all callers.
13074
13075         getopt: avoid clash with FreeBSD _getopt_internal
13076         * lib/getopt.in.h (_getopt_internal): Override the name.
13077         * lib/getopt_int.h (includes): Pick up any overrides.
13078         Reported by Reuben Thomas.
13079
13080         hash: allow C89 compilation
13081         * lib/hash.c (check_tuning): Move declaration before statement.
13082         Reported by Reuben Thomas.
13083
13084 2009-10-05  Karl Berry  <karl@gnu.org>
13085
13086         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
13087
13088 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
13089             Bruno Haible  <bruno@clisp.org>
13090
13091         * lib/uname.c (uname): Use a table-driven algorithm to compute
13092         Windows NT versions.
13093
13094 2009-10-04  Bruno Haible  <bruno@clisp.org>
13095
13096         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
13097         program_invocation_short_name.
13098         * modules/progname (configure.ac): Test for presence of
13099         program_invocation_short_name.
13100         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13101
13102 2009-10-04  Bruno Haible  <bruno@clisp.org>
13103
13104         * lib/progname.c (set_program_name): Fix comment.
13105         Reported by Jim Meyering.
13106
13107 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13108             Bruno Haible  <bruno@clisp.org>
13109
13110         * lib/uname.c: Include <string.h>.
13111         (uname): Do only one call to GetVersionEx in the common case.
13112
13113 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13114             Bruno Haible  <bruno@clisp.org>
13115
13116         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
13117         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
13118         (uname): Add support for Windows CE and various non-x86 CPU types.
13119
13120 2009-10-03  Bruno Haible  <bruno@clisp.org>
13121
13122         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
13123         invocation to tests/configure.ac.
13124         Reported by Ian Beckwith <ianb@erislabs.net>.
13125
13126 2009-10-02  Eric Blake  <ebb9@byu.net>
13127
13128         fchdir: avoid compiler warning
13129         * lib/fchdir.c (canonicalize_file_name)
13130         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
13131
13132         test-open: support mingw errno values
13133         * tests/test-open.h (test_open): Relax test.
13134         * tests/test-fopen.h (test_fopen): Likewise.
13135         * tests/test-openat-safer.c (main): Likewise.
13136
13137         open: fix opening directory on mingw
13138         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
13139
13140         test-open: on GNU/Hurd, /dev/null is a directory
13141         * tests/test-fopen.h (main): Rename...
13142         (test_fopen): ...to this.  Use a guaranteed non-directory when
13143         confirming open behavior on trailing slash.
13144         * tests/test-openat-safer.c (main): Likewise.
13145         * tests/test-open.h (main): Likewise....
13146         (test_open): ...to this.
13147         * tests/test-fopen.c (main): Adjust caller.
13148         * tests/test-fopen-safer.c (main): Likewise.
13149         * tests/test-open.c (main): Likewise.
13150         * tests/test-fcntl-safer.c (main): Likewise.
13151         Reported by Samuel Thibault.
13152
13153         rename, fchdir: don't ignore chdir failure
13154         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
13155         * lib/rename.c (rpl_rename) [W32]: Likewise.
13156         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
13157         an empty destination directory if source cannot be renamed,
13158         although there is still possibility for failure.
13159         * doc/posix-functions/rename.texi (rename): Document the race.
13160         Reported by Jim Meyering.
13161
13162         maint: cleanup whitespace in recent commits
13163         * lib/rename.c (rpl_rename): Remove tabs.
13164         * tests/test-link.h (test_link): Likewise.
13165         * lib/fchdir.c (get_name): Likewise.
13166         Reported by Jim Meyering.
13167
13168 2009-10-02  Ben Pfaff  <blp@gnu.org>
13169
13170         relocatable-prog-wrapper: Add missing dependency on
13171         double-slash-root.
13172         * modules/relocatable-prog-wrapper: Add dependency.
13173         Reported by Ian Beckwith <ianb@erislabs.net>.
13174
13175 2009-10-02  Eric Blake  <ebb9@byu.net>
13176
13177         renameat: fix Solaris bugs
13178         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
13179         needed fixing.
13180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
13181         * modules/stdio (Makefile.am): Substitute it.
13182         * lib/stdio.in.h (renameat): Declare replacement.
13183         * lib/renameat.c (rpl_renameat): Implement fix.
13184
13185         renameat: new module
13186         * modules/renameat: New file.
13187         * lib/renameat.c (renameat): Likewise.
13188         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
13189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13190         * modules/stdio (Makefile.am): Substitute them.
13191         * lib/stdio.in.h (renameat): Declare it.
13192         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13193         * doc/posix-functions/renameat.texi (renameat): Likewise.
13194         * modules/renameat-tests: New test.
13195         * tests/test-renameat.c: Likewise.
13196
13197         rename: fix mingw bugs
13198         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
13199         directory overwrite bugs.
13200
13201         rename: fix another cygwin 1.5 bug
13202         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
13203         checks.
13204         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
13205         unnecessary cygwin workarounds.  Also work around bug with moving
13206         full directory onto an empty one.
13207         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
13208
13209         rename-dest-slash: merge into rename module
13210         * modules/rename-dest-slash (Status): Mark obsolete.
13211         (Depends-on): Add rename.
13212         (Files): Let rename do it all.
13213         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
13214         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
13215         * m4/rename-dest-slash.m4: ...so this file can be deleted.
13216         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
13217         * lib/rename.c (rpl_rename): Update comments.
13218
13219         rename: fix cygwin 1.5.x bugs
13220         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
13221         * lib/rename.c (rpl_rename): Work around them.
13222         * modules/rename (Depends-on): Add same-inode.
13223
13224         rename: fix Solaris 10 bug
13225         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13226         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
13227         was the only bug.
13228
13229         rename: fix Solaris 9 bug
13230         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
13231         on non-directory.  Avoid calling exit.
13232         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
13233         strdup.
13234         * modules/rename-tests (Depends-on): Drop lstat.
13235         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13236         (gl_PREREQ_RENAME): Delete unused macro.
13237
13238         rename-dest-slash: fix NetBSD bug
13239         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
13240         links.
13241         * modules/rename-dest-slash (Depends-on): Add same-inode.
13242
13243         rename-tests: new test, exposes several platform bugs
13244         * modules/rename-tests: New file.
13245         * tests/test-rename.h: Likewise.
13246         * tests/test-rename.c: Likewise.
13247         * doc/posix-functions/rename.texi (rename): Improve documentation,
13248         including bugs that will eventually be fixed in gnulib.
13249
13250 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
13251
13252         * lib/uname.c: Include <stdlib.h>
13253         (uname): Assume version info is available.
13254
13255 2009-10-02  Jim Meyering  <meyering@redhat.com>
13256
13257         gnu-web-doc-update: correct --help output
13258         * build-aux/gnu-web-doc-update: Make --help output relevant.
13259
13260         gnu-web-doc-update: add standard options
13261         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
13262
13263         gnu-web-doc-update: New module.
13264         Use this script to automatically update the on-line web documentation
13265         for your GNU project at http://www.gnu.org/software/$pkg/manual/
13266         * modules/gnu-web-doc-update: New file, from coreutils.
13267         * build-aux/gnu-web-doc-update: New script.
13268
13269 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
13270
13271         link: LoadLibrary is not needed.
13272         * lib/link.c: Use GetModuleHandle.
13273
13274 2009-10-01  Eric Blake  <ebb9@byu.net>
13275
13276         getopt: bump serial number
13277         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
13278         change.
13279
13280         tests: tighten link, rmdir, and remove tests
13281         * tests/test-link.h (includes): No need to use <config.h> here.
13282         Clean up if directory hard link was created, otherwise test for
13283         trailing '.'.
13284         * tests/test-linkat.c (main): Simplify.
13285         * tests/test-remove.c (main): Enhance test for trailing '.'.
13286         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13287
13288 2009-10-01  Jim Meyering  <meyering@redhat.com>
13289
13290         maint.mk: requiring "make major" was annoying, for a "minor" release.
13291         What is intended is "stable", to contrast with alpha and beta,
13292         so require "make stable", not "make major".
13293         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
13294         (get_tool_versions): Likewise.
13295         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
13296
13297 2009-09-30  Ben Pfaff  <blp@gnu.org>
13298
13299         Fix broken build of replacement for Windows tmpfile().
13300         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
13301         flags argument added along with the 'mkostemp' module.
13302
13303 2009-09-28  Bruno Haible  <bruno@clisp.org>
13304
13305         Avoid identifier clash with POSIX function 'remove' defined as a macro.
13306         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
13307         to 'remove_elt'.
13308         (gl_list_remove): Update.
13309         * lib/gl_list.c (gl_list_remove): Update.
13310         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
13311         to 'remove_elt'.
13312         (gl_oset_remove): Update.
13313         * lib/gl_list.c (gl_oset_remove): Update.
13314         Reported by Eric Blake.
13315
13316 2009-09-28  Eric Blake  <ebb9@byu.net>
13317
13318         doc: mention yet more cygwin 1.7 status
13319         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
13320         cygwin.
13321         * doc/glibc-functions/execvpe.texi (execvpe): New file.
13322         * doc/gnulib.texi (Glibc unistd.h): Mention it.
13323
13324         argp: fix test failure
13325         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
13326         that are not upper-case.  Pass correct range to tolower.
13327
13328 2009-09-27  Jim Meyering  <meyering@redhat.com>
13329
13330         test-yesno: work around sparc-dash here-document infelicity
13331         Without this change, the literal \177 byte in a here document
13332         would make dash 0.5.5.1-3 access uninitialized memory.
13333         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
13334         Instead, use a marker, "@", and filter through tr to create the desired
13335         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
13336
13337 2009-09-27  Bruno Haible  <bruno@clisp.org>
13338
13339         Disable untested support for new flavours of ACLs on AIX.
13340         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
13341         progress.
13342         * lib/set-mode-acl.c (qset_acl): Likewise.
13343
13344 2008-12-07  Bruno Haible  <bruno@clisp.org>
13345
13346         Add support for new flavours of ACLs on AIX. (Untested.)
13347         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
13348         (file_has_acl): Add support for newer AIX.
13349         * lib/set-mode-acl.c (qset_acl): Likewise.
13350         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
13351         Rainer Tammer <tammer@tammer.net>.
13352
13353 2009-09-26  Eric Blake  <ebb9@byu.net>
13354
13355         argp: fix compilation of getopt
13356         * lib/getopt.in.h (includes): Use different guard than glibc.
13357         Reported by Sergey Poznyakoff.
13358
13359         doc: mention more cygwin 1.7 status
13360         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
13361         bug.
13362         * doc/posix-functions/execl.texi (execl): Likewise.
13363         * doc/posix-functions/execle.texi (execle): Likewise.
13364         * doc/posix-functions/execlp.texi (execlp): Likewise.
13365         * doc/posix-functions/execv.texi (execv): Likewise.
13366         * doc/posix-functions/execve.texi (execve): Likewise.
13367         * doc/posix-functions/execvp.texi (execvp): Likewise.
13368         * doc/glibc-functions/canonicalize_file_name.texi
13369         (canonicalize_file_name): Cygwin 1.7 now provides this.
13370         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
13371         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
13372         on AT_SYMLINK_NOFOLLOW.
13373
13374 2009-09-24  Eric Blake  <ebb9@byu.net>
13375
13376         test-linkat: make test more robust
13377         * tests/test-linkat.c (main): Avoid collision with EEXIST.
13378
13379         getopt: fix inclusion guards for cygwin
13380         * modules/getopt-posix (Depends-on): Add include-next.
13381         (Makefile.am): Substitute more items in replacement header.
13382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
13383         <getopt.h>.
13384         * lib/getopt.in.h (includes): Use split inclusion guard, and
13385         prefer <getopt.h> over include <unistd.h> when one is present.
13386         (option): Also override name of 'struct option'.
13387
13388         same-inode: revert prior change; it is not yet ready
13389         * NEWS: Undo mention of this change.
13390         * lib/same-inode.h (same-inode.h): Undo tri-state change.
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         * lib/at-func2.c (at_func2): Likewise.
13395
13396 2009-09-23  Eric Blake  <ebb9@byu.net>
13397
13398         linkat: new module
13399         * modules/linkat: New file.
13400         * lib/at-func2.c (at_func2): Likewise.
13401         * lib/linkat.c (linkat): Likewise.
13402         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13403         * lib/openat-priv.h (at_func2): Add declaration.
13404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13405         * modules/unistd (Makefile.am): Substitute them.
13406         * lib/unistd.in.h (linkat): Declare it.
13407         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13408         * doc/posix-functions/linkat.texi (linkat): Likewise.
13409         * doc/posix-functions/link.texi (link): Tweak wording.
13410         * tests/test-link.c (main): Move guts...
13411         * tests/test-link.h (test_link): ...into new file.
13412         * modules/linkat-tests: New test.
13413         * tests/test-linkat.c: Likewise.
13414         * modules/link-tests (Files): Ship new file.
13415         (Depends-on): Add stdbool.
13416
13417         dirname: add library-safe mdir_name
13418         * lib/dirname.h (mdir_name): New prototype.
13419         * lib/dirname.c (dir_name): Move guts...
13420         (mdir_name): ...to new function that avoids xalloc_die.
13421
13422         fchdir: another mingw fix
13423         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
13424         * lib/fchdir.c (get_name): New helper method; skips canonicalize
13425         on mingw (where it has not yet been ported), and make it optional
13426         elsewhere.
13427         (_gl_register_fd): Use it.
13428
13429         same-inode: make SAME_INODE tri-state, to port to mingw
13430         * NEWS: Mention this change.
13431         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
13432         st_ino always being 0.
13433         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13434         * lib/cycle-check.c (cycle_check): Likewise.
13435         * lib/same.c (same_name): Likewise.
13436
13437         lstat: avoid mingw compilation error
13438         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
13439         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
13440         lstat ourselves.
13441         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
13442         was adequate.
13443         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
13444         the checks for lstat.
13445         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
13446
13447         link: fix test failure on Solaris 9
13448         * lib/link.c (rpl_link): Don't assume link will catch bogus
13449         trailing slash on source.
13450
13451         test-symlinkat: enhance test
13452         * tests/test-readlink.c (main): Move guts...
13453         * tests/test-readlink.h (test_readlink): ...into new file.
13454         * tests/test-symlink.c (main): Move guts...
13455         * tests/test-symlink.h (test_symlink): ...into new file.
13456         * tests/test-symlinkat.c (main): Use new files for further
13457         coverage.
13458         (do_symlink, do_readlink): New helper functions.
13459         * modules/symlink-tests (Files): Ship new file.
13460         (Depends-on): Add stdbool.
13461         * modules/readlink-tests (Files): Ship new file.
13462         (Depends-on): Add stdbool.
13463         * modules/symlinkat-tests (Files): Use new files.
13464
13465 2009-09-23  Eric Blake  <ebb9@byu.net>
13466
13467         readlink: document portability issue with symlink length
13468         * doc/posix-functions/lstat.texi (lstat): Mention that some file
13469         systems have bogus st_size on symlinks, and mention the
13470         areadlink-with-size module.
13471         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13472         * doc/posix-functions/readlink.texi (readlink): Mention the
13473         areadlink module, and ERANGE failure.
13474         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13475         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
13476
13477         readlink: fix Solaris 9 bug with trailing slash
13478         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
13479         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
13480         * doc/posix-functions/readlink.texi (readlink): Document this.
13481         * modules/readlink-tests: New test.
13482         * tests/test-readlink.c: Likewise.
13483
13484         readlink: fix cygwin 1.5.x bug with return type
13485         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
13486         * lib/unistd.in.h (readlink): Use ssize_t.
13487         * lib/readlink.c (readlink): Likewise.
13488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13489         * modules/unistd (Makefile.am): Substitute it.
13490         * lib/unistd.in.h (readlink): Declare replacement.
13491         * doc/posix-functions/readlink.texi (readlink): Document this.
13492
13493         symlink: use throughout gnulib
13494         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
13495         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
13496         symlink is not used.
13497         * modules/symlinkat (Depends-on): Add symlink.
13498         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13499         * modules/canonicalize-tests (Depends-on): Likewise.
13500         * modules/lstat-tests (Depends-on): Likewise.
13501         * modules/openat-tests (Depends-on): Likewise.
13502         * modules/remove-tests (Depends-on): Likewise.
13503         * modules/rmdir-tests (Depends-on): Likewise.
13504         * modules/unlink-tests (Depends-on): Likewise.
13505         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
13506         * tests/test-canonicalize.c (symlink): Likewise.
13507         * tests/test-fstatat.c (symlink): Likewise.
13508         * tests/test-lstat.c (symlink): Likewise.
13509         * tests/test-remove.c (symlink): Likewise.
13510         * tests/test-rmdir.c (symlink): Likewise.
13511         * tests/test-unlink.c (symlink): Likewise.
13512         * tests/test-unlinkat.c (symlink): Likewise.
13513
13514         symlink: new module, for Solaris 9 bug
13515         * modules/symlink: New file.
13516         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13517         * lib/symlink.c: Likewise.
13518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13519         * modules/unistd (Makefile.am): Substitute them.
13520         * lib/unistd.in.h (symlink): Declare replacement.
13521         * MODULES.html.sh (File system functions): Mention it.
13522         * doc/posix-functions/symlink.texi (symlink): Likewise.
13523         * modules/symlink-tests: New test.
13524         * tests/test-symlink.c: Likewise.
13525
13526 2009-09-23  Bruno Haible  <bruno@clisp.org>
13527
13528         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
13529         when needed.
13530         Test case: gnulib-tool --import --with-tests atexit inttypes.
13531         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13532
13533 2009-09-23  Bruno Haible  <bruno@clisp.org>
13534
13535         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13536         subcommand, not in a subshell.
13537
13538 2009-09-22  Eric Blake  <ebb9@byu.net>
13539
13540         unistd: sort replacement declarations
13541         * lib/unistd.in.h: Sort declarations.
13542
13543         open, openat: minor optimization
13544         * lib/open.c (open): If open succeeded, len is non-zero.
13545         * lib/openat.c (rpl_openat): Likewise.
13546
13547         link-follow: ensure correct result
13548         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13549         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13550         distinguish between possible failures.
13551
13552 2009-09-21  Eric Blake  <ebb9@byu.net>
13553
13554         fts: avoid compiler warning
13555         * lib/fts.c (dirent_inode_sort_may_be_useful)
13556         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13557
13558 2009-09-19  Bruno Haible  <bruno@clisp.org>
13559
13560         * lib/progreloc.c (canonicalize_file_name): New declaration.
13561
13562 2009-09-19  Eric Blake  <ebb9@byu.net>
13563
13564         link: fix quoting
13565         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13566
13567         openat: fix openat bugs on Solaris 9
13568         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13569         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13570         * modules/openat (Depends-on): Add open.
13571         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13572         * modules/fcntl-h (Makefile.am): Substitute it.
13573         * lib/fcntl.in.h (openat): Declare replacement.
13574         * doc/posix-functions/openat.texi (openat): Document this.
13575
13576         openat: move fstatat and unlinkat into correct files
13577         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13578         compiled.
13579         * lib/openat.c (fstatat, unlinkat): Move...
13580         * lib/fstatat.c (fstatat): ...into correct files.
13581         * lib/unlinkat.c (unlinkat): Likewise.
13582
13583         openat: fix unlinkat bugs on Solaris 9
13584         * lib/unlinkat.c (unlinkat): New file.
13585         * modules/openat (Depends-on): Add unlink.
13586         (Files): Distribute it.
13587         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13588         trailing slash behavior is broken.
13589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13590         * modules/unistd (Makefile.am): Substitute it.
13591         * lib/unistd.in.h (unlinkat): Declare replacement.
13592         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13593
13594         openat: fix fstatat bugs on Solaris 9
13595         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13596         stat.
13597         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13598
13599         test-unlinkat: enhance test, to expose Solaris 9 bug
13600         * tests/test-unlink.c (main): Factor guts...
13601         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13602         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13603         * tests/test-rmdir.c (main): Adjust caller.
13604         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13605         (unlinker): New helper function.
13606         (rmdirat): Enhance check.
13607         * modules/rmdir-tests (Depends-on): Add stdbool.
13608         * modules/unlink-tests (Depends-on): Likewise.
13609         (Files): Add test-unlink.h.
13610         * modules/openat-tests (Files): Likewise.
13611         (Depends-on): Add unlinkdir.
13612
13613         test-fstatat: new test, to expose Solaris 9 bugs
13614         * tests/test-stat.c (main): Factor guts...
13615         * tests/test-stat.h (test_stat_func): ...into new file.
13616         * tests/test-lstat.c (main): Factor guts...
13617         * tests/test-lstat.h (test_lstat_func): ...into new file.
13618         * tests/test-fstatat.c: New file.
13619         * modules/stat-tests (Files): Add test-stat.h.
13620         * modules/lstat-tests (Files): Add test-lstat.h.
13621         (Depends-on): Add stdbool.
13622         * modules/openat-tests (Depends-on): Add pathmax.
13623         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13624         (Makefile.am): Run new test.
13625
13626         remove: new module, for mingw and Solaris 9 bugs
13627         * modules/remove: New file.
13628         * lib/remove.c: Likewise.
13629         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13631         * modules/stdio (Makefile.am): Use them.
13632         * lib/stdio.in.h (remove): Declare replacement.
13633         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13634         * doc/posix-functions/remove.texi (remove): Likewise.
13635         * modules/remove-tests: New test.
13636         * tests/test-remove.c: Likewise.
13637
13638         unlink: new module, for Solaris 9 bug
13639         * modules/unlink: New file.
13640         * lib/unlink.c: Likewise.
13641         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13643         * modules/unistd (Makefile.am): Use them.
13644         * lib/unistd.in.h (stat): Declare replacement.
13645         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13646         * doc/posix-functions/unlink.texi (unlink): Likewise.
13647         * modules/unlink-tests: New test.
13648         * tests/test-unlink.c: Likewise.
13649
13650         lstat: fix Solaris 9 bug
13651         * lib/lstat.c (lstat): Also check for trailing slash on
13652         non-symlink, non-directories.  Use stat module to simplify logic.
13653         * doc/posix-functions/lstat.texi (lstat): Document it.
13654         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13655         (configure.ac): Check for symlink.
13656         * tests/test-lstat.c (main): Add more tests.
13657
13658         stat: add as dependency to other modules
13659         * modules/chown (Depends-on): Add stat.
13660         * modules/euidaccess (Depends-on): Likewise.
13661         * modules/fchdir (Depends-on): Likewise.
13662         * modules/isdir (Depends-on): Likewise.
13663         * modules/link (Depends-on): Likewise.
13664         * modules/lstat (Depends-on): Likewise.
13665         * modules/mkdir-p (Depends-on): Likewise.
13666         * modules/modechange (Depends-on): Likewise.
13667         * modules/open (Depends-on): Likewise.
13668         * modules/readlink (Depends-on): Likewise.
13669         * modules/same (Depends-on): Likewise.
13670
13671         stat: fix Solaris 9 bug
13672         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13673         slash.
13674         * lib/stat.c (rpl_stat): Work around it.
13675         * doc/posix-functions/stat.texi (stat): Update documentation.
13676
13677         stat: new module, for mingw bug
13678         * modules/stat: New file.
13679         * lib/stat.c: Likewise.
13680         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13681         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13682         * modules/sys_stat (Makefile.am): Use them.
13683         * lib/sys_stat.in.h (stat): Declare replacement.
13684         * lib/openat.c (fstatat): Deal with lstat and stat being function
13685         macros.
13686         * modules/openat (Depends-on): Add inline.
13687         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13688         * doc/posix-functions/stat.texi (stat): Likewise.
13689         * modules/stat-tests: New test.
13690         * tests/test-stat.c: Likewise.
13691
13692 2009-09-19  Jim Meyering  <meyering@redhat.com>
13693
13694         syntax-check: detect unnecessary inclusion of canonicalize.h
13695         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13696
13697 2009-09-19  Eric Blake  <ebb9@byu.net>
13698
13699         canonicalize-lgpl: adjust clients to use correct header
13700         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13701         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13702         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13703         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13704         * lib/progreloc.c (includes): Likewise.
13705
13706 2009-09-19  Jim Meyering  <meyering@redhat.com>
13707
13708         test-posixtm.c: correct a comment
13709         * tests/test-posixtm.c: Correct first-line comment.
13710         Spotted by Eric Blake.
13711
13712 2009-09-16  Jim Meyering  <meyering@redhat.com>
13713
13714         posixtm-tests: make T const-correct; add a test case
13715         * tests/test-posixtm.c (T): Declare const.
13716         Add a test for -(2^31+1).
13717         Remove useless can-succeed-only-in-2002 test.
13718
13719         posixtm-tests: adjust the sole failing test
13720         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
13721         expected output matches what mktime now produces.  Cross-checked via
13722         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
13723
13724         posixtm: move #ifdef'd tests into a new module
13725         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
13726         * tests/test-posixtm.c: ... this new file.
13727         * modules/posixtm-tests: New module.
13728
13729 2009-09-19  Eric Blake  <ebb9@byu.net>
13730
13731         openat: simplify use of at-func.c
13732         * lib/at-func.c (includes): Include prerequisites here, to
13733         simplify requirements on client files.
13734         * lib/openat-priv.h: Add double-inclusion guard.
13735         * lib/faccessat.c (includes): Simplify.
13736         * lib/fchmodat.c (includes): Likewise.
13737         * lib/fchownat.c (includes): Likewise.
13738         * lib/mkdirat.c (includes): Likewise.
13739         * lib/mkfifoat.c (includes): Likewise.
13740         * lib/symlinkat.c (includes): Likewise.
13741
13742         openat: allow return of fd 0
13743         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
13744         * modules/save-cwd (Depends-on): Replace fcntl-safer with
13745         unistd-safer.
13746         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
13747         <fcntl.h>; this module does not leak fds.
13748         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
13749         must be allowed to return 0, leaving openat_safer to add the
13750         safety.
13751         (openat_permissive): Avoid writing to just-opened fd 2 if
13752         restoring the current directory fails.
13753         * lib/openat-die.c (openat_restore_fail): Add comment.
13754         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
13755         (save_cwd): Guarantee safe fd, but without use of open_safer.
13756         * tests/test-openat.c: New test.
13757         * modules/openat-tests (Files, Makefile.am): Distribute and build
13758         new file.
13759
13760         relocatable-prog-wrapper: fix build
13761         * modules/relocatable-prog-wrapper (Files): Update name of
13762         canonicalize m4 file, broken on 2009-09-17.
13763         Reported by emad hajjar <aleppos@hotmail.com>.
13764
13765 2009-09-19  Bruno Haible  <bruno@clisp.org>
13766
13767         * lib/safe-alloc.h: Use the standard header with GPL copyright.
13768         * lib/safe-alloc.c: Likewise.
13769         Reported by Ian Beckwith <ianb@erislabs.net>.
13770
13771 2009-09-18  Bruno Haible  <bruno@clisp.org>
13772
13773         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
13774         Reported by <erobles@sensacd.com.mx>.
13775
13776 2009-09-17  Eric Blake  <ebb9@byu.net>
13777
13778         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
13779         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
13780         slashes when checking if last component is missing.
13781         * tests/test-canonicalize.c (main): Test this.
13782
13783         canonicalize, canonicalize-lgpl: honor // if distinct from /
13784         * modules/canonicalize (Files): Add double-slash-root.m4.
13785         * modules/canonicalize-lgpl (Files): Likewise.
13786         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13787         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13788         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
13789         fallback definition.
13790         (canonicalize_filename_mode): Use it to protect //.
13791         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
13792         (__realpath): Likewise.
13793         * tests/test-canonicalize.c (main): Test this.
13794         * tests/test-canonicalize-lgpl.c (main): Likewise.
13795         * modules/canonicalize-tests (Depends-on): Add same-inode.
13796         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13797
13798         canonicalize-lgpl: fix glibc bug with trailing slash
13799         * m4/canonicalize-lgpl.m4: Move contents...
13800         * m4/canonicalize.m4: ...here.
13801         (gl_CANONICALIZE_LGPL): Factor realpath check...
13802         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
13803         glibc 2.3.5 bug, fixed 2005-04-27.
13804         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
13805         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
13806         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
13807         * modules/canonicalize-lgpl (Files): Manage file rename.
13808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13809         * modules/stdlib (Makefile.am): Substitute witness.
13810         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
13811         is needed.
13812         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
13813         replacement is required.
13814         * lib/canonicalize.c (canonicalize_file_name): Likewise.
13815         * doc/glibc-functions/canonicalize_file_name.texi
13816         (canonicalize_file_name): Document this.
13817         * doc/posix-functions/realpath.texi (realpath): Likewise.
13818
13819         canonicalize-lgpl: reject non-directory with trailing slash
13820         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
13821         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
13822         catches failures in glibc 2.3.5.
13823         * tests/test-canonicalize.c (main): Likewise.
13824
13825         canonicalize-lgpl: use native realpath if it works
13826         * lib/canonicalize-lgpl.c (realpath): Guard with
13827         FUNC_REALPATH_WORKS.
13828         * lib/stdlib.in.h (realpath): Make declaration optional based on
13829         HAVE_REALPATH.
13830         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
13831         native realpath works.
13832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13833         * modules/stdlib (Makefile.am): Substitute witness.
13834
13835         canonicalize, canonicalize-lgpl: use <stdlib.h>
13836         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
13837         (Include): Mention <stdlib.h>.
13838         (configure.ac): Mention functions we provide.
13839         * modules/canonicalize (configure.ac): Likewise.
13840         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
13841         realpath if canonicalize_file_name is missing.
13842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
13843         * modules/stdlib (Makefile.am): Substitute witnesses.
13844         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
13845         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
13846         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
13847         * NEWS: Document this.
13848         * doc/glibc-functions/canonicalize_file_name.texi
13849         (canonicalize_file_name): Likewise.
13850         * doc/posix-functions/realpath.texi (realpath): Likewise.
13851         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
13852
13853         test-canonicalize: consolidate into single C program
13854         * tests/test-canonicalize.sh: Delete; move setup into...
13855         * tests/test-canonicalize.c (main): ...the program, making it
13856         easier to run in debugger.  Add some tests.
13857         * modules/canonicalize-tests (Files): Remove unused file.
13858         (Depends-on): Add progname.
13859         (configure.ac, Makefile.am): Simplify.
13860
13861         test-canonicalize-lgpl: consolidate into single C program
13862         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
13863         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
13864         easier to run in debugger.  Add some tests.
13865         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
13866         (configure.ac, Makefile.am): Simplify.
13867
13868         canonicalize: avoid resolvepath
13869         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
13870         unnecessary checks.
13871         * lib/canonicalize.c (includes): Simplify.
13872         (canonicalize_file_name): Drop resolvepath implementation.
13873         * modules/canonicalize (Depends-on): Drop filenamecat.
13874
13875         canonicalize: don't lose errno
13876         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
13877         over calls to free.
13878
13879         canonicalize: simplify errno handling
13880         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
13881         assignment.
13882
13883         canonicalize, canonicalize-lgpl: update module dependencies
13884         * modules/canonicalize (Depends-on): Add extensions, lstat,
13885         pathmax, stdlib.
13886         (Files): Drop pathmax.h.
13887         (configure.ac): Adjust macro name.
13888         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
13889         lstat, stdlib, sys_stat.
13890         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
13891         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
13892         extensions.
13893         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
13894         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
13895         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
13896         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
13897         declaration, if available.
13898         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
13899         we can rely on the readlink module.
13900         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
13901         (includes): Use <unistd.h> unconditionally.
13902
13903 2009-09-17  Eric Blake  <ebb9@byu.net>
13904
13905         maint: make Include sections of modules consistent
13906         * modules/alloca: Use only header name; no need to list #include.
13907         * modules/alloca-opt: Likewise.
13908         * modules/arpa_inet: Likewise.
13909         * modules/canon-host: Likewise.
13910         * modules/configmake: Likewise.
13911         * modules/dirent: Likewise.
13912         * modules/eealloc: Likewise.
13913         * modules/environ: Likewise.
13914         * modules/fchdir: Likewise.
13915         * modules/fcntl: Likewise.
13916         * modules/fcntl-h: Likewise.
13917         * modules/gethrxtime: Likewise.
13918         * modules/gettime: Likewise.
13919         * modules/ignore-value: Likewise.
13920         * modules/inet_ntop: Likewise.
13921         * modules/inet_pton: Likewise.
13922         * modules/inttypes: Likewise.
13923         * modules/isnand-nolibm: Likewise.
13924         * modules/isnanf-nolibm: Likewise.
13925         * modules/mbchar: Likewise.
13926         * modules/mbfile: Likewise.
13927         * modules/mbiter: Likewise.
13928         * modules/mbuiter: Likewise.
13929         * modules/netdb: Likewise.
13930         * modules/netinet_in: Likewise.
13931         * modules/nproc: Likewise.
13932         * modules/pagealign_alloc: Likewise.
13933         * modules/poll: Likewise.
13934         * modules/printf-frexp: Likewise.
13935         * modules/pthread: Likewise.
13936         * modules/putenv: Likewise.
13937         * modules/random_r: Likewise.
13938         * modules/relocatable-prog: Likewise.
13939         * modules/search: Likewise.
13940         * modules/select: Likewise.
13941         * modules/selinux-h: Likewise.
13942         * modules/settime: Likewise.
13943         * modules/signal: Likewise.
13944         * modules/size_max: Likewise.
13945         * modules/socklen: Likewise.
13946         * modules/ssize_t: Likewise.
13947         * modules/stdarg: Likewise.
13948         * modules/stdbool: Likewise.
13949         * modules/stddef: Likewise.
13950         * modules/stdint: Likewise.
13951         * modules/stdio: Likewise.
13952         * modules/stdlib: Likewise.
13953         * modules/string: Likewise.
13954         * modules/strings: Likewise.
13955         * modules/sys_file: Likewise.
13956         * modules/sys_ioctl: Likewise.
13957         * modules/sys_select: Likewise.
13958         * modules/sys_socket: Likewise.
13959         * modules/sys_stat: Likewise.
13960         * modules/sys_time: Likewise.
13961         * modules/sys_times: Likewise.
13962         * modules/sys_utsname: Likewise.
13963         * modules/sys_wait: Likewise.
13964         * modules/sysexits: Likewise.
13965         * modules/time: Likewise.
13966         * modules/times: Likewise.
13967         * modules/tmpfile: Likewise.
13968         * modules/trim: Likewise.
13969         * modules/unistd: Likewise.
13970         * modules/wchar: Likewise.
13971         * modules/wctype: Likewise.
13972
13973 2009-09-17  Bruno Haible  <bruno@clisp.org>
13974
13975         Make getdate.y compile on QNX and NetBSD 5 / i386.
13976         * m4/getdate.m4 (gl_GETDATE): Conditionally define
13977         TIME_T_FITS_IN_LONG_INT.
13978         * lib/getdate.y (long_time_t): New type.
13979         (relative_time): Change type of 'seconds' field to long_time_t.
13980         (get_date): Update types of local variables. Check against overflow
13981         during conversion from long_time_t to time_t.
13982         Reported by Matt Kraai <kraai@ftbfs.org>
13983         and Hasso Tepper <hasso@netbsd.org>.
13984
13985 2009-09-17  Bruno Haible  <bruno@clisp.org>
13986
13987         * modules/COPYING: Update copyright years.
13988         * modules/README: Likeiwse.
13989         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
13990         Reported by Ian Beckwith <ianb@erislabs.net>.
13991
13992 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13993
13994         * users.txt: Update references for gnuit package.
13995
13996 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13997
13998         * m4/getdelim.m4: Fix typo in copyright line.
13999
14000 2009-09-17  Bruno Haible  <bruno@clisp.org>
14001
14002         * lib/atoll.c: Use the standard header with GPL copyright.
14003         * lib/argz.in.h: Likewise.
14004         * lib/glob.c: Likewise.
14005         * lib/glob-libc.h: Likewise.
14006         * lib/random_r.c: Likewise.
14007         * lib/siglist.h: Likewise.
14008         * lib/strsignal.c: Likewise.
14009         Reported by Ian Beckwith <ianb@erislabs.net>.
14010
14011 2009-09-17  Eric Blake  <ebb9@byu.net>
14012
14013         rmdir: ensure correct dependency order
14014         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
14015
14016 2009-09-17  Bruno Haible  <bruno@clisp.org>
14017
14018         Disable assertion that fails on NetBSD 5 / i386.
14019         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
14020         Reported by Sam Steingold <sds@gnu.org>
14021         and Hasso Tepper <hasso@netbsd.org>.
14022
14023 2009-09-16  Eric Blake  <ebb9@byu.net>
14024
14025         unlinkdir: port to mingw
14026         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
14027         on which no one can unlink a directory.
14028
14029         stdlib: sort witness names
14030         * modules/stdlib (Makefile.am): Sort replacements.
14031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14032         * lib/stdlib.in.h: Likewise.
14033
14034         parse-duration-tests: avoid link failure
14035         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
14036         LIBINTL.
14037         Reported by Tom G. Christensen.
14038
14039         openat-tests: ensure unlinkat behaves like rmdir
14040         * tests/test-rmdir.c (main): Factor guts...
14041         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
14042         * modules/rmdir-tests (Files): Ship new file.
14043         * modules/openat-tests: New test.
14044         * tests/test-unlinkat.c: Likewise.
14045
14046         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
14047         * modules/rmdir-errno (Status, Notice): Now obsolete.
14048
14049         rmdir: work around cygwin 1.5.x and mingw bugs
14050         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
14051         * lib/rmdir.c (rmdir): Work around it.
14052         * modules/rmdir (Status, Notice): No longer obsolete.
14053         (Files): Add dos.m4.
14054         (Depends-on): Add unistd.
14055         (configure.ac): Set witnesses.
14056         (License): Relax to LGPLv2+.
14057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
14058         * modules/unistd (Makefile.am): Substitute witnesses.
14059         * lib/unistd.in.h (rmdir): Declare replacement.
14060         * doc/posix-functions/rmdir.texi (rmdir): Document this.
14061         * modules/rmdir-tests: New tests.
14062         * tests/test-rmdir.c: Likewise.
14063
14064 2009-09-15  Eric Blake  <ebb9@byu.net>
14065
14066         fchdir: improve use of replacement functions
14067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
14068         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
14069         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
14070         REPLACE_CLOSEDIR.
14071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
14072         * modules/sys_stat (Makefile.am): Substitute correct witness.
14073         * modules/dirent (Makefile.am): Likewise.
14074         * modules/unistd (Makefile.am): Likewise.
14075         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
14076         * lib/unistd.in.h (dup): Likewise.
14077         * lib/sys_stat.in.h (fstat): Likewise.
14078
14079         maint: ignore gnulib-tool temp files
14080         * .gitignore: Ignore files created during gnulib-tool --test.
14081
14082 2009-09-13  Jim Meyering  <meyering@redhat.com>
14083
14084         posixtm: don't reject a time that specify "60" as the number of seconds
14085         * lib/posixtm.c (posixtime): The code to reject invalid dates
14086         would also reject a time specified with the .60 suffix.
14087         But POSIX allows that, in order to accommodate leap seconds.
14088         So don't reject it.
14089         (main): Adjust tests accordingly.
14090         * modules/posixtm (Depends-on): Add stpcpy.
14091
14092 2009-09-11  Jim Meyering  <meyering@redhat.com>
14093
14094         announce-gen: include [$release_type] in emitted Subject:
14095         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
14096         e.g., [stable] in the emitted Subject: line.
14097
14098 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14099
14100         Remove obsolete macros from several modules.
14101         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
14102         obsolete Autoconf macros with their modern counterparts.
14103         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
14104         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
14105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
14106         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
14107         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
14108         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14110         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14111         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14112         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
14113         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14114         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14115         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14116         * m4/sockets.m4 (gl_SOCKETS): Likewise.
14117         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
14118         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
14119         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14120         * m4/time_r.m4 (gl_TIME_R): Likewise.
14121         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14122         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
14123         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14124
14125         Fix copyright header in build-aux scripts.
14126         * build-aux/git-version-gen: Fix copyright header to match GPLv3
14127         recommendation.
14128         * build-aux/ncftpput-ftp: Likewise.
14129         * build-aux/update-copyright: Likewise.
14130
14131 2009-09-09  Eric Blake  <ebb9@byu.net>
14132
14133         test-link: allow Linux choice of errno
14134         * tests/test-link.c (main): Relax test for alternate error.
14135
14136         strndup: fix improper m4 caching
14137         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
14138         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
14139         (gl_PREREQ_STRNDUP): Delete.
14140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
14141         * modules/string (Makefile.am): Substitute it.
14142         * lib/string.in.h (strndup): Modernize prototype.
14143
14144         getcwd: port to mingw
14145         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
14146         different from the POSIX assumptions made throughout the getcwd
14147         module; fortunately, the mingw getcwd does not need replacement.
14148         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
14149         * modules/getcwd-tests: New test.
14150         * tests/test-getcwd.c: Likewise.
14151
14152         link: fix platform bugs
14153         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
14154         * lib/link.c (link): Work around them.  Fix related mingw bug.
14155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
14156         * modules/unistd (Makefile.am): Substitute it.
14157         * lib/unistd.in.h (link): Declare replacement.
14158         * doc/posix-functions/link.texi (link): Document this.
14159         * modules/link (Depends-on): Add strdup-posix, sys_stat.
14160
14161         test-link: consolidate into single C program, test more cases
14162         * tests/test-link.sh: Delete.
14163         * tests/test-link.c: Test more error conditions.  Exposes bugs on
14164         at least Cygwin and Solaris.
14165         * modules/link-tests (Files): Remove unused file.
14166         (Depends-on): Add errno, sys_stat.
14167         (Makefile.am): Simplify.
14168
14169 2009-09-08  Bruno Haible  <bruno@clisp.org>
14170
14171         Work around towlower, towupper bug on mingw.
14172         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
14173         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
14174         * doc/posix-functions/towlower.texi: Mention the mingw bug.
14175         * doc/posix-functions/towupper.texi: Likewise.
14176         Reported by Eric Blake.
14177
14178 2009-09-08  Jim Meyering  <meyering@redhat.com>
14179
14180         build: don't try to run autoheader if we don't use it
14181         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
14182         is not used in configure.ac.
14183
14184 2009-09-08  Eric Blake  <ebb9@byu.net>
14185
14186         euidaccess: fix compilation error
14187         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
14188
14189         rawmemchr: relax license
14190         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
14191         okay.
14192         Reported by Jim Meyering.
14193
14194         mkfifoat: new module
14195         * modules/mkfifoat: New file.
14196         * lib/mkfifoat.c: Likewise.
14197         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
14198         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14199         * modules/sys_stat (Makefile.am): Use them.
14200         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
14201         * MODULES.html.sh (File system functions): Mention module.
14202         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14203         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14204         * modules/mkfifoat-tests: New test.
14205         * tests/test-mkfifoat.c: Likewise.
14206
14207         strchrnul: relax license
14208         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
14209         okay.
14210         Reported by Jim Meyering.
14211
14212 2009-09-08  Eric Blake  <ebb9@byu.net>
14213
14214         fstatat: fix compilation on Solaris
14215         * lib/fstatat.c (includes): Add fcntl.h.
14216         Reported by Pádraig Brady.
14217
14218 2009-09-07  Eric Blake  <ebb9@byu.net>
14219
14220         rename: modernize replacement
14221         * modules/rename (Depends-on): Add stdio.
14222         (configure.ac): Declare witness.
14223         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
14224         stdio take care of replacement.
14225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
14226         * modules/stdio (Makefile.am): Substitute them.
14227         * lib/stdio.in.h (rename): Declare replacement.
14228         * lib/rename.c (includes): Allow cross-compilation to non-windows
14229         machines.
14230         * doc/posix-functions/rename.texi (rename): Improve
14231         documentation.
14232
14233         stdio: sort witness names
14234         * modules/stdio (Makefile.am): Sort replacements.
14235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14236         * lib/stdio.in.h: Likewise.
14237
14238         getcwd: minor cleanups
14239         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
14240         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
14241
14242         openat: provide more convenience names
14243         * modules/faccessat (configure.ac): Add C witness.
14244         * lib/unistd.in.h (readlinkat): Fix typo.
14245         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
14246         convenience wrappers.
14247         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
14248         wrappers in syntax checks.
14249
14250 2009-09-06  Eric Blake  <ebb9@byu.net>
14251
14252         doc: fix comments in recent patches
14253         * lib/faccessat.c: Mention correct function.
14254         * lib/fchmodat.c: Likewise.
14255         * lib/fchownat.c: Likewise.
14256         * lib/symlinkat.c: Likewise.
14257         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
14258         constants.
14259
14260         faccessat, symlinkat: continue cleanup of previous patch
14261         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
14262         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14263         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
14264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
14265         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
14266         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
14267         set.
14268
14269 2009-09-06  Bruno Haible  <bruno@clisp.org>
14270
14271         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
14272         (fstatat): Declare if GNULIB_FSTATAT is set.
14273         (mkdirat): Declare if GNULIB_MKDIRAT is set.
14274         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
14275         (unlinkat): Declare if GNULIB_UNLINKAT is set.
14276         * modules/fcntl-h (Files): Remove m4/openat.m4.
14277         * modules/sys_stat (Files): Remove m4/openat.m4.
14278         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
14279         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
14280         * modules/unistd (Files): Remove m4/openat.m4.
14281         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
14282         GNULIB_OPENAT.
14283         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
14284         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
14285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
14286         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
14287         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
14288         gl_OPENAT_DEFAULTS.
14289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
14290         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
14291         Don't require gl_OPENAT_DEFAULTS.
14292         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
14293         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
14294         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
14295         (gl_OPENAT_DEFAULTS): Remove macro.
14296
14297 2009-09-06  Bruno Haible  <bruno@clisp.org>
14298
14299         * modules/openat (configure.ac): Remove unneeded witness.
14300
14301 2009-09-06  Bruno Haible  <bruno@clisp.org>
14302
14303         Set errno to ENOSYS when a function is entirely unsupported.
14304         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
14305         EOPNOTSUPP.
14306         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14307         * modules/chown (Depends-on): Remove errno.
14308
14309 2009-09-06  Bruno Haible  <bruno@clisp.org>
14310
14311         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
14312
14313 2009-09-06  Bruno Haible  <bruno@clisp.org>
14314
14315         * lib/sys_stat.in.h: Fix preprocessor command indentation.
14316
14317 2009-09-06  Ben Pfaff  <blp@gnu.org>
14318             Bruno Haible  <bruno@clisp.org>
14319
14320         Work around a glibc bug in strtok_r.
14321         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
14322         Undefine if UNDEFINE_STRTOK_R is set.
14323         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
14324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14325         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
14326         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
14327         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
14328         UNDEFINE_STRTOK_R.
14329         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
14330
14331 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14332
14333         exclude: minor fix
14334         * lib/exclude.c: Include wctype.h
14335
14336 2009-09-06  Akim Demaille  <demaille@gostai.com>
14337
14338         bootstrap: improve error message
14339         * build-aux/bootstrap (find_tool): Upon failure, report the list
14340         of candidates.
14341         Honor the initial value of the envvar.
14342
14343 2009-09-05  Eric Blake  <ebb9@byu.net>
14344
14345         symlinkat: new module
14346         * modules/symlinkat: New file.
14347         * lib/symlinkat.c: Likewise.
14348         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14350         * modules/unistd (Makefile.am): Use them.
14351         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
14352         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
14353         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
14354         * MODULES.html.sh (File system functions): Mention module.
14355         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14356         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14357         * modules/symlinkat-tests: New test.
14358         * tests/test-symlinkat.c: Likewise.
14359
14360         test-openat-safer: add more checks
14361         * tests/test-openat-safer.c (main): Check more code paths.
14362
14363 2009-09-05  Jim Meyering  <meyering@redhat.com>
14364
14365         syntax-check: detect unnecessary inclusion of openat.h
14366         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
14367
14368 2009-09-05  Bruno Haible  <bruno@clisp.org>
14369
14370         Support towlower, towupper.
14371         * doc/posix-functions/towlower.texi: Mention module wctype.
14372         * doc/posix-functions/towupper.texi: Likewise.
14373         * lib/wctype.in.h (towlower, towupper): New functions.
14374         * tests/test-wctype.c: Include stdio.h, stdlib.h.
14375         (ASSERT): New macro.
14376         (e): New variable.
14377         (main): Test also towlower, towupper. Test WEOF argument.
14378         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14379
14380 2009-09-05  Bruno Haible  <bruno@clisp.org>
14381
14382         Fix conversion behaviour when the input is invalid.
14383         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
14384         mark occurring in first pass of indirect conversion.
14385         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
14386         input.
14387         Found by clang's static analyzer.
14388
14389 2009-09-05  Bruno Haible  <bruno@clisp.org>
14390
14391         * tests/test-striconveh.c (main): Test indirect conversion on platforms
14392         where direct conversion is possible.
14393
14394 2009-09-04  Eric Blake  <ebb9@byu.net>
14395
14396         openat: fail with ENOENT on empty name
14397         * lib/openat-proc.c (openat_proc_name): Special-case the empty
14398         buffer.
14399
14400         link-follow: fix logic bug in prior patch
14401         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
14402         reversed sense of yes and no in prior patch.  Avoid confusing
14403         compilation failure with desired semantics.
14404
14405         link-follow: accomodate mingw and cross-compilation
14406         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
14407         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
14408         cross-compilation results to -1, to make linkat easier to
14409         implement when cross-compiling.  Trivially support mingw.
14410         * modules/link-follow (configure.ac): Call new name.
14411         * NEWS: Mention this.
14412
14413 2009-09-03  Eric Blake  <ebb9@byu.net>
14414
14415         faccessat: compile replacement
14416         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
14417         needed.
14418
14419         fts: fix compilation error
14420         * lib/fts.c (includes): Re-add "openat.h", for
14421         openat_needs_fchdir.
14422
14423         faccessat: new module
14424         * modules/faccessat: New file.
14425         * lib/faccessat.c: Likewise.
14426         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14428         * modules/unistd (Makefile.am): Use it.
14429         * lib/unistd.in.h (faccessat): Declare it.
14430         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
14431         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
14432         * MODULES.html.sh (File system functions): Mention it.
14433         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
14434         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14435
14436         euidaccess: prefer POSIX over non-standard implementation
14437         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
14438         * lib/euidaccess.c (euidaccess): Use it if available.
14439
14440         openat: make template easier to use
14441         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
14442         AT_FUNC_F2 to be undefined.
14443         (VALIDATE_FLAG): New macro; use it to reject bad flags.
14444         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
14445         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
14446         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
14447         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
14448         Likewise.
14449         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
14450         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
14451         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
14452         Likewise.
14453
14454         openat: declare in POSIX headers
14455         * NEWS: Mention this.
14456         * modules/openat (configure.ac): Declare witnesses.
14457         (Depends-on): Add fcntl-h, sys_stat, unistd.
14458         (Include): Mention correct headers.
14459         * modules/fcntl-h (Depends-on): Add link-warning.
14460         (Files): Add openat.m4.
14461         (Makefile.am): Substitute witnesses.
14462         * modules/sys_stat (Files, Makefile.am): Likewise.
14463         * modules/unistd (Files, Makefile.am): Likewise.
14464         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
14465         (gl_OPENAT_DEFAULTS): New macro.
14466         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
14467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
14468         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
14469         (SYS_STAT_H): Remove unused variable.
14470         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
14471         * lib/fcntl--.h (includes): Remove unneeded header.
14472         * lib/openat-safer.c (includes): Likewise.
14473         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
14474         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
14475         appropriate headers.
14476         (__OPENAT_PREFIX): Delete.
14477         * lib/fcntl.in.h (openat): Provide declaration.
14478         (AT_FDCWD): Fix Solaris bug.
14479         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
14480         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
14481         * lib/fchmodat.c (includes):  Adjust to find declaration.
14482         * lib/fchownat.c (includes): Likewise.
14483         * lib/mkdirat.c (includes): Likewise.
14484         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
14485         still visible.
14486
14487 2009-09-02  Eric Blake  <ebb9@byu.net>
14488
14489         errno: use consistently
14490         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
14491         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
14492         * lib/canonicalize.c (ELOOP): Likewise.
14493         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
14494         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
14495         * lib/lchown.c (EOPNOTSUPP): Likewise.
14496         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
14497         * lib/savewd.c (ESTALE): Likewise.
14498         * lib/settime.c (ENOSYS): Likewise.
14499         * lib/utimens.c (ENOSYS): Likewise.
14500         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
14501         * lib/chdir-safer.c (ELOOP): Likewise.
14502         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
14503         * modules/c-stack (Depends-on): Add errno.
14504         * modules/canonicalize (Depends-on): Likewise.
14505         * modules/chdir-safer (Depends-on): Likewise.
14506         * modules/fdopendir (Depends-on): Likewise.
14507         * modules/inet_ntop (Depends-on): Likewise.
14508         * modules/inet_pton (Depends-on): Likewise.
14509         * modules/lchown (Depends-on): Likewise.
14510         * modules/openat (Depends-on): Likewise.
14511         * modules/savewd (Depends-on): Likewise.
14512         * modules/settime (Depends-on): Likewise.
14513         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
14514
14515         fts: avoid leaking fds
14516         * modules/fts (Depends-on): Add cloexec.
14517         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
14518         flag.
14519
14520         fts: make directory fds more robust
14521         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
14522         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
14523
14524         backupfile, chdir-long, fts, savedir: make safer
14525         * lib/backupfile.c (includes): Use "dirent--.h", since
14526         numbered_backup can write to stderr during readdir.
14527         * lib/savedir.c (includes): Likewise.
14528         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
14529         emulation can write to stderr on failure.
14530         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
14531         * lib/getcwd.c: Document why opendir_safer is unused.
14532         * lib/glob.c: Likewise.
14533         * lib/scandir.c: Likewise.
14534         * lib/openat-proc.c: Likewise, for open_safer.
14535         * modules/backupfile (Depends-on): Add dirent-safer.
14536         * modules/savedir (Depends-on): Likewise.
14537         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14538         * modules/chdir-long (Depends-on): Add openat-safer.
14539
14540         openat-safer: new module
14541         * modules/openat-safer: New file.
14542         * lib/openat-safer.c: Likewise.
14543         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14544         * lib/fcntl-safer.h (openat_safer): Declare.
14545         * lib/fcntl--.h (openat): Override.
14546         * MODULES.html.sh (File descriptor based I/O): Mention it.
14547         * lib/openat.h: Add double-inclusion guards.
14548         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14549         "fcntl--.h", so we can implement openat.
14550         * modules/openat-safer-tests: New test.
14551         * tests/test-openat-safer.c: New file.
14552
14553         dirent-safer: new module
14554         * modules/dirent-safer: New file.
14555         * lib/dirent--.h: Likewise.
14556         * lib/dirent-safer.h: Likewise.
14557         * lib/opendir-safer.c: Likewise.
14558         * m4/dirent-safer.m4: Likewise.
14559         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14560         * modules/dirent-safer-tests: New test.
14561         * tests/test-dirent-safer.c: New file.
14562         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14563
14564         fdopendir: optimize on mingw
14565         * lib/unistd.in.h (_gl_directory_name): New prototype.
14566         * lib/fchdir.c (_gl_directory_name): Implement it.
14567         (fchdir): Use it to simplify implementation.
14568         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14569         fchdir, when available, to avoid calling [f]chdir().
14570
14571         fdopendir: split into its own module
14572         * lib/openat.c (fdopendir): Move...
14573         * lib/fdopendir.c: ...into new file.
14574         * modules/fdopendir: New module.
14575         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14576         * modules/openat (Depends-on): Add fdopendir.
14577         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14578         fdopendir here.
14579         * modules/savedir (Depends-on): Only need fdopendir, not full
14580         openat.
14581         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14582         * lib/openat.h (fdopendir): Drop prototype.
14583         * lib/dirent.in.h (fdopendir): Provide prototype.
14584         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14585         * modules/dirent (Makefile.am): Substitute them.
14586         * MODULES.html.sh (File system functions): Mention it.
14587         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14588         * modules/fdopendir-tests: New file.
14589         * tests/test-fdopendir.c: Likewise.
14590
14591         fchdir: use more consistent macro convention
14592         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14593         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14594         REPLACE_FCHDIR, rather than relying on config.h macros.
14595         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14596         inside a single make-time REPLACE_FCHDIR block, rather than using
14597         the config.h FCHDIR_REPLACEMENT.
14598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14599         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14600         Manage fstat replacement.
14601         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14602         REPLACE_FCHDIR.
14603         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14604         (Makefile.am): Substitute REPLACE_FCHDIR.
14605         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14606         FCHDIR_REPLACEMENT.
14607         * lib/dup-safer.c (dup_safer): Likewise.
14608         * lib/dup2.c (rpl_dup2): Likewise.
14609         * lib/dup3.c (rpl_dup3): Likewise.
14610         * lib/open.c (rpl_open): Likewise.
14611
14612         fchdir: simplify error handling, and support dup3
14613         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14614         stdbool, malloc-posix, realloc-posix.
14615         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14616         (ensure_dirs_slot): Return false on allocation failure.
14617         (rpl_dup2): Delete.
14618         (_gl_register_dup): New function.
14619         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14620         (_gl_register_fd): Close fd on allocation failure.
14621         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14622         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14623         prototype.
14624         (rpl_dup2_fchdir): Delete prototype.
14625         * lib/open.c (open): Update caller.
14626         * lib/dup2.c (dup2): Track fchdir metadata.
14627         * lib/dup3.c (dup3): Likewise.
14628         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14630
14631 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14632
14633         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14634         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14635         don't pass arguments to AC_OUTPUT.
14636
14637 2009-09-02  Bruno Haible  <bruno@clisp.org>
14638
14639         * modules/mkdtemp (License): Relicense under LGPLv2+.
14640         Reported by Paolo Bonzini.
14641
14642 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14643
14644         Replace uses of obsolete autoconf macros in Jim's modules.
14645         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14646         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14647         can evoke a warning from autoconf when run with -Wobsolete
14648         enabled.  They were declared obsolete for good reasons (see
14649         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14650         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14651         should not continue using the deprecated macros.
14652         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14653         obsolete Autoconf macros with modern counterparts.
14654         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14655         * m4/dos.m4 (gl_AC_DOS): Likewise.
14656         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14657         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14658         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14659         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14660         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14661         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14662         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14663         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14664         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14665         Likewise.
14666         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14667         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14668         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14669         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14670         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14671         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14672
14673 2009-09-01  Eric Blake  <ebb9@byu.net>
14674
14675         fchdir: fix off-by-one bug in previous patch
14676         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14677         (_gl_unregister_fd): Delete useless if.
14678
14679 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14680
14681         maint.mk: sort the list of syntax-check rules
14682         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14683         easier to get a sense of progress when the rules are run sequentially
14684         and take a long time.
14685
14686 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14687
14688         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14689         * modules/netinet_in: Likewise.
14690         * modules/sys_file: Likewise.
14691         * modules/sys_ioctl: Likewise.
14692         * modules/sys_select: Likewise.
14693         * modules/sys_socket: Likewise.
14694         * modules/sys_stat: Likewise.
14695         * modules/sys_time: Likewise.
14696         * modules/sys_times: Likewise.
14697         * modules/sys_utsname: Likewise.
14698         * modules/sys_wait: Likewise.
14699
14700 2009-09-01  Jim Meyering  <meyering@redhat.com>
14701
14702         fts: help ensure that return values are not ignored
14703         * lib/fts_.h (__GNUC_PREREQ): Define.
14704         (__attribute_warn_unused_result__): Define.
14705         (fts_children, fts_close, fts_open, fts_read): Declare with
14706         __attribute_warn_unused_result__.
14707
14708         fts: fts_close now fails also when closing a dir file descriptor fails
14709         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14710         and propagate to caller, along with errno.
14711
14712         announce-gen: correct formatting in --help output
14713         * build-aux/announce-gen (usage): Move the one-line description in
14714         --help output "up", to where it belongs, just after Usage:.
14715
14716 2009-08-31  Eric Blake  <ebb9@byu.net>
14717
14718         fchdir: port to mingw
14719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
14720         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
14721         opened, then use a substitute.
14722         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
14723         replacement.
14724         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
14725         (_gl_register_fd): No need to check stat if open already filters
14726         all directories.
14727         (fchdir): Fix error condition to match POSIX.
14728         * modules/fchdir (Depends-on): Add sys_stat.
14729         * doc/posix-functions/open.texi (open): Document the limitation.
14730         * modules/fchdir-tests: New file.
14731         * tests/test-fchdir.c: Likewise.
14732
14733         canonicalize: allow cross-testing from cygwin to mingw
14734         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
14735         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
14736         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
14737         Likewise.
14738         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
14739         target does not support symlinks.
14740         * tests/test-canonicalize-lgpl.sh: Likewise.
14741
14742         chown: avoid compilation warning on mingw
14743         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
14744         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
14745         mingw.
14746         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14747         * modules/chown (Depends-on): Add errno.
14748
14749 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14750
14751         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
14752         command.
14753
14754 2009-08-31  Jim Meyering  <meyering@redhat.com>
14755
14756         canonicalize: remove useless initialization
14757         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
14758         initialization of local, "end".
14759
14760 2009-08-30  Bruno Haible  <bruno@clisp.org>
14761
14762         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
14763         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
14764         ENOSYS.
14765
14766 2009-08-30  Bruno Haible  <bruno@clisp.org>
14767
14768         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
14769         /usr/xpg4/bin/tr when it exists.
14770         * tests/test-pipe-filter-gi1.sh: Likewise.
14771
14772 2009-08-30  Bruno Haible  <bruno@clisp.org>
14773
14774         Work around deficient /usr/bin/id program on Solaris.
14775         * tests/test-file-has-acl.sh (ID): New variable.
14776         * tests/test-set-mode-acl.sh (ID): Likewise.
14777         * tests/test-copy-acl.sh (ID): Likewise.
14778         * tests/test-copy-file.sh (ID): Likewise.
14779
14780 2009-08-30  Bruno Haible  <bruno@clisp.org>
14781
14782         New module 'xstriconveh'.
14783         * lib/xstriconveh.h: New file.
14784         * lib/xstriconveh.c: New file.
14785         * modules/xstriconveh: New file.
14786
14787 2009-08-30  Bruno Haible  <bruno@clisp.org>
14788
14789         Make it easier to use mem_cd_iconveh.
14790         * lib/striconveh.h (iconveh_t): New type.
14791         (iconveh_open, iconveh_close): New declarations.
14792         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14793         with a single 'const iconveh_t *' argument.
14794         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
14795         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14796         with a single 'const iconveh_t *' argument.
14797         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
14798         * tests/test-striconveh.c (main): Update.
14799         * NEWS: Mention the change.
14800
14801 2009-08-30  Bruno Haible  <bruno@clisp.org>
14802
14803         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
14804         problem.
14805
14806 2009-08-30  Bruno Haible  <bruno@clisp.org>
14807
14808         Work around iconv_open problem on Solaris.
14809         * lib/iconv_open-solaris.gperf: New file.
14810         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
14811         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
14812         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
14813         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
14814         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
14815         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
14816
14817 2009-08-29  Jim Meyering  <meyering@redhat.com>
14818
14819         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
14820         * top/maint.mk (cvs-check): Remove target; it was just an alias
14821         to the better-named vc-diff-check.
14822         (maintainer-distcheck): Remove rule.  It was used only from
14823         the (alpha/beta/major) target, and all of its commands but one
14824         were coreutils-specific.
14825         (vc-dist): Remove rule.
14826         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
14827         Run vc-diff-check, not vc-dist.
14828         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
14829
14830 2009-08-27  Bruno Haible  <bruno@clisp.org>
14831
14832         * tests/test-bitrotate.c (main): Remove test that uses a shift count
14833         of 0.
14834
14835 2009-08-27  Bruno Haible  <bruno@clisp.org>
14836
14837         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
14838         compilers.
14839         * doc/func.texi: Document the SunPRO C bug.
14840
14841 2009-08-27  Bruno Haible  <bruno@clisp.org>
14842
14843         Fix link error on Solaris.
14844         * tests/test-parse-duration.c (xstrdup): Remove function.
14845
14846 2009-08-26  Pádraig Brady  <P@draigbrady.com>
14847
14848         ignore-value: handle pointer types, too
14849         * lib/ignore-value.h (__attribute__): Remove definition.
14850         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
14851         of a more concise and more-often effective "(void) i" statement.
14852         (ignore_ptr): New function to suppress warnings from functions that
14853         return pointers, and to make it explicit that one function doesn't
14854         handle all cases.
14855
14856 2009-08-25  Bruno Haible  <bruno@clisp.org>
14857
14858         dup2: work around a Linux bug.
14859         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
14860         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
14861         * doc/posix-functions/dup2.texi: Mention the Linux bug.
14862         Reported by Simon Josefsson.
14863
14864 2009-08-25  Jim Meyering  <meyering@redhat.com>
14865
14866         libguestfs uses gnulib
14867         * users.txt: Add libguestfs.
14868
14869 2009-08-24  Eric Blake  <ebb9@byu.net>
14870
14871         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
14872         * lib/pipe2.c (includes): Add binary-io.h.
14873         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
14874
14875 2009-08-24  Bruno Haible  <bruno@clisp.org>
14876
14877         Tolerate declared but missing accept4 syscall.
14878         * lib/accept4.c (accept4): Invoke original accept4 function first, if
14879         available.
14880         * lib/sys_socket.in.h (accept4): If the function is already present,
14881         override it.
14882         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
14883         * modules/accept4 (Makefile.am): Compile accept4.c always.
14884         Reported by Paolo Bonzini and Eric Blake.
14885
14886 2009-08-23  Bruno Haible  <bruno@clisp.org>
14887
14888         New module 'accept4'.
14889         * lib/sys_socket.in.h (accept4): New declaration.
14890         * lib/accept4.c: New file.
14891         * m4/accept4.m4: New file.
14892         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14893         GNULIB_ACCEPT4, HAVE_ACCEPT4.
14894         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
14895         HAVE_ACCEPT4.
14896         * modules/accept4: New file.
14897         * doc/glibc-functions/accept4.texi: Mention the new module.
14898
14899 2009-08-24  Jim Meyering  <meyering@redhat.com>
14900
14901         progname: also set global program_invocation_name, when possible
14902         Before this change, a libtool-enabled program that calls glibc's
14903         error function would report the program name as
14904         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
14905         * modules/progname (configure.ac): Check for a declaration of
14906         program_invocation_name.
14907         * lib/progname.c:  Include <errno.h>.
14908         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
14909         Set program_invocation_name.
14910
14911 2009-08-23  Bruno Haible  <bruno@clisp.org>
14912
14913         * lib/dup3.c: Include <string.h>.
14914
14915 2009-08-23  Bruno Haible  <bruno@clisp.org>
14916
14917         * lib/dup3.c (dup3): Test only once whether the system actually exists.
14918         * lib/pipe2.c (pipe2): Likewise.
14919         Suggested by Eric Blake.
14920
14921 2009-08-23  Bruno Haible  <bruno@clisp.org>
14922
14923         Tolerate declared but missing dup3 syscall.
14924         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
14925         * lib/unistd.in.h (dup3): If the function is already present,
14926         override it.
14927         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
14928         * modules/dup3 (Makefile.am): Compile dup3.c always.
14929         Reported by Paolo Bonzini.
14930
14931 2009-08-23  Bruno Haible  <bruno@clisp.org>
14932
14933         Tolerate declared but missing pipe2 syscall.
14934         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
14935         available.
14936         * lib/unistd.in.h (pipe2): If the function is already present,
14937         override it.
14938         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
14939         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
14940         Reported by Paolo Bonzini.
14941
14942 2009-08-23  Bruno Haible  <bruno@clisp.org>
14943
14944         * lib/pipe2.c (pipe2): Move #ifs inside function.
14945
14946 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14947
14948         quotearg: document limitations of quote_these_too
14949         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
14950         those limitations are created.
14951         * lib/quotearg.h (set_char_quoting): Document that digits and
14952         letters that are special after backslash are not permitted.
14953         (quotearg_char): Cross-reference set_char_quoting documentation.
14954
14955 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
14956
14957         quotearg: implement custom_quoting_style
14958         * lib/quotearg.c: (struct quoting_options): Add left_quote and
14959         right_quote fields.
14960         (set_custom_quoting): New public function.
14961         (quotearg_buffer_restyled): Add left_quote and right_quote
14962         arguments, handle them very much like locale quoting, and update
14963         all uses.
14964         (quotearg_n_custom): New public function.
14965         (quotearg_n_custom_mem): New public function.
14966         (quotearg_custom): New public function.
14967         (quotearg_custom_mem): New public function.
14968         * lib/quotearg.h: Prototype and document new public functions.
14969         (enum quoting_style): For escape_quoting_style and
14970         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
14971         ignored even though they're otherwise like c_quoting_style.
14972         Add custom_quoting_style member and document with comparison to
14973         clocale_quoting_style.
14974         * tests/test-quotearg.c (custom_quotes): New array.
14975         (custom_results): New array.
14976         (main): Extend to test custom quoting.
14977
14978 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14979
14980         quotearg: fix right quote escaping when it's in quote_these_too
14981         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
14982         quote, be sure to prepend only one backslash.
14983         * tests/test-quotearg.c (use_quote_double_quotes): New function.
14984         (main): Test it.
14985
14986 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14987
14988         quotearg-tests: test escaping of embedded locale quotes
14989         * tests/test-quotearg.c (struct result_strings): Add member for
14990         new input.
14991         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
14992         (inputs): Add new input.
14993         (results_g): Add expected results.
14994         (flag_results): Likewise.
14995         (locale_results): Likewise.
14996         (compare_strings): Check those.
14997
14998 2009-08-23  Bruno Haible  <bruno@clisp.org>
14999
15000         Tests for module 'dup3'.
15001         * modules/dup3-tests: New file.
15002         * tests/test-dup3.c: New file.
15003
15004         New module 'dup3'.
15005         * lib/unistd.in.h (dup3): New declaration.
15006         * lib/dup3.c: New file.
15007         * m4/dup3.m4: New file.
15008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
15009         HAVE_DUP3.
15010         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
15011         * modules/dup3: New file.
15012         * doc/glibc-functions/dup3.texi: Mention the new module.
15013
15014 2009-08-23  Bruno Haible  <bruno@clisp.org>
15015
15016         Tweak the dup2 test.
15017         * tests/test-dup2.c (main): Create the test file empty. Verify that an
15018         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
15019         the test file is still empty. Fix argument order of lseek.
15020
15021 2009-08-23  Bruno Haible  <bruno@clisp.org>
15022
15023         Avoid test link errors when the modules getopt-gnu, gettext are used.
15024         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
15025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15026
15027 2009-08-23  Bruno Haible  <bruno@clisp.org>
15028
15029         Fix getdtablesize() on mingw.
15030         * lib/getdtablesize.c (getdtablesize): Implement differently.
15031         * lib/unistd.in.h (getdtablesize): Improve comment.
15032
15033 2009-08-23  Bruno Haible  <bruno@clisp.org>
15034
15035         New module 'mkostemp'.
15036         Based on Ulrich Drepper's 2007-08-10 change in glibc.
15037         * lib/stdlib.in.h (mksotemp): New declaration.
15038         * lib/mkostemp.c: New file, from glibc with modifications.
15039         * lib/tempname.h (GT_FILE): Remove outdated comment.
15040         (gen_tempname): Add flags argument.
15041         * lib/tempname.c (__GT_BIGFILE): Remove macro.
15042         (__GT_FILE): Map to 1.
15043         (small_open, large_open): Remove macros.
15044         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
15045         * lib/mkstemp.c (mkstemp): Update.
15046         * lib/mkdtemp.c (mkdtemp): Likewise.
15047         * m4/mkostemp.m4: New file.
15048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
15049         HAVE_MKOSTEMP.
15050         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
15051         HAVE_MKOSTEMP.
15052         * modules/mkostemp: New file, based on modules/mkstemp.
15053         * doc/glibc-functions/mkostemp.texi: Mention the new module.
15054         * NEWS: Mention the change.
15055
15056 2009-08-23  Bruno Haible  <bruno@clisp.org>
15057
15058         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
15059         Reported by Eric Blake.
15060
15061 2009-08-23  Bruno Haible  <bruno@clisp.org>
15062
15063         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
15064         Reported by Eric Blake.
15065
15066 2009-08-23  Bruno Haible  <bruno@clisp.org>
15067
15068         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
15069         * modules/pipe2 (Depends-on): Likewise.
15070
15071 2009-08-23  Eric Blake  <ebb9@byu.net>
15072
15073         fcntl-h: add O_TTY_INIT support
15074         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
15075         * tests/test-fcntl-h.c (o): Test it.
15076         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15077
15078         fcntl-h: rename from fcntl, in preparation for fcntl(2)
15079         * modules/fcntl: Move <fcntl.h> header replacement...
15080         * modules/fcntl-h: ...to new name, so as not to collide with
15081         like-named function.
15082         * tests/test-fcntl.c: Rename...
15083         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
15084         * modules/fcntl-tests: Rename...
15085         * modules/fcntl-h-tests: ...to this.  Update test file name.
15086         * modules/chdir-long (Depends-on): Update clients.
15087         * modules/chdir-safer (Depends-on): Likewise.
15088         * modules/fcntl-safer (Depends-on): Likewise.
15089         * modules/fts (Depends-on): Likewise.
15090         * modules/mkancesdirs (Depends-on): Likewise.
15091         * modules/mkdir-p (Depends-on): Likewise.
15092         * modules/open (Depends-on): Likewise.
15093         * modules/savewd (Depends-on): Likewise.
15094         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
15095         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15096
15097 2009-08-22  Bruno Haible  <bruno@clisp.org>
15098
15099         * modules/binary-io (License): Relicense under LGPL.
15100         * modules/pipe2 (License): Likewise.
15101
15102 2009-08-22  Bruno Haible  <bruno@clisp.org>
15103
15104         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
15105         return value.
15106         * lib/pipe-filter-gi.c (filter_init): Likewise.
15107         Reported by Eric Blake.
15108
15109 2009-08-22  Bruno Haible  <bruno@clisp.org>
15110
15111         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
15112         * modules/pipe (Depends-on): Add pipe2.
15113
15114 2009-08-22  Bruno Haible  <bruno@clisp.org>
15115
15116         Tests for module 'pipe2'.
15117         * modules/pipe2-tests: New file.
15118         * tests/test-pipe2.c: New file.
15119
15120         New module 'pipe2'.
15121         * lib/unistd.in.h (pipe2): New declaration.
15122         * lib/pipe2.c: New file.
15123         * m4/pipe2.m4: New file.
15124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
15125         HAVE_PIPE2.
15126         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
15127         * modules/pipe2: New file.
15128         * doc/glibc-functions/pipe2.texi: Mention the new module.
15129
15130 2009-08-22  Bruno Haible  <bruno@clisp.org>
15131
15132         Reference some new glibc functions.
15133         * doc/glibc-functions/accept4.texi: New file.
15134         * doc/glibc-functions/dup3.texi: New file.
15135         * doc/glibc-functions/mkostemp.texi: New file.
15136         * doc/glibc-functions/pipe2.texi: New file.
15137         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
15138         (Glibc sys/socket.h): Refer to accept4.
15139         (Glibc unistd.h): Refer to dup3, pipe2.
15140         Reported by Eric Blake.
15141
15142 2009-08-22  Jim Meyering  <meyering@redhat.com>
15143             Bruno Haible  <bruno@clisp.org>
15144
15145         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
15146         This makes it so packages using automake-1.11's silent-rules option
15147         can print e.g., a single "GEN    configmake.h" line, rather than
15148         the 30+ statements that perform the job.  If you want to see the
15149         actual commands, you can still run "make V=1".
15150         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
15151         so that make output is abbreviated when those variables are defined
15152         appropriately.
15153         * modules/argz: Likewise.
15154         * modules/arpa_inet: Likewise.
15155         * modules/byteswap: Likewise.
15156         * modules/configmake: Likewise.
15157         * modules/dirent: Likewise.
15158         * modules/errno: Likewise.
15159         * modules/fcntl: Likewise.
15160         * modules/float: Likewise.
15161         * modules/fnmatch: Likewise.
15162         * modules/getopt-posix: Likewise.
15163         * modules/glob: Likewise.
15164         * modules/iconv_open: Likewise.
15165         * modules/inttypes: Likewise.
15166         * modules/localcharset: Likewise.
15167         * modules/locale: Likewise.
15168         * modules/math: Likewise.
15169         * modules/netdb: Likewise.
15170         * modules/netinet_in: Likewise.
15171         * modules/poll: Likewise.
15172         * modules/posix_spawnp-tests: Likewise.
15173         * modules/sched: Likewise.
15174         * modules/search: Likewise.
15175         * modules/selinux-h: Likewise.
15176         * modules/signal: Likewise.
15177         * modules/spawn: Likewise.
15178         * modules/stdarg: Likewise.
15179         * modules/stdbool: Likewise.
15180         * modules/stddef: Likewise.
15181         * modules/stdint: Likewise.
15182         * modules/stdio: Likewise.
15183         * modules/stdlib: Likewise.
15184         * modules/string: Likewise.
15185         * modules/strings: Likewise.
15186         * modules/sys_file: Likewise.
15187         * modules/sys_ioctl: Likewise.
15188         * modules/sys_select: Likewise.
15189         * modules/sys_socket: Likewise.
15190         * modules/sys_stat: Likewise.
15191         * modules/sys_time: Likewise.
15192         * modules/sys_times: Likewise.
15193         * modules/sys_utsname: Likewise.
15194         * modules/sys_wait: Likewise.
15195         * modules/sysexits: Likewise.
15196         * modules/time: Likewise.
15197         * modules/unistd: Likewise.
15198         * modules/wchar: Likewise.
15199         * modules/wctype: Likewise.
15200
15201 2009-08-22  Jim Meyering  <meyering@redhat.com>
15202
15203         announce-gen: detect write failure
15204         * build-aux/announce-gen: Add Coda at end.
15205         Remove equivalent-but-more-verbose block at top.
15206
15207 2009-08-19  Akim Demaille  <demaille@gostai.com>
15208
15209         bootstrap: --help to stdout.
15210         * bootstrap (usage): Don't send --help to stderr.
15211         Use a here doc instead of a long string.
15212
15213 2009-08-21  Eric Blake  <ebb9@byu.net>
15214
15215         test-popen-safer: split from test-popen
15216         * tests/test-popen.c (main): Move...
15217         * tests/test-popen.h: ...into new file.
15218         * tests/test-popen-safer2.c: New file.
15219         * modules/popen-tests (Files): Add test-popen.h.
15220         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
15221         Suggested by Bruno Haible.
15222
15223         test-fcntl-safer: split from test-open
15224         * tests/test-open.c (main): Move...
15225         * tests/test-open.h: ...into new file.
15226         * tests/test-fcntl-safer.c: New file.
15227         * modules/open-tests (Files): Add test-open.h.
15228         * modules/fcntl-safer-tests: New file.
15229         Suggested by Bruno Haible.
15230
15231         test-fopen-safer: split from test-fopen
15232         * tests/test-fopen.c (main): Move...
15233         * tests/test-fopen.h: ...into new file.
15234         * tests/test-fopen-safer.c: New file.
15235         * modules/fopen-tests (Files): Add test-fopen.h.
15236         * modules/fopen-safer-tests: New file.
15237         Suggested by Bruno Haible.
15238
15239 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15240
15241         popen-safer: test O_CLOEXEC at run-time.
15242         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
15243
15244 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15245
15246         fcntl: move more flags to the header
15247         * lib/cloexec.c: Do not define FD_CLOEXEC here.
15248         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
15249         * lib/fcntl.in.h: Do both things here.
15250
15251 2009-08-21  Jim Meyering  <meyering@redhat.com>
15252
15253         consistently remove $@-t before redirecting to it
15254         * modules/argz: Remove $@-t and $@ before redirecting to the former.
15255         * modules/alloca-opt: Likewise.
15256         * modules/byteswap: Likewise.
15257         * modules/fnmatch: Likewise.
15258         * modules/getopt-posix: Likewise.
15259         * modules/glob: Likewise.
15260         * modules/poll: Likewise.
15261         * modules/posix_spawnp-tests: Likewise.
15262         * modules/sys_socket: Likewise.
15263         * modules/sysexits: Likewise.
15264
15265 2009-08-21  Eric Blake  <ebb9@byu.net>
15266
15267         popen: simplify access to original popen
15268         * lib/popen.c (rpl_popen): No need to worry about popen being a
15269         macro.
15270         Reported by Bruno Haible.
15271
15272 2009-08-20  Eric Blake  <ebb9@byu.net>
15273
15274         build: avoid some compiler warnings
15275         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
15276         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
15277         type.
15278         (new_exclude_segment, excluded_file_pattern_p)
15279         (excluded_file_name_p): Reduce scope.
15280         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
15281         old-style declaration.
15282
15283 2009-08-20  Simon Josefsson  <simon@josefsson.org>
15284
15285         * tests/test-exclude1.sh: Handle Windows EOL.
15286         * tests/test-exclude2.sh: Likewise.
15287         * tests/test-exclude3.sh: Likewise.
15288         * tests/test-exclude4.sh: Likewise.
15289         * tests/test-exclude5.sh: Likewise.
15290         * tests/test-exclude6.sh: Likewise.
15291         * tests/test-exclude7.sh: Likewise.
15292
15293 2009-08-19  Akim Demaille  <demaille@gostai.com>
15294
15295         bootstrap: find sha1sum when named gsha1sum.
15296         * bootstrap (find_tool): New.
15297         ($SHA1SUM): New.
15298         Use it.
15299
15300 2009-08-20  Jim Meyering  <meyering@redhat.com>
15301
15302         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
15303         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
15304         expression that converts "." in a file name to "\." in the resulting
15305         regexp.  Start with a dummy statement, so that prior shell variable
15306         definitions are expanded portably.  Reported by Simon Josefsson.
15307
15308 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
15309
15310         Fix polling for writeability of a screen buffer.
15311         * lib/poll.c: Distinguish input and screen buffers for the
15312         Win32 implementation.
15313         * lib/select.c: Likewise.
15314
15315 2009-08-19  Eric Blake  <ebb9@byu.net>
15316
15317         popen-safer: prevent popen from clobbering std descriptors
15318         * modules/popen-safer: New file.
15319         * lib/popen-safer.c: Likewise.
15320         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
15321         * lib/stdio--.h (popen): Provide override.
15322         * lib/stdio-safer.h (popen_safer): Provide declaration.
15323         * tests/test-popen.c (includes): Partially test this.
15324         * modules/popen-safer-tests: New file, for more tests.
15325         * tests/test-popen-safer.c: Likewise.
15326         * MODULES.html.sh (file stream based Input/Output): Mention it.
15327
15328         tests: test some of the *-safer modules
15329         * modules/fopen-safer (Depends-on): Add fopen.
15330         * modules/fcntl-safer (Depends-on): Add fcntl.
15331         * modules/stdlib-safer (Depends-on): Add stdlib.
15332         (configure.ac): Set indicator.
15333         * modules/unistd-safer (configure.ac): Likewise.
15334         * modules/tmpfile-safer (configure.ac): Likewise.
15335         (Depends-on): Add tmpfile.
15336         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
15337         active.
15338         * tests/test-fopen.c (includes): Test safer versions when they are
15339         in use.
15340         * tests/test-open.c (includes): Likewise.
15341
15342         popen: fix cygwin 1.5 bug when stdin closed
15343         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
15344         * modules/popen: New file.
15345         * modules/popen-tests: Likewise.
15346         * tests/test-popen.c: Likewise.
15347         * m4/popen.m4: Likewise.
15348         * lib/popen.c: Likewise.
15349         * lib/stdio.in.h (popen): New declaration.
15350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
15351         * modules/stdio (Makefile.am): Likewise.
15352         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
15353
15354 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
15355
15356         maint.mk: give full control over update-copyright exclusions
15357         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
15358         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
15359         (update-copyright): Don't force inclusion of top-level
15360         ChangeLog.  Don't force exclusion of all COPYING files, but make
15361         them the default exclusion instead.
15362
15363 2009-08-16  Bruno Haible  <bruno@clisp.org>
15364
15365         Fix test failures on Solaris 10.
15366         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
15367         tests when Solaris iconv() is used.
15368         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15369         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15370         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15371         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15372         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15373
15374 2009-08-16  Bruno Haible  <bruno@clisp.org>
15375
15376         Fix test failures on Solaris 10.
15377         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
15378         'tr' program and pass it as first argument.
15379         * tests/test-pipe-filter-gi1.sh: Likewise.
15380         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
15381         program as first argument.
15382         * tests/test-pipe-filter-gi1.c (main): Likewise.
15383
15384 2009-08-16  Eric Blake  <ebb9@byu.net>
15385
15386         fpurge: fix previous commits
15387         * modules/fpurge (Makefile.am): Make replacement conditional,
15388         partially reverting 2007-04-29 change; missed in previous
15389         attempt.
15390         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
15391         is missing.
15392
15393 2009-08-16  Bruno Haible  <bruno@clisp.org>
15394
15395         Clarify fpurge's effect on the file position.
15396         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
15397         * tests/test-fpurge.c (main): Make a second pass for checking the file
15398         position.
15399
15400 2009-08-16  Bruno Haible  <bruno@clisp.org>
15401
15402         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
15403         declaration of fpurge is missing.
15404         * tests/test-fpurge.c (main): Check that the file has not more contents
15405         than expected. Close the file before removing it.
15406
15407 2009-08-15  Eric Blake  <ebb9@byu.net>
15408
15409         fpurge: don't wrap working cygwin implementation
15410         * lib/fpurge.c (fpurge): Fix comment typo.
15411         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
15412         1.7 to avoid replacement.
15413         * tests/test-fpurge.c (main): Enhance test.
15414
15415 2009-08-15  Eric Blake  <ebb9@byu.net>
15416         and Jim Meyering  <meyering@redhat.com>
15417
15418         test-update-copyright: skip if perl is insufficient
15419         * tests/test-update-copyright.sh: Failure to run maintainer tool
15420         should not cause testsuite failure on cygwin 1.5.
15421
15422 2009-08-14  Eric Blake  <ebb9@byu.net>
15423
15424         doc: mention more functions added in cygwin 1.7.0
15425         * doc/posix-headers/limits.texi (limits.h): Update for recent
15426         cygwin additions.
15427         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
15428         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15429         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
15430         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
15431         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
15432
15433 2009-08-14  Eric Blake  <ebb9@byu.net>
15434
15435         maint.mk: simplify update-copyright rule
15436         * top/maint.mk (update-copyright-local): Delete, and document how
15437         to do it in cfg.mk instead.
15438         (update-copyright-exclude-regexp): Delete, and document how to do
15439         it in .x-update-copyright instead.
15440         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
15441         exclude ChangeLog.
15442
15443 2009-08-14  Bruno Haible  <bruno@clisp.org>
15444
15445         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
15446
15447 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15448
15449         maint.mk: support update-copyright-env
15450         * top/maint.mk (update-copyright-env): Define place-holder.
15451         (update-copyright): Expand $(update-copyright-env) before
15452         invoking update-copyright.
15453
15454 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15455
15456         update-copyright: implement forced reformatting
15457         * build-aux/update-copyright: Implement and document
15458         UPDATE_COPYRIGHT_FORCE.
15459         * tests/test-update-copyright.sh: Test it.
15460
15461 2009-08-14  Eric Blake  <ebb9@byu.net>
15462         and Bruno Haible  <bruno@clisp.org>
15463
15464         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
15465         * tests/test-locale.c: Revert previous patch related to NULL.
15466         * tests/test-stdio.c: Likewise.
15467         * tests/test-stdlib.c: Likewise.
15468         * tests/test-string.c: Likewise.
15469         * tests/test-unistd.c: Likewise.
15470         * modules/time-tests (Depends-on): Add verify.
15471         * modules/wchar-tests (Depends-on): Likewise.
15472         * tests/test-time.c: Test for NULL compliance.
15473         * tests/test-wchar.c: Likewise.
15474         * modules/locale (Depends-on): Add stddef.
15475         * modules/stdio (Depends-on): Likewise.
15476         * modules/stdlib (Depends-on): Likewise.
15477         * modules/string (Depends-on): Likewise.
15478         * modules/time (Depends-on): Likewise.
15479         * modules/unistd (Depends-on): Likewise.
15480         * modules/wchar (Depends-on): Likewise.
15481         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
15482         * lib/stdlib.in.h (includes): Likewise.
15483         * lib/string.in.h (includes): Likewise.
15484         * lib/time.in.h (includes): Likewise.
15485         * lib/unistd.in.h (includes): Likewise.
15486         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
15487         replaced.
15488         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15489         * m4/stddef_h.m4: New file.
15490         * modules/stddef: Likewise.
15491         * lib/stddef.in.h: Likewise.
15492         * modules/stddef-tests: Likewise.
15493         * tests/test-stddef.c: Likewise.
15494         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
15495         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
15496         * doc/posix-headers/locale.texi (locale.h): Likewise.
15497         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
15498         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15499         * doc/posix-headers/string.texi (string.h): Likewise.
15500         * doc/posix-headers/time.texi (time.h): Likewise.
15501         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
15502         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
15503
15504 2009-08-14  Eric Blake  <ebb9@byu.net>
15505
15506         doc: improve git diff of texinfo files
15507         * .gitattributes: Add rule for *.texi files, with hint on how to
15508         use it.
15509         Copied from m4, and based on a report by Bruno Haible.
15510
15511 2009-08-14  Bruno Haible  <bruno@clisp.org>
15512
15513         Disable multithread support by default on Cygwin 1.5.x for real.
15514         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
15515
15516 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15517
15518         update-copyright: much ado about intervals
15519         * build-aux/update-copyright: Implement and document
15520         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
15521         of copyright year intervals.
15522         Also, document UPDATE_COPYRIGHT_YEAR.
15523         * tests/test-update-copyright.sh: Test it.
15524
15525         update-copyright: convert 2-digit to 4-digit years
15526         * build-aux/update-copyright: Implement and document.
15527         * tests/test-update-copyright.sh: Update.
15528
15529 2009-08-14  Jim Meyering  <meyering@redhat.com>
15530
15531         test-exclude: avoid coreutils "make check" failure
15532         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15533         just as in test-argmatch.c.
15534
15535 2009-08-13  Eric Blake  <ebb9@byu.net>
15536
15537         test-dup2: fix bad assumption
15538         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15539         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15540
15541         test-version-etc: fix CRLF portability issue
15542         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15543         recognize \r.
15544         * tests/test-argp-version-etc-1.sh: Likewise.
15545
15546         getopt: update client modules
15547         * modules/argp (Depends-on): Use getopt-gnu.
15548         * modules/git-merge-changelog (Depends-on): Likewise.
15549         * modules/long-options (Depends-on): Likewise.
15550         * modules/xstrtol (Depends-on): Likewise.
15551
15552 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15553
15554         * tests/test-version-etc.sh: Don't fail on different
15555         project/version.  Don't fail on CRLF differences.  Rewrite to use
15556         multiple -e instead of multiple sed forks, suggested by Eric Blake
15557         <ebb9@byu.net>.
15558         * tests/test-argp-version-etc-1.sh: Likewise.
15559
15560 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15561
15562         * tests/test-version-etc.sh: Don't fail on different
15563         project/version.
15564
15565 2009-08-12  Bruno Haible  <bruno@clisp.org>
15566
15567         Tests for modules 'getopt-posix', 'getopt-gnu'.
15568         * modules/getopt-posix-tests: New file.
15569         * tests/test-getopt.c: New file.
15570         * tests/test-getopt.h: New file.
15571         * tests/test-getopt_long.h: New file.
15572
15573         New modules 'getopt-posix', 'getopt-gnu'.
15574         * modules/getopt-gnu: New file, renamed from modules/getopt.
15575         * modules/getopt-posix: New file.
15576         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15577         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15578         (gl_GETOPT): Remove macro.
15579         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15580         Disable the test against BSD systems that declare optreset. Test
15581         against mingw bug. Test against lack of support of optional arguments
15582         on many platforms.
15583         * doc/glibc-headers/getopt.texi: Update module name and list of
15584         relevant platforms.
15585         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15586         'getopt-gnu' and more portability problems.
15587         * NEWS: Mention the changes.
15588
15589 2009-08-12  Bruno Haible  <bruno@clisp.org>
15590
15591         Ensure that optarg etc. get declared by <unistd.h>.
15592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15593         AC_USE_SYSTEM_EXTENSIONS.
15594         * modules/getopt (Depends-on): Add 'extensions'.
15595
15596 2009-08-12  Bruno Haible  <bruno@clisp.org>
15597
15598         Avoid test link errors.
15599         * modules/pipe-filter-ii-tests (Makefile.am): Define
15600         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15601         * modules/pipe-filter-gi-tests (Makefile.am): Define
15602         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15604
15605 2009-08-12  Bruno Haible  <bruno@clisp.org>
15606
15607         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15608         gl_GETOPT_SUBSTITUTE before.
15609         (gl_GETOPT): Use it.
15610         * m4/argp.m4 (gl_ARGP): Update.
15611         Reported by Sergey Poznyakoff.
15612
15613         * m4/getopt.m4: Reorder macros.
15614         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15615         (gl_GETOPT_SUBSTITUTE): Remove macro.
15616
15617 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15618
15619         Minor improvement in gitlog-to-changelog
15620
15621         * build-aux/gitlog-to-changelog: New option `--format' makes
15622         output format string configurable.
15623
15624 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15625
15626         Optimize exclude: use hash tables for non-wildcard patterns.
15627
15628         * lib/exclude.c: Include hash.h and mbuiter.h
15629         (struct exclude_pattern, exclude_segment): New data types.
15630         (struct exclude): Rewrite.
15631         (fnmatch_pattern_has_wildcards): New function.
15632         (new_exclude_segment, free_exclude_segment): New functions.
15633         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15634         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15635         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15636         * modules/exclude: Depend on hash and mbuiter.
15637
15638         * modules/exclude-tests: New file.
15639         * tests/test-exclude.c: New file.
15640         * tests/test-exclude1.sh: New file.
15641         * tests/test-exclude2.sh: New file.
15642         * tests/test-exclude3.sh: New file.
15643         * tests/test-exclude4.sh: New file.
15644         * tests/test-exclude5.sh: New file.
15645         * tests/test-exclude6.sh: New file.
15646         * tests/test-exclude7.sh: New file.
15647
15648 2009-08-12  Bruno Haible  <bruno@clisp.org>
15649
15650         Ensure that getopt() gets declared by <unistd.h>.
15651         * lib/unistd.in.h: Conditionally include getopt.h.
15652         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15653         Set GNULIB_UNISTD_H_GETOPT.
15654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15655         GNULIB_UNISTD_H_GETOPT.
15656         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15657
15658 2009-08-12  Bruno Haible  <bruno@clisp.org>
15659
15660         Clarify logic.
15661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15662         gl_replace_getopt instead of GETOPT_H.
15663
15664 2009-08-12  Bruno Haible  <bruno@clisp.org>
15665
15666         * m4/getopt.m4: Add comments.
15667
15668 2009-08-12  Bruno Haible  <bruno@clisp.org>
15669
15670         Disable multithread support by default on Cygwin 1.5.x.
15671         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15672         set gl_use_threads=no if not specified otherwise.
15673
15674 2009-08-11  Bruno Haible  <bruno@clisp.org>
15675
15676         Avoid compilation error on NetBSD 5.0.
15677         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15678         * tests/test-stdio.c: Likewise.
15679         * tests/test-stdlib.c: Likewise.
15680         * tests/test-string.c: Likewise.
15681         * tests/test-unistd.c: Likewise.
15682         Reported by Greg Troxel <gdt@ir.bbn.com>
15683         at <https://savannah.gnu.org/support/?106973>.
15684
15685 2009-08-11  Bruno Haible  <bruno@clisp.org>
15686
15687         * modules/dup2-tests (Depends-on): Remove close.
15688
15689         Undo 2009-07-19 commit.
15690         * modules/acl-tests (Depends-on): Remove close.
15691         * modules/binary-io-tests (Depends-on): Likewise.
15692         * modules/closein-tests (Depends-on): Likewise.
15693         * modules/flock-tests (Depends-on): Likewise.
15694         * modules/fsync-tests (Depends-on): Likewise.
15695         * modules/lseek-tests (Depends-on): Likewise.
15696         * modules/pipe-tests (Depends-on): Likewise.
15697         * modules/posix_spawn-tests (Depends-on): Likewise.
15698         * modules/posix_spawnp-tests (Depends-on): Likewise.
15699         * modules/stat-time-tests (Depends-on): Likewise.
15700         * modules/yesno-tests (Depends-on): Likewise.
15701
15702 2009-08-10  Bruno Haible  <bruno@clisp.org>
15703
15704         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15705
15706 2009-08-10  Bruno Haible  <bruno@clisp.org>
15707
15708         Fix a gcc warning.
15709         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15710
15711 2009-08-10  Bruno Haible  <bruno@clisp.org>
15712
15713         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15714         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15715         not only the first time.
15716         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15717         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15718         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15719         is 1, not only the the first time.
15720
15721 2009-08-10  Bruno Haible  <bruno@clisp.org>
15722
15723         Make it possible to use module 'gethostname' without module 'close'.
15724         * lib/unistd.in.h (close): Evoke a link error only if
15725         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15727         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15728         * modules/unistd (Makefile.am): Substitute
15729         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15730         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
15731         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15732         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15733         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15734         * modules/sys_ioctl (Makefile.am): Substitute
15735         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15736         * modules/socket (configure.ac): On native Windows, set
15737         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
15738         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15739         Reported by Sam Steingold <sds@gnu.org>.
15740
15741 2009-08-10  Bruno Haible  <bruno@clisp.org>
15742
15743         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
15744         * modules/ioctl (configure.ac): Likewise.
15745
15746 2009-08-10  Bruno Haible  <bruno@clisp.org>
15747
15748         Avoid collision between gnulib wrapper and libintl wrapper.
15749         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
15750         already defined in intl/printf.c.
15751         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
15752         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
15753
15754 2009-08-09  Bruno Haible  <bruno@clisp.org>
15755
15756         Make <sys/select.h> really self-contained, also on Solaris 10.
15757         * lib/sys_select.in.h: Include <string.h>.
15758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
15759         Solaris 10 problem.
15760         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
15761         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
15762         Reported by Jim Meyering.
15763
15764 2009-08-09  Bruno Haible  <bruno@clisp.org>
15765
15766         Avoid warnings from 'aclocal' that are due to a use of macro name
15767         AM_XGETTEXT_OPTION that is not defined in automake.
15768         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
15769         automake.
15770         * modules/error (configure.ac): Likewise.
15771         * modules/propername (configure.ac): Likewise.
15772         * modules/vasprintf (configure.ac): Likewise.
15773         * modules/verror (configure.ac): Likewise.
15774         * modules/xprintf (configure.ac): Likewise.
15775         * modules/xvasprintf (configure.ac): Likewise.
15776
15777 2009-08-08  Bruno Haible  <bruno@clisp.org>
15778
15779         Avoid compilation error in C++ mode.
15780         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
15781         Reported by Sam Steingold <sds@gnu.org>.
15782
15783 2009-08-08  Bruno Haible  <bruno@clisp.org>
15784
15785         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
15786         for the various Unix platforms.
15787         * doc/posix-headers/limits.texi: Update platforms list regarding
15788         HOST_NAME_MAX.
15789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15790
15791 2009-08-07  Jim Meyering  <meyering@redhat.com>
15792
15793         selinux-at: fix typo in a comment
15794         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
15795         Spotted by Paolo Bonzini.
15796
15797         selinux-at: remove redundant m4 code, add documentation
15798         * modules/selinux-at (configure.ac): Remove redundant code.
15799         LIB_SELINUX is already set via the dependent module, selinux-h.
15800         (Include): Add quotes around selinux-at.h.
15801         * lib/selinux-at.h: Add documentation.
15802         Reported by Bruno Haible in
15803         http://marc.info/?l=gnulib-bug&m=124958988300749
15804
15805 2009-08-07  Bruno Haible  <bruno@clisp.org>
15806
15807         Avoid link error on MacOS X 10.3 and 10.4.
15808         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
15809         on non-ELF systems.
15810         * lib/argp-pv.c (argp_program_version): Likewise.
15811         Reported by Simon Josefsson.
15812
15813 2009-08-07  Simon Josefsson  <simon@josefsson.org>
15814
15815         * tests/test-version-etc.sh: Use $EXEEXT.
15816
15817 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
15818
15819         update-copyright: update documentation to point to maint.mk
15820         * build-aux/update-copyright: Here.
15821
15822 2009-08-06  Jim Meyering  <meyering@redhat.com>
15823
15824         maint.mk: support update-copyright-local
15825         * top/maint.mk (update-copyright-local): Define place-holder.
15826         (update-copyright): Depend on $(update-copyright-local).
15827
15828 2009-08-06  Jim Meyering  <meyering@redhat.com>
15829
15830         selinux-at: new module
15831         Initially written for coreutils, this module will soon be
15832         used by findutils, too.
15833         * MODULES.html.sh [Misc]: Add selinux-at.
15834         * lib/selinux-at.h: New file, from coreutils.
15835         * lib/selinux-at.c: Likewise.
15836         * modules/selinux-at: Likewise.
15837         (License): Change from LGPL to GPL, since it depends
15838         on the GPL'd openat module.
15839
15840         doc: update README
15841         * README: Remove references to cogito.
15842         Remove cvs-repo-updating instructions from 2007.
15843         Don't imply that CVS is better if you have limited disk space.
15844
15845 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15846
15847         update-copyright: support C-style comments
15848         * build-aux/update-copyright: Implement and document.
15849         * tests/test-update-copyright.sh: Test.
15850
15851 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15852
15853         update-copyright: support omitted "(C)"
15854         * build-aux/update-copyright: Implement and document.  Also,
15855         allow variable whitespace before "(C)".
15856         * tests/test-update-copyright.sh: Test.
15857
15858 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15859
15860         update-copyright: don't trip on non-FSF copyright statements
15861         * build-aux/update-copyright: Fix so that the first correctly
15862         formatted FSF copyright statement is recognized no matter what
15863         appears before it.  Update documentation.
15864         * tests/test-update-copyright.sh: Test that.
15865
15866 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15867
15868         update-copyright: clean up code a little
15869         * build-aux/update-copyright: Append "_re" to the name of any
15870         variable holding a regular expression.
15871         Replace "old" and "new" with "stmt" in variable names.
15872         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
15873         handled correctly.
15874         Format code more consistently.
15875
15876 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15877
15878         update-copyright-tests: improve portability
15879         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
15880         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
15881
15882 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15883
15884         update-copyright: support @copyright{} and &copy;
15885         * build-aux/update-copyright: Implement and document.
15886         * tests/test-update-copyright.sh: Test.
15887
15888 2009-08-04  Jim Meyering  <meyering@redhat.com>
15889
15890         update-copyright-tests: correctly test EOL=\r\n handling
15891         * tests/test-update-copyright.sh: Put \r at the end of some lines
15892         for the dos-eol tests.  Based on a patch by Joel E. Denny.
15893
15894         maint.mk: make update-copyright exclusion list more configurable
15895         * top/maint.mk (update-copyright): Default to excluding COPYING,
15896         but allow an override, in case someone does want to update that file.
15897
15898         maint.mk: don't update copyright date in COPYING
15899         * top/maint.mk (update-copyright): Exclude COPYING.
15900
15901         maint.mk: add a copyright-updating rule
15902         * top/maint.mk (update-copyright): New rule.
15903         Derived from coreutils/Makefile.am.
15904
15905         update-copyright: rename some variables
15906         * build-aux/update-copyright: Rename a few variables for clarity.
15907         Tweak syntax.  List Joel E. Denny as coauthor.
15908
15909 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15910
15911         update-copyright: fix bug for 2-digit last year and add tests
15912         * build-aux/update-copyright: Fix bug.
15913         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
15914         specified.
15915         * modules/update-copyright-tests: New
15916         * tests/test-update-copyright.sh: New.
15917
15918 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15919
15920         update-copyright: handle leading tabs in line prefix
15921         * build-aux/update-copyright: Count leading tabs as 8 spaces
15922         when computing margin.  This helps with the formatting of
15923         ChangeLogs, for example.
15924         Fix documentation a little.
15925
15926 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15927
15928         update-copyright: support EOL=\r\n
15929         * build-aux/update-copyright: Implement that.
15930
15931 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15932
15933         update-copyright: automatically format copyright statements
15934         * build-aux/update-copyright: Implement that.
15935         Also, be a little more predictable and safer by always failing
15936         when the full copyright format is not perfectly recognized as an
15937         unbroken whole.  Discussed at
15938         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
15939         Rewrite documentation.
15940
15941 2009-08-03  Bruno Haible  <bruno@clisp.org>
15942
15943         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
15944
15945 2009-08-02  Bruno Haible  <bruno@clisp.org>
15946
15947         Tests for module 'uname'.
15948         * modules/uname-tests: New file.
15949         * tests/test-uname.c: New file.
15950
15951         New module 'uname'.
15952         * lib/uname.c: New file.
15953         * m4/uname.m4: New file.
15954         * modules/uname: New file.
15955         * doc/posix-functions/uname.texi: Mention the new module.
15956
15957 2009-08-02  Bruno Haible  <bruno@clisp.org>
15958
15959         Tests for module 'sys_utsname'.
15960         * modules/sys_utsname-tests: New file.
15961         * tests/test-sys_utsname.c: New file.
15962
15963         New module 'sys_utsname'.
15964         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
15965         * m4/sys_utsname_h.m4: New file.
15966         * modules/sys_utsname: New file.
15967         * doc/posix-headers/sys_utsname.texi: Mention the new module.
15968
15969 2009-08-02  Bruno Haible  <bruno@clisp.org>
15970
15971         Implicitly initialize the sockets library.
15972         * lib/gethostname.c: Include sockets.h.
15973         (rpl_gethostname): Invoke gl_sockets_startup.
15974         * lib/socket.c: Include sockets.h.
15975         (rpl_socket): Invoke gl_sockets_startup.
15976         * modules/gethostname (Depends-on): Add sockets.
15977         * modules/socket (Depends-on): Likewise.
15978         * tests/test-poll.c: Don't include sockets.h.
15979         (main): Don't invoke gl_sockets_startup.
15980         * tests/test-select.c: Don't include sockets.h.
15981         (main): Don't invoke gl_sockets_startup.
15982
15983 2009-08-02  Bruno Haible  <bruno@clisp.org>
15984
15985         Allow multiple calls to gl_sockets_startup.
15986         * lib/sockets.c (initialized_sockets_version): New variable.
15987         (gl_sockets_startup): Do nothing if already called for this or a higher
15988         version.
15989         (gl_sockets_cleanup): Reset initialized_sockets_version.
15990
15991 2009-08-03  Simon Josefsson  <simon@josefsson.org>
15992
15993         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
15994         different project/version.
15995
15996 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
15997             Bruno Haible  <bruno@clisp.org>
15998
15999         Tests for module 'pipe-filter-gi'.
16000         * modules/pipe-filter-gi-tests: New file.
16001         * tests/test-pipe-filter-gi1.sh: New file.
16002         * tests/test-pipe-filter-gi1.c: New file.
16003         * tests/test-pipe-filter-gi2.sh: New file.
16004         * tests/test-pipe-filter-gi2-main.c: New file.
16005         * tests/test-pipe-filter-gi2-child.c: New file.
16006
16007         New module 'pipe-filter-gi'.
16008         * lib/pipe-filter-gi.c: New file.
16009         * modules/pipe-filter-gi: New file.
16010
16011 2009-08-02  Bruno Haible  <bruno@clisp.org>
16012             Paolo Bonzini  <bonzini@gnu.org>
16013
16014         Tests for module 'pipe-filter-ii'.
16015         * modules/pipe-filter-ii-tests: New file.
16016         * tests/test-pipe-filter-ii1.sh: New file.
16017         * tests/test-pipe-filter-ii1.c: New file.
16018         * tests/test-pipe-filter-ii2.sh: New file.
16019         * tests/test-pipe-filter-ii2-main.c: New file.
16020         * tests/test-pipe-filter-ii2-child.c: New file.
16021
16022         New module 'pipe-filter-ii'.
16023         * lib/pipe-filter.h: New file.
16024         * lib/pipe-filter-ii.c: New file.
16025         * lib/pipe-filter-aux.h: New file.
16026         * modules/pipe-filter-ii: New file.
16027
16028 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16029
16030         * lib/gc-libgcrypt.c: Change copyright to FSF.
16031         * lib/gc-gnulib.c: Likewise.
16032
16033 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
16034
16035         * lib/gethostname.c: Include limits.h.
16036
16037 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16038             Bruno Haible  <bruno@clisp.org>
16039
16040         Ensure HOST_NAME_MAX as part of the gethostname module.
16041         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
16042         define also HOST_NAME_MAX.
16043         * tests/test-gethostname.c: Include <limits.h>.
16044         (main): Check also HOST_NAME_MAX.
16045         * doc/posix-headers/limits.texi: Document the mingw problem.
16046
16047 2009-08-02  Bruno Haible  <bruno@clisp.org>
16048
16049         * lib/gethostname.c (gethostname): Fix handling of large len argument.
16050         Add comments.
16051
16052 2009-03-31  Simon Josefsson  <simon@josefsson.org>
16053
16054         * lib/gethostname.c: Add Windows wrapper.
16055         * m4/gethostname.m4: Look for gethostname in -lws2_32.
16056         * modules/gethostname: Depend on sys_socket & errno, for also
16057         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
16058         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
16059
16060 2009-07-31  Jim Meyering  <meyering@redhat.com>
16061
16062         getloadavg: fix symbol name in comment
16063         * lib/getloadavg.c: Correct a typo I introduced when adding
16064         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
16065         Matt Kraai spotted the problem.
16066
16067 2009-07-29  Matt Kraai  <mkraai@beckman.com>
16068
16069         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
16070         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
16071         code also if ! defined N_NAME_POINTER.
16072         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
16073         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
16074         but the n_name member is a 12-byte array.
16075
16076 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
16077
16078         update-copyright: generalize comment handling
16079         * build-aux/update-copyright: Handle copyright statements
16080         within more comment styles.
16081         Document usage.
16082         Report any file with an external copyright holder or parse failure.
16083
16084 2009-07-29  Jim Meyering  <meyering@redhat.com>
16085
16086         mktime: correct setting of REPLACE_MKTIME
16087         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
16088
16089         update-copyright: new module
16090         * modules/update-copyright: New file.
16091         * build-aux/update-copyright: New file.
16092         * MODULES.html.sh (maint+release support): Add update-copyright.
16093
16094 2009-07-27  Bruno Haible  <bruno@clisp.org>
16095
16096         Fix compilation error when <ctime> is used and mktime is replaced.
16097         * lib/time.in.h (mktime): New declaration.
16098         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
16099         REPLACE_MKTIME instead of defining mktime in config.h.
16100         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
16101         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
16102         Reported by Ross McFarland <rwmcfa1@neces.com>.
16103
16104 2009-07-27  Bruno Haible  <bruno@clisp.org>
16105
16106         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
16107         Reported by Matt Kraai <mkraai@beckman.com>.
16108
16109 2009-07-25  Jim Meyering  <meyering@redhat.com>
16110
16111         maint.mk: avoid warnings about missing files
16112         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
16113         diagnostic when .prev-version does not exist.
16114         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
16115         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
16116         nonexistent cfg.mk.
16117         Suggestions from Simon Josefsson.
16118
16119 2009-07-25  Bruno Haible  <bruno@clisp.org>
16120
16121         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
16122         defined as macros. Needed on QNX 6.4.1.
16123         Reported by Matt Kraai <mkraai@beckman.com>.
16124
16125 2009-07-23  Jim Meyering  <meyering@redhat.com>
16126
16127         maint.mk: invoke "make dist" with a working value of XZ_OPT
16128         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
16129
16130 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
16131
16132         Make fseeko.c compile on QNX.
16133         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
16134
16135 2009-07-22  Peter Simons  <simons@cryp.to>
16136
16137         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
16138         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
16139         * lib/md4.h: Likewise.
16140         * lib/md5.h: Likewise.
16141         * lib/sha1.h: Likewise.
16142         * lib/sha256.h: Likewise.
16143         * lib/sha512.h: Likewise.
16144
16145         tests-sha1: don't assign literal string to 'char *' variable
16146         * tests/test-sha1.c (main): Declare locals with "const" to match
16147         attributes of the right hand side.
16148
16149 2009-07-21  Eric Blake  <ebb9@byu.net>
16150
16151         dup2: fix more mingw problems
16152         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
16153         fd to itself.
16154         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16155         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
16156         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
16157         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
16158         care of mingw bugs.
16159
16160 2009-07-21  Jim Meyering  <meyering@redhat.com>
16161
16162         vc-list-files: avoid failure when /bin/sh is dash
16163         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
16164         On some Debian based systems, /bin/sh is a symlink to dash, and running
16165         this command would omit the "/" following each 'tests' prefix:
16166           dash -x build-aux/vc-list-files -C . tests
16167         That is because bash and dash work differently:
16168           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
16169           bash ok
16170           dash odd
16171
16172 2009-07-21  Eric Blake  <ebb9@byu.net>
16173
16174         dup2-tests: test previous patch
16175         * modules/dup2-tests: New file.
16176         * tests/test-dup2.c: Likewise.
16177         * tests/test-open.c (main): Avoid unspecified behavior.
16178         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
16179         test.
16180
16181         dup2: work around mingw and cygwin 1.5 bug
16182         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
16183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16184         * modules/unistd (Makefile.am): Substitute it.
16185         * lib/unistd.in.h (dup2): Declare the replacement.
16186         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
16187         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
16188         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
16189         * modules/execute (Depends-on): Add dup2.
16190         * modules/fseterr (Depends-on): Likewise.
16191         * modules/pipe (Depends-on): Likewise.
16192         * modules/posix_spawn-internal (Depends-on): Likewise.
16193
16194 2009-07-21  Bruno Haible  <bruno@clisp.org>
16195
16196         * modules/.gitattributes: New file.
16197
16198 2009-07-20  Bruno Haible  <bruno@clisp.org>
16199
16200         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
16201         (main): Use it.
16202
16203 2009-07-20  Eric Blake  <ebb9@byu.net>
16204
16205         test-pipe: make a bit more robust.
16206         * tests/test-pipe.c (myerr): Allow error messages regardless of
16207         what we do to stderr.
16208         (test_pipe): Rearrange to avoid deadlock.
16209         (child_main): Try a larger read, to ensure we avoided deadlock.
16210         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
16211         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
16212         if misused.
16213
16214 2009-07-19  Jim Meyering  <meyering@redhat.com>
16215
16216         fts: avoid false-positive cycle-detection
16217         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
16218         for each new command line argument.
16219
16220 2009-07-19  Bruno Haible  <bruno@clisp.org>
16221
16222         Fix build error on mingw with the modules sys_select and unistd.
16223         * modules/acl-tests (Depends-on): Add close.
16224         * modules/binary-io-tests (Depends-on): Likewise.
16225         * modules/closein-tests (Depends-on): Likewise.
16226         * modules/flock-tests (Depends-on): Likewise.
16227         * modules/fsync-tests (Depends-on): Likewise.
16228         * modules/lseek-tests (Depends-on): Likewise.
16229         * modules/pipe-tests (Depends-on): Likewise.
16230         * modules/posix_spawn-tests (Depends-on): Likewise.
16231         * modules/posix_spawnp-tests (Depends-on): Likewise.
16232         * modules/stat-time-tests (Depends-on): Likewise.
16233         * modules/yesno-tests (Depends-on): Likewise.
16234
16235 2009-07-19  Bruno Haible  <bruno@clisp.org>
16236
16237         Unify conditionals.
16238         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
16239         macros, not at the compiler macros.
16240         * lib/pipe.c: Likewise.
16241         * lib/execute.c: Likewise.
16242         * lib/spawni.c: Likewise.
16243
16244 2009-07-19  Bruno Haible  <bruno@clisp.org>
16245
16246         Fix handling of closed stdin/stdout/stderr on mingw.
16247         * lib/w32spawn.h: Include unistd.h.
16248         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
16249         file descriptor with O_NOINHERIT flag.
16250         (fd_safer_noinherit): New function, based on fd-safer.c.
16251         (dup_safer_noinherit): New function, based on dup-safer.c.
16252         (undup_safer_noinherit): New function.
16253         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
16254         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
16255         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
16256         instead of fd_safer.
16257         * tests/test-pipe.c: Include <windows.h>.
16258         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
16259
16260         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
16261         from main.
16262         (test_pipe): Pass an extra argument for disambiguation.
16263         (main): Invoke parent_main or child_main.
16264
16265         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
16266         consistently.
16267
16268 2009-07-18  Eric Blake  <ebb9@byu.net>
16269
16270         test-pipe: fix mingw build
16271         * tests/test-pipe.c (main): Avoid fcntl on mingw.
16272
16273 2009-07-18  Bruno Haible  <bruno@clisp.org>
16274
16275         * modules/pipe-tests (Makefile.am): Fix typo.
16276
16277 2009-07-18  Eric Blake  <ebb9@byu.net>
16278
16279         error: fix mingw build
16280         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
16281         Reported by Bruno Haible.
16282
16283         error: avoid undefined use of stdout
16284         * lib/error.c (error, error_at_line): Check that fd 1 is open
16285         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
16286         is handling faults and the close_stdout module wants to report the
16287         detection of closed stdout as an error.
16288
16289 2009-07-17  Eric Blake  <ebb9@byu.net>
16290
16291         pipe: be robust in face of closed fds
16292         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
16293         should cause child to misbehave.
16294         * modules/pipe-tests: New module.
16295         * tests/test-pipe.c: New file.
16296         * tests/test-pipe.sh: New file.
16297         Reported by Akim Demaille.
16298
16299 2009-07-14  Bruno Haible  <bruno@clisp.org>
16300
16301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
16302         Reported by anonymous kc.
16303
16304 2009-07-07  Jim Meyering  <meyering@redhat.com>
16305
16306         maint.mk: don't look for translatable strings in *.m4 or *.mk
16307         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
16308         when searching for translatable strings.
16309
16310 2009-07-05  Jim Meyering  <meyering@redhat.com>
16311
16312         remove superfluous parentheses in STREQ definition
16313         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
16314         * lib/getugroups.c (STREQ): Likewise.
16315         * lib/fnmatch.c (STREQ): Likewise.
16316         Spotted by Bruno Haible.
16317
16318 2009-07-04  Jim Meyering  <meyering@redhat.com>
16319
16320         argv-iter: new module
16321         * MODULES.html.sh: Add argv-iter.
16322         * lib/argv-iter.c, lib/argv-iter.h: New files.
16323         * modules/argv-iter: New file.
16324         * modules/argv-iter-tests: New file.
16325         * tests/test-argv-iter.c: Test it.
16326
16327 2009-07-04  Bruno Haible  <bruno@clisp.org>
16328
16329         Fix assertion.
16330         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
16331         contains more exact copies of a given entry than file2, leave the extra
16332         copies unpaired rather than aborting.
16333         Reported by Eric Blake.
16334
16335 2009-07-02  Bruno Haible  <bruno@clisp.org>
16336
16337         Speedup git-merge-changelog for git cherry-pick.
16338         * lib/git-merge-changelog.c (struct entries_mapping): New type.
16339         (entries_mapping_get): New function, extracted from compute_mapping.
16340         (entries_mapping_reverse_get): New function.
16341         (compute_mapping): Add a 'full' argument. Return the result in a
16342         'struct entries_mapping'.
16343         (main): Update. Access the mappings through entries_mapping_get.
16344         Reported by Eric Blake.
16345
16346 2009-07-02  Bruno Haible  <bruno@clisp.org>
16347
16348         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
16349         best_i.
16350
16351 2009-07-02  Bruno Haible  <bruno@clisp.org>
16352
16353         Speed up approximate search for matching ChangeLog entries.
16354         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
16355         argument. Call fstrcmp_bounded instead of fstrcmp.
16356         (compute_mapping, try_split_merged_entry, main): Update callers.
16357
16358 2009-07-02  Bruno Haible  <bruno@clisp.org>
16359
16360         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
16361
16362 2009-06-30  Bruno Haible  <bruno@clisp.org>
16363
16364         Reduce the number of uc_is_cased calls.
16365         * lib/unicase.h (casing_suffix_context_t): Add
16366         'first_char_except_ignorable' field.
16367         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
16368         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
16369         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
16370         Update initializer.
16371         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
16372         case-ignorable characters.
16373         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
16374         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
16375         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
16376         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
16377         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
16378
16379 2009-06-30  Bruno Haible  <bruno@clisp.org>
16380
16381         Tests for module 'unicase/ignorable'.
16382         * modules/unicase/ignorable-tests: New file.
16383         * tests/unicase/test-ignorable.c: New file, generated by
16384         gen-uni-tables.
16385
16386         Tests for module 'unicase/cased'.
16387         * modules/unicase/cased-tests: New file.
16388         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
16389         * tests/unicase/test-predicate-part1.h: New file, derived from
16390         tests/unictype/test-predicate-part1.h.
16391         * tests/unicase/test-predicate-part2.h: New file, same as
16392         tests/unictype/test-predicate-part2.h.
16393
16394         Fix evaluation of "Before C" condition of FINAL_SIGMA.
16395         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
16396         (output_casing_properties): New function.
16397         (main): Call it.
16398         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
16399         * lib/unicase/cased.c: Include unictype/bitmap.h.
16400         (uc_is_cased): Define through a bitmap lookup.
16401         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
16402         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
16403         (uc_is_case_ignorable): Define through a bitmap lookup.
16404         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
16405         lib/unictype/bitmap.h.
16406         (Depends-on): Add inline. Clean up.
16407         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
16408         lib/unictype/bitmap.h.
16409         (Depends-on): Add inline. Clean up.
16410         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
16411         recognition.
16412         * tests/unicase/test-u16-tolower.c (main): Likewise.
16413         * tests/unicase/test-u32-tolower.c (main): Likewise.
16414
16415 2009-06-30  Bruno Haible  <bruno@clisp.org>
16416
16417         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
16418         * lib/unicase/u16-casemap.c: Likewise.
16419         * lib/unicase/u32-casemap.c: Likewise.
16420
16421 2009-06-29  Bruno Haible  <bruno@clisp.org>
16422
16423         Define u32_casefold as a wrapper around u32_ct_casefold.
16424         * lib/unicase/u32-casefold.c: Update.
16425         * modules/unicase/u32-casefold (Depends-on): Add
16426         unicase/u32-ct-casefold, unicase/empty-prefix-context,
16427         unicase/empty-suffix-context. Clean up.
16428
16429         Define u16_casefold as a wrapper around u16_ct_casefold.
16430         * lib/unicase/u16-casefold.c: Update.
16431         * modules/unicase/u16-casefold (Depends-on): Add
16432         unicase/u16-ct-casefold, unicase/empty-prefix-context,
16433         unicase/empty-suffix-context. Clean up.
16434
16435         Define u8_casefold as a wrapper around u8_ct_casefold.
16436         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
16437         * lib/unicase/u8-casefold.c: Update.
16438         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
16439         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16440
16441         Define u32_totitle as a wrapper around u32_ct_totitle.
16442         * lib/unicase/u32-totitle.c: Update.
16443         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
16444         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16445
16446         Define u16_totitle as a wrapper around u16_ct_totitle.
16447         * lib/unicase/u16-totitle.c: Update.
16448         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
16449         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16450
16451         Define u8_totitle as a wrapper around u8_ct_totitle.
16452         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
16453         functions.
16454         (FUNC): Delegate to U_CT_TOTITLE.
16455         * lib/unicase/u8-totitle.c: Update.
16456         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
16457         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16458
16459         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
16460         invocation.
16461         * modules/unicase/u32-tolower (Depends-on): Add
16462         unicase/empty-prefix-context, unicase/empty-suffix-context.
16463
16464         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
16465         invocation.
16466         * modules/unicase/u16-tolower (Depends-on): Add
16467         unicase/empty-prefix-context, unicase/empty-suffix-context.
16468
16469         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
16470         * modules/unicase/u8-tolower (Depends-on): Add
16471         unicase/empty-prefix-context, unicase/empty-suffix-context.
16472
16473         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
16474         invocation.
16475         * modules/unicase/u32-toupper (Depends-on): Add
16476         unicase/empty-prefix-context, unicase/empty-suffix-context.
16477
16478         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
16479         invocation.
16480         * modules/unicase/u16-toupper (Depends-on): Add
16481         unicase/empty-prefix-context, unicase/empty-suffix-context.
16482
16483         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
16484         * modules/unicase/u8-toupper (Depends-on): Add
16485         unicase/empty-prefix-context, unicase/empty-suffix-context.
16486
16487         New module 'unicase/u32-ct-casefold'.
16488         * lib/unicase/u32-ct-casefold.c: New file.
16489         * modules/unicase/u32-ct-casefold: New file.
16490
16491         New module 'unicase/u16-ct-casefold'.
16492         * lib/unicase/u16-ct-casefold.c: New file.
16493         * modules/unicase/u16-ct-casefold: New file.
16494
16495         New module 'unicase/u8-ct-casefold'.
16496         * lib/unicase/u8-ct-casefold.c: New file.
16497         * lib/unicase/u-ct-casefold.h: New file, derived from
16498         lib/unicase/u-casefold.h.
16499         * modules/unicase/u8-ct-casefold: New file.
16500
16501         New module 'unicase/u32-ct-totitle'.
16502         * lib/unicase/u32-ct-totitle.c: New file.
16503         * modules/unicase/u32-ct-totitle: New file.
16504
16505         New module 'unicase/u16-ct-totitle'.
16506         * lib/unicase/u16-ct-totitle.c: New file.
16507         * modules/unicase/u16-ct-totitle: New file.
16508
16509         New module 'unicase/u8-ct-totitle'.
16510         * lib/unicase/u8-ct-totitle.c: New file.
16511         * lib/unicase/u-ct-totitle.h: New file, derived from
16512         lib/unicase/u-totitle.h.
16513         * modules/unicase/u8-ct-totitle: New file.
16514
16515         New module 'unicase/u32-ct-tolower'.
16516         * lib/unicase/u32-ct-tolower.c: New file.
16517         * modules/unicase/u32-ct-tolower: New file.
16518
16519         New module 'unicase/u16-ct-tolower'.
16520         * lib/unicase/u16-ct-tolower.c: New file.
16521         * modules/unicase/u16-ct-tolower: New file.
16522
16523         New module 'unicase/u8-ct-tolower'.
16524         * lib/unicase/u8-ct-tolower.c: New file.
16525         * modules/unicase/u8-ct-tolower: New file.
16526
16527         New module 'unicase/u32-ct-toupper'.
16528         * lib/unicase/u32-ct-toupper.c: New file.
16529         * modules/unicase/u32-ct-toupper: New file.
16530
16531         New module 'unicase/u16-ct-toupper'.
16532         * lib/unicase/u16-ct-toupper.c: New file.
16533         * modules/unicase/u16-ct-toupper: New file.
16534
16535         New module 'unicase/u8-ct-toupper'.
16536         * lib/unicase/u8-ct-toupper.c: New file.
16537         * modules/unicase/u8-ct-toupper: New file.
16538
16539         Add context arguments to u*_casemap functions.
16540         * lib/unicase/unicasemap.h: Include unicase.h.
16541         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16542         suffix_context arguments.
16543         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16544         functions.
16545         (FUNC): Add prefix_context and suffix_context arguments. Use
16546         uc_is_cased and uc_is_case_ignorable.
16547         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16548         * lib/unicase/u16-casemap.c: Likewise.
16549         * lib/unicase/u32-casemap.c: Likewise.
16550         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16551         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16552         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16553         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16554         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16555         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16556
16557         New module 'unicase/u32-suffix-context'.
16558         * lib/unicase/u32-suffix-context.c: New file.
16559         * modules/unicase/u32-suffix-context: New file.
16560
16561         New module 'unicase/u16-suffix-context'.
16562         * lib/unicase/u16-suffix-context.c: New file.
16563         * modules/unicase/u16-suffix-context: New file.
16564
16565         New module 'unicase/u8-suffix-context'.
16566         * lib/unicase/u8-suffix-context.c: New file.
16567         * lib/unicase/u-suffix-context.h: New file.
16568         * modules/unicase/u8-suffix-context: New file.
16569
16570         New module 'unicase/empty-suffix-context'.
16571         * lib/unicase/empty-suffix-context.c: New file.
16572         * modules/unicase/empty-suffix-context: New file.
16573
16574         New module 'unicase/u32-prefix-context'.
16575         * lib/unicase/u32-prefix-context.c: New file.
16576         * modules/unicase/u32-prefix-context: New file.
16577
16578         New module 'unicase/u16-prefix-context'.
16579         * lib/unicase/u16-prefix-context.c: New file.
16580         * modules/unicase/u16-prefix-context: New file.
16581
16582         New module 'unicase/u8-prefix-context'.
16583         * lib/unicase/u8-prefix-context.c: New file.
16584         * lib/unicase/u-prefix-context.h: New file.
16585         * lib/unicase/context.h: New file.
16586         * modules/unicase/u8-prefix-context: New file.
16587
16588         New module 'unicase/empty-prefix-context'.
16589         * lib/unicase/empty-prefix-context.c: New file.
16590         * modules/unicase/empty-prefix-context: New file.
16591
16592         New module 'unicase/ignorable'.
16593         * lib/unicase/ignorable.c: New file.
16594         * modules/unicase/ignorable: New file.
16595
16596         New module 'unicase/cased'.
16597         * lib/unicase/caseprop.h: New file.
16598         * lib/unicase/cased.c: New file.
16599         * modules/unicase/cased: New file.
16600
16601         New functions for case mapping of substrings.
16602         * lib/unicase.h (casing_prefix_context_t): New type.
16603         (unicase_empty_prefix_context): New variable.
16604         (u8_casing_prefix_context, u16_casing_prefix_context,
16605         u32_casing_prefix_context, u8_casing_prefixes_context,
16606         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16607         declarations.
16608         (casing_suffix_context_t): New type.
16609         (unicase_empty_suffix_context): New variable.
16610         (u8_casing_suffix_context, u16_casing_suffix_context,
16611         u32_casing_suffix_context, u8_casing_suffixes_context,
16612         u16_casing_suffixes_context, u32_casing_suffixes_context,
16613         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16614         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16615         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16616         declarations.
16617
16618 2009-06-28  Jim Meyering  <meyering@redhat.com>
16619
16620         boostrap: indent only with spaces
16621         * build-aux/bootstrap: Indent only with spaces, never TABs.
16622
16623         bootstrap: split long lines
16624         * build-aux/bootstrap: Keep line length < 80.
16625
16626         bootstrap: sync from coreutils
16627         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16628         just as autoreconf does.  Verify a list of prerequisite
16629         package-name,version-number pairs if defined in bootstrap.conf.
16630         Refer to README-prereq, if prerequisites are not satisfied.
16631
16632 2009-06-27  Eric Blake  <ebb9@byu.net>
16633
16634         tests: add test for bogus NULL definition
16635         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16636         * tests/test-stdlib.c: Likewise.
16637         * tests/test-string.c: Likewise.
16638         * tests/test-locale.c: Likewise.
16639         * tests/test-unistd.c: Likewise.
16640         * modules/stdio-tests (Depends-on): Add verify.
16641         * modules/stdlib-tests (Depends-on): Likewise.
16642         * modules/string-tests (Depends-on): Likewise.
16643         * modules/locale-tests (Depends-on): Likewise.
16644         * modules/unistd-tests (Depends-on): Likewise.
16645
16646 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16647
16648         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16649         self-explaining comment.
16650         * m4/selinux-selinux-h: Update serial.
16651         (gl_LIBSELINUX): New macro, adding a warning for missing development
16652         packages to code extracted from...
16653         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16654         Add warning for missing development packages here, too.
16655
16656 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16657
16658         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16659
16660 2009-06-25  Eric Blake  <ebb9@byu.net>
16661
16662         version-etc: fix regression
16663         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16664         gcc.
16665         (version_etc): Use it, to catch bugs with trailing NULL.
16666         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16667         (version_etc_va): Fix logic bug.
16668         * modules/version-etc-tests: Add test.
16669         * tests/test-version-etc.c: New file.
16670         * tests/test-version-etc.sh: Likewise.
16671
16672 2009-06-25  Sam Steingold  <sds@gnu.org>
16673
16674         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16675         mbtowc declaration.
16676
16677 2009-06-25  Eric Blake  <ebb9@byu.net>
16678
16679         fpurge: migrate into <stdio.h>
16680         * lib/fpurge.h: Delete...
16681         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16682         * lib/fpurge.c (fpurge): Change declaring header.
16683         * modules/fpurge (Files): Drop deleted file.
16684         (Depends-on): Add stdio.
16685         (configure.ac): Set witness.
16686         * modules/stdio (Makefile.am): Support fpurge macros.
16687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16688         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16689         * lib/fflush.c: Update client.
16690         * tests/test-fpurge.c: Likewise.
16691         * NEWS: Mention the change.
16692
16693 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16694
16695         * lib/argp-version-etc.c (program_authors): Add const
16696         qualifier.
16697         * lib/version-etc.c: Fix typos in the comments.
16698         * modules/argp-version-etc: Depends on version-etc.
16699
16700 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16701
16702         argp-version-etc: new module.
16703
16704         * lib/argp-version-etc.c: New file.
16705         * lib/argp-version-etc.h: New file.
16706         * modules/argp-version-etc: New file.
16707         * modules/argp-version-etc-tests: New file.
16708         * tests/test-argp-version-etc.c: New test.
16709         * tests/test-argp-version-etc-1.sh: New test.
16710
16711 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16712
16713         Provide additional interfaces and documentation for version-etc
16714         module.
16715
16716         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16717         interfaces.
16718         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16719         prototypes.
16720
16721 2009-06-24  Bruno Haible  <bruno@clisp.org>
16722
16723         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
16724         HAVE_LIB${NAME} macro.
16725         Reported by Sam Steingold <sds@gnu.org>.
16726
16727 2009-06-23  Simon Josefsson  <simon@josefsson.org>
16728
16729         * modules/hash-tests (test_hash_LDADD): Link to libintl when
16730         needed.
16731
16732 2009-06-21  Bruno Haible  <bruno@clisp.org>
16733
16734         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
16735         work.
16736         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
16737         together with LIB${NAME}, LTLIB${NAME}.
16738         Reported by Sam Steingold <sds@gnu.org>.
16739
16740 2009-06-20  Jim Meyering  <meyering@redhat.com>
16741
16742         tests: make sc_require_test_exit_idiom more generic
16743         * top/maint.mk (Exit_witness_file): New overridable variable.
16744         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
16745         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
16746
16747 2009-06-19  Jim Meyering  <meyering@redhat.com>
16748
16749         hash: reverse order of src/dst parameters in an internal interface
16750         * lib/hash.c (transfer_entries): Reverse order of parameters to
16751         put DST before SRC.  Adjust callers.
16752
16753         tests: test-hash: avoid wholesale duplication
16754         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
16755         Instead, use a loop and add a single conditional.
16756
16757         tests: test-hash: allow seed selection via a command line argument
16758         * tests/test-hash.c (get_seed): New function.
16759         (main): Use it.
16760
16761 2009-06-19  Eric Blake  <ebb9@byu.net>
16762
16763         hash: avoid memory leak on allocation failure
16764         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
16765         failure.  Factor repeated algorithm...
16766         (transfer_entries): ...into new helper routine.
16767         (hash_delete): React to hash_rehash return value.
16768
16769         hash: reduce memory pressure in hash_rehash no-op case
16770         * lib/hash.c (next_prime): Avoid overflow.
16771         (hash_initialize): Factor bucket size computation...
16772         (compute_bucket_size): ...into new helper function.
16773         (hash_rehash): Use new function and open coding to reduce memory
16774         pressure, and avoid a memory leak in USE_OBSTACK code.
16775         Reported by Jim Meyering.
16776
16777 2009-06-18  Eric Blake  <ebb9@byu.net>
16778
16779         hash: make rotation more obvious
16780         * modules/hash (Depends-on): Add bitrotate and stdint.
16781         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
16782         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
16783         (SIZE_MAX): Rely on headers for definition.
16784         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
16785         (raw_hasher): Use rotr_sz.
16786         Suggested by Jim Meyering.
16787
16788         hash: fix memory leak in last patch
16789         * lib/hash.c (hash_rehash): Avoid memory leak.
16790
16791         hash: avoid no-op rehashing
16792         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
16793
16794         hash: provide default callback functions
16795         * lib/hash.c (raw_hasher, raw_comparator): New functions.
16796         (hash_initialize): Use them as defaults.
16797         * tests/test-hash.c (main): Test this.
16798
16799         hash: minor optimization
16800         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
16801         when possible.
16802         (hash_initialize): Document this promise.
16803         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
16804         * tests/test-hash.c (hash_compare_strings): Test this.
16805
16806 2009-06-18  Bruno Haible  <bruno@clisp.org>
16807
16808         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
16809         going to be replaced anyway.
16810
16811 2009-06-18  Bruno Haible  <bruno@clisp.org>
16812
16813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
16814         in one place.
16815         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
16816         be replaced anyway.
16817
16818 2009-06-18  Eric Blake  <ebb9@byu.net>
16819
16820         hash: check for resize before insertion
16821         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
16822         threshold before insertion, so that a pathological hash_rehash
16823         that fills every bucket can still trigger another rehash.
16824
16825 2009-06-18  Jim Meyering  <meyering@redhat.com>
16826
16827         hash-tests: add a loop around the small tests
16828         * tests/test-hash.c (main): Repeat small tests with selected
16829         small initial table sizes.
16830
16831 2009-06-17  Eric Blake  <ebb9@byu.net>
16832
16833         hash: minor cleanups
16834         * lib/hash.h (hash_entry): Make opaque, by moving...
16835         * lib/hash.c (hash_entry): ...here.
16836         (hash_insert): Clarify restrictions on what can be inserted.
16837         (hash_get_next): Clarify when it is safe to remove an element
16838         during traversal.
16839         (check_tuning): Skip verification when tuning is known safe.
16840         (hash_initialize): Clarify restrictions on tuning.
16841
16842 2009-06-17  Jim Meyering  <jim@meyering.net>
16843         and Eric Blake  <ebb9@byu.net>
16844
16845         hash-tests: new module
16846         * modules/hash-tests: New file.
16847         * tests/test-hash.c: New file.
16848
16849 2009-06-17  Eric Blake  <ebb9@byu.net>
16850
16851         strstr-simple: document new module
16852         * MODULES.html.sh: Document new module.
16853
16854         strstr, strcasestr: replace on platforms with broken memchr
16855         * modules/strstr: Split into...
16856         * modules/strstr-simple: ...new module that does not care about
16857         performance, but does care about glibc bug.
16858         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
16859         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
16860         if platform memchr is broken, per Debian bug 521737.
16861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
16862         memchr.
16863         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
16864         * doc/posix-functions/strstr.texi (strstr): Document the fix.
16865         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16866         * modules/mountlist (Depends-on): Add strstr-simple.
16867         * modules/gen-uni-tables (Depends-on): Likewise.
16868         * modules/argz (Depends-on): Add strstr.
16869
16870 2009-06-17  Bruno Haible  <bruno@clisp.org>
16871
16872         * modules/posix_spawn-internal (Depends-on): Add errno.
16873
16874 2009-06-17  Bruno Haible  <bruno@clisp.org>
16875
16876         Define missing ESTALE on Interix 3.5.
16877         * lib/errno.in.h (ESTALE): Assign a value if missing.
16878         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
16879         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
16880         missing.
16881         * doc/posix-headers/errno.texi: Mention the Interix bug.
16882         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
16883
16884 2009-06-15  Eric Blake  <ebb9@byu.net>
16885
16886         memchr, memchr2: add valgrind exception
16887         * lib/memchr.valgrind: New file.
16888         * lib/memchr2.valgrind: New file.
16889         * modules/memchr (Files): Distribute valgrind file.
16890         * modules/memchr2 (Files): Likewise.
16891
16892         docs: memchr is no longer obsolete
16893         * MODULES.html.sh: Move memchr from obsolete to string.h section.
16894         * lib/string.in.h (memchr): Simplify logic.
16895
16896 2009-06-14  Jim Meyering  <meyering@redhat.com>
16897
16898         link-follow: fix the "checking..." message to not mention trailing slash
16899         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
16900         never considered trailing slashes.
16901
16902 2009-06-14  Bruno Haible  <bruno@clisp.org>
16903
16904         * m4/memchr.m4: Mention also the bug on IA-64.
16905         * doc/posix-functions/memchr.texi: Likewise.
16906
16907 2009-06-12  Eric Blake  <ebb9@byu.net>
16908
16909         memchr: detect broken x86_64 and alpha implementations
16910         * modules/memchr-tests (Depends-on): Move mmap detection...
16911         * modules/memchr (Depends-on): ...here.
16912         (configure.ac): Set indicator.
16913         * lib/string.in.h (memchr): Declare replacement.
16914         * modules/string (Makefile.am): Trigger replacement.
16915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
16916         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
16917         bugs.
16918         * doc/posix-functions/memchr.texi (memchr): Document the bug.
16919         * modules/getpagesize (License): Relax license.
16920
16921 2009-06-11  Bruno Haible  <bruno@clisp.org>
16922
16923         * lib/idpriv.h: Add more references.
16924
16925 2009-06-08  Bruno Haible  <bruno@clisp.org>
16926
16927         Tests for module 'idpriv-droptemp'.
16928         * modules/idpriv-droptemp-tests: New file.
16929         * tests/test-idpriv-droptemp.sh: New file.
16930         * tests/test-idpriv-droptemp.su.sh: New file.
16931         * tests/test-idpriv-droptemp.c: New file.
16932
16933         New module 'idpriv-droptemp'.
16934         * lib/idpriv-droptemp.c: New file.
16935         * modules/idpriv-droptemp: New file.
16936
16937 2009-06-08  Bruno Haible  <bruno@clisp.org>
16938
16939         Tests for module 'idpriv-drop'.
16940         * modules/idpriv-drop-tests: New file.
16941         * tests/test-idpriv-drop.sh: New file.
16942         * tests/test-idpriv-drop.su.sh: New file.
16943         * tests/test-idpriv-drop.c: New file.
16944
16945         New module 'idpriv-drop'.
16946         * lib/idpriv.h: New file.
16947         * lib-idpriv-drop.c: New file.
16948         * m4/idpriv.m4: New file.
16949         * modules/idpriv-drop: New file.
16950
16951 2009-06-08  Bruno Haible  <bruno@clisp.org>
16952
16953         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
16954         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16955         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16956         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16957         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16958         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16959         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16960
16961 2009-06-08  Eric Blake  <ebb9@byu.net>
16962
16963         test-strstr: use memory fence, when possible
16964         * tests/test-strstr.c (main): Use memory fence, in order to be
16965         more likely to trigger Debian bug 521737.
16966         * modules/strstr-tests (Files): Pull in additional files.
16967
16968         memchr: no longer obsolete, for wider field testing
16969         * modules/memchr (Status, Notice): Delete, this module is no
16970         longer obsolete.
16971         * modules/vasnprintf (Depends-on): Add memchr.
16972
16973 2009-06-07  Jim Meyering  <meyering@redhat.com>
16974
16975         hash: declare some functions with the warn_unused_result attribute
16976         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
16977
16978 2009-06-07  Bruno Haible  <bruno@clisp.org>
16979
16980         * tests/test-alignof.c: Don't test int64_t if it does not exist.
16981         Reported by Eric Blake.
16982
16983 2009-06-06  Eric Blake  <ebb9@byu.net>
16984
16985         test-alignof: fix typo with long double
16986         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
16987         compiler error.
16988
16989 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
16990
16991         Escape non-texinfo { and }s.
16992         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
16993         markup error.
16994
16995 2009-06-04  Jim Meyering  <meyering@redhat.com>
16996
16997         gitlog-to-changelog: don't infloop on an empty commit log
16998         * build-aux/gitlog-to-changelog: Warn about an empty log message.
16999         Reported by Boris Petersen <transacid@centerim.org>.
17000
17001 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
17002
17003         version-etc: extend for packagers
17004         Add three new configure options, intended for packagers:
17005           --with-packager="packager name"
17006           --with-packager-version="packager-specific version"
17007           --with-packager-bug-reports="packager bug reporting"
17008         An example with coreutils:
17009           $ ./configure \
17010             --with-packager=Gentoo \
17011             --with-packager-bug-report=http://bugs.gentoo.org/ \
17012             --with-packager-version="patchset 1.6"
17013           $ ./src/ls --version | head -n2
17014           ls (GNU coreutils) 7.1-dirty
17015           Packaged by Gentoo (patchset 1.6)
17016         Note that the bug reporting info via --help doesn't show up because
17017         coreutils uses its own custom emit_bug_reporting_address() implementation
17018         in src/system.h.  If it didn't, it'd look like:
17019           $ ./src/ls --help | tail -n4
17020           Report bugs to <bug-coreutils@gnu.org>.
17021           Report Gentoo bugs to <http://bugs.gentoo.org/>.
17022           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
17023           General help using GNU software: <http://www.gnu.org/gethelp/>.
17024         * lib/version-etc.c: Print new information, if provided.
17025         * m4/version-etc.m4: New file.
17026         * modules/version-etc (Files): Add m4/version-etc.m4.
17027         (configure.ac): Add gl_VERSION_ETC.
17028
17029 2009-05-31  Bruno Haible  <bruno@clisp.org>
17030
17031         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
17032         and 'int64_t'.
17033         * modules/alignof-tests (Dependencies): Add stdint.
17034         Reported by Eric Blake.
17035
17036 2009-05-31  Bruno Haible  <bruno@clisp.org>
17037
17038         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
17039         restriction due to compiler bugs.
17040         Reported by Eric Blake.
17041
17042 2009-05-31  Simon Josefsson  <simon@josefsson.org>
17043             Bruno Haible  <bruno@clisp.org>
17044
17045         Fix test-alignof failure.
17046         * lib/alignof.h (alignof_slot): New macro.
17047         (alignof_type): New macro, with the same semantics as the previous
17048         'alignof'.
17049         (alignof): Alias to alignof_slot.
17050         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
17051         check that the results are usable as constant expressions.
17052
17053 2009-05-31  Bruno Haible  <bruno@clisp.org>
17054
17055         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
17056         * tests/test-memchr.c (main): Check that memchr does not read past the
17057         first occurrence of the byte.
17058         * tests/test-strstr.c (main): Update comment.
17059         Suggested by Eric Blake.
17060
17061 2009-05-30  Bruno Haible  <bruno@clisp.org>
17062
17063         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
17064         detail how to use dumpbin.
17065         Reported by David Byron <dbyron@dbyron.com>.
17066
17067 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17068
17069         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
17070
17071 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17072
17073         * m4/manywarnings.m4: Add GCC 4.4 warnings.
17074
17075 2009-05-28  Bruno Haible  <bruno@clisp.org>
17076
17077         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
17078         build-aux/ files.
17079
17080 2009-05-28  Simon Josefsson  <simon@josefsson.org>
17081
17082         * gnulib-tool (func_import): Transform license on build-aux/ files too.
17083
17084 2009-05-27  Simon Josefsson  <simon@josefsson.org>
17085
17086         * gnulib-tool (sed_transform_main_lib_file)
17087         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
17088         regexps.
17089
17090 2009-05-26  Simon Josefsson  <simon@josefsson.org>
17091
17092         * tests/test-strstr.c: Add another self-test.
17093         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
17094         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
17095
17096 2009-05-23  Bruno Haible  <bruno@clisp.org>
17097
17098         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
17099         change.
17100
17101 2009-05-21  Bruno Haible  <bruno@clisp.org>
17102
17103         Simplify use of mode_t varargs.
17104         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
17105         uses 'mode_t' or 'int'.
17106         * lib/openat.c (openat): Likewise.
17107         * lib/open-safer.c (open_safer): Likewise.
17108         * m4/mode_t.m4: New file.
17109         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
17110         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
17111         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
17112         * modules/open (Files): Add m4/mode_t.m4.
17113         * modules/openat (Files): Likewise.
17114         * modules/fcntl-safer (Files): Likewise.
17115         Suggested by Eric Blake.
17116
17117 2009-05-21  Pádraig Brady  <P@draigbrady.com>
17118
17119         * doc/glibc-functions/fallocate.texi: New file.
17120         * doc/gnulib.texi: Include it.
17121
17122 2009-05-21  Eric Blake  <ebb9@byu.net>
17123             Bruno Haible  <bruno@clisp.org>
17124
17125         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
17126         invocations.
17127         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17128
17129 2009-05-21  Eric Blake  <ebb9@byu.net>
17130             Bruno Haible  <bruno@clisp.org>
17131
17132         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
17133         include_next. Fix of 2008-11-20 commit.
17134         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
17135         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
17136         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
17137         NEXT_MATH_H.
17138         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
17139         instead of NEXT_MATH_H.
17140
17141 2009-05-21  Bruno Haible  <bruno@clisp.org>
17142
17143         Avoid redefinition warnings for SIZE_MAX.
17144         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
17145         Reported by Simon Josefsson.
17146
17147 2009-05-21  Bruno Haible  <bruno@clisp.org>
17148
17149         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
17150         AC_CACHE_VAL.
17151
17152 2009-05-20  Bruno Haible  <bruno@clisp.org>
17153
17154         Make zeroptr.h work on mingw.
17155         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
17156         mprotect.
17157         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
17158         * modules/memchr2-tests (configure.ac): Likewise.
17159         * modules/memcmp-tests (configure.ac): Likewise.
17160         * modules/memmem-tests (configure.ac): Likewise.
17161         * modules/memrchr-tests (configure.ac): Likewise.
17162         Reported by Simon Josefsson.
17163
17164 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17165
17166         * tests/test-glob.c: Include string.h for strcmp prototype.
17167
17168 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17169
17170         * modules/getdelim (Depends-on): Add explicit stdint, although it
17171         was implicitly already pulled in via realloc-posix.
17172         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
17173
17174 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17175
17176         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
17177         G. Christensen" <tgc@jupiterrise.com>.
17178         * m4/sys_socket_h.m4: Check for sa_family_t.
17179         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
17180         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
17181         * tests/test-sys_socket.c: Check that sa_family_t works.
17182
17183 2009-05-18  Eric Blake  <ebb9@byu.net>
17184
17185         maint.mk: allow gnulib_dir in VPATH build
17186         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
17187
17188 2009-05-15  Jim Meyering  <meyering@redhat.com>
17189
17190         maint.mk: Give gnulib_dir a default definition.
17191         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
17192         Thus, most packages no longer need to specify this variable in cfg.mk
17193
17194 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
17195
17196         rename.m4: fix typos that would make non-mingw cross-configure fail
17197         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
17198
17199 2009-05-13  Eric Blake  <ebb9@byu.net>
17200
17201         mmap-anon: avoid out-of-order autoconf expansion
17202         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
17203         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
17204         * modules/memchr-tests (Depends-on): Add extensions.
17205         * modules/memchr2-tests (Depends-on): Add extensions.
17206         * modules/memcmp-tests (Depends-on): Add extensions.
17207         * modules/memmem-tests (Depends-on): Add extensions.
17208         * modules/memrchr-tests (Depends-on): Add extensions.
17209
17210 2009-05-13  Bruno Haible  <bruno@clisp.org>
17211
17212         Make some tests ISO C 99 compliant.
17213         * tests/zerosize-ptr.h: New file.
17214         * tests/test-memchr.c: Include zerosize-ptr.h.
17215         (main): Use a zero-size object pointer instead of NULL.
17216         * tests/test-memchr2.c: Include zerosize-ptr.h.
17217         (main): Use a zero-size object pointer instead of NULL.
17218         * tests/test-memcmp.c: Include zerosize-ptr.h.
17219         (main): Use a zero-size object pointer instead of NULL.
17220         * tests/test-memmem.c: Include zerosize-ptr.h.
17221         (main): Use a zero-size object pointer instead of NULL.
17222         * tests/test-memrchr.c: Include zerosize-ptr.h.
17223         (main): Use a zero-size object pointer instead of NULL.
17224         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
17225         m4/mmap-anon.m4.
17226         (Depends-on): Add getpagesize.
17227         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17228         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
17229         m4/mmap-anon.m4.
17230         (Depends-on): Add getpagesize.
17231         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17232         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
17233         m4/mmap-anon.m4.
17234         (Depends-on): Add getpagesize.
17235         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17236         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
17237         m4/mmap-anon.m4.
17238         (Depends-on): Add getpagesize.
17239         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17240         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
17241         m4/mmap-anon.m4.
17242         (Depends-on): Add getpagesize.
17243         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17244
17245 2009-05-12  Bruno Haible  <bruno@clisp.org>
17246
17247         Tests for module 'alignof'.
17248         * modules/alignof-tests: New file.
17249         * tests/test-alignof.c: New file.
17250
17251 2009-05-12  Bruno Haible  <bruno@clisp.org>
17252
17253         Fix alignof macro.
17254         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
17255         vendor compilers that are always correct.
17256
17257 2009-05-12  Bruno Haible  <bruno@clisp.org>
17258
17259         Make the MAP_ANONYMOUS detection work on HP-UX 11.
17260         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
17261         not whether its fully works.
17262
17263 2009-05-12  Bruno Haible  <bruno@clisp.org>
17264
17265         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
17266
17267 2009-05-12  Jim Meyering  <meyering@redhat.com>
17268
17269         * top/maint.mk: Adjust backslash alignment.
17270
17271 2009-05-11  Simon Josefsson  <simon@josefsson.org>
17272
17273         * top/maint.mk: Make $(srcdir)/build-aux configurable.
17274
17275 2009-05-11  Eric Blake  <ebb9@byu.net>
17276
17277         argp: avoid undefined behavior
17278         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
17279         macros.
17280
17281 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17282
17283         * tests/test-vc-list-files-git.sh: Do git config of user.email and
17284         user.name to prevent git commit from complaining.
17285
17286 2009-05-10  Bruno Haible  <bruno@clisp.org>
17287
17288         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
17289         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
17290         it rewrites every file name only once.
17291         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
17292
17293 2009-05-08  Bruno Haible  <bruno@clisp.org>
17294
17295         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
17296         instead of 'max'.
17297
17298 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17299
17300         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
17301         sockaddr_storage test.
17302
17303 2009-05-07  Simon Josefsson  <simon@josefsson.org>
17304
17305         * modules/sys_socket (Makefile.am): Substitute
17306         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
17307         * m4/sys_socket_h.m4: Check for sockaddr_storage.
17308         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
17309         * tests/test-sys_socket.c: Check sockaddr_storage.
17310
17311 2009-05-08  Bruno Haible  <bruno@clisp.org>
17312
17313         New module 'alignof'.
17314         * lib/alignof.h: New file.
17315         * modules/alignof: New file.
17316
17317 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17318             Bruno Haible  <bruno@clisp.org>
17319
17320         Fix test-file-has-acl on FreeBSD.
17321         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
17322         mask is implicitly added.
17323         * tests/test-file-has-acl.c: Include <signal.h>.
17324         (main): Terminate the test after 5 seconds.
17325         * modules/acl-tests (configure.ac): Check for alarm function.
17326
17327 2009-05-04  Bruno Haible  <bruno@clisp.org>
17328
17329         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
17330         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
17331         * modules/errno (configure.ac): Drop AC_REQUIRE.
17332         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
17333         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
17334
17335 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17336
17337         * modules/glob-tests: New module.
17338         * tests/test-glob.c: Add.
17339
17340 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17341
17342         * modules/fnmatch-tests: New module.
17343         * tests/test-fnmatch.c: Add.
17344
17345 2009-05-04  Eric Blake  <ebb9@byu.net>
17346
17347         maint: make the new no-submodule-changes rule VPATH-safe
17348         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
17349
17350 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17351             Bruno Haible  <bruno@clisp.org>
17352
17353         acl: Fix infinite loop on FreeBSD.
17354         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
17355         of return value from acl_get_entry.
17356         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
17357         Likewise.
17358
17359 2009-05-03  Bruno Haible  <bruno@clisp.org>
17360
17361         * lib/acl-internal.h (acl_entries): Clarify return value.
17362         * lib/acl_entries.c (acl_entries): Likewise.
17363
17364 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17365
17366         Bug fix in acl module.
17367         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
17368
17369 2009-05-03  Bruno Haible  <bruno@clisp.org>
17370
17371         Create gperf-generated file in the source dir, not in the build dir.
17372         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
17373         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
17374         * modules/unicase/locale-language (unicase/locale-languages.h):
17375         Likewise.
17376         * modules/unicase/special-casing (unicase/special-casing-table.h):
17377         Likewise.
17378         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
17379         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
17380         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
17381         Reported by Ralf Wildenhues.
17382
17383 2009-05-03  Bruno Haible  <bruno@clisp.org>
17384
17385         * modules/fnmatch (Description, configure.ac): Taken from
17386         fnmatch-posix.
17387         * modules/fnmatch-posix: Turn into a symbolic reference to the
17388         'fnmatch' module, and deprecate.
17389         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
17390
17391 2009-05-03  Bruno Haible  <bruno@clisp.org>
17392
17393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
17394         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
17395         Reported by Ralf Wildenhues.
17396
17397 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17398
17399         * m4/fnmatch.m4: Fix fnmatch re-define.
17400
17401 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17402
17403         priv-set: new module and tests; adapt write-any-file
17404         * lib/priv-set.c: New file.
17405         * lib/priv-set.h: New file.
17406         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
17407         * lib/write-any-file.c: Simplify by using priv-set module.
17408         * m4/priv-set.m4: New file.
17409         * modules/priv-set: New file.
17410         * modules/unlinkdir: Add dependency on priv-set module.
17411         * modules/write-any-file: Likewise.
17412
17413         Tests for module 'priv-set'.
17414         * modules/priv-set-tests: New file.
17415         * tests/test-priv-set.c: New file.
17416
17417 2009-05-03  Jim Meyering  <meyering@redhat.com>
17418             Bruno Haible  <bruno@clisp.org>
17419
17420         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
17421         use the converted UTF-8 variant of the name instead.
17422
17423 2009-05-03  Jim Meyering  <meyering@redhat.com>
17424
17425         tests: tighten some getdate tests
17426         * tests/test-getdate.c (main): Tighten tests: require equality,
17427         not just greater than.  Set TZ envvar to UTC0.
17428
17429 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17430
17431         getdate: correctly interpret "next monday" when run on a Monday
17432         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
17433         that e.g., "next tues" (when run on a tuesday) results in a date
17434         that is one week in the future, and not today's date.
17435         I.e., add a week when the wday is the same as the current one.
17436         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
17437         and earlier by Martin Bernreuther and Jan Minář.
17438         * tests/test-getdate.c (main): Check that "next DAY" is always in
17439         the future and that "last DAY" is always in the past.
17440
17441 2009-05-02  Jim Meyering  <meyering@redhat.com>
17442
17443         build: ensure that a release build fails when a submodule is unclean
17444         * top/maint.mk (no-submodule-changes): New rule.
17445         (alpha beta major): Depend on it.
17446
17447 2009-05-02  Bruno Haible  <bruno@clisp.org>
17448
17449         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
17450         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
17451         shell variable gl_fnmatch_required to detect which variant is
17452         requested.
17453         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
17454         gl_FUNC_FNMATCH_POSIX.
17455         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
17456         exclude fnmatch-posix.
17457
17458 2009-05-02  Bruno Haible  <bruno@clisp.org>
17459
17460         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
17461         * modules/mbsrtowcs (License): Change to LGPLv2+.
17462         * modules/strnlen1 (License): Likewise.
17463         Reported by Simon Josefsson.
17464
17465 2009-05-02  Bruno Haible  <bruno@clisp.org>
17466
17467         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
17468         "cross".
17469         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
17470         gnulib-tool was called with option --source-base=lib.
17471
17472 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17473
17474         Use automake *-local hooks without commands, for extensibility.
17475         * modules/localcharset (Makefile.am): Rename install-exec-local
17476         rule to install-exec-localcharset, and make it a prerequisite of
17477         install-exec-local.  Likewise, rename the uninstall-local rule to
17478         uninstall-localcharset, and make it a prerequisite of the former.
17479
17480 2009-05-01  Bruno Haible  <bruno@clisp.org>
17481
17482         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
17483         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17484         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
17485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
17486         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
17487         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17488         m4/locale-zh.m4, m4/codeset.m4.
17489
17490         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17491         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
17492         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17493         m4/locale-zh.m4.
17494
17495         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
17496         REPLACE_WCRTOMB if mbstate_t must be replaced.
17497         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
17498         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
17499
17500 2009-05-01  Bruno Haible  <bruno@clisp.org>
17501
17502         Avoid compiler warnings when redefining macros defined by <libintl.h>.
17503         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
17504         dngettext, dcngettext, textdomain, bindtextdomain,
17505         bind_textdomain_codeset): Undefine before redefining.
17506
17507 2009-04-30  Bruno Haible  <bruno@clisp.org>
17508
17509         Fix bug introduced on 2009-04-25.
17510         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
17511         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
17512         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
17513         is defined.
17514         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
17515         is defined.
17516         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
17517         is defined.
17518         Reported by Elbert_Pol <elbert.pol@gmail.com>.
17519
17520 2009-04-28  Bruno Haible  <bruno@clisp.org>
17521
17522         Comment tweaks.
17523         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
17524         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
17525         * lib/unicase.h (u*_casexfrm): Likewise.
17526         Reported by Paolo Bonzini.
17527
17528 2009-04-28  Bruno Haible  <bruno@clisp.org>
17529
17530         Fix a compilation error.
17531         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17532         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17533         Reported by Jim Meyering.
17534
17535 2009-04-27  Bruno Haible  <bruno@clisp.org>
17536
17537         New module 'libunistring'.
17538         * modules/libunistring: New file.
17539         * m4/libunistring.m4: New file.
17540         * MODULES.html.sh (Unicode string functions): Add it.
17541
17542 2009-04-27  Eric Blake  <ebb9@byu.net>
17543
17544         maint.mk: allow package-specific header to provide <config.h>
17545         * top/maint.mk (sc_require_config_h): New variable.
17546         (sc_require_config_h, sc_require_config_h_first): Use it.
17547
17548 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17549
17550         * top/maint.mk (sc_avoid_if_before_free): Except
17551         useless-if-before-free script.
17552
17553 2009-04-27  Eric Blake  <ebb9@byu.net>
17554
17555         maintainer-makefile: depend on all required helper scripts
17556         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17557         useless-if-before-free.
17558         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17559         version, rather than assuming gnulib checkout is available.
17560         Reported by Simen Josefsson.
17561
17562 2009-04-26  Bruno Haible  <bruno@clisp.org>
17563
17564         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17565         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17566         "../" or "..".
17567
17568 2009-04-26  Bruno Haible  <bruno@clisp.org>
17569
17570         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17571         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17572         AC_LIB_HAVE_LINKFLAGS.
17573
17574 2009-04-26  Bruno Haible  <bruno@clisp.org>
17575
17576         Simplify calling convention of u*_conv_from_encoding.
17577         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17578         u32_conv_from_encoding): Expect a resultbuf argument and return the
17579         result directly as a pointer.
17580         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17581         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17582         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17583         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17584         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17585         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17586         Update.
17587         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17588         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17589         * lib/vasnprintf.c (VASNPRINTF): Update.
17590         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17591         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17592         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17593         * NEWS: Mention the change.
17594
17595 2009-04-26  Bruno Haible  <bruno@clisp.org>
17596
17597         Simplify calling convention of u*_conv_to_encoding.
17598         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17599         u32_conv_to_encoding): Expect a resultbuf argument and return the
17600         result directly as a pointer.
17601         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17602         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17603         freeing scaled_offsets if mem_iconveha failed.
17604         * lib/unicase/u-casexfrm.h (FUNC): Update.
17605         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17606         * lib/vasnprintf.c (VASNPRINTF): Update.
17607         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17608         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17609         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17610         * NEWS: Mention the change.
17611
17612 2009-04-26  Bruno Haible  <bruno@clisp.org>
17613
17614         Avoid test failures on AIX and OSF/1.
17615         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17616         malloc(0).
17617         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17618         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17619         Likewise.
17620         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17621         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17622         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17623         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17624         * doc/posix-functions/malloc.texi: Document the portability problem
17625         related to malloc(0).
17626
17627 2009-04-26  Bruno Haible  <bruno@clisp.org>
17628
17629         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17630         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17631         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17632
17633 2009-04-25  Bruno Haible  <bruno@clisp.org>
17634
17635         Avoid link error when creating a namespace clean library.
17636         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17637         as macro with arguments if already defined as an alias.
17638         * lib/signbitf.c (gl_signbitf): Don't undefine.
17639         * lib/signbitd.c (gl_signbitd): Don't undefine.
17640         * lib/signbitl.c (gl_signbitl): Don't undefine.
17641
17642 2009-04-25  Jim Meyering  <meyering@redhat.com>
17643
17644         vc-list-files: fix another quoting bug
17645         * build-aux/vc-list-files: Avoid sed backslash expansion
17646         of pathological directory names.
17647
17648 2009-04-25  Eric Blake  <ebb9@byu.net>
17649
17650         vc-list-files: fix shell quoting error
17651         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17652         timestamp.
17653
17654 2009-04-25  Jim Meyering  <meyering@redhat.com>
17655
17656         vc-list-files: restore lost functionality with subdir argument
17657         * build-aux/vc-list-files: When given a non-"." sub-directory
17658         argument, substitute the $dir/ prefix back onto each resulting name.
17659         Otherwise, coreutils' root_tests check would fail.
17660
17661 2009-04-24  Eric Blake  <ebb9@byu.net>
17662
17663         vc-list-files: ignore git symlinks
17664         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17665         than ls-files, to ignore git symlinks.
17666
17667         maint.mk: import improvements from m4
17668         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17669         (move_if_change): Delete unused macro.
17670         (news-date-check, vc-diff-check): Support VPATH builds.
17671         (announcement): Likewise.  Split --bootstrap-tools list...
17672         (boostrap-tools): ...into separate list, which can be overridden
17673         in cfg.mk.
17674         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17675         requiring dependency on useless-if-before-free module.
17676         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17677         Support VPATH builds.
17678
17679 2009-04-24  Jim Meyering  <meyering@redhat.com>
17680
17681         maint.mk: remove coreutils-specific rules and variables
17682         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17683         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17684         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17685
17686         maint.mk: remove obsolete rule
17687         * top/maint.mk (rel-check): Remove rule.
17688         (WGET, WGETFLAGS): Remove now-unused variables.
17689
17690 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17691
17692         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17693         consistency.
17694
17695         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17696         '$(PATH_SEPARATOR)' instead of ':'.
17697
17698 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17699
17700         * lib/getopt1.c (main): Use 'const' for static array.
17701
17702 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17703
17704         * top/maint.mk: Sync with coreutils.
17705         * NEWS: Explain incompatibilities.
17706
17707 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17708             Bruno Haible  <bruno@clisp.org>
17709
17710         Fix cross-compilation results.
17711         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17712         statement, as third argument of AC_TRY_RUN.
17713         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17714         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17715         Likewise.
17716         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17717         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17718         Likewise.
17719         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17720         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
17721         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
17722
17723 2009-04-20  Bruno Haible  <bruno@clisp.org>
17724
17725         Avoid test failure on mingw.
17726         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
17727
17728 2009-04-20  Bruno Haible  <bruno@clisp.org>
17729
17730         Avoid compilation error on mingw.
17731         * modules/localename-tests (Depends-on): Add locale.
17732
17733 2009-04-19  Bruno Haible  <bruno@clisp.org>
17734
17735         Support for building a shared library on Windows platforms.
17736         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
17737         (main): Test the presence of UNINORM_NFC here.
17738         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
17739         (main): Test the presence of UNINORM_NFD here.
17740         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
17741         (main): Test the presence of UNINORM_NFKC here.
17742         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
17743         (main): Test the presence of UNINORM_NFKD here.
17744
17745 2009-04-19  Bruno Haible  <bruno@clisp.org>
17746
17747         Avoid a compiler warning.
17748         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
17749         Change type of variable 'sequence'.
17750
17751 2009-04-19  Bruno Haible  <bruno@clisp.org>
17752
17753         * modules/configmake (Makefile.am): When the contents of configmake.h
17754         does not change, arrange to preserve its modification time.
17755
17756 2009-04-17  Simon Josefsson  <simon@josefsson.org>
17757
17758         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
17759         gettext domain.
17760
17761 2009-04-16  Jim Meyering  <meyering@redhat.com>
17762
17763         useless-if-before-free: improve conversion code
17764         * build-aux/useless-if-before-free: Adjust code-in-comment to match
17765         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
17766
17767 2009-04-14  Bruno Haible  <bruno@clisp.org>
17768
17769         * modules/fcntl (Depends-on): Add extensions.
17770         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
17771
17772 2009-04-12  Ben Pfaff  <blp@gnu.org>
17773
17774         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
17775         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
17776
17777 2009-03-20  Ben Pfaff  <blp@gnu.org>
17778
17779         Make rename replace existing destinations on Windows.
17780         * m4/rename.m4: Add test for Mingw.
17781         * lib/rename.c: Add rename replacement that uses MoveFileEx with
17782         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17783         * doc/posix-functions/rename.texi: Document.
17784
17785 2009-04-10  Bruno Haible  <bruno@clisp.org>
17786
17787         New include file "iconveh.h".
17788         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
17789         * lib/striconveh.h: Include it.
17790         (enum iconv_ilseq_handler): Remove definition.
17791         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
17792         striconveh.h.
17793         * lib/striconveha.c: Include striconveh.h.
17794         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
17795         * modules/striconveh (Files): Add lib/iconveh.h.
17796         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
17797         lib/striconveh.h.
17798
17799 2009-04-10  Bruno Haible  <bruno@clisp.org>
17800
17801         * lib/uniconv.h: Update comment.
17802
17803 2009-04-10  Bruno Haible  <bruno@clisp.org>
17804
17805         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
17806         always.
17807         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17808         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17809         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17810         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
17811         "unistring-notinline.h", so that the function gets defined always.
17812         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17813         * lib/unistr/u8-uctomb.c: Likewise.
17814         * lib/unistr/u16-mbtouc.c: Likewise.
17815         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17816         * lib/unistr/u16-uctomb.c: Likewise.
17817         * lib/unistr/u32-mbtouc.c: Likewise.
17818         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17819         * lib/unistr/u32-uctomb.c: Likewise.
17820
17821 2009-04-10  Bruno Haible  <bruno@clisp.org>
17822
17823         Mark 'utime' obsolete.
17824         * modules/utime (Status, Notice): New sections.
17825         Suggested by Jim Meyering.
17826
17827         Fix cross-compile guess for utime test.
17828         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
17829         autoconf.
17830         * doc/posix-functions/utime.texi: Give more precisions.
17831         Reported by Jan <ipif@ymail.com>.
17832
17833 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
17834
17835         filevercmp: correct today's change
17836         * lib/filevercmp.c: Also handle coreutils' test inputs.
17837         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
17838
17839         Fix regression in 'filevercmp' module. Thanks Sven Joachim
17840         for reporting it.
17841         * lib/filevercmp.c: Special handle for "", "." and "..".
17842         * tests/test-filevercmp.c: Enlarge the set suite.
17843
17844 2009-04-07  Jim Meyering  <meyering@redhat.com>
17845
17846         useless-if-before-free: show how to remove braced useless free, too
17847         * build-aux/useless-if-before-free: still only in a comment, though.
17848
17849 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
17850
17851         maint.mk: import changes to syntax-check macros from coreutils
17852         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
17853         Use them in the relevant macros.
17854
17855 2009-04-06  Bruno Haible  <bruno@clisp.org>
17856
17857         Fix unportable use of bit-fields.
17858         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
17859         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
17860         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
17861
17862 2009-04-06  Bruno Haible  <bruno@clisp.org>
17863
17864         Avoid test failures on AIX and OSF/1.
17865         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
17866         that malloc(0) = NULL.
17867         * tests/unicase/test-u8-tolower.c (check): Likewise.
17868         * tests/unicase/test-u8-totitle.c (check): Likewise.
17869         * tests/unicase/test-u8-toupper.c (check): Likewise.
17870         * tests/unicase/test-u16-casefold.c (check): Likewise.
17871         * tests/unicase/test-u16-tolower.c (check): Likewise.
17872         * tests/unicase/test-u16-totitle.c (check): Likewise.
17873         * tests/unicase/test-u16-toupper.c (check): Likewise.
17874         * tests/unicase/test-u32-casefold.c (check): Likewise.
17875         * tests/unicase/test-u32-tolower.c (check): Likewise.
17876         * tests/unicase/test-u32-totitle.c (check): Likewise.
17877         * tests/unicase/test-u32-toupper.c (check): Likewise.
17878         * tests/uninorm/test-u8-nfc.c (check): Likewise.
17879         * tests/uninorm/test-u8-nfd.c (check): Likewise.
17880         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
17881         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
17882         * tests/uninorm/test-u16-nfc.c (check): Likewise.
17883         * tests/uninorm/test-u16-nfd.c (check): Likewise.
17884         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
17885         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
17886         * tests/uninorm/test-u32-nfc.c (check): Likewise.
17887         * tests/uninorm/test-u32-nfd.c (check): Likewise.
17888         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
17889         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
17890
17891 2009-04-05  Bruno Haible  <bruno@clisp.org>
17892
17893         Work around an autoconf limitation.
17894         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
17895         comment line if it would be longer than 3 KB.
17896
17897 2009-04-05  Bruno Haible  <bruno@clisp.org>
17898
17899         Avoid test failure with libiconv-1.13.
17900         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
17901         of the expected test results.
17902
17903 2009-04-05  Bruno Haible  <bruno@clisp.org>
17904
17905         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
17906         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
17907         that it should be installed.
17908
17909 2009-04-05  Bruno Haible  <bruno@clisp.org>
17910
17911         * gnulib-tool: New option --copy-file.
17912         (func_usage): Document it.
17913         (func_dest_tmpfilename): Moved out of func_import.
17914         (func_add_file, func_update_file): New functions, extracted from
17915         func_import.
17916         (func_import): Update.
17917
17918 2009-04-05  Karl Berry  <karl@gnu.org>
17919
17920         * README: prominently mention gnulib-tool.
17921         Rearrange sections so getting the code is near the top.
17922
17923 2009-04-05  Bruno Haible  <bruno@clisp.org>
17924
17925         * lib/unicase.h: Mention u*_cmp2.
17926         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17927         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
17928         * lib/unicase/ulc-casecmp.c: Likewise.
17929         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
17930         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
17931         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
17932         unistr/u8-cmp.
17933         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
17934         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
17935         unistr/u16-cmp.
17936         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
17937         unistr/u32-cmp.
17938
17939         * lib/uninorm.h: Mention u*_cmp2.
17940         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17941         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
17942         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
17943         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
17944         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
17945         unistr/u8-cmp.
17946         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
17947         unistr/u16-cmp.
17948         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
17949         unistr/u32-cmp.
17950
17951         New module 'unistr/u32-cmp2'.
17952         * lib/unistr/u32-cmp2.c: New file.
17953         * modules/unistr/u32-cmp2: New file.
17954
17955         New module 'unistr/u16-cmp2'.
17956         * lib/unistr/u16-cmp2.c: New file.
17957         * modules/unistr/u16-cmp2: New file.
17958
17959         New module 'unistr/u8-cmp2'.
17960         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
17961         * lib/unistr/u8-cmp2.c: New file.
17962         * lib/unistr/u-cmp2.h: New file.
17963         * modules/unistr/u8-cmp2: New file.
17964
17965 2009-04-05  Bruno Haible  <bruno@clisp.org>
17966
17967         * lib/unictype.h (uc_property_is_valid): New macro.
17968         * tests/unictype/test-pr_byname.c (main): Use it.
17969
17970         * lib/unistr.h: Doc fixes.
17971         * lib/uniconv.h: Doc fixes.
17972         * lib/unictype.h: Doc fixes.
17973
17974 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
17975
17976         Port coreutils 7.2 to Solaris 8.
17977
17978         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
17979         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
17980         for Solaris 8.  This is a bit of a hack, as it means it's the
17981         caller's responsibility to add -lnsl if needed, but most likely it
17982         won't be needed since only getaddrinfo uses this and getaddrinfo
17983         isn't needed on Solaris 8.
17984
17985         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
17986         problem to Solaris 8 encountered with coreutils 7.2, which
17987         resulted in a message "fnmatch.c:292: warning: passing argument 4
17988         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
17989         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
17990
17991 2009-04-03  Simon Josefsson  <simon@josefsson.org>
17992
17993         * m4/ld-version-script.m4: Add FIXME comment.
17994
17995 2009-04-02  Simon Josefsson  <simon@josefsson.org>
17996
17997         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
17998         SOVERSION variable.
17999
18000 2009-04-02  Bruno Haible  <bruno@clisp.org>
18001
18002         * Makefile (info, html, dvi, pdf): Combine the rules.
18003         Suggested by Jim Meyering.
18004
18005 2009-04-01  Bruno Haible  <bruno@clisp.org>
18006
18007         * Makefile (info, html, dvi, pdf): New targets.
18008         Reported by Reuben Thomas <rrt@sc3d.org>.
18009
18010 2009-04-01  Bruno Haible  <bruno@clisp.org>
18011
18012         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
18013         can be put into PATH.
18014         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
18015
18016 2009-04-01  Bruno Haible  <bruno@clisp.org>
18017
18018         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
18019
18020 2009-04-01  Bruno Haible  <bruno@clisp.org>
18021
18022         Rename module 'visibility'.
18023         * modules/lib-symbol-visibility: Renamed from modules/visibility.
18024         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
18025         * doc/gnulib.texi: Update.
18026         * MODULES.html.sh (Misc): Update.
18027         * NEWS: Mention the change.
18028
18029 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18030
18031         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
18032         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
18033         Eric Blake <ebb9@byu.net> for review.
18034         * MODULES.html.sh: Add lib-msvc-compat.
18035         * doc/gnulib.texi: Link to new section.
18036         * m4/ld-output-def.m4: New file.
18037         * doc/ld-output-def.texi: New file.
18038
18039 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18040
18041         Rename ld-version-script to lib-symbol-versions.  Suggested by
18042         Bruno Haible <bruno@clisp.org>.
18043         * modules/ld-version-script: Renamed to lib-symbol-versions.
18044         * doc/ld-version-script.texi: Fix module name.
18045         * MODULES.html.sh: Add lib-symbol-versions.
18046
18047 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18048
18049         * modules/u64-tests: New file.
18050         * tests/test-u64.c: New file.
18051
18052 2009-03-04  Simon Josefsson  <simon@josefsson.org>
18053
18054         * MODULES.html.sh: Mention u64.
18055         * modules/u64: New module.
18056         * modules/crypto/sha512: Depend on u64 module instead of providing
18057         u64.h.
18058
18059 2009-03-27  Eric Blake  <ebb9@byu.net>
18060
18061         test-strerror: make debugging EAI_SYSTEM easier
18062         * modules/getaddrinfo-tests (Depends-on): Add strerror.
18063         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
18064         failure was EAI_SYSTEM.
18065
18066 2009-03-25  Bruno Haible  <bruno@clisp.org>
18067
18068         Fix a problem with --enable-relocatable on Solaris 7.
18069         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
18070         since 2008-02-24.
18071
18072 2009-03-25  Eric Blake  <ebb9@byu.net>
18073
18074         test-sockets: avoid gcc warning
18075         * tests/test-sockets.c (main): Silence compiler warning.
18076
18077 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18078
18079         New modules nproc, pthread, contributed by Glen Lenker.
18080
18081         * MODULES.html.sh: Add pthread, nproc.
18082         * lib/nproc.c: New file.
18083         * lib/nproc.h: New file.
18084         * lib/pthread.in.h: New file.
18085         * m4/pthread.m4: New file.
18086         * modules/nproc: New file.
18087         * modules/pthread: New file.
18088
18089 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18090
18091         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
18092         New variable.
18093
18094 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
18095
18096         filevercmp: handle simple~ and numbered.~3~ backup suffixes
18097         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
18098         * tests/test-filevercmp.c: Add tests for backup suffixes.
18099
18100 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18101
18102         * modules/stdlib (Depends-on): Add stdint, needed when defining
18103         struct random_data on, for example, HP-UX 10.20.  Reported by
18104         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18105
18106 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18107
18108         * lib/readline.c (readline): Call fflush on stdout after printing
18109         prompt.
18110
18111 2009-03-20  Bruno Haible  <bruno@clisp.org>
18112
18113         Remove dependency from 'close' module to -lws2_32 on native Windows.
18114         * lib/close-hook.h: New file.
18115         * lib/close-hook.c: New file.
18116         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
18117         w32sock.h.
18118         (_gl_close_fd_maybe_socket): Remove function.
18119         (rpl_close): Invoke execute_all_close_hooks instead of
18120         _gl_close_fd_maybe_socket.
18121         * lib/sockets.c: Include close-hook.h, w32sock.h.
18122         (close_fd_maybe_socket): New function, essentially from lib/close.c.
18123         (close_sockets_hook): New variable.
18124         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
18125         (gl_sockets_cleanup): Unregister it.
18126         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
18127         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
18128         * modules/close-hook: New file.
18129         * modules/close (Files): Remove lib/w32sock.h.
18130         (Depends-on): Add close-hook.
18131         (Link): Remove section.
18132         * modules/sockets (Files): Add lib/w32sock.h.
18133         (Depends-on): Add close-hook.
18134         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
18135         invocation.
18136         * NEWS: Mention that LIB_CLOSE is gone.
18137
18138 2009-03-23  Eric Blake  <ebb9@byu.net>
18139
18140         signal-tests: test previous patch
18141         * tests/test-signal.c: New file.
18142         * modules/signal-tests: Likewise.
18143
18144         signal.h: always support 'volatile sig_atomic_t'
18145         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
18146         (gl_SIGNAL_H_DEFAULTS): Add a default.
18147         * modules/signal (Makefile.am): Substitute if needed.
18148         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
18149         users can blindly add volatile.
18150         * doc/posix-headers/signal.texi (signal.h): Document it.
18151         Reported by Matthew Woehlke.
18152
18153 2009-03-23  Jim Meyering  <meyering@redhat.com>
18154
18155         pathmax: PATH_MAX: use pathconf only when available
18156         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
18157         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
18158         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
18159         This avoids a link failure in a PSP cross-compilation environment
18160         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
18161
18162         * lib/vasnprintf.c (divide): Fix typo in comment.
18163
18164 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18165
18166         * gnulib-tool (func_filter_filelist): Fix comment.
18167
18168 2009-03-20  Bruno Haible  <bruno@clisp.org>
18169
18170         Make sockets.h self-contained.
18171         * lib/sockets.c: Include sockets.h first.
18172         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
18173
18174 2009-03-19  Eric Blake  <ebb9@byu.net>
18175
18176         doc: mention more functions added in cygwin 1.7.0
18177         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
18178         addition.
18179         * doc/posix-functions/log2f.texi: Likewise.
18180
18181 2009-03-19  Jim Meyering  <meyering@redhat.com>
18182
18183         fsusage: avoid syntax error due to statement-before-declaration
18184         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
18185         after all declarations.  Reported by Matthew Woehlke in
18186         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
18187
18188 2009-03-18  Eric Blake  <ebb9@byu.net>
18189
18190         build-aux/compile: sync from automake
18191         * build-aux/compile: New file, from automake.
18192         * config/srclist.txt: Mention build-aux/compile.
18193
18194 2009-03-17  Bruno Haible  <bruno@clisp.org>
18195
18196         * lib/git-merge-changelog.c: Fix typo in comment.
18197         Reported by Reuben Thomas <rrt@sc3d.org>.
18198
18199 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
18200
18201         * m4/regex.m4: update and improve help for
18202         --without-included-regex.
18203
18204 2009-03-17  Simon Josefsson  <simon@josefsson.org>
18205
18206         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
18207         failure on missing include files.
18208
18209 2009-03-17  Eric Blake  <ebb9@byu.net>
18210
18211         doc: mention more functions added in cygwin 1.7.0
18212         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
18213         addition.
18214         * doc/posix-functions/fwscanf.texi: Likewise.
18215         * doc/posix-functions/swprintf.texi: Likewise.
18216         * doc/posix-functions/swscanf.texi: Likewise.
18217         * doc/posix-functions/vfwprintf.texi: Likewise.
18218         * doc/posix-functions/vfwscanf.texi: Likewise.
18219         * doc/posix-functions/vswprintf.texi: Likewise.
18220         * doc/posix-functions/vswscanf.texi: Likewise.
18221         * doc/posix-functions/vwprintf.texi: Likewise.
18222         * doc/posix-functions/vwscanf.texi: Likewise.
18223         * doc/posix-functions/wcscasecmp.texi: Likewise.
18224         * doc/posix-functions/wcsdup.texi: Likewise.
18225         * doc/posix-functions/wcsftime.texi: Likewise.
18226         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18227         * doc/posix-functions/wprintf.texi: Likewise.
18228         * doc/posix-functions/wscanf.texi: Likewise.
18229         * doc/glibc-functions/gethostbyname2.texi: Likewise.
18230
18231 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18232
18233         maint.mk: really add $(AM_MAKEFLAGS)
18234         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
18235         was inadvertently omitted in the last commit.
18236         Spotted by Bruno Haible.
18237
18238         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
18239         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
18240         $(AM_MAKEFLAGS)' rather than plain `make'.
18241
18242         gnulib-tool: execute $MAKE not make
18243         * gnulib-tool: Default $MAKE to 'make'.
18244         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
18245         than make.  Initialize $MAKE in the do-autobuild script.
18246
18247         gnulib-tool: use $MAKE not make in generated files
18248         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
18249         make, in generated files.  Initialize $MAKE in the do-autobuild
18250         script.
18251
18252         * top/GNUmakefile (_have-git-version-gen): Fix typo.
18253
18254         GNUmakefile: disable parallelism only for multiple, recursive targets
18255         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
18256         additions in the Makefile.
18257         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
18258         by Automake.
18259         (.NOTPARALLEL): Only disable parallel builds if multiple targets
18260         are listed on the command line and at least one of them is
18261         listed in $(ALL_RECURSIVE_TARGETS).
18262
18263 2009-03-14  Bruno Haible  <bruno@clisp.org>
18264
18265         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
18266         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
18267         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
18268         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
18269         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
18270         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
18271         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
18272         unistr/u8-uctomb.
18273         * modules/unistr/u8-strchr (Depends-on): Likewise.
18274         * modules/unistr/u8-strrchr (Depends-on): Likewise.
18275         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
18276         unistr/u16-uctomb.
18277         * modules/unistr/u16-strchr (Depends-on): Likewise.
18278         * modules/unistr/u16-strrchr (Depends-on): Likewise.
18279
18280 2009-03-12  Bruno Haible  <bruno@clisp.org>
18281
18282         Work around select() bug on Interix 3.5.
18283         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
18284         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
18285         * m4/select.m4: New file.
18286         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
18287         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
18288         * modules/select (Files): Add m4/select.m4.
18289         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
18290         * modules/nanosleep (Depends-on): Add select.
18291         * modules/poll (Depends-on): Likewise.
18292         * doc/posix-functions/select.texi: Mention the Interix bug.
18293         Reported by Markus Duft <mduft@gentoo.org>.
18294
18295         * lib/select.c: Renamed from lib/winsock-select.c.
18296         * modules/select (Files): Add lib/select.c, remove
18297         lib/winsock-select.c.
18298         (configure.ac): Update.
18299
18300 2009-03-12  Jim Meyering  <meyering@redhat.com>
18301
18302         avoid gcc warnings about unused macro definitions
18303         * lib/readtokens.c (STREQ): Remove unused definition.
18304         * lib/xmalloc.c (SIZE_MAX): Likewise.
18305         * lib/openat-die.c (N_): Likewise.
18306         * lib/mountlist.c (SIZE_MAX): Remove definition.
18307         Instead, include <stdint.h>.
18308         * lib/readutmp.c: Likewise.
18309         * modules/readutmp (Depends-on): Add stdint.
18310         * modules/mountlist (Depends-on): Add stdint.
18311         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
18312
18313 2009-03-10  Bruno Haible  <bruno@clisp.org>
18314
18315         Tests for module 'mbmemcasecoll'.
18316         * modules/mbmemcasecoll-tests: New file.
18317         * tests/test-mbmemcasecoll1.sh: New file.
18318         * tests/test-mbmemcasecoll2.sh: New file.
18319         * tests/test-mbmemcasecoll3.sh: New file.
18320         * tests/test-mbmemcasecoll.c: New file.
18321
18322         New module 'mbmemcasecoll'.
18323         * lib/mbmemcasecoll.h: New file.
18324         * lib/mbmemcasecoll.c: New file.
18325         * modules/mbmemcasecoll: New file.
18326
18327         * tests/test-mbmemcasecmp.h: New file, extracted from
18328         tests/test-mbmemcasecmp.c.
18329         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
18330         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
18331         (main): Update.
18332         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
18333
18334 2009-03-09  Bruno Haible  <bruno@clisp.org>
18335
18336         Tests for module 'mbmemcasecmp'.
18337         * modules/mbmemcasecmp-tests: New file.
18338         * tests/test-mbmemcasecmp1.sh: New file.
18339         * tests/test-mbmemcasecmp2.sh: New file.
18340         * tests/test-mbmemcasecmp3.sh: New file.
18341         * tests/test-mbmemcasecmp.c: New file.
18342
18343         New module 'mbmemcasecmp'.
18344         * lib/mbmemcasecmp.h: New file.
18345         * lib/mbmemcasecmp.c: New file.
18346         * modules/mbmemcasecmp: New file.
18347
18348 2009-03-09  Bruno Haible  <bruno@clisp.org>
18349
18350         Tests for module 'unicase/ulc-casecoll'.
18351         * modules/unicase/ulc-casecoll-tests: New file.
18352         * tests/unicase/test-ulc-casecoll1.sh: New file.
18353         * tests/unicase/test-ulc-casecoll2.sh: New file.
18354         * tests/unicase/test-ulc-casecoll.c: New file.
18355
18356         New module 'unicase/ulc-casecoll'.
18357         * lib/unicase.h (ulc_casecoll): New declaration.
18358         * lib/unicase/ulc-casecoll.c: New file.
18359         * modules/unicase/ulc-casecoll: New file.
18360
18361         New module 'unicase/ulc-casexfrm'.
18362         * lib/unicase.h (ulc_casexfrm): New declaration.
18363         * lib/unicase/ulc-casexfrm.c: New file.
18364         * modules/unicase/ulc-casexfrm: New file.
18365
18366 2009-03-09  Bruno Haible  <bruno@clisp.org>
18367
18368         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
18369         invocations.
18370
18371         * m4/mbscasecmp.m4: Remove file.
18372         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
18373         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
18374
18375         * m4/mbscasestr.m4: Remove file.
18376         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
18377         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
18378
18379         * m4/mbschr.m4: Remove file.
18380         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
18381         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
18382
18383         * m4/mbscspn.m4: Remove file.
18384         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
18385         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
18386
18387         * m4/mbslen.m4: Remove file.
18388         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
18389         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
18390
18391         * m4/mbsncasecmp.m4: Remove file.
18392         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
18393         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
18394
18395         * m4/mbsnlen.m4: Remove file.
18396         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
18397         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
18398
18399         * m4/mbspbrk.m4: Remove file.
18400         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
18401         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
18402
18403         * m4/mbspcasecmp.m4: Remove file.
18404         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
18405         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
18406
18407         * m4/mbsrchr.m4: Remove file.
18408         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
18409         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
18410
18411         * m4/mbssep.m4: Remove file.
18412         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
18413         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
18414
18415         * m4/mbsspn.m4: Remove file.
18416         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
18417         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
18418
18419         * m4/mbsstr.m4: Remove file.
18420         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
18421         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
18422
18423         * m4/mbstok_r.m4: Remove file.
18424         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
18425         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
18426
18427         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
18428
18429         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
18430         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
18431
18432         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
18433
18434 2009-03-08  Bruno Haible  <bruno@clisp.org>
18435
18436         Tests for module 'unicase/ulc-casecmp'.
18437         * modules/unicase/ulc-casecmp-tests: New file.
18438         * tests/unicase/test-ulc-casecmp1.sh: New file.
18439         * tests/unicase/test-ulc-casecmp2.sh: New file.
18440         * tests/unicase/test-ulc-casecmp.c: New file.
18441
18442         New module 'unicase/ulc-casecmp'.
18443         * lib/unicase.h (ulc_casecmp): New declaration.
18444         * lib/unicase/ulc-casecmp.c: New file.
18445         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
18446         'const SRC_UNIT *'.
18447         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
18448         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
18449         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
18450         * modules/unicase/ulc-casecmp: New file.
18451
18452         Tests for module 'unicase/u32-is-cased'.
18453         * modules/unicase/u32-is-cased-tests: New file.
18454         * tests/unicase/test-u32-is-cased.c: New file.
18455
18456         Tests for module 'unicase/u16-is-cased'.
18457         * modules/unicase/u16-is-cased-tests: New file.
18458         * tests/unicase/test-u16-is-cased.c: New file.
18459
18460         Tests for module 'unicase/u8-is-cased'.
18461         * modules/unicase/u8-is-cased-tests: New file.
18462         * tests/unicase/test-u8-is-cased.c: New file.
18463         * tests/unicase/test-is-cased.h: New file.
18464
18465         New module 'unicase/u32-is-cased'.
18466         * lib/unicase/u32-is-cased.c: New file.
18467         * modules/unicase/u32-is-cased: New file.
18468
18469         New module 'unicase/u16-is-cased'.
18470         * lib/unicase/u16-is-cased.c: New file.
18471         * modules/unicase/u16-is-cased: New file.
18472
18473         New module 'unicase/u8-is-cased'.
18474         * lib/unicase/u8-is-cased.c: New file.
18475         * lib/unicase/u-is-cased.h: New file.
18476         * modules/unicase/u8-is-cased: New file.
18477
18478         Tests for module 'unicase/u32-is-casefolded'.
18479         * modules/unicase/u32-is-casefolded-tests: New file.
18480         * tests/unicase/test-u32-is-casefolded.c: New file.
18481
18482         Tests for module 'unicase/u16-is-casefolded'.
18483         * modules/unicase/u16-is-casefolded-tests: New file.
18484         * tests/unicase/test-u16-is-casefolded.c: New file.
18485
18486         Tests for module 'unicase/u8-is-casefolded'.
18487         * modules/unicase/u8-is-casefolded-tests: New file.
18488         * tests/unicase/test-u8-is-casefolded.c: New file.
18489         * tests/unicase/test-is-casefolded.h: New file.
18490
18491         New module 'unicase/u32-is-casefolded'.
18492         * lib/unicase/u32-is-casefolded.c: New file.
18493         * modules/unicase/u32-is-casefolded: New file.
18494
18495         New module 'unicase/u16-is-casefolded'.
18496         * lib/unicase/u16-is-casefolded.c: New file.
18497         * modules/unicase/u16-is-casefolded: New file.
18498
18499         New module 'unicase/u8-is-casefolded'.
18500         * lib/unicase/u8-is-casefolded.c: New file.
18501         * modules/unicase/u8-is-casefolded: New file.
18502
18503         Tests for module 'unicase/u32-is-titlecase'.
18504         * modules/unicase/u32-is-titlecase-tests: New file.
18505         * tests/unicase/test-u32-is-titlecase.c: New file.
18506
18507         Tests for module 'unicase/u16-is-titlecase'.
18508         * modules/unicase/u16-is-titlecase-tests: New file.
18509         * tests/unicase/test-u16-is-titlecase.c: New file.
18510
18511         Tests for module 'unicase/u8-is-titlecase'.
18512         * modules/unicase/u8-is-titlecase-tests: New file.
18513         * tests/unicase/test-u8-is-titlecase.c: New file.
18514         * tests/unicase/test-is-titlecase.h: New file.
18515
18516         New module 'unicase/u32-is-titlecase'.
18517         * lib/unicase/u32-is-titlecase.c: New file.
18518         * modules/unicase/u32-is-titlecase: New file.
18519
18520         New module 'unicase/u16-is-titlecase'.
18521         * lib/unicase/u16-is-titlecase.c: New file.
18522         * modules/unicase/u16-is-titlecase: New file.
18523
18524         New module 'unicase/u8-is-titlecase'.
18525         * lib/unicase/u8-is-titlecase.c: New file.
18526         * modules/unicase/u8-is-titlecase: New file.
18527
18528         Tests for module 'unicase/u32-is-lowercase'.
18529         * modules/unicase/u32-is-lowercase-tests: New file.
18530         * tests/unicase/test-u32-is-lowercase.c: New file.
18531
18532         Tests for module 'unicase/u16-is-lowercase'.
18533         * modules/unicase/u16-is-lowercase-tests: New file.
18534         * tests/unicase/test-u16-is-lowercase.c: New file.
18535
18536         Tests for module 'unicase/u8-is-lowercase'.
18537         * modules/unicase/u8-is-lowercase-tests: New file.
18538         * tests/unicase/test-u8-is-lowercase.c: New file.
18539         * tests/unicase/test-is-lowercase.h: New file.
18540
18541         New module 'unicase/u32-is-lowercase'.
18542         * lib/unicase/u32-is-lowercase.c: New file.
18543         * modules/unicase/u32-is-lowercase: New file.
18544
18545         New module 'unicase/u16-is-lowercase'.
18546         * lib/unicase/u16-is-lowercase.c: New file.
18547         * modules/unicase/u16-is-lowercase: New file.
18548
18549         New module 'unicase/u8-is-lowercase'.
18550         * lib/unicase/u8-is-lowercase.c: New file.
18551         * modules/unicase/u8-is-lowercase: New file.
18552
18553         Tests for module 'unicase/u32-is-uppercase'.
18554         * modules/unicase/u32-is-uppercase-tests: New file.
18555         * tests/unicase/test-u32-is-uppercase.c: New file.
18556
18557         Tests for module 'unicase/u16-is-uppercase'.
18558         * modules/unicase/u16-is-uppercase-tests: New file.
18559         * tests/unicase/test-u16-is-uppercase.c: New file.
18560
18561         Tests for module 'unicase/u8-is-uppercase'.
18562         * modules/unicase/u8-is-uppercase-tests: New file.
18563         * tests/unicase/test-u8-is-uppercase.c: New file.
18564         * tests/unicase/test-is-uppercase.h: New file.
18565
18566         New module 'unicase/u32-is-uppercase'.
18567         * lib/unicase/u32-is-uppercase.c: New file.
18568         * modules/unicase/u32-is-uppercase: New file.
18569
18570         New module 'unicase/u16-is-uppercase'.
18571         * lib/unicase/u16-is-uppercase.c: New file.
18572         * modules/unicase/u16-is-uppercase: New file.
18573
18574         New module 'unicase/u8-is-uppercase'.
18575         * lib/unicase/u8-is-uppercase.c: New file.
18576         * modules/unicase/u8-is-uppercase: New file.
18577
18578         New module 'unicase/u32-is-invariant'.
18579         * lib/unicase/u32-is-invariant.c: New file.
18580         * modules/unicase/u32-is-invariant: New file.
18581
18582         New module 'unicase/u16-is-invariant'.
18583         * lib/unicase/u16-is-invariant.c: New file.
18584         * modules/unicase/u16-is-invariant: New file.
18585
18586         New module 'unicase/u8-is-invariant'.
18587         * lib/unicase/u8-is-invariant.c: New file.
18588         * lib/unicase/invariant.h: New file.
18589         * lib/unicase/u-is-invariant.h: New file.
18590         * modules/unicase/u8-is-invariant: New file.
18591
18592         Tests for module 'unicase/u32-casecoll'.
18593         * modules/unicase/u32-casecoll-tests: New file.
18594         * tests/unicase/test-u32-casecoll.c: New file.
18595
18596         Tests for module 'unicase/u16-casecoll'.
18597         * modules/unicase/u16-casecoll-tests: New file.
18598         * tests/unicase/test-u16-casecoll.c: New file.
18599
18600         Tests for module 'unicase/u8-casecoll'.
18601         * modules/unicase/u8-casecoll-tests: New file.
18602         * tests/unicase/test-u8-casecoll.c: New file.
18603
18604         New module 'unicase/u32-casecoll'.
18605         * lib/unicase/u32-casecoll.c: New file.
18606         * modules/unicase/u32-casecoll: New file.
18607
18608         New module 'unicase/u16-casecoll'.
18609         * lib/unicase/u16-casecoll.c: New file.
18610         * modules/unicase/u16-casecoll: New file.
18611
18612         New module 'unicase/u8-casecoll'.
18613         * lib/unicase/u8-casecoll.c: New file.
18614         * lib/unicase/u-casecoll.h: New file.
18615         * modules/unicase/u8-casecoll: New file.
18616
18617         New module 'unicase/u32-casexfrm'.
18618         * lib/unicase/u32-casexfrm.c: New file.
18619         * modules/unicase/u32-casexfrm: New file.
18620
18621         New module 'unicase/u16-casexfrm'.
18622         * lib/unicase/u16-casexfrm.c: New file.
18623         * modules/unicase/u16-casexfrm: New file.
18624
18625         New module 'unicase/u8-casexfrm'.
18626         * lib/unicase/u8-casexfrm.c: New file.
18627         * lib/unicase/u-casexfrm.h: New file.
18628         * modules/unicase/u8-casexfrm: New file.
18629
18630         Tests for module 'unicase/u32-casecmp'.
18631         * modules/unicase/u32-casecmp-tests: New file.
18632         * tests/unicase/test-u32-casecmp.c: New file.
18633
18634         Tests for module 'unicase/u16-casecmp'.
18635         * modules/unicase/u16-casecmp-tests: New file.
18636         * tests/unicase/test-u16-casecmp.c: New file.
18637
18638         Tests for module 'unicase/u8-casecmp'.
18639         * modules/unicase/u8-casecmp-tests: New file.
18640         * tests/unicase/test-u8-casecmp.c: New file.
18641         * tests/unicase/test-casecmp.h: New file.
18642
18643         New module 'unicase/u32-casecmp'.
18644         * lib/unicase/u32-casecmp.c: New file.
18645         * modules/unicase/u32-casecmp: New file.
18646
18647         New module 'unicase/u16-casecmp'.
18648         * lib/unicase/u16-casecmp.c: New file.
18649         * modules/unicase/u16-casecmp: New file.
18650
18651         New module 'unicase/u8-casecmp'.
18652         * lib/unicase/u8-casecmp.c: New file.
18653         * lib/unicase/u-casecmp.h: New file.
18654         * modules/unicase/u8-casecmp: New file.
18655
18656         Tests for module 'unicase/u32-casefold'.
18657         * modules/unicase/u32-casefold-tests: New file.
18658         * tests/unicase/test-u32-casefold.c: New file.
18659
18660         Tests for module 'unicase/u16-casefold'.
18661         * modules/unicase/u16-casefold-tests: New file.
18662         * tests/unicase/test-u16-casefold.c: New file.
18663
18664         Tests for module 'unicase/u8-casefold'.
18665         * modules/unicase/u8-casefold-tests: New file.
18666         * tests/unicase/test-u8-casefold.c: New file.
18667
18668         New module 'unicase/u32-casefold'.
18669         * lib/unicase/u32-casefold.c: New file.
18670         * modules/unicase/u32-casefold: New file.
18671
18672         New module 'unicase/u16-casefold'.
18673         * lib/unicase/u16-casefold.c: New file.
18674         * modules/unicase/u16-casefold: New file.
18675
18676         New module 'unicase/u8-casefold'.
18677         * lib/unicase/u8-casefold.c: New file.
18678         * lib/unicase/u-casefold.h: New file.
18679         * modules/unicase/u8-casefold: New file.
18680
18681         New module 'unicase/tocasefold'.
18682         * lib/unicase/casefold.h: New file.
18683         * lib/unicase/tocasefold.c: New file.
18684         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18685         * modules/unicase/tocasefold: New file.
18686
18687         Tests for module 'unicase/u32-totitle'.
18688         * modules/unicase/u32-totitle-tests: New file.
18689         * tests/unicase/test-u32-totitle.c: New file.
18690
18691         Tests for module 'unicase/u16-totitle'.
18692         * modules/unicase/u16-totitle-tests: New file.
18693         * tests/unicase/test-u16-totitle.c: New file.
18694
18695         Tests for module 'unicase/u8-totitle'.
18696         * modules/unicase/u8-totitle-tests: New file.
18697         * tests/unicase/test-u8-totitle.c: New file.
18698
18699         New module 'unicase/u32-totitle'.
18700         * lib/unicase/u32-totitle.c: New file.
18701         * modules/unicase/u32-totitle: New file.
18702
18703         New module 'unicase/u16-totitle'.
18704         * lib/unicase/u16-totitle.c: New file.
18705         * modules/unicase/u16-totitle: New file.
18706
18707         New module 'unicase/u8-totitle'.
18708         * lib/unicase/u8-totitle.c: New file.
18709         * lib/unicase/u-totitle.h: New file.
18710         * modules/unicase/u8-totitle: New file.
18711
18712         Tests for module 'unicase/u32-tolower'.
18713         * modules/unicase/u32-tolower-tests: New file.
18714         * tests/unicase/test-u32-tolower.c: New file.
18715
18716         Tests for module 'unicase/u16-tolower'.
18717         * modules/unicase/u16-tolower-tests: New file.
18718         * tests/unicase/test-u16-tolower.c: New file.
18719
18720         Tests for module 'unicase/u8-tolower'.
18721         * modules/unicase/u8-tolower-tests: New file.
18722         * tests/unicase/test-u8-tolower.c: New file.
18723
18724         New module 'unicase/u32-tolower'.
18725         * lib/unicase/u32-tolower.c: New file.
18726         * modules/unicase/u32-tolower: New file.
18727
18728         New module 'unicase/u16-tolower'.
18729         * lib/unicase/u16-tolower.c: New file.
18730         * modules/unicase/u16-tolower: New file.
18731
18732         New module 'unicase/u8-tolower'.
18733         * lib/unicase/u8-tolower.c: New file.
18734         * modules/unicase/u8-tolower: New file.
18735
18736         Tests for module 'unicase/u32-toupper'.
18737         * modules/unicase/u32-toupper-tests: New file.
18738         * tests/unicase/test-u32-toupper.c: New file.
18739
18740         Tests for module 'unicase/u16-toupper'.
18741         * modules/unicase/u16-toupper-tests: New file.
18742         * tests/unicase/test-u16-toupper.c: New file.
18743
18744         Tests for module 'unicase/u8-toupper'.
18745         * modules/unicase/u8-toupper-tests: New file.
18746         * tests/unicase/test-u8-toupper.c: New file.
18747
18748         New module 'unicase/u32-toupper'.
18749         * lib/unicase/u32-toupper.c: New file.
18750         * modules/unicase/u32-toupper: New file.
18751
18752         New module 'unicase/u16-toupper'.
18753         * lib/unicase/u16-toupper.c: New file.
18754         * modules/unicase/u16-toupper: New file.
18755
18756         New module 'unicase/u8-toupper'.
18757         * lib/unicase/u8-toupper.c: New file.
18758         * modules/unicase/u8-toupper: New file.
18759
18760         New module 'unicase/u32-casemap'.
18761         * lib/unicase/u32-casemap.c: New file.
18762         * modules/unicase/u32-casemap: New file.
18763
18764         New module 'unicase/u16-casemap'.
18765         * lib/unicase/u16-casemap.c: New file.
18766         * modules/unicase/u16-casemap: New file.
18767
18768         New module 'unicase/u8-casemap'.
18769         * lib/unicase/unicasemap.h: New file.
18770         * lib/unicase/u8-casemap.c: New file.
18771         * lib/unicase/u-casemap.h: New file.
18772         * modules/unicase/u8-casemap: New file.
18773
18774         New module 'unicase/special-casing'.
18775         * lib/unicase/special-casing.h: New file.
18776         * lib/unicase/special-casing.c: New file.
18777         * lib/unicase/special-casing-table.gperf: New file, generated by
18778         gen-uni-tables.c.
18779         * modules/unicase/special-casing: New file.
18780
18781         Tests for module 'unicase/locale-language'.
18782         * modules/unicase/locale-language-tests: New file.
18783         * tests/unicase/test-locale-language.sh: New file.
18784         * tests/unicase/test-locale-language.c: New file.
18785
18786         New module 'unicase/locale-language'.
18787         * lib/unicase/locale-language.c: New file.
18788         * lib/unicase/locale-languages.gperf: New file.
18789         * modules/unicase/locale-language: New file.
18790
18791         Generate more tables for case conversion and case folding.
18792         * lib/gen-uni-tables.c (SCC_*): New enum items.
18793         (struct special_casing_rule): New type.
18794         (casing_rules, num_casing_rules, allocated_casing_rules): New
18795         variables.
18796         (add_casing_rule, fill_casing_rules): New functions.
18797         (struct casefold_rule): New type.
18798         (casefolding_rules, num_casefolding_rules,
18799         allocated_casefolding_rules): New variables.
18800         (fill_casefolding_rules): New function.
18801         (unicode_casefold): New variable.
18802         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
18803         sort_casing_rules, output_casing_rules): New functions.
18804         (main): Accept to more arguments: SpecialCasing.txt and
18805         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
18806         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
18807         Output mapping for casefolding.
18808
18809         * lib/unicase.h: Include stdbool.h, uninorm.h.
18810         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
18811         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
18812         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
18813         arguments.
18814         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
18815         resultp arguments.
18816         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
18817         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
18818         resultp arguments.
18819         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
18820         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
18821         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
18822         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
18823         declarations.
18824         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
18825
18826 2009-03-08  Bruno Haible  <bruno@clisp.org>
18827
18828         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18829         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
18830         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
18831         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18832
18833 2009-03-07  Bruno Haible  <bruno@clisp.org>
18834
18835         Adjust u*_normcmp, u*_normcoll API.
18836         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18837         u16_normcoll, u32_normcoll): Change failure conventions.
18838         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
18839         errno and return -1.
18840         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18841
18842 2009-03-07  Bruno Haible  <bruno@clisp.org>
18843
18844         Tests for module 'uninorm/u32-normcoll'.
18845         * modules/uninorm/u32-normcoll-tests: New file.
18846         * tests/uninorm/test-u32-normcoll.c: New file.
18847
18848         Tests for module 'uninorm/u16-normcoll'.
18849         * modules/uninorm/u16-normcoll-tests: New file.
18850         * tests/uninorm/test-u16-normcoll.c: New file.
18851
18852         Tests for module 'uninorm/u8-normcoll'.
18853         * modules/uninorm/u8-normcoll-tests: New file.
18854         * tests/uninorm/test-u8-normcoll.c: New file.
18855
18856 2009-03-07  Bruno Haible  <bruno@clisp.org>
18857
18858         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
18859         tests/uninorm/test-u32-normcmp.c.
18860         * tests/uninorm/test-u32-normcmp.c: Include it.
18861         (test_nonascii): New function, extracted from main. Add some more
18862         tests.
18863         (main): Invoke test_ascii and test_nonascii.
18864         * modules/uninorm/u32-normcmp-tests (Files): Add
18865         tests/uninorm/test-u32-normcmp.h.
18866         (Depends-on): Remove uninorm/u32-normcmp.
18867
18868         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
18869         tests/uninorm/test-u16-normcmp.c.
18870         * tests/uninorm/test-u16-normcmp.c: Include it.
18871         (test_nonascii): New function, extracted from main. Add some more
18872         tests.
18873         (main): Invoke test_ascii and test_nonascii.
18874         * modules/uninorm/u16-normcmp-tests (Files): Add
18875         tests/uninorm/test-u16-normcmp.h.
18876         (Depends-on): Remove uninorm/u16-normcmp.
18877
18878         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
18879         tests/uninorm/test-u8-normcmp.c.
18880         * tests/uninorm/test-u8-normcmp.c: Include it.
18881         (test_nonascii): New function, extracted from main. Add some more
18882         tests.
18883         (main): Invoke test_ascii and test_nonascii.
18884         * modules/uninorm/u8-normcmp-tests (Files): Add
18885         tests/uninorm/test-u8-normcmp.h.
18886         (Depends-on): Remove uninorm/u8-normcmp.
18887
18888 2009-03-07  Bruno Haible  <bruno@clisp.org>
18889
18890         New module 'uninorm/u32-normcoll'.
18891         * lib/uninorm/u32-normcoll.c: New file.
18892         * modules/uninorm/u32-normcoll: New file.
18893
18894         New module 'uninorm/u16-normcoll'.
18895         * lib/uninorm/u16-normcoll.c: New file.
18896         * modules/uninorm/u16-normcoll: New file.
18897
18898         New module 'uninorm/u8-normcoll'.
18899         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
18900         declarations.
18901         * lib/uninorm/u8-normcoll.c: New file.
18902         * lib/uninorm/u-normcoll.h: New file.
18903         * modules/uninorm/u8-normcoll: New file.
18904
18905         New module 'uninorm/u32-normxfrm'.
18906         * lib/uninorm/u32-normxfrm.c: New file.
18907         * modules/uninorm/u32-normxfrm: New file.
18908
18909         New module 'uninorm/u16-normxfrm'.
18910         * lib/uninorm/u16-normxfrm.c: New file.
18911         * modules/uninorm/u16-normxfrm: New file.
18912
18913         New module 'uninorm/u8-normxfrm'.
18914         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
18915         declarations.
18916         * lib/uninorm/u8-normxfrm.c: New file.
18917         * lib/uninorm/u-normxfrm.h: New file.
18918         * modules/uninorm/u8-normxfrm: New file.
18919
18920 2009-03-07  Bruno Haible  <bruno@clisp.org>
18921
18922         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
18923         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
18924         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
18925
18926 2009-03-07  Bruno Haible  <bruno@clisp.org>
18927
18928         New module 'memxfrm'.
18929         * lib/memxfrm.h: New file.
18930         * lib/memxfrm.c: New file.
18931         * modules/memxfrm: New file.
18932
18933 2009-03-07  Bruno Haible  <bruno@clisp.org>
18934
18935         New module 'memcmp2'.
18936         * lib/memcmp2.h: New file.
18937         * lib/memcmp2.c: New file.
18938         * modules/memcmp2: New file.
18939
18940 2009-03-07  Bruno Haible  <bruno@clisp.org>
18941
18942         Tests for module 'uninorm/decomposing-form'.
18943         * modules/uninorm/decomposing-form-tests: New file.
18944         * tests/uninorm/test-decomposing-form.c: New file.
18945
18946         New module 'uninorm/decomposing-form'.
18947         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
18948         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
18949         Add 'decomposing_variant' field.
18950         * lib/uninorm/decomposing-form.c: New file.
18951         * lib/uninorm/nfc.c (uninorm_nfc): Update.
18952         * lib/uninorm/nfd.c (uninorm_nfd): Update.
18953         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
18954         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
18955         * modules/uninorm/decomposing-form: New file.
18956         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
18957         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
18958
18959 2009-03-07  Bruno Haible  <bruno@clisp.org>
18960
18961         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
18962         strings.
18963
18964 2009-03-06  Bruno Haible  <bruno@clisp.org>
18965
18966         Tests for module 'uninorm/u32-normcmp'.
18967         * tests/uninorm/test-u32-normcmp.c: New file.
18968         * modules/uninorm/u32-normcmp-tests: New file.
18969
18970         Tests for module 'uninorm/u16-normcmp'.
18971         * tests/uninorm/test-u16-normcmp.c: New file.
18972         * modules/uninorm/u16-normcmp-tests: New file.
18973
18974         Tests for module 'uninorm/u8-normcmp'.
18975         * tests/uninorm/test-u8-normcmp.c: New file.
18976         * modules/uninorm/u8-normcmp-tests: New file.
18977
18978         New module 'uninorm/u32-normcmp'.
18979         * lib/uninorm/u32-normcmp.c: New file.
18980         * modules/uninorm/u32-normcmp: New file.
18981
18982         New module 'uninorm/u16-normcmp'.
18983         * lib/uninorm/u16-normcmp.c: New file.
18984         * modules/uninorm/u16-normcmp: New file.
18985
18986         New module 'uninorm/u8-normcmp'.
18987         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
18988         declarations.
18989         * lib/uninorm/u8-normcmp.c: New file.
18990         * lib/uninorm/u-normcmp.h: New file.
18991         * modules/uninorm/u8-normcmp: New file.
18992
18993 2009-03-06  Bruno Haible  <bruno@clisp.org>
18994
18995         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
18996         Reported by Eric Blake.
18997
18998 2009-03-06  Eric Blake  <ebb9@byu.net>
18999             Bruno Haible  <bruno@clisp.org>
19000
19001         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
19002         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
19003         condition.
19004         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19005         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
19006         condition.
19007         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19008
19009 2009-03-06  Eric Blake  <ebb9@byu.net>
19010
19011         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
19012         to avoid compiler warnings.
19013         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
19014
19015 2009-03-05  Bruno Haible  <bruno@clisp.org>
19016
19017         * tests/test-ftell.c (main): Disable test beyond end of file on
19018         FreeMiNT.
19019         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19020
19021 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
19022
19023         * lib/filevercmp.c: Move hidden files up in ordering.
19024         * tests/test-filevercmp.c: Add tests for hidden files.
19025
19026 2009-03-04  Bruno Haible  <bruno@clisp.org>
19027
19028         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
19029         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
19030         AM_CFLAGS.
19031         Reported by Simon Josefsson.
19032
19033 2009-03-03  Bruno Haible  <bruno@clisp.org>
19034
19035         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
19036         Reported by Simon Josefsson.
19037
19038         * doc/ld-version-script.texi: Update node reference.
19039
19040 2009-03-03  Bruno Haible  <bruno@clisp.org>
19041
19042         * modules/visibility (License): Change to 'unlimited'.
19043         Suggested by Simon Josefsson.
19044
19045 2009-03-03  Jim Meyering  <meyering@redhat.com>
19046
19047         unlinkdir: cannot_unlink_dir may modify process state
19048         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
19049         it's neither thread-safe nor appropriate for use in a library.
19050
19051 2009-03-03  Eric Blake  <ebb9@byu.net>
19052
19053         test-closein: silence test under Darwin
19054         * tests/test-closein.sh: Ignore stderr from cat, since we don't
19055         care if it dies from EPIPE or EBADF.
19056
19057 2009-03-03  Bruno Haible  <bruno@clisp.org>
19058
19059         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
19060         earlier.
19061         * doc/visibility.texi: Fix @node and @section.
19062
19063 2009-03-03  Simon Josefsson  <simon@josefsson.org>
19064
19065         * doc/gnulib.texi: Link to sections for ld version script and
19066         visibility.
19067         * doc/visibility.texi: Add @node and @section.
19068         * modules/ld-version-script: New module.
19069         * m4/ld-version-script.m4: New file.
19070         * doc/ld-version-script.texi: New file.
19071
19072 2009-03-02  David Lutterkort  <lutter@redhat.com>
19073
19074         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
19075         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19076
19077 2009-03-02  Bruno Haible  <bruno@clisp.org>
19078
19079         * doc/visibility.texi: Mention libtool's -export-symbols option.
19080
19081 2009-03-02  Jim Meyering  <meyering@redhat.com>
19082
19083         announce-gen: new option: --no-print-checksums
19084         * build-aux/announce-gen (usage): Describe it.
19085         (print_checksums): Print a newline here, not in the [*] footnote.
19086         (main): Honor it.
19087
19088 2009-03-01  Bruno Haible  <bruno@clisp.org>
19089
19090         Use socklen_t in the native Windows replacements prototypes.
19091         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
19092         instead of 'int'.
19093         * lib/getsockopt.c (rpl_getsockopt): Likewise.
19094         * lib/setsockopt.c (rpl_setsockopt): Likewise.
19095         * modules/getsockopt (Depends-on): Add socklen.
19096         * modules/setsockopt (Depends-on): Add socklen.
19097
19098 2009-03-01  Bruno Haible  <bruno@clisp.org>
19099
19100         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
19101         least 4.2.
19102
19103 2009-03-01  Eric Blake  <ebb9@byu.net>
19104             Bruno Haible  <bruno@clisp.org>
19105
19106         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
19107         error messages.
19108         * lib/wait-process.c (wait_subprocess): Omit error message about
19109         deadly signal sent to the child of termsigp != NULL.
19110
19111 2009-03-01  Eric Blake  <ebb9@byu.net>
19112
19113         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
19114
19115 2009-03-01  Bruno Haible  <bruno@clisp.org>
19116
19117         Avoid a gcc warning.
19118         * tests/test-sched.c (b): Make global.
19119         Reported by Eric Blake.
19120
19121 2009-01-19  Martin Lambers  <marlam@marlam.de>
19122
19123         Provide POSIX semantics for socket timeout options on W32.
19124         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
19125         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
19126         * modules/setsockopt: Depend on sys_time module for struct timeval.
19127         * modules/getsockopt: Depend on sys_time module for struct timeval.
19128
19129 2009-03-01  Simon Josefsson  <simon@josefsson.org>
19130
19131         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
19132         __USE_GNU, for consistency with netdb.in.h.
19133         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19134
19135 2009-03-01  Bruno Haible  <bruno@clisp.org>
19136
19137         More support for FreeMiNT.
19138         * lib/fseeko.c (rpl_fseeko): Complete last commit.
19139         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19140
19141 2009-03-01  Bruno Haible  <bruno@clisp.org>
19142
19143         More support for FreeMiNT.
19144         * lib/fpurge.c (fpurge): Correct last commit.
19145         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19146
19147 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19148
19149         Fix unportable awk script in vc-list-files.
19150         * build-aux/vc-list-files: In the replacement awk script, use
19151         substr with a second argument of 1, not zero.
19152         Report by Simon Josefsson.
19153
19154 2009-02-28  Bruno Haible  <bruno@clisp.org>
19155
19156         More support for FreeMiNT.
19157         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
19158         to FreeMiNT today.
19159         * lib/fwriting.c (fwriting): Likewise.
19160         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
19161
19162 2009-02-28  Bruno Haible  <bruno@clisp.org>
19163
19164         * tests/test-freadseek.c (main): Disable test beyond end of file on
19165         FreeMiNT.
19166         * tests/test-ftello.c (main): Likewise.
19167         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19168
19169 2009-02-28  Bruno Haible  <bruno@clisp.org>
19170
19171         Add tentative support for FreeMiNT.
19172         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
19173         * lib/fpurge.c (fpurge): Likewise.
19174         * lib/freadable.c (freadable): Likewise.
19175         * lib/freading.c (freading): Likewise.
19176         * lib/freadptr.c (freadptr): Likewise.
19177         * lib/freadseek.c (freadptrinc): Likewise.
19178         * lib/fseeko.c (rpl_fseeko): Likewise.
19179         * lib/fseterr.c (fseterr): Likewise.
19180         * lib/fwritable.c (fwritable): Likewise.
19181         * lib/fwriting.c (fwriting): Likewise.
19182         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
19183         Hourihane.
19184         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19185
19186 2009-02-28  Bruno Haible  <bruno@clisp.org>
19187
19188         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
19189         SIGCHLD.
19190         Reported by Jim Meyering.
19191
19192 2009-02-28  Bruno Haible  <bruno@clisp.org>
19193
19194         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
19195         Mention the results of these tests on various platforms.
19196         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
19197         order.
19198         * doc/posix-functions/printf.texi: Likewise.
19199         * doc/posix-functions/snprintf.texi: Likewise.
19200         * doc/posix-functions/sprintf.texi: Likewise.
19201         * doc/posix-functions/vfprintf.texi: Likewise.
19202         * doc/posix-functions/vprintf.texi: Likewise.
19203         * doc/posix-functions/vsnprintf.texi: Likewise.
19204         * doc/posix-functions/vsprintf.texi: Likewise.
19205         * doc/glibc-functions/obstack_printf.texi: Likewise.
19206         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19207
19208 2009-02-28  Bruno Haible  <bruno@clisp.org>
19209
19210         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
19211         Reported by Loïc Minier <lool@dooz.org>.
19212
19213 2009-02-27  Bruno Haible  <bruno@clisp.org>
19214
19215         * gnulib-tool (func_import): Make the sed expression used to create the
19216         sed script for updating the .gitignore file POSIX compliant.
19217         Reported by Eric Blake.
19218
19219 2009-02-27  Bruno Haible  <bruno@clisp.org>
19220
19221         * gnulib-tool (sed): Don't alias as "sed --posix".
19222         Reported by Eric Blake.
19223
19224 2009-02-27  Bruno Haible  <bruno@clisp.org>
19225
19226         Avoid test link errors.
19227         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
19228         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
19229         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
19230         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
19231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19232
19233 2009-02-27  Bruno Haible  <bruno@clisp.org>
19234
19235         Avoid spurious "(cached)" in configure output.
19236         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
19237         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
19238         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19239         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19240         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19241         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19242         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19243         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19244         Reported by Eric Blake.
19245
19246 2009-02-27  Eric Blake  <ebb9@byu.net>
19247
19248         printf: fix regression in previous patch
19249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
19250
19251 2009-02-27  Bruno Haible  <bruno@clisp.org>
19252
19253         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
19254         value.
19255         * lib/stdint.in.h: Likewise.
19256         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
19257
19258 2009-02-27  Eric Blake  <ebb9@byu.net>
19259
19260         doc: mention more functions added in cygwin 1.7.0
19261         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
19262         addition.
19263         * doc/posix-functions/open_wmemstream.texi: Likewise.
19264         * doc/posix-functions/wcsnlen.texi: Likewise.
19265         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19266         * doc/posix-functions/wcstod.texi: Likewise.
19267         * doc/posix-functions/wcstof.texi: Likewise.
19268         * doc/posix-functions/wcstoimax.texi: Likewise.
19269         * doc/posix-functions/wcstok.texi: Likewise.
19270         * doc/posix-functions/wcstoumax.texi: Likewise.
19271
19272         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
19273         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
19274         * doc/posix-functions/fprintf.texi: Update.
19275         * doc/posix-functions/printf.texi: Update.
19276         * doc/posix-functions/snprintf.texi: Update.
19277         * doc/posix-functions/sprintf.texi: Update.
19278         * doc/posix-functions/vfprintf.texi: Update.
19279         * doc/posix-functions/vprintf.texi: Update.
19280         * doc/posix-functions/vsnprintf.texi: Update.
19281         * doc/posix-functions/vsprintf.texi: Update.
19282         * doc/glibc-functions/obstack_printf.texi: Update.
19283         * doc/glibc-functions/obstack_vprintf.texi: Update.
19284
19285 2009-02-26  Eric Blake  <ebb9@byu.net>
19286
19287         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
19288         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
19289         compilation bug by using runtime conversion.
19290         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19291         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
19292         * modules/ceill-tests (Files): Use nan.h.
19293         * modules/floorl-tests (Files): Likewise.
19294         * modules/frexpl-tests (Files): Likewise.
19295         * modules/isnanl-tests (Files): Likewise.
19296         * modules/ldexpl-tests (Files): Likewise.
19297         * modules/roundl-tests (Files): Likewise.
19298         * modules/truncl-tests (Files): Likewise.
19299         * tests/test-ceill.c (main): Use a working NaN.
19300         * tests/test-floorl.c (main): Likewise.
19301         * tests/test-frexpl.c (main): Likewise.
19302         * tests/test-isnan.c (test_long_double): Likewise.
19303         * tests/test-isnanl.h (main): Likewise.
19304         * tests/test-ldexpl.h (main): Likewise.
19305         * tests/test-roundl.h (main): Likewise.
19306         * tests/test-truncl.h (main): Likewise.
19307         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
19308
19309 2009-02-26  Eric Blake  <ebb9@byu.net>
19310             Bruno Haible  <bruno@clisp.org>
19311
19312         Work around a *printf bug with %ls on Solaris.
19313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
19314         precision is specified, sprintf stops converting the wide string
19315         argument when the number of bytes that have been produced by this
19316         conversion equals or exceeds the precision.
19317         * doc/posix-functions/fprintf.texi: Update.
19318         * doc/posix-functions/printf.texi: Update.
19319         * doc/posix-functions/snprintf.texi: Update.
19320         * doc/posix-functions/sprintf.texi: Update.
19321         * doc/posix-functions/vfprintf.texi: Update.
19322         * doc/posix-functions/vprintf.texi: Update.
19323         * doc/posix-functions/vsnprintf.texi: Update.
19324         * doc/posix-functions/vsprintf.texi: Update.
19325         * doc/glibc-functions/obstack_printf.texi: Update.
19326         * doc/glibc-functions/obstack_vprintf.texi: Update.
19327
19328 2009-02-26  Eric Blake  <ebb9@byu.net>
19329
19330         stdlib: favor compiler check of random.h
19331         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
19332         to avoid an ObjC random.h installed by Swarm.
19333
19334 2009-02-26  Bruno Haible  <bruno@clisp.org>
19335
19336         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
19337         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
19338         Reported by Gary V. Vaughan <gary@gnu.org>.
19339
19340 2009-02-26  Bruno Haible  <bruno@clisp.org>
19341
19342         Fix *printf behaviour regarding the %ls directive.
19343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
19344         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
19345         NEED_PRINTF_DIRECTIVE_LS.
19346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
19347         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19348         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19349         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
19350         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
19351         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
19352         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19354         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19356         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19357         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
19358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19360         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19361         * doc/posix-functions/fprintf.texi: Update.
19362         * doc/posix-functions/printf.texi: Update.
19363         * doc/posix-functions/snprintf.texi: Update.
19364         * doc/posix-functions/sprintf.texi: Update.
19365         * doc/posix-functions/vfprintf.texi: Update.
19366         * doc/posix-functions/vprintf.texi: Update.
19367         * doc/posix-functions/vsnprintf.texi: Update.
19368         * doc/posix-functions/vsprintf.texi: Update.
19369         * doc/glibc-functions/obstack_printf.texi: Update.
19370         * doc/glibc-functions/obstack_vprintf.texi: Update.
19371         Reported by Eric Blake.
19372
19373 2009-02-25  Bruno Haible  <bruno@clisp.org>
19374
19375         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
19376         with known value.
19377         Reported by Gary V. Vaughan <gary@gnu.org>.
19378
19379 2009-02-25  Bruno Haible  <bruno@clisp.org>
19380
19381         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
19382         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
19383         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
19384         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
19385         Reported by Gary V. Vaughan <gary@gnu.org>.
19386
19387 2009-02-25  Bruno Haible  <bruno@clisp.org>
19388
19389         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
19390         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
19391         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
19392         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
19393         Reported by Gary V. Vaughan <gary@gnu.org>.
19394
19395 2009-02-25  Eric Blake  <ebb9@byu.net>
19396
19397         tests: skip fseek/ftell tests if ungetc is broken
19398         * m4/ungetc.m4: New file.
19399         * modules/fseek-tests: Split test, so ungetc dependency is
19400         separate from rest of test.
19401         * modules/fseeko-tests: Likewise.
19402         * modules/ftell-tests: Likewise.
19403         * modules/ftello-tests: Likewise.
19404         * tests/test-fseek.c (main): Isolate ungetc dependency.
19405         * tests/test-fseeko.c (main): Likewise.
19406         * tests/test-ftell.c (main): Likewise.
19407         * tests/test-ftello.c (main): Likewise.
19408         * tests/test-fseek2.sh: New file.
19409         * tests/test-fseeko2.sh: Likewise.
19410         * tests/test-ftell2.sh: Likewise.
19411         * tests/test-ftello2.sh: Likewise.
19412
19413 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
19414
19415         test-getaddrinfo: fix usage of skip return code 77
19416         * tests/test-gettaddrinfo.c: Return skip code 77 only
19417         for first occurance of skip (4x77 is not 77)
19418
19419 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
19420
19421         strtod: avoid C99 decl-after-statement
19422         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
19423
19424 2009-02-24  Eric Blake  <ebb9@byu.net>
19425
19426         strtod: detect HP-UX 11.31 bug
19427         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
19428         Reported by Gary V. Vaughan.
19429
19430 2009-02-23  Bruno Haible  <bruno@clisp.org>
19431
19432         Fix invalid read past end of memory block.
19433         * lib/vasnprintf.c (DCHAR_SET): Define.
19434         (local_wcslen): Define only when needed.
19435         (local_strnlen, local_wcsnlen): New functions.
19436         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
19437         directives that involve a conversion ourselves.
19438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
19439         wcsnlen, mbrtowc, wcrtomb.
19440         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
19441         * tests/test-vasprintf-posix.c (test_function): Likewise.
19442         * tests/test-snprintf-posix.h (test_function): Likewise.
19443         * tests/test-sprintf-posix.h (test_function): Likewise.
19444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19445
19446 2009-02-22  Bruno Haible  <bruno@clisp.org>
19447
19448         Implement new clarified decomposition of Hangul syllables.
19449         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
19450         of type LTV, return only a pairwise decomposition.
19451         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
19452         Likewise.
19453         * tests/uninorm/test-decomposition.c (main): Updated expected result.
19454         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
19455         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
19456
19457 2009-02-22  Bruno Haible  <bruno@clisp.org>
19458
19459         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
19460         zero-length results and shrink excess allocated memory.
19461         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
19462         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
19463         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
19464         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
19465         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
19466         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
19467         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
19468         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
19469         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
19470         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
19471         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
19472         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
19473
19474 2009-02-21  Bruno Haible  <bruno@clisp.org>
19475
19476         * doc/gnulib.texi: Include safe-alloc.texi earlier.
19477         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
19478         spaces after a period. Put a space between a macro name and its
19479         argument list. Trivial rewordings.
19480         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
19481         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
19482         (main): Return 0 explicitly.
19483
19484 2009-02-21  Bruno Haible  <bruno@clisp.org>
19485
19486         Tests for module 'uninorm/filter'.
19487         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
19488         * modules/uninorm/filter-tests: New file.
19489
19490         New module 'uninorm/filter'.
19491         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
19492         uninorm_filter_flush, uninorm_filter_free): New declarations.
19493         * lib/uninorm/uninorm-filter.c: New file.
19494         * modules/uninorm/filter: New file.
19495
19496 2009-02-21  Bruno Haible  <bruno@clisp.org>
19497
19498         Tests for module 'uninorm/nfkc'.
19499         * tests/uninorm/test-nfkc.c: New file.
19500         * tests/uninorm/test-u8-nfkc.c: New file.
19501         * tests/uninorm/test-u16-nfkc.c: New file.
19502         * tests/uninorm/test-u32-nfkc.c: New file.
19503         * tests/uninorm/test-u32-nfkc-big.sh: New file.
19504         * tests/uninorm/test-u32-nfkc-big.c: New file.
19505         * modules/uninorm/nfkc-tests: New file.
19506
19507         New module 'uninorm/nfkc'.
19508         * lib/uninorm/nfkc.c: New file.
19509         * modules/uninorm/nfkc: New file.
19510
19511         Tests for module 'uninorm/nfkd'.
19512         * tests/uninorm/test-nfkd.c: New file.
19513         * tests/uninorm/test-u8-nfkd.c: New file.
19514         * tests/uninorm/test-u16-nfkd.c: New file.
19515         * tests/uninorm/test-u32-nfkd.c: New file.
19516         * tests/uninorm/test-u32-nfkd-big.sh: New file.
19517         * tests/uninorm/test-u32-nfkd-big.c: New file.
19518         * modules/uninorm/nfkd-tests: New file.
19519
19520         New module 'uninorm/nfkd'.
19521         * lib/uninorm/nfkd.c: New file.
19522         * modules/uninorm/nfkd: New file.
19523
19524         Tests for module 'uninorm/nfc'.
19525         * tests/uninorm/test-nfc.c: New file.
19526         * tests/uninorm/test-u8-nfc.c: New file.
19527         * tests/uninorm/test-u16-nfc.c: New file.
19528         * tests/uninorm/test-u32-nfc.c: New file.
19529         * tests/uninorm/test-u32-nfc-big.sh: New file.
19530         * tests/uninorm/test-u32-nfc-big.c: New file.
19531         * modules/uninorm/nfc-tests: New file.
19532
19533         New module 'uninorm/nfc'.
19534         * lib/uninorm/nfc.c: New file.
19535         * modules/uninorm/nfc: New file.
19536
19537         Tests for module 'uninorm/nfd'.
19538         * tests/uninorm/test-nfd.c: New file.
19539         * tests/uninorm/test-u8-nfd.c: New file.
19540         * tests/uninorm/test-u16-nfd.c: New file.
19541         * tests/uninorm/test-u32-nfd.c: New file.
19542         * tests/uninorm/test-u32-nfd-big.sh: New file.
19543         * tests/uninorm/test-u32-nfd-big.c: New file.
19544         * tests/uninorm/test-u32-normalize-big.h: New file.
19545         * tests/uninorm/test-u32-normalize-big.c: New file.
19546         * tests/uninorm/NormalizationTest.txt: New file, created from
19547         Unicode 5.1.0 NormalizationTest.txt.
19548         * modules/uninorm/nfd-tests: New file.
19549
19550         New module 'uninorm/nfd'.
19551         * lib/uninorm/nfd.c: New file.
19552         * modules/uninorm/nfd: New file.
19553
19554         New module 'uninorm/u32-normalize'.
19555         * lib/uninorm/u32-normalize.c: New file.
19556         * modules/uninorm/u32-normalize: New file.
19557
19558         New module 'uninorm/u16-normalize'.
19559         * lib/uninorm/u16-normalize.c: New file.
19560         * modules/uninorm/u16-normalize: New file.
19561
19562         New module 'uninorm/u8-normalize'.
19563         * lib/uninorm/u8-normalize.c: New file.
19564         * lib/uninorm/normalize-internal.h: New file.
19565         * lib/uninorm/u-normalize-internal.h: New file.
19566         * modules/uninorm/u8-normalize: New file.
19567
19568         New module 'uninorm/decompose-internal'.
19569         * lib/uninorm/decompose-internal.c: New file.
19570         * modules/uninorm/decompose-internal: New file.
19571
19572         Tests for module 'uninorm/composition'.
19573         * tests/uninorm/test-composition.c: New file.
19574         * modules/uninorm/composition-tests: New file.
19575
19576         New module 'uninorm/composition'.
19577         * lib/uninorm/composition.c: New file.
19578         * lib/uninorm/composition-table.gperf: New file, generated by
19579         gen-uni-tables.
19580         * modules/uninorm/composition: New file.
19581
19582         Tests for module 'uninorm/compat-decomposition'.
19583         * tests/uninorm/test-compat-decomposition.c: New file.
19584         * modules/uninorm/compat-decomposition-tests: New file.
19585
19586         New module 'uninorm/compat-decomposition'.
19587         * lib/uninorm/decompose-internal.h: New file.
19588         * lib/uninorm/compat-decomposition.c: New file.
19589         * modules/uninorm/compat-decomposition: New file.
19590
19591         Tests for module 'uninorm/canonical-decomposition'.
19592         * tests/uninorm/test-canonical-decomposition.c: New file.
19593         * modules/uninorm/canonical-decomposition-tests: New file.
19594
19595         New module 'uninorm/canonical-decomposition'.
19596         * lib/uninorm/canonical-decomposition.c: New file.
19597         * modules/uninorm/canonical-decomposition: New file.
19598
19599         Tests for module 'uninorm/decomposition'.
19600         * tests/uninorm/test-decomposition.c: New file.
19601         * modules/uninorm/decomposition-tests: New file.
19602
19603         New module 'uninorm/decomposition'.
19604         * lib/uninorm/decomposition.c: New file.
19605         * modules/uninorm/decomposition: New file.
19606
19607         New module 'uninorm/decomposition-table'.
19608         * lib/uninorm/decomposition-table.h: New file.
19609         * lib/uninorm/decomposition-table.c: New file.
19610         * lib/uninorm/decomposition-table1.h: New file, generated by
19611         gen-uni-tables.
19612         * lib/uninorm/decomposition-table2.h: New file, generated by
19613         gen-uni-tables.
19614         * modules/uninorm/decomposition-table: New file.
19615
19616         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19617         (UC_DECOMP_*): New enumeration items.
19618         (get_decomposition): New function.
19619         (struct decomp_table): New type.
19620         (output_decomposition, output_decomposition_tables): New functions.
19621         (unicode_composition_exclusions): New variable.
19622         (fill_composition_exclusions, debug_output_composition_tables): New
19623         functions.
19624         (main): Accept one more argument. Invoke fill_composition_exclusions.
19625         Output decomposition and composition tables.
19626
19627         New module 'uninorm/base'.
19628         * lib/uninorm.h: New file.
19629         * lib/unictype.h: Update comment.
19630         * modules/uninorm/base: New file.
19631
19632 2009-02-21  David Lutterkort  <lutter@redhat.com>
19633
19634         Tests for module 'safe-alloc'.
19635         * tests/test-safe-alloc.c: New file.
19636         * modules/safe-alloc-tests: New file.
19637
19638         New module 'safe-alloc'.
19639         * lib/safe-alloc.h: New file.
19640         * lib/safe-alloc.c: New file.
19641         * m4/safe-alloc.m4: New file.
19642         * modules/safe-alloc: New file.
19643         * doc/safe-alloc.texi: New file.
19644         * doc/gnulib.texi: Include it.
19645         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19646         safe-alloc.
19647
19648 2009-02-18  Bruno Haible  <bruno@clisp.org>
19649
19650         Fix link error on non-glibc systems.
19651         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19652         variable.
19653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19654
19655 2009-02-18  Jim Meyering  <meyering@redhat.com>
19656
19657         fts: avoid used-uninitialized error due to recent change
19658         * lib/fts.c (fts_read): Guard uses of the new member,
19659         parent->fts_n_dirs_remaining, since it's not relevant for
19660         the parent of a directory specified on the command-line.
19661
19662 2009-02-17  James Youngman  <jay@gnu.org>
19663             Bruno Haible  <bruno@clisp.org>
19664
19665         * m4/include_next.m4: Reformulate comment.
19666
19667 2009-02-16  Jim Meyering  <meyering@redhat.com>
19668
19669         fts: add #if guards so that the fts_lgpl module still builds
19670         * lib/fts.c: Guard just-added hash-table-using parts with
19671         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19672         Reported by Simon Josefsson.
19673
19674 2009-02-15  Bruno Haible  <bruno@clisp.org>
19675
19676         * modules/array-mergesort-tests: New file.
19677         * tests/test-array-mergesort.c: New file.
19678
19679         New module 'array-mergesort'.
19680         * modules/array-mergesort: New file.
19681         * lib/array-mergesort.h: New file.
19682
19683 2009-02-15  Bruno Haible  <bruno@clisp.org>
19684
19685         Fix 2009-02-07 commit.
19686         * lib/gen-uni-tables.c (output_predicate, output_category,
19687         output_combclass, output_bidi_category, output_decimal_digit,
19688         output_digit, output_numeric, output_mirror, output_scripts,
19689         output_ident_category, output_simple_mapping): Fix format directives.
19690         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19691
19692 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19693
19694         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19695         fixes are available from IBM.
19696
19697 2009-02-13  Jim Meyering  <meyering@redhat.com>
19698
19699         fts: arrange not to stat non-directories in more cases
19700         This makes GNU find (when it doesn't need to stat each file)
19701         *much* more efficient at traversing reiserfs file systems.
19702         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19703         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19704         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19705         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19706         (leaf_optimization_applies): New function.
19707         (LCO_hash, LCO_compare): New helper functions.
19708         (link_count_optimize_ok): New function.
19709         (fts_stat): Initialize new member (if dir).
19710         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19711         we've just stat'ed a directory.  Skip the stat call when possible.
19712         ---
19713         Note this AFS-related exchange:
19714         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19715         and note find's pioctl call in find/fstype.c.
19716         But that is necessary only if you want to enable the
19717         optimization for AFS, and for now, I don't.
19718
19719         fts: move a function definition "up" (no semantic change)
19720         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
19721         "up" to precede upcoming use of a related function.
19722
19723 2009-02-11  Jim Meyering  <meyering@redhat.com>
19724
19725         fts: correct internal computation of nlinks (optimization-related)
19726         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
19727         whether the current entry is a directory, so don't test it.
19728
19729 2009-02-10  Bruno Haible  <bruno@clisp.org>
19730
19731         Tests for module 'uniwbrk/ulc-wordbreaks'.
19732         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
19733         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
19734         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
19735
19736         Tests for module 'uniwbrk/u32-wordbreaks'.
19737         * modules/uniwbrk/u32-wordbreaks-tests: New file.
19738         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
19739
19740         Tests for module 'uniwbrk/u16-wordbreaks'.
19741         * modules/uniwbrk/u16-wordbreaks-tests: New file.
19742         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
19743
19744         Tests for module 'uniwbrk/u8-wordbreaks'.
19745         * modules/uniwbrk/u8-wordbreaks-tests: New file.
19746         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
19747
19748 2009-02-10  Bruno Haible  <bruno@clisp.org>
19749
19750         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
19751         property.
19752         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
19753         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
19754         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
19755
19756 2009-02-10  Simon Josefsson  <simon@josefsson.org>
19757
19758         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
19759         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
19760
19761 2009-02-10  Bruno Haible  <bruno@clisp.org>
19762
19763         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
19764         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
19765         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
19766         * lib/unilbrk/u8-possible-linebreaks.c: Update.
19767         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
19768         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
19769
19770 2009-02-09  Simon Josefsson  <simon@josefsson.org>
19771
19772         * lib/sockets.h (gl_fd_to_handle): New function.
19773
19774         * tests/test-sockets.c: Call gl_fd_to_handle.
19775
19776 2009-02-09  Bruno Haible  <bruno@clisp.org>
19777
19778         * doc/havelib.texi: Document the conventions on bi-arch systems.
19779
19780 2009-02-08  Bruno Haible  <bruno@clisp.org>
19781
19782         Document the AC_LIB_LINKFLAGS macro.
19783         * doc/havelib.texi: New file, mostly written on 2005-05-24.
19784         * doc/gnulib.texi: Include it.
19785
19786 2009-02-08  Bruno Haible  <bruno@clisp.org>
19787
19788         Fix wrong order of sections, compared to TOC.
19789         * doc/gnulib.texi: Include relocatable-maint.texi after the
19790         "Regular expressions" node, not before.
19791
19792 2009-02-08  Bruno Haible  <bruno@clisp.org>
19793
19794         Tests for module 'unicase/totitle'.
19795         * modules/unicase/totitle-tests: New file.
19796
19797         Tests for module 'unicase/tolower'.
19798         * modules/unicase/tolower-tests: New file.
19799
19800         Tests for module 'unicase/toupper'.
19801         * modules/unicase/toupper-tests: New file.
19802         * tests/unicase/test-mapping-part1.h: New file.
19803         * tests/unicase/test-mapping-part2.h: New file.
19804
19805         New module 'unicase/totitle'.
19806         * modules/unicase/totitle: New file.
19807         * lib/unicase/totitle.c: New file.
19808
19809         New module 'unicase/tolower'.
19810         * modules/unicase/tolower: New file.
19811         * lib/unicase/tolower.c: New file.
19812
19813         New module 'unicase/toupper'.
19814         * modules/unicase/toupper: New file.
19815         * lib/unicase/toupper.c: New file.
19816         * lib/unicase/simple-mapping.h: New file.
19817
19818         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
19819         (mapping_table): New structure.
19820         (output_simple_mapping): New function.
19821         (main): Invoke output_simple_mapping_test and output_simple_mapping.
19822         * modules/gen-uni-tables (Description): Update.
19823         * lib/unicase/toupper.h: New file, automatically generated by
19824         gen-uni-tables.
19825         * lib/unicase/tolower.h: New file, automatically generated by
19826         gen-uni-tables.
19827         * lib/unicase/totitle.h: New file, automatically generated by
19828         gen-uni-tables.
19829         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
19830         gen-uni-tables.
19831         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
19832         gen-uni-tables.
19833         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
19834         gen-uni-tables.
19835
19836         New module 'unicase/base'.
19837         * modules/unicase/base: New file.
19838         * lib/unicase.h: New file.
19839
19840 2009-02-08  Bruno Haible  <bruno@clisp.org>
19841
19842         New module 'uniwbrk/ulc-wordbreaks'.
19843         * modules/uniwbrk/ulc-wordbreaks: New file.
19844         * lib/uniwbrk/ulc-wordbreaks.c: New file.
19845
19846         New module 'uniwbrk/u32-wordbreaks'.
19847         * modules/uniwbrk/u32-wordbreaks: New file.
19848         * lib/uniwbrk/u32-wordbreaks.c: New file.
19849
19850         New module 'uniwbrk/u16-wordbreaks'.
19851         * modules/uniwbrk/u16-wordbreaks: New file.
19852         * lib/uniwbrk/u16-wordbreaks.c: New file.
19853
19854         New module 'uniwbrk/u8-wordbreaks'.
19855         * modules/uniwbrk/u8-wordbreaks: New file.
19856         * lib/uniwbrk/u8-wordbreaks.c: New file.
19857         * lib/uniwbrk/u-wordbreaks.h: New file.
19858
19859         New module 'uniwbrk/table'.
19860         * modules/uniwbrk/table: New file.
19861         * lib/uniwbrk/wbrktable.h: New file.
19862         * lib/uniwbrk/wbrktable.c: New file.
19863
19864         New module 'uniwbrk/wordbreak-property'.
19865         * modules/uniwbrk/wordbreak-property: New file.
19866         * lib/uniwbrk/wordbreak-property.c: New file.
19867
19868         * lib/gen-uni-tables.c (WBP_*): New enum items.
19869         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
19870         (unicode_org_wbp): New variable.
19871         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
19872         New functions.
19873         (wbp_table): New structure.
19874         (output_wbp, output_wbrk_tables): New functions.
19875         (main): Accept additional argument. Invoke fill_org_wbp,
19876         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
19877         output_wbrk_tables.
19878         * modules/gen-uni-tables (Description): Update.
19879         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
19880         gen-uni-tables.
19881
19882         New module 'uniwbrk/base'.
19883         * modules/uniwbrk/base: New file.
19884         * lib/uniwbrk.h: New file.
19885
19886 2009-02-08  Bruno Haible  <bruno@clisp.org>
19887
19888         Update to Unicode 5.1.0.
19889         * lib/gen-uni-tables.c (is_property_alphabetic): Include
19890         U+2185..U+2188.
19891         (is_property_default_ignorable_code_point): Don't include characters
19892         of category Cc or Cs and not-a-characters.
19893         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
19894         U+0D79, U+109E, U+109F, U+A60C.
19895         * lib/unictype/bidi_of.h: Regenerated.
19896         * lib/unictype/blocks.h: Regenerated.
19897         * lib/unictype/categ_C.h: Regenerated.
19898         * lib/unictype/categ_Cf.h: Regenerated.
19899         * lib/unictype/categ_Cn.h: Regenerated.
19900         * lib/unictype/categ_L.h: Regenerated.
19901         * lib/unictype/categ_Ll.h: Regenerated.
19902         * lib/unictype/categ_Lm.h: Regenerated.
19903         * lib/unictype/categ_Lo.h: Regenerated.
19904         * lib/unictype/categ_Lu.h: Regenerated.
19905         * lib/unictype/categ_M.h: Regenerated.
19906         * lib/unictype/categ_Mc.h: Regenerated.
19907         * lib/unictype/categ_Me.h: Regenerated.
19908         * lib/unictype/categ_Mn.h: Regenerated.
19909         * lib/unictype/categ_N.h: Regenerated.
19910         * lib/unictype/categ_Nd.h: Regenerated.
19911         * lib/unictype/categ_Nl.h: Regenerated.
19912         * lib/unictype/categ_No.h: Regenerated.
19913         * lib/unictype/categ_P.h: Regenerated.
19914         * lib/unictype/categ_Pd.h: Regenerated.
19915         * lib/unictype/categ_Pe.h: Regenerated.
19916         * lib/unictype/categ_Pf.h: Regenerated.
19917         * lib/unictype/categ_Pi.h: Regenerated.
19918         * lib/unictype/categ_Po.h: Regenerated.
19919         * lib/unictype/categ_Ps.h: Regenerated.
19920         * lib/unictype/categ_S.h: Regenerated.
19921         * lib/unictype/categ_Sk.h: Regenerated.
19922         * lib/unictype/categ_Sm.h: Regenerated.
19923         * lib/unictype/categ_So.h: Regenerated.
19924         * lib/unictype/categ_of.h: Regenerated.
19925         * lib/unictype/combining.h: Regenerated.
19926         * lib/unictype/ctype_alnum.h: Regenerated.
19927         * lib/unictype/ctype_alpha.h: Regenerated.
19928         * lib/unictype/ctype_graph.h: Regenerated.
19929         * lib/unictype/ctype_lower.h: Regenerated.
19930         * lib/unictype/ctype_print.h: Regenerated.
19931         * lib/unictype/ctype_punct.h: Regenerated.
19932         * lib/unictype/ctype_upper.h: Regenerated.
19933         * lib/unictype/decdigit.h: Regenerated.
19934         * lib/unictype/digit.h: Regenerated.
19935         * lib/unictype/mirror.h: Regenerated.
19936         * lib/unictype/numeric.h: Regenerated.
19937         * lib/unictype/pr_alphabetic.h: Regenerated.
19938         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
19939         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
19940         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
19941         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
19942         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
19943         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
19944         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
19945         * lib/unictype/pr_combining.h: Regenerated.
19946         * lib/unictype/pr_dash.h: Regenerated.
19947         * lib/unictype/pr_decimal_digit.h: Regenerated.
19948         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
19949         * lib/unictype/pr_deprecated.h: Regenerated.
19950         * lib/unictype/pr_diacritic.h: Regenerated.
19951         * lib/unictype/pr_extender.h: Regenerated.
19952         * lib/unictype/pr_format_control.h: Regenerated.
19953         * lib/unictype/pr_grapheme_base.h: Regenerated.
19954         * lib/unictype/pr_grapheme_extend.h: Regenerated.
19955         * lib/unictype/pr_grapheme_link.h: Regenerated.
19956         * lib/unictype/pr_id_continue.h: Regenerated.
19957         * lib/unictype/pr_id_start.h: Regenerated.
19958         * lib/unictype/pr_ideographic.h: Regenerated.
19959         * lib/unictype/pr_ignorable_control.h: Regenerated.
19960         * lib/unictype/pr_lowercase.h: Regenerated.
19961         * lib/unictype/pr_math.h: Regenerated.
19962         * lib/unictype/pr_numeric.h: Regenerated.
19963         * lib/unictype/pr_other_alphabetic.h: Regenerated.
19964         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
19965         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
19966         * lib/unictype/pr_other_id_continue.h: Regenerated.
19967         * lib/unictype/pr_other_lowercase.h: Regenerated.
19968         * lib/unictype/pr_other_math.h: Regenerated.
19969         * lib/unictype/pr_punctuation.h: Regenerated.
19970         * lib/unictype/pr_sentence_terminal.h: Regenerated.
19971         * lib/unictype/pr_soft_dotted.h: Regenerated.
19972         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
19973         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
19974         * lib/unictype/pr_unified_ideograph.h: Regenerated.
19975         * lib/unictype/pr_uppercase.h: Regenerated.
19976         * lib/unictype/pr_xid_continue.h: Regenerated.
19977         * lib/unictype/pr_xid_start.h: Regenerated.
19978         * lib/unictype/pr_zero_width.h: Regenerated.
19979         * lib/unictype/scripts.h: Regenerated.
19980         * lib/unictype/scripts_byname.gperf: Regenerated.
19981         * lib/unictype/sy_java_ident.h: Regenerated.
19982         * lib/unilbrk/lbrkprop1.h: Regenerated.
19983         * lib/unilbrk/lbrkprop2.h: Regenerated.
19984         * tests/unictype/test-categ_C.c: Regenerated.
19985         * tests/unictype/test-categ_Cf.c: Regenerated.
19986         * tests/unictype/test-categ_Cn.c: Regenerated.
19987         * tests/unictype/test-categ_L.c: Regenerated.
19988         * tests/unictype/test-categ_Ll.c: Regenerated.
19989         * tests/unictype/test-categ_Lm.c: Regenerated.
19990         * tests/unictype/test-categ_Lo.c: Regenerated.
19991         * tests/unictype/test-categ_Lu.c: Regenerated.
19992         * tests/unictype/test-categ_M.c: Regenerated.
19993         * tests/unictype/test-categ_Mc.c: Regenerated.
19994         * tests/unictype/test-categ_Me.c: Regenerated.
19995         * tests/unictype/test-categ_Mn.c: Regenerated.
19996         * tests/unictype/test-categ_N.c: Regenerated.
19997         * tests/unictype/test-categ_Nd.c: Regenerated.
19998         * tests/unictype/test-categ_Nl.c: Regenerated.
19999         * tests/unictype/test-categ_No.c: Regenerated.
20000         * tests/unictype/test-categ_P.c: Regenerated.
20001         * tests/unictype/test-categ_Pd.c: Regenerated.
20002         * tests/unictype/test-categ_Pe.c: Regenerated.
20003         * tests/unictype/test-categ_Pf.c: Regenerated.
20004         * tests/unictype/test-categ_Pi.c: Regenerated.
20005         * tests/unictype/test-categ_Po.c: Regenerated.
20006         * tests/unictype/test-categ_Ps.c: Regenerated.
20007         * tests/unictype/test-categ_S.c: Regenerated.
20008         * tests/unictype/test-categ_Sk.c: Regenerated.
20009         * tests/unictype/test-categ_Sm.c: Regenerated.
20010         * tests/unictype/test-categ_So.c: Regenerated.
20011         * tests/unictype/test-ctype_alnum.c: Regenerated.
20012         * tests/unictype/test-ctype_alpha.c: Regenerated.
20013         * tests/unictype/test-ctype_graph.c: Regenerated.
20014         * tests/unictype/test-ctype_lower.c: Regenerated.
20015         * tests/unictype/test-ctype_print.c: Regenerated.
20016         * tests/unictype/test-ctype_punct.c: Regenerated.
20017         * tests/unictype/test-ctype_upper.c: Regenerated.
20018         * tests/unictype/test-decdigit.h: Regenerated.
20019         * tests/unictype/test-digit.h: Regenerated.
20020         * tests/unictype/test-numeric.h: Regenerated.
20021         * tests/unictype/test-pr_alphabetic.c: Regenerated.
20022         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
20023         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
20024         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
20025         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
20026         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
20027         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
20028         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
20029         * tests/unictype/test-pr_combining.c: Regenerated.
20030         * tests/unictype/test-pr_dash.c: Regenerated.
20031         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
20032         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
20033         * tests/unictype/test-pr_deprecated.c: Regenerated.
20034         * tests/unictype/test-pr_diacritic.c: Regenerated.
20035         * tests/unictype/test-pr_extender.c: Regenerated.
20036         * tests/unictype/test-pr_format_control.c: Regenerated.
20037         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
20038         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
20039         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
20040         * tests/unictype/test-pr_id_continue.c: Regenerated.
20041         * tests/unictype/test-pr_id_start.c: Regenerated.
20042         * tests/unictype/test-pr_ideographic.c: Regenerated.
20043         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
20044         * tests/unictype/test-pr_lowercase.c: Regenerated.
20045         * tests/unictype/test-pr_math.c: Regenerated.
20046         * tests/unictype/test-pr_numeric.c: Regenerated.
20047         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
20048         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
20049         Regenerated.
20050         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
20051         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
20052         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
20053         * tests/unictype/test-pr_other_math.c: Regenerated.
20054         * tests/unictype/test-pr_punctuation.c: Regenerated.
20055         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
20056         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
20057         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
20058         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
20059         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
20060         * tests/unictype/test-pr_uppercase.c: Regenerated.
20061         * tests/unictype/test-pr_xid_continue.c: Regenerated.
20062         * tests/unictype/test-pr_xid_start.c: Regenerated.
20063         * tests/unictype/test-pr_zero_width.c: Regenerated.
20064
20065         Update to Unicode 5.1.0.
20066         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
20067         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
20068         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
20069         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
20070         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
20071         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
20072         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
20073         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
20074         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
20075         (nonspacing_table_ind): Update.
20076         * tests/uniwidth/test-uc_width2.sh: Update expected result.
20077
20078         Update to Unicode 5.1.0.
20079         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
20080         code transform.
20081         * lib/uniname/uniname.c (unicode_character_name,
20082         unicode_name_character): Add the range 0x1Fxxx to the code transform.
20083         * lib/uniname/uninames.h: Regenerated.
20084         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
20085
20086 2009-02-07  Bruno Haible  <bruno@clisp.org>
20087
20088         Merge gen-ctype and gen-lbrk into a single program.
20089         * lib/gen-uni-tables.c: New file, incorporating
20090         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
20091         Add directory prefixes to the names of the generated files.
20092         * lib/unictype/gen-ctype.c: Remove file.
20093         * lib/unilbrk/gen-lbrk.c: Remove file.
20094         * modules/gen-uni-tables: New file.
20095         * modules/unictype/gen-ctype: Remove file.
20096         * modules/unilbrk/gen-lbrk: Remove file.
20097
20098 2009-02-07  Bruno Haible  <bruno@clisp.org>
20099
20100         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
20101
20102         New module 'unistr/u32-strcoll'.
20103         * modules/unistr/u32-strcoll: New file.
20104         * lib/unistr/u32-strcoll.c: New file.
20105
20106         New module 'unistr/u16-strcoll'.
20107         * modules/unistr/u16-strcoll: New file.
20108         * lib/unistr/u16-strcoll.c: New file.
20109
20110         New module 'unistr/u8-strcoll'.
20111         * modules/unistr/u8-strcoll: New file.
20112         * lib/unistr/u8-strcoll.c: New file.
20113         * lib/unistr/u-strcoll.h: New file.
20114
20115 2009-02-07  Bruno Haible  <bruno@clisp.org>
20116
20117         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
20118         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20119         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20120         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
20121         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
20122         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
20123
20124 2009-02-07  Bruno Haible  <bruno@clisp.org>
20125
20126         Make 64-bit clean.
20127         * lib/unictype/gen-ctype.c (output_predicate, output_category,
20128         output_combclass, output_bidi_category, output_decimal_digit,
20129         output_digit, output_numeric, output_mirror, output_scripts,
20130         output_ident_category): Use proper width specifier in format strings.
20131
20132 2009-02-07  Bruno Haible  <bruno@clisp.org>
20133
20134         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
20135         failure behaviour.
20136
20137 2009-02-07  Jim Meyering  <meyering@redhat.com>
20138
20139         regex: avoid compilation failure with upcoming gcc-4.4
20140         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
20141         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
20142         "... error: integer overflow in preprocessor expression".
20143
20144 2009-02-05  Ben Pfaff  <blp@gnu.org>
20145
20146         Fix link errors on Windows when close module is used.
20147         * modules/close: Add $(LIB_CLOSE) to Link section.
20148         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
20149         $(LIB_CLOSE) on Windows.
20150
20151 2009-02-05  Jim Meyering  <meyering@redhat.com>
20152
20153         still avoid unused-parameter warnings, but do it cleanly
20154         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
20155         (get_fs_usage): Cast to void instead.
20156         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
20157         (dev_from_mount_options, read_file_system_list): Cast to void.
20158         Prompted by Bruno Haible.
20159
20160 2009-02-04  Jim Meyering  <meyering@redhat.com>
20161
20162         fsusage.c: correct copyright year
20163         * lib/fsusage.c: Reflect year in which the change is pushed into
20164
20165         avoid misc. warnings
20166         * lib/fsusage.c (UNUSED_PARAM): Define.
20167         (get_fs_usage): Mark parameter "disk" as unused.
20168         * lib/getugroups.c (getgrent): Use "void" in prototype.
20169         * lib/mountlist.c: Mark unused parameters.
20170         (read_file_system_list): Declare a local with "const".
20171         * lib/nanosleep.c (getnow): Declare static.
20172         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
20173
20174         dirfd: set errno upon failure
20175         * lib/dirfd.c: Include <errno.h>.
20176         Set errno to ENOTSUP when returning -1.
20177         * modules/dirfd (Depends-on): Add errno.
20178         Suggested by John Kodis <kodis@comcast.net>.
20179
20180 2009-02-01  Bruno Haible  <bruno@clisp.org>
20181
20182         Don't assume sizeof (long) >= sizeof (void *).
20183         * lib/memcmp.c: Include stdint.h.
20184         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
20185         srcp2 to 'const byte *'.
20186         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
20187         types to uintptr_t.
20188         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
20189         * modules/memcmp (Depends-on): Add stdint.
20190         Reported by Ozkan Sezer <sezeroz@gmail.com>.
20191
20192 2009-01-30  Eric Blake  <ebb9@byu.net>
20193
20194         fix more require-before-expand issues
20195         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
20196         expand, AC_PROG_AWK.
20197         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
20198
20199 2009-01-28  Eric Blake  <ebb9@byu.net>
20200
20201         version-etc: use consistent URL formatting
20202         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
20203         Improve formatting.  Use fputs for string without %.
20204
20205 2009-01-28  Jim Meyering  <meyering@redhat.com>
20206
20207         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
20208         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
20209         "underquoted definition of NAME" from autoconf-2.59.
20210
20211 2009-01-28  Bruno Haible  <bruno@clisp.org>
20212
20213         * doc/gnulib.texi: Add "Obsolete modules" to index.
20214
20215 2009-01-28  Jim Meyering  <meyering@redhat.com>
20216
20217         useless-if-before-free: recognize more variants
20218         * build-aux/useless-if-before-free: Also recognize e.g.,
20219         if (NULL != p) free (p);
20220
20221 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
20222
20223         test-getaddrinfo: skip (don't fail) this test when there's no network
20224         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
20225         on the presumption that it means you lack network access.
20226
20227 2009-01-26  Jim Meyering  <meyering@redhat.com>
20228
20229         fflush: avoid warnings on modern systems
20230         * lib/fflush.c (rpl_fflush): Move declarations of locals,
20231         pos and result, into scopes where they're used.
20232
20233 2009-01-26  Eric Blake  <ebb9@byu.net>
20234
20235         Silence warning reintroduced by recent extensions patch.
20236         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
20237         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
20238         autoconf.
20239
20240         Backport improved autoconf semantics of AC_DEFUN_ONCE.
20241         * m4/00gnulib.m4: New file.
20242         * gnulib-tool (func_get_filelist): Always use it.
20243         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
20244         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
20245
20246 2009-01-25  Bruno Haible  <bruno@clisp.org>
20247
20248         Make test-quotearg work on MacOS X and AIX.
20249         * tests/test-quotearg.sh: New file.
20250         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
20251         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
20252         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
20253         include <libintl.h>.
20254         (fake_locale): Remove variable.
20255         (gettext, dgettext, dcgettext): Remove functions.
20256         (main): Instead of setting a fake locale, set a real locale. Call
20257         textdomain and bindtextdomain.
20258         * modules/quotearg-tests (Files): Add the new files.
20259         (Depends-on): Add gettext, setenv, unsetenv.
20260         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
20261         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
20262         Augment TESTS_ENVIRONMENT.
20263
20264 2009-01-25  Bruno Haible  <bruno@clisp.org>
20265
20266         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
20267         fr_FR.ISO8859-1 locale on MacOS X.
20268         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
20269         ja_JP.eucJP locale on MacOS X.
20270         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
20271         zh_CN.GB18030 locale on MacOS X.
20272
20273 2009-01-25  Bruno Haible  <bruno@clisp.org>
20274
20275         Avoid link errors on MacOS X 10.3.
20276         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
20277         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20278
20279 2009-01-25  Bruno Haible  <bruno@clisp.org>
20280
20281         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20282         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
20283         * modules/pipe (Files): Remove m4/posix_spawn.m4.
20284         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20285         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
20286         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20287         posix_spawnattr_init, posix_spawnattr_setsigmask,
20288         posix_spawnattr_setflags, posix_spawnattr_destroy.
20289
20290         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20291         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
20292         * modules/execute (Files): Remove m4/posix_spawn.m4.
20293         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20294         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20295         posix_spawnattr_init, posix_spawnattr_setsigmask,
20296         posix_spawnattr_setflags, posix_spawnattr_destroy.
20297
20298 2009-01-25  Bruno Haible  <bruno@clisp.org>
20299
20300         * lib/glthread/threadlib.c: Include <stdlib.h>.
20301
20302 2009-01-25  Bruno Haible  <bruno@clisp.org>
20303
20304         * lib/glthread/threadlib.c (dummy): New declaration.
20305
20306 2009-01-25  Bruno Haible  <bruno@clisp.org>
20307
20308         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
20309         multibyte characters also for the GB18030 encoding. Don't crash when
20310         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
20311
20312 2009-01-25  Bruno Haible  <bruno@clisp.org>
20313
20314         Avoid redefining 'struct random_data' on OSF/1 5.1.
20315         * lib/stdlib.in.h: Include <random.h> if it exists.
20316         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
20317         HAVE_RANDOM_H. Include <random.h> when testing whether
20318         'struct random_data' exists.
20319         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
20320
20321 2009-01-25  Bruno Haible  <bruno@clisp.org>
20322
20323         Don't install charset.alias on MacOS X >= 10.3.
20324         * lib/localcharset.c (DARWIN7): New macro.
20325         (get_charset_aliases): Hardcode the result for Darwin7.
20326         * modules/localcharset (install-exec-local): Don't install
20327         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
20328
20329 2009-01-25  Bruno Haible  <bruno@clisp.org>
20330
20331         Don't install charset.alias on mingw and Cygwin.
20332         * modules/localcharset (install-exec-local): Don't install
20333         charset.alias on mingw and Cygwin, if the file does not yet exist.
20334         The result for these platforms is hardcoded in localcharset.c.
20335
20336 2009-01-25  Bruno Haible  <bruno@clisp.org>
20337
20338         Make it possible again to use AC_GNU_SOURCE together with gnulib.
20339         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
20340         before requiring AC_USE_SYSTEM_EXTENSIONS.
20341
20342 2009-01-25  Jim Meyering  <meyering@redhat.com>
20343
20344         c-strtod: avoid warnings
20345         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
20346         "assignment discards qualifiers from pointer target type" warnings.
20347
20348 2009-01-24  Bruno Haible  <bruno@clisp.org>
20349
20350         Add support for non-UTF-8 locales on MacOS X.
20351         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
20352         canonical encodings. For Darwin 7 and newer, don't map traditional
20353         encodings to UTF-8.
20354         Reported by Vincent Lefevre <vincent@vinc17.org>
20355         at <http://savannah.gnu.org/bugs/?25235>.
20356
20357 2009-01-24  Bruno Haible  <bruno@clisp.org>
20358
20359         * doc/gnulib.texi (Obsolete modules): New section.
20360         Reported by Mike Frysinger <vapier@gentoo.org>.
20361
20362 2009-01-24  Bruno Haible  <bruno@clisp.org>
20363
20364         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
20365         (%.dvi): New rule.
20366
20367 2009-01-24  Bruno Haible  <bruno@clisp.org>
20368
20369         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
20370         Reported by Eric Blake.
20371
20372 2009-01-24  Bruno Haible  <bruno@clisp.org>
20373
20374         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
20375         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
20376         Reported by Gary V. Vaughan <gary@gnu.org>.
20377
20378 2009-01-24  Bruno Haible  <bruno@clisp.org>
20379
20380         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
20381
20382 2009-01-23  Bruno Haible  <bruno@clisp.org>
20383
20384         Make c-strtod, c-strtold usable in libraries.
20385         * lib/c-strtod.c: Include string.h instead of xalloc.h.
20386         (C_STRTOD): Call strdup instead of xstrdup.
20387         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
20388         * modules/c-strtold (Depends-on): Likewise.
20389         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
20390         * NEWS: Mention the change.
20391         Reported by Michael Gold <mgold@ncf.ca>.
20392
20393 2009-01-23  Jim Meyering  <meyering@redhat.com>
20394
20395         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
20396         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
20397         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
20398
20399 2009-01-23  Simon Josefsson  <simon@josefsson.org>
20400
20401         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
20402         GNU CoreUtils.
20403         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
20404         * modules/version-etc (Description): Update.
20405
20406 2009-01-22  Bruno Haible  <bruno@clisp.org>
20407
20408         Cache the C locale object.
20409         * lib/c-strtod.c (c_locale_cache): New variable.
20410         (c_locale): New function.
20411         (C_STRTOD): Use it, and don't call freelocale.
20412         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
20413         Suggested by Paolo Bonzini.
20414
20415 2009-01-21  Bruno Haible  <bruno@clisp.org>
20416
20417         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
20418         conditions other than overflow.
20419
20420 2009-01-21  Bruno Haible  <bruno@clisp.org>
20421
20422         * lib/c-strtod.c: Include errno.h.
20423         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
20424         value from STRTOD_L and STRTOD.
20425
20426 2009-01-21  Bruno Haible  <bruno@clisp.org>
20427         and Jim Meyering  <meyering@redhat.com>
20428
20429         nanosleep: skip configure test (fail it) for apple universal builds
20430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
20431         universal builds, assume that nanosleep does not work.
20432         * modules/nanosleep (Depends-on): Add multiarch.
20433
20434         mktime: skip configure test (fail it) for apple universal builds
20435         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
20436         universal builds, assume that mktime does not work.
20437         * modules/mktime (Depends-on): Add multiarch.
20438
20439 2009-01-21  Eric Blake  <ebb9@byu.net>
20440
20441         multiarch: avoid expand-before-require warning
20442         * modules/multiarch (configure.ac): Require, rather than expand,
20443         gl_MULTIARCH.
20444         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
20445         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
20446         enforce that all clients require it.  Partial reversion of
20447         2008-12-29 patch.
20448
20449         error: avoid expand-before-require warning
20450         * modules/errno (configure.ac): Require, rather than expand,
20451         gl_HEADER_ERRNO_H.
20452         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
20453         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
20454         enforce that all clients require it.
20455
20456         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
20457         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
20458         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
20459         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
20460
20461 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
20462
20463         Revert:
20464         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20465
20466         regex: do not depend on obsolete modules.
20467         * modules/regex: Remove memcmp and memmove.
20468
20469 2009-01-20  Bruno Haible  <bruno@clisp.org>
20470
20471         Make the 'link' module link on Windows NT 4.
20472         * lib/link.c (_WIN32_WINNT): Don't define.
20473         (CreateHardLinkFuncType): New type.
20474         (CreateHardLinkFunc, initialized): New variables.
20475         (initialize): New function.
20476         (link): Invoke CreateHardLink indirectly through the function pointer.
20477
20478 2009-01-20  Bruno Haible  <bruno@clisp.org>
20479
20480         Fix compilation failure on mingw.
20481         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
20482
20483 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
20484
20485         * doc/c-strtod.texi: Mention a couple of restrictions.
20486
20487 2009-01-20  Jim Meyering  <meyering@redhat.com>
20488
20489         gettimeofday: move more declarations out of functions
20490         * lib/gettimeofday.c: Move extern declarations of tzset and
20491         gmtime out of containing functions.  Prompted by Bruno Haible.
20492
20493 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20494
20495         regex: do not depend on obsolete modules.
20496         * modules/regex: Remove memcmp and memmove.
20497
20498 2009-01-19  Bruno Haible  <bruno@clisp.org>
20499
20500         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20501         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
20502         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20503         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
20504         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
20505
20506 2009-01-19  Bruno Haible  <bruno@clisp.org>
20507
20508         * tests/test-link.c: Include <errno.h>.
20509         (main): Exit with code 77 when a hard link cannot be created due to
20510         the file system.
20511         * tests/test-link.sh: Skip test when a hard link cannot be created due
20512         to the file system.
20513         Suggested by Eric Blake.
20514
20515 2009-01-19  Martin Lambers  <marlam@marlam.de>
20516
20517         * modules/link-tests: New file.
20518         * tests/test-link.sh: New file.
20519         * tests/test-link.c: New file.
20520
20521 2009-01-19  Eric Blake  <ebb9@byu.net>
20522
20523         doc: mention another function added in cygwin 1.7.0
20524         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
20525         Another new function in cygwin 1.7.
20526
20527 2009-01-19  Bruno Haible  <bruno@clisp.org>
20528
20529         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20530         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
20531         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20532         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20533         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20534         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20535         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20536         * m4/md4.m4 (gl_MD4): Likewise.
20537         * m4/md5.m4 (gl_MD5): Likewise.
20538         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20539         * m4/sha1.m4 (gl_SHA1): Likewise.
20540         * m4/sha256.m4 (gl_SHA256): Likewise.
20541         * m4/sha512.m4 (gl_SHA512): Likewise.
20542
20543 2009-01-19  Bruno Haible  <bruno@clisp.org>
20544
20545         * modules/uniname/uniname-tests (Depends-on): Add progname.
20546         * tests/uniname/test-uninames.c: Include progname.h.
20547         (main): Call set_program_name.
20548
20549         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20550         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20551         (main): Call set_program_name.
20552
20553         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20554         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20555         (main): Call set_program_name.
20556
20557         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20558         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20559         (main): Call set_program_name.
20560
20561         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20562         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20563         (main): Call set_program_name.
20564
20565         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20566         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20567         (main): Call set_program_name.
20568
20569         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20570         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20571         (main): Call set_program_name.
20572
20573         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20574         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20575         (main): Call set_program_name.
20576
20577         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20578         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20579         (main): Call set_program_name.
20580
20581 2009-01-19  Eric Blake  <ebb9@byu.net>
20582
20583         test-unistd: test previous patch
20584         * tests/test-unistd.c: Test *_FILENO macros.
20585
20586         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20587         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20588         Guarantee a definition.
20589         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20590         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20591         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20592         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20593         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20594         Likewise.
20595         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20596         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20597         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20598         Likewise.
20599         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20600         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20601         (STDERR_FILENO): Likewise.
20602         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20603         (STDERR_FILENO): Likewise.
20604         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20605         (STDERR_FILENO): Likewise.
20606         Reported by Elbert Pol.
20607
20608 2009-01-19  Eric Blake  <ebb9@byu.net>
20609
20610         doc: mention more functions added in cygwin 1.7.0
20611         * doc/posix-functions/abort.texi (abort): Update wording related
20612         to cygwin.
20613         * doc/posix-functions/daylight.texi (daylight): Likewise.
20614         * doc/posix-functions/optarg.texi (optarg): Likewise.
20615         * doc/posix-functions/optarg.texi (opterr): Likewise.
20616         * doc/posix-functions/optarg.texi (optind): Likewise.
20617         * doc/posix-functions/optarg.texi (optopt): Likewise.
20618         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20619         worked in 1.5.x, and was withdrawn in 1.7.
20620         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20621         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20622         cygwin versions.
20623         * doc/posix-functions/perror.texi (perror): Likewise.
20624         * doc/posix-functions/printf.texi (printf): Likewise.
20625         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20626         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20627         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20628         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20629         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20630         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20631         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20632         Likewise.
20633         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20634         Likewise.
20635         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20636         this function.
20637         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20638         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20639         Likewise.
20640         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20641         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20642         * doc/posix-functions/confstr.texi (confstr): Likewise.
20643         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20644         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20645         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20646         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20647         * doc/posix-functions/fputws.texi (fputws): Likewise.
20648         * doc/posix-functions/fwide.texi (fwide): Likewise.
20649         * doc/posix-functions/getwc.texi (getwc): Likewise.
20650         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20651         * doc/posix-functions/putwc.texi (putwc): Likewise.
20652         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20653         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20654         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20655         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20656         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20657         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20658         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20659         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20660         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20661         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20662         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20663
20664 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20665
20666         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20667         * lib/ioctl.c: Include <sys/ioctl.h>.
20668
20669 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20670
20671         * modules/getdate-tests (Depends-on): Add progname.
20672         * tests/test-getdate.c: Use progname module, to avoid link errors
20673         on non-glibc systems.
20674
20675 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20676
20677         * modules/filenamecat-tests (Depends-on): Add progname.
20678         * modules/fstrcmp-tests (Depends-on): Likewise.
20679
20680         * tests/test-filenamecat.c: Use progname module, to avoid link
20681         errors on non-glibc systems.
20682         * tests/test-fstrcmp.c: Likewise.
20683
20684 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20685
20686         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20687         * lib/gettimeofday.c: Move extern declaration out of function.
20688
20689 2009-01-18  Bruno Haible  <bruno@clisp.org>
20690
20691         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20692         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20693         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20694
20695 2009-01-18  Bruno Haible  <bruno@clisp.org>
20696
20697         * lib/strftime.c (MEMPCPY): Remove unused macro.
20698         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20699
20700 2009-01-18  Martin Lambers  <marlam@marlam.de>
20701
20702         New module 'link'.
20703         * lib/unistd.in.h (link): New declaration.
20704         * lib/link.c: New file.
20705         * m4/link.m4: New file.
20706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20707         HAVE_LINK.
20708         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20709         * modules/link: New file.
20710         * doc/posix-functions/link.texi: Mention the new module.
20711
20712 2009-01-18  Bruno Haible  <bruno@clisp.org>
20713
20714         * tests/test-avltree_list.c (main): Call set_program_name.
20715         * tests/test-avltree_oset.c (main): Likewise.
20716         * tests/test-obstack-printf.c: Include progname.h.
20717         (main): Call set_program_name.
20718         * tests/test-quotearg.c: Include progname.h.
20719         (main): Call set_program_name.
20720         * tests/test-xmemdup0.c: Include progname.h.
20721         (main): Call set_program_name.
20722
20723 2009-01-18  Bruno Haible  <bruno@clisp.org>
20724
20725         New module 'alphasort'.
20726         * lib/dirent.in.h (alphasort): New declaration.
20727         * lib/alphasort.c: New file, from glibc with modifications.
20728         * m4/alphasort.m4: New file.
20729         * modules/alphasort: New file.
20730         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
20731         HAVE_ALPHASORT.
20732         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
20733         HAVE_ALPHASORT.
20734         * doc/posix-functions/alphasort.texi: Mention the new module and the
20735         portability problems.
20736
20737 2009-01-18  Bruno Haible  <bruno@clisp.org>
20738
20739         New module 'scandir'.
20740         * lib/dirent.in.h (scandir): New declaration.
20741         * lib/scandir.c: New file, from glibc with modifications.
20742         * m4/scandir.m4: New file.
20743         * modules/scandir: New file.
20744         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
20745         HAVE_SCANDIR.
20746         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
20747         HAVE_SCANDIR.
20748         * doc/posix-functions/scandir.texi: Mention the new module and the
20749         portability problems.
20750
20751 2009-01-17  Bruno Haible  <bruno@clisp.org>
20752
20753         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
20754         Update documentation.
20755         (func_remove_suffix): Escape all dots in the suffix. Update
20756         documentation.
20757         (func_filter_filelist): Update documentation.
20758         Reported by Ralf Wildenhues.
20759
20760 2009-01-17  Bruno Haible  <bruno@clisp.org>
20761
20762         * modules/dprintf-posix-tests: New file.
20763         * tests/test-dprintf-posix.sh: New file.
20764         * tests/test-dprintf-posix.c: New file.
20765
20766         New modules 'dprintf', 'dprintf-posix'.
20767         * lib/stdio.in.h (dprintf): New declaration.
20768         * lib/dprintf.c: New file.
20769         * m4/dprintf.m4: New file.
20770         * m4/dprintf-posix.m4: New file.
20771         * modules/dprintf: New file.
20772         * modules/dprintf-posix: New file.
20773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
20774         HAVE_DPRINTF, REPLACE_DPRINTF.
20775         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
20776         HAVE_DPRINTF, REPLACE_DPRINTF.
20777         * doc/posix-functions/dprintf.texi: Mention the new modules.
20778
20779 2009-01-17  Bruno Haible  <bruno@clisp.org>
20780
20781         * modules/vdprintf-posix-tests: New file.
20782         * tests/test-vdprintf-posix.sh: New file.
20783         * tests/test-vdprintf-posix.c: New file.
20784
20785         New modules 'vdprintf', 'vdprintf-posix'.
20786         * lib/stdio.in.h (vdprintf): New declaration.
20787         * lib/vdprintf.c: New file.
20788         * m4/vdprintf.m4: New file.
20789         * m4/vdprintf-posix.m4: New file.
20790         * modules/vdprintf: New file.
20791         * modules/vdprintf-posix: New file.
20792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
20793         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20794         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
20795         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20796         * doc/posix-functions/vdprintf.texi: Mention the new modules.
20797
20798 2009-01-17  Bruno Haible  <bruno@clisp.org>
20799
20800         Fix replacement of fopen on mingw.
20801         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
20802         mingw.
20803
20804 2009-01-17  Bruno Haible  <bruno@clisp.org>
20805
20806         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
20807         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
20808
20809 2009-01-17  Bruno Haible  <bruno@clisp.org>
20810
20811         Avoid test-fflush2.sh failure on mingw.
20812         * tests/test-fflush2.c: Include binary-io.h.
20813         (main): Put standard input into binary mode.
20814         * modules/fflush-tests (Depends-on): Add binary-io.
20815
20816 2009-01-17  Bruno Haible  <bruno@clisp.org>
20817
20818         * lib/wchar.in.h: In another particular situation, include only the
20819         system's <wchar.h> file.
20820         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
20821         Reported by Albert Chin-A-Young <china@thewrittenword.com>
20822         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
20823
20824 2009-01-17  Bruno Haible  <bruno@clisp.org>
20825
20826         Support for stripping executables in --enable-relocatable.
20827         * build-aux/install-reloc: Expect one more argument, or an environment
20828         variable RELOC_STRIP_PROG. If set, strip the destination program and
20829         its wrapper.
20830         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
20831         RELOC_STRIP_PROG.
20832         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
20833         to set RELOCATABLE_STRIP.
20834         * NEWS: Mention the new Makefile requirement.
20835
20836 2009-01-17  Bruno Haible  <bruno@clisp.org>
20837
20838         * build-aux/install-reloc: Remove debugging information left over by
20839         C compiler on MacOS X.
20840
20841 2009-01-17  Bruno Haible  <bruno@clisp.org>
20842
20843         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
20844         * lib/progreloc.c (find_executable): Fix type of pointer passed to
20845         _NSGetExecutablePath.
20846
20847 2009-01-16  Jim Meyering  <meyering@redhat.com>
20848
20849         strerror: avoid warnings about discarding "const"
20850         * lib/strerror.c (rpl_strerror): Instead of returning a const
20851         string from each and every "case", use a variable, and add a single
20852         cast after the switch.
20853
20854 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
20855
20856         * lib/arpa_inet.in.h: Add extern "C" block for C++.
20857
20858 2009-01-16  Bruno Haible  <bruno@clisp.org>
20859
20860         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
20861         array initializer syntax that also works in C++ mode.
20862         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20863
20864 2009-01-16  Jim Meyering  <meyering@redhat.com>
20865
20866         poll: suppress a warning
20867         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
20868         to ignore "...unsigned expression < 0 is always false" warnings.
20869
20870 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
20871
20872         poll: remove declarations of unused variables
20873         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
20874         sockbuf and optlen.
20875
20876 2009-01-15  Bruno Haible  <bruno@clisp.org>
20877
20878         Make fflush-after-ungetc POSIX compliant on BSD systems.
20879         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
20880         (clear_ungetc_buffer): Implement also for other systems.
20881         (rpl_fflush): On glibc systems, invoke
20882         clear_ungetc_buffer_preserving_position. Otherwise, invoke
20883         clear_ungetc_buffer after fetching the stream's position, not before.
20884
20885 2009-01-15  Bruno Haible  <bruno@clisp.org>
20886
20887         Make fflush-after-ungetc POSIX compliant on glibc systems.
20888         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
20889         after ungetc.
20890         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
20891         (rpl_fflush): On glibc systems, simply call the system's fflush
20892         function after clearing the ungetc buffer.
20893         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
20894         Instead, lseek only to the end of file, then use the system's fseeko
20895         for the rest. On glibc systems, reset the EOF indicator bit.
20896
20897 2009-01-15  Jim Meyering  <meyering@redhat.com>
20898
20899         openmp.m4: revert quote-adding change, for portability to older autoconf
20900         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
20901         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
20902         Simon Josefsson noticed the problem when using autoconf-2.61.
20903
20904 2009-01-15  Bruno Haible  <bruno@clisp.org>
20905
20906         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
20907         * tests/test-fflush2.c (ASSERT): Always fail.
20908         (main): Add two tests for fflush() after ungetc(), taking into account
20909         the Austin Group's clarification.
20910         Suggested by Eric Blake.
20911
20912 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
20913
20914         mktime.m4: remove K&R-style function prototypes
20915         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
20916         for the Sun C++ compiler.
20917
20918 2009-01-14  Bruno Haible  <bruno@clisp.org>
20919
20920         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
20921         while including <wchar.h>.
20922         * lib/wchar.in.h: In two particular situations on HP-UX, include only
20923         the system's <wchar.h> file.
20924         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20925
20926 2009-01-14  Bruno Haible  <bruno@clisp.org>
20927
20928         * m4/csharp.m4: Don't mention gettext on the serial number line.
20929         * m4/csharpexec.m4: Likewise.
20930         * m4/eaccess.m4: Likewise.
20931         * m4/javaexec.m4: Likewise.
20932         * m4/sig_atomic_t.m4: Likewise.
20933         * m4/tmpdir.m4: Likewise.
20934         * m4/intldir.m4: Bump gettext version.
20935         * m4/lib-ld.m4: Likewise.
20936
20937 2009-01-14  Bruno Haible  <bruno@clisp.org>
20938
20939         * lib/progname.c (set_program_name): Add more comments.
20940         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20941
20942 2009-01-14  Simon Josefsson  <simon@josefsson.org>
20943
20944         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
20945         were sys/stat.h does not define it.
20946
20947 2009-01-14  Jim Meyering  <meyering@redhat.com>
20948
20949         many *.m4 files: improve m4 quoting
20950         99% of this change was performed by running the following commands:
20951         git ls-files | grep '\.m4$' | xargs perl -pi \
20952           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
20953           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20954           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20955           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
20956         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
20957         The remainder were to add Copyright dates, increment serial numbers,
20958         undo some changes in comments, exclude m4/intl.m4, and add quotes
20959         around the "1" in ",1" where the unusual spacing prohibited the
20960         above regexps from doing the job.  For more details, see
20961         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
20962         * m4/acl.m4: Modified.
20963         * m4/afs.m4: Likewise.
20964         * m4/alloca.m4: Likewise.
20965         * m4/argp.m4: Likewise.
20966         * m4/argz.m4: Likewise.
20967         * m4/atexit.m4: Likewise.
20968         * m4/bison-i18n.m4: Likewise.
20969         * m4/bison.m4: Likewise.
20970         * m4/byteswap.m4: Likewise.
20971         * m4/c-stack.m4: Likewise.
20972         * m4/c-strtod.m4: Likewise.
20973         * m4/calloc.m4: Likewise.
20974         * m4/canonicalize-lgpl.m4: Likewise.
20975         * m4/chown.m4: Likewise.
20976         * m4/clock_time.m4: Likewise.
20977         * m4/codeset.m4: Likewise.
20978         * m4/copy-file.m4: Likewise.
20979         * m4/csharp.m4: Likewise.
20980         * m4/csharpcomp.m4: Likewise.
20981         * m4/csharpexec.m4: Likewise.
20982         * m4/d-ino.m4: Likewise.
20983         * m4/d-type.m4: Likewise.
20984         * m4/dirfd.m4: Likewise.
20985         * m4/double-slash-root.m4: Likewise.
20986         * m4/eaccess.m4: Likewise.
20987         * m4/eealloc.m4: Likewise.
20988         * m4/environ.m4: Likewise.
20989         * m4/errno_h.m4: Likewise.
20990         * m4/euidaccess.m4: Likewise.
20991         * m4/execute.m4: Likewise.
20992         * m4/fatal-signal.m4: Likewise.
20993         * m4/fchdir.m4: Likewise.
20994         * m4/fcntl_h.m4: Likewise.
20995         * m4/fileblocks.m4: Likewise.
20996         * m4/filenamecat.m4: Likewise.
20997         * m4/findprog.m4: Likewise.
20998         * m4/flexmember.m4: Likewise.
20999         * m4/fnmatch.m4: Likewise.
21000         * m4/fopen.m4: Likewise.
21001         * m4/fpending.m4: Likewise.
21002         * m4/fprintf-posix.m4: Likewise.
21003         * m4/free.m4: Likewise.
21004         * m4/frexp.m4: Likewise.
21005         * m4/frexpl.m4: Likewise.
21006         * m4/fsusage.m4: Likewise.
21007         * m4/ftruncate.m4: Likewise.
21008         * m4/gc-camellia.m4: Likewise.
21009         * m4/gc-random.m4: Likewise.
21010         * m4/gc.m4: Likewise.
21011         * m4/getaddrinfo.m4: Likewise.
21012         * m4/getcwd-abort-bug.m4: Likewise.
21013         * m4/getcwd-path-max.m4: Likewise.
21014         * m4/getdate.m4: Likewise.
21015         * m4/getdomainname.m4: Likewise.
21016         * m4/getgroups.m4: Likewise.
21017         * m4/gethostname.m4: Likewise.
21018         * m4/gethrxtime.m4: Likewise.
21019         * m4/getline.m4: Likewise.
21020         * m4/getloadavg.m4: Likewise.
21021         * m4/getndelim2.m4: Likewise.
21022         * m4/getpass.m4: Likewise.
21023         * m4/gettext.m4: Likewise.
21024         * m4/gettime.m4: Likewise.
21025         * m4/gettimeofday.m4: Likewise.
21026         * m4/gnulib-common.m4: Likewise.
21027         * m4/group-member.m4: Likewise.
21028         * m4/host-os.m4: Likewise.
21029         * m4/iconv.m4: Likewise.
21030         * m4/iconv_open.m4: Likewise.
21031         * m4/inet_ntop.m4: Likewise.
21032         * m4/inet_pton.m4: Likewise.
21033         * m4/inline.m4: Likewise.
21034         * m4/intldir.m4: Likewise.
21035         * m4/intlmacosx.m4: Likewise.
21036         * m4/intmax.m4: Likewise.
21037         * m4/intmax_t.m4: Likewise.
21038         * m4/inttypes.m4: Likewise.
21039         * m4/inttypes_h.m4: Likewise.
21040         * m4/inttypes-pri.m4: Likewise.
21041         * m4/isapipe.m4: Likewise.
21042         * m4/isnand.m4: Likewise.
21043         * m4/isnanf.m4: Likewise.
21044         * m4/isnanl.m4: Likewise.
21045         * m4/javacomp.m4: Likewise.
21046         * m4/javaexec.m4: Likewise.
21047         * m4/jm-winsz1.m4: Likewise.
21048         * m4/jm-winsz2.m4: Likewise.
21049         * m4/lchown.m4: Likewise.
21050         * m4/lcmessage.m4: Likewise.
21051         * m4/ldexpl.m4: Likewise.
21052         * m4/lib-ld.m4: Likewise.
21053         * m4/lib-link.m4: Likewise.
21054         * m4/libsigsegv.m4: Likewise.
21055         * m4/link-follow.m4: Likewise.
21056         * m4/localcharset.m4: Likewise.
21057         * m4/locale-fr.m4: Likewise.
21058         * m4/locale-ja.m4: Likewise.
21059         * m4/locale-tr.m4: Likewise.
21060         * m4/locale-zh.m4: Likewise.
21061         * m4/lock.m4: Likewise.
21062         * m4/longlong.m4: Likewise.
21063         * m4/ls-mntd-fs.m4: Likewise.
21064         * m4/lstat.m4: Likewise.
21065         * m4/malloc.m4: Likewise.
21066         * m4/mathl.m4: Likewise.
21067         * m4/mbrtowc.m4: Likewise.
21068         * m4/mbstate_t.m4: Likewise.
21069         * m4/mbswidth.m4: Likewise.
21070         * m4/memchr.m4: Likewise.
21071         * m4/memcmp.m4: Likewise.
21072         * m4/memcpy.m4: Likewise.
21073         * m4/memmem.m4: Likewise.
21074         * m4/memmove.m4: Likewise.
21075         * m4/mempcpy.m4: Likewise.
21076         * m4/memrchr.m4: Likewise.
21077         * m4/memset.m4: Likewise.
21078         * m4/minmax.m4: Likewise.
21079         * m4/mkdir-slash.m4: Likewise.
21080         * m4/mkdtemp.m4: Likewise.
21081         * m4/mktime.m4: Likewise.
21082         * m4/mmap-anon.m4: Likewise.
21083         * m4/mountlist.m4: Likewise.
21084         * m4/nanosleep.m4: Likewise.
21085         * m4/nls.m4: Likewise.
21086         * m4/nocrash.m4: Likewise.
21087         * m4/open.m4: Likewise.
21088         * m4/openat.m4: Likewise.
21089         * m4/openmp.m4: Likewise.
21090         * m4/pathmax.m4: Likewise.
21091         * m4/perl.m4: Likewise.
21092         * m4/physmem.m4: Likewise.
21093         * m4/pipe.m4: Likewise.
21094         * m4/po.m4: Likewise.
21095         * m4/poll.m4: Likewise.
21096         * m4/posixtm.m4: Likewise.
21097         * m4/posixver.m4: Likewise.
21098         * m4/printf-frexp.m4: Likewise.
21099         * m4/printf-frexpl.m4: Likewise.
21100         * m4/printf-posix.m4: Likewise.
21101         * m4/printf-posix-rpl.m4: Likewise.
21102         * m4/printf.m4: Likewise.
21103         * m4/progtest.m4: Likewise.
21104         * m4/putenv.m4: Likewise.
21105         * m4/readline.m4: Likewise.
21106         * m4/readlink.m4: Likewise.
21107         * m4/readutmp.m4: Likewise.
21108         * m4/realloc.m4: Likewise.
21109         * m4/regex.m4: Likewise.
21110         * m4/relocatable.m4: Likewise.
21111         * m4/relocatable-lib.m4: Likewise.
21112         * m4/rename-dest-slash.m4: Likewise.
21113         * m4/rename.m4: Likewise.
21114         * m4/rmdir-errno.m4: Likewise.
21115         * m4/rmdir.m4: Likewise.
21116         * m4/roundf.m4: Likewise.
21117         * m4/roundl.m4: Likewise.
21118         * m4/rpmatch.m4: Likewise.
21119         * m4/save-cwd.m4: Likewise.
21120         * m4/selinux-selinux-h.m4: Likewise.
21121         * m4/setenv.m4: Likewise.
21122         * m4/settime.m4: Likewise.
21123         * m4/sig2str.m4: Likewise.
21124         * m4/sig_atomic_t.m4: Likewise.
21125         * m4/signalblocking.m4: Likewise.
21126         * m4/signbit.m4: Likewise.
21127         * m4/sigpipe.m4: Likewise.
21128         * m4/sockets.m4: Likewise.
21129         * m4/sockpfaf.m4: Likewise.
21130         * m4/st_dm_mode.m4: Likewise.
21131         * m4/stat-time.m4: Likewise.
21132         * m4/stdbool.m4: Likewise.
21133         * m4/stdint.m4: Likewise.
21134         * m4/stdint_h.m4: Likewise.
21135         * m4/stpcpy.m4: Likewise.
21136         * m4/stpncpy.m4: Likewise.
21137         * m4/strcase.m4: Likewise.
21138         * m4/strchrnul.m4: Likewise.
21139         * m4/strcspn.m4: Likewise.
21140         * m4/strdup.m4: Likewise.
21141         * m4/strftime.m4: Likewise.
21142         * m4/strndup.m4: Likewise.
21143         * m4/strnlen.m4: Likewise.
21144         * m4/strpbrk.m4: Likewise.
21145         * m4/strptime.m4: Likewise.
21146         * m4/strsep.m4: Likewise.
21147         * m4/strtod.m4: Likewise.
21148         * m4/strtoimax.m4: Likewise.
21149         * m4/strtok_r.m4: Likewise.
21150         * m4/strtol.m4: Likewise.
21151         * m4/strtoll.m4: Likewise.
21152         * m4/strtoul.m4: Likewise.
21153         * m4/strtoull.m4: Likewise.
21154         * m4/strtoumax.m4: Likewise.
21155         * m4/strverscmp.m4: Likewise.
21156         * m4/threadlib.m4: Likewise.
21157         * m4/timegm.m4: Likewise.
21158         * m4/tm_gmtoff.m4: Likewise.
21159         * m4/tmpdir.m4: Likewise.
21160         * m4/tmpfile.m4: Likewise.
21161         * m4/tzset.m4: Likewise.
21162         * m4/uintmax_t.m4: Likewise.
21163         * m4/unlinkdir.m4: Likewise.
21164         * m4/unlocked-io.m4: Likewise.
21165         * m4/uptime.m4: Likewise.
21166         * m4/userspec.m4: Likewise.
21167         * m4/utimbuf.m4: Likewise.
21168         * m4/utime.m4: Likewise.
21169         * m4/utimes-null.m4: Likewise.
21170         * m4/utimes.m4: Likewise.
21171         * m4/vararrays.m4: Likewise.
21172         * m4/vasnprintf.m4: Likewise.
21173         * m4/vfprintf-posix.m4: Likewise.
21174         * m4/vprintf-posix.m4: Likewise.
21175         * m4/wait-process.m4: Likewise.
21176         * m4/wchar_t.m4: Likewise.
21177         * m4/wint_t.m4: Likewise.
21178         * m4/write-any-file.m4: Likewise.
21179         * m4/yield.m4: Likewise.
21180
21181 2009-01-13  Bruno Haible  <bruno@clisp.org>
21182
21183         Avoid test-copy-file.sh failures when ACL support insufficient.
21184         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
21185         TESTS_ENVIRONMENT.
21186         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
21187         Reported by Jim Meyering.
21188
21189 2009-01-13  Bruno Haible  <bruno@clisp.org>
21190
21191         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
21192         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
21193         * modules/unistdio/u8-printf-parse (Files): Likewise.
21194         * modules/unistdio/u32-printf-parse (Files): Likewise.
21195         * modules/unistdio/ulc-printf-parse (Files): Likewise.
21196
21197 2009-01-13  Simon Josefsson  <simon@josefsson.org>
21198
21199         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
21200         and m4/inttypes_h.m4 too.
21201
21202 2009-01-12  Eric Blake  <ebb9@byu.net>
21203
21204         tests: IRIX 6.2 cc can't compile -0.0 into .data
21205         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
21206         rather than at compile-time.
21207         * tests/test-floorl.c (minus_zero): Likewise.
21208         * tests/test-frexpl.c (minus_zero): Likewise.
21209         * tests/test-isnan.c (minus_zerol): Likewise.
21210         * tests/test-isnanl.h (minus_zero): Likewise.
21211         * tests/test-ldexpl.c (minus_zero): Likewise.
21212         * tests/test-roundl.c (minus_zero): Likewise.
21213         * tests/test-signbit.c (minus_zerol): Likewise.
21214         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21215         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21216         * tests/test-truncl.c (minus_zero): Likewise.
21217         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21218         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21219         Reported by Tom G. Christensen and Nelson H. F. Beebe.
21220
21221 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21222
21223         regex: fix glibc bug 9697
21224         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
21225         handling.
21226
21227 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21228
21229         regex: fix glibc bug 697
21230         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
21231         being NULL also if there are no backreferences.
21232
21233 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21234
21235         regex: merge glibc changes
21236         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
21237         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
21238         re_string_skip_chars, re_string_reconstruct): Likewise.
21239         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
21240
21241 2009-01-07  Jim Meyering  <meyering@redhat.com>
21242
21243         poll: filter through cppi
21244         * lib/poll.c: Indent cpp directives to reflect nesting.
21245
21246 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
21247
21248         poll: don't return uninitialized
21249         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
21250
21251 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
21252
21253         avoid compile failure on AIX 6.1
21254         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
21255         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
21256
21257 2009-01-04  Jim Meyering  <meyering@redhat.com>
21258
21259         remove duplicate inclusion of <stdio.h>
21260         * tests/test-fprintf-posix.c: Likewise.
21261         * tests/test-printf-posix.c: Likewise.
21262         * tests/test-snprintf-posix.c: Likewise.
21263         * tests/test-sprintf-posix.c: Likewise.
21264         * tests/test-vasprintf-posix.c: Likewise.
21265         * tests/test-vfprintf-posix.c: Likewise.
21266         * tests/test-vprintf-posix.c: Likewise.
21267         * tests/test-vsnprintf-posix.c: Likewise.
21268         * tests/test-vsprintf-posix.c: Likewise.
21269
21270 2009-01-03  Jim Meyering  <meyering@redhat.com>
21271
21272         gnulib-tool: fix sed-based filtering
21273         * gnulib-tool (func_filter_filelist): Remove extra backslash
21274         in sed_fff_filter definition.
21275
21276 2009-01-02  Jim Meyering  <meyering@redhat.com>
21277
21278         strftime: avoid compilation failure on Solaris 2.6
21279         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
21280         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
21281         Don't #define mbrlen or mbsinit, since now they're guaranteed to
21282         be available.  Reported by Tom G. Christensen.  Details in
21283         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
21284
21285 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21286             Bruno Haible  <bruno@clisp.org>
21287
21288         Speed up gnulib-tool by doing more string processing through shell
21289         built-ins.
21290         * gnulib-tool (fast_func_append): New variable.
21291         (func_remove_prefix, func_remove_suffix): New functions.
21292         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
21293         (func_filter_filelist): New function.
21294         (func_get_dependencies): Use func_remove_suffix instead of sed.
21295         (func_get_automake_snippet): Use func_filter_filelist instead of a
21296         subshell and sed invocation.
21297
21298 2009-01-01  Bruno Haible  <bruno@clisp.org>
21299
21300         Fix a security bug.
21301         * gnulib-tool (func_import, import, update): Don't allow the characters
21302         '"', '$', '`', '\' in macro arguments that become part of commands that
21303         are evaluated.
21304
21305 2009-01-01  Bruno Haible  <bruno@clisp.org>
21306
21307         * gnulib-tool (func_reset_sigpipe): Add more comments.
21308
21309 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21310
21311         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
21312         func_emit_tests_Makefile_am, func_import): Abort loops early if we
21313         already know the answer.
21314
21315 2009-01-01  Jim Meyering  <meyering@redhat.com>
21316
21317         * lib/version-etc.c (version_etc_va): Update copyright year.
21318
21319 2008-12-30  Bruno Haible  <bruno@clisp.org>
21320
21321         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
21322         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
21323         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
21324
21325 2008-12-29  Eric Blake  <ebb9@byu.net>
21326
21327         multiarch: avoid autoconf AC_REQUIRE bug
21328         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
21329         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
21330         2.63 and older.
21331         Reported by Bruno Haible, and analyzed in
21332         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
21333
21334 2008-12-29  Bruno Haible  <bruno@clisp.org>
21335
21336         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
21337         files in subdirectories correctly.
21338         Reported by Ralf Wildenhues.
21339
21340 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21341
21342         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
21343         rather than 'join FILE -', for Solaris join.
21344
21345 2008-12-29  Bruno Haible  <bruno@clisp.org>
21346
21347         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
21348         quoting.
21349         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21350         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21351         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21352         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
21353         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21354         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21355         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21356         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21357         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21358         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21359         * m4/nls.m4 (AM_NLS): Likewise.
21360         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
21361         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21362         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21363         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21364         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21365         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21366         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
21367         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21368         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21369         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21370         * m4/xsize.m4 (gl_XSIZE): Likewise.
21371         Suggested by Jim Meyering.
21372
21373 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21374
21375         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
21376         * lib/parse-duration.c: use a switch instead of cascading if's.
21377
21378 2008-12-29  Eric Blake  <ebb9@byu.net>
21379
21380         wchar.h: supply WEOF on Irix 5.3
21381         * lib/wchar.in.h (wint_t): Also supply WEOF.
21382         * lib/wctype.in.h (wint_t): Likewise.
21383         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
21384         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
21385         Reported by Tom G. Christensen.
21386
21387 2008-12-26  Bruno Haible  <bruno@clisp.org>
21388
21389         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
21390         i486, i586, i686.
21391
21392 2008-12-26  Bruno Haible  <bruno@clisp.org>
21393
21394         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
21395
21396 2008-12-26  Bruno Haible  <bruno@clisp.org>
21397
21398         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
21399         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
21400         not __STDC_CONSTANT_MACROS.
21401         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21402
21403 2008-12-25  Bruno Haible  <bruno@clisp.org>
21404
21405         Add support for universal builds to vasnprintf.
21406         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
21407         universal builds, guess no.
21408         * modules/vasnprintf-posix (Depends-on): Add multiarch.
21409         * modules/vasprintf-posix (Depends-on): Likewise.
21410         * modules/fprintf-posix (Depends-on): Likewise.
21411         * modules/vfprintf-posix (Depends-on): Likewise.
21412         * modules/snprintf-posix (Depends-on): Likewise.
21413         * modules/vsnprintf-posix (Depends-on): Likewise.
21414         * modules/sprintf-posix (Depends-on): Likewise.
21415         * modules/vsprintf-posix (Depends-on): Likewise.
21416         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21417         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21418         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21419         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21420         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21421         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21422         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21423
21424         Add support for universal builds to <inttypes.h>.
21425         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
21426         _SCNu64_PREFIX): In Apple
21427         universal builds, define directly, using _LP64.
21428         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
21429         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
21430         * modules/inttypes (Depends-on): Add multiarch.
21431         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21432
21433         Add support for universal builds to <stdint.h>.
21434         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
21435         universal builds, define directly, using _LP64.
21436         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
21437         Apple universal builds, don't test for the size and suffix of ptrdiff_t
21438         and size_t.
21439         * modules/stdint (Depends-on): Add multiarch.
21440         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21441
21442         New module 'multiarch'.
21443         * modules/multiarch: New file.
21444         * m4/multiarch.m4: New file.
21445
21446 2008-12-25  Bruno Haible  <bruno@clisp.org>
21447
21448         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
21449
21450 2008-12-25  Bruno Haible  <bruno@clisp.org>
21451
21452         * modules/btowc (License): Relicense under LGPLv2+.
21453         * modules/mbsinit (License): Likewise.
21454         * modules/mbrtowc (License): Likewise.
21455         * modules/wcrtomb (License): Likewise.
21456         * modules/streq (License): Likewise.
21457         Reported by David Lutterkort <lutter@redhat.com>.
21458
21459 2008-12-23  Bruno Haible  <bruno@clisp.org>
21460
21461         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
21462
21463 2008-12-23  Bruno Haible  <bruno@clisp.org>
21464
21465         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
21466         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
21467         GETADDRINFO_LIB, not in LIBS.
21468         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
21469         * modules/canon-host (Link): Likewise.
21470         * NEWS: Mention the change.
21471         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
21472         GETADDRINFO_LIB.
21473
21474 2008-12-22  Bruno Haible  <bruno@clisp.org>
21475
21476         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
21477         * doc/posix-functions/iswalpha_l.texi: Likewise.
21478         * doc/posix-functions/iswblank_l.texi: Likewise.
21479         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21480         * doc/posix-functions/iswctype_l.texi: Likewise.
21481         * doc/posix-functions/iswdigit_l.texi: Likewise.
21482         * doc/posix-functions/iswgraph_l.texi: Likewise.
21483         * doc/posix-functions/iswlower_l.texi: Likewise.
21484         * doc/posix-functions/iswprint_l.texi: Likewise.
21485         * doc/posix-functions/iswpunct_l.texi: Likewise.
21486         * doc/posix-functions/iswspace_l.texi: Likewise.
21487         * doc/posix-functions/iswupper_l.texi: Likewise.
21488         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21489         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
21490         * doc/posix-functions/open_wmemstream.texi: Likewise.
21491         * doc/posix-functions/swscanf.texi: Likewise.
21492         * doc/posix-functions/towctrans_l.texi: Likewise.
21493         * doc/posix-functions/towlower.texi: Likewise.
21494         * doc/posix-functions/towlower_l.texi: Likewise.
21495         * doc/posix-functions/towupper.texi: Likewise.
21496         * doc/posix-functions/towupper_l.texi: Likewise.
21497         * doc/posix-functions/vfwprintf.texi: Likewise.
21498         * doc/posix-functions/vfwscanf.texi: Likewise.
21499         * doc/posix-functions/vswscanf.texi: Likewise.
21500         * doc/posix-functions/vwprintf.texi: Likewise.
21501         * doc/posix-functions/vwscanf.texi: Likewise.
21502         * doc/posix-functions/wcpcpy.texi: Likewise.
21503         * doc/posix-functions/wcpncpy.texi: Likewise.
21504         * doc/posix-functions/wcscasecmp.texi: Likewise.
21505         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
21506         * doc/posix-functions/wcscoll_l.texi: Likewise.
21507         * doc/posix-functions/wcsdup.texi: Likewise.
21508         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21509         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
21510         * doc/posix-functions/wcsnlen.texi: Likewise.
21511         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21512         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21513         * doc/posix-functions/wctrans_l.texi: Likewise.
21514         * doc/posix-functions/wctype_l.texi: Likewise.
21515         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
21516         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
21517         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
21518         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
21519         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
21520         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
21521         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
21522         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
21523         * doc/glibc-functions/wcschrnul.texi: Likewise.
21524         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21525         * doc/glibc-functions/wcstod_l.texi: Likewise.
21526         * doc/glibc-functions/wcstof_l.texi: Likewise.
21527         * doc/glibc-functions/wcstol_l.texi: Likewise.
21528         * doc/glibc-functions/wcstold_l.texi: Likewise.
21529         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21530         * doc/glibc-functions/wcstoq.texi: Likewise.
21531         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21532         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21533         * doc/glibc-functions/wcstouq.texi: Likewise.
21534         * doc/glibc-functions/wmempcpy.texi: Likewise.
21535
21536 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21537             Eric Blake  <ebb9@byu.net>
21538             Paolo Bonzini  <bonzini@gnu.org>
21539             Bruno Haible  <bruno@clisp.org>
21540
21541         Make c-stack work on Haiku.
21542         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21543         (c_stack_action): Use SA_ONSTACK flag.
21544
21545 2008-12-22  Bruno Haible  <bruno@clisp.org>
21546
21547         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21548
21549 2008-12-22  Bruno Haible  <bruno@clisp.org>
21550
21551         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21552         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21553         being overridden.
21554         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21555         New macros.
21556         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21557         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21558         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21559         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21560
21561 2008-12-22  Bruno Haible  <bruno@clisp.org>
21562
21563         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21564         from test code.
21565
21566 2008-12-22  Eric Blake  <ebb9@byu.net>
21567
21568         Avoid gcc warnings on cygwin.
21569         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21570         Avoid unused variable.
21571         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21572         Likewise.
21573
21574 2008-12-22  Bruno Haible  <bruno@clisp.org>
21575
21576         Remove HAVE_MBRTOWC conditionals.
21577         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21578         (mbscasecmp): Assume mbrtowc function.
21579         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21580         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21581         * lib/mbschr.c: Include mbuiter.h unconditionally.
21582         (mbschr): Assume mbrtowc function.
21583         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21584         (mbscspn): Assume mbrtowc function.
21585         * lib/mbslen.c: Include mbuiter.h unconditionally.
21586         (mbslen): Assume mbrtowc function.
21587         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21588         (mbsncasecmp): Assume mbrtowc function.
21589         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21590         (mbsnlen): Assume mbrtowc function.
21591         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21592         (mbspbrk): Assume mbrtowc function.
21593         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21594         (mbspcasecmp): Assume mbrtowc function.
21595         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21596         (mbsrchr): Assume mbrtowc function.
21597         * lib/mbssep.c: Include mbuiter.h unconditionally.
21598         (mbssep): Assume mbrtowc function.
21599         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21600         (mbsspn): Assume mbrtowc function.
21601         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21602         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21603         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21604         (mbstok_r): Assume mbrtowc function.
21605         * lib/propername.c: Include mbuiter.h unconditionally.
21606         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21607         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21608         (trim2): Assume mbrtowc function.
21609         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21610         (mbsnwidth): Assume mbrtowc function.
21611         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21612         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21613         fallback definitions.
21614         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21615
21616 2008-12-22  Bruno Haible  <bruno@clisp.org>
21617
21618         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21619
21620 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21621
21622         * modules/regex: Request emulations for the mb*/wc* functions we need.
21623         * m4/regex.m4: Don't look for those functions here.
21624         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21625
21626 2008-12-22  Bruno Haible  <bruno@clisp.org>
21627
21628         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21629
21630 2008-12-21  Bruno Haible  <bruno@clisp.org>
21631
21632         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21633         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21634         (Include): Remove conditionalization.
21635         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21636         (Include): Remove conditionalization.
21637         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21638         (Include): Remove conditionalization.
21639         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21640         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21641         * NEWS: Mention the change.
21642         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21643         via Sergey Poznyakoff <gray@gnu.org.ua>.
21644
21645 2008-12-21  Bruno Haible  <bruno@clisp.org>
21646
21647         * MODULES.html.sh (Extended multibyte and wide character utilities
21648         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21649         wcrtomb, wcsrtombs.
21650         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21651         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21652         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21653         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21654
21655 2008-12-21  Bruno Haible  <bruno@clisp.org>
21656
21657         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21658
21659 2008-12-21  Bruno Haible  <bruno@clisp.org>
21660
21661         * modules/wcsnrtombs-tests: New file.
21662         * tests/test-wcsnrtombs1.sh: New file.
21663         * tests/test-wcsnrtombs2.sh: New file.
21664         * tests/test-wcsnrtombs3.sh: New file.
21665         * tests/test-wcsnrtombs4.sh: New file.
21666         * tests/test-wcsnrtombs.c: New file.
21667
21668         New module 'wcsnrtombs'.
21669         * lib/wchar.in.h (wcsnrtombs): New declaration.
21670         * lib/wcsnrtombs.c: New file.
21671         * lib/wcsrtombs-state.c: New file.
21672         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21673         (internal_state): Remove variable.
21674         * m4/wcsnrtombs.m4: New file.
21675         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21676         compilation units.
21677         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21678         HAVE_WCSNRTOMBS.
21679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21680         HAVE_WCSNRTOMBS.
21681         * modules/wcsnrtombs: New file.
21682         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21683         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21684
21685 2008-12-21  Bruno Haible  <bruno@clisp.org>
21686
21687         * modules/wcsrtombs-tests: New file.
21688         * tests/test-wcsrtombs1.sh: New file.
21689         * tests/test-wcsrtombs2.sh: New file.
21690         * tests/test-wcsrtombs3.sh: New file.
21691         * tests/test-wcsrtombs4.sh: New file.
21692         * tests/test-wcsrtombs.c: New file.
21693
21694         New module 'wcsrtombs'.
21695         * lib/wchar.in.h (wcsrtombs): New declaration.
21696         * lib/wcsrtombs.c: New file.
21697         * m4/wcsrtombs.m4: New file.
21698         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21699         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21701         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21702         * modules/wcsrtombs: New file.
21703         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21704         bugs.
21705
21706 2008-12-21  Bruno Haible  <bruno@clisp.org>
21707
21708         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21709         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21710         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21711         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21712         if not correct.
21713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21714         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21715         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21716         m4/locale-zh.m4, m4/codeset.m4.
21717         * doc/posix-functions/wcrtomb.texi: Document the bug.
21718
21719 2008-12-21  Bruno Haible  <bruno@clisp.org>
21720
21721         Work around a btowc() bug on IRIX 6.5.
21722         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
21723         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
21724         REPLACE_WTOBC if not.
21725         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
21726         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
21727         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
21728
21729 2008-12-21  Bruno Haible  <bruno@clisp.org>
21730
21731         * modules/wcrtomb-tests: New file.
21732         * tests/test-wcrtomb.sh: New file.
21733         * tests/test-wcrtomb.c: New file.
21734
21735         New module 'wcrtomb'.
21736         * lib/wchar.in.h (wcrtomb): New declaration.
21737         * lib/wcrtomb.c: New file.
21738         * m4/wcrtomb.m4: New file.
21739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
21740         HAVE_WCRTOMB.
21741         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
21742         HAVE_WCRTOMB.
21743         * modules/wcrtomb: New file.
21744         * doc/posix-functions/wcrtomb.texi: Mention the new module.
21745
21746 2008-12-21  Bruno Haible  <bruno@clisp.org>
21747
21748         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
21749         * modules/mbsrtowcs (Files): Likewise.
21750         * modules/wctob (Files): Likewise.
21751         * modules/c-strcase-tests (Files): Likewise.
21752         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21753         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21754         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21755         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21756         * modules/vasnprintf-posix-tests (Files): Likewise.
21757
21758 2008-12-21  William Pursell  <bill.pursell@gmail.com>
21759
21760         gitlog-to-changelog: pass all command-line arguments to git-log
21761         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
21762         it is sometimes convenient to filter the commits in various ways.
21763         gitlog-to-changelog only allows --since to specify a start date,
21764         but git-log itself supports many other filtering mechanisms.
21765         At the moment, I want to filter by branch name.  Rather than
21766         adding a --branch option to gitlog-to-changelog, it seems more
21767         flexible to simply pass all options directly to git-log and let
21768         git do the work.  Notice that this effectively makes --since a
21769         redundant option for gitlog-to-changelog, but removing it would
21770         require current usage to change since calls would then require
21771         an additional '--'.
21772
21773 2008-12-21  Bruno Haible  <bruno@clisp.org>
21774
21775         * modules/mbsnrtowcs-tests: New file.
21776         * tests/test-mbsnrtowcs1.sh: New file.
21777         * tests/test-mbsnrtowcs2.sh: New file.
21778         * tests/test-mbsnrtowcs3.sh: New file.
21779         * tests/test-mbsnrtowcs4.sh: New file.
21780         * tests/test-mbsnrtowcs.c: New file.
21781
21782         New module 'mbsnrtowcs'.
21783         * lib/wchar.in.h (mbsnrtowcs): New declaration.
21784         * lib/mbsnrtowcs.c: New file.
21785         * lib/mbsrtowcs-state.c: New file.
21786         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
21787         (internal_state): Remove variable.
21788         * m4/mbsnrtowcs.m4: New file.
21789         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
21790         compilation units.
21791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
21792         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21793         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
21794         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21795         * modules/mbsnrtowcs: New file.
21796         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
21797         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
21798         portability problem.
21799
21800 2008-12-21  Bruno Haible  <bruno@clisp.org>
21801
21802         Work around mbsrtowcs bug.
21803         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
21804         (gl_FUNC_MBSRTOWCS): Invoke it.
21805         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21806         m4/locale-zh.m4.
21807         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
21808
21809 2008-12-21  Bruno Haible  <bruno@clisp.org>
21810
21811         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
21812
21813 2008-12-21  Bruno Haible  <bruno@clisp.org>
21814
21815         Update doc for AIX.
21816         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
21817         16-bit wchar_t type.
21818         * doc/posix-functions/btowc.texi: Likewise.
21819         * doc/posix-functions/fgetwc.texi: Likewise.
21820         * doc/posix-functions/fgetws.texi: Likewise.
21821         * doc/posix-functions/fputwc.texi: Likewise.
21822         * doc/posix-functions/fputws.texi: Likewise.
21823         * doc/posix-functions/fwide.texi: Likewise.
21824         * doc/posix-functions/fwprintf.texi: Likewise.
21825         * doc/posix-functions/fwscanf.texi: Likewise.
21826         * doc/posix-functions/getwchar.texi: Likewise.
21827         * doc/posix-functions/getwc.texi: Likewise.
21828         * doc/posix-functions/iswalnum.texi: Likewise.
21829         * doc/posix-functions/iswalpha.texi: Likewise.
21830         * doc/posix-functions/iswblank.texi: Likewise.
21831         * doc/posix-functions/iswcntrl.texi: Likewise.
21832         * doc/posix-functions/iswctype.texi: Likewise.
21833         * doc/posix-functions/iswdigit.texi: Likewise.
21834         * doc/posix-functions/iswgraph.texi: Likewise.
21835         * doc/posix-functions/iswlower.texi: Likewise.
21836         * doc/posix-functions/iswprint.texi: Likewise.
21837         * doc/posix-functions/iswpunct.texi: Likewise.
21838         * doc/posix-functions/iswspace.texi: Likewise.
21839         * doc/posix-functions/iswupper.texi: Likewise.
21840         * doc/posix-functions/iswxdigit.texi: Likewise.
21841         * doc/posix-functions/mbrtowc.texi: Likewise.
21842         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21843         * doc/posix-functions/mbstowcs.texi: Likewise.
21844         * doc/posix-functions/mbtowc.texi: Likewise.
21845         * doc/posix-functions/putwchar.texi: Likewise.
21846         * doc/posix-functions/putwc.texi: Likewise.
21847         * doc/posix-functions/swprintf.texi: Likewise.
21848         * doc/posix-functions/tolower.texi: Likewise.
21849         * doc/posix-functions/toupper.texi: Likewise.
21850         * doc/posix-functions/towctrans.texi: Likewise.
21851         * doc/posix-functions/ungetwc.texi: Likewise.
21852         * doc/posix-functions/vswprintf.texi: Likewise.
21853         * doc/posix-functions/wcrtomb.texi: Likewise.
21854         * doc/posix-functions/wcscat.texi: Likewise.
21855         * doc/posix-functions/wcschr.texi: Likewise.
21856         * doc/posix-functions/wcscmp.texi: Likewise.
21857         * doc/posix-functions/wcscoll.texi: Likewise.
21858         * doc/posix-functions/wcscpy.texi: Likewise.
21859         * doc/posix-functions/wcscspn.texi: Likewise.
21860         * doc/posix-functions/wcsftime.texi: Likewise.
21861         * doc/posix-functions/wcslen.texi: Likewise.
21862         * doc/posix-functions/wcsncat.texi: Likewise.
21863         * doc/posix-functions/wcsncmp.texi: Likewise.
21864         * doc/posix-functions/wcsncpy.texi: Likewise.
21865         * doc/posix-functions/wcspbrk.texi: Likewise.
21866         * doc/posix-functions/wcsrchr.texi: Likewise.
21867         * doc/posix-functions/wcsrtombs.texi: Likewise.
21868         * doc/posix-functions/wcsspn.texi: Likewise.
21869         * doc/posix-functions/wcsstr.texi: Likewise.
21870         * doc/posix-functions/wcstod.texi: Likewise.
21871         * doc/posix-functions/wcstof.texi: Likewise.
21872         * doc/posix-functions/wcstoimax.texi: Likewise.
21873         * doc/posix-functions/wcstok.texi: Likewise.
21874         * doc/posix-functions/wcstold.texi: Likewise.
21875         * doc/posix-functions/wcstoll.texi: Likewise.
21876         * doc/posix-functions/wcstol.texi: Likewise.
21877         * doc/posix-functions/wcstombs.texi: Likewise.
21878         * doc/posix-functions/wcstoull.texi: Likewise.
21879         * doc/posix-functions/wcstoul.texi: Likewise.
21880         * doc/posix-functions/wcstoumax.texi: Likewise.
21881         * doc/posix-functions/wcswidth.texi: Likewise.
21882         * doc/posix-functions/wcsxfrm.texi: Likewise.
21883         * doc/posix-functions/wctob.texi: Likewise.
21884         * doc/posix-functions/wctomb.texi: Likewise.
21885         * doc/posix-functions/wctrans.texi: Likewise.
21886         * doc/posix-functions/wctype.texi: Likewise.
21887         * doc/posix-functions/wcwidth.texi: Likewise.
21888         * doc/posix-functions/wmemchr.texi: Likewise.
21889         * doc/posix-functions/wmemcmp.texi: Likewise.
21890         * doc/posix-functions/wmemcpy.texi: Likewise.
21891         * doc/posix-functions/wmemmove.texi: Likewise.
21892         * doc/posix-functions/wmemset.texi: Likewise.
21893         * doc/posix-functions/wprintf.texi: Likewise.
21894         * doc/posix-functions/wscanf.texi: Likewise.
21895
21896 2008-12-21  Bruno Haible  <bruno@clisp.org>
21897
21898         Update doc for HP-UX 11.11.
21899         * doc/posix-functions/btowc.texi: Clarify that the function is missing
21900         in HP-UX version 11.00, not in all versions of HP-UX 11.
21901         * doc/posix-functions/fwide.texi: Likewise.
21902         * doc/posix-functions/fwprintf.texi: Likewise.
21903         * doc/posix-functions/fwscanf.texi: Likewise.
21904         * doc/posix-functions/inet_ntop.texi: Likewise.
21905         * doc/posix-functions/inet_pton.texi: Likewise.
21906         * doc/posix-functions/mbrlen.texi: Likewise.
21907         * doc/posix-functions/mbrtowc.texi: Likewise.
21908         * doc/posix-functions/mbsinit.texi: Likewise.
21909         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21910         * doc/posix-functions/swprintf.texi: Likewise.
21911         * doc/posix-functions/swscanf.texi: Likewise.
21912         * doc/posix-functions/towctrans.texi: Likewise.
21913         * doc/posix-functions/vfwprintf.texi: Likewise.
21914         * doc/posix-functions/vswprintf.texi: Likewise.
21915         * doc/posix-functions/vwprintf.texi: Likewise.
21916         * doc/posix-functions/wcrtomb.texi: Likewise.
21917         * doc/posix-functions/wcsrtombs.texi: Likewise.
21918         * doc/posix-functions/wcsstr.texi: Likewise.
21919         * doc/posix-functions/wctob.texi: Likewise.
21920         * doc/posix-functions/wctrans.texi: Likewise.
21921         * doc/posix-functions/wmemchr.texi: Likewise.
21922         * doc/posix-functions/wmemcmp.texi: Likewise.
21923         * doc/posix-functions/wmemcpy.texi: Likewise.
21924         * doc/posix-functions/wmemmove.texi: Likewise.
21925         * doc/posix-functions/wmemset.texi: Likewise.
21926         * doc/posix-functions/wprintf.texi: Likewise.
21927         * doc/posix-functions/wscanf.texi: Likewise.
21928
21929 2008-12-21  Bruno Haible  <bruno@clisp.org>
21930
21931         Work around a portability problem.
21932         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
21933         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
21934
21935 2008-12-20  Bruno Haible  <bruno@clisp.org>
21936
21937         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
21938         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
21939         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
21940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
21941         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
21942
21943         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
21944         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
21945         set.
21946         (GNULIB_defined_mbstate_t): New macro.
21947         (mbsinit): Redefine if REPLACE_MBSINIT is set.
21948         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
21949         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
21950         reuses the system's mbrtowc function but works around the bugs.
21951         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
21952         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
21953         macros.
21954         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
21955         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
21956         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
21957         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
21958         REPLACE_MBSINIT if mbsinit needs to be overridden.
21959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
21960         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21961         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
21962         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21963         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21964         m4/locale-zh.m4.
21965         (Depends): Add mbsinit.
21966         * modules/mbsinit (Depends): Add mbrtowc.
21967         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
21968
21969 2008-12-20  Bruno Haible  <bruno@clisp.org>
21970
21971         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
21972         so that there are no conversion errors on AIX.
21973         * tests/test-mbsrtowcs.c (main): LIkewise.
21974
21975 2008-12-20  Bruno Haible  <bruno@clisp.org>
21976
21977         Work around wctob bug on Solaris <= 9.
21978         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
21979         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
21980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
21981         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
21982         * modules/wctob (Files): Add m4/locale-fr.m4.
21983         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
21984
21985 2008-12-20  Bruno Haible  <bruno@clisp.org>
21986
21987         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
21988         /dev/null.
21989         * tests/test-select-in.sh: Likewise.
21990         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21991
21992 2008-12-20  Bruno Haible  <bruno@clisp.org>
21993
21994         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
21995         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
21996         Cygwin 1.5.x.
21997
21998 2008-12-20  Bruno Haible  <bruno@clisp.org>
21999
22000         Ensure mbstate_t is defined on HP-UX 11.11.
22001         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
22002         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
22003         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
22004         AC_USE_SYSTEM_EXTENSIONS.
22005         * modules/fnmatch (Depends-on): Add extensions.
22006         * modules/mbrlen (Depends-on): Likewise.
22007         * modules/mbrtowc (Depends-on): Likewise.
22008         * modules/mbsinit (Depends-on): Likewise.
22009         * modules/mbsrtowcs (Depends-on): Likewise.
22010         * modules/mbswidth (Depends-on): Likewise.
22011         * modules/quotearg (Depends-on): Likewise.
22012         * modules/strftime (Depends-on): Likewise.
22013
22014 2008-12-20  Bruno Haible  <bruno@clisp.org>
22015
22016         Ensure wctob is declared on IRIX 6.5.
22017         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
22018         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
22019         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
22020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
22021         of HAVE_WCTOB.
22022         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
22023         HAVE_WCTOB.
22024         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
22025
22026 2008-12-19  Bruno Haible  <bruno@clisp.org>
22027
22028         * modules/mbsrtowcs-tests: New file.
22029         * tests/test-mbsrtowcs1.sh: New file.
22030         * tests/test-mbsrtowcs2.sh: New file.
22031         * tests/test-mbsrtowcs3.sh: New file.
22032         * tests/test-mbsrtowcs4.sh: New file.
22033         * tests/test-mbsrtowcs.c: New file.
22034
22035         New module 'mbsrtowcs'.
22036         * lib/wchar.in.h (mbsrtowcs): New declaration.
22037         * lib/mbsrtowcs.c: New file.
22038         * m4/mbsrtowcs.m4: New file.
22039         * modules/mbsrtowcs: New file.
22040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
22041         HAVE_MBSRTOWCS.
22042         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
22043         HAVE_MBSRTOWCS.
22044         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
22045
22046 2008-12-19  Bruno Haible  <bruno@clisp.org>
22047
22048         New module 'mbrlen'.
22049         * lib/wchar.in.h (mbrlen): New declaration.
22050         * lib/mbrlen.c: New file.
22051         * m4/mbrlen.m4: New file.
22052         * modules/mbrlen: New file.
22053         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
22054         HAVE_MBRLEN.
22055         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
22056         HAVE_MBRLEN.
22057         * doc/posix-functions/mbrlen.texi: Document the new module.
22058
22059 2008-12-19  Bruno Haible  <bruno@clisp.org>
22060
22061         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
22062         * modules/mbrtowc (Depends-on): Add verify.
22063         Suggested by Paul Eggert.
22064
22065 2008-12-18  Bruno Haible  <bruno@clisp.org>
22066
22067         * modules/mbsinit-tests: New file.
22068         * tests/test-mbsinit.sh: New file.
22069         * tests/test-mbsinit.c: New file.
22070
22071 2008-12-18  Bruno Haible  <bruno@clisp.org>
22072
22073         * modules/mbrtowc-tests: New file.
22074         * tests/test-mbrtowc1.sh: New file.
22075         * tests/test-mbrtowc2.sh: New file.
22076         * tests/test-mbrtowc3.sh: New file.
22077         * tests/test-mbrtowc4.sh: New file.
22078         * tests/test-mbrtowc.c: New file.
22079
22080         New module 'mbrtowc'.
22081         * lib/wchar.in.h (mbstate_t): Override when the system does not have
22082         mbsinit and mbrtowc.
22083         (mbrtowc): New declaration.
22084         * lib/mbrtowc.c: New file.
22085         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
22086         * modules/mbrtowc: New file.
22087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
22088         HAVE_MBRTOWC.
22089         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
22090         HAVE_MBRTOWC.
22091         * doc/posix-functions/mbrtowc.texi: Document the new module.
22092
22093 2008-12-18  Bruno Haible  <bruno@clisp.org>
22094
22095         New module 'wctob'.
22096         * lib/wchar.in.h (wctob): New declaration.
22097         * lib/wctob.c: New file.
22098         * m4/wctob.m4: New file.
22099         * modules/wctob: New file.
22100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
22101         HAVE_WCTOB.
22102         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
22103         * doc/posix-functions/wctob.texi: Document the new module.
22104
22105 2008-12-18  Bruno Haible  <bruno@clisp.org>
22106
22107         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
22108         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
22109
22110 2008-12-18  Simon Josefsson  <simon@josefsson.org>
22111
22112         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
22113         G. Christensen" <tgc@jupiterrise.com>.
22114
22115         * lib/flock.c: Need to include errno.h.  Reported by "Tom
22116         G. Christensen" <tgc@jupiterrise.com>.
22117
22118         * lib/flock.c: Need to include string.h.  Reported by "Tom
22119         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
22120         <ebb9@byu.net>.
22121
22122 2008-12-18  Bruno Haible  <bruno@clisp.org>
22123
22124         * m4/locale-ja.m4: New file, from GNU gettext.
22125
22126 2008-12-17  Bruno Haible  <bruno@clisp.org>
22127
22128         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
22129         Suggested by Eric Blake.
22130
22131 2008-12-17  Bruno Haible  <bruno@clisp.org>
22132
22133         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
22134
22135 2008-12-17  Bruno Haible  <bruno@clisp.org>
22136
22137         * lib/mbsinit.c: Include verify.h. Verify an assumption.
22138         * modules/mbsinit (Depends-on): Add verify.
22139         Suggested by Paul Eggert.
22140
22141 2008-12-17  Bruno Haible  <bruno@clisp.org>
22142
22143         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
22144         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
22145         gl_FUNC_MBRTOWC.
22146         * m4/mbiter.m4 (gl_MBITER): LIkewise.
22147         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
22148         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
22149         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
22150         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
22151         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
22152         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
22153         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
22154         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
22155         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
22156         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
22157         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
22158         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
22159         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
22160         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
22161         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22162         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
22163         * modules/trim (configure.ac): Likewise.
22164
22165 2008-12-17  Bruno Haible  <bruno@clisp.org>
22166
22167         * modules/btowc-tests: New file.
22168         * tests/test-btowc1.sh: New file.
22169         * tests/test-btowc2.sh: New file.
22170         * tests/test-btowc.c: New file.
22171
22172         New module 'btowc'.
22173         * lib/wchar.in.h (btowc): New declaration.
22174         * lib/btowc.c: New file.
22175         * m4/btowc.m4: New file.
22176         * modules/btowc: New file.
22177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
22178         HAVE_BTOWC.
22179         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
22180         * doc/posix-functions/btowc.texi: Document the new module.
22181
22182 2008-12-17  Bruno Haible  <bruno@clisp.org>
22183
22184         New module 'mbsinit'.
22185         * lib/wchar.in.h (mbsinit): New declaration.
22186         * lib/mbsinit.c: New file.
22187         * m4/mbsinit.m4: New file.
22188         * modules/mbsinit: New file.
22189         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
22190         HAVE_MBSINIT.
22191         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
22192         HAVE_MBSINIT.
22193         * doc/posix-functions/mbsinit.texi: Document the new module.
22194
22195 2008-12-16  Bruno Haible  <bruno@clisp.org>
22196
22197         * lib/unistd.in.h: Add comment.
22198         * tests/test-environ.c: Don't include <stdlib.h>.
22199
22200 2008-12-16  Bruno Haible  <bruno@clisp.org>
22201
22202         * lib/parse-duration.h (parse_duration): Document return value
22203         convention.
22204         * lib/parse-duration.c: Include specification header first. Add
22205         comments.
22206         (_): Remove macro.
22207         (parse_year_month_day, parse_hour_minute_second): Move side effects
22208         outside of strchr call.
22209         (parse_non_iso8601): Move side effects outside of isspace call.
22210         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
22211         call.
22212
22213 2008-12-16  Bruno Haible  <bruno@clisp.org>
22214
22215         * tests/test-parse-duration.sh: Produce no output when the test
22216         succeeds.
22217
22218 2008-12-16  Bruno Haible  <bruno@clisp.org>
22219
22220         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
22221         expressions.
22222
22223 2008-12-15  Bruno Haible  <bruno@clisp.org>
22224
22225         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
22226         * doc/glibc-functions/flistxattr.texi: Likewise.
22227         * doc/glibc-functions/fopencookie.texi: Likewise.
22228         * doc/glibc-functions/fremovexattr.texi: Likewise.
22229         * doc/glibc-functions/fsetxattr.texi: Likewise.
22230         * doc/glibc-functions/getxattr.texi: Likewise.
22231         * doc/glibc-functions/lgetxattr.texi: Likewise.
22232         * doc/glibc-functions/listxattr.texi: Likewise.
22233         * doc/glibc-functions/llistxattr.texi: Likewise.
22234         * doc/glibc-functions/lremovexattr.texi: Likewise.
22235         * doc/glibc-functions/lsetxattr.texi: Likewise.
22236         * doc/glibc-functions/removexattr.texi: Likewise.
22237         * doc/glibc-functions/setxattr.texi: Likewise.
22238         * doc/posix-functions/open_memstream.texi: Likewise.
22239
22240 2008-12-15  Eric Blake  <ebb9@byu.net>
22241
22242         Update doc for cygwin 1.7.
22243         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
22244         functions.
22245         * doc/posix-functions/fchmodat.texi: Likewise.
22246         * doc/posix-functions/fchownat.texi: Likewise.
22247         * doc/posix-functions/fdopendir.texi: Likewise.
22248         * doc/posix-functions/fmemopen.texi: Likewise.
22249         * doc/posix-functions/freeaddrinfo.texi: Likewise.
22250         * doc/posix-functions/fstatat.texi: Likewise.
22251         * doc/posix-functions/futimens.texi: Likewise.
22252         * doc/posix-functions/gai_strerror.texi: Likewise.
22253         * doc/posix-functions/getaddrinfo.texi: Likewise.
22254         * doc/posix-functions/getnameinfo.texi: Likewise.
22255         * doc/posix-functions/if_freenameindex.texi: Likewise.
22256         * doc/posix-functions/if_indextoname.texi: Likewise.
22257         * doc/posix-functions/if_nameindex.texi: Likewise.
22258         * doc/posix-functions/if_nametoindex.texi: Likewise.
22259         * doc/posix-functions/insque.texi: Likewise.
22260         * doc/posix-functions/linkat.texi: Likewise.
22261         * doc/posix-functions/llrint.texi: Likewise.
22262         * doc/posix-functions/llrintf.texi: Likewise.
22263         * doc/posix-functions/llrintl.texi: Likewise.
22264         * doc/posix-functions/lockf.texi: Likewise.
22265         * doc/posix-functions/lrintl.texi: Likewise.
22266         * doc/posix-functions/mkdirat.texi: Likewise.
22267         * doc/posix-functions/mkfifoat.texi: Likewise.
22268         * doc/posix-functions/mknodat.texi: Likewise.
22269         * doc/posix-functions/mq_close.texi: Likewise.
22270         * doc/posix-functions/mq_getattr.texi: Likewise.
22271         * doc/posix-functions/mq_notify.texi: Likewise.
22272         * doc/posix-functions/mq_open.texi: Likewise.
22273         * doc/posix-functions/mq_receive.texi: Likewise.
22274         * doc/posix-functions/mq_send.texi: Likewise.
22275         * doc/posix-functions/mq_setattr.texi: Likewise.
22276         * doc/posix-functions/mq_timedreceive.texi: Likewise.
22277         * doc/posix-functions/mq_timedsend.texi: Likewise.
22278         * doc/posix-functions/mq_unlink.texi: Likewise.
22279         * doc/posix-functions/open_memstream.texi: Likewise.
22280         * doc/posix-functions/openat.texi: Likewise.
22281         * doc/posix-functions/posix_fadvise.texi: Likewise.
22282         * doc/posix-functions/posix_fallocate.texi: Likewise.
22283         * doc/posix-functions/posix_madvise.texi: Likewise.
22284         * doc/posix-functions/posix_memalign.texi: Likewise.
22285         * doc/posix-functions/posix_openpt.texi: Likewise.
22286         * doc/posix-functions/readlinkat.texi: Likewise.
22287         * doc/posix-functions/remque.texi: Likewise.
22288         * doc/posix-functions/renameat.texi: Likewise.
22289         * doc/posix-functions/rintl.texi: Likewise.
22290         * doc/posix-functions/sem_unlink.texi: Likewise.
22291         * doc/posix-functions/shm_open.texi: Likewise.
22292         * doc/posix-functions/shm_unlink.texi: Likewise.
22293         * doc/posix-functions/signgam.texi: Likewise.
22294         * doc/posix-functions/sigset.texi: Likewise.
22295         * doc/posix-functions/stpcpy.texi: Likewise.
22296         * doc/posix-functions/stpncpy.texi: Likewise.
22297         * doc/posix-functions/strerror.texi: Likewise.
22298         * doc/posix-functions/strtod.texi: Likewise.
22299         * doc/posix-functions/symlinkat.texi: Likewise.
22300         * doc/posix-functions/unlinkat.texi: Likewise.
22301         * doc/posix-functions/utimensat.texi: Likewise.
22302         * doc/glibc-functions/bindresvport.texi: Likewise.
22303         * doc/glibc-functions/dn_expand.texi: Likewise.
22304         * doc/glibc-functions/exp10.texi: Likewise.
22305         * doc/glibc-functions/exp10f.texi: Likewise.
22306         * doc/glibc-functions/fgetxattr.texi: Likewise.
22307         * doc/glibc-functions/flistxattr.texi: Likewise.
22308         * doc/glibc-functions/fopencookie.texi: Likewise.
22309         * doc/glibc-functions/freeifaddrs.texi: Likewise.
22310         * doc/glibc-functions/fremovexattr.texi: Likewise.
22311         * doc/glibc-functions/fsetxattr.texi: Likewise.
22312         * doc/glibc-functions/getifaddrs.texi: Likewise.
22313         * doc/glibc-functions/getxattr.texi: Likewise.
22314         * doc/glibc-functions/lgetxattr.texi: Likewise.
22315         * doc/glibc-functions/listxattr.texi: Likewise.
22316         * doc/glibc-functions/llistxattr.texi: Likewise.
22317         * doc/glibc-functions/lremovexattr.texi: Likewise.
22318         * doc/glibc-functions/lsetxattr.texi: Likewise.
22319         * doc/glibc-functions/pow10.texi: Likewise.
22320         * doc/glibc-functions/pow10f.texi: Likewise.
22321         * doc/glibc-functions/rcmd_af.texi: Likewise.
22322         * doc/glibc-functions/removexattr.texi: Likewise.
22323         * doc/glibc-functions/res_init.texi: Likewise.
22324         * doc/glibc-functions/res_mkquery.texi: Likewise.
22325         * doc/glibc-functions/res_query.texi: Likewise.
22326         * doc/glibc-functions/res_querydomain.texi: Likewise.
22327         * doc/glibc-functions/res_send.texi: Likewise.
22328         * doc/glibc-functions/rresvport_af.texi: Likewise.
22329         * doc/glibc-functions/setxattr.texi: Likewise.
22330         * doc/glibc-functions/strcasestr.texi: Likewise.
22331
22332 2008-12-15  Bruno Haible  <bruno@clisp.org>
22333
22334         Fix compilation error on OSF/1 4.0.
22335         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
22336         <sys/time.h>, simply delegate to the system header.
22337         Reported by Daniel Richard G. <oss@teragram.com>.
22338
22339 2008-12-15  Bruno Haible  <bruno@clisp.org>
22340
22341         * doc/posix-functions/openat.texi: Mention the 'openat' module.
22342         * doc/posix-functions/fchmodat.texi: Likewise.
22343         * doc/posix-functions/fchownat.texi: Likewise.
22344         * doc/posix-functions/fdopendir.texi: Likewise.
22345         * doc/posix-functions/fstatat.texi: Likewise.
22346         * doc/posix-functions/mkdirat.texi: Likewise.
22347         * doc/posix-functions/unlinkat.texi: Likewise.
22348
22349 2008-12-14  Bruno Haible  <bruno@clisp.org>
22350
22351         Update doc for POSIX:2008.
22352         * doc/posix-functions/faccessat.texi: New file.
22353         * doc/posix-functions/fchmodat.texi: New file.
22354         * doc/posix-functions/fchownat.texi: New file.
22355         * doc/posix-functions/fdopendir.texi: New file.
22356         * doc/posix-functions/fstatat.texi: New file.
22357         * doc/posix-functions/futimens.texi: New file.
22358         * doc/posix-functions/linkat.texi: New file.
22359         * doc/posix-functions/mkdirat.texi: New file.
22360         * doc/posix-functions/mkfifoat.texi: New file.
22361         * doc/posix-functions/mknodat.texi: New file.
22362         * doc/posix-functions/open_wmemstream.texi: New file.
22363         * doc/posix-functions/openat.texi: New file.
22364         * doc/posix-functions/psiginfo.texi: New file.
22365         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
22366         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
22367         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
22368         * doc/posix-functions/readlinkat.texi: New file.
22369         * doc/posix-functions/renameat.texi: New file.
22370         * doc/posix-functions/strerror_l.texi: New file.
22371         * doc/posix-functions/symlinkat.texi: New file.
22372         * doc/posix-functions/unlinkat.texi: New file.
22373         * doc/posix-functions/utimensat.texi: New file.
22374         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22375
22376 2008-12-14  Bruno Haible  <bruno@clisp.org>
22377
22378         Update doc for POSIX:2008.
22379         * doc/posix-functions/alphasort.texi: Renamed from
22380         doc/glibc-functions/alphasort.texi.
22381         * doc/posix-functions/dirfd.texi: Renamed from
22382         doc/glibc-functions/dirfd.texi.
22383         * doc/posix-functions/dprintf.texi: Renamed from
22384         doc/glibc-functions/dprintf.texi.
22385         * doc/posix-functions/duplocale.texi: Renamed from
22386         doc/glibc-functions/duplocale.texi.
22387         * doc/posix-functions/fexecve.texi: Renamed from
22388         doc/glibc-functions/fexecve.texi.
22389         * doc/posix-functions/fmemopen.texi: Renamed from
22390         doc/glibc-functions/fmemopen.texi.
22391         * doc/posix-functions/freelocale.texi: Renamed from
22392         doc/glibc-functions/freelocale.texi.
22393         * doc/posix-functions/getdate_err.texi: Renamed from
22394         doc/glibc-functions/getdate_err.texi.
22395         * doc/posix-functions/isalnum_l.texi: Renamed from
22396         doc/glibc-functions/isalnum_l.texi.
22397         * doc/posix-functions/isalpha_l.texi: Renamed from
22398         doc/glibc-functions/isalpha_l.texi.
22399         * doc/posix-functions/isblank_l.texi: Renamed from
22400         doc/glibc-functions/isblank_l.texi.
22401         * doc/posix-functions/iscntrl_l.texi: Renamed from
22402         doc/glibc-functions/iscntrl_l.texi.
22403         * doc/posix-functions/isdigit_l.texi: Renamed from
22404         doc/glibc-functions/isdigit_l.texi.
22405         * doc/posix-functions/isgraph_l.texi: Renamed from
22406         doc/glibc-functions/isgraph_l.texi.
22407         * doc/posix-functions/islower_l.texi: Renamed from
22408         doc/glibc-functions/islower_l.texi.
22409         * doc/posix-functions/isprint_l.texi: Renamed from
22410         doc/glibc-functions/isprint_l.texi.
22411         * doc/posix-functions/ispunct_l.texi: Renamed from
22412         doc/glibc-functions/ispunct_l.texi.
22413         * doc/posix-functions/isspace_l.texi: Renamed from
22414         doc/glibc-functions/isspace_l.texi.
22415         * doc/posix-functions/isupper_l.texi: Renamed from
22416         doc/glibc-functions/isupper_l.texi.
22417         * doc/posix-functions/iswalnum_l.texi: Renamed from
22418         doc/glibc-functions/iswalnum_l.texi.
22419         * doc/posix-functions/iswalpha_l.texi: Renamed from
22420         doc/glibc-functions/iswalpha_l.texi.
22421         * doc/posix-functions/iswblank_l.texi: Renamed from
22422         doc/glibc-functions/iswblank_l.texi.
22423         * doc/posix-functions/iswcntrl_l.texi: Renamed from
22424         doc/glibc-functions/iswcntrl_l.texi.
22425         * doc/posix-functions/iswctype_l.texi: Renamed from
22426         doc/glibc-functions/iswctype_l.texi.
22427         * doc/posix-functions/iswdigit_l.texi: Renamed from
22428         doc/glibc-functions/iswdigit_l.texi.
22429         * doc/posix-functions/iswgraph_l.texi: Renamed from
22430         doc/glibc-functions/iswgraph_l.texi.
22431         * doc/posix-functions/iswlower_l.texi: Renamed from
22432         doc/glibc-functions/iswlower_l.texi.
22433         * doc/posix-functions/iswprint_l.texi: Renamed from
22434         doc/glibc-functions/iswprint_l.texi.
22435         * doc/posix-functions/iswpunct_l.texi: Renamed from
22436         doc/glibc-functions/iswpunct_l.texi.
22437         * doc/posix-functions/iswspace_l.texi: Renamed from
22438         doc/glibc-functions/iswspace_l.texi.
22439         * doc/posix-functions/iswupper_l.texi: Renamed from
22440         doc/glibc-functions/iswupper_l.texi.
22441         * doc/posix-functions/iswxdigit_l.texi: Renamed from
22442         doc/glibc-functions/iswxdigit_l.texi.
22443         * doc/posix-functions/isxdigit_l.texi: Renamed from
22444         doc/glibc-functions/isxdigit_l.texi.
22445         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
22446         doc/glibc-functions/mbsnrtowcs.texi.
22447         * doc/posix-functions/mkdtemp.texi: Renamed from
22448         doc/glibc-functions/mkdtemp.texi.
22449         * doc/posix-functions/newlocale.texi: Renamed from
22450         doc/glibc-functions/newlocale.texi.
22451         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
22452         doc/glibc-functions/nl_langinfo_l.texi.
22453         * doc/posix-functions/open_memstream.texi: Renamed from
22454         doc/glibc-functions/open_memstream.texi.
22455         * doc/posix-functions/opterr.texi: Renamed from
22456         doc/glibc-functions/opterr.texi.
22457         * doc/posix-functions/optind.texi: Renamed from
22458         doc/glibc-functions/optind.texi.
22459         * doc/posix-functions/optopt.texi: Renamed from
22460         doc/glibc-functions/optopt.texi.
22461         * doc/posix-functions/psignal.texi: Renamed from
22462         doc/glibc-functions/psignal.texi.
22463         * doc/posix-functions/scandir.texi: Renamed from
22464         doc/glibc-functions/scandir.texi.
22465         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
22466         doc/glibc-functions/sched_get_priority_min.texi.
22467         * doc/posix-functions/signgam.texi: Renamed from
22468         doc/glibc-functions/signgam.texi.
22469         * doc/posix-functions/stpcpy.texi: Renamed from
22470         doc/glibc-functions/stpcpy.texi.
22471         * doc/posix-functions/stpncpy.texi: Renamed from
22472         doc/glibc-functions/stpncpy.texi.
22473         * doc/posix-functions/strcasecmp_l.texi: Renamed from
22474         doc/glibc-functions/strcasecmp_l.texi.
22475         * doc/posix-functions/strcoll_l.texi: Renamed from
22476         doc/glibc-functions/strcoll_l.texi.
22477         * doc/posix-functions/strfmon_l.texi: Renamed from
22478         doc/glibc-functions/strfmon_l.texi.
22479         * doc/posix-functions/strftime_l.texi: Renamed from
22480         doc/glibc-functions/strftime_l.texi.
22481         * doc/posix-functions/strncasecmp_l.texi: Renamed from
22482         doc/glibc-functions/strncasecmp_l.texi.
22483         * doc/posix-functions/strndup.texi: Renamed from
22484         doc/glibc-functions/strndup.texi.
22485         * doc/posix-functions/strnlen.texi: Renamed from
22486         doc/glibc-functions/strnlen.texi.
22487         * doc/posix-functions/strsignal.texi: Renamed from
22488         doc/glibc-functions/strsignal.texi.
22489         * doc/posix-functions/strxfrm_l.texi: Renamed from
22490         doc/glibc-functions/strxfrm_l.texi.
22491         * doc/posix-functions/timer_gettime.texi: Renamed from
22492         doc/glibc-functions/timer_gettime.texi.
22493         * doc/posix-functions/tolower_l.texi: Renamed from
22494         doc/glibc-functions/tolower_l.texi.
22495         * doc/posix-functions/toupper_l.texi: Renamed from
22496         doc/glibc-functions/toupper_l.texi.
22497         * doc/posix-functions/towctrans_l.texi: Renamed from
22498         doc/glibc-functions/towctrans_l.texi.
22499         * doc/posix-functions/towlower_l.texi: Renamed from
22500         doc/glibc-functions/towlower_l.texi.
22501         * doc/posix-functions/towupper_l.texi: Renamed from
22502         doc/glibc-functions/towupper_l.texi.
22503         * doc/posix-functions/uselocale.texi: Renamed from
22504         doc/glibc-functions/uselocale.texi.
22505         * doc/posix-functions/vdprintf.texi: Renamed from
22506         doc/glibc-functions/vdprintf.texi.
22507         * doc/posix-functions/wcpcpy.texi:
22508         Renamed from doc/glibc-functions/wcpcpy.texi.
22509         * doc/posix-functions/wcpncpy.texi: Renamed from
22510         doc/glibc-functions/wcpncpy.texi.
22511         * doc/posix-functions/wcscasecmp.texi: Renamed from
22512         doc/glibc-functions/wcscasecmp.texi.
22513         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
22514         doc/glibc-functions/wcscasecmp_l.texi.
22515         * doc/posix-functions/wcscoll_l.texi: Renamed from
22516         doc/glibc-functions/wcscoll_l.texi.
22517         * doc/posix-functions/wcsdup.texi: Renamed from
22518         doc/glibc-functions/wcsdup.texi.
22519         * doc/posix-functions/wcsncasecmp.texi: Renamed from
22520         doc/glibc-functions/wcsncasecmp.texi.
22521         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
22522         doc/glibc-functions/wcsncasecmp_l.texi.
22523         * doc/posix-functions/wcsnlen.texi: Renamed from
22524         doc/glibc-functions/wcsnlen.texi.
22525         * doc/posix-functions/wcsnrtombs.texi: Renamed from
22526         doc/glibc-functions/wcsnrtombs.texi.
22527         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
22528         doc/glibc-functions/wcsxfrm_l.texi.
22529         * doc/posix-functions/wctrans_l.texi: Renamed from
22530         doc/glibc-functions/wctrans_l.texi.
22531         * doc/posix-functions/wctype_l.texi: Renamed from
22532         doc/glibc-functions/wctype_l.texi.
22533         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22534         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22535         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22536         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22537         these subsections.
22538         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22539         Remove sections.
22540
22541 2008-12-14  Bruno Haible  <bruno@clisp.org>
22542
22543         Update doc for POSIX:2008.
22544         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22545
22546 2008-12-14  Bruno Haible  <bruno@clisp.org>
22547
22548         Update doc for POSIX:2008.
22549         * doc/pastposix-functions/bcmp.texi: Renamed from
22550         doc/posix-functions/bcmp.texi.
22551         * doc/pastposix-functions/bcopy.texi: Renamed from
22552         doc/posix-functions/bcopy.texi.
22553         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22554         doc/posix-functions/bsd_signal.texi.
22555         * doc/pastposix-functions/bzero.texi: Renamed from
22556         doc/posix-functions/bzero.texi.
22557         * doc/pastposix-functions/ecvt.texi: Renamed from
22558         doc/posix-functions/ecvt.texi.
22559         * doc/pastposix-functions/fcvt.texi: Renamed from
22560         doc/posix-functions/fcvt.texi.
22561         * doc/pastposix-functions/ftime.texi: Renamed from
22562         doc/posix-functions/ftime.texi.
22563         * doc/pastposix-functions/gcvt.texi: Renamed from
22564         doc/posix-functions/gcvt.texi.
22565         * doc/pastposix-functions/getcontext.texi: Renamed from
22566         doc/posix-functions/getcontext.texi.
22567         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22568         doc/posix-functions/gethostbyaddr.texi.
22569         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22570         doc/posix-functions/gethostbyname.texi.
22571         * doc/pastposix-functions/getwd.texi: Renamed from
22572         doc/posix-functions/getwd.texi.
22573         * doc/pastposix-functions/h_errno.texi: Renamed from
22574         doc/posix-functions/h_errno.texi.
22575         * doc/pastposix-functions/index.texi: Renamed from
22576         doc/posix-functions/index.texi.
22577         * doc/pastposix-functions/makecontext.texi: Renamed from
22578         doc/posix-functions/makecontext.texi.
22579         * doc/pastposix-functions/mktemp.texi: Renamed from
22580         doc/posix-functions/mktemp.texi.
22581         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22582         doc/posix-functions/pthread_attr_getstackaddr.texi.
22583         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22584         doc/posix-functions/pthread_attr_setstackaddr.texi.
22585         * doc/pastposix-functions/rindex.texi: Renamed from
22586         doc/posix-functions/rindex.texi.
22587         * doc/pastposix-functions/scalb.texi: Renamed from
22588         doc/posix-functions/scalb.texi.
22589         * doc/pastposix-functions/setcontext.texi: Renamed from
22590         doc/posix-functions/setcontext.texi.
22591         * doc/pastposix-functions/swapcontext.texi: Renamed from
22592         doc/posix-functions/swapcontext.texi.
22593         * doc/pastposix-functions/ualarm.texi: Renamed from
22594         doc/posix-functions/ualarm.texi.
22595         * doc/pastposix-functions/usleep.texi: Renamed from
22596         doc/posix-functions/usleep.texi.
22597         * doc/pastposix-functions/vfork.texi: Renamed from
22598         doc/posix-functions/vfork.texi.
22599         * doc/pastposix-functions/wcswcs.texi: Renamed from
22600         doc/posix-functions/wcswcs.texi.
22601         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22602         (Function Substitutes): Update.
22603
22604 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22605
22606         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22607         m4/strerror.m4.
22608
22609 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22610             Bruno Haible  <bruno@clisp.org>
22611
22612         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22613
22614 2008-12-13  Bruno Haible  <bruno@clisp.org>
22615
22616         * modules/strtoull (Depends-on): Remove unistd.
22617
22618 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22619
22620         * modules/strtoull (Depends-on): Add stdlib.
22621
22622 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22623
22624         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22625
22626 2008-12-10  Jim Meyering  <meyering@redhat.com>
22627
22628         gl_ASSERT: don't say assertions are disabled when they're not
22629         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22630         "checking whether to enable assertions... no", when they are in
22631         fact enabled.  This is solely a bug in the output of configure.
22632         In spite of saying "no", NDEBUG was not defined in that case.
22633         Also, as noted by Eric Blake, leave assertions enabled upon
22634         --enable-assert=INVALID.
22635
22636 2008-12-10  Bruno Haible  <bruno@clisp.org>
22637
22638         Change MODULES.html to refer to POSIX:2008 where possible.
22639         * MODULES.html.sh (POSIX2008_URL): New variable.
22640         (posix_headers): Remove sys/timeb, ucontext.
22641         (posix2001_headers): New variable.
22642         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22643         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22644         index, makecontext, mktemp, pthread_attr_getstackaddr,
22645         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22646         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22647         (posix2001_functions): New variable.
22648         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22649         otherwise.
22650
22651 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22652
22653         add missing include to parse-duration.c
22654         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22655         * modules/parse-duration (Depends-on): Add xalloc.
22656
22657         fix sed script reading maint.mk
22658         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22659         (syntax-check-rules): Use it.
22660
22661 2008-12-09  Bruno Haible  <bruno@clisp.org>
22662
22663         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22664         MacOS X 10.4/PowerPC.
22665         Reported by Simon Josefsson.
22666
22667 2008-12-08  Jim Meyering  <meyering@redhat.com>
22668
22669         work around mingw's lack of some S_IF definitions
22670         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22671         Reported by Simon Josefsson.
22672
22673 2008-12-08  Bruno Haible  <bruno@clisp.org>
22674
22675         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22676         applied to variables. Needed on MacOS X 10.4/PowerPC.
22677         Reported by Simon Josefsson.
22678
22679 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22680         and Eric Blake  <ebb9@byu.net>
22681
22682         assert: honor --enable-assert
22683         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22684         order to honor --enable-assert, rather than treating it as a
22685         synonym for --disable-assert.
22686
22687 2008-12-08  Jim Meyering  <meyering@redhat.com>
22688
22689         * lib/posixtm.c: Remove now-useless declaration of mktime.
22690
22691         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22692
22693 2008-12-07  Bruno Haible  <bruno@clisp.org>
22694
22695         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22696         test_once): Mark functions as static.
22697         * tests/test-tls.c (test_tls): Likewise.
22698
22699 2008-12-07  Bruno Haible  <bruno@clisp.org>
22700
22701         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22702         iconv_register_autodetect.
22703
22704 2008-12-07  Jim Meyering  <meyering@redhat.com>
22705
22706         posixtm.c: avoid a warning
22707         * lib/posixtm.c (posixtime): Don't initialize tm0.
22708         It's no longer needed to placate gcc4's -Wuninitialized,
22709         and the attempt to placate would elicit a new warning.
22710
22711         unicodeio.c: mark unused parameters
22712         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22713         (fallback_failure_callback): Likewise.
22714
22715 2008-12-07  Bruno Haible  <bruno@clisp.org>
22716
22717         * gnulib-tool (func_create_testdir): When building the tests
22718         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22719         Reported by Simon Josefsson.
22720
22721 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22722
22723         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
22724
22725 2008-12-06  Bruno Haible  <bruno@clisp.org>
22726
22727         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
22728         Suggested by Eric Blake.
22729
22730 2008-12-06  Bruno Haible  <bruno@clisp.org>
22731
22732         Fix a c-stack test failure on MacOS X.
22733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
22734         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
22735         handler for SIGBUS as well.
22736         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
22737         install a signal handler for SIGBUS as well.
22738         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
22739
22740 2008-12-06  Bruno Haible  <bruno@clisp.org>
22741
22742         Advocacy documentation.
22743         * doc/gnulib-intro.texi (Benefits): New section.
22744         * doc/gnulib.texi: Update.
22745
22746 2008-12-06  Bruno Haible  <bruno@clisp.org>
22747
22748         Document the 'manywarnings' module.
22749         * doc/manywarnings.texi: New file.
22750         * doc/gnulib.texi: Include it.
22751
22752 2008-12-05  Eric Blake  <ebb9@byu.net>
22753
22754         tests: silence some gcc warnings
22755         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
22756         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
22757         type mismatches.
22758
22759 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22760             Bruno Haible  <bruno@clisp.org>
22761
22762         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
22763
22764 2008-11-29  Jim Meyering  <meyering@redhat.com>
22765
22766         unicodeio.c: mark unused parameters
22767         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22768         (fallback_failure_callback): Likewise.
22769
22770         fts: fix a thinko
22771         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
22772         (set_stat_type): Return S_IF*-valued "type" directly.
22773         Prompted by James Youngman's spotting a related bug.
22774         Confirmed by further testing through find.
22775
22776         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
22777         * lib/fts.c (D_TYPE): Define.
22778         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
22779         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
22780         (s_ifmt_shift_bits): New function.
22781         (set_stat_type): New function.
22782         (fts_build): When not calling fts_stat, call set_stat_type
22783         to propagate dirent.d_type info to fts_read caller.
22784         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
22785         fts_statp->st_mode type information may be valid.
22786
22787 2008-11-28  Simon Josefsson  <simon@josefsson.org>
22788
22789         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
22790         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
22791         <sds@gnu.org>.
22792
22793 2008-11-20  Bruno Haible  <bruno@clisp.org>
22794
22795         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
22796         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
22797         INCLUDE_NEXT.
22798         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
22799         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
22800         * modules/math (Makefile.am): Substitute
22801         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
22802         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22803
22804 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
22805             Bruno Haible  <bruno@clisp.org>
22806
22807         * lib/stdint.in.h: Define all type macros so that their expansion is
22808         a single typedef'ed token. Fixes a compilation failure in Boost which
22809         does "using ::int8_t;".
22810
22811 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22812
22813         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
22814         gl_MANYWARN_ALL_GCC.
22815         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
22816         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
22817         * modules/manywarnings: New file.
22818         * MODULES.html.sh: Mention manywarnings module.
22819
22820 2008-11-18  Bruno Haible  <bruno@clisp.org>
22821
22822         * doc/gnulib-tool.texi (Unit tests): New section.
22823
22824 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22825
22826         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
22827         paths like 'lib/po/foo.po'.
22828
22829 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22830
22831         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
22832         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
22833
22834 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22835
22836         * m4/warnings.m4: Use CPPFLAGS to really check whether the
22837         parameter works.
22838
22839 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22840
22841         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
22842
22843 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22844
22845         * modules/parse-duration-tests: New file.
22846         * tests/test-parse-duration.sh: New file.
22847         * tests/test-parse-duration.c: New file.
22848
22849         New module 'parse-duration'.
22850         * lib/parse-duration.h: New file.
22851         * lib/parse-duration.c: New file.
22852         * modules/parse-duration: New file.
22853
22854 2008-11-17  Bruno Haible  <bruno@clisp.org>
22855
22856         * tests/test-select-out.sh: Comment out the first pipe test.
22857         Reported by Simon Josefsson.
22858
22859 2008-11-17  Bruno Haible  <bruno@clisp.org>
22860
22861         * modules/getaddrinfo (Depends-on): Add servent, hostent.
22862         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
22863         gl_HOSTENT.
22864
22865 2008-11-17  Bruno Haible  <bruno@clisp.org>
22866
22867         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
22868         -lnetwork and -lnet. Needed for Haiku and BeOS.
22869
22870 2008-11-16  Bruno Haible  <bruno@clisp.org>
22871
22872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
22873
22874 2008-11-16  Bruno Haible  <bruno@clisp.org>
22875
22876         Avoid test failure on Haiku.
22877         * tests/test-fsync.c: Include <errno.h>.
22878         (main): Don't require that fsync (0) fails.
22879
22880 2008-11-15  Bruno Haible  <bruno@clisp.org>
22881
22882         New module 'hostent'.
22883         * modules/hostent: New file.
22884         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
22885
22886 2008-11-15  Bruno Haible  <bruno@clisp.org>
22887
22888         New module 'servent'.
22889         * modules/servent: New file.
22890         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
22891
22892 2008-11-15  Bruno Haible  <bruno@clisp.org>
22893
22894         Avoid generating same test program with two different rules.
22895         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
22896         test-frexp to test-frexp-nolibm.
22897         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
22898         test-frexpl to test-frexpl-nolibm.
22899
22900 2008-11-15  Bruno Haible  <bruno@clisp.org>
22901
22902         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
22903         $(FREXPL_LIBM).
22904
22905 2008-11-15  Bruno Haible  <bruno@clisp.org>
22906
22907         * lib/netdb.in.h: Activate the definitions also when the system's
22908         <netdb.h> has 'struct addrinfo'.
22909         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
22910         EAI_OVERFLOW or AI_NUMERICSERV.
22911         * doc/posix-headers/netdb.texi: Document the problem.
22912
22913 2008-11-15  Bruno Haible  <bruno@clisp.org>
22914
22915         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
22916
22917         Make the 'sched' module work on platforms where <sched.h> exists but
22918         is incomplete (such as Haiku).
22919         * lib/sched.in.h; Include the system's <sched.h> if it exists.
22920         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
22921         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
22922         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
22923         HAVE_STRUCT_SCHED_PARAM.
22924         * modules/sched (Depends-on): Add include_next.
22925         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
22926         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
22927         * doc/posix-headers/sched.texi: Document the issue.
22928
22929 2008-11-13  Jim Meyering  <meyering@redhat.com>
22930
22931         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
22932         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
22933         test would fail due to the difference in the Report bugs to ...
22934         line.  The expected address is empty, "<>", while the actual
22935         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
22936
22937 2008-11-12  Bruno Haible  <bruno@clisp.org>
22938
22939         lstat: don't compile lstat.c on systems lacking lstat
22940         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
22941         which don't have lstat; this is handled by lib/sys_stat.in.h already.
22942         Reported by Daniel P. Berrange via Jim Meyering.
22943
22944 2008-11-12  Jim Meyering  <meyering@redhat.com>
22945
22946         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
22947
22948 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22949
22950         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
22951         instead.
22952
22953 2008-11-12  Bruno Haible  <bruno@clisp.org>
22954
22955         * lib/unicodeio.c: Include unistr.h.
22956         (utf8_wctomb): Remove function.
22957         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
22958
22959 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22960
22961         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
22962         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
22963         <bruno@clisp.org>.
22964         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
22965
22966 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22967
22968         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
22969         * doc/gnulib.texi: Add section for warnings.
22970
22971 2008-11-11  Bruno Haible  <bruno@clisp.org>
22972
22973         * lib/sockets.h: Add a comment.
22974
22975 2008-11-11  Karl Berry  <karl@gnu.org>
22976
22977         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
22978
22979 2008-11-11  Eric Blake  <ebb9@byu.net>
22980
22981         fdl.texi: avoid git symlinks
22982         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
22983
22984 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22985
22986         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
22987
22988 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22989
22990         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
22991         (gl_WARN_ADD): Substitute $2 if literal.
22992
22993 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22994
22995         * m4/warning.m4: Remove.
22996
22997 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22998
22999         * m4/warnings.m4: Almost complete rewrite. :-)
23000
23001 2008-11-10  Simon Josefsson  <simon@josefsson.org>
23002
23003         * modules/warnings: New module.
23004         * m4/warnings.m4: New file.
23005         * MODULES.html.sh: Mention warnings module.
23006         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
23007         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23008
23009 2008-11-10  Eric Blake  <ebb9@byu.net>
23010
23011         fdl.texi: make a symlink to the latest version
23012         * doc/standards.texi: Revert today's earlier change.
23013         * doc/fdl-1.2.texi: Rename from old fdl.texi...
23014         * doc/fdl.texi: ...and replace this with a symlink to the newer
23015         fdl-1.3.texi.
23016
23017 2008-11-10  Bruno Haible  <bruno@clisp.org>
23018
23019         * tests/test-select-fd.c (main): Accept the result file name as fourth
23020         argument.
23021         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
23022         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
23023
23024 2008-11-10  Bruno Haible  <bruno@clisp.org>
23025
23026         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
23027         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
23028         as autoconf-substituted macros.
23029         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
23030         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
23031         gl_NETDB_H_DEFAULTS. Set these variables.
23032         * modules/netdb (Makefile.am): Substitute these variables.
23033
23034 2008-11-10  Eric Blake  <ebb9@byu.net>
23035
23036         standards.texi: include correct file for FDL 1.3
23037         * doc/standards.texi (GNU Free Documentation License): Change
23038         include file to pull in FDL 1.3, not 1.2.
23039
23040         fdl.texi: revert accidental change to license
23041         * doc/fdl.texi: This is FDL 1.2, not 1.3.
23042
23043 2008-11-10  Bruno Haible  <bruno@clisp.org>
23044
23045         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
23046         cross-compiling guesses also when the native compile gives no result.
23047
23048 2008-11-10  Bruno Haible  <bruno@clisp.org>
23049
23050         * lib/spawni.c (__spawni): Force variable into the stack.
23051
23052 2008-11-10  Bruno Haible  <bruno@clisp.org>
23053
23054         Add support for Haiku.
23055         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
23056         glibc and BeOS, but also on Haiku.
23057         * lib/fpurge.c (fpurge): Likewise.
23058         * lib/freadable.c (freadable): Likewise.
23059         * lib/freadahead.c (freadahead): Likewise.
23060         * lib/freading.c (freading): Likewise.
23061         * lib/freadptr.c (freadptr): Likewise.
23062         * lib/freadseek.c (freadptrinc): Likewise.
23063         * lib/fseeko.c (rpl_fseeko): Likewise.
23064         * lib/fseterr.c (fseterr): Likewise.
23065         * lib/fwritable.c (fwritable): Likewise.
23066         * lib/fwriting.c (fwriting): Likewise.
23067         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
23068
23069 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23070
23071         * lib/config.charset: Treat Haiku like BeOS.
23072
23073 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23074
23075         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
23076         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
23077
23078 2008-11-08  Bruno Haible  <bruno@clisp.org>
23079
23080         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
23081         AC_CACHE_CHECK.
23082
23083 2008-11-08  Bruno Haible  <bruno@clisp.org>
23084
23085         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
23086
23087 2008-11-08  Bruno Haible  <bruno@clisp.org>
23088
23089         * tests/test-select-fd.c: New file.
23090         * tests/test-select-in.sh: New file.
23091         * tests/test-select-out.sh: New file.
23092         * tests/test-select-stdin.c: New file.
23093         * modules/select-tests (Files): Add the new files.
23094         (Depends-on): Add gettimeofday.
23095         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
23096         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
23097         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
23098
23099 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
23100             Bruno Haible  <bruno@clisp.org>
23101
23102         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
23103
23104 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
23105
23106         * build-aux/pmccabe2html: Added support for C++ source files.
23107
23108 2008-11-05  Ben Pfaff  <blp@gnu.org>
23109
23110         Fix lib/close.c build on Windows.
23111         * modules/close (Files): Add lib/w32sock.h.
23112
23113 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
23114
23115         Accept Bison's NEWS format.
23116         * build-aux/announce-gen (print_news_deltas): Tweak
23117         $re_prefix.
23118
23119 2008-11-04  Bruno Haible  <bruno@clisp.org>
23120
23121         * modules/random_r (Maintainer): Add glibc.
23122
23123 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23124
23125         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
23126         by karl@freefriends.org (Karl Berry).
23127         * doc/alloca.texi: Likewise.
23128         * doc/c-ctype.texi: Likewise.
23129         * doc/c-strcase.texi: Likewise.
23130         * doc/c-strcaseeq.texi: Likewise.
23131         * doc/c-strcasestr.texi: Likewise.
23132         * doc/c-strstr.texi: Likewise.
23133         * doc/c-strtod.texi: Likewise.
23134         * doc/c-strtold.texi: Likewise.
23135         * doc/ctime.texi: Likewise.
23136         * doc/error.texi: Likewise.
23137         * doc/fdl.texi: Likewise.
23138         * doc/gcd.texi: Likewise.
23139         * doc/getdate.texi: Likewise.
23140         * doc/gnulib-intro.texi: Likewise.
23141         * doc/gnulib-tool.texi: Likewise.
23142         * doc/gnulib.texi: Likewise.
23143         * doc/inet_ntoa.texi: Likewise.
23144         * doc/maintain.texi: Likewise.
23145         * doc/make-stds.texi: Likewise.
23146         * doc/quote.texi: Likewise.
23147         * doc/regexprops-generic.texi: Likewise.
23148         * doc/standards.texi: Likewise.
23149         * doc/verify.texi: Likewise.
23150         * doc/visibility.texi: Likewise.
23151         * doc/gnulib.texi (GNU Free Documentation License): Include
23152         fdl-1.3.texi instead of fdl.texi.
23153
23154 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23155
23156         * doc/fdl-1.3.texi: New file, from
23157         <http://www.gnu.org/licenses/fdl-1.3.texi>.
23158         * modules/fdl-1.3: Add.
23159         * MODULES.html.sh: Add fdl-1.3.
23160
23161 2008-11-03  Bruno Haible  <bruno@clisp.org>
23162
23163         Make determination of absolute name of header file work with AIX xlc.
23164         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
23165         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
23166         preprocessing.
23167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23168         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23169
23170 2008-11-03  Simon Josefsson  <simon@josefsson.org>
23171
23172         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
23173         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
23174         <ludo@gnu.org>.
23175
23176 2008-11-02  Bruno Haible  <bruno@clisp.org>
23177
23178         Mark 'strpbrk' obsolete.
23179         * modules/strpbrk (Status, Notice): New sections.
23180         * modules/strtok_r (Depends-on): Add strpbrk.
23181
23182 2008-11-02  Bruno Haible  <bruno@clisp.org>
23183
23184         Mark 'strdup' obsolete.
23185         * modules/strdup (Status, Notice): New sections.
23186         * modules/findprog (Depends-on): Add strdup.
23187         * modules/getaddrinfo (Depends-on): Likewise.
23188         * modules/localename (Depends-on): Likewise.
23189         * modules/relocatable-lib (Depends-on): Likewise.
23190         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
23191         * modules/relocatable-prog (Depends-on): Likewise.
23192         * modules/trim (Depends-on): Likewise.
23193         * modules/unictype/gen-ctype (Depends-on): Likewise.
23194         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23195
23196 2008-11-02  Bruno Haible  <bruno@clisp.org>
23197
23198         Mark 'strcspn' obsolete.
23199         * modules/strcspn (Status, Notice): New sections.
23200
23201 2008-11-02  Bruno Haible  <bruno@clisp.org>
23202
23203         Mark 'rmdir' obsolete.
23204         * modules/rmdir (Status, Notice): New sections.
23205         * modules/clean-temp (Depends-on): Add rmdir.
23206         * modules/openat (Depends-on): Likewise.
23207
23208 2008-11-02  Bruno Haible  <bruno@clisp.org>
23209
23210         Mark 'raise' obsolete.
23211         * modules/raise (Status, Notice): New sections.
23212         (Include): Specify <signal.h>.
23213         * modules/stdio (Depends-on): Add raise.
23214         * modules/write (Depends-on): Likewise.
23215
23216 2008-11-02  Bruno Haible  <bruno@clisp.org>
23217
23218         Mark 'memset' obsolete.
23219         * modules/memset (Status, Notice): New sections.
23220
23221 2008-11-02  Bruno Haible  <bruno@clisp.org>
23222
23223         Mark 'memmove' obsolete.
23224         * modules/memmove (Status, Notice): New sections.
23225         * modules/argp (Depends-on): Add memmove.
23226         * modules/argz (Depends-on): Likewise.
23227         * modules/canonicalize (Depends-on): Likewise.
23228         * modules/canonicalize-lgpl (Depends-on): Likewise.
23229         * modules/fts (Depends-on): Likewise.
23230         * modules/getcwd (Depends-on): Likewise.
23231         * modules/human (Depends-on): Likewise.
23232         * modules/regex (Depends-on): Likewise.
23233         * modules/striconveh (Depends-on): Likewise.
23234         * modules/trim (Depends-on): Likewise.
23235         * modules/unistr/u8-move (Depends-on): Likewise.
23236         * modules/unistr/u16-move (Depends-on): Likewise.
23237         * modules/unistr/u32-move (Depends-on): Likewise.
23238
23239 2008-11-02  Bruno Haible  <bruno@clisp.org>
23240
23241         Mark 'memcpy' obsolete.
23242         * modules/memcpy (Status, Notice): New sections.
23243
23244 2008-11-02  Bruno Haible  <bruno@clisp.org>
23245
23246         Mark 'memcmp' obsolete.
23247         * modules/memcmp (Status, Notice): New sections.
23248         * modules/argmatch (Depends-on): Add memchr.
23249         * modules/backupfile (Depends-on): Likewise.
23250         * modules/c-strcasestr (Depends-on): Likewise.
23251         * modules/crypto/des (Depends-on): Likewise.
23252         * modules/csharpcomp (Depends-on): Likewise.
23253         * modules/fnmatch (Depends-on): Likewise.
23254         * modules/git-merge-changelog (Depends-on): Likewise.
23255         * modules/isnand (Depends-on): Likewise.
23256         * modules/isnand-nolibm (Depends-on): Likewise.
23257         * modules/isnanf (Depends-on): Likewise.
23258         * modules/isnanf-nolibm (Depends-on): Likewise.
23259         * modules/isnanl (Depends-on): Likewise.
23260         * modules/isnanl-nolibm (Depends-on): Likewise.
23261         * modules/mbchar (Depends-on): Likewise.
23262         * modules/memcoll (Depends-on): Likewise.
23263         * modules/quotearg (Depends-on): Likewise.
23264         * modules/regex (Depends-on): Likewise.
23265         * modules/relocatable-prog (Depends-on): Likewise.
23266         * modules/same (Depends-on): Likewise.
23267         * modules/signbit (Depends-on): Likewise.
23268         * modules/strcasestr-simple (Depends-on): Likewise.
23269         * modules/unictype/gen-ctype (Depends-on): Likewise.
23270         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23271         * modules/uniname/uniname (Depends-on): Likewise.
23272         * modules/unistr/u8-cmp (Depends-on): Likewise.
23273
23274 2008-11-02  Bruno Haible  <bruno@clisp.org>
23275
23276         Mark 'memchr' obsolete.
23277         * modules/memchr (Status, Notice): New sections.
23278         * modules/argp (Depends-on): Add memchr.
23279         * modules/base64 (Depends-on): Likewise.
23280         * modules/c-strcasestr (Depends-on): Likewise.
23281         * modules/chdir-long (Depends-on): Likewise.
23282         * modules/fnmatch (Depends-on): Likewise.
23283         * modules/getsubopt (Depends-on): Likewise.
23284         * modules/git-merge-changelog (Depends-on): Likewise.
23285         * modules/glob (Depends-on): Likewise.
23286         * modules/strcasestr-simple (Depends-on): Likewise.
23287         * modules/strnlen (Depends-on): Likewise.
23288
23289 2008-11-02  Bruno Haible  <bruno@clisp.org>
23290
23291         Mark 'atexit' obsolete.
23292         * modules/atexit (Status, Notice): New sections.
23293         * modules/chdir-long (Depends-on): Add atexit.
23294         * modules/wait-process (Depends-on): Likewise.
23295
23296 2008-11-02  Bruno Haible  <bruno@clisp.org>
23297
23298         * gnulib-tool: New option --with-obsolete.
23299         (func_usage): Document it.
23300         (func_modules_transitive_closure): Drop obsolete dependencies if
23301         incobsolete is not true.
23302         (func_import): Read and save the incobsolete variable to the cache.
23303
23304 2008-11-02  Bruno Haible  <bruno@clisp.org>
23305
23306         * modules/TEMPLATE-EXTENDED: New field 'Status'.
23307         * gnulib-tool: New option --extract-status.
23308         (func_usage): Document it.
23309         (sed_extract_prog): Recognize it.
23310         (func_get_status): New function.
23311
23312 2008-10-30  Simon Josefsson  <simon@josefsson.org>
23313
23314         * modules/sockets (License): Change from LGPL to LGPLv2+.
23315
23316 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23317
23318         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
23319
23320 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23321
23322         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23323         Mention times and sys_times.
23324         * modules/sys_times, modules/sys_times-tests: New modules.
23325         * modules/times, modules/times-tests: Likewise
23326         * m4/sys_times_h.m4: New file.
23327         * lib/sys_times.in.h: Likewise
23328         * lib/times.c: Likewise.
23329         * tests/test-sys_times.c: Likewise.
23330         * tests/test-times.c: Likewise.
23331         * doc/posix-headers/sys_times.texi: Update.
23332         * doc/posix-functions/times.texi: Update.
23333
23334 2008-10-28  Jim Meyering  <meyering@redhat.com>
23335
23336         * modules/tempname (Depends-on): Add lstat.
23337
23338         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
23339
23340 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23341
23342         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
23343         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
23344         using idiom used elsewhere in gnulib.
23345
23346 2008-10-27  Jim Meyering  <meyering@redhat.com>
23347
23348         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
23349
23350 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23351
23352         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
23353         TESTS_ENVIRONMENT, for shell scripts that needs to call built
23354         programs.
23355         * tests/test-argp-2.sh: Use $EXEEXT when needed.
23356
23357 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23358
23359         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
23360
23361 2008-10-27  Bruno Haible  <bruno@clisp.org>
23362
23363         * tests/test-lstat.c: Include <stdio.h>.
23364
23365 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23366
23367         * modules/lstat-tests: New module.
23368         * tests/test-lstat.c: New file.
23369
23370 2008-10-26  Jim Meyering  <meyering@redhat.com>
23371
23372         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
23373
23374 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23375             Bruno Haible  <bruno@clisp.org>
23376
23377         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
23378         * modules/configmake (Include): Add a note that the include must come
23379         after all system headers.
23380         * lib/javaversion.c: Include configmake.h after all other includes.
23381
23382 2008-10-26  Bruno Haible  <bruno@clisp.org>
23383
23384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
23385         HAVE_STRUCT_RANDOM_DATA to 1.
23386         (gl_STDLIB_H): Simplify.
23387
23388 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23389
23390         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
23391         substitute HAVE_STRUCT_RANDOM_DATA.
23392         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
23393         random_data.
23394         * modules/stdlib (Makefile.am): Substitute
23395         HAVE_STRUCT_RANDOM_DATA.
23396
23397 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23398
23399         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
23400         * doc/gnulib-intro.texi (Copyright): Likewise.
23401
23402 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23403
23404         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
23405         findings.
23406
23407 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
23408             Bruno Haible  <bruno@clisp.org>
23409
23410         * lib/unistd.in.h: Include <winsock2.h>.
23411         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
23412         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
23413         Provide dummy declarations.
23414         (gethostname): Override.
23415         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
23416         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
23417         gl_PREREQ_SYS_H_WINSOCK2.
23418         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
23419         * doc/posix-functions/gethostname.texi: More details.
23420
23421 2008-10-25  Bruno Haible  <bruno@clisp.org>
23422
23423         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23424         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
23425         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
23426
23427         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
23428         here ...
23429         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
23430         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
23431         gl_UNISTD_H_DEFAULTS.
23432
23433 2008-10-25  Eric Blake  <ebb9@byu.net>
23434
23435         signbit: avoid spurious compiler failure
23436         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
23437         declarations inside function.
23438
23439 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23440             Bruno Haible  <bruno@clisp.org>
23441
23442         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
23443         * modules/random_r (Depends-on): Add stdint.
23444
23445 2008-10-24  Bruno Haible  <bruno@clisp.org>
23446
23447         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
23448         Eggert.
23449         * modules/strerror (License): Likewise.
23450
23451 2008-10-24  Jim Meyering  <meyering@redhat.com>
23452
23453         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
23454         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
23455
23456 2008-10-24  Eric Blake  <ebb9@byu.net>
23457
23458         getgroups: fix compilation when getgroups is available
23459         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
23460         but with <config.h> override of getgroups disabled.
23461
23462 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23463
23464         * doc/gnulib.texi (Header files): Add note about C++ problems.
23465         Explained by Bruno Haible <bruno@clisp.org>.
23466
23467 2008-10-23  Bruno Haible  <bruno@clisp.org>
23468
23469         Define a dummy SA_NODEFER macro on Interix.
23470         * lib/signal.in.h (SA_NODEFER): Define fallback.
23471         Reported by Aleksey Cheusov <cheusov@tut.by> via
23472         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
23473
23474 2008-10-23  Bruno Haible  <bruno@clisp.org>
23475
23476         * modules/freadahead (License): Change to LGPLv2+.
23477         Suggested by Simon Josefsson.
23478
23479 2008-10-23  Jim Meyering  <meyering@redhat.com>
23480
23481         random_r: new module
23482         * modules/random_r: New file.
23483         * m4/random_r.m4: New file.
23484         * lib/random_r.c: New file, from glibc.
23485         * modules/random_r-tests: New file.
23486         * tests/test-random_r.c: New file.
23487         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
23488          Declare.
23489         (RAND_MAX): Define.
23490         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
23491         * modules/stdlib: Substitute them, too.
23492         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
23493         * doc/glibc-functions/initstate_r.texi: Mention the new module.
23494         * doc/glibc-functions/random_r.texi: Likewise.
23495         * doc/glibc-functions/setstate_r.texi: Likewise.
23496         * doc/glibc-functions/srandom_r.texi: Likewise.
23497         * config/srclist.txt: Mention it.
23498
23499 2008-10-23  David Lutterkort  <lutter@redhat.com>
23500
23501         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
23502         link requirement
23503
23504 2008-10-23  Jim Meyering  <meyering@redhat.com>
23505
23506         selinux-h: mark parameters of stub functions as intentionally unused
23507         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
23508         * lib/se-context.in.h: Likewise.
23509
23510 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23511
23512         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
23513
23514 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23515
23516         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
23517
23518 2008-10-22  Eric Blake  <ebb9@byu.net>
23519
23520         glthread/thread: avoid compiler warning
23521         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
23522         Add unreachable abort to silence compiler.
23523
23524 2008-10-22  Eric Blake  <ebb9@byu.net>
23525
23526         netdb: also supply struct addrinfo for cygwin 1.5.x
23527         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
23528         older cygwin.
23529         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
23530         cygwin.
23531         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23532
23533 2008-10-22  Bruno Haible  <bruno@clisp.org>
23534
23535         * users.txt: Update entry about pspp.
23536
23537 2008-10-21  Bruno Haible  <bruno@clisp.org>
23538
23539         Simplification.
23540         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23541         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23542
23543         Simplification.
23544         * lib/ioctl.c (ioctl): Don't undefine.
23545         * lib/socket.c (socket): Don't undefine.
23546
23547         Remove unused module indicator macros.
23548         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23549         GNULIB_$1 as a C macro.
23550
23551         * doc/posix-functions/close.texi: Undo last change.
23552         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23553         Windows platforms.
23554
23555 2008-10-21  Bruno Haible  <bruno@clisp.org>
23556
23557         Add gethostname() declaration to <unistd.h>.
23558         * lib/unistd.in.h (gethostname): New declaration.
23559         * lib/gethostname.c: Include <unistd.h>.
23560         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23561         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23563         and HAVE_GETHOSTNAME.
23564         * modules/gethostname (Depends-on): Add unistd.
23565         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23566         (Include): Specify <unistd.h>.
23567         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23568         HAVE_GETHOSTNAME.
23569         * tests/test-gethostname.c: Include <unistd.h> first.
23570
23571 2008-10-21  Bruno Haible  <bruno@clisp.org>
23572
23573         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23574         * modules/select-tests (Depends-on): Likewise.
23575         Reported by Simon Josefsson.
23576
23577 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23578
23579         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23580         * lib/accept.c: New file, based on winsock.c.
23581         * lib/bind.c: New file, based on winsock.c.
23582         * lib/connect.c: New file, based on winsock.c.
23583         * lib/getpeername.c: New file, based on winsock.c.
23584         * lib/getsockname.c: New file, based on winsock.c.
23585         * lib/getsockopt.c: New file, based on winsock.c.
23586         * lib/ioctl.c: New file, based on winsock.c.
23587         * lib/listen.c: New file, based on winsock.c.
23588         * lib/recv.c: New file, based on winsock.c.
23589         * lib/recvfrom.c: New file, based on winsock.c.
23590         * lib/send.c: New file, based on winsock.c.
23591         * lib/sendto.c: New file, based on winsock.c.
23592         * lib/setsockopt.c: New file, based on winsock.c.
23593         * lib/shutdown.c: New file, based on winsock.c.
23594         * lib/socket.c: New file, based on winsock.c.
23595         * lib/w32sock.h: New file, based on winsock.c.
23596         * lib/winsock.c: Remove file.
23597         * modules/accept: Likewise.
23598         * modules/bind: Likewise.
23599         * modules/connect: Likewise.
23600         * modules/getpeername: Likewise.
23601         * modules/getsockname: Likewise.
23602         * modules/getsockopt: Likewise.
23603         * modules/ioctl: Likewise.
23604         * modules/listen: Likewise.
23605         * modules/recv: Likewise.
23606         * modules/recvfrom: Likewise.
23607         * modules/send: Likewise.
23608         * modules/sendto: Likewise.
23609         * modules/setsockopt: Likewise.
23610         * modules/shutdown: Likewise.
23611         * modules/socket: Use socket.c instead of winsock.c.
23612         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23613         * doc/posix-functions/accept.texi: Doc fix.
23614         * doc/posix-functions/bind.texi: Doc fix.
23615         * doc/posix-functions/close.texi: Doc fix.
23616         * doc/posix-functions/connect.texi: Doc fix.
23617         * doc/posix-functions/getpeername.texi: Doc fix.
23618         * doc/posix-functions/getsockname.texi: Doc fix.
23619         * doc/posix-functions/getsockopt.texi: Doc fix.
23620         * doc/posix-functions/ioctl.texi: Doc fix.
23621         * doc/posix-functions/listen.texi: Doc fix.
23622         * doc/posix-functions/recv.texi: Doc fix.
23623         * doc/posix-functions/recvfrom.texi: Doc fix.
23624         * doc/posix-functions/send.texi: Doc fix.
23625         * doc/posix-functions/sendto.texi: Doc fix.
23626         * doc/posix-functions/setsockopt.texi: Doc fix.
23627         * doc/posix-functions/shutdown.texi: Doc fix.
23628         * doc/posix-functions/socket.texi: Doc fix.
23629
23630 2008-10-20  Bruno Haible  <bruno@clisp.org>
23631
23632         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23633         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23634         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23635         as an alias for SIGABRT.
23636         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23637         (sigaction): Map it to SIGABRT.
23638         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23639
23640 2008-10-20  Bruno Haible  <bruno@clisp.org>
23641
23642         * lib/fts.c: Don't include lstat.h.
23643         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23644
23645         Move the lstat() declaration to <sys/stat.h>.
23646         * lib/lstat.h: Remove file.
23647         * lib/sys_stat.in.h: Add special invocation convention.
23648         (lstat): New declaration.
23649         * lib/lstat.c (orig_lstat): New function.
23650         (rpl_lstat): Use orig_lstat instead of lstat.
23651         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23652         AC_C_INLINE. Set REPLACE_LSTAT.
23653         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23654         and REPLACE_LSTAT.
23655         * modules/lstat (Files): Remove lib/lstat.h.
23656         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23657         (Include): Specify <sys/stat.h> instead of lstat.h.
23658         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23659         REPLACE_LSTAT.
23660         * NEWS: Mention the change.
23661
23662 2008-10-20  Bruno Haible  <bruno@clisp.org>
23663
23664         * modules/posix_spawn-tests: New file.
23665         * tests/test-posix_spawn3.c: New file.
23666
23667 2008-10-20  Bruno Haible  <bruno@clisp.org>
23668
23669         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23670         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23671         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23672         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23673         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23674
23675 2008-10-20  Bruno Haible  <bruno@clisp.org>
23676
23677         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23678         of posix_spawn on AIX 5.3.
23679
23680 2008-10-20  Bruno Haible  <bruno@clisp.org>
23681
23682         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23683
23684 2008-10-20  Bruno Haible  <bruno@clisp.org>
23685
23686         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23687         of AC_LANG_PROGRAM.
23688
23689 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23690
23691         * lib/netdb.in.h: Don't define GNU specific constants until they
23692         are supported or needed.  Reported by Bruno Haible
23693         <bruno@clisp.org>.
23694
23695 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23696
23697         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23698
23699 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23700
23701         * lib/getaddrinfo.h: Remove file.
23702         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23703         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23704         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23705         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23706         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23707         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23708         * tests/test-getaddrinfo.c: Likewise.
23709         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23710         * NEWS: Mention change.
23711
23712 2008-10-19  Bruno Haible  <bruno@clisp.org>
23713
23714         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23715
23716 2008-10-19  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/wait-process.c: Include simply <sys/wait.h>.
23719         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
23720         WIFSTOPPED): Remove fallback definitions.
23721         * modules/wait-process (Depends-on): Add sys_wait.
23722
23723         New module 'sys_wait'.
23724         * modules/sys_wait: New file.
23725         * lib/sys_wait.in.h: New file, partially copied from
23726         lib/wait-process.c.
23727         * m4/sys_wait_h.m4: New file.
23728         * doc/posix-headers/sys_wait.texi: Mention the new module.
23729
23730 2008-10-19  Bruno Haible  <bruno@clisp.org>
23731
23732         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
23733
23734 2008-10-19  Bruno Haible  <bruno@clisp.org>
23735
23736         Assume that waitpid() fills an 'int' status, not a 'union wait'.
23737         * lib/wait-process.c (WAIT_T): Remove type.
23738         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
23739         (wait_subprocess): Update.
23740
23741 2008-10-19  Bruno Haible  <bruno@clisp.org>
23742
23743         New module 'atoll'.
23744         * modules/atoll: New file.
23745         * lib/stdlib.in.h (atoll): New declaration.
23746         * lib/atoll.c: New file, from glibc with modifications.
23747         * m4/atoll.m4: New file.
23748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
23749         HAVE_ATOLL.
23750         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
23751         * doc/posix-functions/atoll.texi: Mention the new module.
23752
23753 2008-10-19  Bruno Haible  <bruno@clisp.org>
23754
23755         Add strtoull() declaration to <stdlib.h>.
23756         * lib/stdlib.in.h (strtoull): New declaration.
23757         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23758         Set HAVE_STRTOULL.
23759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
23760         HAVE_STRTOULL.
23761         * modules/strtoull (Depends-on): Add stdlib.
23762         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23763         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
23764         HAVE_STRTOULL.
23765
23766 2008-10-19  Bruno Haible  <bruno@clisp.org>
23767
23768         Add strtoll() declaration to <stdlib.h>.
23769         * lib/stdlib.in.h (strtoll): New declaration.
23770         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23771         Set HAVE_STRTOLL.
23772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
23773         HAVE_STRTOLL.
23774         * modules/strtoll (Depends-on): Add stdlib.
23775         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23776         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
23777
23778 2008-10-19  Bruno Haible  <bruno@clisp.org>
23779
23780         * modules/bcopy (Depends-on): Add strings.
23781         (Include): Specify <strings.h>.
23782
23783 2008-10-19  Bruno Haible  <bruno@clisp.org>
23784
23785         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
23786
23787 2008-10-19  Bruno Haible  <bruno@clisp.org>
23788
23789         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
23790         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
23791         mingw.
23792
23793 2008-10-19  Bruno Haible  <bruno@clisp.org>
23794
23795         * lib/atanl.c: Don't include isnanl.h.
23796         * lib/cosl.c: Likewise.
23797         * lib/ldexpl.c: Likewise.
23798         * lib/logl.c: Likewise.
23799         * lib/sinl.c: Likewise.
23800         * lib/sqrtl.c: Likewise.
23801         * lib/tanl.c: Likewise.
23802
23803         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
23804         * lib/isnanf.h: Remove file.
23805         * lib/isnand.h: Remove file.
23806         * lib/isnanl.h: Remove file.
23807         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
23808         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
23809         macros.
23810         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
23811         HAVE_ISNANF, don't define it as a C macro.
23812         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
23813         HAVE_ISNAND, don't define it as a C macro.
23814         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
23815         HAVE_ISNANL, don't define it as a C macro.
23816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
23817         HAVE_ISNAN[FDL].
23818         * modules/isnanf (Files): Remove lib/isnanf.h.
23819         (Depends-on): Add math.
23820         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23821         (Include): Specify <math.h> instead of isnanf.h.
23822         * modules/isnand (Files): Remove lib/isnand.h.
23823         (Depends-on): Add math.
23824         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23825         (Include): Specify <math.h> instead of isnand.h.
23826         * modules/isnanl (Files): Remove lib/isnanl.h.
23827         (Depends-on): Add math.
23828         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23829         (Include): Specify <math.h> instead of isnanl.h.
23830         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
23831         HAVE_ISNAN[FDL].
23832         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
23833         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
23834         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
23835         * NEWS: Mention the change.
23836
23837 2008-10-18  Bruno Haible  <bruno@clisp.org>
23838
23839         Add getusershell(), setusershell(), endusershell() declarations to
23840         <unistd.h>.
23841         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
23842         declarations.
23843         * lib/getusershell.c: Include unistd.h.
23844         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
23845         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23846         HAVE_GETUSERSHELL.
23847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
23848         and HAVE_GETUSERSHELL.
23849         * modules/getusershell (Depends-on): Add unistd, extensions.
23850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23851         (Include): Specify <unistd.h>.
23852         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
23853         HAVE_GETUSERSHELL.
23854
23855 2008-10-18  Bruno Haible  <bruno@clisp.org>
23856
23857         Add a getloadavg() declaration to <stdlib.h>.
23858         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
23859         getloadavg declaration.
23860         (getloadavg): New declaration.
23861         * lib/getloadavg.c: Include <stdlib.h> first.
23862         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
23863         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
23864         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
23865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
23866         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23867         * modules/getloadavg (Depends-on): Add stdlib, extensions.
23868         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23869         (Include): Specify <stdlib.h>.
23870         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
23871         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23872
23873 2008-10-18  Bruno Haible  <bruno@clisp.org>
23874
23875         * lib/dirchownmod.c: Don't include lchmod.h.
23876
23877         Move the lchmod() declaration to <sys/stat.h>.
23878         * lib/lchmod.h: Remove file.
23879         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
23880         (lchmod): New declaration, moved here from lib/lchown.h.
23881         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
23882         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
23883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
23884         and HAVE_LCHMOD.
23885         * modules/lchmod (Files): Remove lib/lchmod.h.
23886         (Depends-on): Add sys_stat, extensions.
23887         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23888         (Include): Specify <sys/stat.h> instead of lchmod.h.
23889         * modules/sys_stat (Depends-on): Add link-warning.
23890         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
23891         definition of GL_LINK_WARNING.
23892         * NEWS: Mention the change.
23893
23894 2008-10-18  Bruno Haible  <bruno@clisp.org>
23895
23896         * lib/fchdir.c: Don't include dirfd.h.
23897         * lib/fts.c: Likewise.
23898         * lib/getcwd.c: Likewise.
23899         * lib/glob.c: Likewise.
23900
23901         Move the dirfd() declaration to <dirent.h>.
23902         * lib/dirfd.h: Remove file.
23903         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
23904         (dirfd): New declaration.
23905         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
23906         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
23907         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
23908         HAVE_DECL_DIRFD.
23909         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
23910         HAVE_DECL_DIRFD.
23911         * modules/dirfd (Files): Remove lib/dirfd.h.
23912         (Depends-on): Add dirent, extensions.
23913         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
23914         (Include): Specify <dirent.h> instead of dirfd.h.
23915         * modules/dirent (Depends-on): Add link-warning.
23916         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
23917         definition of GL_LINK_WARNING.
23918         * NEWS: Mention the change.
23919
23920 2008-10-18  Bruno Haible  <bruno@clisp.org>
23921
23922         Move the euidaccess() declaration to <unistd.h>.
23923         * lib/euidaccess.h: Remove file.
23924         * lib/unistd.in.h (euidaccess): New declaration.
23925         * lib/euidaccess.c: Don't include euidaccess.h.
23926         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
23927         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
23928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
23929         and HAVE_EUIDACCESS.
23930         * modules/euidaccess (Files): Remove lib/euidaccess.h.
23931         (Depends-on): Add unistd.
23932         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23933         (Include): Specify <unistd.h> instead of euidaccess.h.
23934         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
23935         HAVE_EUIDACCESS.
23936         * NEWS: Mention the change.
23937
23938 2008-10-18  Bruno Haible  <bruno@clisp.org>
23939
23940         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
23941
23942         Move the getdomainname() declaration to <unistd.h>.
23943         * lib/getdomainname.h: Remove file.
23944         * lib/unistd.in.h (getdomainname): New declaration.
23945         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
23946         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23947         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23948         HAVE_GETDOMAINNAME.
23949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23950         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
23951         * modules/getdomainname (Files): Remove lib/getdomainname.h.
23952         (Depends-on): Add unistd, extensions.
23953         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23954         (Includes): Specify <unistd.h> instead of getdomainname.h.
23955         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
23956         HAVE_GETDOMAINNAME.
23957         * NEWS: Mention the change.
23958
23959 2008-10-18  Bruno Haible  <bruno@clisp.org>
23960
23961         * modules/dirent: New file.
23962         * m4/dirent_h.m4: New file.
23963         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
23964         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
23965         * modules/fchdir (Files): Remove lib/dirent.in.h.
23966         (Depends-on): Add dirent.
23967         (Makefile.am): Move rules to modules/dirent.
23968         * doc/posix-headers/dirent.texi: Mention the new module.
23969
23970 2008-10-18  Bruno Haible  <bruno@clisp.org>
23971
23972         Avoid -Wunused-parameter warnings in public gnulib header files.
23973         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
23974         macro.
23975         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
23976
23977 2008-10-18  Bruno Haible  <bruno@clisp.org>
23978
23979         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
23980         * doc/glibc-functions/error.texi: Mention the module 'error'.
23981         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
23982         * doc/glibc-functions/getdomainname.texi: Mention the module
23983         'getdomainname'.
23984         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
23985         * doc/glibc-functions/getpagesize.texi: Mention the module
23986         'getpagesize'.
23987         * doc/glibc-functions/getusershell.texi: Mention the module
23988         'getusershell'.
23989         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
23990         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
23991         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
23992         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
23993         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
23994         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
23995         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
23996         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
23997         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
23998         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
23999         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
24000         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
24001         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
24002         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
24003
24004 2008-10-17  Bruno Haible  <bruno@clisp.org>
24005
24006         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
24007         HP-UX and IRIX, use -0.0L.
24008         * tests/test-ceill.c (minus_zero): Likewise.
24009         * tests/test-floorl.c (minus_zero): Likewise.
24010         * tests/test-frexpl.c (minus_zero): Likewise.
24011         * tests/test-isnan.c (minus_zerol): Likewise.
24012         * tests/test-isnanl.h (minus_zero): Likewise.
24013         * tests/test-ldexpl.c (minus_zero): Likewise.
24014         * tests/test-roundl.c (minus_zero): Likewise.
24015         * tests/test-signbit.c (minus_zerol): Likewise.
24016         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24017         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24018         * tests/test-truncl.c (minus_zero): Likewise.
24019         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24020         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24021         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
24022         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24023
24024 2008-10-17  Bruno Haible  <bruno@clisp.org>
24025
24026         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
24027         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
24028         that it gets activated only for gcc >= 3.0.
24029         * lib/dirent.in.h: Likewise.
24030         * lib/errno.in.h: Likewise.
24031         * lib/fcntl.in.h: Likewise.
24032         * lib/float.in.h: Likewise.
24033         * lib/iconv.in.h: Likewise.
24034         * lib/inttypes.in.h: Likewise.
24035         * lib/locale.in.h: Likewise.
24036         * lib/math.in.h: Likewise.
24037         * lib/netdb.in.h: Likewise.
24038         * lib/netinet_in.in.h: Likewise.
24039         * lib/search.in.h: Likewise.
24040         * lib/signal.in.h: Likewise.
24041         * lib/spawn.in.h: Likewise.
24042         * lib/stdarg.in.h: Likewise.
24043         * lib/stdint.in.h: Likewise.
24044         * lib/stdio.in.h: Likewise.
24045         * lib/stdlib.in.h: Likewise.
24046         * lib/string.in.h: Likewise.
24047         * lib/strings.in.h: Likewise.
24048         * lib/sys_file.in.h: Likewise.
24049         * lib/sys_ioctl.in.h: Likewise.
24050         * lib/sys_select.in.h: Likewise.
24051         * lib/sys_socket.in.h: Likewise.
24052         * lib/sys_stat.in.h: Likewise.
24053         * lib/sys_time.in.h: Likewise.
24054         * lib/sysexits.in.h: Likewise.
24055         * lib/time.in.h: Likewise.
24056         * lib/unistd.in.h: Likewise.
24057         * lib/wchar.in.h: Likewise.
24058         * lib/wctype.in.h: Likewise.
24059         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24060
24061 2008-10-17  Jim Meyering  <meyering@redhat.com>
24062
24063         ignore-value: don't depend on inline module
24064         * modules/ignore-value (Depends-on): Remove 'inline'.
24065         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
24066         Suggestion from Bruno Haible.
24067
24068 2008-10-17  Bruno Haible  <bruno@clisp.org>
24069
24070         New implementation of condition variables for Win32.
24071         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
24072         (gl_linked_waitqueue_t): New type.
24073         (gl_cond_t): Use it.
24074         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
24075         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
24076         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
24077         (glthread_cond_init_func, glthread_cond_wait_func,
24078         glthread_cond_timedwait_func, glthread_cond_signal_func,
24079         glthread_cond_broadcast_func, glthread_cond_destroy_func):
24080         Reimplemented on the basis of gl_linked_waitqueue_t.
24081         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
24082         gl_waitqueue_t.
24083         (gl_rwlock_t): Update.
24084         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
24085
24086 2008-10-17  Simon Josefsson  <simon@josefsson.org>
24087
24088         * modules/recvfrom (Depends-on): Add dependency on getpeername.
24089         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24090
24091 2008-10-17  Jim Meyering  <meyering@redhat.com>
24092
24093         ignore-value: new module
24094         * modules/ignore-value: New file.
24095         * lib/ignore-value.h: New file.
24096         * MODULES.html.sh (Compiler warning management): New section,
24097         just for this module.  More to come.
24098
24099 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24100
24101         open-safer.c: avoid 'signed and unsigned in conditional...' warning
24102         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
24103         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
24104
24105 2008-10-16  Jim Meyering  <meyering@redhat.com>
24106
24107         openat-die.c: avoid 'no previous prototype' warning
24108         * lib/openat-die.c: Include "openat.h".
24109         Reported by Reuben Thomas <rrt@sc3d.org>.
24110
24111 2008-10-16  Simon Josefsson  <simon@josefsson.org>
24112
24113         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
24114         * lib/netdb.in.h: Fix typo.
24115         Reported by Bruno Haible  <bruno@clisp.org>
24116
24117         * lib/netdb.in.h: Include sys/socket.h for platforms without
24118         netdb.h, to get structures like hostent on MinGW.
24119         * modules/netdb (Depends-on): Add sys_socket.
24120
24121 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24122
24123         * modules/netdb, modules/netdb-tests: New file.
24124         * m4/netdb_h.m4: New file.
24125         * lib/netdb.in.h: Add, currently just an empty file pending
24126         definitions.
24127         * tests/test-netdb.c: New file.
24128         * doc/posix-headers/netdb.texi: Mention that we replace it if
24129         needed.
24130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24131         netdb.
24132
24133 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24134
24135         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
24136         with code.
24137
24138 2008-10-13  Bruno Haible  <bruno@clisp.org>
24139
24140         * lib/glthread/cond.c (glthread_cond_wait_func,
24141         glthread_cond_timedwait_func): Add a comment.
24142
24143 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24144
24145         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
24146         * tests/test-select.c: Likewise,
24147
24148 2008-10-13  Bruno Haible  <bruno@clisp.org>
24149
24150         * lib/glthread/cond.c (glthread_cond_wait_func,
24151         glthread_cond_timedwait_func): Fix variable name.
24152         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24153
24154 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
24155
24156         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
24157         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
24158         struct sockaddr.sa_len.
24159         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
24160
24161 2008-10-13  Simon Josefsson  <simon@josefsson.org>
24162
24163         * build-aux/pmccabe2html: Add css and css_url parameters.
24164
24165 2008-10-12  Bruno Haible  <bruno@clisp.org>
24166
24167         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
24168         calling aclx_get.
24169         Reported by Rainer Tammer <tammer@tammer.net>.
24170
24171 2008-10-12  Bruno Haible  <bruno@clisp.org>
24172
24173         Use msvcrt aware primitives for creation/termination of Win32 threads.
24174         * lib/glthread/thread.c: Include <process.h>.
24175         (glthread_create_func): Use _beginthreadex instead of CreateThread.
24176         (wrapper_func): Update signature.
24177         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
24178
24179 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24180             Bruno Haible  <bruno@clisp.org>
24181
24182         Provide a Win32 implementation of the 'cond' module.
24183         * lib/glthread/cond.h [USE_WIN32]: New implementation.
24184         * lib/glthread/cond.c (glthread_cond_init_func,
24185         glthread_cond_wait_func, glthread_cond_timedwait_func,
24186         glthread_cond_signal_func, glthread_cond_broadcast_func,
24187         glthread_cond_destroy_func) [USE_WIN32]: New functions.
24188         * modules/cond (Dependencies): Add gettimeofday.
24189
24190 2008-10-11  Bruno Haible  <bruno@clisp.org>
24191
24192         Make sleep work on older versions of mingw.
24193         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
24194         only whether it exists.
24195         * doc/posix-functions/sleep.texi: Mention the problem with older
24196         versions of mingw.
24197
24198 2008-10-11  Bruno Haible  <bruno@clisp.org>
24199
24200         New module 'shutdown'.
24201         * modules/shutdown: New file.
24202         * lib/sys_socket.in.h (shutdown): New declaration.
24203         * lib/winsock.c (shutdown): New function.
24204         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24205         GNULIB_SHUTDOWN.
24206         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
24207         * doc/posix-functions/shutdown.texi: Document the new module.
24208
24209 2008-10-11  Jim Meyering  <meyering@redhat.com>
24210
24211         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
24212
24213 2008-10-11  Bruno Haible  <bruno@clisp.org>
24214
24215         New module 'fclose'.
24216         * modules/fclose: New file.
24217         * lib/stdio.in.h (fclose): New declaration.
24218         * lib/fclose.c: New file.
24219         * m4/fclose.m4: New file.
24220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
24221         REPLACE_FCLOSE.
24222         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
24223         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
24224         REPLACE_FCLOSE.
24225         * modules/close (Depends-on): fclose.
24226         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
24227
24228 2008-10-11  Bruno Haible  <bruno@clisp.org>
24229
24230         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
24231         set errno and don't call _close.
24232
24233 2008-10-10  Bruno Haible  <bruno@clisp.org>
24234
24235         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
24236         ACL, not afterwards. Fixes test failure on Cygwin.
24237
24238 2008-10-09  Ben Pfaff  <blp@gnu.org>
24239
24240         * build-aux/announce-gen: Fix gnulib version related part of usage
24241         message.  Die with a useful error message if no tarballs are
24242         found.
24243
24244 2008-10-10  Jim Meyering  <meyering@redhat.com>
24245
24246         bootstrap: use git's --depth=N option only if it's supported
24247         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
24248         recognize the --depth option.  Reported by Pádraig Brady.
24249
24250 2008-10-09  Bruno Haible  <bruno@clisp.org>
24251
24252         New module 'ioctl'.
24253         * modules/ioctl: New file.
24254         * lib/sys_socket.in.h (ioctl): Remove declaration.
24255         * lib/winsock.c: Include <sys/ioctl.h>.
24256         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
24257         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24258         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
24259         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
24260         * doc/posix-functions/ioctl.texi: Mention the new module.
24261
24262 2008-10-09  Bruno Haible  <bruno@clisp.org>
24263
24264         New module 'sys_ioctl'.
24265         * lib/sys_ioctl.in.h: New file.
24266         * m4/sys_ioctl_h.m4: New file.
24267         * modules/sys_ioctl: New file.
24268         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
24269
24270 2008-10-09  Bruno Haible  <bruno@clisp.org>
24271
24272         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
24273         * lib/winsock.c: Include <stdarg.h>.
24274         (rpl_ioctl): Change to second argument 'int' and then varargs.
24275
24276 2008-10-09  Bruno Haible  <bruno@clisp.org>
24277
24278         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
24279         when the sys_socket module is present and the system has <winsock2.h>.
24280
24281 2008-10-09  Bruno Haible  <bruno@clisp.org>
24282
24283         * doc/posix-functions/close.texi: Mention module 'close' instead of
24284         module 'sys_socket'.
24285
24286 2008-10-09  Bruno Haible  <bruno@clisp.org>
24287
24288         * doc/glibc-headers/sys_ioctl.texi: New file.
24289         * doc/gnulib.texi: Include it.
24290
24291 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24292             Bruno Haible  <bruno@clisp.org>
24293
24294         Combine the two replacements of 'close'.
24295         * lib/sys_socket.in.h (close): Define to a reminder to include
24296         <unistd.h>.
24297         (_gl_close_fd_maybe_socket): New declaration.
24298         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
24299         * lib/winsock.c (close): Remove undefinition.
24300         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
24301         needed for the gnulib module 'close'.
24302         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
24303         define to an error symbol or to a warning, if suitable.
24304         * lib/close.c: Include <sys/socket.h>.
24305         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
24306         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
24307         UNISTD_H_HAVE_WINSOCK2_H.
24308         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
24309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24310         UNISTD_H_HAVE_WINSOCK2_H.
24311         * modules/sys_socket (Files): Add m4/unistd_h.m4.
24312         (configure.ac): Set a module indicator.
24313         (Makefile.am): Substitute GNULIB_CLOSE.
24314         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
24315         * modules/poll-tests (Depends-on): Add close.
24316         * modules/select-tests (Depends-on): Likewise.
24317
24318 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24319             Bruno Haible  <bruno@clisp.org>
24320
24321         New module 'close'.
24322         * modules/close: New file.
24323         * lib/unistd.in.h (close): Move declaration out of the
24324         FCHDIR_REPLACEMENT scope.
24325         (_gl_unregister_fd): New declaration.
24326         * lib/close.c: New file.
24327         * lib/fchdir.c (rpl_close): Remove function.
24328         * m4/close.m4: New file.
24329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24330         close.
24331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
24332         REPLACE_CLOSE.
24333         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
24334         REPLACE_CLOSE.
24335         * modules/fchdir (Depends-on): Add close.
24336
24337 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24338             Bruno Haible  <bruno@clisp.org>
24339
24340         * lib/fcntl.in.h (open): Simplify conditionals.
24341         (_gl_register_fd): New declaration.
24342         * lib/fchdir.c (rpl_open): Remove function.
24343         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
24344         also.
24345         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
24346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24347         open.
24348
24349 2008-10-09  Jim Meyering  <meyering@redhat.com>
24350
24351         GNUmakefile: use the more name-space-friendly "_version"
24352         * top/GNUmakefile (_dummy): Update.
24353         (_version): Rename from "version".
24354
24355 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24356             Bruno Haible  <bruno@clisp.org>
24357
24358         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
24359         rpl_close.
24360         (_gl_register_fd): New function, extracted from rpl_open.
24361         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
24362         (rpl_open, rpl_opendir): Use _gl_register_fd.
24363
24364 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24365
24366         Fix organization of 'open' replacement.
24367         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
24368         (gl_FUNC_OPEN): Use it.
24369         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
24370
24371 2008-10-08  Bruno Haible  <bruno@clisp.org>
24372
24373         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
24374
24375 2008-10-08  Simon Josefsson  <simon@josefsson.org>
24376
24377         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
24378         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
24379         listen).
24380
24381 2008-10-08  Eric Blake  <ebb9@byu.net>
24382
24383         GNUmakefile: add 'make version' target
24384         * top/GNUmakefile (_curr-ver): Split version update rules...
24385         (version): ...into a target.
24386
24387 2008-10-07  Bruno Haible  <bruno@clisp.org>
24388
24389         Use a more portable replacement expression for -0.0L.
24390         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
24391         instead of -0.0L. Fix m4 quotation.
24392
24393         * tests/test-signbit.c: Include <float.h>.
24394         (minus_zero): New variable.
24395         (test_signbitl): Use minus_zero instead of -zero.
24396         * modules/signbit-tests (Depends-on): Add float.
24397
24398         * tests/test-ceill.c: Include <float.h>.
24399         (zero): Remove variable.
24400         (minus_zero): New variable.
24401         (main): Use minus_zero instead of -zero.
24402         * modules/ceill-tests (Depends-on): Add float.
24403
24404         * tests/test-floorl.c: Include <float.h>.
24405         (zero): Remove variable.
24406         (minus_zero): New variable.
24407         (main): Use minus_zero instead of -zero.
24408         * modules/floorl-tests (Depends-on): Add float.
24409
24410         * tests/test-roundl.c: Include <float.h>.
24411         (zero): Remove variable.
24412         (minus_zero): New variable.
24413         (main): Use minus_zero instead of -zero.
24414         * modules/roundl-tests (Depends-on): Add float.
24415
24416         * tests/test-truncl.c: Include <float.h>.
24417         (zero): Remove variable.
24418         (minus_zero): New variable.
24419         (main): Use minus_zero instead of -zero.
24420         * modules/truncl-tests (Depends-on): Add float.
24421
24422         * tests/test-frexpl.c (zero): Remove variable.
24423         (minus_zero): New variable.
24424         (main): Use minus_zero instead of -zero.
24425         * modules/frexpl-tests (Depends-on): Add float.
24426
24427         * tests/test-isnan.c (zerol): Remove variable.
24428         (minus_zerol): New variable.
24429         (test_long_double): Use minus_zerol instead of -zerol.
24430         * modules/isnan-tests (Depends-on): Add float.
24431
24432         * tests/test-isnanl.h (zero): Remove variable.
24433         (minus_zero): New variable.
24434         (main): Use minus_zero instead of -zero.
24435         * modules/isnanl-nolibm-tests (Depends-on): Add float.
24436         * modules/isnanl-tests (Depends-on): Add float.
24437
24438         * tests/test-ldexpl.c (zero): Remove variable.
24439         (minus_zero): New variable.
24440         (main): Use minus_zero instead of -zero.
24441         * modules/ldexpl-tests (Depends-on): Add float.
24442
24443         * tests/test-snprintf-posix.h (zerol): Remove variable.
24444         (minus_zerol): New variable.
24445         (test_function): Use minus_zerol instead of -zerol.
24446         * modules/snprintf-posix-tests (Depends-on): Add float.
24447         * modules/vsnprintf-posix-tests (Depends-on): Add float.
24448
24449         * tests/test-sprintf-posix.h (zerol): Remove variable.
24450         (minus_zerol): New variable.
24451         (test_function): Use minus_zerol instead of -zerol.
24452         * modules/sprintf-posix-tests (Depends-on): Add float.
24453         * modules/vsprintf-posix-tests (Depends-on): Add float.
24454
24455         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
24456         (minus_zerol): New variable.
24457         (test_function): Use minus_zerol instead of -zerol.
24458         * modules/vasnprintf-posix-tests (Depends-on): Add float.
24459
24460         * tests/test-vasprintf-posix.c (zerol): Remove variable.
24461         (minus_zerol): New variable.
24462         (test_function): Use minus_zerol instead of -zerol.
24463         * modules/vasprintf-posix-tests (Depends-on): Add float.
24464
24465 2008-10-07  Simon Josefsson  <simon@josefsson.org>
24466
24467         * MODULES.html.sh (Support for building documentation): Mention
24468         pmccabe2html.  Sort entries.
24469
24470         Add pmccabe2html module, from gnupdf.
24471         * build-aux/pmccabe.css: New file.
24472         * build-aux/pmccabe2html: New file.
24473         * m4/pmccabe2html.m4: New file.
24474         * modules/pmccabe2html: New file.
24475
24476 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
24477
24478         flock: new module
24479         * MODULES.html.sh: Add to list of modules.
24480         * lib/flock.c: flock implementation for Windows and Unix systems
24481         which have fcntl.
24482         * doc/glibc-functions/flock.texi: Update documentation.
24483         * lib/sys_file.in.h: <sys/file.h> header file.
24484         * m4/flock.m4: M4 macros.
24485         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
24486         * modules/flock: flock module.
24487         * modules/flock-tests: flock tests module.
24488         * modules/sys_file: sys/file.h module.
24489         * tests/test-flock.c: test suite for flock.
24490
24491 2008-10-06  Jim Meyering  <meyering@redhat.com>
24492
24493         bootstrap: check for LT_INIT more portably still ;-)
24494         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
24495         Spotted by Bruno Haible.
24496
24497 2008-10-06  Eric Blake  <ebb9@byu.net>
24498
24499         test-signbit: avoid tripping Irix cc bug on -0.0L
24500         * tests/test-signbit.c (minus_zerol): Delete, and replace with
24501         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
24502         entire testsuite consistent and avoids an Irix 6.2 bug.
24503
24504 2008-10-05  Bruno Haible  <bruno@clisp.org>
24505             Jim Meyering  <jim@meyering.net>
24506
24507         Add an option for ignoring EPIPE during close_stdout.
24508         * lib/closeout.h: Include <stdbool.h>.
24509         (close_stdout_set_ignore_EPIPE): New declaration.
24510         * lib/closeout.c: Include <stdbool.h>.
24511         (ignore_EPIPE): New variable.
24512         (close_stdout_set_ignore_EPIPE): New function.
24513         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
24514         * lib/close-stream.c (close_stream): Mention the possible EPIPE
24515         failure.
24516         * modules/closeout (Depends-on): Add stdbool.
24517
24518 2008-10-05  Bruno Haible  <bruno@clisp.org>
24519
24520         * modules/accept: New file.
24521         * modules/bind: New file.
24522         * modules/connect: New file.
24523         * modules/getpeername: New file.
24524         * modules/getsockname: New file.
24525         * modules/getsockopt: New file.
24526         * modules/listen: New file.
24527         * modules/recv: New file.
24528         * modules/recvfrom: New file.
24529         * modules/send: New file.
24530         * modules/sendto: New file.
24531         * modules/setsockopt: New file.
24532         * modules/socket: New file.
24533         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24534         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24535         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24536         the particular module is requested. Add a link warning when the
24537         particular module is not requested.
24538         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24539         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24540         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24541         the particular module is requested.
24542         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24543         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24544         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24545         * modules/sys_socket (Depends-on): Add link-warning.
24546         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24547         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24548         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24549         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24550         GL_LINK_WARNING.
24551         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24552         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24553         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24554         * doc/posix-functions/getpeername.texi: Mention the new module
24555         'getpeername'.
24556         * doc/posix-functions/getsockname.texi: Mention the new module
24557         'getsockname'.
24558         * doc/posix-functions/getsockopt.texi: Mention the new module
24559         'getsockopt'.
24560         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24561         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24562         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24563         * doc/posix-functions/send.texi: Mention the new module 'send'.
24564         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24565         * doc/posix-functions/setsockopt.texi: Mention the new module
24566         'setsockopt'.
24567         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24568         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24569         listen, connect, accept.
24570         * modules/select-tests (Depends-on): Likewise.
24571
24572 2008-10-05  Bruno Haible  <bruno@clisp.org>
24573
24574         * lib/winsock.c (strerror): Remove unused #undef.
24575         (rpl_close): Remove unused local variable.
24576
24577         * modules/sys_socket (Depends-on); Add errno.
24578
24579 2008-10-05  Bruno Haible  <bruno@clisp.org>
24580
24581         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24582         (select): Add a link warning when the 'select' module is not used.
24583         * modules/sys_select (Depends-on): Add link-warning.
24584         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24585         Suggested by Paolo Bonzini.
24586
24587 2008-10-05  Jim Meyering  <meyering@redhat.com>
24588
24589         bootstrap: check for LT_INIT more portably
24590         * build-aux/bootstrap: Avoid using grep -E, since it's not
24591         portable enough.  Suggestion from Bruno Haible.
24592
24593 2008-10-05  Bruno Haible  <bruno@clisp.org>
24594
24595         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24596         as being fixed by gnulib.
24597
24598 2008-10-05  Bruno Haible  <bruno@clisp.org>
24599
24600         * modules/select-tests: New file, mostly copied from
24601         modules/sys_select-tests.
24602         * tests/test-select.c: New file, mostly copied from
24603         tests/test-sys_select.c.
24604         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24605         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24606         (Makefile.am): Remove test_sys_select_LDADD.
24607
24608         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24609         to an undefined symbol, for an error message.
24610         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24611         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24612         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24613         winsock-select.c here.
24614         * modules/sys_select (Files): Remove lib/winsock-select.c.
24615         (Depends-on): Remove alloca.
24616         (Makefile.am): Substitute GNULIB_SELECT.
24617         * modules/select: New file.
24618         * doc/posix-functions/select.texi: Update.
24619
24620 2008-10-05  Bruno Haible  <bruno@clisp.org>
24621
24622         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24623         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24624         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24625         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24626         getdtablesize.
24627         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24628         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24629
24630 2008-10-05  Bruno Haible  <bruno@clisp.org>
24631
24632         * modules/getdtablesize-tests: New file.
24633         * tests/test-getdtablesize.c: New file.
24634
24635         New module 'getdtablesize'.
24636         * lib/unistd.in.h (getdtablesize): New declaration.
24637         * lib/getdtablesize.c: New file.
24638         * m4/getdtablesize.m4: New file.
24639         * modules/getdtablesize: New file.
24640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24641         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24642         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24643         HAVE_GETDTABLESIZE.
24644         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24645
24646 2008-10-05  Bruno Haible  <bruno@clisp.org>
24647
24648         * modules/sched (Makefile.am): Fix typo.
24649         Reported by Simon Josefsson.
24650
24651 2008-10-05  Jim Meyering  <meyering@redhat.com>
24652
24653         bootstrap: check for LT_INIT, too
24654         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24655         are deprecated.  Suggestion from Ralf Wildenhues.
24656
24657 2008-10-05  Bruno Haible  <bruno@clisp.org>
24658
24659         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24660         overriding them by ours.
24661         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24662
24663 2008-10-05  Jim Meyering  <meyering@redhat.com>
24664
24665         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24666         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24667         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24668
24669 2008-10-04  Bruno Haible  <bruno@clisp.org>
24670
24671         * modules/dup2 (License): Change to LGPLv2+.
24672         * modules/sleep (License): Likewise.
24673         * modules/perror (License): Likewise.
24674         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24675         Blake.
24676         * modules/signal (License): Likewise.
24677         * modules/sigprocmask (License): Likewise.
24678         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24679         Meyering.
24680
24681 2008-10-04  Bruno Haible  <bruno@clisp.org>
24682
24683         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24684         Reported by Rainer Tammer <tammer@tammer.net>.
24685
24686 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24687             Bruno Haible  <bruno@clisp.org>
24688
24689         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24690         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24691         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24692
24693 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24694
24695         filevercmp: new module
24696         * lib/filevercmp.h: New function filevercmp comparing version strings.
24697         * lib/filevercmp.c: Implementation of filevercmp function.
24698         * modules/filevercmp: Module metadata.
24699         * tests/test-filevercmp.c: Unit test for new module.
24700         * modules/filevercmp-tests: Unit test metadata.
24701         * MODULES.html.sh: Add filevercmp module.
24702
24703 2008-10-03  Bruno Haible  <bruno@clisp.org>
24704
24705         * lib/c-ctype.h: Add comment.
24706         Reported by Jim Meyering.
24707
24708 2008-10-02  Bruno Haible  <bruno@clisp.org>
24709
24710         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24711
24712 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24713
24714         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24715         name of bootstrap.conf accordingly.
24716
24717 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24718
24719         * build-aux/bootstrap: Install git-merge-changelog configuration
24720         items into .gitconfig if needed.
24721
24722 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24723
24724         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
24725         git repository, and initialize/update it accordingly.
24726
24727 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
24728
24729         * modules/fsync-tests: New file.
24730         * tests/test-fsync.c: New file.
24731
24732         New module 'fsync'.
24733         * lib/fsync.c: New file.
24734         * m4/fsync.m4: New file.
24735         * modules/fsync: New file.
24736         * lib/unistd.in.h (fsync): New declaration.
24737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
24738         GNULIB_FSYNC and HAVE_FSYNC.
24739         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
24740         * MODULES.html.sh (posix_functions): Add fsync.
24741         * doc/posix-functions/fsync.texi: Mention the new module.
24742
24743 2008-10-02  Jim Meyering  <meyering@redhat.com>
24744
24745         fts.c: sync with similar code from coreutils' remove.c
24746         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
24747         Guard also with "#if defined __linux__", since for now at least,
24748         this code is Linux-kernel-specific.
24749
24750 2008-10-02  Jim Meyering  <meyering@redhat.com>
24751
24752         fts: bug fixes
24753         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
24754         Include <sys/vfs.h>, not <sys/statfs.h>.
24755
24756         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
24757         Include <sys/vfs.h>, not <sys/statfs.h>.
24758
24759 2008-10-01  Bruno Haible  <bruno@clisp.org>
24760
24761         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
24762         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
24763         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
24764         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
24765         * doc/posix-functions/posix_spawnp.texi: Likewise.
24766         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
24767         whether posix_spawn actually works.
24768         * m4/pipe.m4 (gl_PIPE): Likewise.
24769         * modules/execute (Files): Add m4/posix_spawn.m4.
24770         * modules/pipe (Files): Add m4/posix_spawn.m4.
24771         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
24772
24773 2008-10-01  Jim Meyering  <meyering@redhat.com>
24774
24775         remove trailing spaces
24776         * NEWS: Likewise.
24777         * lib/poll.c (poll): Likewise.
24778         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
24779         * lib/winsock.c (rpl_close): Likewise.
24780         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
24781         * modules/yield: Likewise.
24782         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
24783         * tests/test-sys_select.c (connect_to_socket): Likewise.
24784
24785         fts.c: adjust a new interface to be more generally useful
24786         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
24787         (fts_build): Adjust caller.
24788
24789 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24790
24791         * modules/cond-tests: New file.
24792         * tests/test-cond.c: New file.
24793
24794 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24795             Bruno Haible  <bruno@clisp.org>
24796
24797         * modules/cond (Dependencies): Add errno, time.
24798         * lib/glthread/cond.h: Include <time.h>.
24799         (gl_cond_define, gl_cond_define_initialized): Use the same definition
24800         across platforms.
24801
24802 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24803             Bruno Haible  <bruno@clisp.org>
24804
24805         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
24806
24807 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24808             Bruno Haible  <bruno@clisp.org>
24809
24810         * modules/tls-tests (Depends-on): Add thread, yield.
24811         (configure.ac): Remove all checks.
24812         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
24813         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24814         gl_thread_self): Remove definitions. Include glthread/thread.h and
24815         glthread/yield.h instead.
24816         (test_tls): Pass an additional NULL argument to gl_thread_join.
24817
24818 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24819             Bruno Haible  <bruno@clisp.org>
24820
24821         * modules/lock-tests (Depends-on): Add thread, yield.
24822         (configure.ac): Remove all checks.
24823         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
24824         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24825         gl_thread_self): Remove definitions. Include glthread/thread.h and
24826         glthread/yield.h instead.
24827         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
24828         additional NULL argument to gl_thread_join.
24829
24830 2008-09-30  Bruno Haible  <bruno@clisp.org>
24831
24832         Fix the Win32 implementation of the 'thread' module.
24833         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
24834         pointer type.
24835         (gl_thread_self): Invoke gl_thread_self_func.
24836         (gl_thread_self_func): New declaration.
24837         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
24838         (do_init_self_key, init_self_key): New functions.
24839         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
24840         Remove some fields.
24841         (running_threads, running_lock): Remove variables.
24842         (get_current_thread_handle): New function.
24843         (gl_thread_self_func, wrapper_func, glthread_create_func,
24844         glthread_join_func, gl_thread_exit_func): Largely rewritten and
24845         simplified.
24846
24847 2008-09-30  Bruno Haible  <bruno@clisp.org>
24848
24849         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
24850         files.
24851
24852 2008-09-30  Jim Meyering  <meyering@redhat.com>
24853
24854         fts.m4: correct the test for statfs.f_type
24855         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
24856         when checking for statfs.f_type.
24857
24858 2008-09-15  Simon Josefsson  <simon@josefsson.org>
24859
24860         tests: avoid some compiler warnings
24861         * tests/test-memchr.c (main): Pass NULL indirectly.
24862         * tests/test-getdate.c (main): Remove unused variable 'ret'.
24863
24864 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
24865
24866         getdate.y: disallow countable dayshifts like "4 yesterday ago"
24867         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
24868         exactly specified dayshifts.
24869         (dayshift): New rule.
24870         (rel): Add dayshift.
24871         (relative_time_table) [tomorrow, yesterday, today, now]:
24872         Use tDAY_SHIFT in place of tDAY_UNIT.
24873         * tests/test-getdate.c: Add tests for now-disallowed countable
24874         dayshifts, e.g., "4 yesterday ago".
24875
24876 2008-09-29  Bruno Haible  <bruno@clisp.org>
24877
24878         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
24879         * tests/test-posix_spawn1.in.sh: Renamed from
24880         tests/test-posix_spawn.in.sh.
24881         * tests/test-posix_spawn2.c: New file.
24882         * tests/test-posix_spawn2.in.sh: New file.
24883         * modules/posix_spawnp-tests (Files): Update.
24884         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
24885
24886 2008-09-29  Bruno Haible  <bruno@clisp.org>
24887
24888         Propagate effects of putenv/setenv/unsetenv to child processes.
24889         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
24890         * lib/pipe.c (create_pipe): Likewise.
24891
24892 2008-09-29  Bruno Haible  <bruno@clisp.org>
24893
24894         Enable use of shell scripts as executables in mingw.
24895         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
24896         run the program as a shell script.
24897         * lib/pipe.c (create_pipe): Likewise.
24898         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
24899         resulting array.
24900
24901 2008-09-29  Eric Blake  <ebb9@byu.net>
24902
24903         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
24904
24905 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
24906
24907         * doc/posix-functions/accept.texi: Update mingw problems.
24908         * doc/posix-functions/bind.texi: Update mingw problems.
24909         * doc/posix-functions/close.texi: Update mingw problems.
24910         * doc/posix-functions/connect.texi: Update mingw problems.
24911         * doc/posix-functions/getpeername.texi: Update mingw problems.
24912         * doc/posix-functions/getsockname.texi: Update mingw problems.
24913         * doc/posix-functions/getsockopt.texi: Update mingw problems.
24914         * doc/posix-functions/ioctl.texi: Update mingw problems.
24915         * doc/posix-functions/listen.texi: Update mingw problems.
24916         * doc/posix-functions/recv.texi: Update mingw problems.
24917         * doc/posix-functions/recvfrom.texi: Update mingw problems.
24918         * doc/posix-functions/select.texi: Update mingw problems.
24919         * doc/posix-functions/send.texi: Update mingw problems.
24920         * doc/posix-functions/sendto.texi: Update mingw problems.
24921         * doc/posix-functions/setsockopt.texi: Update mingw problems.
24922         * doc/posix-functions/socket.texi: Update mingw problems.
24923
24924 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
24925             Bruno Haible  <bruno@clisp.org>
24926
24927         * lib/sys_select.in.h: Include sys/time.h.
24928         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
24929         * modules/sys_select: Depend on sys_time.
24930         * tests/test-sys_select.c: Test that sys/select.h defines struct
24931         timeval fully.
24932
24933 2008-09-29  Bruno Haible  <bruno@clisp.org>
24934
24935         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
24936         * lib/sys_select.in.h: Likewise.
24937
24938 2008-09-29  Bruno Haible  <bruno@clisp.org>
24939
24940         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
24941
24942 2008-09-29  Bruno Haible  <bruno@clisp.org>
24943
24944         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
24945         Set LIBSOCKET instead of augmenting LIBS.
24946         * modules/sockets (Link): New section.
24947         * modules/sockets-tests (test_sockets_LDADD): New variable.
24948         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
24949         * modules/poll-tests (test_poll_LDADD): New variable.
24950         * NEWS: Document the change.
24951
24952 2008-09-29  Bruno Haible  <bruno@clisp.org>
24953
24954         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
24955         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
24956         ARPA_INET_H directly.
24957         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24958
24959 2008-09-28  Bruno Haible  <bruno@clisp.org>
24960
24961         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
24962         from gl_HEADER_SYS_SOCKET.
24963         (gl_HEADER_SYS_SOCKET): Invoke it.
24964         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24965
24966 2008-09-28  Bruno Haible  <bruno@clisp.org>
24967
24968         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
24969         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
24970         Needed on OSF/1 4.0.
24971
24972 2008-09-28  Bruno Haible  <bruno@clisp.org>
24973
24974         Override open more carefully.
24975         * lib/open.c (orig_open): New function.
24976         (rpl_open): Use orig_open instead of open.
24977         * lib/fcntl.in.h: Add special invocation convention.
24978         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
24979         (gl_FUNC_OPEN): Invoke it.
24980
24981         Override freopen more carefully.
24982         * lib/freopen.c (orig_freopen): New function.
24983         (rpl_freopen): Use orig_freopen instead of freopen.
24984         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
24985         (gl_FUNC_FREOPEN): Invoke it.
24986
24987         Override fopen more carefully.
24988         * lib/fopen.c (orig_fopen): New function.
24989         (rpl_fopen): Use orig_fopen instead of fopen.
24990         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
24991         (gl_FUNC_FOPEN): Invoke it.
24992         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
24993
24994 2008-09-28  Bruno Haible  <bruno@clisp.org>
24995
24996         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
24997         SIGPIPE.
24998
24999 2008-09-28  Bruno Haible  <bruno@clisp.org>
25000
25001         * tests/test-sigaction.c (handler, main): Disable the check whether
25002         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
25003         glibc systems with LinuxThreads.
25004
25005 2008-09-28  Bruno Haible  <bruno@clisp.org>
25006
25007         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
25008
25009         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
25010         with AIX xlc.
25011         * lib/fcntl.in.h (open): Likewise.
25012         Reported by Rainer Tammer <tammer@tammer.net>.
25013
25014 2008-09-28  Bruno Haible  <bruno@clisp.org>
25015
25016         * modules/posix_spawnp-tests: New file.
25017         * tests/test-posix_spawn.c: New file.
25018         * tests/test-posix_spawn.in.sh: New file.
25019
25020         New module 'posix_spawnp'.
25021         * modules/posix_spawnp: New file.
25022         * lib/spawnp.c: New file, from GNU libc with modifications.
25023         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
25024
25025         New module 'posix_spawn'.
25026         * modules/posix_spawn: New file.
25027         * lib/spawn.c: New file, from GNU libc with modifications.
25028         * doc/posix-functions/posix_spawn.texi: Mention the new module.
25029
25030         New module 'posix_spawnattr_destroy'.
25031         * modules/posix_spawnattr_destroy: New file.
25032         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
25033         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
25034         module.
25035
25036         New module 'posix_spawnattr_setsigmask'.
25037         * modules/posix_spawnattr_setsigmask: New file.
25038         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
25039         modifications.
25040         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
25041         new module.
25042
25043         New module 'posix_spawnattr_getsigmask'.
25044         * modules/posix_spawnattr_getsigmask: New file.
25045         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
25046         modifications.
25047         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
25048         new module.
25049
25050         New module 'posix_spawnattr_setsigdefault'.
25051         * modules/posix_spawnattr_setsigdefault: New file.
25052         * lib/spawnattr_setdefault.c: New file, from GNU libc with
25053         modifications.
25054         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
25055         new module.
25056
25057         New module 'posix_spawnattr_getsigdefault'.
25058         * modules/posix_spawnattr_getsigdefault: New file.
25059         * lib/spawnattr_getdefault.c: New file, from GNU libc with
25060         modifications.
25061         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
25062         new module.
25063
25064         New module 'posix_spawnattr_setschedpolicy'.
25065         * modules/posix_spawnattr_setschedpolicy: New file.
25066         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
25067         modifications.
25068         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
25069         new module.
25070
25071         New module 'posix_spawnattr_getschedpolicy'.
25072         * modules/posix_spawnattr_getschedpolicy: New file.
25073         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
25074         modifications.
25075         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
25076         new module.
25077
25078         New module 'posix_spawnattr_setschedparam'.
25079         * modules/posix_spawnattr_setschedparam: New file.
25080         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
25081         modifications.
25082         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
25083         new module.
25084
25085         New module 'posix_spawnattr_getschedparam'.
25086         * modules/posix_spawnattr_getschedparam: New file.
25087         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
25088         modifications.
25089         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
25090         new module.
25091
25092         New module 'posix_spawnattr_setpgroup'.
25093         * modules/posix_spawnattr_setpgroup: New file.
25094         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
25095         modifications.
25096         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
25097         module.
25098
25099         New module 'posix_spawnattr_getpgroup'.
25100         * modules/posix_spawnattr_getpgroup: New file.
25101         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
25102         modifications.
25103         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
25104         module.
25105
25106         New module 'posix_spawnattr_setflags'.
25107         * modules/posix_spawnattr_setflags: New file.
25108         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
25109         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
25110         module.
25111
25112         New module 'posix_spawnattr_getflags'.
25113         * modules/posix_spawnattr_getflags: New file.
25114         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
25115         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
25116         module.
25117
25118         New module 'posix_spawnattr_init'.
25119         * modules/posix_spawnattr_init: New file.
25120         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
25121         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
25122         module.
25123
25124         New module 'posix_spawn_file_actions_destroy'.
25125         * modules/posix_spawn_file_actions_destroy: New file.
25126         * lib/spawn_faction_destroy.c: New file, from GNU libc with
25127         modifications.
25128         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
25129         the new module.
25130
25131         New module 'posix_spawn_file_actions_addopen'.
25132         * modules/posix_spawn_file_actions_addopen: New file.
25133         * lib/spawn_faction_addopen.c: New file, from GNU libc with
25134         modifications.
25135         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25136         the new module.
25137
25138         New module 'posix_spawn_file_actions_adddup2'.
25139         * modules/posix_spawn_file_actions_adddup2: New file.
25140         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
25141         modifications.
25142         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25143         the new module.
25144
25145         New module 'posix_spawn_file_actions_addclose'.
25146         * modules/posix_spawn_file_actions_addclose: New file.
25147         * lib/spawn_faction_addclose.c: New file, from GNU libc with
25148         modifications.
25149         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25150         the new module.
25151
25152         New module 'posix_spawn_file_actions_init'.
25153         * modules/posix_spawn_file_actions_init: New file.
25154         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
25155         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
25156         new module.
25157
25158         New module 'posix_spawn-internal'.
25159         * modules/posix_spawn-internal: New file.
25160         * lib/spawn_int.h: New file, from GNU libc with modifications.
25161         * lib/spawni.c: New file, from GNU libc with modifications.
25162         * m4/posix_spawn.m4: New file.
25163
25164         New module 'spawn'.
25165         * modules/spawn: New file.
25166         * lib/spawn.in.h: New file, from GNU libc with modifications.
25167         * m4/spawn_h.m4: New file.
25168         * doc/posix-headers/spawn.texi: Mention the new module.
25169
25170 2008-09-28  Bruno Haible  <bruno@clisp.org>
25171
25172         * modules/sched-tests: New file.
25173         * tests/test-sched.c: New file.
25174
25175         New module 'sched'.
25176         * modules/sched: New file.
25177         * lib/sched.in.h: New file.
25178         * m4/sched_h.m4: New file.
25179         * doc/posix-headers/sched.texi: Mention the new module.
25180
25181 2008-09-27  Eric Blake  <ebb9@byu.net>
25182
25183         Fix previous patch, and tweak references to $0.
25184         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
25185         (func_version, func_gnulib_dir): Don't call this program
25186         gnulib-tool.
25187         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
25188         with using $0 in function.
25189         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
25190         (func_fatal_error): Reuse the name the user invoked us with.
25191
25192 2008-09-27  Bruno Haible  <bruno@clisp.org>
25193
25194         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
25195         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
25196         (gl_ICONV_H): Not here.
25197         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25198         instead of assigning ICONV_H directly.
25199
25200         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
25201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
25202         WCHAR_H directly.
25203
25204 2008-09-27  Bruno Haible  <bruno@clisp.org>
25205
25206         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
25207         * modules/arpa_inet (Depends-on): Add link-warning.
25208         (Makefile.am): Insert the definition of GL_LINK-WARNING.
25209         * modules/unistd (Makefile.am): Likewise.
25210
25211 2008-09-26  Bruno Haible  <bruno@clisp.org>
25212
25213         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
25214         variables.
25215         (func_version): Essentially copied from gnulib-tool.
25216         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
25217         func_readlink): Copied from gnulib-tool.
25218
25219 2008-09-26  Bruno Haible  <bruno@clisp.org>
25220
25221         * gnulib-tool (func_version): Change directory to $gnulib_dir before
25222         invoking git-version-gen.
25223
25224 2008-09-26  Bruno Haible  <bruno@clisp.org>
25225
25226         * posix-modules: Update to directory names changed on 2008-01-19.
25227         Remove commas in output before splitting into words. No more need to
25228         avoid 'ftruncate' since 2007-02-19.
25229
25230 2008-09-26  Bruno Haible  <bruno@clisp.org>
25231
25232         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
25233
25234 2008-09-26  Bruno Haible  <bruno@clisp.org>
25235
25236         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
25237         * modules/fwriteerror (Depends-on): Add errno.
25238
25239 2008-09-26  Bruno Haible  <bruno@clisp.org>
25240
25241         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
25242         * tests/test-vc-list-files-cvs.sh: Likewise.
25243
25244 2008-09-26  Bruno Haible  <bruno@clisp.org>
25245
25246         * doc/posix-headers/sys_resource.texi: Reorder items.
25247
25248 2008-09-26  Jim Meyering  <meyering@redhat.com>
25249
25250         fts: tweak inode comparison function
25251         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
25252         inode numbers, as documented.
25253
25254         fts: sort dirent entries on inode number before traversing
25255         This avoids a quadratic, seek-related performance penalty when
25256         operating on a directory containing many entries (measurable at 10k;
25257         3.5 hours at 2 million entries with a cold cache) on certain types
25258         of file systems, including ext3 and ext4, but not tmpfs.
25259         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
25260         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
25261         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
25262         (fs_handles_readdir_ordered_dirents_efficiently): New function.
25263         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
25264         (fts_build): Set the stat.st_ino member from D_INO.
25265         If it is likely to be useful, sort dirent entries on inode number.
25266
25267         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
25268         and the struct statfs.f_type member.
25269         * modules/fts (Depends-on): Add d-ino.
25270
25271 2008-09-26  Bruno Haible  <bruno@clisp.org>
25272
25273         * modules/sigpipe-die (Depends-on): Add sigpipe.
25274
25275         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
25276         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
25277         and GNULIB_STDIO_H_SIGPIPE are set.
25278         * lib/stdio-write.c: New file.
25279         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
25280         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25281         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25282         REPLACE_STDIO_WRITE_FUNCS.
25283         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
25284         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25285         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25286         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25287         * modules/stdio (Files): Add lib/stdio-write.c.
25288         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
25289         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25290         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25291         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25292         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
25293         REPLACE_FPRINTF_POSIX.
25294         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
25295         REPLACE_PRINTF_POSIX.
25296         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
25297         REPLACE_VFPRINTF_POSIX.
25298         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
25299         REPLACE_VPRINTF_POSIX.
25300         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
25301         SIGPIPE issue.
25302         * doc/posix-functions/fputc.texi: Likewise.
25303         * doc/posix-functions/fputs.texi: Likewise.
25304         * doc/posix-functions/fwrite.texi: Likewise.
25305         * doc/posix-functions/printf.texi: Likewise.
25306         * doc/posix-functions/putc.texi: Likewise.
25307         * doc/posix-functions/putchar.texi: Likewise.
25308         * doc/posix-functions/puts.texi: Likewise.
25309         * doc/posix-functions/vfprintf.texi: Likewise.
25310         * doc/posix-functions/vprintf.texi: Likewise.
25311
25312         * modules/safe-write (Depends-on): Add write.
25313
25314         * modules/sigpipe-tests: New file.
25315         * tests/test-sigpipe.c: New file.
25316         * tests/test-sigpipe.sh: New file.
25317
25318         * modules/write: New file.
25319         * lib/unistd.in.h: Include <sys/types.h>.
25320         (write): New declaration.
25321         * lib/write.c: New file.
25322         * m4/write.m4: New file.
25323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25324         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
25325         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
25326         GNULIB_WRITE, REPLACE_WRITE.
25327         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
25328         and the SIGPIPE issue.
25329
25330         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
25331         (raise): New declaration.
25332         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
25333         (ext_signal): New function.
25334         (rpl_raise): New function.
25335         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25336         GNULIB_SIGNAL_H_SIGPIPE.
25337         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
25338         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
25339
25340         * modules/sigpipe: New file.
25341         * m4/sigpipe.m4: New file.
25342
25343 2008-09-25  Derek Price  <derek@ximbiot.com>
25344             Bruno Haible  <bruno@clisp.org>
25345
25346         * gnulib-tool (func_import): Report all license incompatibilities, not
25347         just the first one.
25348
25349 2008-09-25  Bruno Haible  <bruno@clisp.org>
25350
25351         * gnulib-tool (func_import): When computing the edits, consider not
25352         only the Makefile.ams that exist but also those that will be generated.
25353
25354 2008-09-25  Simon Josefsson  <simon@josefsson.org>
25355
25356         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
25357         fixes gnulib-tool --test warning about duplicate dependency.
25358
25359 2008-09-25  Bruno Haible  <bruno@clisp.org>
25360
25361         * gnulib-tool: Don't ask the user to perform edits in the generated
25362         Makefile.ams.
25363         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
25364         apply to the Makefile.am being generated.
25365         (func_emit_tests_Makefile_am): Execute edits that apply to the
25366         Makefile.am being generated.
25367         (func_import): Setup list of Makefile.am edits before emitting the
25368         Makefile.ams, not at the end.
25369         (func_create_testdir): Update.
25370         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25371
25372 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25373
25374         * gnulib-tool (func_import): Store the --tests-base option in the
25375         comment in gnulib-cache.m4.
25376
25377 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
25378
25379         * NEWS: Document increased portability that sys_select now provides.
25380
25381         * lib/sys_select.in.h: Install select wrapper.
25382         * lib/sys_socket.in.h: Use more descriptive name when there is no
25383         select wrapper.
25384         * lib/winsock-select.c: New.
25385         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
25386         Require gl_HEADER_SYS_SOCKET.
25387         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
25388         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
25389         * tests/test-sys_select.c: Add functional tests.
25390
25391 2008-09-24  Eric Blake  <ebb9@byu.net>
25392
25393         open, fopen: close fd leak in last patch
25394         * lib/open.c (rpl_open): Close fd before returning error.
25395         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25396         * doc/posix-functions/open.texi (open): Document that Irix also
25397         has the bug.
25398         * doc/posix-functions/fopen.texi (fopen): Likewise.
25399         Reported by Paolo Bonzini.
25400
25401 2008-09-24  Bruno Haible  <bruno@clisp.org>
25402
25403         Ensure that a filename ending in a slash cannot be used to access a
25404         non-directory.
25405         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
25406         to check whether it's really a directory.
25407         * lib/fopen.c: Include fcntl.h, unistd.h.
25408         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
25409         and fdopen().
25410         * modules/fopen (Depends-on): Add unistd.
25411         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
25412         * tests/test-fopen.c (main): Likewise.
25413         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
25414         * doc/posix-functions/fopen.texi: Likewise.
25415         Reported by Eric Blake.
25416
25417 2008-09-23  Eric Blake  <ebb9@byu.net>
25418
25419         c-stack: avoid compiler optimizations when provoking overflow
25420         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
25421         recursion harder to optimize, to ensure a stack overflow occurs.
25422         * tests/test-c-stack.c (recurse): Likewise.
25423         Borrowed from libsigsegv.
25424
25425         c-stack: work around Irix sigaltstack bug
25426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
25427         whether sigaltstack uses wrong end of stack_t (copied in part from
25428         libsigsegv).
25429         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
25430         Irix bug, without requiring an over-allocation.
25431         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
25432         bug.
25433
25434         fopen: document mingw bug on directories
25435         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
25436         not allowing a stream visiting a directory, even though reading
25437         from such a stream is not portable.
25438
25439 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25440
25441         * lib/poll.c: Rewrite.
25442         * modules/poll: Depend on alloca.
25443
25444 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25445
25446         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
25447         instead define prototypes for a full set of wrappers.  Ensure
25448         that Cygwin does not use the compatibility code, which is only
25449         for MinGW.
25450         * lib/winsock.c: New.
25451         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
25452         * modules/sys_socket: Add lib/winsock.c.
25453
25454         * modules/poll-tests: Add errno and perror.
25455         * tests/test-poll.c: Use ioctl, not ioctlsocket.
25456
25457 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25458
25459         * tests/test-poll.c: Downgrade minimum needed Winsock version.
25460
25461 2008-09-23  Bruno Haible  <bruno@clisp.org>
25462
25463         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
25464         * doc/glibc-functions/*: Likewise.
25465
25466 2008-09-23  Simon Josefsson  <simon@josefsson.org>
25467
25468         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
25469         success.
25470
25471 2008-09-22  Eric Blake  <ebb9@byu.net>
25472             Bruno Haible  <bruno@clisp.org>
25473
25474         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
25475         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
25476         supply %A but mishandle pseudo-NaN.
25477         Reported by Simon Josefsson.
25478
25479 2008-09-21  Bruno Haible  <bruno@clisp.org>
25480
25481         * tests/test-lock.c (main): Tweak skip message.
25482         * tests/test-tls.c (main): Likewise.
25483
25484 2008-09-21  Bruno Haible  <bruno@clisp.org>
25485
25486         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
25487         whether 'struct sigaction' has sa_sigaction here...
25488         (gl_PREREQ_SIG_HANDLER_H): ... not here.
25489         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
25490
25491 2008-09-21  Bruno Haible  <bruno@clisp.org>
25492
25493         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
25494         section.
25495         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
25496         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
25497         the new section.
25498         (Support for obsolete systems lacking POSIX:2001): New section.
25499         (String handling <string.h>): Move strdup to the new section.
25500         Suggested by Simon Josefsson and Paolo Bonzini.
25501
25502 2008-09-21  Bruno Haible  <bruno@clisp.org>
25503
25504         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
25505         exponents in %e and %g results on 'long double'. Needed for mingw's
25506         improved *printf functions.
25507         * tests/test-vasprintf-posix.c (test_function): Likewise.
25508         * tests/test-snprintf-posix.h (test_function): Likewise.
25509         * tests/test-sprintf-posix.h (test_function): Likewise.
25510         Reported by Eric Blake.
25511
25512 2008-09-21  Bruno Haible  <bruno@clisp.org>
25513
25514         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
25515         * tests/test-sprintf-posix.h (test_function): Likewise.
25516
25517 2008-09-21  Bruno Haible  <bruno@clisp.org>
25518
25519         * modules/getpass (Depends-on): Add strdup-posix.
25520
25521         New module 'strdup-posix'.
25522         * modules/strdup-posix: New file.
25523         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
25524         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
25525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25526         REPLACE_STRDUP.
25527         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
25528         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
25529         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25530         strdup-posix.
25531
25532         * modules/strdup (Depends-on): Remove malloc-posix.
25533
25534 2008-09-20  Bruno Haible  <bruno@clisp.org>
25535
25536         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25537         Wildenhues.
25538
25539 2008-09-20  Bruno Haible  <bruno@clisp.org>
25540
25541         Ensure that wint_t gets defined on IRIX 5.3.
25542         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25543         * lib/wctype.in.h (wint_t): Likewise.
25544         (__wctype_wint_t): Remove type.
25545         (isw*): Use wint_t instead of __wctype_wint_t.
25546         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25547         * modules/wchar (Files): Add m4/wint_t.m4.
25548         (Makefile.am): Substitute HAVE_WINT_T.
25549         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25550         * tests/test-wctype.c: Check that wint_t is defined.
25551         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25552         * doc/posix-headers/wctype.texi: Likewise.
25553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25554
25555 2008-09-18  Bruno Haible  <bruno@clisp.org>
25556
25557         * gnulib-tool (func_exit): Update comment.
25558
25559 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25560
25561         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25562         assumes strdup exists and does not depend on strdup to return
25563         ENOMEM on out of memory conditions.
25564
25565 2008-09-18  Bruno Haible  <bruno@clisp.org>
25566
25567         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
25568         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25569         digits for the exponent.
25570
25571 2008-09-18  Jim Meyering  <meyering@redhat.com>
25572             Bruno Haible  <bruno@clisp.org>
25573
25574         * lib/vasnprintf.c (decimal_point_char): Define also if
25575         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25576
25577 2008-09-16  Bruno Haible  <bruno@clisp.org>
25578         and Eric Blake  <ebb9@byu.net>
25579
25580         vasnprintf: support Irix 5.3
25581         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25582         that mishandle long double infinity.
25583         Reported by Tom G. Christensen.
25584
25585 2008-09-16  Bruno Haible  <bruno@clisp.org>
25586
25587         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25588         Solaris 9.
25589         * doc/glibc-functions/alphasort.texi: Likewise.
25590         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25591
25592 2008-09-16  Jim Meyering  <meyering@redhat.com>
25593
25594         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25595         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25596         a umask modification leak out of a subshell.  Otherwise, the
25597         opensolaris /bin/sh would be accepted and thus cause unwarranted
25598         failures in the coreutils test suite.
25599
25600 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25601
25602         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25603         to succeed.
25604
25605 2008-09-16  Jim Meyering  <meyering@redhat.com>
25606
25607         avoid spurious test failure when library is built without ACL support
25608         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25609         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25610         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25611         * tests/test-copy-acl.sh: Likewise.
25612
25613 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25614
25615         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25616         based on character occurrence counts.
25617
25618 2008-09-15  Eric Blake  <ebb9@byu.net>
25619
25620         tests: avoid some compiler warnings
25621         * tests/test-memchr.c (main): Pass NULL indirectly.
25622         * tests/test-closein.c (main): Avoid unused variable.
25623
25624 2008-09-15  Bruno Haible  <bruno@clisp.org>
25625
25626         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25627         are missing on OpenBSD 4.0 individually.
25628         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25629
25630 2008-09-15  Bruno Haible  <bruno@clisp.org>
25631
25632         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25633         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25634         * doc/posix-functions/perror.texi: Likewise.
25635         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25636         is missing.
25637         Reported by Eric Blake.
25638
25639         * lib/errno.in.h: Use replacement values >= 2000.
25640         Reported by Eric Blake.
25641
25642 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25643
25644         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25645         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25646         limit.
25647         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25648         compareseq was aborted.
25649
25650 2008-09-14  Bruno Haible  <bruno@clisp.org>
25651
25652         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25653         yvec_edit_count.
25654         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25655         (fstrcmp_bounded): Simplify result computation accordingly.
25656
25657 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25658
25659         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25660         (fstrcmp): Define in terms of fstrcmp_bounded.
25661         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25662         lower_bound argument.
25663         Return quickly if the result is certainly < lower_bound.
25664         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25665
25666 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25667
25668         * lib/diffseq.h (EARLY_ABORT): New macro.
25669         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25670         evaluates to true.
25671
25672 2008-09-14  Bruno Haible  <bruno@clisp.org>
25673
25674         * modules/perror-tests: New file.
25675         * tests/test-perror.sh: New file.
25676         * tests/test-perror.c: New file.
25677
25678         New module 'perror'.
25679         * lib/stdio.in.h (perror): New declaration.
25680         * lib/perror.c: New file.
25681         * m4/perror.m4: New file.
25682         * modules/perror: New file.
25683         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25684         * doc/posix-functions/perror.texi: Mention the perror module.
25685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25686         REPLACE_PERROR.
25687         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25688         REPLACE_PERROR.
25689
25690 2008-09-14  Bruno Haible  <bruno@clisp.org>
25691
25692         * modules/stdio (Makefile.am): Reorder to match the order in
25693         lib/stdio.in.h.
25694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25695
25696 2008-09-13  Bruno Haible  <bruno@clisp.org>
25697
25698         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25699
25700 2008-09-13  Bruno Haible  <bruno@clisp.org>
25701
25702         Extend strerror to cover the added errno values.
25703         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25704         (rpl_strerror): Provide error messages for the added errno values and
25705         for the WSA* values.
25706         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25707         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25708         strerror.
25709         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25710         * modules/strerror (Depends-on): Add errno.
25711         * doc/posix-functions/strerror.texi: Document the change.
25712         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25713         and EOVERFLOW.
25714
25715 2008-09-13  Bruno Haible  <bruno@clisp.org>
25716
25717         * modules/EOVERFLOW: Remove file.
25718         * m4/eoverflow.m4: Remove file.
25719         * modules/EOVERFLOW-tests: Remove file.
25720         * tests/test-EOVERFLOW.c: Remove file.
25721         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
25722         * modules/ftell (Depends-on): Likewise.
25723         * modules/getdelim (Depends-on): Likewise.
25724         * modules/getugroups (Depends-on): Likewise.
25725         * modules/poll (Depends-on): Likewise.
25726         * modules/snprintf (Depends-on): Likewise.
25727         * modules/sprintf-posix (Depends-on): Likewise.
25728         * modules/vasnprintf (Depends-on): Likewise.
25729         * modules/vasprintf (Depends-on): Likewise.
25730         * modules/vfprintf-posix (Depends-on): Likewise.
25731         * modules/vsnprintf (Depends-on): Likewise.
25732         * modules/vsprintf-posix (Depends-on): Likewise.
25733         * modules/xvasprintf (Depends-on): Likewise.
25734         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25735         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
25736         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
25737         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
25738         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25739         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
25740         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
25741         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
25742         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25743         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
25744         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
25745         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
25746         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25747         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
25748         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
25749         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
25750         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25751         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
25752         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
25753         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
25754         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25755         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
25756         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
25757         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
25758         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
25759         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25760         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
25761         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
25762         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
25763         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
25764         * MODULES.html.sh: Remove EOVERFLOW.
25765         * NEWS: Mention the change.
25766
25767 2008-09-13  Bruno Haible  <bruno@clisp.org>
25768
25769         * modules/errno-tests: New file.
25770         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
25771
25772         * lib/errno.in.h: New file.
25773         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
25774         * modules/errno: New file.
25775         * doc/posix-headers/errno.texi: Update documentation.
25776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
25777
25778 2008-09-13  Bruno Haible  <bruno@clisp.org>
25779
25780         * tests/test-poll.c: Use #if for native Windows, rather than testing
25781         __MSVCRT__.
25782
25783 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25784             Bruno Haible  <bruno@clisp.org>
25785
25786         * lib/glob.c: Don't include <pwd.h> on native Windows.
25787         (WINDOWS32): New macro.
25788         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
25789
25790 2008-09-13  Bruno Haible  <bruno@clisp.org>
25791
25792         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
25793         (ETIMEDOUT): Remove macro.
25794         (glthread_cond_timedwait_multithreaded): New declaration.
25795         (glthread_cond_timedwait): Use it.
25796         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
25797         (glthread_cond_timedwait_multithreaded): New function.
25798
25799 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25800
25801         * modules/poll-tests: Do not check for io.h.
25802         * tests/test-poll.c: Check for __MSVCRT__ instead.
25803
25804 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25805
25806         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
25807         * modules/poll-tests: Add inet_pton, stdbool, sockets.
25808         * tests/test-poll.c: Use them.  Use _pipe on Windows.
25809
25810 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25811
25812         * modules/poll-tests: New.
25813         * tests/test-poll.c: New.
25814
25815 2008-09-12  Eric Blake  <ebb9@byu.net>
25816
25817         frexp: test for NetBSD failure on -0.0
25818         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
25819         not all, bugs from NetBSD 3.0 have been fixed.
25820         * doc/posix-functions/frexp.texi (frexp): Document bug.
25821         Reported by Thomas Klausner.
25822
25823         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
25824         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
25825         literal -0.0.
25826         Reported by Jonathan C. Patschke <jp@centtech.com>.
25827
25828 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25829
25830         * lib/glthread/cond.h: Use dummy implementation also if
25831         USE_WIN32_THREADS.
25832
25833 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25834
25835         * modules/fnmatch-posix (License): Change to LGPLv2+.
25836         * modules/fnmatch-gnu (License): Likewise.
25837
25838 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25839
25840         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
25841
25842 2008-09-11  Jim Meyering  <meyering@redhat.com>
25843
25844         * users.txt: Add gtk-vnc.
25845
25846 2008-09-08  Simon Josefsson  <simon@josefsson.org>
25847
25848         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
25849         rotate amounts.
25850
25851         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
25852         required for 16-bit and 8-bit rotates.
25853         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
25854         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
25855         UINT8_MAX instead of hard-coded constants.
25856         Suggested by Paul Eggert.
25857
25858 2008-09-07  Bruno Haible  <bruno@clisp.org>
25859
25860         * tests/test-striconveh.c (main): Check behaviour when converting from
25861         UTF-7.
25862
25863         Make striconveh work better with stateful encodings.
25864         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
25865         that iconv does not increment the inptr when returning -1/EINVAL.
25866
25867 2008-09-07  Bruno Haible  <bruno@clisp.org>
25868
25869         * build-aux/config.rpath: Update according to libtool-2.2.6.
25870         * build-aux/config.libpath: Likewise.
25871
25872 2008-09-06  Bruno Haible  <bruno@clisp.org>
25873
25874         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
25875         * lib/freadptr.c (freadptr): Likewise.
25876         * lib/freadseek.c (freadptrinc): Likewise.
25877         Reported by Simon Josefsson.
25878
25879 2008-09-06  Bruno Haible  <bruno@clisp.org>
25880
25881         * modules/freadptr (License): Change to LGPLv2+.
25882         * modules/freadseek (License): Likewise.
25883         Suggested by Eric Blake.
25884
25885         * modules/memchr2 (License): Change to LGPLv2+.
25886         Approved by Eric Blake.
25887
25888 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25889             Bruno Haible  <bruno@clisp.org>
25890
25891         Make gnulib-tool work with native 'sed' on AIX.
25892         * gnulib-tool (sed_noop): New variable.
25893         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
25894         func_add_or_update, func_create_testdir): Use it to initialize sed
25895         script variables.
25896         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25897
25898 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
25899             Bruno Haible  <bruno@clisp.org>
25900
25901         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
25902         also works after #include directives.
25903
25904 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
25905
25906         getdate.y: reject an out-of-range timezone value
25907         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
25908         the range [-24...+24].  When specified with only one or two digits,
25909         * tests/test-getdate.c: Tests for the fix.
25910         * doc/getdate.texi: Document this change.
25911
25912 2008-09-03  Bruno Haible  <bruno@clisp.org>
25913
25914         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
25915
25916 2008-09-02  Simon Josefsson  <simon@josefsson.org>
25917
25918         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
25919         <bruce.korb@gmail.com> with ideas from Ben Pfaff
25920         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
25921         Blake <ebb9@byu.net>.
25922
25923         * tests/test-bitrotate.c: Add more test vectors.
25924
25925 2008-09-02  Eric Blake  <ebb9@byu.net>
25926
25927         vasnprintf-posix: handle large precision via %.*d
25928         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
25929         when handling it ourselves.
25930         * tests/test-vasnprintf-posix.c (test_function): Add test.
25931         * tests/test-snprintf-posix.h (test_function): Likewise.
25932         * tests/test-sprintf-posix.h (test_function): Likewise.
25933         * tests/test-vasprintf-posix.c (test_function): Likewise.
25934         Reported by Alain Guibert.
25935
25936 2008-09-01  Eric Blake  <ebb9@byu.net>
25937
25938         c-stack: make configure-time check more robust
25939         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
25940         successful sigaction call.
25941         Reported by Tom G. Christensen.
25942
25943 2008-09-01  Bruno Haible  <bruno@clisp.org>
25944
25945         New module 'findprog-lgpl'.
25946         * modules/findprog-lgpl: New file.
25947         * lib/findprog-lgpl.c: New file.
25948         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
25949         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
25950         to decide whether to use strdup or xstrdup, concatenated_filename or
25951         xconcatenated_filename.
25952
25953 2008-09-01  Bruno Haible  <bruno@clisp.org>
25954
25955         Split module 'concat-filename' into 'concat-filename' (LGPL) and
25956         'xconcat-filename' (GPL).
25957         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
25958         (License): Change to LGPLv2+.
25959         * modules/xconcat-filename: New file.
25960         * lib/concat-filename.h (concatenated_filename): Change specification.
25961         (xconcatenated_filename): New declaration.
25962         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
25963         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
25964         memory situations.
25965         * lib/xconcat-filename.c: New file.
25966         * NEWS: Mention the change.
25967         * lib/findprog.c: Include concat-filename.h, not filename.h.
25968         (find_in_path): Use xconcatenated_filename instead of
25969         concatenated_filename.
25970         * lib/javacomp.c: Include concat-filename.h, not filename.h.
25971         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25972         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25973         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25974         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
25975         instead of concatenated_filename.
25976         * lib/javaexec.c: Include concat-filename.h, not filename.h.
25977         (execute_java_class): Use xconcatenated_filename instead of
25978         concatenated_filename.
25979         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
25980         * modules/javacomp (Depends-on): Likewise.
25981         * modules/javaexec (Depends-on): Likewise.
25982
25983 2008-09-01  Bruno Haible  <bruno@clisp.org>
25984
25985         Split module 'filename' into 'filename' and 'concat-filename'.
25986         * modules/filename: Keep only lib/filename.h.
25987         (License): Change to LGPLv2+.
25988         * modules/concat-filename: New file, extracted from modules/filename.
25989         * lib/filename.h (concatenated_filename): Remove declaration.
25990         * lib/concat-filename.h: New file, extracted from lib/filename.h.
25991         * lib/concat-filename.c: Include concat-filename.h.
25992         * NEWS: Mention the change.
25993
25994 2008-09-01  Simon Josefsson  <simon@josefsson.org>
25995
25996         * lib/bitrotate.h (rotl8, rotr8): Add.
25997
25998         * modules/bitrotate (configure.ac): Need
25999         AC_REQUIRE([AC_C_INLINE]).
26000         (Description): Mention stdint.h.  Reported by Bruno Haible
26001         <bruno@clisp.org>.
26002
26003         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
26004         Paolo Bonzini <bonzini@gnu.org>.
26005
26006 2008-08-31  Bruno Haible  <bruno@clisp.org>
26007
26008         Assume Solaris specific bi-arch conventions on Solaris systems.
26009         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
26010         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
26011         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
26012         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
26013         like acl_libdirstem.
26014         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
26015         acl_libdirstem.
26016         * NEWS: Mention the change.
26017         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
26018
26019 2008-08-31  Jim Meyering  <meyering@redhat.com>
26020
26021         * lib/strftime.h: Add comments describing the two added arguments.
26022
26023         remove duplicate #include directives
26024         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
26025         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
26026
26027 2008-08-31  Bruno Haible  <bruno@clisp.org>
26028
26029         New module 'sigpipe-die'.
26030         * modules/sigpipe-die: New file.
26031         * lib/sigpipe-die.h: New file.
26032         * lib/sigpipe-die.c: New file.
26033         * MODULES.html.sh (Signal handling): Add sigpipe-die.
26034
26035 2008-08-31  Bruno Haible  <bruno@clisp.org>
26036
26037         Don't override previously installed signal handlers.
26038         * lib/fatal-signal.c (saved_sigactions): New variable.
26039         (uninstall_handlers): Reset the signal to the saved handler, not
26040         to SIG_DFL (except when ignored).
26041         (install_handlers): Save the previous handlers.
26042
26043 2008-08-30  Bruno Haible  <bruno@clisp.org>
26044
26045         * gnulib-tool (func_reset_sigpipe): New function.
26046         (func_get_automake_snippet, func_modules_transitive_closure,
26047         func_import): Invoke it before a join command that reads from stdin,
26048         to avoid "echo: write error: Broken pipe" error messages on stderr.
26049         Reported by Sam Steingold <sds@gnu.org>.
26050
26051 2008-08-30  Bruno Haible  <bruno@clisp.org>
26052
26053         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
26054         Code copied from m4/open.m4.
26055         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
26056         access and the filename ends in a slash. Code copied from lib/open.c.
26057         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
26058         * tests/test-fopen.c (main): Check against bug with trailing slash.
26059
26060 2008-08-29  Bruno Haible  <bruno@clisp.org>
26061
26062         Avoid some "gcc -pedantic" warnings.
26063         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
26064         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
26065         * lib/dirent.in.h: Likewise.
26066         * lib/fcntl.in.h: Likewise.
26067         * lib/float.in.h: Likewise.
26068         * lib/iconv.in.h: Likewise.
26069         * lib/inttypes.in.h: Likewise.
26070         * lib/locale.in.h: Likewise.
26071         * lib/math.in.h: Likewise.
26072         * lib/netinet_in.in.h: Likewise.
26073         * lib/search.in.h: Likewise.
26074         * lib/signal.in.h: Likewise.
26075         * lib/stdarg.in.h: Likewise.
26076         * lib/stdint.in.h: Likewise.
26077         * lib/stdio.in.h: Likewise.
26078         * lib/stdlib.in.h: Likewise.
26079         * lib/string.in.h: Likewise.
26080         * lib/strings.in.h: Likewise.
26081         * lib/sys_select.in.h: Likewise.
26082         * lib/sys_socket.in.h: Likewise.
26083         * lib/sys_stat.in.h: Likewise.
26084         * lib/sys_time.in.h: Likewise.
26085         * lib/sysexits.in.h: Likewise.
26086         * lib/time.in.h: Likewise.
26087         * lib/unistd.in.h: Likewise.
26088         * lib/wchar.in.h: Likewise.
26089         * lib/wctype.in.h: Likewise.
26090         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
26091         * modules/fchdir (Makefile.am): Likewise.
26092         * modules/fcntl (Makefile.am): Likewise.
26093         * modules/float (Makefile.am): Likewise.
26094         * modules/iconv_open (Makefile.am): Likewise.
26095         * modules/inttypes (Makefile.am): Likewise.
26096         * modules/locale (Makefile.am): Likewise.
26097         * modules/math (Makefile.am): Likewise.
26098         * modules/netinet_in (Makefile.am): Likewise.
26099         * modules/search (Makefile.am): Likewise.
26100         * modules/signal (Makefile.am): Likewise.
26101         * modules/stdarg (Makefile.am): Likewise.
26102         * modules/stdint (Makefile.am): Likewise.
26103         * modules/stdio (Makefile.am): Likewise.
26104         * modules/stdlib (Makefile.am): Likewise.
26105         * modules/string (Makefile.am): Likewise.
26106         * modules/strings (Makefile.am): Likewise.
26107         * modules/sys_select (Makefile.am): Likewise.
26108         * modules/sys_socket (Makefile.am): Likewise.
26109         * modules/sys_stat (Makefile.am): Likewise.
26110         * modules/sys_time (Makefile.am): Likewise.
26111         * modules/sysexits (Makefile.am): Likewise.
26112         * modules/time (Makefile.am): Likewise.
26113         * modules/unistd (Makefile.am): Likewise.
26114         * modules/wchar (Makefile.am): Likewise.
26115         * modules/wctype (Makefile.am): Likewise.
26116         Reported by Reuben Thomas <rrt@sc3d.org>.
26117
26118 2008-08-29  Bruno Haible  <bruno@clisp.org>
26119
26120         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
26121         any more.
26122
26123 2008-08-29  Simon Josefsson  <simon@josefsson.org>
26124
26125         * MODULES.html.sh (Misc): Add bitrotate.
26126
26127         * modules/bitrotate: New file.
26128
26129         * lib/bitrotate.h: New file.
26130
26131         * modules/bitrotate-tests: New file.
26132
26133         * tests/test-bitrotate.c: New file.
26134
26135         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
26136         on the bitrotate module.
26137
26138         * lib/arctwo.c: Use new bitrotate module.
26139
26140 2008-08-29  Jim Meyering  <meyering@redhat.com>
26141
26142         bootstrap: merge changes from coreutils
26143         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
26144         of copied files.  Remove a kludge, now that this is fixed.
26145         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
26146         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
26147         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
26148
26149 2008-08-29  Bruno Haible  <bruno@clisp.org>
26150
26151         * MODULES.html.sh: Remove --cvs-urls option.
26152
26153 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
26154
26155         maint.mk: adjust to file name change
26156         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
26157
26158 2008-08-28  Jim Meyering  <meyering@redhat.com>
26159
26160         * modules/getndelim2 (License): Relicense to LGPLv2+.
26161         Approved by Richard Stallman for the version of 1995, and by
26162         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
26163
26164 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
26165
26166         * lib/getdelim.c (flockfile, funlockfile): Make all of them
26167         dummy if one is not available.  Do not touch them if
26168         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
26169         (getc_maybe_unlocked): New.
26170         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
26171
26172 2008-08-26  Eric Blake  <ebb9@byu.net>
26173
26174         doc/INSTALL: resync from autoconf
26175         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
26176         (INSTALL_PRELUDE): Delete; this is done more efficiently by
26177         moving...
26178         * install.texi [!autoconf]: ...here.  Resync from autoconf.
26179         * INSTALL: Regenerate.
26180         * INSTALL.ISO: New file.
26181         * INSTALL.UTF-8: Likewise.
26182
26183 2008-08-26  Jim Meyering  <meyering@redhat.com>
26184
26185         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
26186         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
26187         these definitions conditional, so that they may be overridden, too.
26188
26189 2008-08-26  Bruno Haible  <bruno@clisp.org>
26190
26191         Generate INSTALL file variants with prettier quotes.
26192         * doc/Makefile (INSTALL_PRELUDE): New macro.
26193         (INSTALL): Use it.
26194         (INSTALL.ISO, INSTALL.UTF-8): New rules.
26195
26196 2008-08-26  Bruno Haible  <bruno@clisp.org>
26197
26198         Run makeinfo in an English locale.
26199         * doc/Makefile (MAKEINFO): New variable.
26200
26201 2008-08-26  Bruno Haible  <bruno@clisp.org>
26202
26203         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
26204         Suggested by Eric Blake.
26205
26206 2008-08-25  Bruno Haible  <bruno@clisp.org>
26207
26208         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
26209
26210 2008-08-25  Eric Blake  <ebb9@byu.net>
26211
26212         c-stack: test that stack overflow can be caught
26213         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
26214         that platform allows handling stack overflow; at least OS/2 EMX
26215         has sigaltstack, but crashes before transferring control to
26216         handler on stack overflow.
26217         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
26218         check for HAVE_STACK_OVERFLOW_HANDLING.
26219         Reported by Elbert Pol.
26220
26221 2008-08-25  Bruno Haible  <bruno@clisp.org>
26222
26223         * doc/posix-functions/strftime.texi: Fix description of strftime
26224         module.
26225
26226 2008-08-24  Bruno Haible  <bruno@clisp.org>
26227
26228         * tests/uniwidth/test-uc_width2.c: New file.
26229         * tests/uniwidth/test-uc_width2.sh: New file.
26230         * modules/uniwidth/width-tests (Files): Add the new files.
26231         (TESTS): Add uniwidth/test-uc_width2.sh.
26232         (TESTS_ENVIRONMENT): New variable.
26233         (check_PROGRAMS): Add test-uc_width2.
26234         (test_uc_width2_SOURCES): New variable.
26235
26236         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
26237         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
26238         not 0x00AB.
26239         Reported by Alexander V. Lukyanov <lav@netis.ru>.
26240
26241 2008-08-22  Eric Blake  <ebb9@byu.net>
26242
26243         test-lock, test-tls: mention why a test is skipped
26244         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
26245         skipped.
26246         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
26247
26248         count-one-bits: relax license
26249         * modules/count-one-bits (License): Relicense to LGPLv2+.
26250         Suggested by Ludovic Courtès, approved by Ben Pfaff.
26251
26252 2008-08-22  Andreas Schwab  <schwab@suse.de>
26253
26254         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26255         Remove spurious space in assignment.
26256
26257 2008-08-21  Simon Josefsson  <simon@josefsson.org>
26258
26259         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
26260         Paul Eggert <eggert@CS.UCLA.EDU>.
26261
26262 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
26263
26264         * modules/gettext: Add m4/threadlib.m4.
26265
26266 2008-08-19  Eric Blake  <ebb9@byu.net>
26267
26268         test-c-stack: fix compilation failure on FreeBSD 5.0
26269         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
26270         headers before <sys/resource.h>.
26271         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
26272         the bug.
26273         Reported by Nelson H. F. Beebe.
26274
26275         strverscmp: migrate from "strverscmp.h" to <string.h>
26276         * modules/string (Makefile.am): Add new hooks.
26277         * modules/strverscmp (Files): Remove strverscmp.h.
26278         (Depends-on): Add string.
26279         (configure.ac): Add indicator.
26280         (Include): Mention new header.
26281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
26282         defaults.
26283         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
26284         results.
26285         * lib/strverscmp.h: Delete.
26286         * lib/string.in.h (strverscmp): Provide declaration, when needed.
26287         * tests/test-strverscmp.c (includes): Adjust client.
26288         * lib/check-version.c (includes): Likewise.
26289         * NEWS: Document the change.
26290
26291         strverscmp: add unit test
26292         * modules/strverscmp-tests: New file.
26293         * tests/test-strverscmp.c: Likewise.
26294
26295 2008-08-19  Simon Josefsson  <simon@josefsson.org>
26296
26297         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
26298         regarding Windows crypto stuff, from Mono.
26299
26300 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
26301
26302         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
26303         if present, for intel RND.  Return error on failures.
26304
26305 2008-08-18  Ben Pfaff  <blp@gnu.org>
26306
26307         gitlog-to-changelog: give better diagnostic for failed pipe-open
26308         * build-aux/gitlog-to-changelog: Improve error message: suggest
26309         that the version of Git may be too old.
26310
26311 2008-08-18  Simon Josefsson  <simon@josefsson.org>
26312
26313         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
26314         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
26315
26316 2008-08-18  Bruno Haible  <bruno@clisp.org>
26317
26318         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
26319         pthread_in_use().
26320
26321 2008-08-18  Bruno Haible  <bruno@clisp.org>
26322
26323         * lib/glthread/threadlib.c: Include <pthread.h>.
26324
26325 2008-08-18  Bruno Haible  <bruno@clisp.org>
26326
26327         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
26328         glthread_recursive_lock_* macros.
26329         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
26330         Fix syntax error.
26331
26332 2008-08-18  Bruno Haible  <bruno@clisp.org>
26333
26334         * lib/glthread/thread.c: Avoid forcing a context switch right after
26335         thread creation.
26336
26337 2008-08-17  Bruno Haible  <bruno@clisp.org>
26338
26339         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
26340         * lib/glthread/thread.h: Provide Win32 specific implementation.
26341         * modules/thread (Files): Add lib/glthread/thread.c.
26342         (Depends-on): Add lock.
26343         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
26344
26345 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26346
26347         New module 'yield'.
26348         * modules/yield: New file.
26349         * lib/glthread/yield.h: New file.
26350         * m4/yield.m4: New file.
26351         * MODULES.html.sh (Multithreading): Add yield.
26352
26353 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26354
26355         New module 'thread'.
26356         * modules/thread: New file.
26357         * lib/glthread/thread.h: New file.
26358         * m4/thread.m4: New file.
26359         * MODULES.html.sh (Multithreading): Add thread.
26360
26361 2008-08-17  Bruno Haible  <bruno@clisp.org>
26362
26363         * lib/glthread/lock.h: Include <stdlib.h> always.
26364         * lib/glthread/tls.h: Likewise.
26365         * lib/glthread/cond.h: Likewise.
26366
26367 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26368
26369         New module 'cond'.
26370         * modules/cond: New file.
26371         * lib/glthread/cond.h: New file.
26372         * lib/glthread/cond.c: New file.
26373         * m4/cond.m4: New file.
26374         * MODULES.html.sh (Multithreading): Add cond.
26375
26376 2008-08-16  Eric Blake  <ebb9@byu.net>
26377
26378         c-stack: fix regression on Irix 5.3 from 2008-06-21
26379         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
26380         sa_sigaction...
26381         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
26382         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
26383         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
26384         * modules/signal (Makefile.am): Use the value.
26385         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
26386         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
26387         * doc/posix-headers/signal.texi (signal.h): Document this
26388         portability issue.
26389         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
26390         Reported by Tom G. Christensen.
26391
26392 2008-08-17  Bruno Haible  <bruno@clisp.org>
26393
26394         New module 'threadlib'.
26395         * modules/threadlib: New file.
26396         * lib/glthread/threadlib.c: New file, extracted from
26397         lib/glthread/lock.c.
26398         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
26399         functions.
26400         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
26401         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
26402         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
26403         macros.
26404         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
26405         (gl_DISABLE_THREADS): Remove macro.
26406         * modules/lock (Files): Remove build-aux/config.rpath.
26407         (Depends-on): Remove havelib. Add threadlib.
26408         (configure.ac-early): Remove section.
26409         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
26410         * modules/tls (Depends-on): Remove lock. Add threadlib.
26411         (Link): New section, copied from threadlib.
26412         * MODULES.html.sh (Multithreading): Add threadlib.
26413
26414 2008-08-14  Bruno Haible  <bruno@clisp.org>
26415
26416         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
26417         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
26418         glthread_rwlock_unlock, glthread_rwlock_destroy,
26419         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
26420         glthread_recursive_lock_destroy): Define as macros always.
26421         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
26422         glthread_lock_lock.
26423         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
26424         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
26425         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
26426         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
26427         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
26428         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
26429         (glthread_recursive_lock_lock_func): Renamed from
26430         glthread_recursive_lock_lock.
26431         (glthread_recursive_lock_unlock_func): Renamed from
26432         glthread_recursive_lock_unlock.
26433         (glthread_recursive_lock_destroy_func): Renamed from
26434         glthread_recursive_lock_destroy.
26435
26436 2008-08-14  Bruno Haible  <bruno@clisp.org>
26437
26438         * lib/glthread/lock.h: Renamed from lib/lock.h.
26439         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
26440         * lib/glthread/tls.h: Renamed from lib/tls.h.
26441         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
26442         * lib/fstrcmp.c: Update includes.
26443         * lib/strsignal.c: Update includes.
26444         * modules/lock (Files, Makefile.am): Update.
26445         (Include): Change to "glthread/lock.h".
26446         * modules/tls (Files, Makefile.am): Update.
26447         (Include): Change to "glthread/tls.h".
26448         * tests/test-lock.c: Update includes.
26449         * tests/test-tls.c: Update includes.
26450         * NEWS: Mention the renamed header files.
26451
26452 2008-08-11  Jim Meyering  <meyering@redhat.com>
26453
26454         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
26455
26456 2008-08-11  Eric Blake  <ebb9@byu.net>
26457
26458         test-c-stack: avoid C99-ism
26459         * tests/test-c-stack.c (main): Fix whitespace, move declaration
26460         before statement.
26461         Reported by Alain Guibert.
26462
26463 2008-08-10  Jim Meyering  <meyering@redhat.com>
26464
26465         ensure that return value of uinttostr et al are not ignored
26466         * lib/inttostr.h (__GNUC_PREREQ): Define.
26467         (__attribute_warn_unused_result__): Define.
26468         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
26469
26470 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
26471
26472         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
26473         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
26474
26475 2008-08-07  Jim Meyering  <meyering@redhat.com>
26476
26477         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
26478
26479         * modules/mkstemp (License): Relicense under LGPLv2+.
26480         * modules/tempname (License): Likewise.
26481
26482 2008-08-06  Bruno Haible  <bruno@clisp.org>
26483
26484         * lib/poll.c (poll): Further micro-optimization.
26485
26486 2008-08-06  Jim Meyering  <meyering@redhat.com>
26487
26488         inet_pton.c: use locale-independent tolower
26489         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
26490         (inet_pton6): Use c_tolower rather than tolower.
26491         * modules/inet_pton (Depends-on): Add c-ctype.
26492
26493 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
26494
26495         * lib/poll.c (poll): Avoid division when timeout is 0, cache
26496         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
26497
26498 2008-08-06  Jim Meyering  <meyering@redhat.com>
26499
26500         * modules/inet_pton (License): Relicense under LGPLv2+.
26501
26502 2008-08-03  Bruno Haible  <bruno@clisp.org>
26503
26504         Additional non-aborting API for lock and tls.
26505         * lib/lock.h: Include <errno.h>.
26506         (glthread_lock_init): New macro/function.
26507         (gl_lock_init): Define as wrapper around glthread_lock_init.
26508         (glthread_lock_lock): New macro/function.
26509         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
26510         (glthread_lock_unlock): New macro/function.
26511         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
26512         (glthread_lock_destroy): New macro/function.
26513         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
26514         (glthread_rwlock_init): New macro/function.
26515         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
26516         (glthread_rwlock_rdlock): New macro/function.
26517         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
26518         (glthread_rwlock_wrlock): New macro/function.
26519         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
26520         (glthread_rwlock_unlock): New macro/function.
26521         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
26522         (glthread_rwlock_destroy): New macro/function.
26523         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
26524         (glthread_recursive_lock_init): New macro/function.
26525         (gl_recursive_lock_init): Define as wrapper around
26526         glthread_recursive_lock_init.
26527         (glthread_recursive_lock_lock): New macro/function.
26528         (gl_recursive_lock_lock): Define as wrapper around
26529         glthread_recursive_lock_lock.
26530         (glthread_recursive_lock_unlock): New macro/function.
26531         (gl_recursive_lock_unlock): Define as wrapper around
26532         glthread_recursive_lock_unlock.
26533         (glthread_recursive_lock_destroy): New macro/function.
26534         (gl_recursive_lock_destroy): Define as wrapper around
26535         glthread_recursive_lock_destroy.
26536         (glthread_once): New macro/function.
26537         (gl_once): Define as wrapper around glthread_once.
26538         Update function declarations.
26539         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26540         glthread_rwlock_init. Return error code.
26541         (glthread_rwlock_rdlock_multithreaded): Renamed from
26542         glthread_rwlock_rdlock. Return error code.
26543         (glthread_rwlock_wrlock_multithreaded): Renamed from
26544         glthread_rwlock_wrlock. Return error code.
26545         (glthread_rwlock_unlock_multithreaded): Renamed from
26546         glthread_rwlock_unlock. Return error code.
26547         (glthread_rwlock_destroy_multithreaded): Renamed from
26548         glthread_rwlock_destroy. Return error code.
26549         (glthread_recursive_lock_init_multithreaded): Renamed from
26550         glthread_recursive_lock_init. Return error code.
26551         (glthread_recursive_lock_lock_multithreaded): Renamed from
26552         glthread_recursive_lock_lock. Return error code.
26553         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26554         glthread_recursive_lock_unlock. Return error code.
26555         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26556         glthread_recursive_lock_destroy. Return error code.
26557         (glthread_once_call): Make static.
26558         (glthread_once_multithreaded): Renamed from glthread_once.
26559         * lib/tls.h: Include <errno.h>.
26560         (glthread_tls_key_init): New macro/function.
26561         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26562         (glthread_tls_set): New macro/function.
26563         (gl_tls_set): Define as wrapper around glthread_tls_set.
26564         (glthread_tls_key_destroy): New macro/function.
26565         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26566         Update function declarations.
26567         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26568         glthread_tls_get.
26569         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26570
26571 2008-08-04  Eric Blake  <ebb9@byu.net>
26572
26573         gnumakefile: use space, not TAB, outside of targets
26574         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26575
26576 2008-08-02  Jim Meyering  <meyering@redhat.com>
26577
26578         getdate.y: avoid locale-dependent date parsing failure
26579         In Turkish locales, getdate would fail to recognize keywords
26580         containing a lowercase "i".  The solution is not to rely on
26581         locale-sensitive case-conversion.
26582         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26583         (lookup_word): Use c_toupper in place of toupper.
26584         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26585         Reported by Vefa Bicakci <bicave@superonline.com> in
26586         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26587         * modules/getdate (Depends-on): Add c-ctype.
26588
26589 2008-08-02  Bruno Haible  <bruno@clisp.org>
26590
26591         * gnulib-tool (func_import): When updating or creating a .gitignore
26592         file, prepend each added line with a slash, and ignore leading slashes
26593         from the existing lines.
26594         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26595
26596 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26597
26598         Portability fix for GNU make 3.79.1.
26599         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26600         versions do not understand.
26601
26602 2008-08-01  Bruno Haible  <bruno@clisp.org>
26603
26604         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26605         * tests/test-isnanf.h (zero): New variable.
26606         (main): Avoid literal -0.0f.
26607         * tests/test-isnand.h (zero): New variable.
26608         (main): Avoid literal -0.0.
26609         * tests/test-isnanl.h (zero): New variable.
26610         (main): Avoid literal -0.0L.
26611         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26612         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26613         -0.0, -0.0L.
26614         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26615         (test_signbitd): Avoid literal -0.0.
26616         (test_signbitl): Avoid literal -0.0L.
26617         * tests/test-ceilf1.c (zero): New variable.
26618         (main): Avoid literal -0.0f.
26619         * tests/test-ceill.c (zero): New variable.
26620         (main): Avoid literal -0.0L.
26621         * tests/test-floorf1.c (zero): New variable.
26622         (main): Avoid literal -0.0f.
26623         * tests/test-floorl.c (zero): New variable.
26624         (main): Avoid literal -0.0L.
26625         * tests/test-roundf1.c (zero): New variable.
26626         (main): Avoid literal -0.0f.
26627         * tests/test-round1.c (zero): New variable.
26628         (main): Avoid literal -0.0.
26629         * tests/test-roundl.c (zero): New variable.
26630         (main): Avoid literal -0.0L.
26631         * tests/test-truncf1.c (zero): New variable.
26632         (main): Avoid literal -0.0f.
26633         * tests/test-trunc1.c (zero): New variable.
26634         (main): Avoid literal -0.0.
26635         * tests/test-truncl.c (zero): New variable.
26636         (main): Avoid literal -0.0L.
26637         * tests/test-frexp.c (zero): New variable.
26638         (main): Avoid literal -0.0.
26639         * tests/test-frexpl.c (zero): New variable.
26640         (main): Avoid literal -0.0L.
26641         * tests/test-ldexpl.c (zero): New variable.
26642         (main): Avoid literal -0.0L.
26643         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26644         (zerod, zerol): New variables.
26645         (test_function): Avoid literals -0.0, -0.0L.
26646         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26647         (zerod, zerol): New variables.
26648         (test_function): Avoid literals -0.0, -0.0L.
26649         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26650         (zerod, zerol): New variables.
26651         (test_function): Avoid literals -0.0, -0.0L.
26652         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26653         (zerod, zerol): New variables.
26654         (test_function): Avoid literals -0.0, -0.0L.
26655         * tests/test-strtod.c (zero): New variable.
26656         (main): Avoid literal -0.0.
26657         Reported by Jonathan C. Patschke <jp@centtech.com>.
26658
26659 2008-07-31  Jim Meyering  <meyering@redhat.com>
26660
26661         sha256.h: correct definition of SHA224_DIGEST_SIZE
26662         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26663         Reported by Paulie Pena IV <paulie4@gmail.com>.
26664         Define as 224 / 8, rather than as a literal.
26665         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26666         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26667         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26668
26669 2008-07-31  Bruno Haible  <bruno@clisp.org>
26670
26671         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26672         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26673         Reported by Jonathan Patschke <jp@centtech.com>.
26674
26675 2008-07-31  Bruno Haible  <bruno@clisp.org>
26676
26677         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26678         Reported by Paolo Bonzini <bonzini@gnu.org>.
26679
26680 2008-07-30  Eric Blake  <ebb9@byu.net>
26681
26682         test-strtod: allow compilation without -lm
26683         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26684         Reported by Dennis Clarke <blastwave@gmail.com>.
26685
26686 2008-07-28  Jim Meyering  <meyering@redhat.com>
26687
26688         bootstrap: work also when there are no .po files in po/
26689         * build-aux/bootstrap (update_po_files): Complete the change
26690         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26691
26692 2008-07-27  Jim Meyering  <meyering@redhat.com>
26693
26694         * users.txt: Add zile.
26695
26696 2008-07-26  Ben Pfaff  <blp@gnu.org>
26697
26698         Add missing dependencies on new m4/exponent[fdl].m4 files.
26699         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26700         * modules/isnand-nolibm: Add m4/exponentd.m4.
26701         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26702         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26703         m4/isnan[fdl].m4, because the macros actually used moved.
26704         Reported by Jim Meyering.
26705
26706 2008-07-14  Ben Pfaff  <blp@gnu.org>
26707
26708         Add isinf module.
26709         * lib/isinf.c: New file.
26710         * lib/math.in.h: Define isinf macro if we have decided to replace
26711         it.
26712         * m4/isinf.m4: New file.
26713         * m4/math_h.m4: Initialize and substitute variables for isinf
26714         module.
26715         * modules/isinf: New file.
26716         * modules/isinf-tests: New file.
26717         * modules/math: Add substitutions for new module.
26718         * tests/test-isinf.c: New file.
26719         * doc/posix-functions/isinf.texi: Mention new module.
26720         * MODULES.html.sh: Mention new module.
26721
26722 2008-07-14  Ben Pfaff  <blp@gnu.org>
26723
26724         Factor out some macros for use by additional modules.
26725         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
26726         exponentf.m4.
26727         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
26728         exponentd.m4.
26729         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
26730         file exponentl.m4.
26731         * m4/exponentf.m4: New file.
26732         * m4/exponentd.m4: New file.
26733         * m4/exponentl.m4: New file.
26734         * modules/isnanf: Use new file m4/exponentf.m4.
26735         * modules/isnand: Use new file m4/exponentd.m4.
26736         * modules/isnanl: Use new file m4/exponentl.m4.
26737
26738 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
26739
26740         mktime.c: normalize tp->tm_isdst value to -1/0/1.
26741         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
26742         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
26743         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
26744
26745         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
26746         readlink on platforms without PATH_MAX.
26747
26748 2008-07-21  Eric Blake  <ebb9@byu.net>
26749
26750         Warn, not fail, on stale version.
26751         * top/GNUmakefile (_curr-ver): Tone down previous patch.
26752
26753         Don't allow installation with stale devel version number.
26754         * top/GNUmakefile (_is-install-target): New macro.
26755         (_curr-ver): Forbid installation with stale version number.
26756
26757 2008-07-20  Bruno Haible  <bruno@clisp.org>
26758
26759         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
26760         TESTS_ENVIRONMENT.
26761         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
26762
26763 2008-07-20  Bruno Haible  <bruno@clisp.org>
26764
26765         * lib/c-stack.h (c_stack_action): Add documentation.
26766         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
26767
26768 2008-07-20  Bruno Haible  <bruno@clisp.org>
26769
26770         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
26771         * modules/readlink (License): Likewise.
26772
26773 2008-07-17  Eric Blake  <ebb9@byu.net>
26774
26775         * modules/c-stack (Link): Fix typo.
26776
26777         Make c-stack use libsigsegv, when available.
26778         * modules/c-stack (Depends-on): Add libsigsegv.
26779         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
26780         needed.
26781         * lib/c-stack.c (SIGSTKSZ): Define fallback.
26782         (segv_handler, overflow_handler, c_stack_action)
26783         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
26784         implementation when libsigsegv is available, but only when using
26785         the library is necessary.
26786         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
26787         comment, explaining why XSI check fails on Linux.
26788         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
26789         * tests/test-c-stack2.sh: Tweak skip message.
26790         * NEWS: Document new link-time requirements.
26791
26792 2008-07-16  Eric Blake  <ebb9@byu.net>
26793
26794         c-stack: Expose false positives when not using libsigsegv.
26795         * modules/c-stack-tests (Files): Expand test.
26796         * tests/test-c-stack.c (main): Add means to conditionally trigger
26797         non-overflow SIGSEGV.
26798         * tests/test-c-stack2.sh: New file.
26799
26800 2008-07-14  Bruno Haible  <bruno@clisp.org>
26801
26802         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
26803         Reported by Eric Blake.
26804
26805 2008-07-14  Sam Steingold  <sds@gnu.org>
26806             Bruno Haible  <bruno@clisp.org>
26807
26808         New module libsigsegv.
26809         * modules/libsigsegv: New file.
26810         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
26811         modifications.
26812         * MODULES.html.sh (Signal handling): New section.
26813
26814 2008-07-14  Bruno Haible  <bruno@clisp.org>
26815
26816         * modules/unictype/ctype-* (Description): Add the word "function".
26817         Improves the resulting doc in MODULES.html.
26818
26819 2008-07-12  Ben Pfaff  <blp@gnu.org>
26820
26821         Add longlong module.
26822         * modules/longlong: New file.
26823
26824 2008-07-12  Bruno Haible  <bruno@clisp.org>
26825
26826         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
26827         to empty.
26828
26829 2008-07-10  Ben Pfaff  <blp@gnu.org>
26830
26831         Add isnan module.
26832         * doc/posix-functions/isnan.texi: Mention new module.
26833         * lib/math.in.h: Define isnan macro if we have decided to replace
26834         it.
26835         * m4/isnan.m4: New file.
26836         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
26837         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
26838         also.
26839         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
26840         redundancy.
26841         * m4/math_h.m4: Initialize and substitute variables for isnan
26842         module.
26843         * modules/isnan: New file.
26844         * modules/isnan-tests: New file.
26845         * modules/math: Add substitutions for new module.
26846         * tests/test-isnan.c: New file.
26847         * MODULES.html.sh: Mention new module.
26848
26849 2008-07-10  Ben Pfaff  <blp@gnu.org>
26850
26851         Add isnanf module.
26852         * lib/isnanf.m4: New file.
26853         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
26854         (gl_HAVE_ISNANF_IN_LIBM): New macro.
26855         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
26856         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
26857         * modules/isnanf: New file.
26858         * modules/isnanf-tests: New file.
26859         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
26860         files.
26861         * tests/test-isnanf-nolibm.c: factored most of its contents into
26862         new file tests/test-isnanf.h.
26863         * tests/test-isnanf.h: New file.
26864         * tests/test-isnanf.c: New file.
26865         * MODULES.html.sh: Mention new module.
26866         * doc/glibc-functions/isnanf.texi: Mention new module.
26867
26868 2008-07-10  Ben Pfaff  <blp@gnu.org>
26869
26870         Add isnand module.
26871         * lib/isnand.h: New file.
26872         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
26873         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
26874         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
26875         functionality also.
26876         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
26877         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
26878         (gl_HAVE_ISNAND_IN_LIBM): New macro.
26879         * modules/isnand: New file.
26880         * modules/isnand-tests: New file.
26881         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
26882         files.
26883         * tests/test-isnand-nolibm.c: factored most of its contents into
26884         new file tests/test-isnand.h.
26885         * tests/test-isnand.h: New file.
26886         * tests/test-isnand.c: New file.
26887         * MODULES.html.sh: Mention new module.
26888
26889 2008-07-10  Ben Pfaff  <blp@gnu.org>
26890
26891         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
26892         * lib/isnand.h: Rename lib/isnand-nolibm.h.
26893         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
26894         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
26895         * modules/isnanf-nolibm: Update references to renamed files.
26896         * modules/isnand-nolibm: Likewise.
26897         * modules/isnanf-nolibm-tests: Likewise.
26898         * modules/isnand-nolibm-tests: Likewise.
26899         * lib/frexp.c: Likewise.
26900         * lib/isfinite.c: Likewise.
26901         * lib/signbitd.c: Likewise.
26902         * lib/signbitf.c: Likewise.
26903         * lib/vasnprintf.c: Likewise.
26904         * tests/test-ceilf1.c: Likewise.
26905         * tests/test-ceilf2.c: Likewise.
26906         * tests/test-floorf1.c: Likewise.
26907         * tests/test-floorf2.c: Likewise.
26908         * tests/test-frexp.c: Likewise.
26909         * tests/test-round1.c: Likewise.
26910         * tests/test-round2.c: Likewise.
26911         * tests/test-roundf1.c: Likewise.
26912         * tests/test-strtod.c: Likewise.
26913         * tests/test-trunc1.c: Likewise.
26914         * tests/test-trunc2.c: Likewise.
26915         * tests/test-truncf1.c: Likewise.
26916         * tests/test-truncf2.c: Likewise.
26917         * NEWS: Mention the renamed header files.
26918
26919 2008-07-11  Jim Meyering  <meyering@redhat.com>
26920
26921         vc-list-files: make the last-resort awk code more portable
26922         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
26923         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
26924         does not support it.
26925
26926 2008-07-10  Eric Blake  <ebb9@byu.net>
26927
26928         Work with tar's bootstrap.
26929         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
26930         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
26931         an m4 comment.
26932
26933 2008-07-09  Jim Meyering  <meyering@redhat.com>
26934
26935         posix-shell.m4: fix typo that made this test malfunction
26936         * m4/posix-shell.m4: Remove capitalization in variable name.
26937
26938 2008-07-08  Bruno Haible  <bruno@clisp.org>
26939
26940         * m4/onceonly.m4: Update comments.
26941         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26942
26943 2008-07-04  Jim Meyering  <meyering@redhat.com>
26944
26945         * users.txt: Add vc-dwim.
26946         (bison, coreutils): Use the gitweb URL.
26947
26948 2008-07-03  Jim Meyering  <meyering@redhat.com>
26949
26950         * users.txt: Add libffcall.  From Sam Steingold.
26951
26952 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
26953
26954         getdate.y: do not ignore TZ with relative day, month or year offset
26955         * lib/getdate.y (get_date): Move the tz-handling block to follow the
26956         relative-date-handling, since otherwise, the latter would clobber the
26957         sole output (an updated Start value) of the tz-handling block.
26958         * tests/test-getdate.c: Tests for the fix
26959
26960 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26961
26962         Recognize 'foo_LIBRARIES += libgnu.a'.
26963         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
26964         makefile snippet has already specified an installation location,
26965         also using '+='.
26966
26967 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
26968
26969         getdate.y: factor out common actions
26970         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
26971         Use them in place of open-coded actions.
26972
26973 2008-07-01  Simon Josefsson  <simon@josefsson.org>
26974
26975         Add self-test for getdate module.
26976         * modules/getdate-tests: New file.
26977         * tests/test-getdate.c: New file.
26978
26979 2008-06-29  Bruno Haible  <bruno@clisp.org>
26980
26981         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
26982         .gitignore.
26983         Reported by Sylvain Beucler <beuc@beuc.net>.
26984
26985 2008-06-29  Bruno Haible  <bruno@clisp.org>
26986
26987         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
26988         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
26989
26990 2008-06-29  Bruno Haible  <bruno@clisp.org>
26991
26992         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
26993         EXTRA_DIST.
26994         Reported by Sylvain Beucler <beuc@beuc.net>.
26995
26996 2008-06-26  Jim Meyering  <meyering@redhat.com>
26997
26998         make several modules depend on the "open" module
26999         This provides slightly increased consistency when opening-for-write
27000         the name of a non-directory spelled with a trailing slash.
27001         * modules/chdir-safer: Likewise.
27002         * modules/chown: Likewise.
27003         * modules/clean-temp: Likewise.
27004         * modules/copy-file: Likewise.
27005         * modules/fchdir: Likewise.
27006         * modules/fcntl-safer: Likewise.
27007         * modules/pipe: Likewise.
27008         * modules/utime: Likewise.
27009         Prompted by Eric Blake and Bruno Haible.
27010
27011 2008-06-24  Andreas Schwab  <schwab@suse.de>
27012
27013         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
27014         literals can be used as initializers for global variables.
27015
27016 2008-06-23  Eric Blake  <ebb9@byu.net>
27017
27018         Make gnulib-cache.m4 easier to diff.
27019         * gnulib-tool (func_import): Allow newlines when reading cached
27020         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
27021
27022 2008-06-23  Bruno Haible  <bruno@clisp.org>
27023
27024         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
27025         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
27026         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
27027         m4/signalblocking.m4.
27028         (gl_PREREQ_SIGACTION): Don't invoke it.
27029         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
27030         gl_PREREQ_SIG_HANDLER_H.
27031         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27032         Don't check for sigaction here.
27033
27034 2008-06-23  Bruno Haible  <bruno@clisp.org>
27035
27036         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
27037         (install_handlers): Don't set the SA_RESETHAND flag.
27038
27039 2008-06-23  Bruno Haible  <bruno@clisp.org>
27040
27041         * m4/sigaction.m4: Comment fixes.
27042         * lib/signal.in.h: Likewise.
27043
27044 2008-06-23  Eric Blake  <ebb9@byu.net>
27045
27046         Fix typo.
27047         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
27048
27049         Avoid SA_ namespace.
27050         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
27051         Reported by Ralf Wildenhues.
27052
27053         Avoid test failure due to SA_RESTORER.
27054         * tests/test-sigaction.c (SA_MASK): New macro.
27055         (main): Avoid failing due to extension flags being set.
27056         Reported by Jim Meyering.
27057
27058         Revert use of sig-handler.h in sigprocmask.c.
27059         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
27060         it requires the existence of struct sigaction.
27061         * lib/sigprocmask.c (handler_t): Restore typedef.
27062         (rpl_signal, old_handlers): Use local type.
27063
27064 2008-06-22  Bruno Haible  <bruno@clisp.org>
27065
27066         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
27067         conditionally.
27068         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27069
27070 2008-06-22  Bruno Haible  <bruno@clisp.org>
27071
27072         * doc/posix-functions/siginterrupt.texi: Move note.
27073
27074         * lib/signal.in.h (SA_RESTART): New macro.
27075         * lib/sigaction.c: Update comment.
27076
27077         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
27078
27079         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
27080         (gl_PREREQ_SIGPROCMASK): Invoke it.
27081         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
27082
27083         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
27084
27085         * lib/sigprocmask.c: Update a comment.
27086
27087 2008-06-21  Eric Blake  <ebb9@byu.net>
27088
27089         Use sigaction module rather than signal().
27090         * modules/c-stack (Depends-on): Add sigaction.
27091         * modules/fatal-signal (Depends-on): Likewise.
27092         * modules/nanosleep (Depends-on): Likewise.
27093         * modules/sigprocmask (Files): Add sig-handler.h.
27094         * modules/sigaction (Files): Likewise.
27095         * lib/sig-handler.h (get_handler): New file, suggested by Paul
27096         Eggert.
27097         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
27098         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
27099         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27100         (init_fatal_signals): Likewise.
27101         * lib/nanosleep.c (rpl_nanosleep): Likewise.
27102         (siginterrupt): Delete fallback.
27103         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
27104         instead.
27105         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
27106         siginterrupt.
27107
27108         New module sigaction, for mingw.
27109         * modules/sigaction: New module...
27110         * modules/sigaction-tests: ...and its test.
27111         * m4/sigaction.m4: New file.
27112         * lib/sigaction.c: Likewise.
27113         * tests/test-sigaction.c: Likewise.
27114         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
27115         * modules/signal (Makefile.am): Likewise.
27116         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
27117         needed.
27118         * doc/posix-headers/signal.texi (signal.h): Mention provided
27119         types.
27120         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
27121         that sigaction is preferable.
27122         * doc/posix-functions/sigaction.texi (sigaction): Mention new
27123         module.
27124         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27125         sigaction.
27126
27127         Improve robustness of sigprocmask by overriding signal.
27128         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
27129         is in use.
27130         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
27131         (SIGKILL, SIGSTOP): Provide fallbacks.
27132         (rpl_signal): Implement.
27133         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
27134         signal can be called inside handlers.
27135
27136         Fix nanosleep module on mingw.
27137         * modules/nanosleep (Depends-on): Add sys_select.
27138         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
27139
27140         Fix licensing of sigprocmask.
27141         * modules/raise (License): Relicense as LGPL.
27142
27143 2008-06-21  Bruno Haible  <bruno@clisp.org>
27144
27145         * lib/propername.c (proper_name_utf8): Don't use the transliterated
27146         result if it contains question marks.
27147         Reported by Michael Geng <linux@michaelgeng.de>.
27148
27149 2008-06-19  Bruno Haible  <bruno@clisp.org>
27150
27151         Fix CVS-ism.
27152         * doc/gnulib.texi: Include updated-stamp.texi.
27153         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
27154         (updated-stamp.texi): New rule.
27155         (gnulib.info): Depend on it.
27156         * doc/.gitignore: Add updated-stamp.texi.
27157         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
27158
27159 2008-06-19  Bruno Haible  <bruno@clisp.org>
27160
27161         * doc/Makefile (gnulib.info): Update and simplify dependencies.
27162         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27163
27164 2008-06-19  Eric Blake  <ebb9@byu.net>
27165
27166         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
27167         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
27168         Reported by Stepan Kasal.
27169
27170 2008-06-18  Bruno Haible  <bruno@clisp.org>
27171
27172         * lib/fatal-signal.c (init_fatal_signals): Add comment.
27173         Reported by Eric Blake.
27174
27175 2008-06-18  Eric Blake  <ebb9@byu.net>
27176
27177         Work around cygwin 1.5.25 strsignal bug.
27178         * tests/test-strsignal.c: Allow for const char *.
27179         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
27180
27181 2008-06-18  Simon Josefsson  <simon@josefsson.org>
27182
27183         * users.txt: Update URL to article and add author/date
27184         information.
27185
27186 2008-06-17  Bruno Haible  <bruno@clisp.org>
27187
27188         New macro gl_DISABLE_THREADS.
27189         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
27190         if the user did not pass --enable-threads or --disable-threads option.
27191         (gl_DISABLE_THREADS): New macro.
27192         Reported by Eric Blake <ebb9@byu.net>.
27193
27194 2008-06-17  Bruno Haible  <bruno@clisp.org>
27195
27196         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
27197         when the macro ignores it.
27198         Based on a patch by Eric Blake <ebb9@byu.net>.
27199
27200 2008-06-17  Bruno Haible  <bruno@clisp.org>
27201
27202         * modules/tls (License): Change to LGPLv2+.
27203         Reported by Eric Blake.
27204
27205 2008-06-17  Eric Blake  <ebb9@byu.net>
27206
27207         Simplify c-stack prerequisites.
27208         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
27209         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
27210         no longer requires <ucontext.h> to exist.  Optimize setrlimit
27211         check.
27212         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
27213         <sys/resource.h>.
27214
27215         Move c-stack test into testsuite.
27216         * modules/c-stack-tests: New file.
27217         * lib/c-stack.c [DEBUG]: Move test program...
27218         * tests/test-c-stack.c: ...into this new file.  Skip rather than
27219         fail test if sigaltstack is lacking.
27220         * tests/test-c-stack.sh: New driver file.
27221
27222 2008-06-16  Eric Blake  <ebb9@byu.net>
27223
27224         Use raise module consistently.
27225         * modules/fatal-signal (Depends-on): Add raise.
27226         * modules/sigprocmask (Depends-on): Likewise.
27227         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
27228         * lib/sigprocmask.c (sigprocmask): Likewise.
27229         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27230         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
27231
27232         Fix compliance bug in sigpending.
27233         * lib/sigprocmask.c (sigpending): Return pending array via
27234         parameter, not return value.
27235
27236 2008-06-14  Eric Blake  <ebb9@byu.net>
27237
27238         Improve obstack-printf test code.
27239         * tests/test-obstack-printf.c (test_function): Fix comment, and
27240         simplify usage of obstack_* in macros.  Add a test for coverage.
27241         Reported by Bruno Haible.
27242
27243 2008-06-14  Bruno Haible  <bruno@clisp.org>
27244
27245         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
27246         array size as a constant, not as a const variable.
27247         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
27248         AC_USE_SYSTEM_EXTENSIONS.
27249         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27250         Test whether the obstack_printf function actually exists.
27251         * modules/obstack-printf (Depends-on): Add extensions.
27252         (Include): Remove obstack.h.
27253         * modules/obstack-printf-posix (Depends-on): Add extensions.
27254         (Include): Remove obstack.h.
27255
27256 2008-06-13  Eric Blake  <ebb9@byu.net>
27257
27258         Add obstack-printf and obstack-printf-posix modules.
27259         * modules/obstack-printf: New file.
27260         * modules/obstack-printf-posix: Likewise.
27261         * MODULES.html.sh (Misc): Mention them.
27262         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27263         Likewise.
27264         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27265         Likewise.
27266         * modules/stdio (Makefile.am): Accomodate new modules.
27267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27268         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
27269         Declare.
27270         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
27271         functions.
27272         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
27273         (gl_REPLACE_OBSTACK_PRINTF): New macros
27274         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
27275         * tests/test-obstack-printf.c: New file.
27276         * modules/obstack-printf-tests: Likewise.
27277         * modules/obstack-printf-posix-tests: Likewise.
27278
27279 2008-06-11  Bruno Haible  <bruno@clisp.org>
27280
27281         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
27282         * lib/open.c: Include errno.h.
27283         (open): Fail when attempting to write to a file that has a trailing
27284         slash.
27285         * tests/test-open.c (main): Test against trailing slash bug.
27286         * doc/posix-functions/open.texi: Mention the trailing slash bug.
27287
27288 2008-06-10  Bruno Haible  <bruno@clisp.org>
27289
27290         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
27291         for $? to work inside the trap command, with various /bin/sh-s.
27292         * tests/test-vc-list-files-cvs.sh: Likewise.
27293
27294 2008-06-10  Bruno Haible  <bruno@clisp.org>
27295
27296         * lib/acl-internal.h: Don't include gettext.h here.
27297         * lib/set-mode-acl.c: Include gettext.h here.
27298         * lib/copy-acl.c: Likewise.
27299
27300 2008-06-10  Bruno Haible  <bruno@clisp.org>
27301
27302         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
27303         * lib/wait-process.c (wait_subprocess): Likewise.
27304         * lib/execute.h (execute): Add termsigp argument.
27305         * lib/execute.c (execute): Likewise.
27306         * lib/csharpcomp.c (compile_csharp_using_pnet,
27307         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
27308         * lib/csharpexec.c (execute_csharp_using_pnet,
27309         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
27310         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
27311         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
27312         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
27313         is_jikes_present): Update.
27314         * lib/javaexec.c (execute_java_class): Update.
27315         * lib/javaversion.c (execute_and_read_line): Update.
27316         * NEWS: Document the changes.
27317         Reported by Eric Blake.
27318
27319 2008-06-10  Eric Blake  <ebb9@byu.net>
27320
27321         Add missing include.
27322         * tests/test-strstr.c (includes): Add <signal.h>.
27323         * tests/test-strcasestr.c (includes): Likewise.
27324         * tests/test-memmem.c (includes): Likewise.
27325
27326 2008-06-10  Bruno Haible  <bruno@clisp.org>
27327
27328         * lib/wait-process.c (wait_subprocess): Add an assertion.
27329
27330 2008-06-10  Bruno Haible  <bruno@clisp.org>
27331
27332         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
27333
27334 2008-06-10  Bruno Haible  <bruno@clisp.org>
27335
27336         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
27337         using alarm().
27338         * tests/test-strcasestr.c (main): Likewise.
27339         * tests/test-strstr.c (main): Likewise.
27340
27341 2008-06-09  Bruno Haible  <bruno@clisp.org>
27342
27343         Work around the Solaris 10 ACE ACLs ABI change.
27344         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
27345         declare if ACL_NO_TRIVIAL is present.
27346         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
27347         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
27348         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
27349         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
27350         define if ACL_NO_TRIVIAL is present.
27351         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27352         and use the current ABI.
27353         (file_has_acl): Use same #if condition as elsewhere.
27354         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
27355         in use, and use the current ABI.
27356         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
27357         Reported by Jim Meyering.
27358
27359 2008-06-09  Eric Blake  <ebb9@byu.net>
27360
27361         Work around environments that (stupidly) ignore SIGALRM.
27362         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
27363         before using alarm().
27364         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27365         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27366         Reported by Ian Beckwith <ianb@erislabs.net>.
27367
27368         Produce autobuild blurb earlier in log.
27369         * modules/autobuild (configure.ac-early): Move AB_INIT here.
27370
27371 2008-06-09  Jim Meyering  <meyering@redhat.com>
27372         and Ondřej Vašík  <ovasik@redhat.com>
27373
27374         utimens.c: correct kernel bug work-around
27375         Ondřej Vašík found that the invalid return value of 280 indicates
27376         failure, not success, and the kernel bug we're trying to work
27377         around affects not just the utimensat call, but also the fallback
27378         futimens call.
27379         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
27380         not success.
27381         [HAVE_FUTIMENS]: Use the same work-around, here.
27382
27383 2008-06-09  Jim Meyering  <meyering@redhat.com>
27384
27385         add more guards around definition of ACE_-related code
27386         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
27387         ALLOW and ACE_OWNER are also defined.
27388
27389 2008-06-08  Bruno Haible  <bruno@clisp.org>
27390
27391         * lib/acl-internal.h: Add me as co-author.
27392         * lib/file-has-acl.c: Likewise.
27393         * lib/set-mode-acl.c: Likewise.
27394         * lib/copy-acl.c: Likewise.
27395
27396 2008-06-08  Bruno Haible  <bruno@clisp.org>
27397
27398         Add support for AIX ACLs.
27399         * lib/acl-internal.h (acl_nontrivial): New declaration.
27400         * lib/file-has-acl.c (acl_nontrivial): New function.
27401         (file_has_acl): Add implementation using AIX 4 ACL API.
27402         * lib/set-mode-acl.c (qset_acl): Likewise.
27403         * lib/copy-acl.c (qcopy_acl): Likewise.
27404
27405 2008-06-08  Bruno Haible  <bruno@clisp.org>
27406
27407         Add support for HP-UX ACLs.
27408         * lib/acl-internal.h (acl_nontrivial): New declaration.
27409         * lib/file-has-acl.c (acl_nontrivial): New function.
27410         (file_has_acl): Add implementation using HP-UX 11 ACL API.
27411         * lib/set-mode-acl.c (qset_acl): Likewise.
27412         * lib/copy-acl.c (qcopy_acl): Likewise.
27413
27414 2008-06-08  Bruno Haible  <bruno@clisp.org>
27415
27416         Add support for Cygwin ACLs.
27417         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
27418         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
27419         the chmod_or_fchmod call.
27420         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
27421
27422 2008-06-08  Bruno Haible  <bruno@clisp.org>
27423
27424         Fix bug with setuid modes in Solaris 10+ code.
27425         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
27426         succeeded, when the mode contains some special bits.
27427
27428 2008-06-08  Bruno Haible  <bruno@clisp.org>
27429
27430         Add support for Solaris 7..10 ACLs.
27431         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
27432         declarations.
27433         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
27434         functions.
27435         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
27436         * lib/set-mode-acl.c (qset_acl): Likewise.
27437         * lib/copy-acl.c (qcopy_acl): Likewise.
27438
27439 2008-06-08  Bruno Haible  <bruno@clisp.org>
27440
27441         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
27442         declaration.
27443         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
27444         (acl_access_nontrivial): Remove MacOS X case.
27445         (file_has_acl): Use acl_extended_nontrivial.
27446         * lib/copy-acl.c (qcopy_acl): Likewise.
27447
27448 2008-06-08  Bruno Haible  <bruno@clisp.org>
27449
27450         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
27451
27452 2008-06-08  Jim Meyering  <meyering@redhat.com>
27453
27454         * modules/acl (Maintainer): Add Bruno Haible.
27455
27456 2008-06-07  Bruno Haible  <bruno@clisp.org>
27457
27458         Improve support for Tru64 ACLs.
27459         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
27460         ACL on OSF/1.
27461
27462 2008-06-07  Bruno Haible  <bruno@clisp.org>
27463
27464         Add support for MacOS X ACLs.
27465         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
27466         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
27467         * lib/set-mode-acl.c (qset_acl): Likewise.
27468         * lib/copy-acl.c (qcopy_acl): Likewise.
27469
27470 2008-06-07  Bruno Haible  <bruno@clisp.org>
27471
27472         Fix memory leak introduced on 2008-05-22.
27473         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
27474         use.
27475
27476 2008-06-07  Bruno Haible  <bruno@clisp.org>
27477
27478         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
27479         to construct an empty ACL.
27480
27481 2008-06-07  Bruno Haible  <bruno@clisp.org>
27482
27483         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
27484         precisely.
27485         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
27486
27487 2008-06-07  Bruno Haible  <bruno@clisp.org>
27488
27489         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
27490         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
27491
27492 2008-06-07  Bruno Haible  <bruno@clisp.org>
27493
27494         * doc/posix-functions/_setjmp.texi: Explain the use of this function
27495         regardless of POSIX.
27496         * doc/posix-functions/_longjmp.texi: Likewise.
27497         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
27498         SystemV platform in this case.
27499
27500 2008-06-06  Eric Blake  <ebb9@byu.net>
27501
27502         Document abort() bugs.
27503         * doc/posix-functions/abort.texi (abort): Mention anomalies.
27504
27505         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
27506         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
27507         sigsetjmp.
27508         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
27509         siglongjmp, but only as a macro.
27510         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
27511         is obsolete.
27512         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
27513
27514         Tweak documentation to cover cygwin argz bugs.
27515         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
27516         argz bug fix; no code change needed since no cygwin releases
27517         occurred between the last fix and the bug being tested.
27518         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
27519         module and recently fixed cygwin bugs.
27520         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
27521         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
27522         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
27523         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
27524         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
27525         Likewise.
27526         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
27527         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
27528         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
27529         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
27530         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
27531         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27532         Likewise.
27533
27534         Avoid gcc warning on cygwin.
27535         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27536         !ACL_NO_TRIVIAL]: Avoid unused variable.
27537
27538 2008-06-05  Eric Blake  <ebb9@byu.net>
27539
27540         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27541         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27542         git-version-gen fails to come up with a version.
27543         Reported by Simon Josefsson.
27544
27545 2008-06-05  Jim Meyering  <meyering@redhat.com>
27546             Paul Eggert  <eggert@cs.ucla.edu>
27547
27548         utimens.c: work around a probable Linux kernel bug
27549         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27550         appears to be a kernel bug that causes utimensat to return 280
27551         instead of 0, indicating success.
27552
27553 2008-06-04  Bruno Haible  <bruno@clisp.org>
27554
27555         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27556         2008-06-01 commit.
27557
27558 2008-06-04  Bruno Haible  <bruno@clisp.org>
27559
27560         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27561         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27562         (file_has_acl): Use it. Save errno afterwards.
27563         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27564
27565 2008-06-03  Bruno Haible  <bruno@clisp.org>
27566
27567         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27568         draft code. Simplify #ifs.
27569         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27570         Put Solaris code after POSIX-draft code. Fix comments regarding
27571         Solaris 10, HP-UX. Mention Cygwin.
27572         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27573
27574 2008-06-03  Eric Blake  <ebb9@byu.net>
27575
27576         Provide fallback for older kernels.
27577         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27578         Provide runtime fallback if kernel lacks support.
27579         Reported by Mike Frysinger.
27580
27581 2008-06-02  Bruno Haible  <bruno@clisp.org>
27582
27583         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27584         it exists.
27585
27586 2008-06-02  Bruno Haible  <bruno@clisp.org>
27587
27588         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27589         * lib/copy-acl.c (qcopy_acl): Update comment.
27590
27591 2008-06-02  Bruno Haible  <bruno@clisp.org>
27592
27593         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27594         like ACL APIs.
27595
27596 2008-06-02  Bruno Haible  <bruno@clisp.org>
27597
27598         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27599         * tests/test-set-mode-acl.sh: Likewise.
27600         * tests/test-copy-acl.sh: Likewise.
27601         * tests/test-copy-file.sh: Likewise.
27602
27603 2008-06-02  Bruno Haible  <bruno@clisp.org>
27604
27605         * tests/test-file-has-acl.sh: Remove unused code.
27606
27607 2008-06-01  Bruno Haible  <bruno@clisp.org>
27608
27609         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27610         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27611         messages.
27612         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27613
27614 2008-06-01  Bruno Haible  <bruno@clisp.org>
27615
27616         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27617         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27618         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27619         APIs.
27620         * modules/acl-tests (configure.ac): Remove tests now contained in
27621         m4/acl.m4.
27622
27623 2008-06-02  Jim Meyering  <meyering@redhat.com>
27624
27625         announce-gen: use a better key-server host name
27626         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27627         it may be more consistently reliable.  Suggested by Werner Koch
27628         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27629
27630 2008-06-01  Bruno Haible  <bruno@clisp.org>
27631
27632         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27633         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27634
27635 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27636
27637         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27638
27639 2008-06-01  Bruno Haible  <bruno@clisp.org>
27640
27641         New ACL tests.
27642         * tests/test-file-has-acl.sh: New file.
27643         * tests/test-file-has-acl.c: New file.
27644         * tests/test-set-mode-acl.sh: New file.
27645         * tests/test-set-mode-acl.c: New file.
27646         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27647         * tests/test-copy-acl.c: New file.
27648         * modules/acl-tests: New file, based on modules/copy-file-tests.
27649         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27650         (Depends-on): Add acl-tests.
27651         (configure.ac): Remove checks.
27652         (Makefile.am): Don't create test-sameacls program here any more.
27653
27654 2008-06-01  Bruno Haible  <bruno@clisp.org>
27655
27656         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27657         * tests/test-sameacls.c: Include progname.h.
27658         (main): Invoke set_program_name. Portability fixes for MacOS X,
27659         Solaris, HP-UX.
27660
27661 2008-06-01  Bruno Haible  <bruno@clisp.org>
27662
27663         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27664         function.
27665         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27666
27667 2008-06-01  Bruno Haible  <bruno@clisp.org>
27668
27669         * modules/rpmatch (Depends-on): Add strdup.
27670
27671 2008-06-01  Bruno Haible  <bruno@clisp.org>
27672
27673         * lib/pipe.c: Include unistd-safer.h.
27674         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27675         * modules/pipe (Depends-on): Add unistd-safer.
27676
27677 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27678
27679         * modules/autobuild (configure.ac): Call AB_INIT.
27680
27681 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27682
27683         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27684         Suggested by Bruno Haible <bruno@clisp.org>.
27685
27686 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27687
27688         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27689         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27690         <bruno@clisp.org>.
27691
27692 2008-05-29  Eric Blake  <ebb9@byu.net>
27693
27694         Prefer new POSIX 200x interfaces over futimesat.
27695         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27696         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27697         when available.
27698         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27699
27700 2008-05-28  Bruno Haible  <bruno@clisp.org>
27701
27702         * modules/stpcpy (License): Change to LGPLv2+.
27703         Requested by David Lutterkort <dlutter@redhat.com>.
27704
27705 2008-05-27  Bruno Haible  <bruno@clisp.org>
27706
27707         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27708         current mingw.
27709         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27710
27711 2008-05-27  Bruno Haible  <bruno@clisp.org>
27712
27713         * modules/iconv_open (Link): New section, from module 'iconv'.
27714         * modules/striconv (Link): Likewise.
27715         * modules/striconveh (Link): Likewise.
27716         * modules/xstriconv (Link): Likewise.
27717         * modules/unicodeio (Link): Likewise.
27718         * modules/propername (Link): Likewise.
27719         Reported by Jim Meyering.
27720
27721 2008-05-26  Jim Meyering  <meyering@redhat.com>
27722
27723         sha256: do not artificially restrict buffer length to be < 2^32
27724         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
27725         uint32_t to size_t.
27726         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
27727         to match.
27728
27729         avoid unaligned access errors, e.g., on sparc
27730         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
27731         direct access through a possibly-unaligned uint64* pointer.
27732         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
27733         direct access through a possibly-unaligned uint32* pointer.
27734         Prompted by this patch from Tom "spot" Callaway:
27735         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
27736
27737         sha512.c: fix typo in comment
27738         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
27739
27740 2008-05-25  Bruno Haible  <bruno@clisp.org>
27741
27742         * lib/set-mode-acl.c: Renamed from lib/acl.c.
27743         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
27744         (Makefile.am): Update lib_SOURCES.
27745
27746 2008-05-25  Bruno Haible  <bruno@clisp.org>
27747
27748         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
27749
27750 2008-05-25  Jim Meyering  <meyering@redhat.com>
27751
27752         useless-if-before-free: freed expr may have white-space differences
27753         * build-aux/useless-if-before-free: Recognize cases in which the
27754         freed expression differs from the tested one in embedded white
27755         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
27756         $1 was used, so we can't make any regexp shy.  Improved tests now
27757         detect this.
27758
27759         useless-if-before-free: accept white space in the expression.
27760         * build-aux/useless-if-before-free: For now, any white space
27761         in the expression must be identical in the free argument.
27762
27763         useless-if-before-free: efficiency tweak
27764         * build-aux/useless-if-before-free: Make the expression-matching
27765         regexp "shy".
27766         Make the *outer* regexp shy, not the expr-matching one.
27767
27768         update code-in-comment to accept cast of free arg
27769         * build-aux/useless-if-before-free: Update regexp.
27770
27771 2008-05-25  Bruno Haible  <bruno@clisp.org>
27772
27773         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
27774         * modules/copy-file-tests (Files, Makefile.am): Update.
27775         * tests/test-copy-file.c (func_test_copy): Update.
27776
27777 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
27778
27779         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
27780
27781 2008-05-23  Bruno Haible  <bruno@clisp.org>
27782
27783         Improve support for ACLs on OSF/1.
27784         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
27785         Remove fallback for unknown flavors of ACLs.
27786
27787 2008-05-22  Bruno Haible  <bruno@clisp.org>
27788
27789         Add support for ACLs on OSF/1.
27790         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
27791         replacements.
27792         (acl_free_text): New macro fallback.
27793         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
27794         acl_free.
27795         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
27796         acl_free_text function. Require AC_C_INLINE.
27797
27798 2008-05-22  Bruno Haible  <bruno@clisp.org>
27799
27800         Make copy_acl work on MacOS X 10.5.
27801         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
27802         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
27803         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
27804         If MODE_INSIDE_ACL, don't assume that every system has the same text
27805         representation for ACLs as FreeBSD.
27806         * lib/copy-acl.c (copy_acl): Add support for platforms with
27807         !MODE_INSIDE_ACL.
27808         * lib/file-has-acl.c (file_has_acl): Likewise.
27809         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
27810         FreeBSD, MacOS X, or IRIX, respectively.
27811
27812 2008-05-22  Bruno Haible  <bruno@clisp.org>
27813
27814         * lib/acl.h: Don't include <sys/acl.h>.
27815         (GETACLCNT): Move fallback to lib/acl-internal.h.
27816         * lib/acl-internal.h: Include <sys/acl.h> here.
27817         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
27818
27819 2008-05-22  Bruno Haible  <bruno@clisp.org>
27820
27821         Split off copy_acl function to separate file.
27822         * lib/copy-acl.c: New file, extracted from lib/acl.c.
27823         * lib/acl.c (copy_acl): Moved function to separate file.
27824         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
27825         * modules/acl (Files): Add lib/copy-acl.c.
27826         (Makefiles.am): Augment lib_SOURCES.
27827
27828 2008-05-22  Bruno Haible  <bruno@clisp.org>
27829
27830         * modules/copy-file-tests: New file.
27831         * tests/test-copy-file.sh: New file.
27832         * tests/test-copy-file.c: New file.
27833         * tests/test-copy-file-sameacls.c: New file.
27834
27835 2008-05-22  Eric Blake  <ebb9@byu.net>
27836
27837         Avoid gcc warning.
27838         * tests/test-memcmp.c (main): Pass NULL indirectly.
27839
27840 2008-05-21  Bruno Haible  <bruno@clisp.org>
27841
27842         Add reference doc about ACLs.
27843         * doc/acl-resources.txt: New file.
27844         * doc/acl-cygwin.txt: New file.
27845
27846 2008-05-21  Bruno Haible  <bruno@clisp.org>
27847
27848         Avoid one more warning from gcc.
27849         * lib/vasnprintf.c (IF_LINT): Update comments.
27850         (VASNPRINTF): Use it also for the 'prefix' array initializer.
27851
27852 2008-05-21  Jim Meyering  <meyering@redhat.com>
27853
27854         avoid a warning from gcc
27855         * lib/vasnprintf.c (IF_LINT): Define.
27856         (scale10_round_decimal_long_double):
27857         Use it to avoid a "may be used uninitialized" warning.
27858         (scale10_round_decimal_double): Likewise.
27859
27860 2008-05-21  Simon Josefsson  <simon@josefsson.org>
27861
27862         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
27863         declared.
27864
27865 2008-05-20  Bruno Haible  <bruno@clisp.org>
27866
27867         * tests/test-memcmp.c (main): Test also the sign of the result. Test
27868         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
27869
27870 2008-05-20  Simon Josefsson  <simon@josefsson.org>
27871
27872         * modules/memcmp-tests: New file.
27873         * tests/test-memcmp.c: New file.
27874
27875 2008-05-19  Bruno Haible  <bruno@clisp.org>
27876
27877         * modules/propername (Notice, configure.ac): Put quoted "..." into
27878         --keyword option.
27879         * lib/propername.h: Update comments accordingly.
27880         Reported by Eric Blake.
27881
27882 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
27883
27884         * modules/getpass-gnu (Depends-on): Add fseeko.
27885
27886 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27887
27888         * modules/base64-tests: New file.
27889
27890 2008-05-19  Bo Borgerson <gigabo@gmail.com>
27891
27892         * lib/base64.c (base64_decode_ctx): If a decode context structure
27893         was passed in use it to ignore newlines.  If a context structure
27894         was _not_ passed in, continue to treat newlines as garbage (this
27895         is the historical behavior).  Formerly base64_decode.
27896         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27897         takes a decode context structure.
27898         * lib/base64.h (base64_decode): Macro for four-argument calls.
27899         (base64_decode_alloc): Likewise.
27900         * lib/base64.c (base64_decode_ctx): If a decode context structure
27901         was passed in use it to ignore newlines.  If a context structure
27902         was _not_ passed in, continue to treat newlines as garbage (this
27903         is the historical behavior).  Formerly base64_decode.
27904         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27905         takes a decode context structure.
27906         * lib/base64.h (base64_decode): Macro for four-argument calls.
27907         (base64_decode_alloc): Likewise.
27908
27909 2008-05-19  Jim Meyering  <meyering@redhat.com>
27910
27911         avoid a warning from gcc
27912         * lib/trim.c (IF_LINT): Define.
27913         (trim2): Use it to avoid a "may be used uninitialized" warning.
27914
27915         Fix doc typo.
27916         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
27917
27918 2008-05-19  Bruno Haible  <bruno@clisp.org>
27919
27920         * doc/glibc-functions/getpass.texi: Document limits of other
27921         implementations.
27922
27923 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27924             Bruno Haible <bruno@clisp.org>
27925
27926         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
27927
27928 2008-05-18  Bruno Haible  <bruno@clisp.org>
27929
27930         * modules/propername: New file, from GNU gettext.
27931         * lib/propername.h: New file, from GNU gettext.
27932         * lib/propername.c: New file, from GNU gettext.
27933         * MODULES.html.sh (Internationalization functions): Add propername.
27934
27935 2008-05-16  Jim Meyering  <meyering@redhat.com>
27936             Bruno Haible  <bruno@clisp.org>
27937
27938         Avoid some warnings from "gcc -Wshadow".
27939         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
27940
27941 2008-05-15  Eric Blake  <ebb9@byu.net>
27942
27943         Extend previous patch to cygwin 1.7.0.
27944         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
27945         fast implementation in cygwin >= 1.7.0.
27946         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27948
27949 2008-05-15  Bruno Haible  <bruno@clisp.org>
27950
27951         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
27952         implementation in glibc >= 2.9.
27953         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27954         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27955
27956 2008-05-15  Bruno Haible  <bruno@clisp.org>
27957
27958         * MODULES.html.sh (Internationalization functions): Remove linebreak.
27959         (Unicode string functions): Add unilbrk/*.
27960         Reported by Karl Berry.
27961
27962 2008-05-15  Eric Blake  <ebb9@byu.net>
27963
27964         Fix violation of <stdbool.h> replacement in regex.
27965         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
27966         * lib/regexec.c (re_search_internal): Likewise.
27967         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
27968
27969 2008-05-15  Jim Meyering  <meyering@redhat.com>
27970
27971         avoid distracting test output when git or cvs is not found
27972         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
27973         * tests/test-vc-list-files-git.sh: Likewise.
27974
27975 2008-05-15  Eric Blake  <ebb9@byu.net>
27976
27977         Glibc finally accepted the memmem speedup code, bugzilla #5514.
27978         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
27979         glibc version.
27980         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27981         * doc/posix-functions/strstr.texi (strstr): Likewise.
27982         * lib/str-two-way.h (MAX): Sychronize with glibc.
27983
27984 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
27985
27986         * lib/regcomp.c (optimize_utf8): Add a note on why we test
27987         opr.ctx_type.
27988         (calc_first): Initialize constraint field.
27989         (duplicate_node_closure): Use it instead of special casing ANCHORS.
27990         Fix grammar.
27991         (duplicate_node): Merge constraint field for all node types.
27992         (calc_eclosure_iter): Look at constraint field for all node types.
27993         * lib/regex_internal.c (create_cd_newstate): Don't look at
27994         opr.ctx_type.
27995
27996 2008-05-14  Bruno Haible  <bruno@clisp.org>
27997
27998         Help GCC to do better code generation.
27999         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
28000         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28001         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
28002         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
28003         Declare with attribute 'malloc' if supported.
28004
28005 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
28006
28007         use "echo STR|wc -c" rather than unportable "expr length STR"
28008         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
28009         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
28010
28011 2008-05-14  Jim Meyering  <meyering@redhat.com>
28012
28013         use dd ibs=$n count=1 ... rather than less-portable head -c$n
28014         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
28015         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
28016         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
28017         via Collin Lasse.
28018
28019 2008-05-14  Eric Blake  <ebb9@byu.net>
28020
28021         Avoid quadratic growth in gl_LIBSOURCES.
28022         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
28023         Suggested by Bruno Haible.
28024
28025         Test xmemdup0.
28026         * modules/xmemdup0-tests: New file.
28027         * tests/test-xmemdup0.c: Likewise.
28028
28029 2008-05-13  Eric Blake  <ebb9@byu.net>
28030
28031         Split xmemdup0 into its own module.
28032         * modules/xmemdup0: New file.
28033         * lib/xmemdup0.h: Likewise.
28034         * lib/xmemdup0.c: Likewise.
28035         * MODULES.html.sh (Memory management functions): Add xmemdup0.
28036         * lib/xalloc.h (xmemdup0): Remove.
28037         * lib/xmalloc.c (xmemdup0): Likewise.
28038
28039 2008-05-13  Eric Blake  <ebb9@byu.net>
28040             Bruno Haible  <bruno@clisp.org>
28041
28042         Reduce number of forks required during autoconf.
28043         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
28044         and gl_LIBSOURCES_DIR.
28045         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
28046         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
28047         m4_syscmd per file.
28048         <m4_foreach_w>: Move...
28049         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
28050
28051 2008-05-13  Eric Blake  <ebb9@byu.net>
28052
28053         * gnulib-tool: Fix various comment typos.
28054
28055 2008-05-12  Bruno Haible  <bruno@clisp.org>
28056
28057         Tailor the linebreaking algorithm.
28058         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
28059
28060 2008-05-12  Bruno Haible  <bruno@clisp.org>
28061
28062         Update to Unicode 5.0.0.
28063         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28064         LBP_JV, LBP_JT. Redistribute values.
28065         (unilbrk_table): Change size.
28066         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
28067         Unicode TR#14 rev. 22.
28068         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28069         LBP_JV, LBP_JT. Redistribute values.
28070         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
28071         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
28072         Update.
28073         * lib/unilbrk/lbrkprop1.h: Regenerated.
28074         * lib/unilbrk/lbrkprop2.h: Regenerated.
28075         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
28076         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
28077         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
28078         Likewise.
28079         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
28080         Likewise.
28081         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
28082         result.
28083         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
28084         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
28085         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
28086         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
28087         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
28088         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
28089
28090 2008-05-11  Bruno Haible  <bruno@clisp.org>
28091
28092         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
28093
28094 2008-05-11  Bruno Haible  <bruno@clisp.org>
28095
28096         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
28097         * modules/unilbrk/gen-lbrk: New file.
28098
28099 2008-05-11  Bruno Haible  <bruno@clisp.org>
28100
28101         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
28102         * m4/sha512.m4 (gl_SHA512): Likewise.
28103
28104 2008-05-11  Jim Meyering  <meyering@redhat.com>
28105
28106         New modules: crypto/sha256, crypto/sha512 (from coreutils)
28107         * modules/crypto/sha256: New file.
28108         * modules/crypto/sha512: Likewise.
28109         * lib/sha256.c: Likewise.
28110         * lib/sha256.h: Likewise.
28111         * lib/sha512.c: Likewise.
28112         * lib/sha512.h: Likewise.
28113         * lib/u64.h: Likewise.
28114         * m4/sha256.m4: Likewise.
28115         * m4/sha512.m4: Likewise.
28116         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
28117
28118 2008-05-10  Bruno Haible  <bruno@clisp.org>
28119
28120         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
28121         (Input/Output <stdio.h>): Add xprintf.
28122         (Signal handling <signal.h>): Add strsignal.
28123         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
28124         (Core language properties): Add func.
28125         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
28126         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
28127         strings.
28128         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
28129         (Input/output): New section.
28130         (File system functions): Add openat-die, stat-macros.
28131         (Networking functions): Add sockets.
28132         (Unicode string functions): Add unictype/*.
28133         (Support for building libraries and executables): Add gperf.
28134         (Support for building documentation): Add agpl-3.0.
28135         (Misc): Add nocrash.
28136
28137 2008-05-10  Bruno Haible  <bruno@clisp.org>
28138
28139         * modules/unictype/gen-ctype: New file.
28140
28141 2008-05-10  Jim Meyering  <meyering@redhat.com>
28142
28143         Make chdir-safer.c more efficient on a system with no symlinks.
28144         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
28145         also if ELOOP is zero.  Suggested by Bruno Haible.
28146
28147         Make chdir-safer.c slightly safer.
28148         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
28149         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
28150
28151         Avoid compile failure on systems without ELOOP (like mingw).
28152         * lib/chdir-safer.c (ELOOP): Define if not already defined.
28153         Reported by Bruno Haible.
28154
28155 2008-05-10  Bruno Haible  <bruno@clisp.org>
28156
28157         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
28158         (is_utf8_encoding): Use a case-insensitive comparison.
28159         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
28160         streq.
28161
28162 2008-05-10  Bruno Haible  <bruno@clisp.org>
28163
28164         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
28165         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
28166         * lib/unilbrk/ulc-common.h (iconv_string_length,
28167         iconv_string_keeping_offsets): Remove declarations.
28168         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
28169         Don't include <iconv.h>, streq.h, xsize.h.
28170         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
28171         conversion.
28172         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
28173         <iconv.h>, streq.h, xsize.h.
28174         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
28175         conversion.
28176         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
28177         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
28178         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
28179         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
28180
28181 2008-05-10  Bruno Haible  <bruno@clisp.org>
28182
28183         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
28184         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
28185
28186         * modules/unilbrk/u32-width-linebreaks-tests: New file.
28187         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
28188
28189         * modules/unilbrk/u16-width-linebreaks-tests: New file.
28190         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
28191
28192         * modules/unilbrk/u8-width-linebreaks-tests: New file.
28193         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
28194
28195         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
28196         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
28197
28198         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
28199         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
28200
28201         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
28202         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
28203
28204         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
28205         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
28206
28207 2008-05-10  Bruno Haible  <bruno@clisp.org>
28208
28209         Split up 'linebreak' module.
28210         * lib/unilbrk.h: New file, based on lib/linebreak.h.
28211         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
28212         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
28213         modifications.
28214         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
28215         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
28216         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
28217         lib/linebreak.c.
28218         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
28219         lib/linebreak.c.
28220         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
28221         lib/linebreak.c.
28222         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
28223         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
28224         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
28225         lib/linebreak.c.
28226         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
28227         lib/linebreak.c.
28228         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
28229         lib/linebreak.c.
28230         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
28231         lib/linebreak.c.
28232         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
28233         lib/linebreak.c.
28234         * modules/unilbrk/base: New file.
28235         * modules/unilbrk/tables: New file.
28236         * modules/unilbrk/u8-possible-linebreaks: New file.
28237         * modules/unilbrk/u16-possible-linebreaks: New file.
28238         * modules/unilbrk/u32-possible-linebreaks: New file.
28239         * modules/unilbrk/ulc-common: New file.
28240         * modules/unilbrk/ulc-possible-linebreaks: New file.
28241         * modules/unilbrk/u8-width-linebreaks: New file.
28242         * modules/unilbrk/u16-width-linebreaks: New file.
28243         * modules/unilbrk/u32-width-linebreaks: New file.
28244         * modules/unilbrk/ulc-width-linebreaks: New file.
28245         * lib/linebreak.h: Remove file.
28246         * lib/linebreak.c: Remove file.
28247         * m4/linebreak.m4: Remove file.
28248         * modules/linebreak: Remove file.
28249         * NEWS: Mention the changes.
28250
28251 2008-05-09  Eric Blake  <ebb9@byu.net>
28252
28253         Add xmemdup0.
28254         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
28255         implementation.
28256         * lib/xmalloc.c (xmemdup0): New C implementation.
28257
28258 2008-05-08  Bruno Haible  <bruno@clisp.org>
28259
28260         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
28261
28262 2008-05-07  Eric Blake  <ebb9@byu.net>
28263
28264         Support cross-compilation of <wctype.h>.
28265         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
28266         AC_CACHE_CHECK.
28267
28268 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
28269
28270         * build-aux/vc-list-files: Add support for bzr.
28271
28272 2008-05-03  Jim Meyering  <meyering@redhat.com>
28273
28274         avoid failed assertion with tight malloc
28275         * tests/test-getndelim2.c: Correct an off-by-one assertion.
28276
28277 2008-05-03  Simon Josefsson  <simon@josefsson.org>
28278
28279         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
28280         are needed from arpa/inet.h.
28281         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
28282         Reported by Bruno Haible.
28283
28284 2008-05-02  Jim Meyering  <meyering@redhat.com>
28285
28286         avoid compilation error on FreeBSD 6
28287         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
28288
28289 2008-05-01  Jim Meyering  <meyering@redhat.com>
28290
28291         useless-if-before-free: correct --help's exit status description
28292         * build-aux/useless-if-before-free (usage): Like grep, exit 0
28293         for one or more matches, etc.  Reported by Bruno Haible.
28294
28295         vc-list-files: make the stand-alone gnulib test work
28296         * modules/vc-list-files-tests (configure.ac):
28297         Define and AC_SUBST abs_aux_dir.
28298         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
28299         $(abs_top_srcdir) to each script and having each of them
28300         duplicate the work of setting PATH, set PATH here, using
28301         the new variable, abs_aux_dir instead.
28302         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
28303         * tests/test-vc-list-files-git.sh: Likewise.
28304         Reported by Bruno Haible.
28305
28306 2008-05-01  Bruno Haible  <bruno@clisp.org>
28307
28308         * lib/getndelim2.c (getndelim2): Fix newsize computation during
28309         reallocation. Rename 'done' to 'found_delimiter'.
28310
28311 2008-05-01  Jim Meyering  <meyering@redhat.com>
28312
28313         vc-list-files: accommodate /bin/sh like the one from Solaris 10
28314         * build-aux/vc-list-files: Use `...`, not $(...).
28315
28316 2008-04-30  Jim Meyering  <meyering@redhat.com>
28317
28318         add tests for vc-list-files
28319         * modules/vc-list-files-tests: New module.
28320         * tests/test-vc-list-files-cvs.sh: New file.
28321         * tests/test-vc-list-files-git.sh: New file.
28322
28323         avoid a warning from gcc
28324         * lib/getndelim2.c (IF_LINT): Define.
28325         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
28326
28327         vc-list-files: work properly with build-aux/cvsu, too
28328         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
28329         to all cvs-based clauses.
28330
28331         vc-list-files: work properly in the CVS+awk case, too
28332         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
28333
28334         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
28335         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
28336         take more than one file argument, so .  Add quotes, just in case $dir
28337         ever contains a shell meta-character.  Prompted by Soren Hansen in
28338         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
28339
28340 2008-04-29  Eric Blake  <ebb9@byu.net>
28341
28342         Optimize getndelim2 to use block operations when possible.
28343         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
28344         freadseek, and memchr2.
28345         * lib/getndelim2.c (getndelim2): Use them for block reads.
28346
28347 2008-04-29  Bruno Haible  <bruno@clisp.org>
28348
28349         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
28350         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28351         * modules/inet_ntop (Depends-on): Add extensions.
28352         * modules/inet_pton (Depends-on): Likewise.
28353         Reported by Simon Josefsson.
28354
28355 2008-04-29  Jim Meyering  <meyering@redhat.com>
28356
28357         When the is more than one match in a block, match all of them.
28358         * build-aux/useless-if-before-free: Iterate through each block
28359         until there are no more matches.
28360
28361         Fix broken useless-if-before-free script.
28362         * build-aux/useless-if-before-free: Fix typo: missing "?" after
28363         the expression to match cast of argument to free-like function.
28364
28365 2008-04-29  Eric Blake  <ebb9@byu.net>
28366
28367         Use new header.
28368         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
28369
28370 2008-04-29  Jim Meyering  <meyering@redhat.com>
28371
28372         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
28373         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
28374         by gnulib to exist and to declare e.g., inet_ntop.
28375         Don't include "inet_ntop.h", now removed.
28376
28377         * m4/arpa_inet_h.m4: Remove trailing blanks.
28378
28379 2008-04-29  Eric Blake  <ebb9@byu.net>
28380
28381         Silence valgrind on safe reads beyond potential array bounds.
28382         * lib/rawmemchr.valgrind: New file.
28383         * lib/strchrnul.valgrind: Likewise.
28384         * modules/rawmemchr (Files): Distribute new file.
28385         * modules/strchrnul (Files): Likewise.
28386         Suggested by Bruno Haible.
28387
28388 2008-04-29  Bruno Haible  <bruno@clisp.org>
28389
28390         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
28391         (inet_ntop, inet_pton): Change portability warning's wording.
28392         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
28393         Invoke gl_CHECK_NEXT_HEADERS.
28394         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
28395         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
28396         set ARPA_INET_H.
28397         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28398         * modules/arpa_inet (Description): No longer only for systems that
28399         lack it.
28400         (Depends-on): Add include_next.
28401         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
28402         HAVE_ARPA_INET_H.
28403
28404 2008-04-29  Jim Meyering  <meyering@redhat.com>
28405
28406         * modules/mkdir (License): Re-license as LGPLv2+.
28407
28408 2008-04-29  Bruno Haible  <bruno@clisp.org>
28409
28410         * modules/rawmemchr (Maintainer): Set to Eric.
28411         * modules/strchrnul (Maintainer): Likewise.
28412
28413 2008-04-29  Simon Josefsson  <simon@josefsson.org>
28414
28415         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
28416         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
28417
28418         * modules/arpa_inet (arpa/inet.h): Use them.
28419
28420 2008-04-28  Eric Blake  <ebb9@byu.net>
28421
28422         Test getndelim2.
28423         * modules/getndelim2-tests: New file.
28424         * tests/test-getndelim2.c: Likewise.
28425         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
28426         stream.
28427         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
28428
28429         * MODULES.html.sh: Document new module.
28430
28431 2008-04-20  Bruno Haible  <bruno@clisp.org>
28432
28433         * lib/c-stack.c (die): Use raise.
28434         * modules/c-stack (Depends-on): Add raise.
28435
28436 2008-04-28  Bruno Haible  <bruno@clisp.org>
28437
28438         Expect rpmatch to be declared.
28439         * lib/yesno.c (rpmatch): Remove declaration.
28440
28441         Declare rpmatch.
28442         * lib/stdlib.in.h (rpmatch): New declaration.
28443         * lib/rpmatch.c: Include <stdlib.h> first.
28444         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
28445         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
28446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
28447         HAVE_RPMATCH.
28448         * modules/rpmatch (Depends-on): Add stdlib, extensions.
28449         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28450         (Include): Set to <stdlib.h>.
28451         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
28452         HAVE_RPMATCH.
28453         * NEWS: Document the change.
28454
28455 2008-04-28  Bruno Haible  <bruno@clisp.org>
28456
28457         Change rpmatch to use nl_langinfo when appropriate.
28458         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
28459         (N_): New macro.
28460         (localized_pattern): New function/macro.
28461         (try): Remove match, nomatch arguments. Copy the pattern into safe
28462         memory before caching it.
28463         (rpmatch): Use localized_pattern. Add translator comments.
28464         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
28465         Suggested by Eric Blake.
28466         * modules/rpmatch (Depends-on): Add stdbool.
28467
28468 2008-04-28  Eric Blake  <ebb9@byu.net>
28469
28470         Add rawmemchr module, matching glibc.
28471         * modules/string (Makefile.am): New indicator.
28472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
28473         * lib/string.in.h (rawmemchr): Declare when appropriate.
28474         * modules/rawmemchr: New file.
28475         * m4/rawmemchr.m4: Likewise.
28476         * lib/rawmemchr.c: Likewise.
28477         * modules/rawmemchr-tests: Likewise.
28478         * tests/test-rawmemchr.c: Likewise.
28479         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
28480         module.
28481         * modules/strchrnul (Depends-on): Add rawmemchr.
28482         * lib/strchrnul.c (strchrnul): Optimize a corner case.
28483
28484         Whitespace cleanup.
28485         * tests/test-strchrnul.c: Reindent.
28486         * lib/strchrnul.c: Likewise.
28487
28488         Optimize and test strchrnul.
28489         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
28490         * modules/strchrnul-tests: New file.
28491         * tests/test-strchrnul.c: Likewise.
28492
28493         Remove intprops dependency.
28494         * modules/memchr (Depends-on): Remove intprops.
28495         * modules/memrchr (Depends-on): Likewise.
28496         * modules/memchr2 (Depends-on): Likewise.
28497         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
28498         * lib/memrchr.c (__memrchr): Likewise.
28499         * lib/memrchr2.c (memchr2): Likewise.
28500         Reported by Simon Josefsson.
28501
28502 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28503
28504         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
28505         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28506
28507 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28508
28509         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
28510
28511         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
28512
28513         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
28514
28515         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
28516         declarations.
28517         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
28518
28519         * m4/inet_pton.m4: Don't check for header files.
28520
28521         * m4/inet_ntop.m4: Don't check for header files.
28522
28523 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28524
28525         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
28526         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
28527         trigger for cygwin).
28528         Reported by Bruno Haible  <bruno@clisp.org>.
28529
28530 2008-04-28  Bruno Haible  <bruno@clisp.org>
28531
28532         * doc/posix-functions/strdup.texi: Mention mingw problem.
28533
28534 2008-04-27  Bruno Haible  <bruno@clisp.org>
28535
28536         * modules/stat-time-tests (Depends-on): Add sleep.
28537         * tests/test-stat-time.c (force_unlink): New function.
28538         (cleanup): Use it.
28539         (test_mtime): Remove the ctime related tests.
28540         (test_ctime): New function, containing the ctime related tests.
28541         (main): Call test_ctime, except on native Windows platforms.
28542
28543 2008-04-27  Bruno Haible  <bruno@clisp.org>
28544
28545         * lib/rpmatch.c (rpmatch): Add some comments.
28546         Reported by James Youngman <jay@gnu.org>.
28547
28548 2008-04-27  Bruno Haible  <bruno@clisp.org>
28549
28550         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28551         quiet NaNs.
28552
28553 2008-04-27  Bruno Haible  <bruno@clisp.org>
28554
28555         Make test-yesno.sh work on mingw.
28556         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28557         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28558         (main): Set stdin to binary mode.
28559         * modules/yesno-tests (Depends-on): Add binary-io.
28560
28561 2008-04-27  Bruno Haible  <bruno@clisp.org>
28562
28563         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28564         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28565         argument that lie outside the IEEE 854 domain.
28566         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28567         (gl_ISFINITE): Use it.
28568         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28569
28570 2008-04-27  Bruno Haible  <bruno@clisp.org>
28571
28572         Allow local renaming in config.h.
28573         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28574
28575 2008-04-27  Bruno Haible  <bruno@clisp.org>
28576
28577         * lib/memchr.c (__memchr): Change type of 'i'.
28578         * lib/memchr2.c (memchr2): Likewise.
28579
28580 2008-04-26  Eric Blake  <ebb9@byu.net>
28581         and Bruno Haible  <bruno@clisp.org>
28582
28583         Optimize and test memrchr.
28584         * modules/memrchr (Depends-on): Add intprops.
28585         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28586         * modules/memrchr-tests: New file.
28587         * tests/test-memrchr.c: New file.
28588
28589 2008-04-26  Bruno Haible  <bruno@clisp.org>
28590
28591         Add tentative support for DragonFly BSD.
28592         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28593         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28594         fp.
28595         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28596         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28597         * lib/fpurge.c (fpurge): Likewise.
28598         * lib/freadable.c (freaadable): Likewise.
28599         * lib/freadahead.c (freadahead): Likewise.
28600         * lib/freading.c (freading): Likewise.
28601         * lib/freadptr.c (freadptr): Likewise.
28602         * lib/freadseek.c (freadptrinc): Likewise.
28603         * lib/fseeko.c (fseeko): Likewise.
28604         * lib/fseterr.c (fseterr): Likewise.
28605         * lib/fwritable.c (fwritable): Likewise.
28606         * lib/fwriting.c (fwriting): Likewise.
28607
28608 2008-04-26  Bruno Haible  <bruno@clisp.org>
28609
28610         * lib/stdio-impl.h: New file.
28611         * lib/fbufmode.c: Include stdio-impl.h.
28612         (fbufmode): Use fp_, remove redundant #defines.
28613         * lib/fflush.c: Include stdio-impl.h.
28614         (clear_ungetc_buffer): Remove redundant #defines.
28615         * lib/fpurge.c: Include stdio-impl.h.
28616         (fpurge): Remove redundant #defines.
28617         * lib/freadable.c: Include stdio-impl.h.
28618         (freadable): Remove redundant #defines.
28619         * lib/freadahead.c: Include stdio-impl.h.
28620         (freadahead): Remove redundant #defines.
28621         * lib/freading.c: Include stdio-impl.h.
28622         (freading): Remove redundant #defines.
28623         * lib/freadptr.c: Include stdio-impl.h.
28624         (freadptr): Remove redundant #defines.
28625         * lib/freadseek.c: Include stdio-impl.h.
28626         (freadptrinc): Remove redundant #defines.
28627         * lib/fseeko.c: Include stdio-impl.h.
28628         (rpl_fseeko): Remove redundant #defines.
28629         * lib/fseterr.c: Include stdio-impl.h.
28630         (fseterr): Remove redundant #defines.
28631         * lib/fwritable.c: Include stdio-impl.h.
28632         (fwritable: Remove redundant #defines.
28633         * lib/fwriting.c: Include stdio-impl.h.
28634         (fwriting): Remove redundant #defines.
28635         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28636         * modules/fflush (Files): Likewise.
28637         * modules/fpurge (Files): Likewise.
28638         * modules/freadable (Files): Likewise.
28639         * modules/freadahead (Files): Likewise.
28640         * modules/freading (Files): Likewise.
28641         * modules/freadptr (Files): Likewise.
28642         * modules/freadseek (Files): Likewise.
28643         * modules/fseeko (Files): Likewise.
28644         * modules/fseterr (Files): Likewise.
28645         * modules/fwritable (Files): Likewise.
28646         * modules/fwriting (Files): Likewise.
28647
28648 2008-04-26  Bruno Haible  <bruno@clisp.org>
28649
28650         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28651         restore_seek_optimization, update_fpos_cache): New functions, extracted
28652         from rpl_fflush.
28653         (rpl_fflush): Use them.
28654         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28655         (gl_REPLACE_FFLUSH): Use it.
28656
28657 2008-04-26  Bruno Haible  <bruno@clisp.org>
28658
28659         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28660         on Solaris.
28661         * tests/test-xstrtoimax.sh: Likewise.
28662         * tests/test-xstrtoumax.sh: Likewise.
28663         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28664
28665 2008-04-26  Bruno Haible  <bruno@clisp.org>
28666
28667         * modules/memchr-tests: New file.
28668         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28669
28670 2008-04-26  Eric Blake  <ebb9@byu.net>
28671             Bruno Haible  <bruno@clisp.org>
28672
28673         * lib/memchr.c: Include intprops.h.
28674         (__memchr): Optimize parallel detection of matching bytes. Rename local
28675         variables. Add explanatory comments.
28676
28677 2008-04-26  Bruno Haible  <bruno@clisp.org>
28678
28679         Fix module 'memchr', broken since 2000-10-28.
28680         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28681
28682 2008-04-26  Bruno Haible  <bruno@clisp.org>
28683
28684         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28685         comments.
28686
28687 2008-04-25  Eric Blake  <ebb9@byu.net>
28688
28689         Use native fstatat on cygwin 1.7.0.
28690         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28691         first.
28692
28693 2008-04-23  Eric Blake  <ebb9@byu.net>
28694
28695         Improve memchr2 performance.
28696         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28697         NUL bytes.
28698         * modules/memchr2 (Depends-on): Use intprops.h.
28699
28700 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28701
28702         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28703         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28704         <blp@cs.stanford.edu>.
28705
28706 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28707
28708         * lib/arpa_inet.in.h: New file.
28709
28710         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28711         (Makefile.am): Sed in substitute header file.
28712
28713         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28714         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28715
28716         * modules/inet_ntop (configure.ac): Use
28717         gl_ARPA_INET_MODULE_INDICATOR.
28718
28719         * modules/inet_pton (configure.ac): Use
28720         gl_ARPA_INET_MODULE_INDICATOR.
28721
28722 2008-04-22  Jim Meyering  <meyering@redhat.com>
28723
28724         * modules/verify (License): Re-license as LGPLv2+.
28725
28726 2008-04-22  Simon Josefsson  <simon@josefsson.org>
28727
28728         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
28729         parameter to void* as per POSIX standard (MinGW uses char*).
28730
28731 2008-04-21  Bruno Haible  <bruno@clisp.org>
28732
28733         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
28734         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
28735         Define to replacements if REPLACE_ISWCNTRL is 1.
28736         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
28737         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
28738         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
28739         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
28740         what it fixes.
28741         * doc/posix-functions/iswalpha.texi: Likewise.
28742         * doc/posix-functions/iswblank.texi: Likewise.
28743         * doc/posix-functions/iswcntrl.texi: Likewise.
28744         * doc/posix-functions/iswdigit.texi: Likewise.
28745         * doc/posix-functions/iswgraph.texi: Likewise.
28746         * doc/posix-functions/iswlower.texi: Likewise.
28747         * doc/posix-functions/iswprint.texi: Likewise.
28748         * doc/posix-functions/iswpunct.texi: Likewise.
28749         * doc/posix-functions/iswspace.texi: Likewise.
28750         * doc/posix-functions/iswupper.texi: Likewise.
28751         * doc/posix-functions/iswxdigit.texi: Likewise.
28752         Reported by Alain Guibert.
28753
28754 2008-04-21  Bruno Haible  <bruno@clisp.org>
28755
28756         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
28757         Patch by Alain Guibert.
28758
28759 2008-04-21  Bruno Haible  <bruno@clisp.org>
28760
28761         Fix test failures on mingw.
28762         * tests/test-xstrtol.c (print_no_progname): New function.
28763         (main): Install it in error_print_progname hook.
28764         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
28765         * tests/test-xstrtoimax.sh: Likewise.
28766         * tests/test-xstrtoumax.sh: Likewise.
28767
28768 2008-04-21  Bruno Haible  <bruno@clisp.org>
28769
28770         Fix test failure on mingw.
28771         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
28772
28773 2008-04-21  Bruno Haible  <bruno@clisp.org>
28774
28775         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
28776         Actually assign a value.
28777
28778 2008-04-20  Bruno Haible  <bruno@clisp.org>
28779
28780         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
28781         take 2.
28782         * lib/canonicalize.c (canonicalize_file_name): Elide if the
28783         'canonicalize-lgpl' module is also used.
28784         * lib/canonicalize-lgpl.c: Undo last change.
28785         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
28786
28787 2008-04-20  Bruno Haible  <bruno@clisp.org>
28788
28789         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
28790         config.h. Provide _mkdir based fallback for mingw.
28791         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
28792         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
28793         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
28794         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
28795         rather than defining mkdir in config.h.
28796         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
28797         (gl_SYS_STAT_H_DEFAULTS): New macro.
28798         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
28799         HAVE_IO_H any more.
28800         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
28801         HAVE_DECL_MKDIR and HAVE_IO_H.
28802
28803 2008-04-20  Bruno Haible  <bruno@clisp.org>
28804
28805         * lib/isapipe.c: Port to native Windows platforms.
28806
28807 2008-04-20  Bruno Haible  <bruno@clisp.org>
28808
28809         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
28810
28811 2008-04-21  Eric Blake  <ebb9@byu.net>
28812
28813         Work around preprocessors that don't handle UINTMAX_MAX.
28814         * lib/memchr2.c (memchr2): Avoid embedded #if.
28815         Reported by Alain Guibert, fix suggested by Bruno Haible.
28816
28817 2008-04-21  Simon Josefsson  <simon@josefsson.org>
28818
28819         * doc/posix-functions/strftime.texi (strftime): Explain better
28820         Windows incompatibility.  Suggested by Micah Cowan
28821         <micah@cowan.name>.
28822
28823 2008-04-20  Bruno Haible  <bruno@clisp.org>
28824
28825         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
28826         unistr/u8-mblen.
28827
28828 2008-04-20  Bruno Haible  <bruno@clisp.org>
28829
28830         Fix test failure on platforms with non-GNU iconv.
28831         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
28832         (U_TO_U8): Use it, rather than u16_to_u8.
28833         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
28834         units at the end of the input string.
28835         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
28836
28837 2008-04-20  Bruno Haible  <bruno@clisp.org>
28838
28839         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
28840         when the resulting length is 0.
28841         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
28842
28843 2008-04-20  Bruno Haible  <bruno@clisp.org>
28844
28845         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
28846         works.
28847         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
28848
28849 2008-04-20  Bruno Haible  <bruno@clisp.org>
28850
28851         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
28852         * modules/tsearch-tests (configure.ac): Test for initstate function.
28853
28854 2008-04-20  Bruno Haible  <bruno@clisp.org>
28855
28856         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
28857         for nlink_t if missing.
28858         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
28859
28860 2008-04-19  Bruno Haible  <bruno@clisp.org>
28861
28862         Work around snprintf bug on Linux libc5.
28863         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
28864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28865         gl_SNPRINTF_SIZE1.
28866         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28867         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
28868         that test failed.
28869         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
28870         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
28871         * modules/snprintf (Files): Add m4/printf.m4.
28872         * modules/vsnprintf (Files): Likewise.
28873         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
28874         * doc/posix-functions/vsnprintf.texi: Likewise.
28875
28876 2008-04-19  Bruno Haible  <bruno@clisp.org>
28877
28878         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
28879         from 0.0058 to less than 10^-7.
28880
28881 2008-04-19  Bruno Haible  <bruno@clisp.org>
28882
28883         Fix rounding when a precision is given.
28884         * lib/vasnprintf.c (is_borderline): New function.
28885         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
28886         9...9x.
28887         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
28888         %e, %g.
28889         * tests/test-vasprintf-posix.c (test_function): Likewise.
28890         * tests/test-snprintf-posix.h (test_function): Likewise.
28891         * tests/test-sprintf-posix.h (test_function): Likewise.
28892         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
28893         * tests/test-printf-posix.h (test_function): Likewise.
28894         * tests/test-printf-posix.output: Update.
28895         Reported by John Darrington <john@darrington.wattle.id.au> via
28896         Ben Pfaff <blp@cs.stanford.edu>.
28897
28898 2008-04-18  Simon Josefsson  <simon@josefsson.org>
28899
28900         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
28901         Suggested by Bruno Haible <bruno@clisp.org>.
28902
28903 2008-04-17  Bruno Haible  <bruno@clisp.org>
28904
28905         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
28906         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
28907         implementation.
28908         Patch by Bruce Merry <bmerry@gmail.com>.
28909
28910 2008-04-17  Simon Josefsson  <simon@josefsson.org>
28911
28912         * doc/posix-functions/strftime.texi (strftime): Mention that %e
28913         doesn't work under Windows.
28914
28915 2008-04-16  Bruno Haible  <bruno@clisp.org>
28916
28917         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
28918         New macros.
28919         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
28920         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
28921         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
28922         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
28923         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
28924         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
28925         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
28926         macros.
28927         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
28928         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
28929         Northern Sotho, Uighur.
28930
28931 2008-04-16  Bruno Haible  <bruno@clisp.org>
28932
28933         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
28934         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
28935         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
28936         Reported by Daniel Bergström <daniel@octocode.com>.
28937
28938 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
28939             Bruno Haible  <bruno@clisp.org>
28940
28941         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
28942         function.
28943         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
28944         New functions, mostly extracted from gl_locale_name_default.
28945         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
28946
28947 2008-04-16  Eric Blake  <ebb9@byu.net>
28948
28949         Adjust strtod detection to catch glibc 2.7 bug.
28950         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
28951         Reported by John Gatewood Ham.
28952
28953 2008-04-16  Bruno Haible  <bruno@clisp.org>
28954
28955         Add tentative support for Linux libc5.
28956         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
28957         * lib/fpurge.c (fpurge): Likewise.
28958         * lib/freadable.c (freadable): Likewise.
28959         * lib/freadahead.c (freadahead): Likewise.
28960         * lib/freading.c (freading): Likewise.
28961         * lib/freadptr.c (freadptr): Likewise.
28962         * lib/freadseek.c (freadptrinc): Likewise.
28963         * lib/fseeko.c (rpl_fseeko): Likewise.
28964         * lib/fseterr.c (fseterr): Likewise.
28965         * lib/fwritable.c (fwritable): Likewise.
28966         * lib/fwriting.c (fwriting): Likewise.
28967         Reported by Alain Guibert <alguibert+bts@free.fr>.
28968
28969 2008-04-15  Bruno Haible  <bruno@clisp.org>
28970
28971         * modules/mathl (configure.ac): Define module indicator.
28972
28973 2008-04-15  Bruno Haible  <bruno@clisp.org>
28974
28975         * lib/logl.c (logl): Remove unused variables.
28976
28977 2008-04-15  Bruno Haible  <bruno@clisp.org>
28978
28979         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
28980         fails.
28981
28982 2008-04-15  Bruno Haible  <bruno@clisp.org>
28983
28984         * lib/trim.c (trim2): Fix argument of isspace() macro.
28985
28986 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
28987
28988         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
28989         to 0.
28990         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
28991
28992 2008-04-14  Bruno Haible  <bruno@clisp.org>
28993
28994         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
28995         AC_LANG_PROGRAM argument.
28996         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
28997         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
28998         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28999         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29000         * m4/math_h.m4 (gl_MATH_H): Likewise.
29001         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
29002         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29003         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29004         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
29005         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29006         * m4/regex.m4 (gl_REGEX): Likewise.
29007         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
29008         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
29009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29010         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
29011         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29012         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29013         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29014         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29015
29016 2008-04-14  Jim Meyering  <meyering@redhat.com>
29017
29018         test-strtod: fix typos: s/abs/fabs/
29019         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
29020
29021 2008-04-13  Bruno Haible  <bruno@clisp.org>
29022
29023         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
29024         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
29025         module is also used and while not building the reloc-wrapper.
29026
29027 2008-04-13  Bruno Haible  <bruno@clisp.org>
29028
29029         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
29030
29031 2008-04-13  Bruno Haible  <bruno@clisp.org>
29032
29033         Fix AIX compilation failure introduced on 2008-04-02.
29034         * tests/test-frexp.c (exp): Undefine before redefining.
29035         * tests/test-frexpl.c (exp): Likewise.
29036
29037 2008-04-13  Bruno Haible  <bruno@clisp.org>
29038
29039         Work around a HP-UX stdio bug.
29040         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
29041         * tests/test-ftello.c (main): Likewise.
29042         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
29043         * doc/posix-functions/ftello.texi: Likewise.
29044
29045 2008-04-13  Bruno Haible  <bruno@clisp.org>
29046
29047         Make test-signbit pass on HP-UX/hppa.
29048         * tests/test-signbit.c (minus_zerol): New variable.
29049         (test_signbitl): Use it.
29050
29051 2008-04-13  Bruno Haible  <bruno@clisp.org>
29052
29053         Make truncl work on OSF/1 4.0.
29054         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
29055         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29056         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
29058         HAVE_DECL_TRUNCL.
29059         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
29060         HAVE_DECL_TRUNCL.
29061         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
29062
29063 2008-04-13  Bruno Haible  <bruno@clisp.org>
29064
29065         * lib/unictype.h: Remove trailing comma from enumeration definitions.
29066
29067 2008-04-13  Bruno Haible  <bruno@clisp.org>
29068
29069         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
29070         expression, so as to avoid HP-UX 11 cc compiler bug.
29071
29072 2008-04-13  Bruno Haible  <bruno@clisp.org>
29073
29074         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
29075
29076 2008-04-13  Bruno Haible  <bruno@clisp.org>
29077
29078         * lib/git-merge-changelog.c: Remove empty declaration outside of
29079         functions.
29080
29081 2008-04-13  Bruno Haible  <bruno@clisp.org>
29082
29083         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
29084
29085 2008-04-13  Bruno Haible  <bruno@clisp.org>
29086
29087         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
29088         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
29089         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
29090         also if it exists but lacks definitions of the SHUT_* macros.
29091         * modules/sys_socket (Description): Update.
29092         Reported by Elbert Pol <e.pol@chello.nl>.
29093
29094 2008-04-13  Bruno Haible  <bruno@clisp.org>
29095
29096         * lib/localcharset.c (OS2): Don't redefine if already defined.
29097         Reported by Elbert Pol <e.pol@chello.nl>.
29098
29099 2008-04-13  Bruno Haible  <bruno@clisp.org>
29100
29101         * lib/binary-io.h [__EMX__]: Include <io.h>.
29102         Reported by Elbert Pol <e.pol@chello.nl>.
29103
29104 2008-04-12  Bruno Haible  <bruno@clisp.org>
29105
29106         * lib/fpucw.h: Enable the definitions also for x86_64.
29107         Needed for NetBSD/x86_64.
29108         Reported by Thomas Klausner <tk@giga.or.at>.
29109
29110 2008-04-12  Bruno Haible  <bruno@clisp.org>
29111
29112         * tests/test-strtod.c: Include isnand.h.
29113         (main): Use isnand instead of isnan.
29114         Reported by Jim Meyering.
29115
29116 2008-04-12  Bruno Haible  <bruno@clisp.org>
29117
29118         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
29119         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29120
29121 2008-04-12  Jim Meyering  <meyering@redhat.com>
29122
29123         * m4/math_h.m4 (gl_MATH_H): Fix typos.
29124
29125 2008-04-12  Bruno Haible  <bruno@clisp.org>
29126
29127         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
29128         Reported by Elbert Pol <e.pol@chello.nl>.
29129
29130 2008-04-12  Eric Blake  <ebb9@byu.net>
29131
29132         Work around Solaris 10 math.h bug.
29133         * m4/math_h.m4 (gl_MATH_H): Check for bug.
29134         (gl_MATH_H_DEFAULTS): Set up default.
29135         * modules/math (Makefile.am): Replace new indicators.
29136         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
29137         * tests/test-math.c (main): Test this.
29138         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
29139         * doc/posix-headers/math.texi (math.h): Mention bug.
29140         Reported by Nelson H. F. Beebe and Jim Meyering.
29141
29142 2008-04-11  Bruno Haible  <bruno@clisp.org>
29143
29144         Adapt to future versions of Apple GCC.
29145         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
29146         Reported by Peter O'Gorman <peter@pogma.com>.
29147
29148 2008-04-11  Bruno Haible  <bruno@clisp.org>
29149
29150         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
29151
29152 2008-04-11  Bruno Haible  <bruno@clisp.org>
29153
29154         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
29155
29156         * modules/getaddrinfo-tests (Makefile.am): Define
29157         test_getaddrinfo_LDADD.
29158
29159 2008-04-11  Bruno Haible  <bruno@clisp.org>
29160
29161         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
29162         (init): Fix syntax error.
29163         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
29164         is declared.
29165
29166 2008-04-11  Bruno Haible  <bruno@clisp.org>
29167
29168         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
29169         * modules/glob (Depends-on): Add stdbool.
29170
29171 2008-04-11  Bruno Haible  <bruno@clisp.org>
29172
29173         * lib/trim.c: Include <string.h>.
29174
29175 2008-04-11  Eric Blake  <ebb9@byu.net>
29176
29177         Avoid compile failure on OS/2.
29178         * lib/regex_internal.h (internal_function): Disable optimization
29179         on OS/2 (__EMX__), where it caused compiler error.
29180         Reported by Elbert Pol.
29181
29182 2008-04-11  Bruno Haible  <bruno@clisp.org>
29183
29184         Flush the standard error stream before aborting. Needed on mingw.
29185         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
29186         * tests/test-array_list.c (ASSERT): Likewise.
29187         * tests/test-array_oset.c (ASSERT): Likewise.
29188         * tests/test-avltree_list.c (ASSERT): Likewise.
29189         * tests/test-avltree_oset.c (ASSERT): Likewise.
29190         * tests/test-avltreehash_list.c (ASSERT): Likewise.
29191         * tests/test-binary-io.c (ASSERT): Likewise.
29192         * tests/test-byteswap.c (ASSERT): Likewise.
29193         * tests/test-c-ctype.c (ASSERT): Likewise.
29194         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
29195         * tests/test-c-strcasestr.c (ASSERT): Likewise.
29196         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
29197         * tests/test-c-strstr.c (ASSERT): Likewise.
29198         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
29199         * tests/test-canonicalize.c (ASSERT): Likewise.
29200         * tests/test-carray_list.c (ASSERT): Likewise.
29201         * tests/test-ceilf1.c (ASSERT): Likewise.
29202         * tests/test-ceilf2.c (ASSERT): Likewise.
29203         * tests/test-ceill.c (ASSERT): Likewise.
29204         * tests/test-count-one-bits.c (ASSERT): Likewise.
29205         * tests/test-fbufmode.c (ASSERT): Likewise.
29206         * tests/test-fflush2.c (ASSERT): Likewise.
29207         * tests/test-floorf1.c (ASSERT): Likewise.
29208         * tests/test-floorf2.c (ASSERT): Likewise.
29209         * tests/test-floorl.c (ASSERT): Likewise.
29210         * tests/test-fopen.c (ASSERT): Likewise.
29211         * tests/test-fpending.c (ASSERT): Likewise.
29212         * tests/test-fprintf-posix.c (ASSERT): Likewise.
29213         * tests/test-fpurge.c (ASSERT): Likewise.
29214         * tests/test-freadable.c (ASSERT): Likewise.
29215         * tests/test-freadahead.c (ASSERT): Likewise.
29216         * tests/test-freading.c (ASSERT): Likewise.
29217         * tests/test-freadptr.c (ASSERT): Likewise.
29218         * tests/test-freadptr2.c (ASSERT): Likewise.
29219         * tests/test-freadseek.c (ASSERT): Likewise.
29220         * tests/test-freopen.c (ASSERT): Likewise.
29221         * tests/test-frexp.c (ASSERT): Likewise.
29222         * tests/test-frexpl.c (ASSERT): Likewise.
29223         * tests/test-fseek.c (ASSERT): Likewise.
29224         * tests/test-fseeko.c (ASSERT): Likewise.
29225         * tests/test-fstrcmp.c (ASSERT): Likewise.
29226         * tests/test-ftell.c (ASSERT): Likewise.
29227         * tests/test-ftello.c (ASSERT): Likewise.
29228         * tests/test-func.c (ASSERT): Likewise.
29229         * tests/test-fwritable.c (ASSERT): Likewise.
29230         * tests/test-fwriting.c (ASSERT): Likewise.
29231         * tests/test-getdelim.c (ASSERT): Likewise.
29232         * tests/test-getline.c (ASSERT): Likewise.
29233         * tests/test-i-ring.c (ASSERT): Likewise.
29234         * tests/test-iconv-utf.c (ASSERT): Likewise.
29235         * tests/test-iconv.c (ASSERT): Likewise.
29236         * tests/test-isfinite.c (ASSERT): Likewise.
29237         * tests/test-isnand.c (ASSERT): Likewise.
29238         * tests/test-isnanf.c (ASSERT): Likewise.
29239         * tests/test-isnanl.h (ASSERT): Likewise.
29240         * tests/test-ldexpl.c (ASSERT): Likewise.
29241         * tests/test-linked_list.c (ASSERT): Likewise.
29242         * tests/test-linkedhash_list.c (ASSERT): Likewise.
29243         * tests/test-localename.c (ASSERT): Likewise.
29244         * tests/test-lseek.c (ASSERT): Likewise.
29245         * tests/test-mbscasecmp.c (ASSERT): Likewise.
29246         * tests/test-mbscasestr1.c (ASSERT): Likewise.
29247         * tests/test-mbscasestr2.c (ASSERT): Likewise.
29248         * tests/test-mbscasestr3.c (ASSERT): Likewise.
29249         * tests/test-mbscasestr4.c (ASSERT): Likewise.
29250         * tests/test-mbschr.c (ASSERT): Likewise.
29251         * tests/test-mbscspn.c (ASSERT): Likewise.
29252         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
29253         * tests/test-mbspbrk.c (ASSERT): Likewise.
29254         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
29255         * tests/test-mbsrchr.c (ASSERT): Likewise.
29256         * tests/test-mbsspn.c (ASSERT): Likewise.
29257         * tests/test-mbsstr1.c (ASSERT): Likewise.
29258         * tests/test-mbsstr2.c (ASSERT): Likewise.
29259         * tests/test-mbsstr3.c (ASSERT): Likewise.
29260         * tests/test-memchr2.c (ASSERT): Likewise.
29261         * tests/test-memmem.c (ASSERT): Likewise.
29262         * tests/test-open.c (ASSERT): Likewise.
29263         * tests/test-printf-frexp.c (ASSERT): Likewise.
29264         * tests/test-printf-frexpl.c (ASSERT): Likewise.
29265         * tests/test-printf-posix.c (ASSERT): Likewise.
29266         * tests/test-quotearg.c (ASSERT): Likewise.
29267         * tests/test-rbtree_list.c (ASSERT): Likewise.
29268         * tests/test-rbtree_oset.c (ASSERT): Likewise.
29269         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
29270         * tests/test-round1.c (ASSERT): Likewise.
29271         * tests/test-roundf1.c (ASSERT): Likewise.
29272         * tests/test-roundl.c (ASSERT): Likewise.
29273         * tests/test-signbit.c (ASSERT): Likewise.
29274         * tests/test-sleep.c (ASSERT): Likewise.
29275         * tests/test-snprintf-posix.c (ASSERT): Likewise.
29276         * tests/test-snprintf.c (ASSERT): Likewise.
29277         * tests/test-sprintf-posix.c (ASSERT): Likewise.
29278         * tests/test-stat-time.c (ASSERT): Likewise.
29279         * tests/test-strcasestr.c (ASSERT): Likewise.
29280         * tests/test-strerror.c (ASSERT): Likewise.
29281         * tests/test-striconv.c (ASSERT): Likewise.
29282         * tests/test-striconveh.c (ASSERT): Likewise.
29283         * tests/test-striconveha.c (ASSERT): Likewise.
29284         * tests/test-strsignal.c (ASSERT): Likewise.
29285         * tests/test-strstr.c (ASSERT): Likewise.
29286         * tests/test-strtod.c (ASSERT): Likewise.
29287         * tests/test-trunc1.c (ASSERT): Likewise.
29288         * tests/test-trunc2.c (ASSERT): Likewise.
29289         * tests/test-truncf1.c (ASSERT): Likewise.
29290         * tests/test-truncf2.c (ASSERT): Likewise.
29291         * tests/test-truncl.c (ASSERT): Likewise.
29292         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
29293         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
29294         * tests/test-vasnprintf.c (ASSERT): Likewise.
29295         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
29296         * tests/test-vasprintf.c (ASSERT): Likewise.
29297         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
29298         * tests/test-vprintf-posix.c (ASSERT): Likewise.
29299         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
29300         * tests/test-vsnprintf.c (ASSERT): Likewise.
29301         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
29302         * tests/test-wcwidth.c (ASSERT): Likewise.
29303         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
29304         * tests/test-xprintf-posix.c (ASSERT): Likewise.
29305         * tests/test-xvasprintf.c (ASSERT): Likewise.
29306         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
29307         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
29308         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
29309         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
29310         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
29311         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
29312         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
29313         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
29314         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
29315         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
29316         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
29317         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
29318         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
29319         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
29320         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
29321         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
29322         * tests/unictype/test-block_list.c (ASSERT): Likewise.
29323         * tests/unictype/test-block_of.c (ASSERT): Likewise.
29324         * tests/unictype/test-block_test.c (ASSERT): Likewise.
29325         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
29326         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
29327         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
29328         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
29329         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
29330         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
29331         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
29332         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
29333         * tests/unictype/test-combining.c (ASSERT): Likewise.
29334         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
29335         * tests/unictype/test-digit.c (ASSERT): Likewise.
29336         * tests/unictype/test-mirror.c (ASSERT): Likewise.
29337         * tests/unictype/test-numeric.c (ASSERT): Likewise.
29338         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
29339         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
29340         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
29341         * tests/unictype/test-scripts.c (ASSERT): Likewise.
29342         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
29343         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
29344         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
29345         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
29346         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
29347         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
29348         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
29349         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
29350         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
29351         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
29352         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
29353         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
29354         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
29355         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
29356         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
29357         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
29358         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
29359         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
29360         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
29361         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
29362         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
29363         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
29364         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
29365         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
29366         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
29367         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
29368         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
29369         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
29370         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
29371         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
29372         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
29373         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
29374         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
29375         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
29376         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
29377         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
29378         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
29379         Reported by Eric Blake.
29380
29381 2008-04-11  Bruno Haible  <bruno@clisp.org>
29382
29383         * lib/wchar.in.h: Tweak comment.
29384
29385 2008-04-11  Bruno Haible  <bruno@clisp.org>
29386
29387         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
29388         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
29389         gl_COMMON.
29390         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
29391
29392 2008-04-11  Bruno Haible  <bruno@clisp.org>
29393
29394         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
29395
29396 2008-04-11  Simon Josefsson  <simon@josefsson.org>
29397
29398         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
29399         of attempting to use non-existing /dev/*random.  Based on patch
29400         from Adam Strzelecki <ono@java.pl> in
29401         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
29402
29403 2008-04-08  Bruno Haible  <bruno@clisp.org>
29404
29405         Add tentative support for emx+gcc.
29406         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
29407         * lib/fpurge.c (fpurge): Likewise.
29408         * lib/freadable.c (freadable): Likewise.
29409         * lib/freadahead.c (freadahead): Likewise.
29410         * lib/freading.c (freading): Likewise.
29411         * lib/freadptr.c (freadptr): Likewise.
29412         * lib/freadseek.c (freadptrinc): Likewise.
29413         * lib/fseeko.c (rpl_fseeko): Likewise.
29414         * lib/fseterr.c (fseterr): Likewise.
29415         * lib/fwritable.c (fwritable): Likewise.
29416         * lib/fwriting.c (fwriting): Likewise.
29417         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
29418
29419 2008-04-09  Eric Blake  <ebb9@byu.net>
29420
29421         Avoid some autoconf warnings.
29422         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
29423         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
29424         * m4/afs.m4 (gl_AFS): Likewise.
29425         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
29426         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
29427         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29428         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
29429         (gl_INTEGER_TYPE_SUFFIX): Likewise.
29430         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
29431         (AC_CHECK_DECLS_ONCE): Likewise.
29432         Rename file...
29433         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
29434         gnulib-tool requires autoconf 2.59 or better.
29435         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
29436
29437 2008-04-08  Eric Blake  <ebb9@byu.net>
29438
29439         Use 'git describe --match' if present (added in git 1.5.5).
29440         * build-aux/git-version-gen: Limit result to tags that match 'v*'
29441         if possible.
29442
29443 2008-04-08  Bruno Haible  <bruno@clisp.org>
29444
29445         Add tentative support for OpenServer.
29446         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
29447         _ptr, _cnt.
29448         * lib/fpurge.c (fpurge): Likewise.
29449         * lib/freadable.c (freadable): Likewise.
29450         * lib/freadahead.c (freadahead): Likewise.
29451         * lib/freading.c (freading): Likewise.
29452         * lib/freadptr.c (freadptr): Likewise.
29453         * lib/freadseek.c (freadptrinc): Likewise.
29454         * lib/fseeko.c (rpl_fseeko): Likewise.
29455         * lib/fseterr.c (fseterr): Likewise.
29456         * lib/fwritable.c (fwritable): Likewise.
29457         * lib/fwriting.c (fwriting): Likewise.
29458         Reported by Roger Cornelius <rac@tenzing.org> and
29459         Brian K. White <brian@aljex.com>.
29460
29461 2008-04-06  Jim Meyering  <meyering@redhat.com>
29462
29463         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
29464
29465 2008-04-06  Bruno Haible  <bruno@clisp.org>
29466
29467         Avoid possible error with non-ASCII bytes in UTF-8 locales.
29468         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
29469         * tests/test-printf-posix.sh: Likewise.
29470         * tests/test-vfprintf-posix.sh: Likewise.
29471         * tests/test-vprintf-posix.sh: Likewise.
29472         * tests/test-xprintf-posix.sh: Likewise.
29473
29474 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29475
29476         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
29477         hide error from 'ls', needed on OS/2.
29478         Report by Elbert Pol <elbert.pol@gmail.com>.
29479
29480 2008-04-04  Eric Blake  <ebb9@byu.net>
29481
29482         Make test-fseeko.c failures meaningful.
29483         * tests/test-fseeko.c: Print line number on failure.
29484         * tests/test-fseek.c: Likewise.
29485         Reported by Nelson H. F. Beebe.
29486
29487         Improve strtod bug detection check.
29488         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
29489         required for Solaris 10.
29490         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
29491
29492 2008-04-04  Bruno Haible  <bruno@clisp.org>
29493
29494         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
29495         by m4/setenv.m4.
29496
29497 2008-04-03  Eric Blake  <ebb9@byu.net>
29498
29499         Ensure sane .version contents.
29500         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
29501         version string.
29502         * build-aux/git-version-gen: Improve documentation.
29503
29504         Make GNU make output nicer.
29505         * top/GNUmakefile [!_have-Makefile]: Add dependency on
29506         MAKECMDGOALS to enforce message for all command line targets.  Set
29507         srcdir for use in maint.mk.
29508
29509         Another maintainer tweak.
29510         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
29511         a target that regenerates version.
29512
29513 2008-04-03  Jim Meyering  <meyering@redhat.com>
29514
29515         vc-list-files: don't cause coreutils "make po-check" failure
29516         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
29517
29518 2008-04-03  Eric Blake  <ebb9@byu.net>
29519
29520         Allow VPATH usage of vc-list-files.
29521         * build-aux/vc-list-files (scriptversion): Add timestamp.
29522         (options): Add --help, --version, -C.
29523         (CVS): Support installed cvsu.
29524
29525 2008-04-02  Bruno Haible  <bruno@clisp.org>
29526
29527         Avoid some "statement with no effect" warnings from gcc.
29528         * tests/test-wctype.c (main): Explicitly ignore unused values.
29529         Reported by Jim Meyering.
29530
29531 2008-04-02  Jim Meyering  <meyering@redhat.com>
29532
29533         Avoid some warnings from "gcc -Wshadow".
29534         * tests/test-frexp.c (exp): Define to a different identifier.
29535         * tests/test-frexpl.c (exp): Likewise.
29536
29537 2008-04-03  Jim Meyering  <meyering@redhat.com>
29538
29539         bootstrap: remove dangling *.[ch] symlinks from lib
29540         * build-aux/bootstrap [dangling symlink removal]: Move find's
29541         -depth option to precede all others, to avoid a warning.
29542         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29543
29544 2008-04-02  Bruno Haible  <bruno@clisp.org>
29545
29546         Avoid some warnings from "gcc -Wshadow".
29547         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29548         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29549         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29550         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29551         Reported by Jim Meyering.
29552
29553 2008-04-01  Bruno Haible  <bruno@clisp.org>
29554
29555         Fix test to work on IRIX 6.5 with cc.
29556         * tests/test-math.c (numeric_equal): New function.
29557         (main): Use it.
29558
29559 2008-04-01  Bruno Haible  <bruno@clisp.org>
29560
29561         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29562
29563 2008-04-01  Bruno Haible  <bruno@clisp.org>
29564
29565         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29566         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29567         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29568         (Depends-on): Remove math.
29569
29570         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29571         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29572         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29573         (Depends-on): Remove math.
29574
29575         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29576         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29577         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29578         (Depends-on): Remove math.
29579         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29580         (Depends-on): Remove math.
29581
29582         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29583         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29584         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29585         (Depends-on): Remove math.
29586         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29587         (Depends-on): Remove math.
29588
29589         * tests/test-round1.c: Include nan.h.
29590         (main): Use NaNd instead of NAN.
29591         * modules/round-tests (Files): Add tests/nan.h.
29592
29593         * tests/test-trunc1.c: Include nan.h.
29594         (main): Use NaNd instead of NAN.
29595         * modules/trunc-tests (Files): Add tests/nan.h.
29596
29597         * tests/test-roundf1.c: Include nan.h.
29598         (main): Use NaNf instead of NAN.
29599         * modules/roundf-tests (Files): Add tests/nan.h.
29600
29601         * tests/test-truncf1.c: Include nan.h.
29602         (main): Use NaNf instead of NAN.
29603         * modules/truncf-tests (Files): Add tests/nan.h.
29604
29605         * tests/test-ceilf1.c: Include nan.h.
29606         (main): Use NaNf instead of NAN.
29607         * modules/ceilf-tests (Files): Add tests/nan.h.
29608
29609         * tests/test-floorf1.c: Include nan.h.
29610         (main): Use NaNf instead of NAN.
29611         * modules/floorf-tests (Files): Add tests/nan.h.
29612
29613         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29614         (main): Use NaNf instead of NAN.
29615         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29616
29617         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29618         (main): Use NaNd instead of NAN.
29619         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29620
29621         * tests/test-frexp.c: Include nan.h.
29622         (main): Use NaNd instead of NAN.
29623         * modules/frexp-tests (Files): Add tests/nan.h.
29624
29625         * lib/isnan.c: Don't include <math.h>.
29626         (FUNC): Don't use NAN macro.
29627         * modules/isnand-nolibm (Depends-on): Remove math.
29628         * modules/isnanf-nolibm (Depends-on): Remove math.
29629         * modules/isnanl (Depends-on): Remove math.
29630         * modules/isnanl-nolibm (Depends-on): Remove math.
29631
29632         * tests/nan.h: New file.
29633
29634 2008-04-01  Eric Blake  <ebb9@byu.net>
29635
29636         Fix typos.
29637         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29638         values to be the right type.
29639
29640         For now, cater to gnulib strtod inaccuracies.
29641         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29642         fractional results.  While not as nice from a QoI perspective, it
29643         is a quicker patch than correctly implementing decimal to binary
29644         rounding.
29645
29646 2008-03-31  Eric Blake  <ebb9@byu.net>
29647
29648         Guarantee a definition of NAN.
29649         * lib/math.in.h (NAN): Define if missing.
29650         * tests/test-math.c (main): Test it.
29651         * doc/posix-headers/math.texi (math.h): Document this.
29652         * lib/isnan.c (rpl_isnand): Use it.
29653         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29654         * tests/test-floorf1.c (NaN): Likewise.
29655         * tests/test-frexp.c (NaN): Likewise.
29656         * tests/test-isnand.c (NaN): Likewise.
29657         * tests/test-isnanf.c (NaN): Likewise.
29658         * tests/test-round1.c (NaN): Likewise.
29659         * tests/test-roundf1.c (NaN): Likewise.
29660         * tests/test-snprintf-posix.h (NaN): Likewise.
29661         * tests/test-sprintf-posix.h (NaN): Likewise.
29662         * tests/test-trunc1.c (NaN): Likewise.
29663         * tests/test-truncf1.c (NaN): Likewise.
29664         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29665         * tests/test-vasprintf-posix.c (NaN): Likewise.
29666         * modules/isnand-nolibm (Depends-on): Add math.
29667         * modules/isnanf-nolibm (Depends-on): Likewise.
29668         * modules/isnanl (Depends-on): Likewise.
29669         * modules/isnanl-nolibm (Depends-on): Likewise.
29670         * modules/snprintf-posix-tests (Depends-on): Likewise.
29671         * modules/sprintf-posix-tests (Depends-on): Likewise.
29672         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29673         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29674         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29675         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29676
29677 2008-03-31  Bruno Haible  <bruno@clisp.org>
29678
29679         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29680         * doc/posix-functions/strtod.texi: Likewise.
29681
29682 2008-03-31  Bruno Haible  <bruno@clisp.org>
29683
29684         * tests/test-strtod.c (main): Don't use C99 syntax.
29685
29686 2008-03-31  Bruno Haible  <bruno@clisp.org>
29687
29688         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29689         Reported by Eric Blake.
29690
29691 2008-03-31  Jim Meyering  <meyering@redhat.com>
29692
29693         Don't compare actual signbit return values.
29694         * tests/test-strtod.c (main): Rather, compare only their
29695         zero/non-zero nature.
29696
29697 2008-03-31  Eric Blake  <ebb9@byu.net>
29698
29699         More strtod documentation.
29700         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29701         failures as distinct bugs.
29702
29703 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29704
29705         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29706         Problem reported by Erik Benada in
29707         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29708
29709 2008-03-30  Bruno Haible  <bruno@clisp.org>
29710
29711         * tests/test-strtod.c: Add comments about which assertion fails on which
29712         platform.
29713         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29714
29715 2008-03-30  Eric Blake  <ebb9@byu.net>
29716
29717         Test signbit behavior on zeros.
29718         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29719         (test_signbitd, test_signbitl): Likewise.
29720
29721         More strtod touchups.
29722         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
29723         sign of negative underflow, for now.  Use .5, not .1.
29724         * doc/posix-functions/strtod.texi (strtod): Mention these
29725         limitations.
29726         Reported by Jim Meyering.
29727
29728 2008-03-30  Bruno Haible  <bruno@clisp.org>
29729
29730         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
29731         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
29732
29733 2008-03-30  Bruno Haible  <bruno@clisp.org>
29734
29735         Avoid failure when attempting to return empty iconv results on some
29736         platforms.
29737         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
29738         allocation, don't report ENOMEM when the resulting string is empty.
29739
29740 2008-03-30  Bruno Haible  <bruno@clisp.org>
29741
29742         Fix buffer overrun.
29743         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
29744         Don't consider the width for tmp_length. Check count against tmp_length
29745         before doing the padding. Ensure enough allocation during padding.
29746
29747 2008-03-30  Eric Blake  <ebb9@byu.net>
29748
29749         strtod touchups.
29750         * lib/strtod.c (strtod): Avoid compiler warnings.
29751         Reported by Jim Meyering.
29752
29753 2008-03-30  Bruno Haible  <bruno@clisp.org>
29754
29755         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29756         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
29757         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
29758         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
29759         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
29760         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
29761         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
29762         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
29763
29764         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
29765         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
29766         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
29767         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
29768         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
29769         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
29770         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
29771         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
29772
29773         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
29774         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
29775         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
29776         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
29777         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
29778         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
29779         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
29780         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
29781
29782         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
29783         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
29784
29785         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
29786         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
29787
29788         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
29789         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
29790
29791         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
29792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
29793         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
29794
29795         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
29796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
29797         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
29798
29799         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
29800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
29801         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
29802
29803         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
29804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
29805         * modules/vasprintf (Depends-on): Add EOVERFLOW.
29806
29807         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
29808         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
29809         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
29810         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
29811         (Depends-on): Add EOVERFLOW.
29812         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
29813         (Depends-on): Add EOVERFLOW.
29814         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29815         (Depends-on): Add EOVERFLOW.
29816         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29817         (Depends-on): Add EOVERFLOW.
29818         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29819         (Depends-on): Add EOVERFLOW.
29820         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29821         (Depends-on): Add EOVERFLOW.
29822         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29823         (Depends-on): Add EOVERFLOW.
29824         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29825         (Depends-on): Add EOVERFLOW.
29826
29827         * lib/sprintf.c (EOVERFLOW): Remove fallback.
29828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
29829         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
29830
29831         * lib/snprintf.c (EOVERFLOW): Remove fallback.
29832         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
29833         * modules/snprintf (Depends-on): Add EOVERFLOW.
29834
29835         * lib/poll.c (EOVERFLOW): Remove fallback.
29836         * modules/poll (Depends-on): Add EOVERFLOW.
29837
29838         * lib/getugroups.c (EOVERFLOW): Remove fallback.
29839         * modules/getugroups (Depends-on): Add EOVERFLOW.
29840
29841         * lib/getdelim.c (EOVERFLOW): Remove fallback.
29842         * modules/getdelim (Depends-on): Add EOVERFLOW.
29843
29844         * lib/ftell.c (EOVERFLOW): Remove fallback.
29845         * modules/ftell (Depends-on): Add EOVERFLOW.
29846
29847         * lib/fprintf.c (EOVERFLOW): Remove fallback.
29848         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
29849         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
29850
29851         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
29852
29853         * modules/EOVERFLOW-tests: New file.
29854         * tests/test-EOVERFLOW.c: New file.
29855
29856         * modules/EOVERFLOW: New file.
29857         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
29858
29859 2008-03-30  Bruno Haible  <bruno@clisp.org>
29860
29861         Fix bug introduced on 2007-06-10.
29862         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
29863         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
29864
29865 2008-03-30  Bruno Haible  <bruno@clisp.org>
29866
29867         Improve freadseek's efficiency after ungetc.
29868         * lib/freadseek.c: Include freadahead.h.
29869         (freadptrinc): New function, extracted from freadseek.
29870         (freadseek): Use it in a loop. Use freadahead to determine the number
29871         of loop iterations.
29872         * modules/freadseek (Depends-on): Add freadahead.
29873         (configure.ac): Require AC_C_INLINE.
29874
29875 2008-03-30  Bruno Haible  <bruno@clisp.org>
29876
29877         * lib/freadseek.c (freadseek): Don't ignore the return value of
29878         freadptr.
29879
29880 2008-03-29  Eric Blake  <ebb9@byu.net>
29881
29882         Add hex float support.
29883         * modules/strtod (Depends-on): Add c-ctype.
29884         (Link): Mention POW_LIB.
29885         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
29886         whitespace between 'e' and exponent.
29887         * tests/test-strtod.c (main): Enable hex float tests.
29888         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
29889         now provides.
29890
29891         Document various strtod bugs, with some fixes.
29892         * doc/posix-functions/strtod.texi (strtod): Document bugs with
29893         "-0x", "inf", "nan", and hex constants.
29894         * doc/posix-functions/atof.texi (atof): Likewise.
29895         * modules/stdlib (Makefile.am): Support strtod.
29896         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29897         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
29898         detect additional strtod bugs.
29899         * lib/stdlib.in.h (rpl_strtod): Add declarations.
29900         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
29901         bool where appropriate.  Parse 'inf' and 'nan'.
29902         * tests/test-strtod.c: New file.
29903         * modules/strtod (Depends-on): Add stdbool, stdlib.
29904         (configure.ac): Turn on module indicator.
29905         * modules/strtod-tests: New module.
29906
29907 2008-03-29  Eric Blake  <ebb9@byu.net>
29908
29909         Fix ftell on mingw.
29910         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
29911         * modules/ftell-tests (Depends-on): Add binary-io.
29912         * modules/ftello-tests (Depends-on): Likewise.
29913         * tests/test-ftell.c (main): Enhance test to cover behavior after
29914         ungetc.  Enforce binary mode.
29915         * tests/test-ftello.c (main): Likewise.
29916
29917         Pass test-freadseek on cygwin.
29918         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
29919         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
29920         ungetc buffer.
29921
29922         * tests/test-fflush2.c (main): Fix typo.
29923
29924 2008-03-29  Bruno Haible  <bruno@clisp.org>
29925
29926         * tests/test-fflush2.c (main): Temporarily disable the contents of
29927         this test.
29928         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
29929         Reported by Eric Blake.
29930
29931 2008-03-28  Simon Josefsson  <simon@josefsson.org>
29932
29933         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
29934         (GC_SHA224_DIGEST_SIZE): Add.
29935
29936         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
29937         (gc_hash_digest_length): Likewise.
29938         (gc_hash_buffer): Likewise.
29939
29940 2008-03-25  Bruno Haible  <bruno@clisp.org>
29941
29942         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
29943         detail which gettext release to use.
29944         Reported by Simon Josefsson.
29945
29946 2008-03-26  Jim Meyering  <meyering@redhat.com>
29947
29948         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
29949         * modules/gnumakefile (clean-GNUmakefile): Also, use
29950         test ... && ... || : syntax rather than if-then ... fi.
29951
29952         gnumakefile: Don't double-quote-expand $(VPATH) value.
29953         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
29954
29955 2008-03-24  Eric Blake  <ebb9@byu.net>
29956
29957         Alter GNUmakefile to install into top directory.
29958         * modules/maintainer-makefile: Split, and add dependency...
29959         * modules/gnumakefile: to this new module.
29960         * build-aux/GNUmakefile: Move...
29961         * top/GNUmakefile: ...here.
29962         * build-aux/maint.mk: Move...
29963         * top/maint.mk: ...here.
29964         * MODULES.html.sh (Support for maintaining...): Document new
29965         module.
29966
29967 2008-03-23  Bruno Haible  <bruno@clisp.org>
29968
29969         * gnulib-tool: New options --vc-files, --no-vc-files.
29970         (func_usage): Document them.
29971         (vc_files): New variable.
29972         (func_import): Consider vc_files.
29973         (func_create_testdir): Set vc_files to empty.
29974         Suggested by Jim Meyering and Karl Berry.
29975
29976 2008-03-23  Bruno Haible  <bruno@clisp.org>
29977
29978         Fix regex compilation error on HP-UX 11.
29979         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
29980         * modules/regex (Files): Add m4/mbstate_t.m4.
29981         Reported by Ton Voon <ton.voon@altinity.com>.
29982
29983 2008-03-23  Bruno Haible  <bruno@clisp.org>
29984
29985         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
29986
29987 2008-03-23  Eric Blake  <ebb9@byu.net>
29988             Bruno Haible  <bruno@clisp.org>
29989
29990         Install files from top/ in the destination directory.
29991         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29992         augmentation also for the files from top/.
29993         (func_import, func_create_testdir): Rewrite file names:
29994         top/filename -> filename.
29995
29996 2008-03-23  Bruno Haible  <bruno@clisp.org>
29997
29998         Tweak "gnulib --version" output.
29999         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
30000
30001 2008-03-23  Bruno Haible  <bruno@clisp.org>
30002
30003         Tweak "gnulib --version" output.
30004         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
30005         rather than contents of ChangeLog, when possible.
30006
30007 2008-03-21  Eric Blake  <ebb9@byu.net>
30008
30009         More --version tweaks.
30010         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
30011         date of last ChangeLog entry.
30012
30013 2008-03-21  Jim Meyering  <meyering@redhat.com>
30014
30015         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
30016
30017 2008-03-20  Eric Blake  <ebb9@byu.net>
30018
30019         VPATH fix.
30020         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
30021
30022 2008-03-20  Simon Josefsson  <simon@josefsson.org>
30023
30024         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
30025         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
30026
30027 2008-03-20  Eric Blake  <ebb9@byu.net>
30028
30029         Sync GNUmakefile with coreutils.
30030         * build-aux/GNUmakefile (have-Makefile): Rename...
30031         (_have-Makefile): ...to this, for namespace consideration.
30032         (GNUmakefile.cfg): Include, if present.
30033         (_autoreconf): Define a default.
30034         (_is-dist-target): New rule for rebuilds to pick up intra-release
30035         version.
30036         (maint-cfg.mk): Rename...
30037         (cfg.mk): ...to this.
30038
30039 2008-03-18  Jim Meyering  <meyering@redhat.com>
30040
30041         New script and module: mktempd
30042         * MODULES.html.sh (maint+release support): Add mktempd.
30043         * build-aux/mktempd: New file.
30044         * modules/mktempd: New file.
30045
30046 2008-03-15  Jim Meyering  <meyering@redhat.com>
30047
30048         Undo last change.
30049         * lib/sha1.c, lib/md5.c: 63 != ~63.
30050         Reported by Andreas Schwab.
30051
30052         sha1.c, md5.c: Hoist a redundant expression.
30053         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
30054         "ctx->buflen" only once, before calling *_process_block.
30055         * lib/md5.c (md5_process_bytes): Likewise.
30056
30057 2008-03-14  Eric Blake  <ebb9@byu.net>
30058
30059         Bump copyright year in files generated by gnulib-tool.
30060         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
30061         gnulib-tool, rather than hard-coding it.
30062
30063         Fix 'gnulib-tool --version' output to work with git.
30064         * gnulib-tool (func_gnulib_dir): New function, extracted from...
30065         (startup): ...here.
30066         (func_version): Use it to invoke git-version-gen, rather than
30067         relying on CVS keyword expansion.  Modernize wording.
30068         (cvsdatestamp, last_checkin_date, version): Kill unused
30069         variables.
30070
30071 2008-03-12  Jim Meyering  <meyering@redhat.com>
30072
30073         Recognize optional cast of the argument to free.
30074         * build-aux/useless-if-before-free: Update regexps.
30075
30076         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
30077
30078 2008-03-11  Bruno Haible  <bruno@clisp.org>
30079
30080         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
30081         by a single package.
30082         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
30083         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
30084         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
30085         Reported by Sam Steingold <sds@gnu.org>.
30086
30087 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30088
30089         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
30090         repositories.
30091
30092 2008-03-11  Bruno Haible  <bruno@clisp.org>
30093
30094         Avoid conflicts between local macro definitions.
30095         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30096         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
30097
30098 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
30099             Bruno Haible  <bruno@clisp.org>
30100
30101         Make va_copy work with some version of xlc on AIX 5.1.
30102         * lib/stdarg.in.h: New file.
30103         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
30104         On AIX, use a <stdarg.h> file substitute.
30105         * modules/stdarg (Files): Add lib/stdarg.in.h.
30106         (Depends-on): Add include_next.
30107         (Makefile.am): Build a stdarg.h substitute if requested.
30108         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
30109
30110 2008-03-10  Bruno Haible  <bruno@clisp.org>
30111
30112         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
30113         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30114         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30115
30116 2008-03-10  Bruno Haible  <bruno@clisp.org>
30117
30118         * modules/stdlib (Depends-on): Add include_next, remove
30119         absolute-header.
30120
30121 2008-03-09  Bruno Haible  <bruno@clisp.org>
30122
30123         * lib/freadahead.h (freadahead): Document more precisely.
30124         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
30125         the sum of both buffer sizes.
30126         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
30127         * NEWS: Document the change.
30128
30129 2008-03-09  Bruno Haible  <bruno@clisp.org>
30130
30131         Extend freadptr to return also the buffer size.
30132         * lib/freadptr.h (freadptr): Add sizep argument.
30133         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
30134         (freadptr): Add sizep argument. Determine buffer size like freadahead
30135         does.
30136         * tests/test-freadptr.c: Don't include freadahead.h.
30137         (main): Adapt for new calling convention of freadptr.
30138         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
30139         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
30140         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
30141         tests/test-freadptr2.sh.
30142         (Depends): Remove freadahead.
30143         (TESTS): Add test-freadptr2.sh.
30144         (check_PROGRAMS): Add test-freadptr2.
30145
30146 2008-03-09  Bruno Haible  <bruno@clisp.org>
30147
30148         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
30149         Report and solution by Simon Josefsson.
30150
30151 2008-03-06  Bruno Haible  <bruno@clisp.org>
30152
30153         Make fflush after ungetc work on BSD platforms.
30154         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
30155         * tests/test-fflush2.c: New file.
30156         * tests/test-fflush2.sh: New file.
30157         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
30158         tests/test-fflush2.c.
30159         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
30160         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
30161
30162 2008-03-06  Eric Blake  <ebb9@byu.net>
30163
30164         Likewise for ftello.
30165         * modules/ftello (Dependencies): Add extensions.
30166         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
30167
30168 2008-03-06  Bruno Haible  <bruno@clisp.org>
30169
30170         * modules/fseeko (Dependencies): Add extensions.
30171         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
30172         Needed on glibc systems.
30173
30174 2008-03-06  Bruno Haible  <bruno@clisp.org>
30175
30176         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
30177         email address.
30178         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30179
30180 2008-03-06  Bruno Haible  <bruno@clisp.org>
30181
30182         * users.txt: Add libgnupdf.
30183
30184 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30185
30186         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
30187         (Header File Substitutes, Function Substitutes,
30188         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
30189         (Build robot for gnulib): Fix typo.
30190
30191 2008-03-06  Bruno Haible  <bruno@clisp.org>
30192
30193         * doc/gnulib-tool.texi (VCS Issues): Small updates.
30194         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30195
30196 2008-03-06  Bruno Haible  <bruno@clisp.org>
30197
30198         * doc/func.texi: New file, extracted from doc/gnulib.texi.
30199         * doc/gnulib.texi: Include it.
30200
30201 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30202
30203         * modules/func (License): Change license to unlimited; there was
30204         no LGPL parts in the module anyway.
30205
30206 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30207
30208         * modules/__func__: Renamed to modules/func.
30209         * modules/__func__-tests: Renamed to modules/func-tests.
30210         * tests/test-__func__.c: Renamed to tests/test-func.c.
30211         * m4/__func__.m4: Renamed to m4/func.m4.
30212         * doc/gnulib.texi (__func__): Section renamed to func.
30213         Suggested by Eric Blake <ebb9@byu.net>.
30214
30215 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30216
30217         * doc/gnulib.texi (__func__): Use C99 terminology when talking
30218         about __func__.  Make example self-contained.  Suggested by Eric
30219         Blake <ebb9@byu.net>.
30220
30221         * tests/test-__func__.c (main): Avoid extraneous () around __func.
30222         Suggested by Eric Blake <ebb9@byu.net>.
30223
30224 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30225
30226         * modules/__func__: New file.
30227         * modules/__func__-tests: New file.
30228         * tests/test-__func__.c: New file.
30229         * m4/__func__.m4: New file.
30230         * doc/gnulib.texi (__func__): Document __func__ module.
30231
30232 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30233
30234         * modules/byteswap (License): Re-license as LGPLv2+.
30235
30236 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30237
30238         * doc/Makefile: Add pdf target.
30239
30240 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30241
30242         * modules/inline (License): Use 'unlimited', since there are only
30243         *.m4 files in this module.
30244
30245 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30246             Bruno Haible  <bruno@clisp.org>
30247
30248         Add support for HP C 7.1 on OpenVMS 8.3.
30249         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
30250
30251 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30252
30253         Update VMS specifics.
30254         * lib/getopt.c [VMS]: Remove include of unixlib.h.
30255
30256 2008-03-02  Jim Meyering  <meyering@redhat.com>
30257
30258         Remove the last dependency on the "free" module.
30259         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
30260         Reported by Bob Proulx.
30261
30262         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
30263
30264         Remove useless "if" tests before free.  Deprecate "free" module.
30265         * doc/posix-functions/free.texi: Mention that this
30266         module is no longer useful.
30267         * modules/free (Notice): Say this module is obsolete.
30268         * modules/readutmp (Depends-on): Remove free.
30269         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
30270         * lib/putenv.c (putenv): Likewise.
30271         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
30272         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
30273         * tests/test-c-strcasestr.c (main): Likewise.
30274         * tests/test-c-strstr.c (main): Likewise.
30275         * tests/test-mbscasestr1.c (main): Likewise.
30276         * tests/test-mbscasestr2.c (main): Likewise.
30277         * tests/test-mbsstr1.c (main): Likewise.
30278         * tests/test-mbsstr2.c (main): Likewise.
30279         * tests/test-memmem.c (main): Likewise.
30280         * tests/test-strcasestr.c (main): Likewise.
30281         * tests/test-striconv.c (main): Likewise.
30282         * tests/test-striconveh.c (main): Likewise.
30283         * tests/test-striconveha.c (main): Likewise.
30284         * tests/test-strstr.c (main): Likewise.
30285
30286         * build-aux/git-version-gen: Adjust a comment and the Usage string.
30287
30288         bootstrap: sync from coreutils again
30289         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
30290
30291 2008-03-01  Jim Meyering  <meyering@redhat.com>
30292
30293         bootstrap: sync from coreutils
30294         * build-aux/bootstrap (update_po_files): Copy a .po file into place
30295         also when the target doesn't exist.
30296
30297 2008-03-01  Eric Blake  <ebb9@byu.net>
30298
30299         Fix bugs in last patch.
30300         * lib/memchr2.c (memchr2): Fix typo.
30301         * tests/test-memchr2.c: Test previous bug, and don't use GNU
30302         extension.
30303         Reported by Bruce Korb.
30304
30305         New module 'memchr2'.
30306         * modules/memchr2: New file.
30307         * modules/memchr2-tests: Likewise.
30308         * lib/memchr2.h: Likewise.
30309         * lib/memchr2.c: Likewise, based on memchr.c.
30310         * tests/test-memchr2.c: New test.
30311         * MODULES.html.sh (String handling): Add memchr2.
30312
30313 2008-02-29  Bruno Haible  <bruno@clisp.org>
30314
30315         * modules/freadseek-tests: New file.
30316         * tests/test-freadseek.sh: New file.
30317         * tests/test-freadseek.c: New file.
30318
30319         New module 'freadseek'.
30320         * modules/freadseek: New file.
30321         * lib/freadseek.h: New file.
30322         * lib/freadseek.c: New file.
30323         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
30324
30325 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30326
30327         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
30328         wydawca.
30329
30330         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
30331         program_invocation_name and program_invocation_short_name are
30332         present.
30333
30334 2008-02-28  Bruno Haible  <bruno@clisp.org>
30335
30336         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
30337         * tests/test-freadptr.sh: Also test non-seekable stdin.
30338
30339 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
30340
30341         * build-aux/bootstrap (source_base, m4_base)
30342         (doc_base, tests_base): New variables.
30343         (gnulib_tool_options): Do not hardcode base directories, use
30344         the above variables instead.
30345
30346 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
30347
30348         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
30349
30350 2008-02-28  Bruno Haible  <bruno@clisp.org>
30351
30352         * modules/freadptr-tests: New file.
30353         * tests/test-freadptr.sh: New file.
30354         * tests/test-freadptr.c: New file.
30355
30356         New module 'freadptr'.
30357         * modules/freadptr: New file.
30358         * lib/freadptr.h: New file.
30359         * lib/freadptr.c: New file.
30360         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
30361
30362 2008-02-26  Karl Berry  <karl@freefriends.org>
30363
30364         Sync from Libtool:
30365         * libltdl/argz.c (argz_add, argz_count): New functions.
30366         * libltdl/argz.in.h: Declare them.
30367         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
30368
30369 2008-02-22  Bruno Haible  <bruno@clisp.org>
30370
30371         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
30372         is a pointer type.  Needed for HP-UX 10.
30373         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
30374         * doc/posix-functions/gmtime_r.texi: Likewise.
30375         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30376
30377 2008-02-24  Bruno Haible  <bruno@clisp.org>
30378
30379         * modules/environ-tests: New file.
30380         * tests/test-environ.c: New file.
30381
30382         New module 'environ'.
30383         * modules/environ: New file.
30384         * lib/unistd.in.h (environ): New declaration.
30385         * m4/environ.m4: New file.
30386         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
30387         after use.
30388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
30389         HAVE_DECL_ENVIRON.
30390         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
30391         HAVE_DECL_ENVIRON.
30392         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
30393         wrong claim that 'environ' is missing on some systems.
30394         * modules/execute (Depends-on): Add environ.
30395         * lib/execute.c (environ): Remove fallback declaration.
30396         * modules/pipe (Depends-on): Add environ.
30397         * lib/pipe.c (environ): Remove fallback declaration.
30398         * modules/setenv (Depends-on): Add environ.
30399         * lib/setenv.c (environ): Remove fallback declaration.
30400         * modules/unsetenv (Depends-on): Add environ.
30401         * lib/unsetenv.c (environ): Remove fallback declaration.
30402         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
30403         m4/environ.m4.
30404         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
30405         (gl_PREREQ_UNSETENV): Likewise.
30406
30407 2008-02-24  Bruno Haible  <bruno@clisp.org>
30408
30409         * doc/posix-functions/environ.texi: Document the MacOS X problem.
30410
30411 2008-02-20  Bob Proulx  <bob@proulx.com>
30412
30413         Enable use of older two part flavor 'git describe'.
30414         * build-aux/git-version-gen: If using the older two part flavor of
30415         git version then recreate the third part now present in the
30416         newer three part flavor of git describe.
30417
30418 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
30419
30420         * lib/fts.c (fts_build): Typo correction to comment.
30421
30422 2008-02-17  Bruno Haible  <bruno@clisp.org>
30423
30424         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
30425         generating no-op conflicts.
30426
30427 2008-02-17  Bruno Haible  <bruno@clisp.org>
30428
30429         Speed up by 10%.
30430         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
30431         result_entries, rather than an index-based loop.
30432
30433 2008-02-17  Bruno Haible  <bruno@clisp.org>
30434
30435         Speed up by 25%.
30436         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
30437         'hashcode_cached'.
30438         (entry_create): New function.
30439         (entry_hashcode): Use the cached hashcode if possible.
30440         (read_changelog_file, try_split_merged_entry): Use entry_create.
30441
30442 2008-02-17  Bruno Haible  <bruno@clisp.org>
30443
30444         Speed up from O(n^2) to O(n) for long ChangeLog files.
30445         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
30446         (read_changelog_file): Change implementation of entries_reversed list
30447         to rbtreehash.
30448         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
30449
30450 2008-02-17  Bruno Haible  <bruno@clisp.org>
30451
30452         New option --split-merged-entry.
30453         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
30454         (find_paragraph_end, try_split_merged_entry): New functions.
30455         (long_options): Add option --split-merged-entry.
30456         (usage): Document option --split-merged-entry.
30457         (main): Implement option --split-merged-entry.
30458         Reported by Eric Blake.
30459
30460 2008-02-17  Bruno Haible  <bruno@clisp.org>
30461
30462         * lib/git-merge-changelog.c: Include c-strstr.h.
30463         (main): Support the "git pull --rebase" situation.
30464         * modules/git-merge-changelog (Depends-on): Add c-strstr.
30465         Reported by Eric Blake.
30466
30467 2008-02-16  Eric Blake  <ebb9@byu.net>
30468
30469         Avoid doubling \ in common case of "c-maybe" quoting style.
30470         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
30471         eliding outer quotes.
30472         * lib/quotearg.h: Document this.
30473         * tests/test-quotearg.c (result_strings, inputs, results_g)
30474         (flag_results, locale_results): Test it by adding a new string to
30475         each test group.
30476         (compare_strings): Test new string.
30477
30478 2008-02-13  Eric Blake  <ebb9@byu.net>
30479
30480         Avoid trigraph quoting in default output.
30481         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
30482         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
30483         unless explicitly requested.
30484         * tests/test-quotearg.c (flag_results, main): Add additional tests.
30485
30486 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
30487
30488         Don't rely on signed integer overflowing to negative value.
30489         * lib/getugroups.c (getugroups): Include <limits.h>.
30490         Instead, compare against INT_MAX, and increment only if the test passes.
30491
30492 2008-02-13  Jim Meyering  <meyering@redhat.com>
30493         and Eric Blake  <ebb9@byu.net>
30494
30495         Avoid shadowing warning and compile errors on Linux.
30496         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
30497         forwarding macros on Linux.
30498         (dcgettext): Define a stub, for Linux.
30499         (results_g, main): Avoid warnings.
30500
30501 2008-02-12  Eric Blake  <ebb9@byu.net>
30502
30503         Silence warning in last patch.
30504         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
30505
30506         Quotearg part 4: add tests, fix c-maybe colon quoting.
30507         * lib/quotearg.h: Improve documentation.
30508         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
30509         escapes when adding outer quotes.  When quoting trigraphs, use
30510         valid C notation.  When quoting NUL, omit extra characters if next
30511         character is not digit.  Alter prototype.
30512         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
30513         callers.
30514         * modules/quotearg-tests: New module.
30515         * tests/test-quotearg.c: New test.
30516
30517 2008-02-07  Eric Blake  <ebb9@byu.net>
30518
30519         Quotearg part 3: add flag to control outer quote elision.
30520         * lib/quotearg.h (c_maybe_quoting_style): New style.
30521         (enum quoting_flags): Better documentation of flags.
30522         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
30523         c-maybe style.
30524         (quotearg_buffer_restyled): Handle new flag to elide outer
30525         quotes.
30526
30527         Quotearg part 2: add flag that can control NUL elision.
30528         * lib/quotearg.h (set_quoting_flags): New prototype.
30529         * lib/quotearg.c (struct quoting_options): Add flag field.
30530         (set_quoting_flags): New function.
30531         (quotearg_buffer_restyled): Add flags parameter.
30532         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30533         (quotearg_n_options): Set the flag, since length cannot be
30534         returned.
30535         (quoting_options_from_style): Default flags correctly.
30536
30537         Quotearg part 1: more wrappers, restore quotearg_char state.
30538         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30539         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30540         (quotearg_colon_mem): New wrappers.
30541         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30542         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30543         functions.
30544         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30545         (quotearg_colon_mem): New functions.
30546
30547 2008-02-11  Bruno Haible  <bruno@clisp.org>
30548
30549         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30550         library in the current directory: it does not work with parallel make.
30551         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30552
30553 2008-02-11  Bruno Haible  <bruno@clisp.org>
30554
30555         * .gitattributes: New file.
30556
30557 2008-02-11  Jim Meyering  <meyering@redhat.com>
30558
30559         useless-if-before-free: Fix reversed exit values.
30560         * build-aux/useless-if-before-free: Use correct values
30561         for EXIT_MATCH and EXIT_NO_MATCH.
30562
30563         * build-aux/useless-if-before-free: Close stdout carefully.
30564
30565 2008-02-10  Bruno Haible  <bruno@clisp.org>
30566
30567         New module 'git-merge-changelog'.
30568         * modules/git-merge-changelog: New file.
30569         * lib/git-merge-changelog.c: New file.
30570
30571 2008-02-10  Jim Meyering  <meyering@redhat.com>
30572
30573         useless-if-before-free: New option: --list (-l).
30574
30575         useless-if-before-free: Don't exit immediately upon open failure.
30576         * build-aux/useless-if-before-free: Exit 2 for errors.
30577         Upon failure to open a file, don't exit immediately.
30578         Rather, just warn and continue with any remaining files.
30579
30580 2008-02-10  Bruno Haible  <bruno@clisp.org>
30581
30582         New abstract list operation 'node_set_value'.
30583         * lib/gl_list.h (gl_list_node_set_value): New function.
30584         (struct gl_list_implementation): New field node_set_value.
30585         * lib/gl_list.c (gl_list_node_set_value): New function.
30586         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30587         (gl_array_list_implementation): Update.
30588         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30589         (gl_carray_list_implementation): Update.
30590         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30591         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30592         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30593         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30594         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30595         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30596         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30597         Update.
30598         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30599         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30600         (gl_sublist_list_implementation): Update.
30601
30602 2008-02-10  Bruno Haible  <bruno@clisp.org>
30603
30604         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30605         Needed when ELEMENT is #defined to 'some_type *'.
30606
30607 2008-02-10  Jim Meyering  <meyering@redhat.com>
30608
30609         New script and module: useless-if-before-free
30610         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30611         * build-aux/useless-if-before-free: New file.
30612         * modules/useless-if-before-free: New file.
30613
30614         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30615
30616         xstrtol_error: Fix typo.
30617         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30618         s/exit_failure/exit_status/.
30619
30620 2008-02-09  Jim Meyering  <meyering@redhat.com>
30621
30622         New script and module: gitlog-to-changelog
30623         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30624         * modules/gitlog-to-changelog: New file.
30625         * build-aux/gitlog-to-changelog: New file.
30626
30627 2008-02-08  Jim Meyering  <meyering@redhat.com>
30628
30629         Avoid two "parameter unused" warnings.
30630         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30631         Mark "st" as used.
30632
30633         Use "git COMMAND", not "git-COMMAND".
30634         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30635         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30636         * build-aux/git-version-gen: Use "git status", not "git-status".
30637
30638 2008-02-07  Bruno Haible  <bruno@clisp.org>
30639
30640         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30641         Avoids a crash on Windows Vista.
30642         Reported by Adam Strzelecki <ono@java.pl> via
30643         Simon Josefsson <simon@josefsson.org>.
30644
30645 2008-02-06  Bruno Haible  <bruno@clisp.org>
30646
30647         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30648         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30649         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30651         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30652         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30653         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30654         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30659         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30660         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30661         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30662         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30663         left-adjust flag.
30664         * tests/test-snprintf-posix.h (test_function): Likewise.
30665         * tests/test-sprintf-posix.h (test_function): Likewise.
30666         * tests/test-vasprintf-posix.c (test_function): Likewise.
30667         * doc/posix-functions/fprintf.texi: Update.
30668         * doc/posix-functions/printf.texi: Update.
30669         * doc/posix-functions/snprintf.texi: Update.
30670         * doc/posix-functions/sprintf.texi: Update.
30671         * doc/posix-functions/vfprintf.texi: Update.
30672         * doc/posix-functions/vprintf.texi: Update.
30673         * doc/posix-functions/vsnprintf.texi: Update.
30674         * doc/posix-functions/vsprintf.texi: Update.
30675         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30676
30677 2008-02-06  Bruno Haible  <bruno@clisp.org>
30678
30679         Fix bug introduced on 2008-01-26.
30680         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30681
30682 2008-02-06  Bruno Haible  <bruno@clisp.org>
30683
30684         Fix bug introduced on 2007-06-10.
30685         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30686         !NEED_PRINTF_FLAG_ZERO.
30687
30688 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30689
30690         getloadavg: use libperfstat on AIX5
30691         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30692
30693 2008-02-03  Bruno Haible  <bruno@clisp.org>
30694
30695         * lib/diffseq.h: Add comments about required #includes.
30696         Reported by Michael Biggs <gnulib@doubleplum.net>.
30697
30698 2008-02-01  Bruno Haible  <bruno@clisp.org>
30699
30700         * users.txt: Add gnuit.
30701
30702 2008-01-31  Bruno Haible  <bruno@clisp.org>
30703
30704         * lib/md4.c (set_uint32): Mark as inline.
30705         * lib/md5.c (set_uint32): Likewise.
30706         * lib/sha1.c (set_uint32): Likewise.
30707         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30708         * m4/md5.m4 (gl_MD5): Likewise.
30709         * m4/sha1.m4 (gl_SHA1): Likewise.
30710
30711 2008-01-31  Jim Meyering  <meyering@redhat.com>
30712
30713         Use "sizeof VAR", rather than a literal "4".
30714         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30715         * lib/md4.c (md4_read_ctx): Likewise.
30716         * lib/sha1.c (sha1_read_ctx): Likewise.
30717
30718 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30719
30720         * tests/test-sha1.c: New file, based on test-md5.c.
30721
30722         * modules/crypto/sha1-tests: New file.
30723
30724 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30725
30726         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
30727
30728 2008-01-31  Jim Meyering  <meyering@redhat.com>
30729
30730         Prefer "sizeof v" over the equivalent "4".
30731         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
30732         * lib/md5.c (set_uint32): Likewise.
30733         * lib/sha1.c (set_uint32): Likewise.
30734
30735 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30736
30737         * lib/sha1.c (set_uint32): Mark function as static.
30738
30739 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30740
30741         md2: clarify comments to say that alignment is not required.
30742         * lib/md2.h: Remove warning about alignment in comment.
30743         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
30744         never been required.
30745
30746 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30747
30748         md4: adapt alignment constraint fix from sha1.
30749         * lib/md4.c (set_uint32): New function, from sha1.c
30750         (md4_read_ctx): Use it.
30751         (md4_finish_ctx): Doc fix.
30752         * lib/md4.h: Doc fix.
30753
30754 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30755
30756         md5: adapt alignment constraint fix from sha1.
30757         * lib/md5.c (set_uint32): New function, from sha1.c
30758         (md5_read_ctx): Use it.
30759         (md5_finish_ctx): Doc fix.
30760         * lib/md5.h: Doc fix.
30761
30762 2008-01-30  Peter Palfrader  <weasel@debian.org>
30763
30764         sha1: remove the result buffer alignment constraint
30765         * lib/sha1.c (set_uint32): New function.
30766         (sha1_read_ctx): Rewrite to remove the result buffer alignment
30767         constraint.
30768         (sha1_finish_ctx): Remove comment warning about alignment constraint.
30769         * lib/sha1.h: Likewise.
30770
30771 2008-01-30  Andreas Schwab  <schwab@suse.de>
30772             Bruno Haible  <bruno@clisp.org>
30773
30774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
30775         correct definition of LDBL_MIN_EXP.
30776
30777 2008-01-30  Karl Berry  <karl@gnu.org>
30778
30779         * config/srclist-update: try to preserve x bit on updates.
30780         * config/srclistvars.sh: update for karl.
30781
30782 2008-01-29  Jim Meyering  <meyering@redhat.com>
30783
30784         vasnprintf.c: Avoid warning about unused label
30785         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
30786         "overflow" label definition and associated code with the
30787         same cpp condition that guards the sole use of that label.
30788
30789 2008-01-26  Bruno Haible  <bruno@clisp.org>
30790
30791         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
30792         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
30793         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
30794         * lib/isnanl-nolibm.h (isnanl): Likewise.
30795         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30796
30797 2008-01-26  Bruno Haible  <bruno@clisp.org>
30798
30799         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
30800         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
30801
30802 2008-01-26  Bruno Haible  <bruno@clisp.org>
30803
30804         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
30805         GCC >= 4.0 built-in.
30806         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
30807
30808 2008-01-26  Bruno Haible  <bruno@clisp.org>
30809
30810         Rename isnan, applicable to 'double' only, to isnand.
30811         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
30812         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
30813         (configure.ac): Update.
30814         (Include): Replace "isnan.h" with "isnand.h".
30815         * m4/isnand.m4: Renamed from m4/isnan.m4.
30816         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
30817         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
30818         instead of isnan.c.
30819         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
30820         instead of HAVE_ISNAN_IN_LIBC.
30821         (isnand): Renamed from isnan.
30822         * lib/isnand.c: New file.
30823         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
30824         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
30825         (Makefile.am): Update.
30826         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
30827         Include isnand.h instead of isnan.h.
30828         (main): Test isnand instead of isnan.
30829         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
30830         isnan-nolibm.
30831         * modules/frexp (Depends-on): Likewise.
30832         * modules/frexp-tests (Depends-on): Likewise.
30833         * modules/frexp-nolibm (Depends-on): Likewise.
30834         * modules/frexp-nolibm-tests (Depends-on): Likewise.
30835         * modules/isfinite (Depends-on): Likewise.
30836         * modules/round-tests (Depends-on): Likewise.
30837         * modules/signbit (Depends-on): Likewise.
30838         * modules/signbit-tests (Depends-on): Likewise.
30839         * modules/snprintf-posix (Depends-on): Likewise.
30840         * modules/sprintf-posix (Depends-on): Likewise.
30841         * modules/trunc-tests (Depends-on): Likewise.
30842         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30843         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30844         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30845         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30846         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30847         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30848         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30849         * modules/vasnprintf-posix (Depends-on): Likewise.
30850         * modules/vasprintf-posix (Depends-on): Likewise.
30851         * modules/vfprintf-posix (Depends-on): Likewise.
30852         * modules/vsnprintf-posix (Depends-on): Likewise.
30853         * modules/vsprintf-posix (Depends-on): Likewise.
30854         * lib/frexp.c: Include isnand.h instead of isnan.h.
30855         (ISNAN): Set to isnand instead of isnan.
30856         * lib/isfinite.c: Include isnand.h instead of isnan.h.
30857         (gl_isfinited): Use isnand instead of isnan.
30858         * lib/signbitd.c: Include isnand.h instead of isnan.h.
30859         (gl_signbitd): Use isnand instead of isnan.
30860         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
30861         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
30862         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
30863         (main): Use isnand instead of isnan.
30864         * tests/test-round1.c: Include isnand.h.
30865         (main): Use isnand instead of isnan.
30866         * tests/test-round2.c: Include isnand.h instead of isnan.h.
30867         (ISNAN): Set to isnand instead of isnan.
30868         * tests/test-trunc1.c: Include isnand.h.
30869         (main): Use isnand instead of isnan.
30870         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
30871         (equal): Use isnand instead of isnan.
30872         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
30873         isnand-nolibm.
30874         * NEWS: Mention the change.
30875
30876 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
30877             Bruno Haible  <bruno@clisp.org>
30878
30879         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
30880         the GCC builtins for signbits are present and set
30881         REPLACE_SIGNBIT_USING_GCC if so.
30882         * lib/math.in.h (signbit): Define using GCC builtins if
30883         REPLACE_SIGNBIT_USING_GCC is set.
30884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
30885         REPLACE_SIGNBIT_USING_GCC.
30886         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
30887
30888 2008-01-25  Jim Meyering  <meyering@redhat.com>
30889
30890         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
30891         * lib/poll.c: Include <config.h>, not "config.h".
30892         * tests/test-getaddrinfo.c: Likewise.
30893
30894 2008-01-25  Simon Josefsson  <simon@josefsson.org>
30895
30896         * modules/sockets-tests: New file.
30897
30898 2008-01-24  Simon Josefsson  <simon@josefsson.org>
30899
30900         * modules/sockets: New module, can be used to call WSA_Startup and
30901         WSA_Cleanup when needed.
30902
30903         * lib/sockets.h, lib/sockets.c: New files.
30904
30905         * m4/sockets.m4: New file.
30906
30907         * tests/test-sockets.c: New file.
30908
30909 2008-01-19  Bruno Haible  <bruno@clisp.org>
30910
30911         * doc/posix-headers: Renamed from doc/headers.
30912         * doc/posix-functions: Renamed from doc/functions.
30913         * doc/gnulib.texi: Update.
30914
30915 2008-01-19  Bruno Haible  <bruno@clisp.org>
30916
30917         * doc/glibc-functions/strcasestr.texi: Include contents of
30918         doc/functions/strcasestr.texi, fixing the list of platforms.
30919         * doc/functions/strcasestr.texi: Remove file.
30920
30921 2008-01-19  Bruno Haible  <bruno@clisp.org>
30922
30923         * doc/glibc-functions/memmem.texi: Include contents of
30924         doc/functions/memmem.texi.
30925         * doc/functions/memmem.texi: Remove file.
30926
30927 2008-01-18  Bruno Haible  <bruno@clisp.org>
30928
30929         * doc/glibc-functions/*.texi: New files.
30930         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
30931         to use the new files.
30932
30933 2008-01-17  Bruno Haible  <bruno@clisp.org>
30934
30935         * tests/test-gethostname.c (main): Fix printf statement.
30936
30937 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30938
30939         * modules/gethostname-tests: New file.
30940
30941         * tests/test-gethostname.c: New file.
30942
30943 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30944
30945         * lib/gethostname.c: Include string.h unconditionally, strncpy is
30946         used by the UNAME case.  Reported by Bruno Haible
30947         <bruno@clisp.org>.
30948
30949 2008-01-17  Eric Blake  <ebb9@byu.net>
30950
30951         Convert c-strcasestr to be more efficient.
30952         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
30953         (Depends-on): Add c-strcase, remove malloca, strnlen.
30954         * tests/test-c-strcasestr.c (main): Enhance test.
30955         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
30956
30957 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
30958
30959         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
30960         Use it in creating po/Makevars.
30961
30962 2008-01-15  Simon Josefsson  <simon@josefsson.org>
30963
30964         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
30965         Applications that requires it should initialize libgcrypt
30966         manually.
30967
30968 2008-01-16  Simon Josefsson  <simon@josefsson.org>
30969
30970         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
30971
30972 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30973
30974         Fix problem with getdate on mingw32 reported by Simon Josefsson
30975         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
30976         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
30977         tzname", when deciding whether to declare tzname.
30978         * lib/strftime.c (tzname): Likewise.
30979
30980 2008-01-15  Bruno Haible  <bruno@clisp.org>
30981
30982         Work around a MacOS X 10.5 bug in frexpl().
30983         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
30984         * doc/functions/frexpl.texi: Document the bug.
30985         Reported by Elias Pipping <pipping@gentoo.org>.
30986
30987 2008-01-14  Eric Blake  <ebb9@byu.net>
30988
30989         Touch up previous patch.
30990         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
30991         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
30992
30993         Convert strcasestr module to use Two-Way algorithm.
30994         * modules/strcasestr-simple: New module, based on the old
30995         strcasestr, but with Two-Way rather than KMP.
30996         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
30997         * lib/string.in.h (rpl_strcasestr): Declare.
30998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
30999         performance.
31000         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
31001         * modules/string (Makefile.am): Support strcasestr.
31002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31003         * modules/strcasestr-tests (Depends-on): Check for alarm.
31004         * tests/test-strcasestr.c: Augment test.
31005         * lib/str-two-way.h: Clean up stray macro.
31006         * NEWS: Document new module.
31007         * MODULES.html.sh (string handling): Likewise.
31008         * doc/functions/strcasestr.texi: New file.
31009         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
31010         here, since it is not a POSIX function.
31011
31012 2008-01-14  Colin Watson  <cjwatson@debian.org>
31013             Bruno Haible  <bruno@clisp.org>
31014
31015         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
31016         works fine; if not, set REPLACE_STRSIGNAL.
31017         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
31018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31019         REPLACE_STRSIGNAL.
31020         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
31021         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
31022         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
31023
31024 2008-01-14  Bruno Haible  <bruno@clisp.org>
31025
31026         * modules/strsignal (Include): Change to <string.h>.
31027
31028 2008-01-14  Colin Watson  <cjwatson@debian.org>
31029
31030         * modules/argp (Notice): Add a notice recommending to change
31031         XGETTEXT_OPTIONS.
31032         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
31033
31034 2008-01-13  Colin Watson  <cjwatson@debian.org>
31035
31036         * modules/strsignal-tests: New file.
31037         * tests/test-strsignal.c: New file.
31038
31039         * lib/strsignal.c: New file, from glibc with modifications.
31040         * lib/siglist.h: New file, from glibc with modifications.
31041         * lib/string.in.h (strsignal): New declaration.
31042         * m4/strsignal.m4: New file.
31043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31044         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
31045         * modules/strsignal: New file.
31046         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
31047         HAVE_DECL_STRSIGNAL.
31048
31049 2008-01-13  Bruno Haible  <bruno@clisp.org>
31050
31051         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
31052         locale encoding is not ASCII. Needed for OpenBSD 4.0.
31053         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31054         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31055
31056 2008-01-13  Bruno Haible  <bruno@clisp.org>
31057
31058         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
31059         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
31060         * lib/argp.h (__attribute__): Likewise.
31061         * lib/c-stack.c (__attribute__): Likewise.
31062         * lib/error.h (__attribute__): Likewise.
31063         * lib/fts.c (__attribute__): Likewise.
31064         * lib/openat.h (__attribute__): Likewise.
31065         * lib/stdio.in.h (__attribute__): Likewise.
31066         * lib/string.in.h (__attribute__): Likewise.
31067         * lib/utimens.c (__attribute__): Likewise.
31068         * lib/vasnprintf.h (__attribute__): Likewise.
31069         * lib/xalloc.h (__attribute__): Likewise.
31070         * lib/xprintf.h (__attribute__): Likewise.
31071         * lib/xstrtol.h (__attribute__): Likewise.
31072         * lib/xvasprintf.h (__attribute__): Likewise.
31073
31074 2008-01-12  Bruno Haible  <bruno@clisp.org>
31075
31076         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
31077         * doc/glibc-headers/a.out.texi: New file.
31078         * doc/glibc-headers/aliases.texi: New file.
31079         * doc/glibc-headers/alloca.texi: New file.
31080         * doc/glibc-headers/ar.texi: New file.
31081         * doc/glibc-headers/argp.texi: New file.
31082         * doc/glibc-headers/argz.texi: New file.
31083         * doc/glibc-headers/byteswap.texi: New file.
31084         * doc/glibc-headers/crypt.texi: New file.
31085         * doc/glibc-headers/endian.texi: New file.
31086         * doc/glibc-headers/envz.texi: New file.
31087         * doc/glibc-headers/err.texi: New file.
31088         * doc/glibc-headers/error.texi: New file.
31089         * doc/glibc-headers/execinfo.texi: New file.
31090         * doc/glibc-headers/fpu_control.texi: New file.
31091         * doc/glibc-headers/fstab.texi: New file.
31092         * doc/glibc-headers/fts.texi: New file.
31093         * doc/glibc-headers/getopt.texi: New file.
31094         * doc/glibc-headers/ieee754.texi: New file.
31095         * doc/glibc-headers/ifaddrs.texi: New file.
31096         * doc/glibc-headers/libintl.texi: New file.
31097         * doc/glibc-headers/mcheck.texi: New file.
31098         * doc/glibc-headers/mntent.texi: New file.
31099         * doc/glibc-headers/obstack.texi: New file.
31100         * doc/glibc-headers/paths.texi: New file.
31101         * doc/glibc-headers/printf.texi: New file.
31102         * doc/glibc-headers/pty.texi: New file.
31103         * doc/glibc-headers/resolv.texi: New file.
31104         * doc/glibc-headers/shadow.texi: New file.
31105         * doc/glibc-headers/sysexits.texi: New file.
31106         * doc/glibc-headers/ttyent.texi: New file.
31107
31108 2008-01-12  Jim Meyering  <meyering@redhat.com>
31109
31110         announce-gen: emit Gnulib's git-based version string.
31111         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
31112         New option --gnulib-version=V, where V is expected to be
31113         the output of running git describe in the gnulib directory.
31114         (get_tool_versions): Request feedback on xdelta.  I suspect it's
31115         not useful, and plan to stop publishing an xdelta file with each
31116         coreutils release.
31117
31118         * build-aux/announce-gen: Also check for lzma-compressed files.
31119
31120 2008-01-11  Bruno Haible  <bruno@clisp.org>
31121
31122         * tests/test-memmem.c (main): Increase maximum allowed time.
31123         * tests/test-strstr.c (main): Likewise.
31124
31125 2008-01-11  Bruno Haible  <bruno@clisp.org>
31126
31127         * doc/functions/memmem.texi: Add more precisions about platforms.
31128         * doc/functions/strstr.texi: Likewise.
31129
31130 2008-01-10  Eric Blake  <ebb9@byu.net>
31131
31132         * m4/strstr.m4: Delete cruft from copy-n-paste.
31133         Reported by Bruno Haible.
31134
31135 2008-01-10  Bruno Haible  <bruno@clisp.org>
31136
31137         Make c-strstr rely on strstr.
31138         * lib/c-strstr.c: Don't include str-kmp.h.
31139         (c_strstr): Define in terms of strstr.
31140         * modules/c-strstr (Files): Remove lib/str-kmp.h.
31141         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
31142
31143 2008-01-10  Bruno Haible  <bruno@clisp.org>
31144
31145         * doc/gnulib.texi (String Functions in C Locale): New section.
31146         * doc/c-ctype.texi: New file.
31147         * doc/c-strcase.texi: New file.
31148         * doc/c-strcaseeq.texi: New file.
31149         * doc/c-strcasestr.texi: New file.
31150         * doc/c-strstr.texi: New file.
31151         * doc/c-strtod.texi: New file.
31152         * doc/c-strtold.texi: New file.
31153
31154 2008-01-10  Eric Blake  <ebb9@byu.net>
31155
31156         * lib/relocatable.h: Fix a comment.
31157
31158 2008-01-10  Eric Blake  <ebb9@byu.net>
31159
31160         Share two-way algorithm.
31161         * lib/str-two-way.h: New file, merged from...
31162         * lib/memmem.c: ...here...
31163         * lib/strstr.c: ...and here.
31164         * modules/memmem (Files): Use it.
31165         * modules/strstr (Files): Likewise.
31166
31167         Avoid quadratic strstr implementations.
31168         * lib/strstr.c: New file.
31169         * m4/strstr.m4: Likewise.
31170         * modules/strstr: Likewise.
31171         * modules/strstr-tests: Likewise.
31172         * tests/test-strstr.c: Likewise.
31173         * lib/string.in.h (rpl_strstr): Declare.
31174         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
31175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
31176         * modules/string (Makefile.am): Likewise.
31177         * MODULES.html.sh (string handling): Mention new module.
31178         * doc/functions/strstr.texi (strstr): Document the bug.
31179
31180 2008-01-10  Bruno Haible  <bruno@clisp.org>
31181
31182         * lib/relocatable.h (relocate): State whether result is freshly
31183         allocated or not.
31184         * lib/relocatable.c (relocate): Return a freshly allocated string
31185         instead of a pointer to a privately held string.
31186         Reported by Sylvain Beucler <beuc@gnu.org>.
31187
31188 2008-01-10  Colin Watson  <cjwatson@debian.org>
31189
31190         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
31191         s/S_ISNLK/S_ISLNK/.
31192
31193 2008-01-09  Bruno Haible  <bruno@clisp.org>
31194
31195         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
31196         and other files.
31197         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
31198         if it's only a guess.
31199         * modules/memmem: Simplify by depending on memmem-simple.
31200
31201 2008-01-09  Bruno Haible  <bruno@clisp.org>
31202
31203         Work around OpenBSD 4.0 tdelete() bug.
31204         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
31205         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
31206         macros and don't redefine the enum values.
31207         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
31208         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
31209         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
31210
31211 2008-01-09  Bruno Haible  <bruno@clisp.org>
31212
31213         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
31214         (main): Don't perform the tests if setlocale did not install a UTF-8
31215         locale. Needed on OpenBSD 4.0.
31216         * modules/wcwidth-tests (Depends-on): Add localcharset.
31217
31218 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31219
31220         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
31221         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
31222         * NEWS: announce this.
31223         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
31224
31225 2008-01-09  Simon Josefsson  <simon@josefsson.org>
31226         and Eric Blake  <ebb9@byu.net>
31227
31228         Add memmem-simple module.
31229         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
31230         (gl_FUNC_MEMMEM): Separate performance from presence checks.
31231         * modules/memmem-simple: New file.
31232         * modules/memmem (Description): Tweak.
31233         * MODULES.html.sh (string handling): Mention new module.
31234         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
31235         addressed by memmem-simple.
31236         * NEWS: Document the difference.
31237
31238 2008-01-09  Eric Blake  <ebb9@byu.net>
31239
31240         Give gcc some memmem optimization hints.
31241         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
31242         (strcasestr): Declare as pure.
31243         * modules/memmem (Maintainer): Claim my implementation.
31244
31245 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31246
31247         Support AIX 6.1 and higher.
31248         * build-aux/config.libpath: Likewise.
31249         * build-aux/config.rpath: Likewise.
31250
31251 2008-01-08  Jim Meyering  <meyering@redhat.com>
31252             Bruno Haible  <bruno@clisp.org>
31253
31254         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
31255         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
31256         Reported by Peter Fales in
31257         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
31258
31259 2008-01-08  Bruno Haible  <bruno@clisp.org>
31260
31261         * modules/unictype/category-of (Depends-on): Add
31262         unictype/category-none.
31263         * modules/unictype/category-and-tests (Depends-on): Add
31264         unictype/category-{L,N,Lu,Nd}.
31265         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
31266         * modules/unictype/category-or-tests (Depends-on): Add
31267         unictype/category-{L,N}.
31268         * modules/unictype/category-name-tests (Depends-on): Add
31269         unictype/category-{Z,Nl}.
31270         Reported by Simon Josefsson.
31271
31272 2008-01-08  Bruno Haible  <bruno@clisp.org>
31273
31274         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
31275         convention better.
31276         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
31277         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
31278         Reported by Peter Miller <millerp@canb.auug.org.au>.
31279
31280 2008-01-08  Eric Blake  <ebb9@byu.net>
31281
31282         Rewrite memmem to guarantee linear complexity without malloc.
31283         * lib/memmem.c (memmem): Use Two-Way rather than
31284         Knuth-Morris-Pratt, to allow O(1) space usage.
31285         (critical_factorization, two_way_short_needle)
31286         (two_way_long_needle): New functions.
31287         (knuth_morris_pratt): Delete.
31288         * modules/memmem (Depends-on): No longer need malloca or stdbool.
31289         Add stdint.
31290         * tests/test-memmem.c (main): Add tests for periodic needle and
31291         sublinear performance.
31292         * doc/functions/memmem.texi (memmem): Document other deficiencies
31293         in cygwin and older glibc.
31294
31295 2008-01-08  Bruno Haible  <bruno@clisp.org>
31296
31297         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
31298         augmentation.
31299
31300 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
31301
31302         Add a configure time option: --disable-acl.
31303         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
31304         AC_ARG_ENABLE(acl).
31305
31306 2008-01-06  Simon Josefsson  <simon@josefsson.org>
31307
31308         * tests/test-localename.c: Don't include obsolete "setenv.h".
31309
31310         * modules/localename-tests (Depends-on): Need unsetenv.
31311
31312 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31313
31314         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
31315
31316 2008-01-06  Colin Watson  <cjwatson@debian.org>
31317
31318         * users.txt: Add man-db.
31319
31320 2008-01-07  Bruno Haible  <bruno@clisp.org>
31321
31322         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
31323         previous section name.
31324
31325 2008-01-07  Bruno Haible  <bruno@clisp.org>
31326
31327         * lib/progname.c (set_program_name): Don't strip off a leading
31328         "lt-" prefix outside a .libs directory.
31329         Suggested by Paul Eggert.
31330
31331 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
31332             Bruno Haible  <bruno@clisp.org>
31333
31334         Improve memory cleanup in 'relocatable' module.
31335         * lib/relocatable.h (compute_curr_prefix): Change return type to
31336         'char *'.
31337         * lib/relocatable.c (compute_curr_prefix): Change return type to
31338         'char *'. Free curr_installdir after use.
31339         (relocate): Free curr_prefix_better after use.
31340         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
31341
31342 2008-01-01  Bruno Haible  <bruno@clisp.org>
31343
31344         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
31345         failure on older glibc systems.
31346         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31347
31348 2008-01-05  Eric Blake  <ebb9@byu.net>
31349
31350         Avoid quadratic system memmem.
31351         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
31352         Reported by Ralf Wildenhues.
31353
31354         Fix memmem test for mingw.
31355         * modules/memmem-tests (configure.ac): Check for alarm.
31356         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
31357         it.
31358         * doc/functions/memmem.texi: New file.
31359         * doc/gnulib.texi (Function Substitutes): Add memmem.
31360         Reported by Bruno Haible.
31361
31362 2008-01-04  Bruno Haible  <bruno@clisp.org>
31363
31364         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
31365         Require gl_HEADER_STRINGS_H_DEFAULTS, not
31366         gl_HEADER_STRING_H_DEFAULTS.
31367
31368 2008-01-04  Eric Blake  <ebb9@byu.net>
31369
31370         Shorten duration of memmem test.
31371         * tests/test-memmem.c (main): Use alarm to declare failure if test
31372         is taking too long.
31373         Reported by Ralf Wildenhues.
31374
31375 2007-12-21  Simon Josefsson  <simon@josefsson.org>
31376
31377         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
31378         string, needed by strerror.
31379
31380 2008-01-03  Colin Watson  <cjwatson@debian.org>
31381             Bruno Haible  <bruno@clisp.org>
31382
31383         * doc/gnulib-tool.texi (Localization): New section.
31384
31385 2008-01-02  Bruno Haible  <bruno@clisp.org>
31386
31387         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
31388         variables to 'unsigned char *' type.
31389         Reported by Paul Eggert.
31390
31391 2008-01-02  Jim Meyering  <jim@meyering.net>
31392
31393         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
31394
31395 2007-12-31  Jim Meyering  <jim@meyering.net>
31396
31397         Avoid use of private FTS type name.
31398         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
31399
31400 2007-12-30  Karl Berry  <karl@gnu.org>
31401
31402         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
31403         work around defect in Texinfo and/or the standalone Info browser.
31404
31405 2007-12-30  Bruno Haible  <bruno@clisp.org>
31406
31407         Unify 5 copies of the KMP code.
31408         * lib/str-kmp.h: New file.
31409         * lib/c-strcasestr.c: Include str-kmp.h.
31410         (knuth_morris_pratt): Remove function.
31411         (c_strcasestr): Update.
31412         * lib/c-strstr.c: Include str-kmp.h.
31413         (knuth_morris_pratt): Remove function.
31414         (c_strcasestr): Update.
31415         * lib/mbscasestr.c: Include str-kmp.h.
31416         (knuth_morris_pratt_unibyte): Remove function.
31417         * lib/mbsstr.c: Include str-kmp.h.
31418         (knuth_morris_pratt_unibyte): Remove function.
31419         * lib/strcasestr.c: Include str-kmp.h.
31420         (knuth_morris_pratt): Remove function.
31421         (strcasestr): Update.
31422         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
31423         * modules/c-strstr (Files): Likewise.
31424         * modules/mbscasestr (Files): Likewise.
31425         * modules/mbsstr (Files): Likewise.
31426         * modules/strcasestr (Files): Likewise.
31427         Suggested by Paul Eggert.
31428
31429 2007-12-30  Bruno Haible  <bruno@clisp.org>
31430
31431         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
31432         defined.
31433
31434 2007-12-30  Bruno Haible  <bruno@clisp.org>
31435
31436         * lib/xmalloca.h: Include xalloc.h.
31437         (xnmalloca): New macro.
31438
31439 2007-12-30  Bruno Haible  <bruno@clisp.org>
31440
31441         * lib/malloca.h (nmalloca): New macro.
31442         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
31443         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
31444         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
31445         knuth_morris_pratt_multibyte): Likewise.
31446         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
31447         knuth_morris_pratt_multibyte): Likewise.
31448         * lib/memmem.c (knuth_morris_pratt): Likewise.
31449         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
31450
31451 2007-12-25  Bruno Haible  <bruno@clisp.org>
31452
31453         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
31454         * lib/glob.c: Don't include openat.h.
31455         (link_exists2_p): Add back the code that deals with the
31456         !GLOB_ALTDIRFUNC case.
31457         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
31458         let it do the filename concatenation.
31459         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
31460         * modules/glob (Depends-on): Remove openat.
31461
31462 2007-12-31  Bruno Haible  <bruno@clisp.org>
31463
31464         * modules/dirfd (License): Change to LGPLv2+.
31465         Approved by Jim Meyering.
31466
31467 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31468
31469         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
31470         when multiplying M by sizeof (size_t).
31471
31472 2007-12-10  Martin Lambers  <marlam@marlam.de>
31473
31474         Override getpagesize on mingw.
31475         * lib/getpagesize.c: New file.
31476         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
31477         * modules/getpagesize (Files): Add lib/getpagesize.c.
31478         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
31479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31480         REPLACE_GETPAGESIZE.
31481         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
31482
31483 2007-12-25  Bruno Haible  <bruno@clisp.org>
31484
31485         * modules/localcharset (Notice): New field.
31486         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
31487         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31488
31489 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31490             Bruno Haible  <bruno@clisp.org>
31491
31492         Avoid using the syntax symbol() in formatted documentation.
31493         * MODULES.html.sh (func_module): When replacing symbol() with a
31494         hyperlink, remove the parentheses. Show an error if some remain.
31495         Recognize and render the '...' syntax.
31496         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
31497         Rework. Add paragraph about GCC's inlining.
31498         * doc/alloca.texi: Likewise.
31499         * doc/error.texi: Remove parentheses from symbol reference.
31500         * doc/gnulib-intro.texi: Likewise.
31501         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
31502         * modules/fnmatch (Description): Reword to say "the ... function".
31503         * modules/full-read (Description): Likewise.
31504         * modules/full-write (Description): Likewise.
31505         * modules/safe-read (Description): Likewise.
31506         * modules/safe-write (Description): Likewise.
31507         * modules/strchrnul (Description): Likewise.
31508         * modules/trim (Description): Likewise.
31509         * modules/error (Description): Remove parentheses from symbol
31510         references.
31511         * modules/verror (Description): Likewise.
31512         Reported by Karl Berry.
31513
31514 2007-12-25  Bruno Haible  <bruno@clisp.org>
31515
31516         Fixup after 2007-10-16 commit.
31517         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
31518
31519 2007-12-24  Bruno Haible  <bruno@clisp.org>
31520
31521         Make --enable-relocatable work with DESTDIR.
31522         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
31523         to compute installdir from destprog.
31524         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
31525         also set the RELOC_DESTDIR variable.
31526         Reported by Левашев Иван <octagram@bluebottle.com>.
31527
31528 2007-12-24  Bruno Haible  <bruno@clisp.org>
31529
31530         Fix link error due to xalloc_die().
31531         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31532         of xreadlink.
31533         * lib/relocwrapper.c: Update comments.
31534         * build-aux/install-reloc: Remove xreadlink.c from file list.
31535         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31536         xreadlink.c.
31537         Reported by Левашев Иван <octagram@bluebottle.com>.
31538
31539 2007-12-24  Bruno Haible  <bruno@clisp.org>
31540
31541         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31542         * lib/setenv.h: Remove file.
31543         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31544         lib/setenv.h.
31545         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31546         (Depends-on): Add stdlib.
31547         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31548         gl_FUNC_UNSETENV.
31549         (Include): Replace setenv.h with <stdlib.h>.
31550         * modules/unsetenv: New file.
31551         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31552         * lib/unsetenv.c: Include <stdlib.h> first.
31553         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31554         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31555         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31556         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31557         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31558         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31560         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31561         * doc/functions/unsetenv.texi: Update.
31562         * modules/xsetenv (Depends-on): Add unsetenv.
31563         * modules/getdate (Depends-on): Likewise.
31564         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31565         * lib/xsetenv.c: Don't include setenv.h.
31566         * lib/getdate.y: Likewise.
31567         * lib/relocwrapper.c: Likewise.
31568         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31569         (Depends-on): Add stdlib.
31570         * NEWS: Mention the changes.
31571         Reported by Левашев Иван <octagram@bluebottle.com>.
31572
31573 2007-12-23  Bruno Haible  <bruno@clisp.org>
31574
31575         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31576         indentation.
31577
31578 2007-12-23  Bruno Haible  <bruno@clisp.org>
31579
31580         * lib/c-strcasestr.c: Add more comments.
31581         * lib/c-strstr.c: Likewise.
31582         * lib/mbscasestr.c: Likewise.
31583         * lib/mbsstr.c: Likewise.
31584         * lib/strcasestr.c: Likewise.
31585         * lib/memmem.c: Likewise.
31586
31587 2007-12-23  Bruno Haible  <bruno@clisp.org>
31588
31589         * tests/test-memmem.c: Include <string.h> first.
31590
31591 2007-12-22  Bruno Haible  <bruno@clisp.org>
31592
31593         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31594         the contents of $testsbase.
31595         Reported by Ralf Wildenhues.
31596
31597 2007-12-22  Bruno Haible  <bruno@clisp.org>
31598
31599         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31600         two variables local_ldadd_before, local_ldadd_last.
31601
31602 2007-12-20  Eric Blake  <ebb9@byu.net>
31603
31604         Work around circular library issue when cross-compiling.
31605         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31606         that progname.o does not need to pull in rpl_memcmp.
31607
31608 2007-12-19  Eric Blake  <ebb9@byu.net>
31609
31610         Fix memmem to avoid O(n^2) worst-case complexity.
31611         * lib/memmem.c (knuth_morris_pratt): New function.
31612         (memmem): Use it if first few naive iterations fail.
31613         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31614         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31615         * modules/memchr (License): Likewise.
31616         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31617         malloca.
31618         * tests/test-memmem.c: Rewrite, borrowing ideas from
31619         test-mbsstr1.c; the old version wouldn't even compile!
31620         * modules/memmem-tests: New file.
31621         * lib/string.in.h (rpl_memmem): Add declaration.
31622         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31624         REPLACE_MEMMEM.
31625
31626 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31627
31628         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31629         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31630         before any system include files, and undef after them all.  This
31631         should fix a problem on VMS reported by John E. Malmberg in
31632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31633
31634 2007-12-17  Eric Blake  <ebb9@byu.net>
31635
31636         Revert addition of verify, for BSD/OS.
31637         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31638         can't handle large files, for the sake of obsolete platforms.
31639         * modules/fseeko (Depends-on): Remove verify.
31640         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31641         * doc/functions/ftello.texi (ftello): Likewise.
31642         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31643         Reported by Larry Jones.
31644
31645 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31646
31647         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31648         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31649
31650 2007-12-17  Jim Meyering  <meyering@redhat.com>
31651
31652         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31653         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31654         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31655         * modules/getcwd (Depends-on): Add openat.
31656         Reported by Petr Salinger.
31657
31658 2007-12-17  Bruno Haible  <bruno@clisp.org>
31659
31660         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31661         avoid a segmentation fault of the configure test on x86_64 systems.
31662
31663 2007-12-15  Jim Meyering  <meyering@redhat.com>
31664
31665         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31666
31667 2007-12-13  Eric Blake  <ebb9@byu.net>
31668
31669         Another fseek test.
31670         * tests/test-fseek.c (main): Also test ungetc handling.
31671         * tests/test-fseeko.c (main): Likewise.
31672         * modules/fseeko (Depends-on): Add verify.
31673         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31674         large.
31675         Reported by Larry Jones.
31676
31677         Fix fseeko on mingw.
31678         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31679         seek.
31680
31681         Beef up fseek tests.
31682         * tests/test-fseek.c (main): Also test eof handling.
31683         * tests/test-fseeko.c (main): Likewise.
31684         Reported by Larry Jones.
31685
31686 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31687
31688         Fix fseeko on BSD-based platforms.
31689         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31690         successful seek.
31691
31692 2007-12-12  Eric Blake  <ebb9@byu.net>
31693
31694         Allow circular dependency of separate libtests.a
31695         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31696         when use_libtests.
31697
31698 2007-12-11  Eric Blake  <ebb9@byu.net>
31699
31700         Fix bug with -0.0L in previous patch.
31701         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31702         * tests/test-isnan.c (main): Also test on zeroes.
31703         * tests/test-isnanf.c (main): Likewise.
31704         * tests/test-isnanl.h (main): Likewise.
31705
31706         Detect pseudo-denormals on x86 even when cross-compiling.
31707         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31708         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31709         invalid bit patterns that happen to satisfy ==.
31710
31711         Avoid link failures with separate libtests.a.
31712         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31713         last, to satisfy circular dependencies.
31714
31715 2007-12-11  Eric Blake  <ebb9@byu.net>
31716         and Bruno Haible  <bruno@clisp.org>
31717
31718         Fix OpenBSD 4.0 <float.h> handling of long double.
31719         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
31720         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
31721         * doc/headers/float.texi (float.h): Document OpenBSD bug.
31722
31723 2007-12-11  Jim Meyering  <meyering@redhat.com>
31724
31725         * users.txt: Add libvirt.
31726
31727         Support versions of autoconf prior to 2.59c.
31728         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
31729         if it is not already defined.
31730
31731 2007-12-09  Bruno Haible  <bruno@clisp.org>
31732
31733         Let 'gnulib-tool --import' collect sources needed for the tests in
31734         tests/ rather than in lib/.
31735         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
31736         argument. If true, add rules to generate libtests.a, and put libtests.a
31737         into $(LDADD). Consider source files in subdirectories and set
31738         uses_subdirs.
31739         (func_emit_initmacro_start, func_emit_initmacro_end,
31740         func_emit_initmacro_done): Pass all arguments explicitly.
31741         (func_import): Determine two module lists main_modules,
31742         testsrelated_modules. Determine use_libtests. Determine two variables
31743         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
31744         instead of just sed_transform_lib_file. Determine two variables
31745         main_files and testsrelated_files. Compute 'files' as the union of
31746         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
31747         func_add_or_update. In the generated gnulib-comp.m4, collect the
31748         object files for tests/ in different variables than those for lib/.
31749         Substitute LIBTESTS_LIBDEPS.
31750         (func_create_testdir): Combine the uses_subdirs results from
31751         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
31752
31753 2007-12-09  Bruno Haible  <bruno@clisp.org>
31754
31755         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
31756         the build-aux directory.
31757
31758 2007-12-09  Bruno Haible  <bruno@clisp.org>
31759
31760         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
31761         introduced on 2006-09-09.
31762
31763 2007-12-07  Jim Meyering  <meyering@redhat.com>
31764
31765         Let these macros work also with autoconf-2.59.
31766         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
31767         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
31768         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31769
31770 2007-12-06  Jim Meyering  <meyering@redhat.com>
31771
31772         Avoid a configure-time syntax error in gl_FUNC_ACL.
31773         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
31774         function in each branch, before testing the cache variable.
31775
31776 2007-12-04  Eric Blake  <ebb9@byu.net>
31777
31778         Make scripts executable.
31779         * build-aux/config.guess: Add execute permissions.
31780         * build-aux/config.sub: Likewise.
31781         * build-aux/gendocs.sh: Likewise.
31782
31783         Fix frexp on mingw.
31784         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
31785         cross-compiling.
31786         * doc/functions/frexp.texi (frexp): Document the bug.
31787
31788         Make cygwin fseeko check more reliable.
31789         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
31790         version numbers, rather than unrelated feature check.
31791         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
31792         * doc/functions/ftello.texi (ftello): Likewise.
31793         Reported by Bruno Haible.
31794
31795         * m4/strerror.m4: Bump version number.
31796
31797 2007-12-03  Bruno Haible  <bruno@clisp.org>
31798
31799         * doc/functions/mprotect.texi: Mention the mingw problem.
31800
31801 2007-12-03  Eric Blake  <ebb9@byu.net>
31802
31803         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
31804         REPLACE_STRERROR is initialized before this macro.
31805
31806 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
31807
31808         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
31809         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
31810         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
31811         put -lsec in even for programs other than 'ls'.  This fixes a problem
31812         for gettext reported by Bruno Haible in
31813         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
31814         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
31815         Add support for Solaris 10.  This isn't efficient, but should get the
31816         job done for now.
31817
31818 2007-12-03  James Youngman  <jay@gnu.org>
31819
31820         * doc/regexprops-generic.texi: change "an close-group" to "a
31821         close-group" and "illegal" to "not allowed".
31822
31823 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31824
31825         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
31826         pr_byname.h. Needed for the rare case when the maintainer has done
31827         "make maintainer-clean" in the source directory and then attempts a
31828         build outside the source directory.
31829         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
31830         scripts_byname.h.
31831
31832 2007-12-02  Martin Lambers <marlam@marlam.de>
31833             Bruno Haible  <bruno@clisp.org>
31834
31835         * lib/getpagesize.h: Remove file.
31836         * lib/unistd.in.h: Include declaration of getpagesize here.
31837         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
31838         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
31839         HAVE_SYS_PARAM_H.
31840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
31841         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31842         * modules/getpagesize (Files): Remove lib/getpagesize.h.
31843         (Depends-on): Add unistd.
31844         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31845         (Include): Use <unistd.h> instead of getpagesize.h.
31846         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
31847         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31848         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
31849         gl_GETPAGESIZE invocation, already handled by module dependency.
31850         * lib/pagealign_alloc.c: Don't include getpagesize.h.
31851
31852 2007-12-02  Bruno Haible  <bruno@clisp.org>
31853
31854         * modules/strings-tests: New file.
31855         * tests/test-strings.c: New file.
31856
31857         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
31858         * lib/strings.in.h: New file.
31859         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
31860         * m4/strings_h.m4: New file.
31861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
31862         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
31863         * modules/strings: New file.
31864         * modules/string (Makefile.am): Update.
31865         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
31866         Reported by Karl Berry.
31867
31868 2007-12-01  Eric Blake  <ebb9@byu.net>
31869
31870         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
31871         accomodate fix in cygwin 1.5.25.
31872
31873 2007-12-01  Jim Meyering  <meyering@redhat.com>
31874
31875         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
31876         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
31877         that would inhibit utf8-optimization of a regexp containing line-
31878         or buffer-anchors, e.g., `^', `$'.
31879
31880 2007-11-30  Bruno Haible  <bruno@clisp.org>
31881
31882         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
31883         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
31884         glthread_recursive_lock_init.
31885         * lib/lock.c (glthread_recursive_lock_init)
31886         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
31887         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31888
31889 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
31890
31891         New function qset_acl, like set_acl but with syscall semantics.
31892         * lib/acl.h (qset_acl): New decl.
31893         * lib/acl.c (qset_acl): New function.
31894         (set_acl): Use new function.  Use more-consistent diagnostics.
31895
31896 2007-11-28  Jim Meyering  <meyering@redhat.com>
31897
31898         * modules/physmem (License): Change from GPL to LGPLv2+.
31899
31900 2007-11-26  Bruno Haible  <bruno@clisp.org>
31901
31902         * lib/vasnprintf.c (decode_long_double): Don't abort if the
31903         'long double' type has excess precision.
31904         Reported by Jim Meyering in
31905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
31906
31907 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31908
31909         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
31910         Sync from <http://gnu.org/licenses>.
31911         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
31912         with license text from same location.
31913         * doc/maintain.texi, doc/standards.texi:  Sync from
31914         <http://savannah.gnu.org/projects/gnustandards>.
31915
31916 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
31917         and Jim Meyering  <meyering@redhat.com>
31918
31919         Adjust getdate' grammar to accept a slightly more regular language.
31920         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
31921         Before, the former was rejected.
31922         * lib/getdate.y (digits_to_date_time): New function, factored
31923         out of ...
31924         (number): ...here.  Just call digits_to_date_time.
31925         (hybrid): New non-terminal to handle an <unsigned number,
31926         signed relative offset> sequence consistently.
31927
31928 2007-11-18  Jim Meyering  <meyering@redhat.com>
31929
31930         Pull my changes from coreutils:
31931         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
31932         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
31933         use of $gnulib_tool_option_extras, so that it's separated from the
31934         preceding argument.
31935
31936         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
31937         * build-aux/bootstrap (cp_mark_as_generated): Create any required
31938         parent destination directories before copying a file into place.
31939
31940 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31941
31942         bootstrap: work also with 4-argument variant of AC_INIT
31943         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
31944
31945 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31946
31947         Port test-getaddrinfo to Solaris.
31948         Problem reported by Bruno Haible in
31949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
31950         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
31951         explanation of setting 'hints'.
31952         Don't reject an implementation merely because it returns EAI_SERVICE.
31953         (EAI_SERVICE): Define to 0 if not defined.
31954
31955 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
31956
31957         The license of gnu-make and posix-shell is now "GPLed build tool".
31958         * modules/gnu-make (License): Likewise.
31959         * modules/posix-shell (License): Likewise.
31960
31961         New module posix-shell, for determining a POSIX shell
31962         or perhaps something that is close enough to a POSIX shell.
31963         * m4/posix-shell.m4: New file.
31964         * modules/posix-shell: New file.
31965
31966         * MODULES.html.sh: Mention new module.
31967
31968         New module gnu-make, for determining whether we're using GNU Make.
31969         * m4/gnu-make.m4: New file.
31970         * modules/gnu-make: New file.
31971         * MODULES.html.sh: Mention new module.
31972
31973 2007-11-14  Jim Meyering  <meyering@redhat.com>
31974
31975         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
31976         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
31977         use this macro to create a function _definition_.
31978         Remove useless "#undef ARGMATCH_DIE".
31979
31980 2007-11-14  Bruno Haible  <bruno@clisp.org>
31981
31982         * lib/config.charset: Update for OpenBSD 4.1.
31983         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
31984
31985 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
31986
31987         Document 64-bit #if problems in stdint.texi.
31988         * doc/headers/stdint.texi (stdint.h): Mention problems with
31989         64-bit-#if, and how to work around them.
31990
31991         Don't insist on 'long long int' support in the preprocessor.  It
31992         breaks too many things.  For example, PRIdMAX still uses a 'long
31993         long int' format with the latest Sun compiler, even though
31994         HAVE_LONG_LONG_INT isn't defined due to that compiler's
31995         preprocessor problem.  This causes the latest coreutils to dump
31996         core on Solaris 10 sparc with the Sun C compiler.
31997         Instead, fix the 2007-10-16 problem in a different way, by evaluating
31998         the troublesome expressions at configure-time, not at #if-time.
31999         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
32000         preprocessor.
32001         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
32002         compile-time C checks, done at 'configure'-time.
32003         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
32004         * modules/inttypes (Makefile): Substitute the new symbols that
32005         gl_INTTYPES_H now generates.
32006         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
32007
32008 2007-11-12  Bruno Haible  <bruno@clisp.org>
32009
32010         Tests for Unicode character classification functions.
32011
32012         * modules/unictype/bidicategory-byname-tests: New file.
32013         * modules/unictype/bidicategory-name-tests: New file.
32014         * modules/unictype/bidicategory-of-tests: New file.
32015         * modules/unictype/bidicategory-test-tests: New file.
32016         * modules/unictype/block-list-tests: New file.
32017         * modules/unictype/block-of-tests: New file.
32018         * modules/unictype/block-test-tests: New file.
32019         * modules/unictype/category-C-tests: New file.
32020         * modules/unictype/category-Cc-tests: New file.
32021         * modules/unictype/category-Cf-tests: New file.
32022         * modules/unictype/category-Cn-tests: New file.
32023         * modules/unictype/category-Co-tests: New file.
32024         * modules/unictype/category-Cs-tests: New file.
32025         * modules/unictype/category-L-tests: New file.
32026         * modules/unictype/category-Ll-tests: New file.
32027         * modules/unictype/category-Lm-tests: New file.
32028         * modules/unictype/category-Lo-tests: New file.
32029         * modules/unictype/category-Lt-tests: New file.
32030         * modules/unictype/category-Lu-tests: New file.
32031         * modules/unictype/category-M-tests: New file.
32032         * modules/unictype/category-Mc-tests: New file.
32033         * modules/unictype/category-Me-tests: New file.
32034         * modules/unictype/category-Mn-tests: New file.
32035         * modules/unictype/category-N-tests: New file.
32036         * modules/unictype/category-Nd-tests: New file.
32037         * modules/unictype/category-Nl-tests: New file.
32038         * modules/unictype/category-No-tests: New file.
32039         * modules/unictype/category-P-tests: New file.
32040         * modules/unictype/category-Pc-tests: New file.
32041         * modules/unictype/category-Pd-tests: New file.
32042         * modules/unictype/category-Pe-tests: New file.
32043         * modules/unictype/category-Pf-tests: New file.
32044         * modules/unictype/category-Pi-tests: New file.
32045         * modules/unictype/category-Po-tests: New file.
32046         * modules/unictype/category-Ps-tests: New file.
32047         * modules/unictype/category-S-tests: New file.
32048         * modules/unictype/category-Sc-tests: New file.
32049         * modules/unictype/category-Sk-tests: New file.
32050         * modules/unictype/category-Sm-tests: New file.
32051         * modules/unictype/category-So-tests: New file.
32052         * modules/unictype/category-Z-tests: New file.
32053         * modules/unictype/category-Zl-tests: New file.
32054         * modules/unictype/category-Zp-tests: New file.
32055         * modules/unictype/category-Zs-tests: New file.
32056         * modules/unictype/category-and-not-tests: New file.
32057         * modules/unictype/category-and-tests: New file.
32058         * modules/unictype/category-byname-tests: New file.
32059         * modules/unictype/category-name-tests: New file.
32060         * modules/unictype/category-none-tests: New file.
32061         * modules/unictype/category-of-tests: New file.
32062         * modules/unictype/category-or-tests: New file.
32063         * modules/unictype/category-test-withtable-tests: New file.
32064         * modules/unictype/combining-class-tests: New file.
32065         * modules/unictype/ctype-alnum-tests: New file.
32066         * modules/unictype/ctype-alpha-tests: New file.
32067         * modules/unictype/ctype-blank-tests: New file.
32068         * modules/unictype/ctype-cntrl-tests: New file.
32069         * modules/unictype/ctype-digit-tests: New file.
32070         * modules/unictype/ctype-graph-tests: New file.
32071         * modules/unictype/ctype-lower-tests: New file.
32072         * modules/unictype/ctype-print-tests: New file.
32073         * modules/unictype/ctype-punct-tests: New file.
32074         * modules/unictype/ctype-space-tests: New file.
32075         * modules/unictype/ctype-upper-tests: New file.
32076         * modules/unictype/ctype-xdigit-tests: New file.
32077         * modules/unictype/decimal-digit-tests: New file.
32078         * modules/unictype/digit-tests: New file.
32079         * modules/unictype/mirror-tests: New file.
32080         * modules/unictype/numeric-tests: New file.
32081         * modules/unictype/property-alphabetic-tests: New file.
32082         * modules/unictype/property-ascii-hex-digit-tests: New file.
32083         * modules/unictype/property-bidi-arabic-digit-tests: New file.
32084         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
32085         * modules/unictype/property-bidi-block-separator-tests: New file.
32086         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
32087         * modules/unictype/property-bidi-common-separator-tests: New file.
32088         * modules/unictype/property-bidi-control-tests: New file.
32089         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
32090         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
32091         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
32092         * modules/unictype/property-bidi-european-digit-tests: New file.
32093         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
32094         * modules/unictype/property-bidi-left-to-right-tests: New file.
32095         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
32096         * modules/unictype/property-bidi-other-neutral-tests: New file.
32097         * modules/unictype/property-bidi-pdf-tests: New file.
32098         * modules/unictype/property-bidi-segment-separator-tests: New file.
32099         * modules/unictype/property-bidi-whitespace-tests: New file.
32100         * modules/unictype/property-byname-tests: New file.
32101         * modules/unictype/property-combining-tests: New file.
32102         * modules/unictype/property-composite-tests: New file.
32103         * modules/unictype/property-currency-symbol-tests: New file.
32104         * modules/unictype/property-dash-tests: New file.
32105         * modules/unictype/property-decimal-digit-tests: New file.
32106         * modules/unictype/property-default-ignorable-code-point-tests: New file.
32107         * modules/unictype/property-deprecated-tests: New file.
32108         * modules/unictype/property-diacritic-tests: New file.
32109         * modules/unictype/property-extender-tests: New file.
32110         * modules/unictype/property-format-control-tests: New file.
32111         * modules/unictype/property-grapheme-base-tests: New file.
32112         * modules/unictype/property-grapheme-extend-tests: New file.
32113         * modules/unictype/property-grapheme-link-tests: New file.
32114         * modules/unictype/property-hex-digit-tests: New file.
32115         * modules/unictype/property-hyphen-tests: New file.
32116         * modules/unictype/property-id-continue-tests: New file.
32117         * modules/unictype/property-id-start-tests: New file.
32118         * modules/unictype/property-ideographic-tests: New file.
32119         * modules/unictype/property-ids-binary-operator-tests: New file.
32120         * modules/unictype/property-ids-trinary-operator-tests: New file.
32121         * modules/unictype/property-ignorable-control-tests: New file.
32122         * modules/unictype/property-iso-control-tests: New file.
32123         * modules/unictype/property-join-control-tests: New file.
32124         * modules/unictype/property-left-of-pair-tests: New file.
32125         * modules/unictype/property-line-separator-tests: New file.
32126         * modules/unictype/property-logical-order-exception-tests: New file.
32127         * modules/unictype/property-lowercase-tests: New file.
32128         * modules/unictype/property-math-tests: New file.
32129         * modules/unictype/property-non-break-tests: New file.
32130         * modules/unictype/property-not-a-character-tests: New file.
32131         * modules/unictype/property-numeric-tests: New file.
32132         * modules/unictype/property-other-alphabetic-tests: New file.
32133         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
32134         * modules/unictype/property-other-grapheme-extend-tests: New file.
32135         * modules/unictype/property-other-id-continue-tests: New file.
32136         * modules/unictype/property-other-id-start-tests: New file.
32137         * modules/unictype/property-other-lowercase-tests: New file.
32138         * modules/unictype/property-other-math-tests: New file.
32139         * modules/unictype/property-other-uppercase-tests: New file.
32140         * modules/unictype/property-paired-punctuation-tests: New file.
32141         * modules/unictype/property-paragraph-separator-tests: New file.
32142         * modules/unictype/property-pattern-syntax-tests: New file.
32143         * modules/unictype/property-pattern-white-space-tests: New file.
32144         * modules/unictype/property-private-use-tests: New file.
32145         * modules/unictype/property-punctuation-tests: New file.
32146         * modules/unictype/property-quotation-mark-tests: New file.
32147         * modules/unictype/property-radical-tests: New file.
32148         * modules/unictype/property-sentence-terminal-tests: New file.
32149         * modules/unictype/property-soft-dotted-tests: New file.
32150         * modules/unictype/property-space-tests: New file.
32151         * modules/unictype/property-terminal-punctuation-tests: New file.
32152         * modules/unictype/property-test-tests: New file.
32153         * modules/unictype/property-titlecase-tests: New file.
32154         * modules/unictype/property-unassigned-code-value-tests: New file.
32155         * modules/unictype/property-unified-ideograph-tests: New file.
32156         * modules/unictype/property-uppercase-tests: New file.
32157         * modules/unictype/property-variation-selector-tests: New file.
32158         * modules/unictype/property-white-space-tests: New file.
32159         * modules/unictype/property-xid-continue-tests: New file.
32160         * modules/unictype/property-xid-start-tests: New file.
32161         * modules/unictype/property-zero-width-tests: New file.
32162         * modules/unictype/scripts-tests: New file.
32163         * modules/unictype/syntax-c-ident-tests: New file.
32164         * modules/unictype/syntax-c-whitespace-tests: New file.
32165         * modules/unictype/syntax-java-ident-tests: New file.
32166         * modules/unictype/syntax-java-whitespace-tests: New file.
32167         * tests/unictype/test-bidi_byname.c: New file.
32168         * tests/unictype/test-bidi_name.c: New file.
32169         * tests/unictype/test-bidi_of.c: New file.
32170         * tests/unictype/test-bidi_test.c: New file.
32171         * tests/unictype/test-block_list.c: New file.
32172         * tests/unictype/test-block_of.c: New file.
32173         * tests/unictype/test-block_test.c: New file.
32174         * tests/unictype/test-categ_and.c: New file.
32175         * tests/unictype/test-categ_and_not.c: New file.
32176         * tests/unictype/test-categ_byname.c: New file.
32177         * tests/unictype/test-categ_name.c: New file.
32178         * tests/unictype/test-categ_none.c: New file.
32179         * tests/unictype/test-categ_of.c: New file.
32180         * tests/unictype/test-categ_or.c: New file.
32181         * tests/unictype/test-categ_test_withtable.c: New file.
32182         * tests/unictype/test-combining.c: New file.
32183         * tests/unictype/test-decdigit.c: New file.
32184         * tests/unictype/test-digit.c: New file.
32185         * tests/unictype/test-mirror.c: New file.
32186         * tests/unictype/test-numeric.c: New file.
32187         * tests/unictype/test-pr_byname.c: New file.
32188         * tests/unictype/test-pr_test.c: New file.
32189         * tests/unictype/test-predicate-part1.h: New file.
32190         * tests/unictype/test-predicate-part2.h: New file.
32191         * tests/unictype/test-scripts.c: New file.
32192         * tests/unictype/test-sy_c_ident.c: New file.
32193         * tests/unictype/test-sy_java_ident.c: New file.
32194
32195         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
32196         for Unicode 5.0.0.
32197         * tests/unictype/test-categ_Cc.c: Likewise.
32198         * tests/unictype/test-categ_Cf.c: Likewise.
32199         * tests/unictype/test-categ_Cn.c: Likewise.
32200         * tests/unictype/test-categ_Co.c: Likewise.
32201         * tests/unictype/test-categ_Cs.c: Likewise.
32202         * tests/unictype/test-categ_L.c: Likewise.
32203         * tests/unictype/test-categ_Ll.c: Likewise.
32204         * tests/unictype/test-categ_Lm.c: Likewise.
32205         * tests/unictype/test-categ_Lo.c: Likewise.
32206         * tests/unictype/test-categ_Lt.c: Likewise.
32207         * tests/unictype/test-categ_Lu.c: Likewise.
32208         * tests/unictype/test-categ_M.c: Likewise.
32209         * tests/unictype/test-categ_Mc.c: Likewise.
32210         * tests/unictype/test-categ_Me.c: Likewise.
32211         * tests/unictype/test-categ_Mn.c: Likewise.
32212         * tests/unictype/test-categ_N.c: Likewise.
32213         * tests/unictype/test-categ_Nd.c: Likewise.
32214         * tests/unictype/test-categ_Nl.c: Likewise.
32215         * tests/unictype/test-categ_No.c: Likewise.
32216         * tests/unictype/test-categ_P.c: Likewise.
32217         * tests/unictype/test-categ_Pc.c: Likewise.
32218         * tests/unictype/test-categ_Pd.c: Likewise.
32219         * tests/unictype/test-categ_Pe.c: Likewise.
32220         * tests/unictype/test-categ_Pf.c: Likewise.
32221         * tests/unictype/test-categ_Pi.c: Likewise.
32222         * tests/unictype/test-categ_Po.c: Likewise.
32223         * tests/unictype/test-categ_Ps.c: Likewise.
32224         * tests/unictype/test-categ_S.c: Likewise.
32225         * tests/unictype/test-categ_Sc.c: Likewise.
32226         * tests/unictype/test-categ_Sk.c: Likewise.
32227         * tests/unictype/test-categ_Sm.c: Likewise.
32228         * tests/unictype/test-categ_So.c: Likewise.
32229         * tests/unictype/test-categ_Z.c: Likewise.
32230         * tests/unictype/test-categ_Zl.c: Likewise.
32231         * tests/unictype/test-categ_Zp.c: Likewise.
32232         * tests/unictype/test-categ_Zs.c: Likewise.
32233         * tests/unictype/test-ctype_alnum.c: Likewise.
32234         * tests/unictype/test-ctype_alpha.c: Likewise.
32235         * tests/unictype/test-ctype_blank.c: Likewise.
32236         * tests/unictype/test-ctype_cntrl.c: Likewise.
32237         * tests/unictype/test-ctype_digit.c: Likewise.
32238         * tests/unictype/test-ctype_graph.c: Likewise.
32239         * tests/unictype/test-ctype_lower.c: Likewise.
32240         * tests/unictype/test-ctype_print.c: Likewise.
32241         * tests/unictype/test-ctype_punct.c: Likewise.
32242         * tests/unictype/test-ctype_space.c: Likewise.
32243         * tests/unictype/test-ctype_upper.c: Likewise.
32244         * tests/unictype/test-ctype_xdigit.c: Likewise.
32245         * tests/unictype/test-decdigit.h: Likewise.
32246         * tests/unictype/test-digit.h: Likewise.
32247         * tests/unictype/test-numeric.h: Likewise.
32248         * tests/unictype/test-pr_alphabetic.c: Likewise.
32249         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
32250         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
32251         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
32252         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
32253         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
32254         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
32255         * tests/unictype/test-pr_bidi_control.c: Likewise.
32256         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
32257         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
32258         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
32259         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
32260         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
32261         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
32262         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
32263         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
32264         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
32265         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
32266         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
32267         * tests/unictype/test-pr_combining.c: Likewise.
32268         * tests/unictype/test-pr_composite.c: Likewise.
32269         * tests/unictype/test-pr_currency_symbol.c: Likewise.
32270         * tests/unictype/test-pr_dash.c: Likewise.
32271         * tests/unictype/test-pr_decimal_digit.c: Likewise.
32272         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
32273         * tests/unictype/test-pr_deprecated.c: Likewise.
32274         * tests/unictype/test-pr_diacritic.c: Likewise.
32275         * tests/unictype/test-pr_extender.c: Likewise.
32276         * tests/unictype/test-pr_format_control.c: Likewise.
32277         * tests/unictype/test-pr_grapheme_base.c: Likewise.
32278         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
32279         * tests/unictype/test-pr_grapheme_link.c: Likewise.
32280         * tests/unictype/test-pr_hex_digit.c: Likewise.
32281         * tests/unictype/test-pr_hyphen.c: Likewise.
32282         * tests/unictype/test-pr_id_continue.c: Likewise.
32283         * tests/unictype/test-pr_id_start.c: Likewise.
32284         * tests/unictype/test-pr_ideographic.c: Likewise.
32285         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
32286         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
32287         * tests/unictype/test-pr_ignorable_control.c: Likewise.
32288         * tests/unictype/test-pr_iso_control.c: Likewise.
32289         * tests/unictype/test-pr_join_control.c: Likewise.
32290         * tests/unictype/test-pr_left_of_pair.c: Likewise.
32291         * tests/unictype/test-pr_line_separator.c: Likewise.
32292         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
32293         * tests/unictype/test-pr_lowercase.c: Likewise.
32294         * tests/unictype/test-pr_math.c: Likewise.
32295         * tests/unictype/test-pr_non_break.c: Likewise.
32296         * tests/unictype/test-pr_not_a_character.c: Likewise.
32297         * tests/unictype/test-pr_numeric.c: Likewise.
32298         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
32299         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
32300         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
32301         * tests/unictype/test-pr_other_id_continue.c: Likewise.
32302         * tests/unictype/test-pr_other_id_start.c: Likewise.
32303         * tests/unictype/test-pr_other_lowercase.c: Likewise.
32304         * tests/unictype/test-pr_other_math.c: Likewise.
32305         * tests/unictype/test-pr_other_uppercase.c: Likewise.
32306         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
32307         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
32308         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
32309         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
32310         * tests/unictype/test-pr_private_use.c: Likewise.
32311         * tests/unictype/test-pr_punctuation.c: Likewise.
32312         * tests/unictype/test-pr_quotation_mark.c: Likewise.
32313         * tests/unictype/test-pr_radical.c: Likewise.
32314         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
32315         * tests/unictype/test-pr_soft_dotted.c: Likewise.
32316         * tests/unictype/test-pr_space.c: Likewise.
32317         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
32318         * tests/unictype/test-pr_titlecase.c: Likewise.
32319         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
32320         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
32321         * tests/unictype/test-pr_uppercase.c: Likewise.
32322         * tests/unictype/test-pr_variation_selector.c: Likewise.
32323         * tests/unictype/test-pr_white_space.c: Likewise.
32324         * tests/unictype/test-pr_xid_continue.c: Likewise.
32325         * tests/unictype/test-pr_xid_start.c: Likewise.
32326         * tests/unictype/test-pr_zero_width.c: Likewise.
32327         * tests/unictype/test-sy_c_whitespace.c: Likewise.
32328         * tests/unictype/test-sy_java_whitespace.c: Likewise.
32329
32330 2007-11-12  Bruno Haible  <bruno@clisp.org>
32331
32332         Unicode character classification functions.
32333         * lib/unictype.h: New file.
32334         * modules/unictype/base: New file.
32335         * modules/unictype/category-L: New file.
32336         * modules/unictype/category-Lu: New file.
32337         * modules/unictype/category-Ll: New file.
32338         * modules/unictype/category-Lt: New file.
32339         * modules/unictype/category-Lm: New file.
32340         * modules/unictype/category-Lo: New file.
32341         * modules/unictype/category-M: New file.
32342         * modules/unictype/category-Mn: New file.
32343         * modules/unictype/category-Mc: New file.
32344         * modules/unictype/category-Me: New file.
32345         * modules/unictype/category-N: New file.
32346         * modules/unictype/category-Nd: New file.
32347         * modules/unictype/category-Nl: New file.
32348         * modules/unictype/category-No: New file.
32349         * modules/unictype/category-P: New file.
32350         * modules/unictype/category-Pc: New file.
32351         * modules/unictype/category-Pd: New file.
32352         * modules/unictype/category-Ps: New file.
32353         * modules/unictype/category-Pe: New file.
32354         * modules/unictype/category-Pi: New file.
32355         * modules/unictype/category-Pf: New file.
32356         * modules/unictype/category-Po: New file.
32357         * modules/unictype/category-S: New file.
32358         * modules/unictype/category-Sm: New file.
32359         * modules/unictype/category-Sc: New file.
32360         * modules/unictype/category-Sk: New file.
32361         * modules/unictype/category-So: New file.
32362         * modules/unictype/category-Z: New file.
32363         * modules/unictype/category-Zs: New file.
32364         * modules/unictype/category-Zl: New file.
32365         * modules/unictype/category-Zp: New file.
32366         * modules/unictype/category-C: New file.
32367         * modules/unictype/category-Cc: New file.
32368         * modules/unictype/category-Cf: New file.
32369         * modules/unictype/category-Cs: New file.
32370         * modules/unictype/category-Co: New file.
32371         * modules/unictype/category-Cn: New file.
32372         * modules/unictype/category-or: New file.
32373         * modules/unictype/category-of: New file.
32374         * modules/unictype/category-test: New file.
32375         * modules/unictype/category-test-withtable: New file.
32376         * modules/unictype/category-byname: New file.
32377         * modules/unictype/category-none: New file.
32378         * modules/unictype/category-and: New file.
32379         * modules/unictype/category-and-not: New file.
32380         * modules/unictype/category-name: New file.
32381         * modules/unictype/combining-class: New file.
32382         * modules/unictype/category-all: New file.
32383         * modules/unictype/bidicategory-all: New file.
32384         * modules/unictype/bidicategory-byname: New file.
32385         * modules/unictype/bidicategory-name: New file.
32386         * modules/unictype/bidicategory-of: New file.
32387         * modules/unictype/bidicategory-test: New file.
32388         * modules/unictype/decimal-digit: New file.
32389         * modules/unictype/digit: New file.
32390         * modules/unictype/numeric: New file.
32391         * modules/unictype/mirror: New file.
32392         * modules/unictype/property-white-space: New file.
32393         * modules/unictype/property-alphabetic: New file.
32394         * modules/unictype/property-other-alphabetic: New file.
32395         * modules/unictype/property-not-a-character: New file.
32396         * modules/unictype/property-default-ignorable-code-point: New file.
32397         * modules/unictype/property-other-default-ignorable-code-point: New
32398         file.
32399         * modules/unictype/property-deprecated: New file.
32400         * modules/unictype/property-logical-order-exception: New file.
32401         * modules/unictype/property-variation-selector: New file.
32402         * modules/unictype/property-private-use: New file.
32403         * modules/unictype/property-unassigned-code-value: New file.
32404         * modules/unictype/property-uppercase: New file.
32405         * modules/unictype/property-other-uppercase: New file.
32406         * modules/unictype/property-lowercase: New file.
32407         * modules/unictype/property-other-lowercase: New file.
32408         * modules/unictype/property-titlecase: New file.
32409         * modules/unictype/property-soft-dotted: New file.
32410         * modules/unictype/property-id-start: New file.
32411         * modules/unictype/property-other-id-start: New file.
32412         * modules/unictype/property-id-continue: New file.
32413         * modules/unictype/property-other-id-continue: New file.
32414         * modules/unictype/property-xid-start: New file.
32415         * modules/unictype/property-xid-continue: New file.
32416         * modules/unictype/property-pattern-white-space: New file.
32417         * modules/unictype/property-pattern-syntax: New file.
32418         * modules/unictype/property-join-control: New file.
32419         * modules/unictype/property-grapheme-base: New file.
32420         * modules/unictype/property-grapheme-extend: New file.
32421         * modules/unictype/property-other-grapheme-extend: New file.
32422         * modules/unictype/property-grapheme-link: New file.
32423         * modules/unictype/property-bidi-control: New file.
32424         * modules/unictype/property-bidi-left-to-right: New file.
32425         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
32426         * modules/unictype/property-bidi-arabic-right-to-left: New file.
32427         * modules/unictype/property-bidi-european-digit: New file.
32428         * modules/unictype/property-bidi-eur-num-separator: New file.
32429         * modules/unictype/property-bidi-eur-num-terminator: New file.
32430         * modules/unictype/property-bidi-arabic-digit: New file.
32431         * modules/unictype/property-bidi-common-separator: New file.
32432         * modules/unictype/property-bidi-block-separator: New file.
32433         * modules/unictype/property-bidi-segment-separator: New file.
32434         * modules/unictype/property-bidi-whitespace: New file.
32435         * modules/unictype/property-bidi-non-spacing-mark: New file.
32436         * modules/unictype/property-bidi-boundary-neutral: New file.
32437         * modules/unictype/property-bidi-pdf: New file.
32438         * modules/unictype/property-bidi-embedding-or-override: New file.
32439         * modules/unictype/property-bidi-other-neutral: New file.
32440         * modules/unictype/property-hex-digit: New file.
32441         * modules/unictype/property-ascii-hex-digit: New file.
32442         * modules/unictype/property-ideographic: New file.
32443         * modules/unictype/property-unified-ideograph: New file.
32444         * modules/unictype/property-radical: New file.
32445         * modules/unictype/property-ids-binary-operator: New file.
32446         * modules/unictype/property-ids-trinary-operator: New file.
32447         * modules/unictype/property-zero-width: New file.
32448         * modules/unictype/property-space: New file.
32449         * modules/unictype/property-non-break: New file.
32450         * modules/unictype/property-iso-control: New file.
32451         * modules/unictype/property-format-control: New file.
32452         * modules/unictype/property-dash: New file.
32453         * modules/unictype/property-hyphen: New file.
32454         * modules/unictype/property-punctuation: New file.
32455         * modules/unictype/property-line-separator: New file.
32456         * modules/unictype/property-paragraph-separator: New file.
32457         * modules/unictype/property-quotation-mark: New file.
32458         * modules/unictype/property-sentence-terminal: New file.
32459         * modules/unictype/property-terminal-punctuation: New file.
32460         * modules/unictype/property-currency-symbol: New file.
32461         * modules/unictype/property-math: New file.
32462         * modules/unictype/property-other-math: New file.
32463         * modules/unictype/property-paired-punctuation: New file.
32464         * modules/unictype/property-left-of-pair: New file.
32465         * modules/unictype/property-combining: New file.
32466         * modules/unictype/property-composite: New file.
32467         * modules/unictype/property-decimal-digit: New file.
32468         * modules/unictype/property-numeric: New file.
32469         * modules/unictype/property-diacritic: New file.
32470         * modules/unictype/property-extender: New file.
32471         * modules/unictype/property-ignorable-control: New file.
32472         * modules/unictype/property-test: New file.
32473         * modules/unictype/property-byname: New file.
32474         * modules/unictype/property-all: New file.
32475         * modules/unictype/scripts: New file.
32476         * modules/unictype/scripts-all: New file.
32477         * modules/unictype/block-of: New file.
32478         * modules/unictype/block-test: New file.
32479         * modules/unictype/block-list: New file.
32480         * modules/unictype/block-all: New file.
32481         * modules/unictype/syntax-c-whitespace: New file.
32482         * modules/unictype/syntax-java-whitespace: New file.
32483         * modules/unictype/syntax-c-ident: New file.
32484         * modules/unictype/syntax-java-ident: New file.
32485         * modules/unictype/ctype-alnum: New file.
32486         * modules/unictype/ctype-alpha: New file.
32487         * modules/unictype/ctype-cntrl: New file.
32488         * modules/unictype/ctype-digit: New file.
32489         * modules/unictype/ctype-graph: New file.
32490         * modules/unictype/ctype-lower: New file.
32491         * modules/unictype/ctype-print: New file.
32492         * modules/unictype/ctype-punct: New file.
32493         * modules/unictype/ctype-space: New file.
32494         * modules/unictype/ctype-upper: New file.
32495         * modules/unictype/ctype-xdigit: New file.
32496         * modules/unictype/ctype-blank: New file.
32497         * lib/unictype/bidi_byname.c: New file.
32498         * lib/unictype/bidi_name.c: New file.
32499         * lib/unictype/bidi_of.c: New file.
32500         * lib/unictype/bidi_test.c: New file.
32501         * lib/unictype/bitmap.h: New file.
32502         * lib/unictype/block_test.c: New file.
32503         * lib/unictype/blocks.c: New file.
32504         * lib/unictype/categ_C.c: New file.
32505         * lib/unictype/categ_Cc.c: New file.
32506         * lib/unictype/categ_Cf.c: New file.
32507         * lib/unictype/categ_Cn.c: New file.
32508         * lib/unictype/categ_Co.c: New file.
32509         * lib/unictype/categ_Cs.c: New file.
32510         * lib/unictype/categ_L.c: New file.
32511         * lib/unictype/categ_Ll.c: New file.
32512         * lib/unictype/categ_Lm.c: New file.
32513         * lib/unictype/categ_Lo.c: New file.
32514         * lib/unictype/categ_Lt.c: New file.
32515         * lib/unictype/categ_Lu.c: New file.
32516         * lib/unictype/categ_M.c: New file.
32517         * lib/unictype/categ_Mc.c: New file.
32518         * lib/unictype/categ_Me.c: New file.
32519         * lib/unictype/categ_Mn.c: New file.
32520         * lib/unictype/categ_N.c: New file.
32521         * lib/unictype/categ_Nd.c: New file.
32522         * lib/unictype/categ_Nl.c: New file.
32523         * lib/unictype/categ_No.c: New file.
32524         * lib/unictype/categ_P.c: New file.
32525         * lib/unictype/categ_Pc.c: New file.
32526         * lib/unictype/categ_Pd.c: New file.
32527         * lib/unictype/categ_Pe.c: New file.
32528         * lib/unictype/categ_Pf.c: New file.
32529         * lib/unictype/categ_Pi.c: New file.
32530         * lib/unictype/categ_Po.c: New file.
32531         * lib/unictype/categ_Ps.c: New file.
32532         * lib/unictype/categ_S.c: New file.
32533         * lib/unictype/categ_Sc.c: New file.
32534         * lib/unictype/categ_Sk.c: New file.
32535         * lib/unictype/categ_Sm.c: New file.
32536         * lib/unictype/categ_So.c: New file.
32537         * lib/unictype/categ_Z.c: New file.
32538         * lib/unictype/categ_Zl.c: New file.
32539         * lib/unictype/categ_Zp.c: New file.
32540         * lib/unictype/categ_Zs.c: New file.
32541         * lib/unictype/categ_and.c: New file.
32542         * lib/unictype/categ_and_not.c: New file.
32543         * lib/unictype/categ_byname.c: New file.
32544         * lib/unictype/categ_name.c: New file.
32545         * lib/unictype/categ_none.c: New file.
32546         * lib/unictype/categ_of.c: New file.
32547         * lib/unictype/categ_or.c: New file.
32548         * lib/unictype/categ_test.c: New file.
32549         * lib/unictype/combining.c: New file.
32550         * lib/unictype/ctype_alnum.c: New file.
32551         * lib/unictype/ctype_alpha.c: New file.
32552         * lib/unictype/ctype_blank.c: New file.
32553         * lib/unictype/ctype_cntrl.c: New file.
32554         * lib/unictype/ctype_digit.c: New file.
32555         * lib/unictype/ctype_graph.c: New file.
32556         * lib/unictype/ctype_lower.c: New file.
32557         * lib/unictype/ctype_print.c: New file.
32558         * lib/unictype/ctype_punct.c: New file.
32559         * lib/unictype/ctype_space.c: New file.
32560         * lib/unictype/ctype_upper.c: New file.
32561         * lib/unictype/ctype_xdigit.c: New file.
32562         * lib/unictype/decdigit.c: New file.
32563         * lib/unictype/digit.c: New file.
32564         * lib/unictype/identsyntaxmap.h: New file.
32565         * lib/unictype/mirror.c: New file.
32566         * lib/unictype/numeric.c: New file.
32567         * lib/unictype/pr_alphabetic.c: New file.
32568         * lib/unictype/pr_ascii_hex_digit.c: New file.
32569         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32570         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32571         * lib/unictype/pr_bidi_block_separator.c: New file.
32572         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32573         * lib/unictype/pr_bidi_common_separator.c: New file.
32574         * lib/unictype/pr_bidi_control.c: New file.
32575         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32576         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32577         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32578         * lib/unictype/pr_bidi_european_digit.c: New file.
32579         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32580         * lib/unictype/pr_bidi_left_to_right.c: New file.
32581         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32582         * lib/unictype/pr_bidi_other_neutral.c: New file.
32583         * lib/unictype/pr_bidi_pdf.c: New file.
32584         * lib/unictype/pr_bidi_segment_separator.c: New file.
32585         * lib/unictype/pr_bidi_whitespace.c: New file.
32586         * lib/unictype/pr_byname.c: New file.
32587         * lib/unictype/pr_byname.gperf: New file.
32588         * lib/unictype/pr_combining.c: New file.
32589         * lib/unictype/pr_composite.c: New file.
32590         * lib/unictype/pr_currency_symbol.c: New file.
32591         * lib/unictype/pr_dash.c: New file.
32592         * lib/unictype/pr_decimal_digit.c: New file.
32593         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32594         * lib/unictype/pr_deprecated.c: New file.
32595         * lib/unictype/pr_diacritic.c: New file.
32596         * lib/unictype/pr_extender.c: New file.
32597         * lib/unictype/pr_format_control.c: New file.
32598         * lib/unictype/pr_grapheme_base.c: New file.
32599         * lib/unictype/pr_grapheme_extend.c: New file.
32600         * lib/unictype/pr_grapheme_link.c: New file.
32601         * lib/unictype/pr_hex_digit.c: New file.
32602         * lib/unictype/pr_hyphen.c: New file.
32603         * lib/unictype/pr_id_continue.c: New file.
32604         * lib/unictype/pr_id_start.c: New file.
32605         * lib/unictype/pr_ideographic.c: New file.
32606         * lib/unictype/pr_ids_binary_operator.c: New file.
32607         * lib/unictype/pr_ids_trinary_operator.c: New file.
32608         * lib/unictype/pr_ignorable_control.c: New file.
32609         * lib/unictype/pr_iso_control.c: New file.
32610         * lib/unictype/pr_join_control.c: New file.
32611         * lib/unictype/pr_left_of_pair.c: New file.
32612         * lib/unictype/pr_line_separator.c: New file.
32613         * lib/unictype/pr_logical_order_exception.c: New file.
32614         * lib/unictype/pr_lowercase.c: New file.
32615         * lib/unictype/pr_math.c: New file.
32616         * lib/unictype/pr_non_break.c: New file.
32617         * lib/unictype/pr_not_a_character.c: New file.
32618         * lib/unictype/pr_numeric.c: New file.
32619         * lib/unictype/pr_other_alphabetic.c: New file.
32620         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32621         * lib/unictype/pr_other_grapheme_extend.c: New file.
32622         * lib/unictype/pr_other_id_continue.c: New file.
32623         * lib/unictype/pr_other_id_start.c: New file.
32624         * lib/unictype/pr_other_lowercase.c: New file.
32625         * lib/unictype/pr_other_math.c: New file.
32626         * lib/unictype/pr_other_uppercase.c: New file.
32627         * lib/unictype/pr_paired_punctuation.c: New file.
32628         * lib/unictype/pr_paragraph_separator.c: New file.
32629         * lib/unictype/pr_pattern_syntax.c: New file.
32630         * lib/unictype/pr_pattern_white_space.c: New file.
32631         * lib/unictype/pr_private_use.c: New file.
32632         * lib/unictype/pr_punctuation.c: New file.
32633         * lib/unictype/pr_quotation_mark.c: New file.
32634         * lib/unictype/pr_radical.c: New file.
32635         * lib/unictype/pr_sentence_terminal.c: New file.
32636         * lib/unictype/pr_soft_dotted.c: New file.
32637         * lib/unictype/pr_space.c: New file.
32638         * lib/unictype/pr_terminal_punctuation.c: New file.
32639         * lib/unictype/pr_test.c: New file.
32640         * lib/unictype/pr_titlecase.c: New file.
32641         * lib/unictype/pr_unassigned_code_value.c: New file.
32642         * lib/unictype/pr_unified_ideograph.c: New file.
32643         * lib/unictype/pr_uppercase.c: New file.
32644         * lib/unictype/pr_variation_selector.c: New file.
32645         * lib/unictype/pr_white_space.c: New file.
32646         * lib/unictype/pr_xid_continue.c: New file.
32647         * lib/unictype/pr_xid_start.c: New file.
32648         * lib/unictype/pr_zero_width.c: New file.
32649         * lib/unictype/scripts.c: New file.
32650         * lib/unictype/sy_c_ident.c: New file.
32651         * lib/unictype/sy_c_whitespace.c: New file.
32652         * lib/unictype/sy_java_ident.c: New file.
32653         * lib/unictype/sy_java_whitespace.c: New file.
32654
32655         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32656         Unicode 5.0.0.
32657         * lib/unictype/blocks.h: Likewise.
32658         * lib/unictype/categ_C.h: Likewise.
32659         * lib/unictype/categ_Cc.h: Likewise.
32660         * lib/unictype/categ_Cf.h: Likewise.
32661         * lib/unictype/categ_Cn.h: Likewise.
32662         * lib/unictype/categ_Co.h: Likewise.
32663         * lib/unictype/categ_Cs.h: Likewise.
32664         * lib/unictype/categ_L.h: Likewise.
32665         * lib/unictype/categ_Ll.h: Likewise.
32666         * lib/unictype/categ_Lm.h: Likewise.
32667         * lib/unictype/categ_Lo.h: Likewise.
32668         * lib/unictype/categ_Lt.h: Likewise.
32669         * lib/unictype/categ_Lu.h: Likewise.
32670         * lib/unictype/categ_M.h: Likewise.
32671         * lib/unictype/categ_Mc.h: Likewise.
32672         * lib/unictype/categ_Me.h: Likewise.
32673         * lib/unictype/categ_Mn.h: Likewise.
32674         * lib/unictype/categ_N.h: Likewise.
32675         * lib/unictype/categ_Nd.h: Likewise.
32676         * lib/unictype/categ_Nl.h: Likewise.
32677         * lib/unictype/categ_No.h: Likewise.
32678         * lib/unictype/categ_P.h: Likewise.
32679         * lib/unictype/categ_Pc.h: Likewise.
32680         * lib/unictype/categ_Pd.h: Likewise.
32681         * lib/unictype/categ_Pe.h: Likewise.
32682         * lib/unictype/categ_Pf.h: Likewise.
32683         * lib/unictype/categ_Pi.h: Likewise.
32684         * lib/unictype/categ_Po.h: Likewise.
32685         * lib/unictype/categ_Ps.h: Likewise.
32686         * lib/unictype/categ_S.h: Likewise.
32687         * lib/unictype/categ_Sc.h: Likewise.
32688         * lib/unictype/categ_Sk.h: Likewise.
32689         * lib/unictype/categ_Sm.h: Likewise.
32690         * lib/unictype/categ_So.h: Likewise.
32691         * lib/unictype/categ_Z.h: Likewise.
32692         * lib/unictype/categ_Zl.h: Likewise.
32693         * lib/unictype/categ_Zp.h: Likewise.
32694         * lib/unictype/categ_Zs.h: Likewise.
32695         * lib/unictype/categ_of.h: Likewise.
32696         * lib/unictype/combining.h: Likewise.
32697         * lib/unictype/ctype_alnum.h: Likewise.
32698         * lib/unictype/ctype_alpha.h: Likewise.
32699         * lib/unictype/ctype_blank.h: Likewise.
32700         * lib/unictype/ctype_cntrl.h: Likewise.
32701         * lib/unictype/ctype_digit.h: Likewise.
32702         * lib/unictype/ctype_graph.h: Likewise.
32703         * lib/unictype/ctype_lower.h: Likewise.
32704         * lib/unictype/ctype_print.h: Likewise.
32705         * lib/unictype/ctype_punct.h: Likewise.
32706         * lib/unictype/ctype_space.h: Likewise.
32707         * lib/unictype/ctype_upper.h: Likewise.
32708         * lib/unictype/ctype_xdigit.h: Likewise.
32709         * lib/unictype/decdigit.h: Likewise.
32710         * lib/unictype/digit.h: Likewise.
32711         * lib/unictype/mirror.h: Likewise.
32712         * lib/unictype/numeric.h: Likewise.
32713         * lib/unictype/pr_alphabetic.h: Likewise.
32714         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32715         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32716         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32717         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32718         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32719         * lib/unictype/pr_bidi_common_separator.h: Likewise.
32720         * lib/unictype/pr_bidi_control.h: Likewise.
32721         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
32722         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
32723         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
32724         * lib/unictype/pr_bidi_european_digit.h: Likewise.
32725         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
32726         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
32727         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
32728         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
32729         * lib/unictype/pr_bidi_pdf.h: Likewise.
32730         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
32731         * lib/unictype/pr_bidi_whitespace.h: Likewise.
32732         * lib/unictype/pr_combining.h: Likewise.
32733         * lib/unictype/pr_composite.h: Likewise.
32734         * lib/unictype/pr_currency_symbol.h: Likewise.
32735         * lib/unictype/pr_dash.h: Likewise.
32736         * lib/unictype/pr_decimal_digit.h: Likewise.
32737         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
32738         * lib/unictype/pr_deprecated.h: Likewise.
32739         * lib/unictype/pr_diacritic.h: Likewise.
32740         * lib/unictype/pr_extender.h: Likewise.
32741         * lib/unictype/pr_format_control.h: Likewise.
32742         * lib/unictype/pr_grapheme_base.h: Likewise.
32743         * lib/unictype/pr_grapheme_extend.h: Likewise.
32744         * lib/unictype/pr_grapheme_link.h: Likewise.
32745         * lib/unictype/pr_hex_digit.h: Likewise.
32746         * lib/unictype/pr_hyphen.h: Likewise.
32747         * lib/unictype/pr_id_continue.h: Likewise.
32748         * lib/unictype/pr_id_start.h: Likewise.
32749         * lib/unictype/pr_ideographic.h: Likewise.
32750         * lib/unictype/pr_ids_binary_operator.h: Likewise.
32751         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
32752         * lib/unictype/pr_ignorable_control.h: Likewise.
32753         * lib/unictype/pr_iso_control.h: Likewise.
32754         * lib/unictype/pr_join_control.h: Likewise.
32755         * lib/unictype/pr_left_of_pair.h: Likewise.
32756         * lib/unictype/pr_line_separator.h: Likewise.
32757         * lib/unictype/pr_logical_order_exception.h: Likewise.
32758         * lib/unictype/pr_lowercase.h: Likewise.
32759         * lib/unictype/pr_math.h: Likewise.
32760         * lib/unictype/pr_non_break.h: Likewise.
32761         * lib/unictype/pr_not_a_character.h: Likewise.
32762         * lib/unictype/pr_numeric.h: Likewise.
32763         * lib/unictype/pr_other_alphabetic.h: Likewise.
32764         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
32765         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
32766         * lib/unictype/pr_other_id_continue.h: Likewise.
32767         * lib/unictype/pr_other_id_start.h: Likewise.
32768         * lib/unictype/pr_other_lowercase.h: Likewise.
32769         * lib/unictype/pr_other_math.h: Likewise.
32770         * lib/unictype/pr_other_uppercase.h: Likewise.
32771         * lib/unictype/pr_paired_punctuation.h: Likewise.
32772         * lib/unictype/pr_paragraph_separator.h: Likewise.
32773         * lib/unictype/pr_pattern_syntax.h: Likewise.
32774         * lib/unictype/pr_pattern_white_space.h: Likewise.
32775         * lib/unictype/pr_private_use.h: Likewise.
32776         * lib/unictype/pr_punctuation.h: Likewise.
32777         * lib/unictype/pr_quotation_mark.h: Likewise.
32778         * lib/unictype/pr_radical.h: Likewise.
32779         * lib/unictype/pr_sentence_terminal.h: Likewise.
32780         * lib/unictype/pr_soft_dotted.h: Likewise.
32781         * lib/unictype/pr_space.h: Likewise.
32782         * lib/unictype/pr_terminal_punctuation.h: Likewise.
32783         * lib/unictype/pr_titlecase.h: Likewise.
32784         * lib/unictype/pr_unassigned_code_value.h: Likewise.
32785         * lib/unictype/pr_unified_ideograph.h: Likewise.
32786         * lib/unictype/pr_uppercase.h: Likewise.
32787         * lib/unictype/pr_variation_selector.h: Likewise.
32788         * lib/unictype/pr_white_space.h: Likewise.
32789         * lib/unictype/pr_xid_continue.h: Likewise.
32790         * lib/unictype/pr_xid_start.h: Likewise.
32791         * lib/unictype/pr_zero_width.h: Likewise.
32792         * lib/unictype/scripts.h: Likewise.
32793         * lib/unictype/scripts_byname.gperf: Likewise.
32794         * lib/unictype/sy_c_ident.h: Likewise.
32795         * lib/unictype/sy_c_whitespace.h: Likewise.
32796         * lib/unictype/sy_java_ident.h: Likewise.
32797         * lib/unictype/sy_java_whitespace.h: Likewise.
32798
32799         * lib/unictype/Makefile: New file.
32800         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
32801         glibc.
32802         * lib/unictype/3level.h: New file, copied from glibc.
32803         * lib/unictype/3levelbit.h: New file.
32804
32805 2007-11-11  Bruno Haible  <bruno@clisp.org>
32806
32807         * modules/gperf: New file.
32808         * modules/iconv_open (Depends-on): Add it.
32809         (Makefile.am): Remove the GPERF definition.
32810
32811 2007-11-11  Bruno Haible  <bruno@clisp.org>
32812
32813         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
32814         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
32815
32816 2007-11-11  Bruno Haible  <bruno@clisp.org>
32817
32818         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
32819         (usage): Remove function.
32820
32821 2007-11-11  Bruno Haible  <bruno@clisp.org>
32822
32823         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
32824         gl_FUNC_CEILF_LIBS.
32825         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
32826         gl_FUNC_CEIL_LIBS.
32827         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
32828         gl_FUNC_CEILL_LIBS.
32829         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
32830         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
32831         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
32832
32833 2007-11-11  Bruno Haible  <bruno@clisp.org>
32834
32835         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
32836         roundf were declared but do not exist on functions.
32837         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
32838         roundl were declared but do not exist on functions.
32839         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
32840         HAVE_FLOORL_AND_CEILL, respectively.
32841         Needed for Sun C on Solaris 10.
32842
32843 2007-11-11  Bruno Haible  <bruno@clisp.org>
32844
32845         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
32846         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
32847         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
32848         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
32849         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
32850         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
32851         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
32852         HAVE_DECL_ROUNDF.
32853         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
32854         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
32855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
32856         of HAVE_DECL_ROUND*.
32857         * modules/math (Makefile.am): Update.
32858
32859 2007-11-10  Bruno Haible  <bruno@clisp.org>
32860
32861         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
32862         ptrdiff_t as m4/intl.m4.
32863
32864 2007-11-10  Jim Meyering  <meyering@redhat.com>
32865
32866         Avoid link failure for the argmatch test.
32867         * tests/test-argmatch.c (usage): Define function to avoid a link
32868         failure: argmatch_die requires a usage function.
32869
32870 2007-11-09  Bruno Haible  <bruno@clisp.org>
32871
32872         * doc/functions/snprintf.texi: Mention BeOS deficiency.
32873         * doc/functions/vsnprintf.texi: Likewise.
32874         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
32875         with a size argument < 2.
32876
32877 2007-11-09  Bruno Haible  <bruno@clisp.org>
32878
32879         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
32880         buffer. Fixes an inefficiency introduced on 2007-11-03.
32881
32882 2007-11-09  Bruno Haible  <bruno@clisp.org>
32883
32884         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
32885         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
32886
32887 2007-11-08  Jim Meyering  <meyering@redhat.com>
32888
32889         Change cache variable name prefix "jm_" to "gl_" everywhere.
32890         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
32891         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
32892         * m4/uptime.m4: s/gl_/jm_/
32893
32894 2007-11-07  Bruno Haible  <bruno@clisp.org>
32895
32896         Update to GNU gettext 0.17.
32897         * m4/intl.m4: Update to GNU gettext 0.17.
32898         * m4/po.m4: Likewise.
32899         * modules/gettext (Files): Remove m4/ulonglong.m4.
32900         (configure.ac): Require gettext infrastructure from version 0.17.
32901
32902 2007-11-06  Bruno Haible  <bruno@clisp.org>
32903
32904         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
32905         symbolic values are not defined in a public header.
32906         * lib/freadable.c (freadable) [QNX]: Likewise.
32907         * lib/freadahead.c (freadahead) [QNX]: Likewise.
32908         * lib/freading.c (freading) [QNX]: Likewise.
32909         * lib/fseterr.c (fseterr) [QNX]: Likewise.
32910         * lib/fwritable.c (fwritable) [QNX]: Likewise.
32911         * lib/fwriting.c (fwriting) [QNX]: Likewise.
32912         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
32913         Reported by Alain Magloire.
32914
32915         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
32916
32917 2007-11-05  Bruno Haible  <bruno@clisp.org>
32918
32919         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
32920         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
32921         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
32922         Reported by Eric Blake.
32923
32924 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32925             Bruno Haible  <bruno@clisp.org>
32926
32927         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
32928         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
32929         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
32930         (malloc): Undefine also before including <stdlib.h>.
32931         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
32932         Needed on OSF/1 4.0.
32933
32934 2007-11-05  Jim Meyering  <meyering@redhat.com>
32935
32936         git-version-gen: sync from coreutils.
32937         * build-aux/git-version-gen: Add comments.
32938         Change the first '-' to '.' in the snapshot version string,
32939         e.g., 6.9-377-08144 -> 6.9.377-08144
32940         Remove first parameter.
32941         Don't declare a version "-dirty" merely because a time
32942         stamp has changed.
32943
32944 2007-11-04  Bruno Haible  <bruno@clisp.org>
32945
32946         * lib/lock.h: Protect all macro definitions containing an 'if'
32947         statement through a "do { ... } while (0)".
32948         * lib/tls.h: Likewise.
32949
32950 2007-11-04  Bruno Haible  <bruno@clisp.org>
32951
32952         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
32953
32954 2007-11-04  Bruno Haible  <bruno@clisp.org>
32955
32956         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
32957         * modules/fprintf-posix (Depends-on): Add nocrash.
32958         * modules/snprintf-posix (Depends-on): Likewise.
32959         * modules/sprintf-posix (Depends-on): Likewise.
32960         * modules/vasnprintf-posix (Depends-on): Likewise.
32961         * modules/vasprintf-posix (Depends-on): Likewise.
32962         * modules/vfprintf-posix (Depends-on): Likewise.
32963         * modules/vsnprintf-posix (Depends-on): Likewise.
32964         * modules/vsprintf-posix (Depends-on): Likewise.
32965         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32966         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32967         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32968         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32969         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32970         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32971         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32972
32973 2007-11-04  Bruno Haible  <bruno@clisp.org>
32974
32975         * modules/nocrash: New file.
32976         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
32977         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
32978
32979 2007-11-04  Bruno Haible  <bruno@clisp.org>
32980
32981         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
32982         precision handling.
32983         * tests/test-vasprintf-posix.c (test_function): Likewise.
32984         * tests/test-snprintf-posix.h (test_function): Likewise.
32985         * tests/test-sprintf-posix.h (test_function): Likewise.
32986
32987         Fix *printf behaviour for large precisions on mingw and BeOS.
32988         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
32989         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
32990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
32991         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32992         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32993         gl_PRINTF_PRECISION and test its result. Invoke
32994         gl_PREREQ_VASNPRINTF_PRECISION.
32995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32996         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32997         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32998         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32999         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33000         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33001         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33002         * doc/functions/fprintf.texi: Update.
33003         * doc/functions/printf.texi: Update.
33004         * doc/functions/snprintf.texi: Update.
33005         * doc/functions/sprintf.texi: Update.
33006         * doc/functions/vfprintf.texi: Update.
33007         * doc/functions/vprintf.texi: Update.
33008         * doc/functions/vsnprintf.texi: Update.
33009         * doc/functions/vsprintf.texi: Update.
33010
33011 2007-11-04  Bruno Haible  <bruno@clisp.org>
33012
33013         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
33014
33015 2007-11-04  Bruno Haible  <bruno@clisp.org>
33016
33017         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
33018         Reported by Sylvain Beucler <beuc@gnu.org>.
33019
33020 2007-11-03  Bruno Haible  <bruno@clisp.org>
33021
33022         * tests/test-fprintf-posix2.sh: New file.
33023         * tests/test-fprintf-posix2.c: New file.
33024         * modules/fprintf-posix-tests (Files): Add them.
33025         (TESTS): Add test-fprintf-posix2.sh.
33026         (configure.ac): Check for getrlimit and setrlimit.
33027         (check_PROGRAMS): Add test-fprintf-posix2.
33028
33029         * tests/test-printf-posix2.sh: New file.
33030         * tests/test-printf-posix2.c: New file.
33031         * modules/printf-posix-tests (Files): Add them.
33032         (TESTS): Add test-printf-posix2.sh.
33033         (configure.ac): Check for getrlimit and setrlimit.
33034         (check_PROGRAMS): Add test-printf-posix2.
33035
33036         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
33037         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
33038         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
33039         (decode_double): New function, copied from decode_long_double.
33040         (scale10_round_decimal_decoded): New function, extracted from
33041         scale10_round_decimal_long_double.
33042         (scale10_round_decimal_long_double): Use it.
33043         (scale10_round_decimal_double): New function.
33044         (floorlog10): New function.
33045         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
33046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
33047         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33048         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33049         gl_PRINTF_ENOMEM and test its result. Invoke
33050         gl_PREREQ_VASNPRINTF_ENOMEM.
33051         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33052         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33055         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33056         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33058         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
33059         * modules/snprintf-posix (Depends-on): Likewise.
33060         * modules/sprintf-posix (Depends-on): Likewise.
33061         * modules/vasnprintf-posix (Depends-on): Likewise.
33062         * modules/vasprintf-posix (Depends-on): Likewise.
33063         * modules/vfprintf-posix (Depends-on): Likewise.
33064         * modules/vsnprintf-posix (Depends-on): Likewise.
33065         * modules/vsprintf-posix (Depends-on): Likewise.
33066         * doc/functions/fprintf.texi: Update.
33067         * doc/functions/printf.texi: Update.
33068         * doc/functions/snprintf.texi: Update.
33069         * doc/functions/sprintf.texi: Update.
33070         * doc/functions/vfprintf.texi: Update.
33071         * doc/functions/vprintf.texi: Update.
33072         * doc/functions/vsnprintf.texi: Update.
33073         * doc/functions/vsprintf.texi: Update.
33074
33075 2007-11-03  Bruno Haible  <bruno@clisp.org>
33076
33077         * modules/frexp-nolibm-tests: New file.
33078
33079         * modules/frexp-nolibm: New file.
33080         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
33081
33082 2007-11-03  Bruno Haible  <bruno@clisp.org>
33083
33084         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
33085         value is C99 compliant.
33086         Needed for OSF/1 5.1.
33087
33088 2007-11-03  Bruno Haible  <bruno@clisp.org>
33089
33090         Fix out-of-memory handling of vasnprintf.
33091         * lib/printf-parse.c: Include <errno.h>.
33092         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
33093         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
33094         is already set.
33095
33096 2007-11-02  Eric Blake  <ebb9@byu.net>
33097
33098         Fix tests on cygwin.
33099         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
33100
33101 2007-11-01  Bruno Haible  <bruno@clisp.org>
33102
33103         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
33104         warning.
33105         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
33106         needed for POSIX compatibility.
33107
33108 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33109
33110         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
33111         for compatibility with GNU.
33112
33113 2007-11-01  Bruno Haible  <bruno@clisp.org>
33114
33115         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
33116         (putenv): Renamed from rpl_putenv. Change argument type from
33117         'const char *' to 'char *'.
33118         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
33119         of defining putenv in config.h, just set REPLACE_PUTENV.
33120         * modules/putenv (Depends-on): Add stdlib.
33121         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33122         (Include): Use <stdlib.h>.
33123         * lib/stdlib.in.h (putenv): New declaration.
33124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
33125         REPLACE_PUTENV.
33126         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
33127         REPLACE_PUTENV.
33128         Needed for MacOS X 10.5.0.
33129         Reported by Peter O'Gorman <peter@pogma.com>.
33130
33131 2007-11-01  Jim Meyering  <meyering@redhat.com>
33132
33133         Treat an empty date string exactly like "0".
33134         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
33135         if the remaining date string (to be parsed) is empty, use "0".
33136         Reported by Mischa Molhoek and discussed in this thread:
33137         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
33138
33139 2007-10-31  Bruno Haible  <bruno@clisp.org>
33140
33141         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
33142         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
33143         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
33144         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
33145         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
33146         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
33147
33148 2007-10-31  Bruno Haible  <bruno@clisp.org>
33149
33150         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
33151         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
33152         (AC_TYPE_LONG_LONG_INT): Use it.
33153         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
33154         it as well.
33155         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
33156         to m4/longlong.m4.
33157         * modules/stdint (Files): Remove m4/ulonglong.m4.
33158         * modules/strtoull (Files): Use m4/longlong.m4 instead of
33159         m4/ulonglong.m4.
33160         * modules/strtoumax (Files): Likewise.
33161
33162 2007-10-30  Bruno Haible  <bruno@clisp.org>
33163
33164         * modules/xvasprintf-posix: New file.
33165         Suggested by Eric Blake.
33166
33167 2007-10-30  Bruno Haible  <bruno@clisp.org>
33168
33169         * modules/xprintf-posix-tests: New file.
33170         * tests/test-xprintf-posix.sh: New file.
33171         * tests/test-xprintf-posix.c: New file.
33172         * tests/test-xfprintf-posix.c: New file.
33173
33174         * modules/xprintf-posix: New file.
33175
33176 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33177
33178         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
33179         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
33180         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
33181
33182 2007-10-29  Bruno Haible  <bruno@clisp.org>
33183
33184         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
33185         contain the special marker '_cv_'.
33186         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33187         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33188         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33189         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
33190         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33191         Reported by Ralf Wildenhues.
33192
33193 2007-10-29  Bruno Haible  <bruno@clisp.org>
33194
33195         * gnulib-tool (func_import): When --lgpl is not specified, set
33196         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
33197         GPLv3.
33198         Reported by Simon Josefsson.
33199
33200 2007-10-28  Bruno Haible  <bruno@clisp.org>
33201
33202         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
33203         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
33204         HAVE_DECL_ISFINITE.
33205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33206         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
33207         HAVE_DECL_ISFINITE.
33208
33209 2007-10-28  Bruno Haible  <bruno@clisp.org>
33210
33211         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
33212         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
33213
33214 2007-10-28  Bruno Haible  <bruno@clisp.org>
33215
33216         Fix link errors with Sun C 5.0 on Solaris 10.
33217         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
33218         function is declared but not present in the compiler's libm.
33219         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33220         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33221         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
33222         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
33223         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
33224         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
33225         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
33226         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33227         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
33228         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
33229         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
33230         HAVE_DECL_FLOORL.
33231
33232 2007-10-28  Bruno Haible  <bruno@clisp.org>
33233
33234         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
33235         gl_FUNC_FLOORL. Cache the result.
33236         (gl_FUNC_FLOORL): Use it.
33237         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
33238         gl_FUNC_CEILL. Cache the result.
33239         (gl_FUNC_CEILL): Use it.
33240
33241         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
33242         gl_FUNC_FLOOR. Cache the result.
33243         (gl_FUNC_FLOOR): Use it.
33244         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
33245         gl_FUNC_CEIL. Cache the result.
33246         (gl_FUNC_CEIL): Use it.
33247
33248         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
33249         gl_FUNC_FLOORF. Cache the result.
33250         (gl_FUNC_FLOORF): Use it.
33251         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
33252         gl_FUNC_CEILF. Cache the result.
33253         (gl_FUNC_CEILF): Use it.
33254
33255 2007-10-28  Bruno Haible  <bruno@clisp.org>
33256
33257         * gnulib-tool: Allow specifying the LGPL version number through
33258         --lgpl=2 or --lgpl=3.
33259         (func_usage): Document --lgpl with argument.
33260         Handle --lgpl=... arguments.
33261         (func_import): Recognize also gl_LGPL calls with an argument. When
33262         --lgpl=2 is used and the module's license is just LGPL, report an
33263         error. Set sed_transform_lib_file according to the lgpl variable. In
33264         the generated files, use --lgpl or gl_LGPL invocations with argument,
33265         if necessary.
33266         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
33267         an LGPv2+ license.
33268         * doc/gnulib-tool.texi (Modified imports): Update explanation of
33269         gl_LGPL macro.
33270
33271 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33272             Bruno Haible  <bruno@clisp.org>
33273
33274         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
33275         (u16_uctomb_aux): Likewise.
33276         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
33277         !HAVE_INLINE.
33278         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
33279
33280 2007-10-28  Bruno Haible  <bruno@clisp.org>
33281
33282         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
33283         Invoke AM_GETTEXT_OPTION if it exists.
33284         * modules/vasprintf: Likewise.
33285         * modules/verror: Likewise.
33286         * modules/xprintf: Likewise.
33287         * modules/xvasprintf: Likewise.
33288
33289 2007-10-27  Ben Pfaff  <blp@gnu.org>
33290
33291         * lib/math.in.h: Define isfinite macro and prototypes for
33292         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
33293         implementations.
33294         * m4/math_h.m4: New substitutions for isfinite module.
33295         * lib/isfinite.c: New file.
33296         * m4/isfinite.m4: New file.
33297         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
33298         * modules/isfinite: New file.
33299         * modules/isfinite-tests: New file.
33300         * tests/tests-isfinite.c: New file.
33301         * doc/functions/isfinite.texi: Mention isfinite module.
33302         * MODULES.html.sh: Mention new module.
33303
33304 2007-10-27  Ben Pfaff  <blp@gnu.org>
33305
33306         Ralf Wildenhues reported that Tru64 4.0D declares the round
33307         functions but does not have definitions.
33308         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
33309         cannot be found in any library, set the output variable to
33310         "missing" instead of "".
33311         * m4/round.m4: Also use our substitute if we cannot find round in
33312         any library, even if it is declared.
33313         * m4/roundf.m4: Likewise for roundf.
33314         * m4/roundl.m4: Likewise for roundl.
33315         * lib/math.in.h: Undefine roundf, round, roundl before defining
33316         their replacements, to allow for hypothetical systems where these
33317         may be defined as macros but not available in libraries.
33318
33319 2007-10-27  Bruno Haible  <bruno@clisp.org>
33320
33321         * doc/gnulib.texi: Invoke @firstparagraphindent.
33322         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
33323         changes in gnulib.
33324         (Source changes): New section.
33325
33326 2007-10-26  Bruno Haible  <bruno@clisp.org>
33327
33328         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
33329         borrowed from autoconf.
33330
33331 2007-10-26  Bruno Haible  <bruno@clisp.org>
33332
33333         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
33334         strerror returned the empty string. Needed on HP-UX 11.00.
33335
33336 2007-10-24  Micah Cowan  <micah@cowan.name>
33337
33338         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
33339         * build-aux/bootstrap: Remove support for now-unnecessary option,
33340         --cvs-user, and envvars CVS_USER, CVS_RSH.
33341
33342 2007-10-24  Jim Meyering  <meyering@redhat.com>
33343
33344         Avoid diagnostics from sha1sum when there is no cached checksum.
33345         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
33346         if the po.s1 file hasn't been created yet.
33347
33348         * build-aux/bootstrap: Sync from coreutils:
33349         2007-10-24  Jim Meyering  <meyering@redhat.com>
33350         Get gnulib from the git repository, not from an obsolete cvs one.
33351         * build-aux/bootstrap: Suggestion from Micah Cowan.
33352         2007-10-04  Jim Meyering  <jim@meyering.net>
33353         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
33354         (update_po_files): Work also when there are no .po files in po/.
33355
33356 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33357
33358         * README: Append ".git" to git and cg examples.
33359         Problem reported by Benoit Sigoure.
33360
33361 2007-10-23  Micah Cowan  <micah@cowan.name>
33362
33363         * users.txt: Add wget.
33364
33365 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33366
33367         Fix linking of some unistdio tests on FreeBSD.
33368         * modules/unistdio/u16-vsnprintf-tests
33369         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
33370         * modules/unistdio/u16-vsprintf-tests
33371         (test_u16_vsnprintf1_LDADD): Likewise.
33372         * modules/unistdio/u32-vsnprintf-tests
33373         (test_u32_vsnprintf1_LDADD): Likewise.
33374         * modules/unistdio/u32-vsprintf-tests
33375         (test_u32_vsprintf1_LDADD): Likewise.
33376         * modules/unistdio/u8-vsnprintf-tests
33377         (test_u8_vsnprintf1_LDADD): Likewise.
33378         * modules/unistdio/u8-vsprintf-tests
33379         (test_u8_vsprintf1_LDADD): Likewise.
33380         * modules/unistdio/ulc-vsnprintf-tests
33381         (test_ulc_vsnprintf1_LDADD): Likewise.
33382         * modules/unistdio/ulc-vsprintf-tests
33383         (test_ulc_vsprintf1_LDADD): Likewise.
33384
33385         Fix linking of some uniconv tests on FreeBSD.
33386         * modules/uniconv/u16-conv-from-enc-tests
33387         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
33388         * modules/uniconv/u16-conv-to-enc-tests
33389         (test_u16_conv_to_enc_LDADD): Likewise.
33390         * modules/uniconv/u16-strconv-from-enc-tests
33391         (test_u16_strconv_from_enc_LDADD): Likewise.
33392         * modules/uniconv/u16-strconv-to-enc-tests
33393         (test_u16_strconv_to_enc_LDADD): Likewise.
33394         * modules/uniconv/u32-conv-from-enc-tests
33395         (test_u32_conv_from_enc_LDADD): Likewise.
33396         * modules/uniconv/u32-conv-to-enc-tests
33397         (test_u32_conv_to_enc_LDADD): Likewise.
33398         * modules/uniconv/u32-strconv-from-enc-tests
33399         (test_u32_strconv_from_enc_LDADD): Likewise.
33400         * modules/uniconv/u32-strconv-to-enc-tests
33401         (test_u32_strconv_to_enc_LDADD): Likewise.
33402         * modules/uniconv/u8-conv-from-enc-tests
33403         (test_u8_conv_from_enc_LDADD): Likewise.
33404         * modules/uniconv/u8-conv-to-enc-tests
33405         (test_u8_conv_to_enc_LDADD): Likewise.
33406         * modules/uniconv/u8-strconv-from-enc-tests
33407         (test_u8_strconv_from_enc_LDADD): Likewise.
33408         * modules/uniconv/u8-strconv-to-enc-tests
33409         (test_u8_strconv_to_enc_LDADD): Likewise.
33410
33411 2007-10-22  Bruno Haible  <bruno@clisp.org>
33412
33413         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
33414         size.
33415
33416 2007-10-22  Eric Blake  <ebb9@byu.net>
33417
33418         Tweak x*printf documentation.
33419         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
33420         variable name and comments.
33421         Suggested by Bruno Haible.
33422
33423 2007-10-22  Bruno Haible  <bruno@clisp.org>
33424
33425         * lib/acl.c (copy_acl): Fix file name in comment.
33426
33427 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33428
33429         Fix Tru64 problem with stdbool.h.
33430         * lib/stdbool.in.h (false, true):
33431         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
33432         Don't declare as an enum in this situation; it runs afoul of Tru64.
33433         Problem reported by Steven M. Schweda in
33434         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
33435
33436 2007-10-22  Eric Blake  <ebb9@byu.net>
33437
33438         Also wrap vf?printf.
33439         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
33440         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
33441         (xvprintf, xvfprintf): New functions.
33442
33443 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33444
33445         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
33446         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
33447
33448         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
33449         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
33450
33451 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33452
33453         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
33454         by Bruno Haible.
33455
33456 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33457
33458         * lib/getloadavg.c
33459         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
33460         Undef `sys' after including sys/table.h, for Tru64 4.0D.
33461
33462         * tests/test-i-ring.c: Work for C89.
33463
33464 2007-10-22  Bruno Haible  <bruno@clisp.org>
33465
33466         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
33467         -1u, in preprocessor expression, so that we don't test for the bug
33468         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
33469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33470
33471 2007-10-22  Eric Blake  <ebb9@byu.net>
33472
33473         * tests/test-yesno.sh: Silence stderr during test.
33474
33475 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33476
33477         * modules/crypto/gc-camellia: New file.
33478
33479         * m4/gc-camellia.m4: New file.
33480
33481         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
33482
33483         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
33484
33485 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33486
33487         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
33488         --help to stdout.  Reported by sms@antinode.org (Steven
33489         M. Schweda).
33490
33491 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33492
33493         * users.txt: Fix link to libksba.
33494
33495 2007-10-21  Ben Pfaff  <blp@gnu.org>
33496
33497         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
33498         round.c roundf implementation that depends on floorf and ceilf to
33499         be tested unconditionally.
33500
33501 2007-10-21  Ben Pfaff  <blp@gnu.org>
33502
33503         * m4/check-libm-func.m4: Removed.
33504         * m4/check-math-lib.m4: New file.
33505         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
33506         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
33507         definition and lack of AC_LIBOBJ([roundf]).
33508         * m4/roundl.m4: Ditto, and similarly for roundl.
33509         * modules/round: Reference new m4 file.
33510         * modules/roundf: Ditto.
33511         * modules/roundl: Ditto.
33512         * tests/test-round2.c (main): Use ROUND instead of round.
33513         Bug report from Bruno Haible.
33514
33515 2007-10-21  Bruno Haible  <bruno@clisp.org>
33516
33517         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
33518         context.
33519
33520 2007-10-21  Bruno Haible  <bruno@clisp.org>
33521
33522         * tests/test-wcwidth.c (main): Allow negative result for some control
33523         characters.
33524
33525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
33526         Needed on OSF/1 5.1.
33527
33528 2007-10-21  Bruno Haible  <bruno@clisp.org>
33529
33530         * tests/test-floorf1.c: Include isnanf.h.
33531         (main): Use isnanf() instead of isnan().
33532         * tests/test-ceilf1.c: Include isnanf.h.
33533         (main): Use isnanf() instead of isnan().
33534         * tests/test-truncf1.c: Include isnanf.h.
33535         (main): Use isnanf() instead of isnan().
33536         * tests/test-roundf1.c: Include isnanf.h.
33537         (main): Use isnanf() instead of isnan().
33538
33539 2007-10-21  Eric Blake  <ebb9@byu.net>
33540
33541         * users.txt: Update URL for m4.
33542
33543 2007-10-21  Bruno Haible  <bruno@clisp.org>
33544
33545         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33546
33547 2007-10-21  Bruno Haible  <bruno@clisp.org>
33548
33549         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33550         Git's management files if the CVS files are not present.
33551
33552 2007-10-20  Bruno Haible  <bruno@clisp.org>
33553
33554         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33555         gcc-3.4.x.
33556
33557 2007-10-20  Ben Pfaff  <blp@gnu.org>
33558
33559         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33560         implementations.
33561         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33562         * lib/round.c: New file.
33563         * lib/roundf.c: New file.
33564         * lib/roundl.c: New file.
33565         * m4/round.m4: New file.
33566         * m4/roundf.m4: New file.
33567         * m4/roundl.m4: New file.
33568         * m4/check-libm-func-m4: New file.
33569         * modules/math: Replace round, roundf, roundl related @VARS@ in
33570         math.in.h.
33571         * modules/round: New file.
33572         * modules/round-tests: New file.
33573         * modules/roundf: New file.
33574         * modules/roundf-tests: New file.
33575         * modules/roundl: New file.
33576         * modules/roundl-tests: New file.
33577         * tests/test-round1.c: New file.
33578         * tests/test-round2.c: New file.
33579         * tests/test-roundf1.c: New file.
33580         * tests/test-roundf2.c: New file.
33581         * tests/test-roundl.c: New file.
33582         * doc/functions/round.texi: Mention round module.
33583         * doc/functions/roundf.texi: Mention roundf module.
33584         * doc/functions/roundl.texi: Mention roundl module.
33585         * MODULES.html.sh: Mention new modules.
33586         Thanks to Bruno Haible for suggestions.
33587
33588 2007-10-20  Jim Meyering  <meyering@redhat.com>
33589
33590         * lib/xprintf.c: Include <config.h> unconditionally.
33591
33592         Change xprintf's license to GPL.
33593         * modules/xprintf (License): s/LGPL/GPL/, since this module
33594         depends on modules (exit and exitfail) which are GPL.
33595         Suggestion from Bruno Haible.
33596
33597         xprintf fixes.
33598         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33599         Use a clearer diagnostic.
33600         Patch from Bruno Haible.
33601
33602 2007-10-20  Bruno Haible  <bruno@clisp.org>
33603
33604         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33605         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33606         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33607
33608 2007-10-20  Bruno Haible  <bruno@clisp.org>
33609
33610         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33611         precision in the comparison result > x - 1 or similar.
33612         * tests/test-ceilf2.c (correct_result_p): Likewise.
33613         * tests/test-truncf2.c (correct_result_p): Likewise.
33614         * tests/test-trunc2.c (correct_result_p): Likewise.
33615         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33616
33617 2007-10-20  Bruno Haible  <bruno@clisp.org>
33618
33619         * modules/ceil: New file.
33620         * m4/ceil.m4: New file.
33621         * doc/functions/ceil.texi: Mention the 'ceil' module.
33622
33623 2007-10-20  Bruno Haible  <bruno@clisp.org>
33624
33625         * modules/floor: New file.
33626         * m4/floor.m4: New file.
33627         * doc/functions/floor.texi: Mention the 'floor' module.
33628
33629 2007-10-20  Bruno Haible  <bruno@clisp.org>
33630
33631         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33632         of %a.
33633         * modules/floorf-tests (Depends-on): Likewise.
33634         * modules/truncf-tests (Depends-on): Likewise.
33635         * modules/trunc-tests (Depends-on): Likewise.
33636         Reported by Ben Pfaff.
33637
33638 2007-10-19  Jim Meyering  <meyering@redhat.com>
33639
33640         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33641         Don't bother testing specific errno values.  Just test ferror.
33642
33643         New module: xprintf
33644         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33645
33646 2007-10-19  Bruno Haible  <bruno@clisp.org>
33647
33648         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33649         syntax.
33650         * modules/javaexec (Makefile.am): Likewise.
33651         * modules/relocatable-prog (Makefile.am): Likewise.
33652         Suggested by Jim Meyering.
33653
33654 2007-10-18  Bruno Haible  <bruno@clisp.org>
33655
33656         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33657         Reported by Jim Meyering.
33658
33659 2007-10-18  Eric Blake  <ebb9@byu.net>
33660
33661         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33662
33663 2007-10-18  Bruno Haible  <bruno@clisp.org>
33664
33665         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33666         the format string into writable memory. Needed in Fortify conditions.
33667
33668 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33669             Bruno Haible  <bruno@clisp.org>
33670
33671         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33672         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33673         * modules/trim (Depends-on): Add mbchar.
33674         (configure.ac): Add gl_FUNC_MBRTOWC.
33675         (Makefile.am): Augment lib_SOURCES.
33676
33677 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33678
33679         Modify glob.c to use fstatat and dirfd, to simplify it.
33680         Suggested by Eric Blake.
33681         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33682         Don't include <stdbool.h>; not used.
33683         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33684         (link_exists_p): Simplify implementation, since we can now assume
33685         dirfd and fstatat.
33686         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33687
33688 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33689
33690         * gnulib-tool (func_get_dependencies): Fix sed script to
33691         match only tests.
33692
33693 2007-10-17  Bruno Haible  <bruno@clisp.org>
33694
33695         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33696         allow locale names without encoding suffix.
33697         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33698         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33699
33700 2007-10-16  Bruno Haible  <bruno@clisp.org>
33701
33702         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33703         * lib/getgroups.c (getgroups): Likewise.
33704         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33705
33706 2007-10-16  Bruno Haible  <bruno@clisp.org>
33707
33708         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33709         * modules/malloc-posix (License): Likewise.
33710         * modules/realloc-posix (License): Likewise.
33711         * modules/calloc-posix (License): Likewise.
33712         * modules/intprops (License): Change from GPL to LGPL, with
33713         Paul Eggert's approval.
33714
33715 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33716
33717         Merge glibc changes into lib/glob.c.
33718
33719         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
33720         2007-10-15 04:59:03 UTC.  Here are the changes:
33721
33722         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
33723
33724         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
33725
33726         * lib/glob.c: Add some branch prediction throughout.
33727
33728         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
33729
33730         [BZ #5103]
33731         * lib/glob.c (glob): Recognize patterns starting \/.
33732
33733         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
33734
33735         [BZ #3996]
33736         * lib/glob.c (attribute_hidden): Define if not defined.
33737         (glob): Unescape dirname, filename or username when needed and not
33738         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
33739         is NULL.  Handle unescaped [ in pattern without closing ].
33740         Don't pass GLOB_CHECK down to recursive glob for directories.
33741         (__glob_pattern_type): New function.
33742         (__glob_pattern_p): Implement using __glob_pattern_type.
33743         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
33744         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
33745         Remove unreachable code.
33746
33747         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
33748
33749         * lib/glob.c (glob_in_dir): Add some comments and asserts to
33750         explain why there are no leaks.
33751
33752         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
33753
33754         [BZ #3253]
33755         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
33756         time, rather allocate increasingly bigger arrays of pointers, if
33757         possible with alloca, if too large with malloc.
33758
33759 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33760
33761         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
33762         Problem reported by H.Merijn Brand in
33763         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
33764         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
33765         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33766
33767 2007-10-15  Bruno Haible  <bruno@clisp.org>
33768
33769         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
33770         with explicit rpl_ prefix.
33771         * lib/fopen.c (fopen): Likewise.
33772         * lib/freopen.c (freopen): Likewise.
33773         * lib/iconv.c (iconv): Likewise.
33774         * lib/iconv_close.c (iconv_close): Likewise.
33775
33776 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33777
33778         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
33779
33780 2007-10-15  Bruno Haible  <bruno@clisp.org>
33781
33782         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
33783         <stddef.h> instead of <stdlib.h> since we only need NULL.
33784         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33785
33786 2007-10-15  Bruno Haible  <bruno@clisp.org>
33787
33788         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
33789         Replace paragraph talking about LIBOBJS.
33790         Reported by Colin Watson <cjwatson@debian.org>.
33791
33792 2007-10-15  Bruno Haible  <bruno@clisp.org>
33793
33794         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
33795         <stdlib.h> before using NULL.
33796
33797 2007-10-15  Simon Josefsson  <simon@josefsson.org>
33798
33799         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
33800         Reported by Albert Chin <china@thewrittenword.com>.
33801
33802 2007-10-14  Bruno Haible  <bruno@clisp.org>
33803
33804         * modules/iconv_open-utf-tests: New file.
33805         * tests/test-iconv-utf.c: New file.
33806
33807         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
33808         * modules/iconv_open-utf: New file.
33809         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
33810         (iconv, iconv_close): New declarations.
33811         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
33812         be defined.
33813         (iconv_open): Add special handling of conversion between UTF-8 and
33814         UTF-{16,32}{BE,LE}.
33815         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
33816         * lib/iconv_close.c: New file.
33817         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
33818         gl_FUNC_ICONV_OPEN.
33819         (gl_FUNC_ICONV_OPEN): Use it.
33820         (gl_FUNC_ICONV_OPEN_UTF): New macro.
33821         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
33822         and REPLACE_ICONV_UTF.
33823         * modules/iconv_open (Depends-on): Add c-strcase.
33824         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
33825         ICONV_CONST.
33826         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
33827
33828 2007-10-13  Albert Chin  <china@thewrittenword.com>
33829             Bruno Haible  <bruno@clisp.org>
33830
33831         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
33832         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
33833
33834 2007-10-13  Bruno Haible  <bruno@clisp.org>
33835
33836         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
33837         defined, use the ISO C99 inline semantics.
33838         * lib/argp.h (ARGP_EI): Likewise.
33839
33840 2007-10-13  Bruno Haible  <bruno@clisp.org>
33841
33842         Handle 'inline' change in gcc 4.3.0.
33843         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
33844         argp_fmtstream_write, argp_fmtstream_set_lmargin,
33845         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
33846         argp_fmtstream_point): Disable 'extern' declaration if the function
33847         definition is going to be provided inline.
33848         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
33849         semantics, not the ISO C99 inline semantics.
33850         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
33851         'extern' declaration if the function definition is going to be provided
33852         inline.
33853         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
33854         the GNU C inline semantics, not the ISO C99 inline semantics. With
33855         GCC 4.2, avoid a warning.
33856
33857 2007-10-13  Bruno Haible  <bruno@clisp.org>
33858
33859         * lib/freading.h (freading): Enable the use of __freading for
33860         glibc >= 2.7.
33861         * lib/freading.c (freading): Likewise.
33862
33863 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33864
33865         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
33866         "warning: C99 inline functions are not supported; using GNU89".
33867
33868 2007-10-12  Bruno Haible  <bruno@clisp.org>
33869
33870         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
33871         of 2.
33872         * tests/test-ceilf2.c: New file.
33873         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
33874
33875         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
33876         * modules/ceilf-tests: Update.
33877
33878 2007-10-12  Bruno Haible  <bruno@clisp.org>
33879
33880         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
33881         of 2.
33882         * tests/test-floorf2.c: New file.
33883         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
33884
33885         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
33886         * modules/floorf-tests: Update.
33887
33888 2007-10-12  Bruno Haible  <bruno@clisp.org>
33889
33890         * tests/test-trunc2.c: New file.
33891         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
33892
33893         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
33894         * modules/trunc-tests: Update.
33895
33896 2007-10-12  Bruno Haible  <bruno@clisp.org>
33897
33898         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
33899         of 2.
33900         * tests/test-truncf2.c: New file.
33901         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
33902
33903         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
33904         * modules/truncf-tests: Update.
33905
33906 2007-10-11  Eric Blake  <ebb9@byu.net>
33907
33908         Don't claim strerror is broken on Interix.
33909         * doc/functions/strerror.texi (strerror): Known broken systems are
33910         now Solaris 8, and not Interix.
33911         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
33912         Interix on cross-compile.
33913         Reported by Martin Koeppe in
33914         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
33915
33916 2007-10-11  Bruno Haible  <bruno@clisp.org>
33917
33918         * modules/i-ring-tests: New file.
33919         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
33920         instead of assert.
33921
33922 2007-10-11  Bruno Haible  <bruno@clisp.org>
33923
33924         * modules/filenamecat-tests: New file.
33925         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
33926         * lib/filenamecat.c: Remove test code.
33927
33928 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33929
33930         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
33931
33932         * lib/strerror.c: Include <string.h> always, to test interface,
33933         and to remove the need for the dummy.
33934         Include intprops.h to compute width instead of doing it ourselves
33935         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
33936         (strerror): Define it to return NULL if there's no system strerror.
33937         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
33938         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
33939         ancient pre-strerror Unix systems well any more.  Saying "unknown
33940         system error" is enough.
33941         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
33942         simpler strerror.c implementation.
33943         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
33944         Simplify the tests to reflect the simpler strerror implementation.
33945         * modules/strerror (Depends-on): Add intprops.
33946
33947 2007-10-09  Eric Blake  <ebb9@byu.net>
33948
33949         Silence test-fpending.
33950         * modules/fpending-tests (Files): Add wrapper script.
33951         * tests/test-fpending.sh: New file.
33952
33953 2007-10-09  Bruno Haible  <bruno@clisp.org>
33954
33955         * MODULES.html.sh (func_module): Don't create a hyperlink for
33956         function names like 'printf_frexp'.
33957         (Misc): Add crc, memxor.
33958         (Characteristics of floating types): New section.
33959         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
33960         isnanf-nolibm, signbit, trunc, truncf, truncl.
33961         (Enhancements for ISO C 99 functions): New subsection Input/output.
33962         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
33963         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
33964         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
33965         (Compatibility checks for POSIX:2001 functions): Add clock-time.
33966         (Enhancements for POSIX:2001 functions): Add chdir-long.
33967         (File system functions): Add areadlink, chdir-safer, read-file.
33968         Remove cycle-check.
33969         (File system as inode set): New section.
33970         (Date and time): Add gethrxtime.
33971         (Multithreading): Add openmp.
33972         (Internationalization functions): Add localename.
33973         (Unicode string functions): Add unistr/u*-mbsnlen.
33974         (Support for maintaining and releasing projects): Add git-version-gen.
33975         (Lone files): Remove directories.
33976
33977 2007-10-08  Ben Pfaff  <blp@gnu.org>
33978
33979         * lib/xmalloca.h: Fix typo in comment.
33980
33981 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33982
33983         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
33984         when avoiding problems with integer overflow.  Use a portable test
33985         instead.
33986
33987 2007-10-08  Simon Josefsson  <simon@josefsson.org>
33988
33989         * modules/dummy (License): Change to LGPLv2+.
33990         * modules/float (License): Likewise
33991         * modules/realloc (License): Likewise
33992         * modules/stdlib (License): Likewise
33993
33994 2007-10-07  Bruno Haible  <bruno@clisp.org>
33995
33996         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
33997         * floor.c (TWO_MANT_DIG): Likewise.
33998         * ceil.c (TWO_MANT_DIG): Likewise.
33999         Reported by Ben Pfaff.
34000
34001 2007-10-07  Bruno Haible  <bruno@clisp.org>
34002
34003         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
34004         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
34005         * lib/frexp.c (FUNC): Likewise.
34006         * lib/printf-frexp.h (printf_frexp): Likewise.
34007         * lib/printf-frexpl.h (printf_frexpl): Likewise.
34008         * lib/printf-frexp.c (FUNC): Likewise.
34009         Suggested by Jim Meyering.
34010
34011 2007-10-07  Jim Meyering  <meyering@redhat.com>
34012
34013         Make xnanosleep's integer overflow test more robust.
34014         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
34015         so that gcc-4.3.0 doesn't optimize away this test for overflow.
34016
34017 2007-10-07  Bruno Haible  <bruno@clisp.org>
34018
34019         * NEWS: Mention the license change.
34020
34021         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
34022         abbreviations in the modules files.
34023
34024         Change copyright notice from GPLv2+ to GPLv3+.
34025         * README: Change copyright notice.
34026         * MODULES.html.sh: Likewise.
34027         * build-aux/bootstrap.conf: Likewise.
34028         * build-aux/config.libpath: Likewise.
34029         * build-aux/csharpcomp.sh.in: Likewise.
34030         * build-aux/csharpexec.sh.in: Likewise.
34031         * build-aux/install-reloc: Likewise.
34032         * build-aux/javacomp.sh.in: Likewise.
34033         * build-aux/javaexec.sh.in: Likewise.
34034         * build-aux/ldd.sh.in: Likewise.
34035         * build-aux/reloc-ldflags: Likewise.
34036         * build-aux/relocatable.sh.in: Likewise.
34037         * build-aux/x-to-1.in: Likewise.
34038         * check-module: Likewise.
34039         * config/srclistvars.sh: Likewise.
34040         * gnulib-tool: Likewise.
34041         * lib/acl-internal.h: Likewise.
34042         * lib/acl.c: Likewise.
34043         * lib/acl.h: Likewise.
34044         * lib/acl_entries.c: Likewise.
34045         * lib/areadlink-with-size.c: Likewise.
34046         * lib/areadlink.c: Likewise.
34047         * lib/areadlink.h: Likewise.
34048         * lib/argmatch.c: Likewise.
34049         * lib/argmatch.h: Likewise.
34050         * lib/argp-ba.c: Likewise.
34051         * lib/argp-eexst.c: Likewise.
34052         * lib/argp-fmtstream.c: Likewise.
34053         * lib/argp-fmtstream.h: Likewise.
34054         * lib/argp-fs-xinl.c: Likewise.
34055         * lib/argp-help.c: Likewise.
34056         * lib/argp-namefrob.h: Likewise.
34057         * lib/argp-parse.c: Likewise.
34058         * lib/argp-pin.c: Likewise.
34059         * lib/argp-pv.c: Likewise.
34060         * lib/argp-pvh.c: Likewise.
34061         * lib/argp-xinl.c: Likewise.
34062         * lib/argp.h: Likewise.
34063         * lib/at-func.c: Likewise.
34064         * lib/atanl.c: Likewise.
34065         * lib/backupfile.c: Likewise.
34066         * lib/backupfile.h: Likewise.
34067         * lib/basename.c: Likewise.
34068         * lib/binary-io.h: Likewise.
34069         * lib/byteswap.in.h: Likewise.
34070         * lib/c-stack.c: Likewise.
34071         * lib/c-stack.h: Likewise.
34072         * lib/c-strcasestr.c: Likewise.
34073         * lib/c-strcasestr.h: Likewise.
34074         * lib/c-strstr.c: Likewise.
34075         * lib/c-strstr.h: Likewise.
34076         * lib/c-strtod.c: Likewise.
34077         * lib/calloc.c: Likewise.
34078         * lib/canon-host.c: Likewise.
34079         * lib/canon-host.h: Likewise.
34080         * lib/canonicalize-lgpl.c: Likewise.
34081         * lib/canonicalize.c: Likewise.
34082         * lib/canonicalize.h: Likewise.
34083         * lib/ceil.c: Likewise.
34084         * lib/ceilf.c: Likewise.
34085         * lib/ceill.c: Likewise.
34086         * lib/chdir-long.c: Likewise.
34087         * lib/chdir-long.h: Likewise.
34088         * lib/chdir-safer.c: Likewise.
34089         * lib/chdir-safer.h: Likewise.
34090         * lib/chown.c: Likewise.
34091         * lib/classpath.c: Likewise.
34092         * lib/classpath.h: Likewise.
34093         * lib/clean-temp.c: Likewise.
34094         * lib/clean-temp.h: Likewise.
34095         * lib/cloexec.c: Likewise.
34096         * lib/close-stream.c: Likewise.
34097         * lib/closein.c: Likewise.
34098         * lib/closein.h: Likewise.
34099         * lib/closeout.c: Likewise.
34100         * lib/closeout.h: Likewise.
34101         * lib/concat-filename.c: Likewise.
34102         * lib/copy-file.c: Likewise.
34103         * lib/copy-file.h: Likewise.
34104         * lib/count-one-bits.h: Likewise.
34105         * lib/crc.c: Likewise.
34106         * lib/crc.h: Likewise.
34107         * lib/creat-safer.c: Likewise.
34108         * lib/csharpcomp.c: Likewise.
34109         * lib/csharpcomp.h: Likewise.
34110         * lib/csharpexec.c: Likewise.
34111         * lib/csharpexec.h: Likewise.
34112         * lib/cycle-check.c: Likewise.
34113         * lib/cycle-check.h: Likewise.
34114         * lib/diacrit.c: Likewise.
34115         * lib/diacrit.h: Likewise.
34116         * lib/diffseq.h: Likewise.
34117         * lib/dirchownmod.c: Likewise.
34118         * lib/dirent.in.h: Likewise.
34119         * lib/dirfd.c: Likewise.
34120         * lib/dirfd.h: Likewise.
34121         * lib/dirname.c: Likewise.
34122         * lib/dirname.h: Likewise.
34123         * lib/dummy.c: Likewise.
34124         * lib/dup-safer.c: Likewise.
34125         * lib/dup2.c: Likewise.
34126         * lib/eealloc.h: Likewise.
34127         * lib/error.c: Likewise.
34128         * lib/error.h: Likewise.
34129         * lib/euidaccess.c: Likewise.
34130         * lib/exclude.c: Likewise.
34131         * lib/exclude.h: Likewise.
34132         * lib/execute.c: Likewise.
34133         * lib/execute.h: Likewise.
34134         * lib/exitfail.c: Likewise.
34135         * lib/exitfail.h: Likewise.
34136         * lib/expl.c: Likewise.
34137         * lib/fatal-signal.c: Likewise.
34138         * lib/fatal-signal.h: Likewise.
34139         * lib/fbufmode.c: Likewise.
34140         * lib/fbufmode.h: Likewise.
34141         * lib/fchdir.c: Likewise.
34142         * lib/fchmodat.c: Likewise.
34143         * lib/fchownat.c: Likewise.
34144         * lib/fcntl--.h: Likewise.
34145         * lib/fcntl-safer.h: Likewise.
34146         * lib/fcntl.in.h: Likewise.
34147         * lib/fd-safer.c: Likewise.
34148         * lib/fflush.c: Likewise.
34149         * lib/file-has-acl.c: Likewise.
34150         * lib/file-set.c: Likewise.
34151         * lib/file-type.c: Likewise.
34152         * lib/file-type.h: Likewise.
34153         * lib/fileblocks.c: Likewise.
34154         * lib/filemode.c: Likewise.
34155         * lib/filemode.h: Likewise.
34156         * lib/filename.h: Likewise.
34157         * lib/filenamecat.c: Likewise.
34158         * lib/filenamecat.h: Likewise.
34159         * lib/findprog.c: Likewise.
34160         * lib/findprog.h: Likewise.
34161         * lib/float.in.h: Likewise.
34162         * lib/floor.c: Likewise.
34163         * lib/floorf.c: Likewise.
34164         * lib/floorl.c: Likewise.
34165         * lib/fopen-safer.c: Likewise.
34166         * lib/fopen.c: Likewise.
34167         * lib/fpending.c: Likewise.
34168         * lib/fpending.h: Likewise.
34169         * lib/fprintf.c: Likewise.
34170         * lib/fprintftime.h: Likewise.
34171         * lib/fpucw.h: Likewise.
34172         * lib/fpurge.c: Likewise.
34173         * lib/fpurge.h: Likewise.
34174         * lib/freadable.c: Likewise.
34175         * lib/freadable.h: Likewise.
34176         * lib/freadahead.c: Likewise.
34177         * lib/freadahead.h: Likewise.
34178         * lib/freading.c: Likewise.
34179         * lib/freading.h: Likewise.
34180         * lib/free.c: Likewise.
34181         * lib/freopen.c: Likewise.
34182         * lib/frexp.c: Likewise.
34183         * lib/frexpl.c: Likewise.
34184         * lib/fseek.c: Likewise.
34185         * lib/fseterr.c: Likewise.
34186         * lib/fseterr.h: Likewise.
34187         * lib/fstatat.c: Likewise.
34188         * lib/fstrcmp.c: Likewise.
34189         * lib/fstrcmp.h: Likewise.
34190         * lib/fsusage.c: Likewise.
34191         * lib/fsusage.h: Likewise.
34192         * lib/ftell.c: Likewise.
34193         * lib/ftello.c: Likewise.
34194         * lib/fts-cycle.c: Likewise.
34195         * lib/fts.c: Likewise.
34196         * lib/fts_.h: Likewise.
34197         * lib/full-read.c: Likewise.
34198         * lib/full-read.h: Likewise.
34199         * lib/full-write.c: Likewise.
34200         * lib/full-write.h: Likewise.
34201         * lib/fwritable.c: Likewise.
34202         * lib/fwritable.h: Likewise.
34203         * lib/fwriteerror.c: Likewise.
34204         * lib/fwriteerror.h: Likewise.
34205         * lib/fwriting.c: Likewise.
34206         * lib/fwriting.h: Likewise.
34207         * lib/gcd.c: Likewise.
34208         * lib/gcd.h: Likewise.
34209         * lib/getcwd.c: Likewise.
34210         * lib/getdate.h: Likewise.
34211         * lib/getdate.y: Likewise.
34212         * lib/getdomainname.c: Likewise.
34213         * lib/getdomainname.h: Likewise.
34214         * lib/getgroups.c: Likewise.
34215         * lib/gethostname.c: Likewise.
34216         * lib/gethrxtime.c: Likewise.
34217         * lib/gethrxtime.h: Likewise.
34218         * lib/getloadavg.c: Likewise.
34219         * lib/getndelim2.c: Likewise.
34220         * lib/getndelim2.h: Likewise.
34221         * lib/getnline.c: Likewise.
34222         * lib/getnline.h: Likewise.
34223         * lib/getopt.c: Likewise.
34224         * lib/getopt.in.h: Likewise.
34225         * lib/getopt1.c: Likewise.
34226         * lib/getopt_int.h: Likewise.
34227         * lib/getpagesize.h: Likewise.
34228         * lib/getsubopt.c: Likewise.
34229         * lib/gettime.c: Likewise.
34230         * lib/getugroups.c: Likewise.
34231         * lib/getugroups.h: Likewise.
34232         * lib/getusershell.c: Likewise.
34233         * lib/gl_anyavltree_list1.h: Likewise.
34234         * lib/gl_anyavltree_list2.h: Likewise.
34235         * lib/gl_anyhash_list1.h: Likewise.
34236         * lib/gl_anyhash_list2.h: Likewise.
34237         * lib/gl_anylinked_list1.h: Likewise.
34238         * lib/gl_anylinked_list2.h: Likewise.
34239         * lib/gl_anyrbtree_list1.h: Likewise.
34240         * lib/gl_anyrbtree_list2.h: Likewise.
34241         * lib/gl_anytree_list1.h: Likewise.
34242         * lib/gl_anytree_list2.h: Likewise.
34243         * lib/gl_anytree_oset.h: Likewise.
34244         * lib/gl_anytreehash_list1.h: Likewise.
34245         * lib/gl_anytreehash_list2.h: Likewise.
34246         * lib/gl_array_list.c: Likewise.
34247         * lib/gl_array_list.h: Likewise.
34248         * lib/gl_array_oset.c: Likewise.
34249         * lib/gl_array_oset.h: Likewise.
34250         * lib/gl_avltree_list.c: Likewise.
34251         * lib/gl_avltree_list.h: Likewise.
34252         * lib/gl_avltree_oset.c: Likewise.
34253         * lib/gl_avltree_oset.h: Likewise.
34254         * lib/gl_avltreehash_list.c: Likewise.
34255         * lib/gl_avltreehash_list.h: Likewise.
34256         * lib/gl_carray_list.c: Likewise.
34257         * lib/gl_carray_list.h: Likewise.
34258         * lib/gl_linked_list.c: Likewise.
34259         * lib/gl_linked_list.h: Likewise.
34260         * lib/gl_linkedhash_list.c: Likewise.
34261         * lib/gl_linkedhash_list.h: Likewise.
34262         * lib/gl_list.c: Likewise.
34263         * lib/gl_list.h: Likewise.
34264         * lib/gl_oset.c: Likewise.
34265         * lib/gl_oset.h: Likewise.
34266         * lib/gl_rbtree_list.c: Likewise.
34267         * lib/gl_rbtree_list.h: Likewise.
34268         * lib/gl_rbtree_oset.c: Likewise.
34269         * lib/gl_rbtree_oset.h: Likewise.
34270         * lib/gl_rbtreehash_list.c: Likewise.
34271         * lib/gl_rbtreehash_list.h: Likewise.
34272         * lib/gl_sublist.c: Likewise.
34273         * lib/gl_sublist.h: Likewise.
34274         * lib/group-member.c: Likewise.
34275         * lib/group-member.h: Likewise.
34276         * lib/hard-locale.c: Likewise.
34277         * lib/hard-locale.h: Likewise.
34278         * lib/hash-pjw.c: Likewise.
34279         * lib/hash-pjw.h: Likewise.
34280         * lib/hash-triple.c: Likewise.
34281         * lib/hash.c: Likewise.
34282         * lib/hash.h: Likewise.
34283         * lib/human.c: Likewise.
34284         * lib/human.h: Likewise.
34285         * lib/i-ring.c: Likewise.
34286         * lib/i-ring.h: Likewise.
34287         * lib/idcache.c: Likewise.
34288         * lib/imaxabs.c: Likewise.
34289         * lib/imaxdiv.c: Likewise.
34290         * lib/inet_pton.c: Likewise.
34291         * lib/inet_pton.h: Likewise.
34292         * lib/intprops.h: Likewise.
34293         * lib/inttostr.c: Likewise.
34294         * lib/inttostr.h: Likewise.
34295         * lib/inttypes.in.h: Likewise.
34296         * lib/isapipe.c: Likewise.
34297         * lib/isdir.c: Likewise.
34298         * lib/isnan.c: Likewise.
34299         * lib/isnan.h: Likewise.
34300         * lib/isnanf.c: Likewise.
34301         * lib/isnanf.h: Likewise.
34302         * lib/isnanl-nolibm.h: Likewise.
34303         * lib/isnanl.c: Likewise.
34304         * lib/isnanl.h: Likewise.
34305         * lib/javacomp.c: Likewise.
34306         * lib/javacomp.h: Likewise.
34307         * lib/javaexec.c: Likewise.
34308         * lib/javaexec.h: Likewise.
34309         * lib/javaversion.c: Likewise.
34310         * lib/javaversion.h: Likewise.
34311         * lib/javaversion.java: Likewise.
34312         * lib/lbrkprop.h: Likewise.
34313         * lib/lchmod.h: Likewise.
34314         * lib/lchown.c: Likewise.
34315         * lib/ldexpl.c: Likewise.
34316         * lib/linebreak.c: Likewise.
34317         * lib/linebreak.h: Likewise.
34318         * lib/linebuffer.c: Likewise.
34319         * lib/linebuffer.h: Likewise.
34320         * lib/locale.in.h: Likewise.
34321         * lib/logl.c: Likewise.
34322         * lib/long-options.c: Likewise.
34323         * lib/long-options.h: Likewise.
34324         * lib/lstat.c: Likewise.
34325         * lib/lstat.h: Likewise.
34326         * lib/math.in.h: Likewise.
34327         * lib/mbchar.c: Likewise.
34328         * lib/mbchar.h: Likewise.
34329         * lib/mbfile.h: Likewise.
34330         * lib/mbiter.h: Likewise.
34331         * lib/mbscasecmp.c: Likewise.
34332         * lib/mbscasestr.c: Likewise.
34333         * lib/mbschr.c: Likewise.
34334         * lib/mbscspn.c: Likewise.
34335         * lib/mbslen.c: Likewise.
34336         * lib/mbsncasecmp.c: Likewise.
34337         * lib/mbsnlen.c: Likewise.
34338         * lib/mbspbrk.c: Likewise.
34339         * lib/mbspcasecmp.c: Likewise.
34340         * lib/mbsrchr.c: Likewise.
34341         * lib/mbssep.c: Likewise.
34342         * lib/mbsspn.c: Likewise.
34343         * lib/mbsstr.c: Likewise.
34344         * lib/mbstok_r.c: Likewise.
34345         * lib/mbswidth.c: Likewise.
34346         * lib/mbswidth.h: Likewise.
34347         * lib/mbuiter.h: Likewise.
34348         * lib/memcasecmp.c: Likewise.
34349         * lib/memcasecmp.h: Likewise.
34350         * lib/memchr.c: Likewise.
34351         * lib/memcmp.c: Likewise.
34352         * lib/memcoll.c: Likewise.
34353         * lib/memcoll.h: Likewise.
34354         * lib/memcpy.c: Likewise.
34355         * lib/memrchr.c: Likewise.
34356         * lib/mkancesdirs.c: Likewise.
34357         * lib/mkdir-p.c: Likewise.
34358         * lib/mkdir-p.h: Likewise.
34359         * lib/mkdir.c: Likewise.
34360         * lib/mkdirat.c: Likewise.
34361         * lib/mkdtemp.c: Likewise.
34362         * lib/mkstemp-safer.c: Likewise.
34363         * lib/mkstemp.c: Likewise.
34364         * lib/modechange.c: Likewise.
34365         * lib/modechange.h: Likewise.
34366         * lib/mountlist.c: Likewise.
34367         * lib/mountlist.h: Likewise.
34368         * lib/mpsort.c: Likewise.
34369         * lib/nanosleep.c: Likewise.
34370         * lib/obstack.c: Likewise.
34371         * lib/obstack.h: Likewise.
34372         * lib/open-safer.c: Likewise.
34373         * lib/open.c: Likewise.
34374         * lib/openat-die.c: Likewise.
34375         * lib/openat-priv.h: Likewise.
34376         * lib/openat-proc.c: Likewise.
34377         * lib/openat.c: Likewise.
34378         * lib/openat.h: Likewise.
34379         * lib/pagealign_alloc.c: Likewise.
34380         * lib/pagealign_alloc.h: Likewise.
34381         * lib/physmem.c: Likewise.
34382         * lib/physmem.h: Likewise.
34383         * lib/pipe-safer.c: Likewise.
34384         * lib/pipe.c: Likewise.
34385         * lib/pipe.h: Likewise.
34386         * lib/posixtm.c: Likewise.
34387         * lib/posixtm.h: Likewise.
34388         * lib/posixver.c: Likewise.
34389         * lib/printf-frexp.c: Likewise.
34390         * lib/printf-frexp.h: Likewise.
34391         * lib/printf-frexpl.c: Likewise.
34392         * lib/printf-frexpl.h: Likewise.
34393         * lib/printf.c: Likewise.
34394         * lib/progname.c: Likewise.
34395         * lib/progname.h: Likewise.
34396         * lib/progreloc.c: Likewise.
34397         * lib/putenv.c: Likewise.
34398         * lib/quote.c: Likewise.
34399         * lib/quote.h: Likewise.
34400         * lib/quotearg.c: Likewise.
34401         * lib/quotearg.h: Likewise.
34402         * lib/raise.c: Likewise.
34403         * lib/readline.c: Likewise.
34404         * lib/readline.h: Likewise.
34405         * lib/readlink.c: Likewise.
34406         * lib/readtokens.c: Likewise.
34407         * lib/readtokens.h: Likewise.
34408         * lib/readtokens0.c: Likewise.
34409         * lib/readtokens0.h: Likewise.
34410         * lib/readutmp.c: Likewise.
34411         * lib/readutmp.h: Likewise.
34412         * lib/realloc.c: Likewise.
34413         * lib/relocwrapper.c: Likewise.
34414         * lib/rename-dest-slash.c: Likewise.
34415         * lib/rename.c: Likewise.
34416         * lib/rmdir.c: Likewise.
34417         * lib/rpmatch.c: Likewise.
34418         * lib/safe-read.c: Likewise.
34419         * lib/safe-read.h: Likewise.
34420         * lib/safe-write.c: Likewise.
34421         * lib/safe-write.h: Likewise.
34422         * lib/same-inode.h: Likewise.
34423         * lib/same.c: Likewise.
34424         * lib/same.h: Likewise.
34425         * lib/save-cwd.c: Likewise.
34426         * lib/save-cwd.h: Likewise.
34427         * lib/savedir.c: Likewise.
34428         * lib/savedir.h: Likewise.
34429         * lib/savewd.c: Likewise.
34430         * lib/savewd.h: Likewise.
34431         * lib/search.in.h: Likewise.
34432         * lib/setenv.c: Likewise.
34433         * lib/setenv.h: Likewise.
34434         * lib/settime.c: Likewise.
34435         * lib/sh-quote.c: Likewise.
34436         * lib/sh-quote.h: Likewise.
34437         * lib/sig2str.c: Likewise.
34438         * lib/sig2str.h: Likewise.
34439         * lib/signal.in.h: Likewise.
34440         * lib/signbitd.c: Likewise.
34441         * lib/signbitf.c: Likewise.
34442         * lib/signbitl.c: Likewise.
34443         * lib/sigprocmask.c: Likewise.
34444         * lib/sincosl.c: Likewise.
34445         * lib/sleep.c: Likewise.
34446         * lib/sprintf.c: Likewise.
34447         * lib/sqrtl.c: Likewise.
34448         * lib/stat-time.h: Likewise.
34449         * lib/stdio--.h: Likewise.
34450         * lib/stdio-safer.h: Likewise.
34451         * lib/stdlib--.h: Likewise.
34452         * lib/stdlib-safer.h: Likewise.
34453         * lib/stdlib.in.h: Likewise.
34454         * lib/stpcpy.c: Likewise.
34455         * lib/stpncpy.c: Likewise.
34456         * lib/strchrnul.c: Likewise.
34457         * lib/strcspn.c: Likewise.
34458         * lib/strerror.c: Likewise.
34459         * lib/strftime.c: Likewise.
34460         * lib/strftime.h: Likewise.
34461         * lib/striconveh.c: Likewise.
34462         * lib/striconveh.h: Likewise.
34463         * lib/striconveha.c: Likewise.
34464         * lib/striconveha.h: Likewise.
34465         * lib/stripslash.c: Likewise.
34466         * lib/strnlen1.c: Likewise.
34467         * lib/strnlen1.h: Likewise.
34468         * lib/strtod.c: Likewise.
34469         * lib/strtoimax.c: Likewise.
34470         * lib/strtok_r.c: Likewise.
34471         * lib/strtol.c: Likewise.
34472         * lib/strtoll.c: Likewise.
34473         * lib/strtoul.c: Likewise.
34474         * lib/strtoull.c: Likewise.
34475         * lib/sysexits.in.h: Likewise.
34476         * lib/tempname.c: Likewise.
34477         * lib/tempname.h: Likewise.
34478         * lib/timespec.h: Likewise.
34479         * lib/tls.c: Likewise.
34480         * lib/tls.h: Likewise.
34481         * lib/tmpdir.c: Likewise.
34482         * lib/tmpdir.h: Likewise.
34483         * lib/tmpfile-safer.c: Likewise.
34484         * lib/tmpfile.c: Likewise.
34485         * lib/trigl.c: Likewise.
34486         * lib/trigl.h: Likewise.
34487         * lib/trim.c: Likewise.
34488         * lib/trim.h: Likewise.
34489         * lib/trunc.c: Likewise.
34490         * lib/truncf.c: Likewise.
34491         * lib/truncl.c: Likewise.
34492         * lib/tsearch.c: Likewise.
34493         * lib/unicodeio.c: Likewise.
34494         * lib/unicodeio.h: Likewise.
34495         * lib/unistd--.h: Likewise.
34496         * lib/unistd-safer.h: Likewise.
34497         * lib/unistdio/ulc-fprintf.c: Likewise.
34498         * lib/unistdio/ulc-vfprintf.c: Likewise.
34499         * lib/unlinkdir.c: Likewise.
34500         * lib/unlinkdir.h: Likewise.
34501         * lib/unlocked-io.h: Likewise.
34502         * lib/unsetenv.c: Likewise.
34503         * lib/userspec.c: Likewise.
34504         * lib/utime.c: Likewise.
34505         * lib/utimecmp.c: Likewise.
34506         * lib/utimecmp.h: Likewise.
34507         * lib/utimens.c: Likewise.
34508         * lib/verify.h: Likewise.
34509         * lib/verror.c: Likewise.
34510         * lib/verror.h: Likewise.
34511         * lib/version-etc-fsf.c: Likewise.
34512         * lib/version-etc.c: Likewise.
34513         * lib/version-etc.h: Likewise.
34514         * lib/vfprintf.c: Likewise.
34515         * lib/vprintf.c: Likewise.
34516         * lib/vsprintf.c: Likewise.
34517         * lib/w32spawn.h: Likewise.
34518         * lib/wait-process.c: Likewise.
34519         * lib/wait-process.h: Likewise.
34520         * lib/wcwidth.c: Likewise.
34521         * lib/write-any-file.c: Likewise.
34522         * lib/xalloc-die.c: Likewise.
34523         * lib/xalloc.h: Likewise.
34524         * lib/xasprintf.c: Likewise.
34525         * lib/xgetcwd.c: Likewise.
34526         * lib/xgetcwd.h: Likewise.
34527         * lib/xgetdomainname.c: Likewise.
34528         * lib/xgetdomainname.h: Likewise.
34529         * lib/xgethostname.c: Likewise.
34530         * lib/xmalloc.c: Likewise.
34531         * lib/xmalloca.c: Likewise.
34532         * lib/xmalloca.h: Likewise.
34533         * lib/xmemcoll.c: Likewise.
34534         * lib/xnanosleep.c: Likewise.
34535         * lib/xreadlink.c: Likewise.
34536         * lib/xreadlink.h: Likewise.
34537         * lib/xsetenv.c: Likewise.
34538         * lib/xsetenv.h: Likewise.
34539         * lib/xstriconv.c: Likewise.
34540         * lib/xstriconv.h: Likewise.
34541         * lib/xstrndup.c: Likewise.
34542         * lib/xstrndup.h: Likewise.
34543         * lib/xstrtod.c: Likewise.
34544         * lib/xstrtod.h: Likewise.
34545         * lib/xstrtol-error.c: Likewise.
34546         * lib/xstrtol.c: Likewise.
34547         * lib/xstrtol.h: Likewise.
34548         * lib/xtime.h: Likewise.
34549         * lib/xvasprintf.c: Likewise.
34550         * lib/xvasprintf.h: Likewise.
34551         * lib/yesno.c: Likewise.
34552         * lib/yesno.h: Likewise.
34553         * posix-modules: Likewise.
34554         * tests/test-alloca-opt.c: Likewise.
34555         * tests/test-arcfour.c: Likewise.
34556         * tests/test-arctwo.c: Likewise.
34557         * tests/test-argmatch.c: Likewise.
34558         * tests/test-argp-2.sh: Likewise.
34559         * tests/test-argp.c: Likewise.
34560         * tests/test-arpa_inet.c: Likewise.
34561         * tests/test-array_list.c: Likewise.
34562         * tests/test-array_oset.c: Likewise.
34563         * tests/test-atexit.c: Likewise.
34564         * tests/test-avltree_list.c: Likewise.
34565         * tests/test-avltree_oset.c: Likewise.
34566         * tests/test-avltreehash_list.c: Likewise.
34567         * tests/test-base64.c: Likewise.
34568         * tests/test-binary-io.c: Likewise.
34569         * tests/test-byteswap.c: Likewise.
34570         * tests/test-c-ctype.c: Likewise.
34571         * tests/test-c-strcasecmp.c: Likewise.
34572         * tests/test-c-strcasestr.c: Likewise.
34573         * tests/test-c-strncasecmp.c: Likewise.
34574         * tests/test-c-strstr.c: Likewise.
34575         * tests/test-canonicalize-lgpl.c: Likewise.
34576         * tests/test-canonicalize.c: Likewise.
34577         * tests/test-carray_list.c: Likewise.
34578         * tests/test-ceilf.c: Likewise.
34579         * tests/test-ceill.c: Likewise.
34580         * tests/test-count-one-bits.c: Likewise.
34581         * tests/test-crc.c: Likewise.
34582         * tests/test-dirname.c: Likewise.
34583         * tests/test-fbufmode.c: Likewise.
34584         * tests/test-fcntl.c: Likewise.
34585         * tests/test-fflush.c: Likewise.
34586         * tests/test-floorf.c: Likewise.
34587         * tests/test-floorl.c: Likewise.
34588         * tests/test-fopen.c: Likewise.
34589         * tests/test-fprintf-posix.c: Likewise.
34590         * tests/test-fprintf-posix.h: Likewise.
34591         * tests/test-fpurge.c: Likewise.
34592         * tests/test-freadable.c: Likewise.
34593         * tests/test-freadahead.c: Likewise.
34594         * tests/test-freading.c: Likewise.
34595         * tests/test-freopen.c: Likewise.
34596         * tests/test-frexp.c: Likewise.
34597         * tests/test-frexpl.c: Likewise.
34598         * tests/test-fseek.c: Likewise.
34599         * tests/test-fseeko.c: Likewise.
34600         * tests/test-fseterr.c: Likewise.
34601         * tests/test-fstrcmp.c: Likewise.
34602         * tests/test-ftell.c: Likewise.
34603         * tests/test-ftello.c: Likewise.
34604         * tests/test-fwritable.c: Likewise.
34605         * tests/test-fwriting.c: Likewise.
34606         * tests/test-getaddrinfo.c: Likewise.
34607         * tests/test-getpass.c: Likewise.
34608         * tests/test-gettimeofday.c: Likewise.
34609         * tests/test-hmac-md5.c: Likewise.
34610         * tests/test-hmac-sha1.c: Likewise.
34611         * tests/test-iconv.c: Likewise.
34612         * tests/test-iconvme.c: Likewise.
34613         * tests/test-inttypes.c: Likewise.
34614         * tests/test-isnan.c: Likewise.
34615         * tests/test-isnanf.c: Likewise.
34616         * tests/test-isnanl-nolibm.c: Likewise.
34617         * tests/test-isnanl.c: Likewise.
34618         * tests/test-isnanl.h: Likewise.
34619         * tests/test-ldexpl.c: Likewise.
34620         * tests/test-linked_list.c: Likewise.
34621         * tests/test-linkedhash_list.c: Likewise.
34622         * tests/test-locale.c: Likewise.
34623         * tests/test-localename.c: Likewise.
34624         * tests/test-lock.c: Likewise.
34625         * tests/test-lseek.c: Likewise.
34626         * tests/test-malloca.c: Likewise.
34627         * tests/test-math.c: Likewise.
34628         * tests/test-mbscasecmp.c: Likewise.
34629         * tests/test-mbscasestr1.c: Likewise.
34630         * tests/test-mbscasestr2.c: Likewise.
34631         * tests/test-mbscasestr3.c: Likewise.
34632         * tests/test-mbscasestr4.c: Likewise.
34633         * tests/test-mbschr.c: Likewise.
34634         * tests/test-mbscspn.c: Likewise.
34635         * tests/test-mbsncasecmp.c: Likewise.
34636         * tests/test-mbspbrk.c: Likewise.
34637         * tests/test-mbspcasecmp.c: Likewise.
34638         * tests/test-mbsrchr.c: Likewise.
34639         * tests/test-mbsspn.c: Likewise.
34640         * tests/test-mbsstr1.c: Likewise.
34641         * tests/test-mbsstr2.c: Likewise.
34642         * tests/test-mbsstr3.c: Likewise.
34643         * tests/test-md5.c: Likewise.
34644         * tests/test-memmem.c: Likewise.
34645         * tests/test-netinet_in.c: Likewise.
34646         * tests/test-open.c: Likewise.
34647         * tests/test-printf-frexp.c: Likewise.
34648         * tests/test-printf-frexpl.c: Likewise.
34649         * tests/test-printf-posix.c: Likewise.
34650         * tests/test-printf-posix.h: Likewise.
34651         * tests/test-rbtree_list.c: Likewise.
34652         * tests/test-rbtree_oset.c: Likewise.
34653         * tests/test-rbtreehash_list.c: Likewise.
34654         * tests/test-read-file.c: Likewise.
34655         * tests/test-rijndael.c: Likewise.
34656         * tests/test-search.c: Likewise.
34657         * tests/test-signbit.c: Likewise.
34658         * tests/test-sleep.c: Likewise.
34659         * tests/test-snprintf-posix.c: Likewise.
34660         * tests/test-snprintf-posix.h: Likewise.
34661         * tests/test-snprintf.c: Likewise.
34662         * tests/test-sprintf-posix.c: Likewise.
34663         * tests/test-sprintf-posix.h: Likewise.
34664         * tests/test-stat-time.c: Likewise.
34665         * tests/test-stdbool.c: Likewise.
34666         * tests/test-stdint.c: Likewise.
34667         * tests/test-stdio.c: Likewise.
34668         * tests/test-stdlib.c: Likewise.
34669         * tests/test-stpncpy.c: Likewise.
34670         * tests/test-strcasestr.c: Likewise.
34671         * tests/test-striconv.c: Likewise.
34672         * tests/test-striconveh.c: Likewise.
34673         * tests/test-striconveha.c: Likewise.
34674         * tests/test-string.c: Likewise.
34675         * tests/test-sys_select.c: Likewise.
34676         * tests/test-sys_socket.c: Likewise.
34677         * tests/test-sys_stat.c: Likewise.
34678         * tests/test-sys_time.c: Likewise.
34679         * tests/test-sysexits.c: Likewise.
34680         * tests/test-time.c: Likewise.
34681         * tests/test-tls.c: Likewise.
34682         * tests/test-trunc.c: Likewise.
34683         * tests/test-truncf.c: Likewise.
34684         * tests/test-truncl.c: Likewise.
34685         * tests/test-unistd.c: Likewise.
34686         * tests/test-vasnprintf-posix.c: Likewise.
34687         * tests/test-vasnprintf-posix2.c: Likewise.
34688         * tests/test-vasnprintf.c: Likewise.
34689         * tests/test-vasprintf-posix.c: Likewise.
34690         * tests/test-vasprintf.c: Likewise.
34691         * tests/test-verify.c: Likewise.
34692         * tests/test-vfprintf-posix.c: Likewise.
34693         * tests/test-vprintf-posix.c: Likewise.
34694         * tests/test-vsnprintf-posix.c: Likewise.
34695         * tests/test-vsnprintf.c: Likewise.
34696         * tests/test-vsprintf-posix.c: Likewise.
34697         * tests/test-wchar.c: Likewise.
34698         * tests/test-wctype.c: Likewise.
34699         * tests/test-wcwidth.c: Likewise.
34700         * tests/test-xstrtol.c: Likewise.
34701         * tests/test-xvasprintf.c: Likewise.
34702         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34703         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34704         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34705         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34706         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34707         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34708         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34709         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34710         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34711         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34712         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34713         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34714         * tests/uniname/test-uninames.c: Likewise.
34715         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34716         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34717         * tests/unistdio/test-u16-printf1.h: Likewise.
34718         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34719         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34720         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34721         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34722         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34723         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34724         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34725         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
34726         * tests/unistdio/test-u32-printf1.h: Likewise.
34727         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34728         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34729         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34730         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34731         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34732         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34733         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34734         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
34735         * tests/unistdio/test-u8-printf1.h: Likewise.
34736         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34737         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34738         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34739         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34740         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34741         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34742         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34743         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
34744         * tests/unistdio/test-ulc-printf1.h: Likewise.
34745         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34746         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34747         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34748         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34749         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34750         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34751         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34752         * tests/uniwidth/test-u16-width.c: Likewise.
34753         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34754         * tests/uniwidth/test-u32-width.c: Likewise.
34755         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34756         * tests/uniwidth/test-u8-width.c: Likewise.
34757         * tests/uniwidth/test-uc_width.c: Likewise.
34758         * config/srclist-update: Likewise.
34759         (fixlicense): Update to GPLv3+.
34760
34761         Change copyright notice from LGPLv2.1+ to LGPLv3+.
34762         * tests/test-tsearch.c: Change copyright notice.
34763
34764         Change copyright notice from LGPLv2.0+ to LGPLv3+.
34765         * lib/c-strcaseeq.h: Change copyright notice.
34766         * lib/streq.h: Likewise.
34767         * lib/uniconv.h: Likewise.
34768         * lib/uniconv/u-conv-from-enc.h: Likewise.
34769         * lib/uniconv/u-conv-to-enc.h: Likewise.
34770         * lib/uniconv/u-strconv-from-enc.h: Likewise.
34771         * lib/uniconv/u-strconv-to-enc.h: Likewise.
34772         * lib/uniconv/u16-conv-from-enc.c: Likewise.
34773         * lib/uniconv/u16-conv-to-enc.c: Likewise.
34774         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
34775         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
34776         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
34777         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
34778         * lib/uniconv/u32-conv-from-enc.c: Likewise.
34779         * lib/uniconv/u32-conv-to-enc.c: Likewise.
34780         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
34781         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
34782         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
34783         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
34784         * lib/uniconv/u8-conv-from-enc.c: Likewise.
34785         * lib/uniconv/u8-conv-to-enc.c: Likewise.
34786         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
34787         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
34788         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
34789         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
34790         * lib/uniname.h: Likewise.
34791         * lib/uniname/uniname.c: Likewise.
34792         * lib/unistdio.h: Likewise.
34793         * lib/unistdio/u-asnprintf.h: Likewise.
34794         * lib/unistdio/u-asprintf.h: Likewise.
34795         * lib/unistdio/u-printf-args.c: Likewise.
34796         * lib/unistdio/u-printf-args.h: Likewise.
34797         * lib/unistdio/u-printf-parse.h: Likewise.
34798         * lib/unistdio/u-snprintf.h: Likewise.
34799         * lib/unistdio/u-sprintf.h: Likewise.
34800         * lib/unistdio/u-vasprintf.h: Likewise.
34801         * lib/unistdio/u-vsnprintf.h: Likewise.
34802         * lib/unistdio/u-vsprintf.h: Likewise.
34803         * lib/unistdio/u16-asnprintf.c: Likewise.
34804         * lib/unistdio/u16-asprintf.c: Likewise.
34805         * lib/unistdio/u16-printf-parse.c: Likewise.
34806         * lib/unistdio/u16-snprintf.c: Likewise.
34807         * lib/unistdio/u16-sprintf.c: Likewise.
34808         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
34809         * lib/unistdio/u16-u16-asprintf.c: Likewise.
34810         * lib/unistdio/u16-u16-snprintf.c: Likewise.
34811         * lib/unistdio/u16-u16-sprintf.c: Likewise.
34812         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
34813         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
34814         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
34815         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
34816         * lib/unistdio/u16-vasnprintf.c: Likewise.
34817         * lib/unistdio/u16-vasprintf.c: Likewise.
34818         * lib/unistdio/u16-vsnprintf.c: Likewise.
34819         * lib/unistdio/u16-vsprintf.c: Likewise.
34820         * lib/unistdio/u32-asnprintf.c: Likewise.
34821         * lib/unistdio/u32-asprintf.c: Likewise.
34822         * lib/unistdio/u32-printf-parse.c: Likewise.
34823         * lib/unistdio/u32-snprintf.c: Likewise.
34824         * lib/unistdio/u32-sprintf.c: Likewise.
34825         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
34826         * lib/unistdio/u32-u32-asprintf.c: Likewise.
34827         * lib/unistdio/u32-u32-snprintf.c: Likewise.
34828         * lib/unistdio/u32-u32-sprintf.c: Likewise.
34829         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
34830         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
34831         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
34832         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
34833         * lib/unistdio/u32-vasnprintf.c: Likewise.
34834         * lib/unistdio/u32-vasprintf.c: Likewise.
34835         * lib/unistdio/u32-vsnprintf.c: Likewise.
34836         * lib/unistdio/u32-vsprintf.c: Likewise.
34837         * lib/unistdio/u8-asnprintf.c: Likewise.
34838         * lib/unistdio/u8-asprintf.c: Likewise.
34839         * lib/unistdio/u8-printf-parse.c: Likewise.
34840         * lib/unistdio/u8-snprintf.c: Likewise.
34841         * lib/unistdio/u8-sprintf.c: Likewise.
34842         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
34843         * lib/unistdio/u8-u8-asprintf.c: Likewise.
34844         * lib/unistdio/u8-u8-snprintf.c: Likewise.
34845         * lib/unistdio/u8-u8-sprintf.c: Likewise.
34846         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
34847         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
34848         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
34849         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
34850         * lib/unistdio/u8-vasnprintf.c: Likewise.
34851         * lib/unistdio/u8-vasprintf.c: Likewise.
34852         * lib/unistdio/u8-vsnprintf.c: Likewise.
34853         * lib/unistdio/u8-vsprintf.c: Likewise.
34854         * lib/unistdio/ulc-asnprintf.c: Likewise.
34855         * lib/unistdio/ulc-asprintf.c: Likewise.
34856         * lib/unistdio/ulc-printf-parse.c: Likewise.
34857         * lib/unistdio/ulc-snprintf.c: Likewise.
34858         * lib/unistdio/ulc-sprintf.c: Likewise.
34859         * lib/unistdio/ulc-vasnprintf.c: Likewise.
34860         * lib/unistdio/ulc-vasprintf.c: Likewise.
34861         * lib/unistdio/ulc-vsnprintf.c: Likewise.
34862         * lib/unistdio/ulc-vsprintf.c: Likewise.
34863         * lib/unistr.h: Likewise.
34864         * lib/unistr/u-cpy-alloc.h: Likewise.
34865         * lib/unistr/u-cpy.h: Likewise.
34866         * lib/unistr/u-endswith.h: Likewise.
34867         * lib/unistr/u-move.h: Likewise.
34868         * lib/unistr/u-set.h: Likewise.
34869         * lib/unistr/u-startswith.h: Likewise.
34870         * lib/unistr/u-stpcpy.h: Likewise.
34871         * lib/unistr/u-stpncpy.h: Likewise.
34872         * lib/unistr/u-strcat.h: Likewise.
34873         * lib/unistr/u-strcpy.h: Likewise.
34874         * lib/unistr/u-strcspn.h: Likewise.
34875         * lib/unistr/u-strdup.h: Likewise.
34876         * lib/unistr/u-strlen.h: Likewise.
34877         * lib/unistr/u-strncat.h: Likewise.
34878         * lib/unistr/u-strncpy.h: Likewise.
34879         * lib/unistr/u-strnlen.h: Likewise.
34880         * lib/unistr/u-strpbrk.h: Likewise.
34881         * lib/unistr/u-strspn.h: Likewise.
34882         * lib/unistr/u-strstr.h: Likewise.
34883         * lib/unistr/u-strtok.h: Likewise.
34884         * lib/unistr/u16-check.c: Likewise.
34885         * lib/unistr/u16-chr.c: Likewise.
34886         * lib/unistr/u16-cmp.c: Likewise.
34887         * lib/unistr/u16-cpy-alloc.c: Likewise.
34888         * lib/unistr/u16-cpy.c: Likewise.
34889         * lib/unistr/u16-endswith.c: Likewise.
34890         * lib/unistr/u16-mblen.c: Likewise.
34891         * lib/unistr/u16-mbsnlen.c: Likewise.
34892         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34893         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34894         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34895         * lib/unistr/u16-mbtouc.c: Likewise.
34896         * lib/unistr/u16-mbtoucr.c: Likewise.
34897         * lib/unistr/u16-move.c: Likewise.
34898         * lib/unistr/u16-next.c: Likewise.
34899         * lib/unistr/u16-prev.c: Likewise.
34900         * lib/unistr/u16-set.c: Likewise.
34901         * lib/unistr/u16-startswith.c: Likewise.
34902         * lib/unistr/u16-stpcpy.c: Likewise.
34903         * lib/unistr/u16-stpncpy.c: Likewise.
34904         * lib/unistr/u16-strcat.c: Likewise.
34905         * lib/unistr/u16-strchr.c: Likewise.
34906         * lib/unistr/u16-strcmp.c: Likewise.
34907         * lib/unistr/u16-strcpy.c: Likewise.
34908         * lib/unistr/u16-strcspn.c: Likewise.
34909         * lib/unistr/u16-strdup.c: Likewise.
34910         * lib/unistr/u16-strlen.c: Likewise.
34911         * lib/unistr/u16-strmblen.c: Likewise.
34912         * lib/unistr/u16-strmbtouc.c: Likewise.
34913         * lib/unistr/u16-strncat.c: Likewise.
34914         * lib/unistr/u16-strncmp.c: Likewise.
34915         * lib/unistr/u16-strncpy.c: Likewise.
34916         * lib/unistr/u16-strnlen.c: Likewise.
34917         * lib/unistr/u16-strpbrk.c: Likewise.
34918         * lib/unistr/u16-strrchr.c: Likewise.
34919         * lib/unistr/u16-strspn.c: Likewise.
34920         * lib/unistr/u16-strstr.c: Likewise.
34921         * lib/unistr/u16-strtok.c: Likewise.
34922         * lib/unistr/u16-to-u32.c: Likewise.
34923         * lib/unistr/u16-to-u8.c: Likewise.
34924         * lib/unistr/u16-uctomb-aux.c: Likewise.
34925         * lib/unistr/u16-uctomb.c: Likewise.
34926         * lib/unistr/u32-check.c: Likewise.
34927         * lib/unistr/u32-chr.c: Likewise.
34928         * lib/unistr/u32-cmp.c: Likewise.
34929         * lib/unistr/u32-cpy-alloc.c: Likewise.
34930         * lib/unistr/u32-cpy.c: Likewise.
34931         * lib/unistr/u32-endswith.c: Likewise.
34932         * lib/unistr/u32-mblen.c: Likewise.
34933         * lib/unistr/u32-mbsnlen.c: Likewise.
34934         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34935         * lib/unistr/u32-mbtouc.c: Likewise.
34936         * lib/unistr/u32-mbtoucr.c: Likewise.
34937         * lib/unistr/u32-move.c: Likewise.
34938         * lib/unistr/u32-next.c: Likewise.
34939         * lib/unistr/u32-prev.c: Likewise.
34940         * lib/unistr/u32-set.c: Likewise.
34941         * lib/unistr/u32-startswith.c: Likewise.
34942         * lib/unistr/u32-stpcpy.c: Likewise.
34943         * lib/unistr/u32-stpncpy.c: Likewise.
34944         * lib/unistr/u32-strcat.c: Likewise.
34945         * lib/unistr/u32-strchr.c: Likewise.
34946         * lib/unistr/u32-strcmp.c: Likewise.
34947         * lib/unistr/u32-strcpy.c: Likewise.
34948         * lib/unistr/u32-strcspn.c: Likewise.
34949         * lib/unistr/u32-strdup.c: Likewise.
34950         * lib/unistr/u32-strlen.c: Likewise.
34951         * lib/unistr/u32-strmblen.c: Likewise.
34952         * lib/unistr/u32-strmbtouc.c: Likewise.
34953         * lib/unistr/u32-strncat.c: Likewise.
34954         * lib/unistr/u32-strncmp.c: Likewise.
34955         * lib/unistr/u32-strncpy.c: Likewise.
34956         * lib/unistr/u32-strnlen.c: Likewise.
34957         * lib/unistr/u32-strpbrk.c: Likewise.
34958         * lib/unistr/u32-strrchr.c: Likewise.
34959         * lib/unistr/u32-strspn.c: Likewise.
34960         * lib/unistr/u32-strstr.c: Likewise.
34961         * lib/unistr/u32-strtok.c: Likewise.
34962         * lib/unistr/u32-to-u16.c: Likewise.
34963         * lib/unistr/u32-to-u8.c: Likewise.
34964         * lib/unistr/u32-uctomb.c: Likewise.
34965         * lib/unistr/u8-check.c: Likewise.
34966         * lib/unistr/u8-chr.c: Likewise.
34967         * lib/unistr/u8-cmp.c: Likewise.
34968         * lib/unistr/u8-cpy-alloc.c: Likewise.
34969         * lib/unistr/u8-cpy.c: Likewise.
34970         * lib/unistr/u8-endswith.c: Likewise.
34971         * lib/unistr/u8-mblen.c: Likewise.
34972         * lib/unistr/u8-mbsnlen.c: Likewise.
34973         * lib/unistr/u8-mbtouc-aux.c: Likewise.
34974         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34975         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34976         * lib/unistr/u8-mbtouc.c: Likewise.
34977         * lib/unistr/u8-mbtoucr.c: Likewise.
34978         * lib/unistr/u8-move.c: Likewise.
34979         * lib/unistr/u8-next.c: Likewise.
34980         * lib/unistr/u8-prev.c: Likewise.
34981         * lib/unistr/u8-set.c: Likewise.
34982         * lib/unistr/u8-startswith.c: Likewise.
34983         * lib/unistr/u8-stpcpy.c: Likewise.
34984         * lib/unistr/u8-stpncpy.c: Likewise.
34985         * lib/unistr/u8-strcat.c: Likewise.
34986         * lib/unistr/u8-strchr.c: Likewise.
34987         * lib/unistr/u8-strcmp.c: Likewise.
34988         * lib/unistr/u8-strcpy.c: Likewise.
34989         * lib/unistr/u8-strcspn.c: Likewise.
34990         * lib/unistr/u8-strdup.c: Likewise.
34991         * lib/unistr/u8-strlen.c: Likewise.
34992         * lib/unistr/u8-strmblen.c: Likewise.
34993         * lib/unistr/u8-strmbtouc.c: Likewise.
34994         * lib/unistr/u8-strncat.c: Likewise.
34995         * lib/unistr/u8-strncmp.c: Likewise.
34996         * lib/unistr/u8-strncpy.c: Likewise.
34997         * lib/unistr/u8-strnlen.c: Likewise.
34998         * lib/unistr/u8-strpbrk.c: Likewise.
34999         * lib/unistr/u8-strrchr.c: Likewise.
35000         * lib/unistr/u8-strspn.c: Likewise.
35001         * lib/unistr/u8-strstr.c: Likewise.
35002         * lib/unistr/u8-strtok.c: Likewise.
35003         * lib/unistr/u8-to-u16.c: Likewise.
35004         * lib/unistr/u8-to-u32.c: Likewise.
35005         * lib/unistr/u8-uctomb-aux.c: Likewise.
35006         * lib/unistr/u8-uctomb.c: Likewise.
35007         * lib/unitypes.h: Likewise.
35008         * lib/uniwidth.h: Likewise.
35009         * lib/uniwidth/cjk.h: Likewise.
35010         * lib/uniwidth/u16-strwidth.c: Likewise.
35011         * lib/uniwidth/u16-width.c: Likewise.
35012         * lib/uniwidth/u32-strwidth.c: Likewise.
35013         * lib/uniwidth/u32-width.c: Likewise.
35014         * lib/uniwidth/u8-strwidth.c: Likewise.
35015         * lib/uniwidth/u8-width.c: Likewise.
35016         * lib/uniwidth/width.c: Likewise.
35017
35018 2007-10-07  Bruno Haible  <bruno@clisp.org>
35019
35020         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
35021         The file is still under LGPL (see modules/inttypes).
35022
35023 2007-10-06  Bruno Haible  <bruno@clisp.org>
35024
35025         * modules/trunc (Dependencies): Add 'extensions'.
35026         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
35027         Reported by Ben Pfaff <blp@gnu.org>.
35028
35029 2007-10-06  Bruno Haible  <bruno@clisp.org>
35030
35031         * modules/freopen-tests: New file.
35032         * tests/test-freopen.c: New file.
35033
35034         * modules/fopen-tests: New file.
35035         * tests/test-fopen.c: New file.
35036
35037         * modules/fopen: New file.
35038         * lib/fopen.c: New file.
35039         * m4/fopen.m4: New file.
35040         * modules/freopen: New file.
35041         * lib/freopen.c: New file.
35042         * m4/freopen.m4: New file.
35043         * lib/stdio.in.h (fopen, freopen): New declarations.
35044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
35045         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35046         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
35047         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35048         * doc/functions/fopen.texi: Mention the 'fopen' module.
35049         * doc/functions/freopen.texi: Mention the 'freopen' module.
35050
35051 2007-10-06  Bruno Haible  <bruno@clisp.org>
35052
35053         * modules/open-tests: New file.
35054         * tests/test-open.c: New file.
35055
35056         * modules/open: New file.
35057         * lib/open.c: New file.
35058         * m4/open.m4: New file.
35059         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
35060         lib/open.c does.
35061         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
35062         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
35063         macros.
35064         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
35065         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
35066         REPLACE_OPEN.
35067         * doc/functions/open.texi: Mention the 'open' module.
35068
35069 2007-10-04  Bruno Haible  <bruno@clisp.org>
35070
35071         * modules/ceill-tests: New file.
35072         * tests/test-ceill.c: New file.
35073
35074         * modules/ceill: New file.
35075         * lib/ceill.c: Replace entire file.
35076         * m4/ceill.m4: New file.
35077         * lib/math.in.h (ceill): Replace declaration.
35078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
35079         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
35080         * doc/functions/ceill.texi: Mention the 'ceill' module.
35081         * modules/mathl (Files): Remove lib/ceill.c.
35082         (Depends-on): Add ceill.
35083
35084 2007-10-04  Bruno Haible  <bruno@clisp.org>
35085
35086         * modules/ceilf-tests: New file.
35087         * tests/test-ceilf.c: New file.
35088
35089         * modules/ceilf: New file.
35090         * lib/ceil.c: New file.
35091         * lib/ceilf.c: New file.
35092         * m4/ceilf.m4: New file.
35093         * lib/math.in.h (ceilf): New declaration.
35094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
35095         HAVE_DECL_CEILF.
35096         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
35097         HAVE_DECL_CEILF.
35098         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
35099
35100 2007-10-04  Bruno Haible  <bruno@clisp.org>
35101
35102         * modules/floorl-tests: New file.
35103         * tests/test-floorl.c: New file.
35104
35105         * modules/floorl: New file.
35106         * lib/floorl.c: Replace entire file.
35107         * m4/floorl.m4: New file.
35108         * lib/math.in.h (floorl): Replace declaration.
35109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
35110         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
35111         * doc/functions/floorl.texi: Mention the 'floorl' module.
35112         * modules/mathl (Files): Remove lib/floorl.c.
35113         (Depends-on): Add floorl.
35114
35115 2007-10-04  Bruno Haible  <bruno@clisp.org>
35116
35117         * modules/floorf-tests: New file.
35118         * tests/test-floorf.c: New file.
35119
35120         * modules/floorf: New file.
35121         * lib/floor.c: New file.
35122         * lib/floorf.c: New file.
35123         * m4/floorf.m4: New file.
35124         * lib/math.in.h (floorf): New declaration.
35125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
35126         HAVE_DECL_FLOORF.
35127         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
35128         HAVE_DECL_FLOORF.
35129         * doc/functions/floorf.texi: Mention the 'floorf' module.
35130
35131 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
35132             Bruno Haible  <bruno@clisp.org>
35133
35134         Advertise for the Git server instead of the CVS server.
35135         * doc/gnulib-intro.texi (Steady Development): Mention the Git
35136         repository instead of the CVS one.
35137         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
35138         about all VCS systems generically.
35139         * doc/gnulib.texi (Introduction): Capitalize `Git'.
35140
35141 2007-10-04  Bruno Haible  <bruno@clisp.org>
35142
35143         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
35144         means.
35145         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
35146
35147 2007-10-04  Bruno Haible  <bruno@clisp.org>
35148
35149         * modules/truncl-tests: New file.
35150         * tests/test-truncl.c: New file.
35151
35152         * modules/truncl: New file.
35153         * lib/truncl.c: New file.
35154         * m4/truncl.m4: New file.
35155         * lib/math.in.h (truncl): New declaration.
35156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
35157         HAVE_DECL_TRUNCL.
35158         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
35159         HAVE_DECL_TRUNCL.
35160         * doc/functions/truncl.texi: Mention the 'truncl' module.
35161
35162 2007-10-04  Bruno Haible  <bruno@clisp.org>
35163
35164         * modules/truncf-tests: New file.
35165         * tests/test-truncf.c: New file.
35166
35167         * modules/truncf: New file.
35168         * lib/trunc.c: Make paramerizable through USE_* macros.
35169         * lib/truncf.c: New file.
35170         * m4/truncf.m4: New file.
35171         * lib/math.in.h (truncf): New declaration.
35172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
35173         HAVE_DECL_TRUNCF.
35174         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
35175         HAVE_DECL_TRUNCF.
35176         * doc/functions/truncf.texi: Mention the 'truncf' module.
35177
35178 2007-10-03  Bruno Haible  <bruno@clisp.org>
35179
35180         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35181         augmentation also for tests modules.
35182         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
35183         * modules/atexit-tests (Makefile.am): Likewise.
35184         * modules/binary-io-tests (Makefile.am): Likewise.
35185         * modules/c-strcase-tests (Makefile.am): Likewise.
35186         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
35187         * modules/canonicalize-tests (Makefile.am): Likewise.
35188         * modules/closein-tests (Makefile.am): Likewise.
35189         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35190         * modules/freadahead-tests (Makefile.am): Likewise.
35191         * modules/fseek-tests (Makefile.am): Likewise.
35192         * modules/fseeko-tests (Makefile.am): Likewise.
35193         * modules/ftell-tests (Makefile.am): Likewise.
35194         * modules/ftello-tests (Makefile.am): Likewise.
35195         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
35196         * modules/isnanl-tests (Makefile.am): Likewise.
35197         * modules/lseek-tests (Makefile.am): Likewise.
35198         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35199         * modules/mbscasestr-tests (Makefile.am): Likewise.
35200         * modules/mbschr-tests (Makefile.am): Likewise.
35201         * modules/mbscspn-tests (Makefile.am): Likewise.
35202         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35203         * modules/mbspbrk-tests (Makefile.am): Likewise.
35204         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35205         * modules/mbsrchr-tests (Makefile.am): Likewise.
35206         * modules/mbsspn-tests (Makefile.am): Likewise.
35207         * modules/mbsstr-tests (Makefile.am): Likewise.
35208         * modules/printf-posix-tests (Makefile.am): Likewise.
35209         * modules/snprintf-posix-tests (Makefile.am): Likewise.
35210         * modules/sprintf-posix-tests (Makefile.am): Likewise.
35211         * modules/tsearch-tests (Makefile.am): Likewise.
35212         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35213         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35214         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35215         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35216         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35217         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35218         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35219         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35220         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
35221         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
35222         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35223         * modules/xstrtol-tests (Makefile.am): Likewise.
35224         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35225         * modules/yesno-tests (Makefile.am): Likewise.
35226
35227 2007-10-03  Bruno Haible  <bruno@clisp.org>
35228
35229         * modules/trunc-tests: New file.
35230         * tests/test-trunc.c: New file.
35231
35232         * modules/trunc: New file.
35233         * lib/trunc.c: New file.
35234         * m4/trunc.m4: New file.
35235         * lib/math.in.h (trunc): New declaration.
35236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
35237         HAVE_DECL_TRUNC.
35238         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
35239         HAVE_DECL_TRUNC.
35240         * doc/functions/trunc.texi: Mention the 'trunc' module.
35241
35242 2007-10-03  Bruno Haible  <bruno@clisp.org>
35243
35244         * tests/test-fpending.c: New file, mostly copied
35245         from coreutils/lib/t-fpending.c.
35246         * modules/fpending-tests: New file.
35247
35248 2007-10-03  Bruno Haible  <bruno@clisp.org>
35249
35250         Port the stdio extensions to QNX (untested).
35251         * lib/fseterr.c (fseterr): Add support for QNX.
35252         * lib/fbufmode.c (fbufmode): Likewise.
35253         * lib/freadable.c (freadable): Likewise.
35254         * lib/fwritable.c (fwritable): Likewise.
35255         * lib/freading.c (freading): Likewise.
35256         * lib/fwriting.c (fwriting): Likewise.
35257         * lib/freadahead.c (freadahed): Likewise.
35258         * lib/fpurge.c (fpurge): Likewise.
35259         * lib/fseeko.c (rpl_fseeko): Likewise.
35260
35261 2007-10-03  Bruno Haible  <bruno@clisp.org>
35262             Jim Meyering  <jim@meyering.net>
35263             Eric Blake  <ebb9@byu.net>
35264
35265         * doc/relocatable.texi: Use @command instead of @program.
35266
35267 2007-10-02  Jim Meyering  <jim@meyering.net>
35268
35269         Perform one more "_.h" -> ".in.h" substitution.
35270         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
35271         instead of unistd_.h here, too.
35272
35273 2007-10-01  Bruno Haible  <bruno@clisp.org>
35274
35275         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
35276         Needed for the alloca-opt module.
35277
35278 2007-09-30  Bruno Haible  <bruno@clisp.org>
35279
35280         * lib/alloca.in.h: Renamed from lib/alloca_.h.
35281         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
35282         alloca_.h.
35283         * lib/argz.in.h: Renamed from lib/argz_.h.
35284         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
35285         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
35286         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
35287         byteswap_.h.
35288         * lib/dirent.in.h: Renamed from lib/dirent_.h.
35289         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
35290         dirent_.h.
35291         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
35292         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
35293         fcntl_.h.
35294         * lib/float.in.h: Renamed from lib/float_.h.
35295         * modules/float (Files, Makefile.am): Use float.in.h instead of
35296         float_.h.
35297         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
35298         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
35299         fnmatch_.h.
35300         * lib/getopt.in.h: Renamed from lib/getopt_.h.
35301         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
35302         getopt_.h.
35303         * lib/glob.in.h: Renamed from lib/glob_.h.
35304         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
35305         * lib/iconv.in.h: Renamed from lib/iconv_.h.
35306         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
35307         iconv_.h.
35308         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
35309         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
35310         inttypes_.h.
35311         * lib/locale.in.h: Renamed from lib/locale_.h.
35312         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
35313         locale_.h.
35314         * lib/math.in.h: Renamed from lib/math_.h.
35315         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
35316         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
35317         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
35318         of netinet_in_.h. Add dependency.
35319         * lib/poll.in.h: Renamed from lib/poll_.h.
35320         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
35321         * lib/search.in.h: Renamed from lib/search_.h.
35322         * modules/search (Files, Makefile.am): Use search.in.h instead of
35323         search_.h.
35324         * lib/signal.in.h: Renamed from lib/signal_.h.
35325         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
35326         _signal.h.
35327         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
35328         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
35329         stdbool_.h.
35330         * lib/stdint.in.h: Renamed from lib/stdint_.h.
35331         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
35332         stdint_.h.
35333         * lib/stdio.in.h: Renamed from lib/stdio_.h.
35334         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
35335         stdio_.h.
35336         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
35337         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
35338         stdlib_.h.
35339         * lib/string.in.h: Renamed from lib/string_.h.
35340         * modules/string (Files, Makefile.am): Use string.in.h instead of
35341         string_.h.
35342         * doc/gnulib-tool.texi (Initial import): Update.
35343         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
35344         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
35345         of sys_select_.h. Add dependency.
35346         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
35347         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
35348         of sys_socket_.h.
35349         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
35350         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
35351         sys_stat_.h.
35352         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
35353         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
35354         sys_time_.h.
35355         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
35356         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
35357         sysexits_.h.
35358         * lib/time.in.h: Renamed from lib/time_.h.
35359         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
35360         * lib/unistd.in.h: Renamed from lib/unistd_.h.
35361         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
35362         unistd_.h.
35363         * lib/wchar.in.h: Renamed from lib/wchar_.h.
35364         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
35365         wchar_.h.
35366         * lib/wctype.in.h: Renamed from lib/wctype_.h.
35367         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
35368         wctype_.h.
35369         * build-aux/bootstrap (slurp): Update.
35370         * lib/.cppi-disable: Update.
35371
35372 2007-09-30  Bruno Haible  <bruno@clisp.org>
35373
35374         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
35375         Needed on BeOS.
35376
35377 2007-09-30  Bruno Haible  <bruno@clisp.org>
35378
35379         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
35380
35381 2007-09-29  Bruno Haible  <bruno@clisp.org>
35382
35383         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
35384
35385 2007-09-29  Bruno Haible  <bruno@clisp.org>
35386
35387         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
35388         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
35389         * build-aux/install-reloc: Compile also areadlink.c.
35390         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
35391
35392 2007-09-29  Bruno Haible  <bruno@clisp.org>
35393
35394         * gnulib-tool (func_emit_initmacro_done): Indentation.
35395
35396 2007-09-29  Bruno Haible  <bruno@clisp.org>
35397
35398         * README: Add CVS checkout update instructions.
35399         Info from Bob Proulx <bob@proulx.com>.
35400
35401 2007-09-28  Eric Blake  <ebb9@byu.net>
35402
35403         Provide move-if-change.
35404         * build-aux/move-if-change: New file, based on best practice
35405         rather than any canonical upstream location.
35406
35407 2007-09-28  Jim Meyering  <jim@meyering.net>
35408
35409         Fix canonicalize loop-detection corner case.
35410         Do not attempt to stat the symlink values stored via seen_triple.
35411         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
35412         on linux-2.6.18, (but not 2.6.22).
35413         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
35414         triple_compare.  The former compares dev,ino,filename, while the latter
35415         would actually stat dirname(filename) when dev and ino were equal.
35416         * lib/hash-triple.c: Install <string.h>.
35417         (STREQ): Define.
35418         (triple_compare_ino_str): New function.
35419         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
35420
35421 2007-09-28  Eric Blake  <ebb9@byu.net>
35422
35423         Enforce that AC_REPLACE_FUNCS files exist.
35424         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
35425         override check for typos.
35426
35427         Fix test-closein on Solaris 10.
35428         * tests/test-closein.c (main): Don't assume stdin can be inherited
35429         closed on all systems.
35430         * tests/test-closein.sh: Likewise.
35431         Reported by Piotr Tarnowski.
35432
35433 2007-09-28  Jim Meyering  <jim@meyering.net>
35434
35435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
35436
35437 2007-09-27  Jim Meyering  <jim@meyering.net>
35438
35439         canonicalize: Avoid a false-positive cycle failure.
35440         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
35441         Sort.  Remove cycle-check.
35442         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
35443         not cycle-check.h.
35444         (seen_triple): New function.
35445         (canonicalize_filename_mode): Use it instead of cycle-check.
35446         * tests/test-canonicalize.c: Add a test for this bug.
35447         * tests/test-canonicalize.sh: Set up and run the test.
35448
35449         New module, file-set, from coreutils.
35450         * modules/file-set: Define it.
35451         * lib/file-set.c, lib/file-set.h: Implement.
35452
35453         New module, hash-triple, from coreutils.
35454         * modules/hash-triple: Define it.
35455         * lib/hash-triple.c, lib/hash-triple.h: Implement.
35456
35457 2007-09-25  Eric Blake  <ebb9@byu.net>
35458
35459         Fix strerror on Interix.
35460         * lib/string_.h (strerror): Declare replacement.
35461         * doc/functions/strerror.texi (strerror): Document the Interix
35462         shortcoming.
35463         * modules/string (Makefile.am): Support new hooks.
35464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
35465         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
35466         gl_FUNC_STRERROR_SEPARATE.
35467         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
35468         * lib/strerror.c (rpl_strerror): Provide replacement.
35469         * modules/strerror (Depends-on): Add string.
35470         (configure.ac): Detect use of module.
35471         * tests/test-strerror.c: New file.
35472         * modules/strerror-tests: New test module.
35473         * modules/argp (Depends-on): Add strerror.
35474         * modules/error (Depends-on): Likewise.
35475         Reported by Martin Koeppe.
35476
35477 2007-09-24  Bruno Haible  <bruno@clisp.org>
35478
35479         * README: Update git instructions.
35480
35481 2007-09-24  Eric Blake  <ebb9@byu.net>
35482
35483         Revert fpending breakage from 2007-09-08.
35484         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
35485         __fpending.c.
35486
35487 2007-09-24  Jim Meyering  <jim@meyering.net>
35488
35489         filenamecat.c: Add a test.
35490         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
35491         showing how the function works when DIR is the empty string.
35492
35493 2007-09-21  Simon Josefsson  <simon@josefsson.org>
35494
35495         * tests/test-canonicalize.sh: Turn on executable bit.
35496
35497 2007-09-19  Eric Blake  <ebb9@byu.net>
35498
35499         * README: Update CVS instructions.
35500
35501 2007-09-18  Bruno Haible  <bruno@clisp.org>
35502
35503         * modules/areadlink: New file.
35504         * lib/areadlink.h (areadlink): New declaration.
35505         * lib/areadlink.c: New file, based on lib/xreadlink.c.
35506
35507 2007-09-17  Jim Meyering  <jim@meyering.net>
35508
35509         * lib/savewd.c (ESTALE) [!defined]: Define.
35510         Reported to be required on Interix by Martin Koeppe.
35511
35512 2007-09-17  Bruno Haible  <bruno@clisp.org>
35513
35514         * gnulib-tool (func_version): Use $version.
35515
35516 2007-09-16  Bruno Haible  <bruno@clisp.org>
35517
35518         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
35519         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
35520         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
35521         Reported by Greg Schafer <gschafer@zip.com.au>.
35522
35523 2007-09-15  Bruno Haible  <bruno@clisp.org>
35524
35525         * gnulib-tool (sed): Try a little harder to make bash understand the
35526         alias.
35527         Reported by Bruce Korb <bruce.korb@gmail.com>.
35528
35529 2007-09-13  Eric Blake  <ebb9@byu.net>
35530
35531         * ChangeLog: Remove conflict markers.
35532
35533 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35534
35535         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35536         Reported by Bruno Haible <bruno@clisp.org>.
35537
35538 2007-09-12  Bruno Haible  <bruno@clisp.org>
35539
35540         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35541         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35542         is not defined.
35543
35544 2007-09-12  Eric Blake  <ebb9@byu.net>
35545
35546         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35547         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35548         Autoconf definition.
35549         * modules/euidaccess (Depends-on): Add extensions, for
35550         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35551         * modules/fnmatch (Depends-on): Likewise.
35552         * modules/getaddrinfo (Depends-on): Likewise.
35553         * modules/getdelim (Depends-on): Likewise.
35554         * modules/getline (Depends-on): Likewise.
35555         * modules/getsubopt (Depends-on): Likewise.
35556         * modules/gettext (Depends-on): Likewise.
35557         * modules/group-member (Depends-on): Likewise.
35558         * modules/mbchar (Depends-on): Likewise.
35559         * modules/memmem (Depends-on): Likewise.
35560         * modules/mempcpy (Depends-on): Likewise.
35561         * modules/memrchr (Depends-on): Likewise.
35562         * modules/pagealign_alloc (Depends-on): Likewise.
35563         * modules/readutmp (Depends-on): Likewise.
35564         * modules/stpcpy (Depends-on): Likewise.
35565         * modules/stpncpy (Depends-on): Likewise.
35566         * modules/strchrnul (Depends-on): Likewise.
35567         * modules/strndup (Depends-on): Likewise.
35568         * modules/strsep (Depends-on): Likewise.
35569         * modules/strverscmp (Depends-on): Likewise.
35570         * modules/vasprintf (Depends-on): Likewise.
35571         * modules/wcwidth (Depends-on): Likewise.
35572         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35573         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35574         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35576         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35577         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35578         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35579         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35580         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35581         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35583         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35584         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35585         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35586         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35587         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35588         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35589         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35590         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35591         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35592         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35593         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35594         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35595         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35596         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35598         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35599         so that lock.m4 can be used in gettext without extensions module.
35600
35601 2007-09-11  Bruno Haible  <bruno@clisp.org>
35602
35603         * m4/isc-posix.m4: Remove file.
35604         Suggested by Eric Blake.
35605
35606 2007-09-11  Eric Blake  <ebb9@byu.net>
35607
35608         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35609
35610 2007-09-10  Bruno Haible  <bruno@clisp.org>
35611
35612         * posix-modules: Fix typo in error message.
35613         Reported by Matt <mkraai@beckman.com>.
35614
35615 2007-09-09  Bruno Haible  <bruno@clisp.org>
35616
35617         * doc/functions/getdelim.texi: Update list of platforms lacking the
35618         function.
35619         * doc/functions/getline.texi: Likewise.
35620
35621 2007-09-09  Jim Meyering  <jim@meyering.net>
35622
35623         * lib/hash.c (hash_initialize): Detect calloc failure.
35624         Reported by Bruno Haible.
35625
35626 2007-09-09  Bruno Haible  <bruno@clisp.org>
35627
35628         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35629         malloc or realloc fails.
35630
35631 2007-09-09  Bruno Haible  <bruno@clisp.org>
35632
35633         * modules/getcwd (Depends-on): Add malloc-posix.
35634         * modules/glob (Depends-on): Likewise.
35635         * modules/putenv (Depends-on): Likewise.
35636         * modules/strdup (Depends-on): Likewise.
35637         * modules/getdelim (Depends-on): Add realloc-posix.
35638         * modules/read-file (Depends-on): Likewise.
35639
35640 2007-09-09  Bruno Haible  <bruno@clisp.org>
35641
35642         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35643         (gl_FUNC_MALLOC_POSIX): Require it.
35644         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35645         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35646         * modules/realloc (Files): Add m4/malloc.m4.
35647         * modules/calloc (Files): Likewise.
35648
35649 2007-09-09  Bruno Haible  <bruno@clisp.org>
35650
35651         * modules/malloc-posix: New file.
35652         * modules/malloc (Depends-on): Add malloc-posix.
35653         * lib/malloc.c: Include errno.h.
35654         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35655         and a POSIX-compatible malloc into a single function. Set ENOMEM
35656         when returning NULL.
35657         * m4/malloc.m4: New file.
35658         * doc/functions/malloc.texi: Mention the malloc-posix module.
35659         * lib/stdlib_.h (malloc): New declaration.
35660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35661         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35662         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35663         and HAVE_MALLOC_POSIX.
35664
35665 2007-09-09  Bruno Haible  <bruno@clisp.org>
35666
35667         * modules/realloc-posix: New file.
35668         * modules/realloc (Depends-on): Add realloc-posix.
35669         * lib/realloc.c: Include errno.h.
35670         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35671         and a POSIX-compatible realloc into a single function. Set ENOMEM
35672         when returning NULL.
35673         * m4/realloc.m4: New file.
35674         * doc/functions/realloc.texi: Mention the realloc-posix module.
35675         * lib/stdlib_.h (realloc): New declaration.
35676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35677         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35678         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35679         and HAVE_REALLOC_POSIX.
35680
35681 2007-09-09  Bruno Haible  <bruno@clisp.org>
35682
35683         * modules/calloc-posix: New file.
35684         * modules/calloc (Depends-on): Add calloc-posix.
35685         * lib/calloc.c: Include errno.h.
35686         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35687         and a POSIX-compatible calloc into a single function. Set ENOMEM
35688         when returning NULL.
35689         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35690         * doc/functions/calloc.texi: Mention the calloc-posix module.
35691         * lib/stdlib_.h (calloc): New declaration.
35692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35693         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35694         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35695         and HAVE_CALLOC_POSIX.
35696
35697 2007-09-09  Bruno Haible  <bruno@clisp.org>
35698
35699         Allow for modules to show an arbitrary notice.
35700         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35701         * gnulib-tool: New option --extract-notice.
35702         (func_usage): Document it.
35703         (sed_extract_prog): Update.
35704         (func_get_notice): New function.
35705         (func_modules_notice): New function.
35706         (func_import, func_create_testdir): Invoke it.
35707         Suggested by Jim Meyering.
35708
35709 2007-09-09  Bruno Haible  <bruno@clisp.org>
35710
35711         * gnulib-tool: New options --verbose, --quiet.
35712         (func_usage): Document them.
35713         (verbose): New variable.
35714         (func_execute_command): New function.
35715         (func_import): Don't show the module list and the file list if
35716         $verbose < 0.
35717         (func_create_testdir): Likewise. Use func_execute_command.
35718         (func_create_megatestdir): Use func_execute_command.
35719
35720 2007-09-08  Bruno Haible  <bruno@clisp.org>
35721
35722         * gnulib-tool (func_import): Prefer rsync over wget when available,
35723         for fetching the PO files.
35724
35725 2007-09-08  Bruno Haible  <bruno@clisp.org>
35726
35727         * posix-modules: New file. Portions copied from gnulib-tool.
35728         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
35729
35730 2007-09-08  Jim Meyering  <jim@meyering.net>
35731
35732         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
35733         * lib/fpending.h: Rename from __fpending.h.
35734         * lib/fpending.c: Rename from __fpending.c.
35735         Include "fpending.h", not "__fpending.h".
35736         * lib/__fpending.h, lib/__fpending.c: Remove files.
35737         * modules/fpending (Files): Reflect new file names.
35738         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
35739
35740 2007-09-08  Bruno Haible  <bruno@clisp.org>
35741
35742         * m4/inttypes-h.m4: Remove stub file.
35743
35744 2007-09-07  Simon Josefsson  <simon@josefsson.org>
35745
35746         * doc/headers/stdint.texi: Discuss #include_next issue.
35747
35748 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35749
35750         * build-aux/bootstrap: Remove obsolete comment about wget --help.
35751
35752 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35753
35754         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
35755         in variable name.
35756
35757 2007-09-03  Jim Meyering  <jim@meyering.net>
35758
35759         New module: git-version-gen.
35760         * modules/git-version-gen: New file.
35761
35762         Import changes from coreutils for bootstrap script.
35763
35764         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
35765
35766         bootstrap: uses rsync to download the .po files
35767         * build-aux/bootstrap (po_download_command_format): New global.
35768         (download_po_files): Use rsync.
35769         (update_po_files): Don't remove .po files after download,
35770         so future rsync runs can take advantage of the copies.
35771
35772         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
35773
35774         Solve the unnecessary-.po-file-regeneration problem once and for all.
35775         * build-aux/bootstrap (download_po_files): New function, renamed from
35776         get_translations.  Now, downloads, but doesn't update LINGUAS.
35777         (update_po_files): New function.
35778
35779         bootstrap: Ignore more.
35780         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
35781         uniwidth to e.g., lib/.gitignore.
35782         (slurp): Handle the sys_stat_.h -> sys mapping, too.
35783
35784         * build-aux/bootstrap: New setting: vc_ignore.
35785         (insert_sorted_if_absent): Create $file if absent.
35786         Adapt to new, possibly empty, list: $vc_ignore.
35787
35788         bootstrap: generate more ignorable names
35789         * build-aux/bootstrap (slurp): When generating ignorable names,
35790         also map .sin to .sed, .gperf to .c, and .y to .c.
35791
35792 2007-09-03  Jim Meyering  <jim@meyering.net>
35793
35794         * build-aux/git-version-gen: New file, from coreutils.  For details, see
35795         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
35796
35797 2007-09-02  Bruno Haible  <bruno@clisp.org>
35798
35799         Fix mis-recognition of 'mcs' on QNX 6.
35800         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
35801         output contains the string "Mono".
35802         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
35803         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
35804
35805 2007-09-01  Bruno Haible  <bruno@clisp.org>
35806
35807         Fix collision between uniwidth/* and linebreak modules.
35808         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
35809         u32_width): Remove declarations.
35810         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
35811         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
35812         streq3, streq2, streq1, streq0): Remove functions.
35813         (STREQ): Remove macro.
35814         (is_cjk_encoding): Remove function.
35815         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
35816         (uc_width, u8_width, u16_width, u32_width): Remove functions.
35817         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
35818         * NEWS: Document the change.
35819
35820 2007-09-01  Bruno Haible  <bruno@clisp.org>
35821
35822         * lib/streq.h: Add double-inclusion guard.
35823
35824 2007-09-01  Karl Berry  <karl@gnu.org>
35825
35826         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
35827
35828 2007-08-28  Jim Meyering  <jim@meyering.net>
35829
35830         Rename mreadlink_with_size to areadlink_with_size.
35831         * NEWS: Document the change.
35832         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
35833         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
35834         * lib/mreadlink.h: Rename this to...
35835         * lib/areadlink.h: ...this.
35836         * modules/mreadlink-with-size: Rename this to...
35837         * modules/areadlink-with-size: ...this.
35838         * lib/canonicalize.c: Reflect the renaming.
35839         * modules/canonicalize: Likewise.
35840
35841 2007-08-26  Bruno Haible  <bruno@clisp.org>
35842
35843         * gnulib-tool (func_import): When deciding which files to remove,
35844         consider also dangling symbolic links.
35845         Reported by Eric Blake.
35846
35847 2007-08-26  Bruno Haible  <bruno@clisp.org>
35848
35849         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
35850
35851 2007-08-23  Simon Josefsson  <simon@josefsson.org>
35852
35853         * lib/readline.c: Don't include getline.h, the prototype is now
35854         found in stdio.h.
35855
35856 2007-08-23  Jim Meyering  <jim@meyering.net>
35857
35858         Getdelim touchup.
35859         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
35860         around the funlockfile call, since funlockfile never sets errno.
35861         Don't set errno upon failed realloc.
35862
35863 2007-08-22  Eric Blake  <ebb9@byu.net>
35864
35865         Getline touchups.
35866         * lib/getdelim.c (getdelim): Revert regression that required *n to
35867         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
35868         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
35869         getdelim, rather than whether implementation is missing.
35870         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
35871         * lib/stdio_.h (getline): Also declare if replacement is
35872         required.
35873         * doc/functions/getdelim.texi: New file.
35874         * doc/functions/getline.texi: Likewise.
35875         * doc/gnulib.texi (Function Substitutes): Add new files.
35876         Reported by Bruno Haible.
35877
35878 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
35879
35880         * users.txt: Add Guile.
35881
35882 2007-08-22  Eric Blake  <ebb9@byu.net>
35883
35884         * tests/test-getdelim.c (main): Use remove, not unlink.
35885         * tests/test-getline.c (main): Likewise.
35886
35887         Move getline and getdelim into stdio.h, per POSIX 200x.
35888         * modules/getline (Files): Remove getline.h.
35889         (Depends-on): Add stdio.
35890         (configure.ac): Add module indicator.
35891         * modules/getdelim (Files): Remove getdelim.h.
35892         (Depends-on): Add stdio.
35893         (configure.ac): Add module indicator.
35894         * modules/stdio (Makefile.am): Work with new indicators.
35895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35896         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
35897         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35898         * lib/getdelim.h: Delete.
35899         * lib/getline.h: Delete.
35900         * lib/stdio_.h (getdelim, getline): Declare.
35901         * modules/getdelim-tests: New module.
35902         * modules/getline-tests: Likewise.
35903         * tests/test-getdelim.c: New file.
35904         * tests/test-getline.c: Likewise.
35905         * NEWS: Document the change.
35906         * lib/getline.c: Update choice of header.
35907         * lib/csharpcomp.c: Likewise.
35908         * lib/getpass.c: Likewise.
35909         * lib/javacomp.c: Likewise.
35910         * lib/javaversion.c: Likewise.
35911         * lib/yesno.c: Likewise.
35912         * lib/getdelim.c: Likewise.
35913         (getdelim): Set errno on failure, and avoid memory leak.
35914
35915 2007-08-19  Bruno Haible  <bruno@clisp.org>
35916
35917         * modules/closein (Depends-on): Add freadahead.
35918         * lib/closein.c: Include freadahead.h.
35919         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
35920         is zero.
35921
35922 2007-08-19  Bruno Haible  <bruno@clisp.org>
35923
35924         * modules/freadahead-tests: New file.
35925         * tests/test-freadahead.sh: New file.
35926         * tests/test-freadahead.c: New file.
35927
35928         * modules/freadahead: New file.
35929         * lib/freadahead.h: New file.
35930         * lib/freadahead.c: New file.
35931         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
35932         fbufmode, fpurge, freadable, fwritable.
35933
35934 2007-08-19  Eric Blake  <ebb9@byu.net>
35935
35936         Test yesno in combination with closein.
35937         * lib/yesno.c (yesno): Document use of stdin.
35938         * modules/yesno-tests (Files): New module.
35939         * tests/test-yesno.c (main): New file.
35940         * tests/test-yesno.sh: Likewise.
35941
35942 2007-08-19  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
35945         * lib/fseeko.c (rpl_fseeko): Likewise.
35946         * lib/fseterr.c (fseterr): Likewise.
35947
35948 2007-08-19  Bruno Haible  <bruno@clisp.org>
35949
35950         * tests/test-lseek.c (main): Disable a test for BeOS.
35951         * doc/functions/lseek.texi: Document the BeOS bug.
35952
35953 2007-08-19  Bruno Haible  <bruno@clisp.org>
35954             Eric Blake  <ebb9@byu.net>
35955
35956         * lib/lseek.c: Include <sys/stat.h>.
35957         (rpl_lseek): Add workaround code also for Unix platforms.
35958         Needed for BeOS.
35959         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
35960         * doc/functions/lseek.texi: Document BeOS definiency.
35961
35962 2007-08-18  Bruno Haible  <bruno@clisp.org>
35963
35964         * modules/fstrcmp-tests: New file.
35965         * tests/test-fstrcmp.c: New file.
35966
35967 2007-08-18  Bruno Haible  <bruno@clisp.org>
35968
35969         * modules/fstrcmp: New file, from GNU gettext with modifications.
35970         * lib/fstrcmp.h: New file, from GNU gettext.
35971         * lib/fstrcmp.c: New file, from GNU gettext.
35972         * MODULES.html.sh (String handling): Add fstrcmp.
35973
35974 2007-08-18  Bruno Haible  <bruno@clisp.org>
35975
35976         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
35977         'bool'.
35978         (diag, compareseq): Remove const from the ctxt argument.
35979         (USE_HEURISTIC): Undefine at the end.
35980
35981 2007-08-18  Jim Meyering  <jim@meyering.net>
35982
35983         New file: lib/idcache.h
35984         * NEWS: Mention the addition.
35985         * modules/idcache (Files): Add lib/idcache.h
35986         * lib/idcache.c: Include "idcache.h".
35987         Don't include <sys/types.h>.
35988         Add a FIXME comment.
35989         Move file-scoped "static" declarations to the top.
35990         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
35991
35992 2007-08-17  Bruno Haible  <bruno@clisp.org>
35993         and Paul Eggert  <eggert@cs.ucla.edu>
35994
35995         * MODULES.html.sh: Add diffseq.
35996         * modules/diffseq: New file.
35997         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
35998         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
35999
36000 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36001
36002         Import changes from coreutils for bootstrap script.
36003
36004         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
36005
36006         * build-aux/bootstrap (slurp): Work even in environments where
36007         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
36008         current code does not slurp files whose names start with ".", and
36009         this looks like it might be a troublesome area.
36010
36011         2007-07-11  Jim Meyering  <jim@meyering.net>
36012
36013         If there's a GPL vN copyright comment, require that N == 3.
36014
36015         2007-07-08  Jim Meyering  <jim@meyering.net>
36016
36017         Run the coreutils-specific code only if tests/Makefile.am.in exists.
36018         * build-aux/bootstrap (mam_template): Move definition out of loop.
36019
36020         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
36021
36022         * build-aux/bootstrap (symlink_to_dir): Rename function from
36023         symlink_to_gnulib.  Add a directory parameter.  Update all
36024         callers.
36025         (cp_mark_as_generated): Also check for -- and link to -- files in
36026         gl/.
36027
36028         2007-07-08  Jim Meyering  <jim@meyering.net>
36029
36030         Adapt to deeper hierarchy in gnulib.
36031         * build-aux/bootstrap (symlink_to_dir): If the destination
36032         directory doesn't exist, create it. This is required at least for
36033         "lib/uniwidth/cjk.h".
36034
36035         2007-05-15  Jim Meyering  <jim@meyering.net>
36036
36037         * build-aux/bootstrap: Now that generated Makefile.am files
36038         are no longer under version control, they must be created at
36039         bootstrap time.
36040
36041 2007-08-14  Ben Pfaff  <blp@gnu.org>
36042
36043         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
36044
36045 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36046
36047         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
36048         given the changes below.
36049         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
36050         even on hosts that have padding bits beyond the supported 64.
36051
36052 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36053
36054         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
36055         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
36056         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
36057         depends on it.
36058         (xstrtol_error): Remove.
36059         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
36060         but with a different signature.
36061         (ATTRIBUTE_NORETURN, __attribute__): New macros.
36062         * lib/xstrtol-error.c: Include exitfail.h.
36063         (xstrtol_fatal): New function, with a different signature from the
36064         old xstrtol_error, so that the caller need not worry about passing
36065         in an exit status, or about storage management of the option argument.
36066         (xstrtol_error): Now a static function.  Redo signature to
36067         implement xstrtol_fatal.  Output the correct number of hyphens in
36068         front of the option so that the caller need not worry about
36069         storage management.
36070         (N_): New macro.
36071         (_): Remove; not used now.
36072         * modules/xstrtol: Depend on getopt.
36073         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
36074         of old STRTOL_FATAL_ERROR macro.
36075         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
36076         of test program.
36077         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
36078         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
36079
36080 2007-08-08  Eric Blake  <ebb9@byu.net>
36081
36082         * lib/xstrtol-error.c: Add missing include.
36083
36084         Move xstrtol messages into gnulib domain, when --pobase is used.
36085         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
36086         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
36087         * modules/xstrtol (Files): Distribute new file.
36088         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
36089         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
36090         * tests/test-xstrtol.c: ...into new file.
36091         * tests/test-xstrtoul.c: Also test xstrtoul.
36092         * tests/test-xstrtoimax.c: Also test xstrtoimax.
36093         * tests/test-xstrtoumax.c: Also test xstrtoumax.
36094         * tests/test-xstrtol.sh: Drive the tests.
36095         * tests/test-xstrtoimax.sh: Likewise.
36096         * tests/test-xstrtoumax.sh: Likewise.
36097         * modules/xstrtol-tests: New module.
36098         * modules/xstrtoimax-tests: Likewise.
36099         * modules/xstrtoumax-tests: Likewise.
36100
36101 2007-08-08  Jim Meyering  <jim@meyering.net>
36102
36103         New function: mfile_name_concat.
36104         * lib/filenamecat.c (mfile_name_concat): New function, just like
36105         file_name_concat, but return NULL upon failure rather than exiting
36106         with a diagnostic.
36107         * lib/filenamecat.h: Declare it.
36108
36109 2007-08-07  Bruno Haible  <bruno@clisp.org>
36110
36111         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
36112         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
36113         warning from gcc.
36114         Reported by Eric Blake.
36115
36116 2007-08-07  Simon Josefsson  <simon@josefsson.org>
36117
36118         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
36119         * modules/crypto/arcfour (License): Likewise.
36120         * modules/crypto/des-tests (License): Likewise.
36121         * modules/crypto/gc-arctwo-tests (License): Likewise.
36122         * modules/crypto/gc-des-tests (License): Likewise.
36123         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
36124         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
36125         * modules/crypto/gc-md2-tests (License): Likewise.
36126         * modules/crypto/gc-md4-tests (License): Likewise.
36127         * modules/crypto/gc-md5-tests (License): Likewise.
36128         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
36129         * modules/crypto/gc-rijndael-tests (License): Likewise.
36130         * modules/crypto/gc-sha1-tests (License): Likewise.
36131         * modules/crypto/gc-tests (License): Likewise.
36132         * modules/crypto/hmac-md5 (License): Likewise.
36133         * modules/crypto/hmac-sha1 (License): Likewise.
36134         * modules/crypto/md2-tests (License): Likewise.
36135         * modules/crypto/md4-tests (License): Likewise.
36136         * modules/crypto/md5 (License): Likewise.
36137         * modules/crypto/rijndael (License): Likewise.
36138         * modules/crypto/sha1 (License): Likewise.
36139         * modules/memxor (License): Likewise.
36140
36141 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
36142         and Bruno Haible  <bruno@clisp.org>
36143
36144         * NEWS: Describe interface changes to human, xstrtol.
36145         * lib/human.h: Include <xstrtol.h>.
36146         (human_options): Return enum strtol_error, not int.  Remove
36147         bool arg; take int * instead.
36148         * lib/human.c: Don't include "gettext.h".
36149         (_): Remove; no longer used.
36150         Don't include <xstrtol.h>, since human.h does it.
36151         (human_options): Adjust to abovementioned interface changes.
36152         Do not report error to stderr; that's now the caller's
36153         responsibility.
36154         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
36155         interface change.
36156         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
36157         Str, Argument_type_string.  All uses changed.  Put " argument"
36158         in diagnostics to make them clearer.  Change wording of suffix
36159         message for clarity.
36160         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
36161         Argument_type_string.
36162         (STRTOL_FATAL_WARN): Remove; no longer used.
36163         * modules/human (Depends-on): Remove gettext-h.
36164
36165 2007-08-06  Simon Josefsson  <simon@josefsson.org>
36166
36167         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
36168
36169 2007-07-31  Bruno Haible  <bruno@clisp.org>
36170
36171         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
36172         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
36173         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
36174
36175 2007-07-31  Bruno Haible  <bruno@clisp.org>
36176
36177         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
36178         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
36179
36180 2007-07-30  Bruno Haible  <bruno@clisp.org>
36181
36182         * modules/base64 (License): Use the synonymous term "LGPLv2+".
36183         * modules/c-ctype (License): Likewise.
36184         * modules/c-strcase (License): Likewise.
36185         * modules/check-version (License): Likewise.
36186         * modules/iconv (License): Likewise.
36187         * modules/iconv_open (License): Likewise.
36188         * modules/read-file (License): Likewise.
36189         * modules/striconv (License): Likewise.
36190         * modules/strverscmp (License): Likewise.
36191         * modules/vasprintf (License): Likewise.
36192         * modules/crypto/des (License): Likewise.
36193         * modules/crypto/gc (License): Likewise.
36194         * modules/crypto/gc-arcfour (License): Likewise.
36195         * modules/crypto/gc-arctwo (License): Likewise.
36196         * modules/crypto/gc-des (License): Likewise.
36197         * modules/crypto/gc-hmac-md5 (License): Likewise.
36198         * modules/crypto/gc-hmac-sha1 (License): Likewise.
36199         * modules/crypto/gc-md2 (License): Likewise.
36200         * modules/crypto/gc-md4 (License): Likewise.
36201         * modules/crypto/gc-md5 (License): Likewise.
36202         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
36203         * modules/crypto/gc-random (License): Likewise.
36204         * modules/crypto/gc-rijndael (License): Likewise.
36205         * modules/crypto/gc-sha1 (License): Likewise.
36206         * modules/crypto/md2 (License): Likewise.
36207         * modules/crypto/md4 (License): Likewise.
36208
36209 2007-07-30  Jim Meyering  <jim@meyering.net>
36210
36211         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
36212         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
36213         it has valid stat data.  This bug would cause du not to count the
36214         sizes of inaccessible directories.
36215         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
36216         in <http://bugzilla.redhat.com/250077>.
36217
36218 2007-07-25  Peter O'Gorman  <peter@pogma.com>
36219             Bruno Haible  <bruno@clisp.org>
36220
36221         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
36222         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
36223         #include_next, gives a diagnostic about it, but reports no error in
36224         the exit code.
36225         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36226
36227 2007-07-24  Ben Pfaff  <blp@gnu.org>
36228
36229         Improve name: "count-one-bits" is better than "popcount".
36230         * MODULES.html.sh: Update name.
36231         * lib/popcount.h: Renamed lib/count-one-bits.h.
36232         (popcount): Renamed count_one_bits.
36233         (popcountl): Renamed count_one_bits_l.
36234         (popcountll): Renamed count_one_bits_ll.
36235         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
36236         * modules/popcount: Renamed module/count-one-bits.
36237         * modules/popcount-tests: Renamed module/count-one-bits-tests.
36238         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
36239
36240 2007-07-23  Ben Pfaff  <blp@gnu.org>
36241
36242         * lib/popcount.h (popcount32): Reduce size of constants, to allow
36243         better code generation, and add U to large constants to avoid
36244         warnings, in non-GCC case.
36245         Suggested by Bruno Haible.
36246
36247 2007-07-23  Ben Pfaff  <blp@gnu.org>
36248
36249         * lib/popcount.h: Use verify_true instead of if...abort.
36250         * modules/popcount: Depend on verify module.
36251         Suggested by Jim Meyering.
36252
36253 2007-07-23  Bruno Haible  <bruno@clisp.org>
36254
36255         * gnulib-tool (func_import): Create a .cvsignore file also when the
36256         directory is not yet in CVS but the toplevel directory is. When
36257         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
36258         Reported by Karl Berry.
36259
36260 2007-07-22  Ben Pfaff  <blp@gnu.org>
36261
36262         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
36263         case.
36264         Suggested by Eric Blake.
36265
36266 2007-07-22  Ben Pfaff  <blp@gnu.org>
36267
36268         New module: popcount.
36269         * MODULES.html.sh: Add popcount.
36270         * modules/popcount: New file.
36271         * modules/popcount-tests: New file.
36272         * tests/test-popcount.c: New file.
36273         * lib/popcount.h: New file.
36274         * m4/popcount.m4: New file.
36275
36276 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36277
36278         * build-aux/announce-gen: Update to GPLv3.
36279
36280         * build-aux/config.guess: Update from config.
36281
36282 2007-07-21  Bruno Haible  <bruno@clisp.org>
36283
36284         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
36285         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
36286
36287 2007-07-20  Jim Meyering  <jim@meyering.net>
36288
36289         * check-module: Diagnose a self-dependency.
36290
36291 2007-07-19  Bruno Haible  <bruno@clisp.org>
36292
36293         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
36294         empty.
36295         Reported by Eric Blake.
36296
36297 2007-07-18  Bruno Haible  <bruno@clisp.org>
36298
36299         * gnulib-tool: New options --po-base, --po-domain.
36300         (func_usage): Document them.
36301         (pobase, po_domain): New variables.
36302         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
36303         DEFAULT_TEXT_DOMAIN.
36304         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
36305         (func_import): Consider pobase and po_domain. Create a po/ directory.
36306         (func_create_testdir): Set pobase and po_domain to empty.
36307         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
36308         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
36309
36310 2007-07-18  Bruno Haible  <bruno@clisp.org>
36311
36312         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36313         EXTRA_DIST augmentation for files in build-aux/.
36314
36315 2007-07-16  Bruno Haible  <bruno@clisp.org>
36316
36317         * modules/lseek (License): Use the synonymous term "LGPLv2+".
36318         * modules/getdelim (License): Likewise.
36319
36320 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36321
36322         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
36323         * modules/d-type (License): Likewise.
36324         * modules/extensions (License): Likewise.
36325         * modules/fnmatch (License): Likewise.
36326         * modules/fseeko (License): Likewise.
36327         * modules/getaddrinfo (License): Likewise.
36328         * modules/getline (License): Likewise.
36329         * modules/getlogin_r (License): Likewise.
36330         * modules/getpass (License): Likewise.
36331         * modules/gettimeofday (License): Likewise.
36332         * modules/glob (License): Likewise.
36333         * modules/inet_ntop (License): Likewise.
36334         * modules/malloc (License): Likewise.
36335         * modules/malloca (License): Likewise.
36336         * modules/memmem (License): Likewise.
36337         * modules/mempcpy (License): Likewise.
36338         * modules/memset (License): Likewise.
36339         * modules/minmax (License): Likewise.
36340         * modules/mktime (License): Likewise.
36341         * modules/netinet_in (License): Likewise.
36342         * modules/pathmax (License): Likewise.
36343         * modules/poll (License): Likewise.
36344         * modules/regex (License): Likewise.
36345         * modules/snprintf (License): Likewise.
36346         * modules/stdbool (License): Likewise.
36347         * modules/stdint (License): Likewise.
36348         * modules/stdio (License): Likewise.
36349         * modules/strcase (License): Likewise.
36350         * modules/strcasestr (License): Likewise.
36351         * modules/strdup (License): Likewise.
36352         * modules/string (License): Likewise.
36353         * modules/strndup (License): Likewise.
36354         * modules/strnlen (License): Likewise.
36355         * modules/strpbrk (License): Likewise.
36356         * modules/strptime (License): Likewise.
36357         * modules/strsep (License): Likewise.
36358         * modules/sys_select (License): Likewise.
36359         * modules/sys_socket (License): Likewise.
36360         * modules/sys_stat (License): Likewise.
36361         * modules/sys_time (License): Likewise.
36362         * modules/time (License): Likewise.
36363         * modules/time_r (License): Likewise.
36364         * modules/timegm (License): Likewise.
36365         * modules/unistd (License): Likewise.
36366         * modules/vsnprintf (License): Likewise.
36367         * modules/wctype (License): Likewise.
36368
36369 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36370
36371         * modules/argz (License): LGPLv2+.
36372
36373 2007-07-15  Karl Berry  <karl@gnu.org>
36374
36375         * doc/gnulib.texi: revise node structure per new fdl.texi.
36376
36377 2007-07-14  Bruno Haible  <bruno@clisp.org>
36378
36379         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
36380         the output file.
36381         * lib/uniname/uninames.h: Regenerated.
36382
36383 2007-07-14  Karl Berry  <karl@gnu.org>
36384
36385         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
36386         omitting sectioning and index commands.
36387
36388 2007-07-13  Bruno Haible  <bruno@clisp.org>
36389
36390         New gnulib-tool option --more-symlinks.
36391         * gnulib-tool (func_usage): Document --more-symlinks.
36392         (do_copyrights): New variable.
36393         Recognize option --more-symlinks.
36394         (func_import): Don't add a copyright notice transform to
36395         sed_transform_lib_file if do_copyrights is empty.
36396
36397 2007-07-13  Bruno Haible  <bruno@clisp.org>
36398
36399         * lib/vasnprintf.c (decimal_point_char): Define also if
36400         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
36401         && !NEED_PRINTF_DIRECTIVE_A.
36402         Reported by Clemens Koller <clemens.koller@anagramm.de> via
36403         Gary V. Vaughan <gary@gnu.org>.
36404
36405 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
36406
36407         * lib/inttypes_.h: Undo previous change, since it was fixed
36408         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
36409
36410 2007-07-13  Bruno Haible  <bruno@clisp.org>
36411
36412         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
36413         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
36414
36415 2007-07-13  Jim Meyering  <jim@meyering.net>
36416
36417         df: Don't fail for Tru64's "file-on-file mount".
36418         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
36419         so we fall through and use statfs instead.  Details here:
36420         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
36421         Reported by Albert Chin.
36422
36423 2007-07-13  Bruno Haible  <bruno@clisp.org>
36424
36425         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
36426         * modules/configmake (License): Likewise.
36427         * modules/gettext (License): Likewise.
36428         * modules/gettext-h (License): Likewise.
36429         * modules/include_next (License): Likewise.
36430         * modules/link-warning (License): Likewise.
36431         * modules/localcharset (License): Likewise.
36432         * modules/localename (License): Likewise.
36433         * modules/lock (License): Likewise.
36434         * modules/relocatable-lib-lgpl (License): Likewise.
36435         * modules/size_max (License): Likewise.
36436         * modules/vasnprintf (License): Likewise.
36437         * modules/wchar (License): Likewise.
36438         * modules/xsize (License): Likewise.
36439
36440 2007-07-13  Bruno Haible  <bruno@clisp.org>
36441
36442         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
36443         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
36444
36445 2007-07-12  Bruno Haible  <bruno@clisp.org>
36446
36447         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
36448         in the modules files.
36449
36450 2007-07-11  Karl Berry  <karl@gnu.org>
36451
36452         * MODULES.html.sh (func_module): use
36453          sed -e '\|^'"${includefile}"'$|d'
36454          instead of /.../d, to avoid errors on $includefile's containing /.
36455
36456 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36457
36458         * gnulib-tool (func_import): Avoid duplication of --avoid
36459         statements
36460         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
36461         names to `_' in variable names.
36462
36463 2007-07-10  Eric Blake  <ebb9@byu.net>
36464
36465         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
36466         * NEWS: Document this change.
36467
36468 2007-07-08  Bruno Haible  <bruno@clisp.org>
36469
36470         Update to Unicode 5.0.
36471         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
36472         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
36473         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
36474         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
36475         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
36476         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
36477         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
36478         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
36479         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
36480         U+10A3F, U+1D242..U+1D244.
36481         (nonspacing_table_ind): Update.
36482         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
36483         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
36484
36485 2007-07-08  Bruno Haible  <bruno@clisp.org>
36486
36487         Update to Unicode 5.0.
36488         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
36489         code transform. Extend the name index field of unicode_name_to_code and
36490         unicode_code_to_name from 16 to 24 bits.
36491         * lib/uniname/uniname.c (unicode_character_name,
36492         unicode_name_character): Add the range 0x12xxx to the code transform.
36493         * lib/uniname/uninames.h: Regenerated.
36494         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
36495
36496 2007-07-07  Bruno Haible  <bruno@clisp.org>
36497
36498         * modules/wcwidth-tests: New file.
36499         * tests/test-wcwidth.c: New file.
36500
36501         Work around MacOS X wcwidth() bug.
36502         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
36503         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
36504         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
36505         original wcwidth in non-UTF-8 locales.
36506         * modules/wcwidth (Depends-on): Add localcharset, streq,
36507         uniwidth/width.
36508         * doc/functions/wcwidth.texi: Update.
36509
36510 2007-07-07  Bruno Haible  <bruno@clisp.org>
36511
36512         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
36513         (wcwidth): New declaration.
36514         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
36515         macros.
36516         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
36517         here. Prepare for creating <wchar.h> unconditionally.
36518         * modules/wchar (Depends-on): Add link-warning.
36519         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
36520         REPLACE_WCWIDTH, and GL_LINK_WARNING.
36521         * lib/wcwidth.h: Remove file.
36522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
36523         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
36524         * modules/wcwidth (Files): Remove lib/wcwidth.h.
36525         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
36526         (Include): Replace wcwidth.h with <wchar.h>.
36527         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
36528         * lib/mbchar.h: Don't include wcwidth.h.
36529         * lib/mbswidth.c: Likewise.
36530         * NEWS: Mention the change.
36531
36532 2007-07-07  Bruno Haible  <bruno@clisp.org>
36533
36534         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36535         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36536         definition with an external declaration.
36537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36538         defined as a function. Remove AC_C_INLINE requirement.
36539         * modules/wcwidth (Files): Add lib/wcwidth.c.
36540         (Makefile.am): Remove redundant statement.
36541
36542 2007-07-07  Bruno Haible  <bruno@clisp.org>
36543
36544         * MODULES.html.sh (Unicode string functions): Add the new modules.
36545
36546         * tests/uniwidth/test-u32-strwidth.c: New file.
36547         * modules/uniwidth/u32-strwidth-tests: New file.
36548
36549         * lib/uniwidth/u32-strwidth.c: New file.
36550         * modules/uniwidth/u32-strwidth: New file.
36551
36552         * tests/uniwidth/test-u16-strwidth.c: New file.
36553         * modules/uniwidth/u16-strwidth-tests: New file.
36554
36555         * lib/uniwidth/u16-strwidth.c: New file.
36556         * modules/uniwidth/u16-strwidth: New file.
36557
36558         * tests/uniwidth/test-u8-strwidth.c: New file.
36559         * modules/uniwidth/u8-strwidth-tests: New file.
36560
36561         * lib/uniwidth/u8-strwidth.c: New file.
36562         * modules/uniwidth/u8-strwidth: New file.
36563
36564         * tests/uniwidth/test-u32-width.c: New file.
36565         * modules/uniwidth/u32-width-tests: New file.
36566
36567         * lib/uniwidth/u32-width.c: New file.
36568         * modules/uniwidth/u32-width: New file.
36569
36570         * tests/uniwidth/test-u16-width.c: New file.
36571         * modules/uniwidth/u16-width-tests: New file.
36572
36573         * lib/uniwidth/u16-width.c: New file.
36574         * modules/uniwidth/u16-width: New file.
36575
36576         * tests/uniwidth/test-u8-width.c: New file.
36577         * modules/uniwidth/u8-width-tests: New file.
36578
36579         * lib/uniwidth/u8-width.c: New file.
36580         * modules/uniwidth/u8-width: New file.
36581
36582         * tests/uniwidth/test-uc_width.c: New file.
36583         * modules/uniwidth/width-tests: New file.
36584
36585         * lib/uniwidth/width.c: New file, from GNU libiconv.
36586         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36587         * modules/uniwidth/width: New file.
36588
36589         * lib/uniwidth.h: New file, from GNU libiconv.
36590         * modules/uniwidth/base: New file.
36591
36592 2007-07-07  Bruno Haible  <bruno@clisp.org>
36593
36594         * lib/uniname.h: New file, from GNU gettext.
36595         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36596         * lib/uniname/uninames.h: New file, from GNU gettext.
36597         * lib/uniname/uniname.c: New file, from GNU gettext.
36598         * tests/uniname/test-uninames.sh: New file.
36599         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36600         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36601         * modules/uniname/base: New file.
36602         * modules/uniname/uniname: New file.
36603         * modules/uniname/uniname-tests: New file.
36604         * MODULES.html.sh (Unicode string functions): Add the new modules.
36605
36606 2007-07-06  Bruno Haible  <bruno@clisp.org>
36607
36608         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36609
36610 2007-07-06  Bruno Haible  <bruno@clisp.org>
36611
36612         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36613         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36614         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36615         include <sys/time.h>.
36616         Reported by Eric Blake.
36617
36618 2007-07-06  Eric Blake  <ebb9@byu.net>
36619
36620         Fix testing canonicalize on cygwin.
36621         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36622         Revert patch from 2007-06-19.
36623         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36624         canonicalize module is also in use.
36625         * tests/test-canonicalize.c: New file.
36626         * tests/test-canonicalize.sh: Likewise.
36627         * modules/canonicalize-tests: Likewise.
36628
36629 2007-07-06  Jim Meyering  <jim@meyering.net>
36630
36631         * lib/getugroups.c (getugroups): Detect getgrent failure.
36632         Adjust comment to reflect reality: this function may return -1.
36633
36634 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36635
36636         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36637         the new TP address.
36638         (usage): Fix typo
36639         (gnulib_mk): New variable.
36640
36641 2007-07-05  Jim Meyering  <jim@meyering.net>
36642
36643         Don't let endgrent clobber errno, no matter how improbable.
36644         * lib/getugroups.c (getugroups): Save and restore errno around
36645         endgrent call.
36646
36647         Close the group DB even when failing with 2^31 or more members.
36648         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36649
36650 2007-07-04  Jim Meyering  <jim@meyering.net>
36651
36652         * lib/getugroups.h: New file.
36653         * lib/getugroups.c: Include "getugroups.h".
36654         Remove uses of "register" keyword.
36655         Move local variable, "cp", down into scope where used.
36656         Give "username" parameter the "const" attribute.
36657         * modules/getugroups (Files): Add lib/getugroups.h
36658
36659 2007-07-04  Karl Berry  <karl@gnu.org>
36660
36661         * MODULES.html.sh (func_all_modules): Complete rename of
36662         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36663
36664 2007-07-02  Bruno Haible  <bruno@clisp.org>
36665
36666         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36667         mode, when inttypes.h comes from gnulib.
36668         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36669
36670 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36671
36672         * NEWS: Mention lgpl module name change.
36673
36674         * modules/lgpl-2.1: Renamed from lgpl.
36675
36676         * NEWS: Mention gpl module name change.
36677
36678         * modules/gpl-3.0: New file, based on gpl-2.0.
36679
36680         * modules/gpl-2.0: Renamed from gpl.
36681
36682         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36683         doc/gpl-2.0.texi.
36684
36685 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36686
36687         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36688         #define __STDC_LIMIT_MACROS temporarily while including
36689         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36690         Problem reported by Joel E. Denny in
36691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36692
36693 2007-07-01  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/unistdio.h: New file.
36696         * lib/unistdio/u-asnprintf.h: New file.
36697         * lib/unistdio/u-asprintf.h: New file.
36698         * lib/unistdio/u-printf-args.c: New file.
36699         * lib/unistdio/u-printf-args.h: New file.
36700         * lib/unistdio/u-printf-parse.h: New file.
36701         * lib/unistdio/u-snprintf.h: New file.
36702         * lib/unistdio/u-sprintf.h: New file.
36703         * lib/unistdio/u-vasprintf.h: New file.
36704         * lib/unistdio/u-vsnprintf.h: New file.
36705         * lib/unistdio/u-vsprintf.h: New file.
36706         * lib/unistdio/ulc-asnprintf.c: New file.
36707         * lib/unistdio/ulc-asprintf.c: New file.
36708         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36709         * lib/unistdio/ulc-printf-parse.c: New file.
36710         * lib/unistdio/ulc-snprintf.c: New file.
36711         * lib/unistdio/ulc-sprintf.c: New file.
36712         * lib/unistdio/ulc-vasnprintf.c: New file.
36713         * lib/unistdio/ulc-vasprintf.c: New file.
36714         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36715         * lib/unistdio/ulc-vsnprintf.c: New file.
36716         * lib/unistdio/ulc-vsprintf.c: New file.
36717         * lib/unistdio/u8-asnprintf.c: New file.
36718         * lib/unistdio/u8-asprintf.c: New file.
36719         * lib/unistdio/u8-printf-parse.c: New file.
36720         * lib/unistdio/u8-snprintf.c: New file.
36721         * lib/unistdio/u8-sprintf.c: New file.
36722         * lib/unistdio/u8-vasnprintf.c: New file.
36723         * lib/unistdio/u8-vasprintf.c: New file.
36724         * lib/unistdio/u8-vsnprintf.c: New file.
36725         * lib/unistdio/u8-vsprintf.c: New file.
36726         * lib/unistdio/u8-u8-asnprintf.c: New file.
36727         * lib/unistdio/u8-u8-asprintf.c: New file.
36728         * lib/unistdio/u8-u8-snprintf.c: New file.
36729         * lib/unistdio/u8-u8-sprintf.c: New file.
36730         * lib/unistdio/u8-u8-vasnprintf.c: New file.
36731         * lib/unistdio/u8-u8-vasprintf.c: New file.
36732         * lib/unistdio/u8-u8-vsnprintf.c: New file.
36733         * lib/unistdio/u8-u8-vsprintf.c: New file.
36734         * lib/unistdio/u16-asnprintf.c: New file.
36735         * lib/unistdio/u16-asprintf.c: New file.
36736         * lib/unistdio/u16-printf-parse.c: New file.
36737         * lib/unistdio/u16-snprintf.c: New file.
36738         * lib/unistdio/u16-sprintf.c: New file.
36739         * lib/unistdio/u16-vasnprintf.c: New file.
36740         * lib/unistdio/u16-vasprintf.c: New file.
36741         * lib/unistdio/u16-vsnprintf.c: New file.
36742         * lib/unistdio/u16-vsprintf.c: New file.
36743         * lib/unistdio/u16-u16-asnprintf.c: New file.
36744         * lib/unistdio/u16-u16-asprintf.c: New file.
36745         * lib/unistdio/u16-u16-snprintf.c: New file.
36746         * lib/unistdio/u16-u16-sprintf.c: New file.
36747         * lib/unistdio/u16-u16-vasnprintf.c: New file.
36748         * lib/unistdio/u16-u16-vasprintf.c: New file.
36749         * lib/unistdio/u16-u16-vsnprintf.c: New file.
36750         * lib/unistdio/u16-u16-vsprintf.c: New file.
36751         * lib/unistdio/u32-asnprintf.c: New file.
36752         * lib/unistdio/u32-asprintf.c: New file.
36753         * lib/unistdio/u32-printf-parse.c: New file.
36754         * lib/unistdio/u32-snprintf.c: New file.
36755         * lib/unistdio/u32-sprintf.c: New file.
36756         * lib/unistdio/u32-vasnprintf.c: New file.
36757         * lib/unistdio/u32-vasprintf.c: New file.
36758         * lib/unistdio/u32-vsnprintf.c: New file.
36759         * lib/unistdio/u32-vsprintf.c: New file.
36760         * lib/unistdio/u32-u32-asnprintf.c: New file.
36761         * lib/unistdio/u32-u32-asprintf.c: New file.
36762         * lib/unistdio/u32-u32-snprintf.c: New file.
36763         * lib/unistdio/u32-u32-sprintf.c: New file.
36764         * lib/unistdio/u32-u32-vasnprintf.c: New file.
36765         * lib/unistdio/u32-u32-vasprintf.c: New file.
36766         * lib/unistdio/u32-u32-vsnprintf.c: New file.
36767         * lib/unistdio/u32-u32-vsprintf.c: New file.
36768         * tests/unistdio/test-ulc-asnprintf1.c: New file.
36769         * tests/unistdio/test-ulc-asnprintf1.h: New file.
36770         * tests/unistdio/test-ulc-printf1.h: New file.
36771         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
36772         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
36773         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
36774         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
36775         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
36776         * tests/unistdio/test-ulc-vasprintf1.c: New file.
36777         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
36778         * tests/unistdio/test-ulc-vsprintf1.c: New file.
36779         * tests/unistdio/test-u8-asnprintf1.c: New file.
36780         * tests/unistdio/test-u8-asnprintf1.h: New file.
36781         * tests/unistdio/test-u8-printf1.h: New file.
36782         * tests/unistdio/test-u8-vasnprintf1.c: New file.
36783         * tests/unistdio/test-u8-vasnprintf2.c: New file.
36784         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
36785         * tests/unistdio/test-u8-vasnprintf3.c: New file.
36786         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
36787         * tests/unistdio/test-u8-vasprintf1.c: New file.
36788         * tests/unistdio/test-u8-vsnprintf1.c: New file.
36789         * tests/unistdio/test-u8-vsprintf1.c: New file.
36790         * tests/unistdio/test-u16-asnprintf1.c: New file.
36791         * tests/unistdio/test-u16-asnprintf1.h: New file.
36792         * tests/unistdio/test-u16-printf1.h: New file.
36793         * tests/unistdio/test-u16-vasnprintf1.c: New file.
36794         * tests/unistdio/test-u16-vasnprintf2.c: New file.
36795         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
36796         * tests/unistdio/test-u16-vasnprintf3.c: New file.
36797         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
36798         * tests/unistdio/test-u16-vasprintf1.c: New file.
36799         * tests/unistdio/test-u16-vsnprintf1.c: New file.
36800         * tests/unistdio/test-u16-vsprintf1.c: New file.
36801         * tests/unistdio/test-u32-asnprintf1.c: New file.
36802         * tests/unistdio/test-u32-asnprintf1.h: New file.
36803         * tests/unistdio/test-u32-printf1.h: New file.
36804         * tests/unistdio/test-u32-vasnprintf1.c: New file.
36805         * tests/unistdio/test-u32-vasnprintf2.c: New file.
36806         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
36807         * tests/unistdio/test-u32-vasnprintf3.c: New file.
36808         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
36809         * tests/unistdio/test-u32-vasprintf1.c: New file.
36810         * tests/unistdio/test-u32-vsnprintf1.c: New file.
36811         * tests/unistdio/test-u32-vsprintf1.c: New file.
36812         * modules/unistdio/base: New file.
36813         * modules/unistdio/u-printf-args: New file.
36814         * modules/unistdio/ulc-asnprintf: New file.
36815         * modules/unistdio/ulc-asprintf: New file.
36816         * modules/unistdio/ulc-fprintf: New file.
36817         * modules/unistdio/ulc-printf-parse: New file.
36818         * modules/unistdio/ulc-snprintf: New file.
36819         * modules/unistdio/ulc-sprintf: New file.
36820         * modules/unistdio/ulc-vasnprintf: New file.
36821         * modules/unistdio/ulc-vasprintf: New file.
36822         * modules/unistdio/ulc-vfprintf: New file.
36823         * modules/unistdio/ulc-vsnprintf: New file.
36824         * modules/unistdio/ulc-vsprintf: New file.
36825         * modules/unistdio/u8-asnprintf: New file.
36826         * modules/unistdio/u8-asprintf: New file.
36827         * modules/unistdio/u8-printf-parse: New file.
36828         * modules/unistdio/u8-snprintf: New file.
36829         * modules/unistdio/u8-sprintf: New file.
36830         * modules/unistdio/u8-vasnprintf: New file.
36831         * modules/unistdio/u8-vasprintf: New file.
36832         * modules/unistdio/u8-vsnprintf: New file.
36833         * modules/unistdio/u8-vsprintf: New file.
36834         * modules/unistdio/u8-u8-asnprintf: New file.
36835         * modules/unistdio/u8-u8-asprintf: New file.
36836         * modules/unistdio/u8-u8-snprintf: New file.
36837         * modules/unistdio/u8-u8-sprintf: New file.
36838         * modules/unistdio/u8-u8-vasnprintf: New file.
36839         * modules/unistdio/u8-u8-vasprintf: New file.
36840         * modules/unistdio/u8-u8-vsnprintf: New file.
36841         * modules/unistdio/u8-u8-vsprintf: New file.
36842         * modules/unistdio/u16-asnprintf: New file.
36843         * modules/unistdio/u16-asprintf: New file.
36844         * modules/unistdio/u16-printf-parse: New file.
36845         * modules/unistdio/u16-snprintf: New file.
36846         * modules/unistdio/u16-sprintf: New file.
36847         * modules/unistdio/u16-vasnprintf: New file.
36848         * modules/unistdio/u16-vasprintf: New file.
36849         * modules/unistdio/u16-vsnprintf: New file.
36850         * modules/unistdio/u16-vsprintf: New file.
36851         * modules/unistdio/u16-u16-asnprintf: New file.
36852         * modules/unistdio/u16-u16-asprintf: New file.
36853         * modules/unistdio/u16-u16-snprintf: New file.
36854         * modules/unistdio/u16-u16-sprintf: New file.
36855         * modules/unistdio/u16-u16-vasnprintf: New file.
36856         * modules/unistdio/u16-u16-vasprintf: New file.
36857         * modules/unistdio/u16-u16-vsnprintf: New file.
36858         * modules/unistdio/u16-u16-vsprintf: New file.
36859         * modules/unistdio/u32-asnprintf: New file.
36860         * modules/unistdio/u32-asprintf: New file.
36861         * modules/unistdio/u32-printf-parse: New file.
36862         * modules/unistdio/u32-snprintf: New file.
36863         * modules/unistdio/u32-sprintf: New file.
36864         * modules/unistdio/u32-vasnprintf: New file.
36865         * modules/unistdio/u32-vasprintf: New file.
36866         * modules/unistdio/u32-vsnprintf: New file.
36867         * modules/unistdio/u32-vsprintf: New file.
36868         * modules/unistdio/u32-u32-asnprintf: New file.
36869         * modules/unistdio/u32-u32-asprintf: New file.
36870         * modules/unistdio/u32-u32-snprintf: New file.
36871         * modules/unistdio/u32-u32-sprintf: New file.
36872         * modules/unistdio/u32-u32-vasnprintf: New file.
36873         * modules/unistdio/u32-u32-vasprintf: New file.
36874         * modules/unistdio/u32-u32-vsnprintf: New file.
36875         * modules/unistdio/u32-u32-vsprintf: New file.
36876         * modules/unistdio/ulc-asnprintf-tests: New file.
36877         * modules/unistdio/ulc-vasnprintf-tests: New file.
36878         * modules/unistdio/ulc-vasprintf-tests: New file.
36879         * modules/unistdio/ulc-vsnprintf-tests: New file.
36880         * modules/unistdio/ulc-vsprintf-tests: New file.
36881         * modules/unistdio/u8-asnprintf-tests: New file.
36882         * modules/unistdio/u8-vasnprintf-tests: New file.
36883         * modules/unistdio/u8-vasprintf-tests: New file.
36884         * modules/unistdio/u8-vsnprintf-tests: New file.
36885         * modules/unistdio/u8-vsprintf-tests: New file.
36886         * modules/unistdio/u16-asnprintf-tests: New file.
36887         * modules/unistdio/u16-vasnprintf-tests: New file.
36888         * modules/unistdio/u16-vasprintf-tests: New file.
36889         * modules/unistdio/u16-vsnprintf-tests: New file.
36890         * modules/unistdio/u16-vsprintf-tests: New file.
36891         * modules/unistdio/u32-asnprintf-tests: New file.
36892         * modules/unistdio/u32-vasnprintf-tests: New file.
36893         * modules/unistdio/u32-vasprintf-tests: New file.
36894         * modules/unistdio/u32-vsnprintf-tests: New file.
36895         * modules/unistdio/u32-vsprintf-tests: New file.
36896         * MODULES.html.sh (Unicode string functions): Add the new modules.
36897
36898 2007-07-01  Bruno Haible  <bruno@clisp.org>
36899
36900         * lib/sprintf.c (sprintf): Limit the available length estimation,
36901         to avoid address wraparound.
36902         * lib/vsprintf.c (vsprintf): Likewise.
36903         * modules/sprintf-posix (Dependencies): Add stdint.
36904         * modules/vsprintf-posix (Dependencies): Likewise.
36905
36906 2007-07-01  Bruno Haible  <bruno@clisp.org>
36907
36908         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
36909         Windows PATH as well. Conservative double-quoting. Comments.
36910
36911 2007-07-01  Bruno Haible  <bruno@clisp.org>
36912             Eric Blake  <ebb9@byu.net>
36913             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36914
36915         * gnulib-tool (self_abspathname): Fix algorithm to cope with
36916         empty components in $PATH, denoting '.'.
36917
36918 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36919
36920         * gnulib-tool: Fix indentation.
36921         (func_create_megatestdir): Likewise.
36922         Report by Bruno Haible.
36923
36924 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36925
36926         Sync from Automake.
36927         * build-aux/gnupload: Fix shell portability issues with for loops.
36928         Report by Karl Berry.
36929
36930 2007-06-29  Simon Josefsson  <simon@josefsson.org>
36931
36932         * build-aux/maint.mk (POURL): Use translationproject.org.
36933
36934 2007-06-27  Simon Josefsson  <simon@josefsson.org>
36935             Bruno Haible  <bruno@clisp.org>
36936
36937         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
36938         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
36939         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
36940         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
36941         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
36942
36943 2007-06-27  Bruno Haible  <bruno@clisp.org>
36944
36945         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
36946         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
36947
36948 2007-06-26  Karl Berry  <karl@gnu.org>
36949
36950         * MODULES.html.sh: remove xreadlink-with-size.
36951
36952 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36953
36954         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
36955         method that I hope also handles the double-include problem noted
36956         by Bruno Haible in
36957         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
36958
36959 2007-06-23  Bruno Haible  <bruno@clisp.org>
36960
36961         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36962         Don't let the 'mostlyclean' target fail if the last subdirectory could
36963         not be removed.
36964         Reported by Karl Berry.
36965
36966 2007-06-23  Bruno Haible  <bruno@clisp.org>
36967
36968         * gnulib-tool (echo): Add a speedier workaround for ksh.
36969         * tests/test-echo.sh: Likewise.
36970
36971 2007-06-23  Bruno Haible  <bruno@clisp.org>
36972
36973         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
36974         * tests/test-echo.sh: Likewise.
36975
36976 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36977
36978         * gnulib-tool (IFS): Initialize early, so we don't set it to
36979         empty later.
36980         (self_abspathname): Rewrite algorithm to set it, reindent.
36981         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
36982         (func_create_megatestdir): Merge some sed scripts.
36983
36984 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36985
36986         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
36987         exposed by Sun Studio 11 cc on Solaris 8.
36988
36989 2007-06-22  Bruno Haible  <bruno@clisp.org>
36990
36991         * gnulib-tool (echo): Ensure the echo primitive does not interpret
36992         backslashes.
36993         * tests/test-echo.sh: New file.
36994
36995 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36996
36997         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
36998         simplify `sed_replace_build_aux' scripts, they are portable but
36999         echoing them with `echo' is not.
37000         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
37001
37002 2007-06-21  Karl Berry  <karl@gnu.org>
37003
37004         * config/srclist.txt: guess we can't handle the licenses via
37005         srclist at the moment.
37006
37007 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37008
37009         * MODULES.html.sh: Add include_next.
37010         * modules/include_next: New file.
37011
37012 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37013
37014         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
37015         INCLUDE_NEXT.
37016         (gl_CHECK_NEXT_HEADERS): New macro.
37017         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
37018         the obsolescent gl_ABSOLUTE_HEADER.
37019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
37020         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
37021         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37022         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37023         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37024         * m4/math_h.m4 (gl_MATH_H): Likewise.
37025         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37026         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37027         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37028         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37029         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37030         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37031         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37032         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37033         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37034         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37035         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37036         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37037         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
37038         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37039         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37040         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37041         * m4/inttypes.m4 (gl_INTTYPES_H): Define
37042         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
37043         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
37044         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
37045         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
37046         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
37047         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
37048         * lib/float_.h: Likewise.
37049         * lib/inttypes_.h: Likewise.
37050         * lib/math_.h: Likewise.
37051         * lib/search_.h: Likewise.
37052         * lib/signal_.h: Likewise.
37053         * lib/stdint_.h: Likewise.
37054         * lib/stdio_.h: Likewise.
37055         * lib/stdlib_.h: Likewise.
37056         * lib/string_.h: Likewise.
37057         * lib/sys_stat_.h: Likewise.
37058         * lib/sys_time_.h: Likewise.
37059         * lib/time_.h: Likewise.
37060         * lib/unistd_.h: Likewise.
37061         * lib/wchar_.h: Likewise.
37062         * lib/wctype_.h: Likewise.
37063         * lib/dirent_.h: Likewise.
37064         * lib/iconv_.h: Likewise.
37065         * lib/locale_.h: Likewise.
37066         * lib/netinet_in_.h: Likewise.
37067         * lib/sys_select_.h: Likewise.
37068         * lib/sys_socket_.h: Likewise.
37069         * lib/sysexits_.h: Likewise.
37070         * modules/fcntl (Depends-on): Depend on include_next, not
37071         absolute_header.
37072         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
37073         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
37074         * modules/fchdir: Likewise.
37075         * modules/float: Likewise.
37076         * modules/iconv_open: Likewise.
37077         * modules/inttypes: Likewise.
37078         * modules/locale: Likewise.
37079         * modules/math: Likewise.
37080         * modules/netinet_in: Likewise.
37081         * modules/search: Likewise.
37082         * modules/signal: Likewise.
37083         * modules/stdint: Likewise.
37084         * modules/stdio: Likewise.
37085         * modules/stdlib: Likewise.
37086         * modules/string: Likewise.
37087         * modules/sys_select: Likewise.
37088         * modules/sys_socket: Likewise.
37089         * modules/sys_stat: Likewise.
37090         * modules/sys_time: Likewise.
37091         * modules/sysexits: Likewise.
37092         * modules/time: Likewise.
37093         * modules/unistd: Likewise.
37094         * modules/wchar: Likewise.
37095         * modules/wctype: Likewise.
37096         * modules/sys_stat: Change maintainer to "all".
37097         * modules/unistd: Likewise.
37098
37099 2007-06-20  Karl Berry  <karl@gnu.org>
37100
37101         * config/srclist.txt: track www changes in license files.
37102
37103 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
37104
37105         * build-aux/bootstrap: Remove stray dot.
37106         Make sure build_aux settings are honored when linking
37107         gnulib_extra_files.
37108
37109 2007-06-19  Eric Blake  <ebb9@byu.net>
37110
37111         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37112         Allow compilation on cygwin.
37113
37114 2007-06-19  Jim Meyering  <jim@meyering.net>
37115
37116         xreadlink-with-size: Remove module.  No longer used.
37117         Ex-callers now use xreadlink or mreadlink-with-size.
37118         * modules/xreadlink-with-size: Remove module.
37119         * lib/xreadlink-with-size.c: Remove file.
37120         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
37121         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
37122         just before the function definition *is* accurate.
37123
37124         Eliminate one way canonicalize_filename_mode could exit.
37125         * lib/canonicalize.c (canonicalize_filename_mode):
37126         Use mreadlink_with_size, not xreadlink_with_size.
37127
37128 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
37129
37130         Detect porting problems to FreeBSD/arm, which has time_t wider than
37131         long int.  Original problem reported for GNU diff by Xin Li in
37132         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
37133         * modules/getdate (Depends-on): Add intprops, verify.
37134         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
37135         is an integer type no wider than long int.
37136
37137 2007-06-18  Jim Meyering  <jim@meyering.net>
37138
37139         New module: mreadlink-with-size.
37140         * MODULES.html.sh: Add mreadlink-with-size.
37141         * modules/mreadlink-with-size: New module
37142         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
37143         not xreadlink-with-size.
37144         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
37145
37146 2007-06-16  Bruno Haible  <bruno@clisp.org>
37147
37148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
37149         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
37150         Reported by Gary V. Vaughan <gary@gnu.org>.
37151
37152 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
37153
37154         Revamp lchown so that it lives in unistd.h where it belongs.
37155         * lib/lchown.h: Remove.
37156         * lib/dirchownmod.c: Don't include lib/lchown.h.
37157         * lib/fchownat.c: Likewise.
37158         * lib/openat.c: Likewise.
37159         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
37160         does not follow symlinks.
37161         (EOPNOTSUPP): Define if not defined.
37162         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
37163         is defined to 0.
37164         (lchown): New decl.
37165         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
37166         Do not check for lchown decl.
37167         Set REPLACE_LCHOWN.
37168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
37169         REPLACE_LCHOWN.
37170         * modules/chown: Make it clear it follows symlinks.
37171         * modules/lchown: Make it clear it doesn't follow symlinks.
37172         (Files): Remove lib/lchown.h
37173         (Depends-on): Add unistd.
37174         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
37175         (Include): Include <unistd.h>, not "lchown.h".
37176         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
37177         REPLACE_LCHOWN.
37178
37179 2007-06-15  Jim Meyering  <jim@meyering.net>
37180
37181         Change license (GPL to LGPL) of fsusage and dependents.
37182         * modules/fsusage (License): Change to LGPL.
37183         * modules/full-read (License): Likewise.
37184         * modules/full-write (License): Likewise.
37185         * modules/safe-read (License): Likewise.
37186         * modules/safe-write (License): Likewise.
37187
37188 2007-06-14  Ben Pfaff  <blp@gnu.org>
37189
37190         Missing part of allocsa -> malloca transition.
37191         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
37192         gl_MALLOCA.
37193
37194 2007-06-12  Bruno Haible  <bruno@clisp.org>
37195
37196         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
37197         to ia64, x86_64, i386.
37198         Reported by Eric Blake.
37199
37200 2007-06-12  Bruno Haible  <bruno@clisp.org>
37201
37202         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
37203         cross-compiling to x86_64.
37204
37205 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
37206
37207         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
37208         glitch reported by Ralf Wildenhues in
37209         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
37210
37211         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
37212         Vin Shelton.
37213
37214 2007-06-11  Bruno Haible  <bruno@clisp.org>
37215
37216         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
37217         replacement string.
37218         Reported by Eric Blake.
37219
37220 2007-06-10  Bruno Haible  <bruno@clisp.org>
37221
37222         Prepare vasnprintf code for use with Unicode strings.
37223         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
37224         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
37225         TYPE_U32_STRING.
37226         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
37227         a_u32_string variants.
37228         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37229         * lib/printf-args.c: Don't include config.h and the specification
37230         header if PRINTF_FETCHARGS is already defined.
37231         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37232         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
37233         TYPE_U16_STRING, TYPE_U32_STRING.
37234         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
37235         u16_directive, u16_directives, u32_directive, u32_directives): New
37236         types.
37237         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
37238         New declarations.
37239         * lib/printf-parse.c: Don't include config.h and the specification
37240         header if PRINTF_PARSE is already defined. Eliminate the set of
37241         parameters for WIDE_CHAR_VERSION; the user of this file must provide
37242         them now. Include c-ctype.h.
37243         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
37244         directive and CHAR_T_ONLY_ASCII.
37245         * lib/vasnprintf.c: Don't include config.h and the specification header
37246         if VASNPRINTF is already defined.
37247         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
37248         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
37249         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
37250         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
37251         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
37252         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
37253         code accordingly.
37254         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
37255         pad_ourselves also in this case, with the 'c' and 's' directives, and
37256         with a different notion of "width".
37257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
37258
37259 2007-06-10  Bruno Haible  <bruno@clisp.org>
37260
37261         * modules/unistr/u32-mbsnlen: New file.
37262         * lib/unistr/u32-mbsnlen.c: New file.
37263
37264         * modules/unistr/u16-mbsnlen: New file.
37265         * lib/unistr/u16-mbsnlen.c: New file.
37266
37267         * modules/unistr/u8-mbsnlen: New file.
37268         * lib/unistr/u8-mbsnlen.c: New file.
37269
37270         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
37271         declarations.
37272
37273 2007-06-10  Bruno Haible  <bruno@clisp.org>
37274
37275         * lib/string_.h (mbsnlen): New declaration.
37276         * lib/mbsnlen.c: New file.
37277         * m4/mbsnlen.m4: New file.
37278         * modules/mbsnlen: New file.
37279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
37280         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
37281         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
37282
37283 2007-06-10  Bruno Haible  <bruno@clisp.org>
37284
37285         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
37286
37287 2007-06-10  Bruno Haible  <bruno@clisp.org>
37288
37289         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
37290         * lib/mbuiter.h: Likewise.
37291
37292 2007-06-10  Bruno Haible  <bruno@clisp.org>
37293
37294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
37295         declaration.
37296
37297 2007-06-10  Karl Berry  <karl@gnu.org>
37298
37299         * config/srclist.txt: remove gettext entries, Bruno prefers
37300         to update individually.
37301
37302 2007-06-10  Bruno Haible  <bruno@clisp.org>
37303
37304         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
37305         'maxlen'. Ensure only length + width bytes are allocated, not
37306         length + 1 + width.
37307
37308 2007-06-09  Bruno Haible  <bruno@clisp.org>
37309
37310         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
37311         (CHAR_T): Remove macro.
37312         (VASNPRINTF): Update.
37313
37314 2007-06-09  Bruno Haible  <bruno@clisp.org>
37315
37316         * MODULES.html.sh (Unicode string functions): Add the new modules.
37317
37318         * modules/uniconv/u32-conv-to-enc: New file.
37319         * lib/uniconv/u32-conv-to-enc.c: New file.
37320         * modules/uniconv/u32-conv-to-enc-tests: New file.
37321         * tests/uniconv/test-u32-conv-to-enc.c: New file.
37322
37323         * modules/uniconv/u16-conv-to-enc: New file.
37324         * lib/uniconv/u16-conv-to-enc.c: New file.
37325         * lib/uniconv/u-conv-to-enc.h: New file.
37326         * modules/uniconv/u16-conv-to-enc-tests: New file.
37327         * tests/uniconv/test-u16-conv-to-enc.c: New file.
37328
37329         * modules/uniconv/u8-conv-to-enc: New file.
37330         * lib/uniconv/u8-conv-to-enc.c: New file.
37331         * modules/uniconv/u8-conv-to-enc-tests: New file.
37332         * tests/uniconv/test-u8-conv-to-enc.c: New file.
37333
37334         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37335         u32_conv_to_encoding): New declarations.
37336
37337 2007-06-09  Bruno Haible  <bruno@clisp.org>
37338
37339         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
37340
37341 2007-06-09  Bruno Haible  <bruno@clisp.org>
37342
37343         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
37344         * modules/malloca: Renamed from modules/allocsa, updated.
37345         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
37346         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
37347         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
37348         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
37349         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
37350         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
37351         * modules/xmalloca: Renamed from modules/xallocsa, updated.
37352         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
37353         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
37354         * modules/c-strcasestr (Depends-on): Update.
37355         * lib/c-strcasestr.c: Update.
37356         * modules/c-strstr (Depends-on): Update.
37357         * lib/c-strstr.c: Update.
37358         * modules/canonicalize-lgpl (Depends-on): Update.
37359         * lib/canonicalize-lgpl.c: Update.
37360         * modules/clean-temp (Depends-on): Update.
37361         * lib/clean-temp.c: Update.
37362         * modules/csharpcomp (Depends-on): Update.
37363         * lib/csharpcomp.c: Update.
37364         * modules/csharpexec (Depends-on): Update.
37365         * lib/csharpexec.c: Update.
37366         * modules/javacomp (Depends-on): Update.
37367         * lib/javacomp.c: Update.
37368         * modules/javaexec (Depends-on): Update.
37369         * lib/javaexec.c: Update.
37370         * modules/mbscasestr (Depends-on): Update.
37371         * lib/mbscasestr.c: Update.
37372         * modules/mbsstr (Depends-on): Update.
37373         * lib/mbsstr.c: Update.
37374         * modules/setenv (Depends-on): Update.
37375         * lib/setenv.c: Update.
37376         * modules/strcasestr (Depends-on): Update.
37377         * lib/strcasestr.c: Update.
37378         * modules/striconveha (Depends-on): Update.
37379         * lib/striconveha.c: Update.
37380         * modules/relocatable-prog-wrapper (Files): Update.
37381         * lib/relocwrapper.c: Update.
37382         * build-aux/install-reloc: Update.
37383         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
37384
37385 2007-06-08  Bruno Haible  <bruno@clisp.org>
37386
37387         Port to uClibc.
37388         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
37389         * lib/fpurge.c (fpurge): Likewise.
37390         * lib/freading.c (freading): Likewise.
37391         * lib/fseeko.c (rpl_fseeko): Likewise.
37392         * lib/fseterr.c (fseterr): Likewise.
37393         * lib/fwriting.c (fwriting): Likewise.
37394         * tests/test-fflush.c (main): Avoid a failure on uClibc.
37395
37396 2007-06-08  Bruno Haible  <bruno@clisp.org>
37397
37398         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
37399         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
37400         * modules/gettext (Files): Add m4/intlmacosx.m4.
37401
37402 2007-06-07  Bruno Haible  <bruno@clisp.org>
37403
37404         * modules/localename-tests: New file.
37405         * tests/test-localename.c: New file.
37406
37407         New module 'localename'.
37408         * lib/localename.h: New file.
37409         * lib/localename.c: New file, from GNU gettext.
37410         * m4/localename.m4: New file.
37411         * modules/localename: New file.
37412
37413 2007-06-07  Bruno Haible  <bruno@clisp.org>
37414
37415         Work around the lack of <wchar.h> on some builds of uClibc.
37416         * doc/headers/wchar.texi: Update.
37417         * lib/wchar_.h: Include <wchar.h> only if it exists.
37418         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
37419         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
37420         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
37421         doesn't exist.
37422         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
37423         * modules/mbfile (Depends-on): Add wchar.
37424         * modules/mbiter (Depends-on): Likewise.
37425         * modules/mbuiter (Depends-on): Likewise.
37426         Reported by Simon Josefsson.
37427
37428 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37429
37430         Work around problem reported by Steven M. Schweda in
37431         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
37432         Tru64 5.1B with the Compaq compiler environment installed declares
37433         an 'isblank' function but does not define it in the C library.
37434         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
37435         * lib/regex_internal.h (isblank): Likewise.
37436         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
37437         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37438
37439 2007-06-05  Bruno Haible  <bruno@clisp.org>
37440
37441         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
37442         ia64.
37443         * modules/printf-safe: New file.
37444         * modules/fprintf-posix (Depends-on): Add printf-safe.
37445         * modules/printf-posix (Depends-on): Likewise.
37446         * modules/snprintf-posix (Depends-on): Likewise.
37447         * modules/sprintf-posix (Depends-on): Likewise.
37448         * modules/vasnprintf-posix (Depends-on): Likewise.
37449         * modules/vasprintf-posix (Depends-on): Likewise.
37450         * modules/vfprintf-posix (Depends-on): Likewise.
37451         * modules/vprintf-posix (Depends-on): Likewise.
37452         * modules/vsnprintf-posix (Depends-on): Likewise.
37453         * modules/vsprintf-posix (Depends-on): Likewise.
37454         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
37455         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
37456         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
37457         "no" on i386, x86_64, ia64.
37458         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
37459         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37460         on i386, x86_64, ia64.
37461         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
37462         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37463         on i386, x86_64, ia64.
37464         * tests/test-vasnprintf-posix.c: Include float.h.
37465         (LDBL80_WORDS): New macro.
37466         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37467         on i386, x86_64, ia64.
37468         * tests/test-vasprintf-posix.c: Include float.h.
37469         (LDBL80_WORDS): New macro.
37470         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37471         on i386, x86_64, ia64.
37472         * tests/test-snprintf-posix.c: Include float.h.
37473         * tests/test-sprintf-posix.c: Likewise.
37474         * tests/test-vsnprintf-posix.c: Likewise.
37475         * tests/test-vsprintf-posix.c: Likewise.
37476
37477 2007-06-05  Bruno Haible  <bruno@clisp.org>
37478
37479         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
37480         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
37481         non-IEEE numbers on i386, x86_64, ia64.
37482         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
37483         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
37484         * tests/test-isnanl.h: Include float.h.
37485         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
37486
37487 2007-06-05  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
37490         also the %a / %A. Handle the %a / %A code before this extra handling.
37491
37492 2007-06-05  Bruno Haible  <bruno@clisp.org>
37493
37494         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
37495         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
37496
37497 2007-06-05  Bruno Haible  <bruno@clisp.org>
37498
37499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
37500         typo in variable name.
37501
37502 2007-06-05  Eric Blake  <ebb9@byu.net>
37503
37504         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
37505         Reported by Simon Josefsson.
37506
37507 2007-06-04  Bruno Haible  <bruno@clisp.org>
37508
37509         Avoid test failures on some PowerPC platforms.
37510         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
37511         Define differently for PowerPC.
37512         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
37513         Reported by Gary V. Vaughan <gary@gnu.org>.
37514
37515 2007-06-02  Bruno Haible  <bruno@clisp.org>
37516
37517         Fix test-stdint failure on FreeBSD/ia64.
37518         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
37519         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
37520         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
37521         * doc/headers/stdint.texi: Update.
37522
37523 2007-06-01  Bruno Haible  <bruno@clisp.org>
37524
37525         * tests/test-binary-io.c (main): Pass a third argument to open().
37526         Reported by Gary V. Vaughan <gary@gnu.org>.
37527
37528 2007-06-01  Bruno Haible  <bruno@clisp.org>
37529
37530         * doc/functions/frexpl.texi: Update for mingw.
37531
37532 2007-06-01  Bruno Haible  <bruno@clisp.org>
37533
37534         * tests/test-lseek.c (main): Disable test of errno for invalid third
37535         argument.
37536         * doc/functions/lseek.texi: Update.
37537         Reported by Gary V. Vaughan <gary@gnu.org>.
37538
37539 2007-05-28  Bruno Haible  <bruno@clisp.org>
37540
37541         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37542
37543 2007-05-31  Eric Blake  <ebb9@byu.net>
37544
37545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37546         cross compiling.
37547
37548 2007-05-30  Eric Blake  <ebb9@byu.net>
37549         and Bruno Haible  <bruno@clisp.org>
37550
37551         Work around mingw test failures exposed by m4-1.4.9b.
37552         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37553         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37554         moment.
37555
37556 2007-05-30  Bruno Haible  <bruno@clisp.org>
37557
37558         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37559         assuming that they are closed. Needed on HP-UX 11.
37560
37561 2007-05-29  Bruno Haible  <bruno@clisp.org>
37562
37563         Fix a problem with #include_next.
37564         * lib/dirent_.h: Split the double-inclusion guard.
37565         * lib/fcntl_.h: Likewise.
37566         * lib/float_.h: Likewise.
37567         * lib/iconv_.h: Likewise.
37568         * lib/inttypes_.h: Likewise.
37569         * lib/locale_.h: Likewise.
37570         * lib/math_.h: Likewise.
37571         * lib/netinet_in_.h: Likewise.
37572         * lib/search_.h: Likewise.
37573         * lib/signal_.h: Likewise.
37574         * lib/stdint_.h: Likewise.
37575         * lib/stdio_.h: Likewise.
37576         * lib/stdlib_.h: Likewise.
37577         * lib/string_.h: Likewise.
37578         * lib/sys_select_.h: Likewise.
37579         * lib/sys_socket_.h: Likewise.
37580         * lib/sys_stat_.h: Likewise.
37581         * lib/sys_time_.h: Likewise.
37582         * lib/sysexits_.h: Likewise.
37583         * lib/time_.h: Likewise.
37584         * lib/unistd_.h: Likewise.
37585         * lib/wchar_.h: Likewise.
37586         * lib/wctype_.h: Likewise.
37587
37588 2007-05-29  Bruno Haible  <bruno@clisp.org>
37589
37590         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37591         for the moment.
37592
37593 2007-05-29  Bruno Haible  <bruno@clisp.org>
37594
37595         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37596         invocation.
37597         Reported by Eric Blake.
37598
37599 2007-05-29  Bruno Haible  <bruno@clisp.org>
37600
37601         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37602         compiling case.
37603
37604 2007-05-29  Eric Blake  <ebb9@byu.net>
37605             Bruno Haible  <bruno@clisp.org>
37606
37607         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37608         cross compiles.
37609
37610 2007-05-28  Eric Blake  <ebb9@byu.net>
37611
37612         * modules/closein-tests (test_closein_LDADD): Support test on
37613         cygwin with libtool.
37614
37615 2007-05-28  Bruno Haible  <bruno@clisp.org>
37616
37617         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37618         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37619         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37620         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37621         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37622         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37623         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37624         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37625         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37626
37627 2007-05-28  Eric Blake  <ebb9@byu.net>
37628
37629         Unconditionally include <config.h> in unit tests.
37630         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37631         * tests/test-allocsa.c, tests/test-arcfour.c,
37632         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37633         tests/test-array_list.c, tests/test-array_oset.c,
37634         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37635         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37636         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37637         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37638         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37639         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37640         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37641         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37642         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37643         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37644         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37645         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37646         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37647         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37648         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37649         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37650         test-md5.c, test-memmem.c, test-printf-posix.c,
37651         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37652         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37653         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37654         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37655         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37656         test-vasnprintf-posix2.c, test-vasnprintf.c,
37657         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37658         test-vfprintf-posix.c, test-vprintf-posix.c,
37659         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37660         test-xvasprintf.c: Likewise.
37661
37662 2007-05-28  Bruno Haible  <bruno@clisp.org>
37663
37664         * gnulib-tool (func_import): Remember the --with-tests command-line
37665         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37666         Reported by Eric Blake.
37667
37668 2007-05-28  Bruno Haible  <bruno@clisp.org>
37669
37670         * modules/ftell-tests: New file.
37671         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37672         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37673
37674         * lib/ftell.c: New file.
37675         * modules/ftell: New file.
37676         * m4/ftell.m4: New file.
37677         * doc/functions/ftell.texi: Update.
37678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37679         REPLACE_FTELL.
37680         * lib/stdio_.h (rpl_ftell): New declaration.
37681         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37682         REPLACE_FTELL.
37683
37684 2007-05-28  Eric Blake  <ebb9@byu.net>
37685
37686         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37687
37688 2007-05-28  Bruno Haible  <bruno@clisp.org>
37689
37690         * modules/fseek-tests: New file.
37691         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37692         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37693
37694         * lib/fseek.c: New file.
37695         * modules/fseek: New file.
37696         * m4/fseek.m4: New file.
37697         * doc/functions/fseek.texi: Update.
37698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37699         REPLACE_FSEEK.
37700         * lib/stdio_.h (rpl_fseek): New declaration.
37701         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37702         REPLACE_FSEEK.
37703
37704 2007-05-28  Bruno Haible  <bruno@clisp.org>
37705
37706         * lib/stdio_.h (fflush): More comments.
37707
37708 2007-05-28  Bruno Haible  <bruno@clisp.org>
37709
37710         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37711         runtime test.
37712
37713 2007-05-28  Eric Blake  <ebb9@byu.net>
37714
37715         Improve lseek module.
37716         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37717         * lib/unistd_.h (lseek): Scale back link warning message.
37718         * tests/test-lseek.c: Beef up test.
37719         * tests/test-lseek.sh: Exercise more facets of lseek.
37720         Reported by Bruno Haible.
37721
37722 2007-05-28  Bruno Haible  <bruno@clisp.org>
37723
37724         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
37725         to define.
37726
37727 2007-05-27  Bruno Haible  <bruno@clisp.org>
37728
37729         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
37730
37731 2007-05-27  Bruno Haible  <bruno@clisp.org>
37732
37733         * modules/openmp: New file.
37734         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
37735         Noah Misch.
37736
37737 2007-05-26  Bruno Haible  <bruno@clisp.org>
37738
37739         * modules/chdir-long (Depends-on): Add fchdir.
37740         * modules/chdir-safer (Depends-on): Likewise.
37741         * modules/fts (Depends-on): Likewise.
37742         * modules/fts-lgpl (Depends-on): Likewise.
37743         * modules/openat (Depends-on): Likewise.
37744         * modules/savewd (Depends-on): Likewise.
37745
37746 2007-05-24  Eric Blake  <ebb9@byu.net>
37747
37748         Fix lseek on mingw.
37749         * modules/lseek: New module.
37750         * m4/lseek.m4: New file.
37751         * lib/lseek.c: New file.
37752         * modules/lseek-tests: New file.
37753         * tests/test-lseek.c: New file.
37754         * tests/test-lseek.sh: New file.
37755         * MODULES.html.sh: Document lseek module.
37756         * modules/fflush (Depends-on): Add lseek, fseeko.
37757         * modules/fseeko (Depends-on): Likewise.
37758         * modules/ftello (Depends-on): Likewise.
37759         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
37760         broken.
37761         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
37762         broken.
37763         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
37764         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
37765         * lib/ftello.c (rpl_ftello): Likewise.
37766         * tests/test-fseeko.c (main): Test this.
37767         * tests/test-fseeko.sh: Likewise.
37768         * tests/test-ftello.c (main): Likewise.
37769         * tests/test-ftello.sh: Likewise.
37770         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
37771         implies replacing fseek.
37772         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
37773         HAVE_FTELLO.
37774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
37775         * modules/unistd (Makefile.am): Likewise.
37776         * lib/unistd_.h (lseek): Declare a replacement.
37777         * doc/functions/lseek.texi (lseek): Document this fix.
37778         * doc/functions/fseek.texi (fseek): Likewise.
37779         * doc/functions/ftell.texi (ftell): Likewise.
37780
37781 2007-05-24  Bruno Haible  <bruno@clisp.org>
37782
37783         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
37784         in the printed representation of a NaN.
37785         * tests/test-vasprintf-posix.c (test_function): Likewise.
37786         * tests/test-snprintf-posix.h (test_function): Likewise.
37787         * tests/test-sprintf-posix.h (test_function): Likewise.
37788         Reported by Eric Blake.
37789
37790 2007-05-23  Eric Blake  <ebb9@byu.net>
37791
37792         Fix fseeko/ftello on cygwin 1.5.24.
37793         * doc/functions/fseeko.texi (fseeko): Document the fix.
37794         * doc/functions/ftello.texi (ftello): Document the fix.
37795         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
37796         * doc/functions/stdout.text (stdout): New file.
37797         * doc/functions/stderr.text (stderr): New file.
37798         * doc/gnulib.texi (Function Substitutes): Use new files.
37799         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
37800         prior to 1.7.0.
37801         * tests/test-ftello.c (main): Likewise for ftello.
37802         * tests/test-fseeko.sh: New file.
37803         * tests/test-ftello.sh: New file.
37804         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
37805         with seekable stdin.
37806         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
37807         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
37808         (gl_REPLACE_FSEEKO): New macro.
37809         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
37810         * modules/fseeko (Files): Distribute fseeko.c.
37811         * modules/ftello (Files): Distribute ftello.c.
37812         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
37813         mode.
37814         * lib/ftello.c (rpl_ftello): New file.
37815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
37816         fseeko, ftello.
37817         (gl_STDIN_LARGE_OFFSET): New macro.
37818         * modules/stdio (Makefile.am): Perform the replacement.
37819         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
37820
37821 2007-05-23  Bruno Haible  <bruno@clisp.org>
37822
37823         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
37824         GNULIB_POSIXCHECK is defined.
37825
37826 2007-05-21  Bruno Haible  <bruno@clisp.org>
37827
37828         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
37829         Check also the output for NaN arguments. When cross-compiling, guess
37830         no on IRIX.
37831         * lib/vasnprintf.c: Update comments.
37832         * tests/test-vasnprintf-posix.c (strisnan): New function.
37833         (test_function): Use it.
37834         * tests/test-vasprintf-posix.c (strisnan): New function.
37835         (test_function): Use it.
37836         * tests/test-snprintf-posix.h (strisnan): New function.
37837         (test_function): Use it.
37838         * tests/test-sprintf-posix.h (strisnan): New function.
37839         (test_function): Use it.
37840         Reported by Eric Blake.
37841
37842 2007-05-20  Bruno Haible  <bruno@clisp.org>
37843
37844         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
37845         numbers that fails on BeOS.
37846         * doc/functions/frexpl.texi: Update.
37847
37848 2007-05-20  Jim Meyering  <jim@meyering.net>
37849
37850         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
37851         forced upon us by glibc-2.6.
37852
37853 2007-05-20  Bruno Haible  <bruno@clisp.org>
37854
37855         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
37856         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
37857         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
37858         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
37859         NEED_PRINTF_INFINITE.
37860         (is_infinitel): New function.
37861         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
37862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
37863         gl_PREREQ_VASNPRINTF_INFINITE.
37864         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
37865         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37866         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
37867         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
37868         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
37869         gl_PREREQ_VASNPRINTF_INFINITE.
37870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37872         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37877         * doc/functions/fprintf.texi: Update.
37878         * doc/functions/printf.texi: Update.
37879         * doc/functions/snprintf.texi: Update.
37880         * doc/functions/sprintf.texi: Update.
37881         * doc/functions/vfprintf.texi: Update.
37882         * doc/functions/vprintf.texi: Update.
37883         * doc/functions/vsnprintf.texi: Update.
37884         * doc/functions/vsprintf.texi: Update.
37885
37886 2007-05-20  Bruno Haible  <bruno@clisp.org>
37887
37888         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
37889         was not found in libc.
37890         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
37891
37892 2007-05-20  Bruno Haible  <bruno@clisp.org>
37893
37894         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37895         printed as "-nan" instead of "nan".
37896         * tests/test-vasprintf-posix.c (test_function): Likewise.
37897         * tests/test-snprintf-posix.h (test_function): Likewise.
37898         * tests/test-sprintf-posix.h (test_function): Likewise.
37899         Needed for HP-UX 11.
37900
37901 2007-05-20  Jim Meyering  <jim@meyering.net>
37902
37903         Fix buggy test for the fchownat-deref bug.
37904         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
37905         symlink required for the run-test.  Without it, this test would
37906         always declare that fchownat doesn't work, and client code would
37907         unnecessarily use the replacement function with fixed libc.
37908         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
37909         Reported by Greg Schafer.
37910
37911 2007-05-19  Bruno Haible  <bruno@clisp.org>
37912
37913         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
37914         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
37915         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
37916         Needed for IRIX 6.5 and Solaris 2.5.1.
37917
37918 2007-05-19  Bruno Haible  <bruno@clisp.org>
37919
37920         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
37921         (test_function): Skip tests involving -0.0 on platforms where
37922         -0.0 = 0.0.
37923         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
37924         (test_function): Skip tests involving -0.0 on platforms where
37925         -0.0 = 0.0.
37926         * tests/test-snprintf-posix.h (have_minus_zero): New function.
37927         (test_function): Skip tests involving -0.0 on platforms where
37928         -0.0 = 0.0.
37929         * tests/test-sprintf-posix.h (have_minus_zero): New function.
37930         (test_function): Skip tests involving -0.0 on platforms where
37931         -0.0 = 0.0.
37932         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
37933         tests.
37934         * tests/test-printf-posix.h (test_function): Likewise.
37935         * tests/test-printf-posix.output: Remove all -0.0 related results.
37936         Needed for IRIX 6.5.
37937
37938 2007-05-19  Bruno Haible  <bruno@clisp.org>
37939
37940         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37941         printed as "nan0x7fffffff" instead of "nan".
37942         * tests/test-vasprintf-posix.c (test_function): Likewise.
37943         * tests/test-snprintf-posix.h (test_function): Likewise.
37944         * tests/test-sprintf-posix.h (test_function): Likewise.
37945         * tests/test-fprintf-posix.h (NaN): Remove macro.
37946         (test_function): Remove all NaN related tests.
37947         * tests/test-printf-posix.h (NaN): Remove macro.
37948         (test_function): Remove all NaN related tests.
37949         * tests/test-printf-posix.output: Remove all NaN related results.
37950         Needed for IRIX 6.5.
37951
37952 2007-05-19  Bruno Haible  <bruno@clisp.org>
37953
37954         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
37955         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
37956
37957 2007-05-19  Bruno Haible  <bruno@clisp.org>
37958
37959         * lib/float_.h: New file.
37960         * m4/float_h.m4: New file.
37961         * modules/float: New file.
37962         * modules/isnanl (Dependencies): Add float.
37963         * modules/isnanl-nolibm (Dependencies): Likewise.
37964         * modules/mathl (Dependencies): Likewise.
37965         * modules/printf-frexpl (Dependencies): Likewise.
37966         * modules/signbit (Dependencies): Likewise.
37967         * modules/vasnprintf (Dependencies): Likewise.
37968         * doc/headers/float.texi: Update.
37969
37970 2007-05-19  Jim Meyering  <jim@meyering.net>
37971
37972         * lib/utimens.c (gl_futimens): Rename from futimens,
37973         now that glibc-2.6 declares futimens.
37974         * lib/utimens.h: Likewise.
37975
37976 2007-05-19  Bruno Haible  <bruno@clisp.org>
37977
37978         Avoid test failures on mingw.
37979         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
37980         * tests/test-printf-posix.sh: Likewise.
37981         * tests/test-vfprintf-posix.sh: Likewise.
37982         * tests/test-vprintf-posix.sh: Likewise.
37983
37984 2007-05-19  Bruno Haible  <bruno@clisp.org>
37985
37986         Fix *printf result for NaN, Inf, -0.0 on mingw.
37987         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
37988         * lib/vasnprintf.c: Include math.h and isnan.h.
37989         (is_infinite_or_zero): New function.
37990         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
37991         values in the %f, %F, %e, %E, %g, %G directives.
37992         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
37993         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37994         gl_PRINTF_INFINITE and test its result. Invoke
37995         gl_PREREQ_VASNPRINTF_INFINITE.
37996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37997         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37998         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37999         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38000         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38002         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38003         * doc/functions/fprintf.texi: Update.
38004         * doc/functions/printf.texi: Update.
38005         * doc/functions/snprintf.texi: Update.
38006         * doc/functions/sprintf.texi: Update.
38007         * doc/functions/vfprintf.texi: Update.
38008         * doc/functions/vprintf.texi: Update.
38009         * doc/functions/vsnprintf.texi: Update.
38010         * doc/functions/vsprintf.texi: Update.
38011
38012 2007-05-19  Bruno Haible  <bruno@clisp.org>
38013
38014         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
38015         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
38016         Instead of multiplying with 10^k, set extra_zeroes to k.
38017         (scale10_round_long_double): Remove function.
38018
38019 2007-05-18  Bruno Haible  <bruno@clisp.org>
38020
38021         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
38022         introduced on 2007-05-06.
38023
38024 2007-05-18  Bruno Haible  <bruno@clisp.org>
38025
38026         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
38027         %g directives.
38028         * tests/test-vasprintf-posix.c (test_function): Likewise.
38029         * tests/test-snprintf-posix.h (test_function): Likewise.
38030         * tests/test-sprintf-posix.h (test_function): Likewise.
38031
38032 2007-05-18  Bruno Haible  <bruno@clisp.org>
38033
38034         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
38035         (strmatch): New function.
38036         (test_function): Test the %f directive on numbers of various exponents.
38037         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
38038         (strmatch): New function.
38039         (test_function): Test the %f directive on numbers of various exponents.
38040         * tests/test-snprintf-posix.h (strmatch): New function.
38041         (test_function): Test the %f directive on numbers of various exponents.
38042         * tests/test-sprintf-posix.h (strmatch): New function.
38043         (test_function): Test the %f directive on numbers of various exponents.
38044         * tests/test-snprintf-posix.c (SIZEOF): New macro.
38045         * tests/test-sprintf-posix.c (SIZEOF): New macro.
38046         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
38047         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
38048
38049 2007-05-18  Bruno Haible  <bruno@clisp.org>
38050
38051         Add support for 'long double' number output.
38052         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
38053         * lib/vasnprintf.c: Include math.h and float+.h.
38054         (mp_limb_t): New type.
38055         (GMP_LIMB_BITS): New macro.
38056         (mp_twolimb_t): New type.
38057         (GMP_TWOLIMB_BITS): New macro.
38058         (mpn_t): New type.
38059         (multiply, divide, convert_to_decimal, decode_long_double,
38060         scale10_round_long_double, scale10_round_decimal_long_double,
38061         floorlog10l): New functions.
38062         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
38063         for the %f, %F, %e, %E, %g, %G directives.
38064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
38065         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38066         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
38067         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
38068         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38069         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38070         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38071         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38075         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
38076         * modules/snprintf-posix (Depends-on): Likewise.
38077         * modules/sprintf-posix (Depends-on): Likewise.
38078         * modules/vasnprintf-posix (Depends-on): Likewise.
38079         * modules/vasprintf-posix (Depends-on): Likewise.
38080         * modules/vfprintf-posix (Depends-on): Likewise.
38081         * modules/vsnprintf-posix (Depends-on): Likewise.
38082         * modules/vsprintf-posix (Depends-on): Likewise.
38083         * modules/vasnprintf (Files): Add lib/float+.h.
38084         * doc/functions/fprintf.texi: Update.
38085         * doc/functions/printf.texi: Update.
38086         * doc/functions/snprintf.texi: Update.
38087         * doc/functions/sprintf.texi: Update.
38088         * doc/functions/vfprintf.texi: Update.
38089         * doc/functions/vprintf.texi: Update.
38090         * doc/functions/vsnprintf.texi: Update.
38091         * doc/functions/vsprintf.texi: Update.
38092
38093 2007-05-18  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
38096
38097 2007-05-18  Bruno Haible  <bruno@clisp.org>
38098
38099         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
38100         for printing 64-bit integers. Needed for mingw.
38101
38102 2007-05-18  Bruno Haible  <bruno@clisp.org>
38103
38104         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
38105         gl_FUNC_FREXPL_WORKS.
38106         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
38107
38108 2007-05-18  Bruno Haible  <bruno@clisp.org>
38109
38110         * modules/frexpl-nolibm-tests: New file.
38111
38112         * modules/frexpl-nolibm: New file.
38113         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
38114
38115 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
38116
38117         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
38118         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38119         GCC 4.2, which otherwise issues a lot of warnings.
38120         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
38121         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
38122         Likewise.
38123         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
38124         * modules/iconv_open (iconv.h): Likewise.
38125         * modules/locale (locale.h): Likewise.
38126         * modules/netinet_in (netinet/in.h): Likewise.
38127         * modules/sys_select (sys_select.h): Likewise.
38128         * modules/sys_socket (sys/socket.h): Likewise.
38129         * modules/sys_stat (sys/stat.h): Likewise.
38130         * modules/sysexits (sysexits.h): Likewise.
38131         * modules/unistd (unistd.h): Likewise.
38132
38133 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38134
38135         * modules/closein-tests (Makefile.am): Distribute
38136         `test-closein.sh'.
38137
38138 2007-05-17  Bruno Haible  <bruno@clisp.org>
38139
38140         * tests/test-printf-posix.output: Renamed from
38141         tests/test-fprintf-posix.out.
38142         * modules/fprintf-posix-tests: Update.
38143         * modules/printf-posix-tests: Update.
38144         * modules/vfprintf-posix-tests: Update.
38145         * modules/vprintf-posix-tests: Update.
38146         * tests/test-fprintf-posix.sh: Update.
38147         * tests/test-printf-posix.sh: Update.
38148         * tests/test-vfprintf-posix.sh: Update.
38149         * tests/test-vprintf-posix.sh: Update.
38150         Reported by Ralf Wildenhues.
38151
38152 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
38153
38154         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
38155         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38156         GCC 4.2, which otherwise issues a lot of warnings.
38157         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
38158         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
38159         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
38160         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
38161         it should no longer be needed.
38162         * lib/string_.h: Likewise.
38163         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
38164         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
38165         * modules/inttypes (inttypes.h): Likewise.
38166         * modules/math (math.h): Likewise.
38167         * modules/search (search.h): Likewise.
38168         * modules/signal (signal.h): Likewise.
38169         * modules/stdint (stdint.h): Likewise.
38170         * modules/stdio (stdio.h): Likewise.
38171         * modules/stdlib (stdlib.h): Likewise.
38172         * modules/string (string.h): Likewise.
38173         * modules/sys_time (sys/time.h): Likewise.
38174         * modules/time (time.h): Likewise.
38175         * modules/wchar (wchar.h): Likewise.
38176         * modules/wctype (wtype.h): Likewise.
38177
38178 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38179
38180         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
38181
38182 2007-05-13  Bruno Haible  <bruno@clisp.org>
38183
38184         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
38185         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38186         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
38187         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38188         (gl_PREREQ_STRTOK_R): Don't require it here.
38189
38190 2007-05-13  Bruno Haible  <bruno@clisp.org>
38191
38192         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
38193         when used in C++ mode.
38194
38195 2007-05-12  Bruno Haible  <bruno@clisp.org>
38196
38197         * lib/linebuffer.h: Tweak doc.
38198         * lib/linebuffer.c: Likewise.
38199
38200 2007-05-12  James Youngman  <jay@gnu.org>
38201
38202         * lib/linebuffer.c (readlinebuffer_delim): New function,
38203         like readlinebuffer, but use a caller-specified delimiter.
38204         (readlinebuffer): Just call readlinebuffer_delim with '\n'
38205         as the delimiter.
38206         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
38207
38208 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38209
38210         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
38211         * modules/openat (Files): Remove openat-die.c.
38212         (Depends-on): Add openat-die.
38213         * modules/openat-die: New module.
38214
38215 2007-05-06  Bruno Haible  <bruno@clisp.org>
38216
38217         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
38218         Update with info about Cygwin.
38219         * doc/functions/fprintf.texi: Update.
38220         * doc/functions/printf.texi: Update.
38221         * doc/functions/snprintf.texi: Update.
38222         * doc/functions/sprintf.texi: Update.
38223         * doc/functions/vfprintf.texi: Update.
38224         * doc/functions/vprintf.texi: Update.
38225         * doc/functions/vsnprintf.texi: Update.
38226         * doc/functions/vsprintf.texi: Update.
38227         Reported by Eric Blake.
38228
38229 2007-05-06  Bruno Haible  <bruno@clisp.org>
38230
38231         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
38232         padding ourselves for the floating-point directives.
38233         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
38234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
38235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38236         gl_PRINTF_FLAG_ZERO and test its result. Invoke
38237         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
38238         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38239         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38240         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38241         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38242         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38243         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38244         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38245         * tests/test-snprintf-posix.h (test_function): Also check the width
38246         and some flags in the %f directive.
38247         * tests/test-sprintf-posix.h (test_function): Likewise.
38248         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38249         * tests/test-vasprintf-posix.c (test_function): Likewise.
38250         * doc/functions/fprintf.texi: Update.
38251         * doc/functions/printf.texi: Update.
38252         * doc/functions/snprintf.texi: Update.
38253         * doc/functions/sprintf.texi: Update.
38254         * doc/functions/vfprintf.texi: Update.
38255         * doc/functions/vprintf.texi: Update.
38256         * doc/functions/vsnprintf.texi: Update.
38257         * doc/functions/vsprintf.texi: Update.
38258
38259 2007-05-06  Bruno Haible  <bruno@clisp.org>
38260
38261         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
38262         pass the ' flag character to sprintf or snprintf.
38263         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
38264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
38265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38266         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
38267         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
38268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38269         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38270         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38275         * tests/test-snprintf-posix.h (test_function): Also check the grouping
38276         flag.
38277         * tests/test-sprintf-posix.h (test_function): Likewise.
38278         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38279         * tests/test-vasprintf-posix.c (test_function): Likewise.
38280         * doc/functions/fprintf.texi: Update.
38281         * doc/functions/printf.texi: Update.
38282         * doc/functions/snprintf.texi: Update.
38283         * doc/functions/sprintf.texi: Update.
38284         * doc/functions/vfprintf.texi: Update.
38285         * doc/functions/vprintf.texi: Update.
38286         * doc/functions/vsnprintf.texi: Update.
38287         * doc/functions/vsprintf.texi: Update.
38288
38289 2007-05-01  Bruno Haible  <bruno@clisp.org>
38290
38291         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
38292
38293 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
38294
38295         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
38296         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
38297
38298 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38299
38300         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
38301         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
38302         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
38303
38304 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
38305
38306         * lib/argp-help.c (struct hol_entry): New member `ord'.
38307         (HOL_ENTRY_PTRCMP): Use ord for comparison
38308         (hol_sort): Initialize ord.
38309
38310 2007-05-01  Bruno Haible  <bruno@clisp.org>
38311
38312         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
38313         Reported by Eric Blake.
38314         * doc/gnulib.texi (Function Substitutes): Update.
38315
38316 2007-05-01  Bruno Haible  <bruno@clisp.org>
38317
38318         * doc/functions.texi: Remove file, now redundant through
38319         doc/functions/*.texi.
38320
38321 2007-05-01  Bruno Haible  <bruno@clisp.org>
38322
38323         * modules/argp (Depends-on): Add sleep.
38324
38325 2007-05-01  Bruno Haible  <bruno@clisp.org>
38326
38327         * modules/sleep-tests: New file.
38328         * tests/test-sleep.c: New file.
38329
38330         * modules/sleep: New file.
38331         * lib/sleep.c: New file.
38332         * m4/sleep.m4: New file.
38333         * lib/unistd_.h (sleep): New declaration.
38334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
38335         HAVE_SLEEP.
38336         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
38337         * doc/functions/sleep.texi: Document the sleep module.
38338
38339 2007-05-01  Bruno Haible  <bruno@clisp.org>
38340
38341         * lib/sigprocmask.h: Remove file.
38342         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
38343         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
38344         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
38345         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
38346         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
38347         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
38348         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
38349         HAVE_SIGSET_T as a shell variable.
38350         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
38351         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
38352         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
38353         (Depends-on): Add signal. Remove verify.
38354         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
38355         (Include): Mention <signal.h> instead of sigprocmask.h.
38356         * NEWS: Mention the change.
38357         * lib/fatal-signal.c: Don't include sigprocmask.h.
38358
38359 2007-05-01  Bruno Haible  <bruno@clisp.org>
38360
38361         * modules/signal: New file.
38362         * lib/signal_.h: New file.
38363         * m4/signal_h.m4: New file.
38364
38365 2007-05-01  Bruno Haible  <bruno@clisp.org>
38366
38367         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
38368         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
38369         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
38370         HAVE_WCTYPE_CTMP_BUG into wctype.h.
38371
38372 2007-05-01  Bruno Haible  <bruno@clisp.org>
38373
38374         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
38375         configure time.
38376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
38377         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
38378         * modules/sys_stat (Makefile.am): Substitute their values into
38379         sys/stat.h.
38380
38381 2007-05-01  Bruno Haible  <bruno@clisp.org>
38382
38383         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
38384         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
38385         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
38386
38387 2007-05-01  Bruno Haible  <bruno@clisp.org>
38388
38389         * doc/header/assert.texi: Undo last change: don't mention the gnulib
38390         'assert' module here.
38391
38392 2007-05-01  Bruno Haible  <bruno@clisp.org>
38393
38394         * doc/functions/*.texi: New files.
38395         * doc/functions/google-ranking.txt: New file.
38396         * doc/gnulib.texi (Function Substitutes): New chapter.
38397         (ctime, inet_ntoa): Remove sections.
38398         * doc/ctime.texi: Remove file.
38399         * doc/inet_ntoa.texi: Remove file.
38400         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
38401         dependencies.
38402         (%.info): New rule, specifying a --reference-limit.
38403
38404 2007-05-01  Bruno Haible  <bruno@clisp.org>
38405
38406         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
38407
38408 2007-05-01  Bruno Haible  <bruno@clisp.org>
38409
38410         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
38411         the portability of 'mkdir' to mingw systems.
38412
38413 2007-05-01  Bruno Haible  <bruno@clisp.org>
38414
38415         * doc/headers/google-ranking.txt: New file.
38416
38417 2007-04-30  Eric Blake  <ebb9@byu.net>
38418
38419         Prefer fseeko to fseek.
38420         * modules/getpass (Depends-on): Add fseeko.
38421         * lib/getpass.c (getpass): Use fseeko, not fseek.
38422
38423 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
38424
38425         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
38426         assumes the sorting is stable, while most qsort implementations
38427         are not.  Use argument addresses to ensure they never compare as
38428         equal.
38429
38430         * tests/test-argp-2.sh (usage-indent test): Fix output
38431         (func_compare): Restore diff options
38432         * tests/test-argp.c: Restore #include "progname.h"
38433
38434 2007-04-29  Bruno Haible  <bruno@clisp.org>
38435
38436         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
38437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38438         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
38439         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38440         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
38441         (configure.ac): Define CHECK_SNPRINTF_POSIX.
38442         (TESTS, check_PROGRAMS): Add test-snprintf.
38443         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
38444         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
38445         (TESTS, check_PROGRAMS): Add test-vsnprintf.
38446         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
38447         assertions that fail on HP-UX, OSF/1, or IRIX.
38448         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
38449
38450 2007-04-29  Bruno Haible  <bruno@clisp.org>
38451
38452         * MODULES.html.sh (posix_functions): Remove 'contents'.
38453
38454 2007-04-29  Karl Berry  <karl@gnu.org>
38455
38456         * config/srclist.txt (gendocs_template_min): new entry.
38457
38458 2007-04-29  Bruno Haible  <bruno@clisp.org>
38459
38460         Work around fpurge bug on BSD systems.
38461         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
38462         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
38463         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
38464         fpurge to rpl_fpurge if the system already has this function.
38465         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
38466         the case where the system already has this function. Correct invariants
38467         on BSD systems.
38468         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
38469         BSD systems.
38470
38471 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38472
38473         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
38474         proposed by Sven Verdoolaege.
38475
38476         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
38477         options.
38478         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
38479         (usage and help tests): Update
38480
38481 2007-04-29  Bruno Haible  <bruno@clisp.org>
38482
38483         * tests/test-fflush.c (main): Use a file of size 17, not 10.
38484         Print more information in case of failure. Disable a test on BeOS.
38485
38486 2007-04-29  Bruno Haible  <bruno@clisp.org>
38487
38488         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
38489         This helps debugging on systems on which no gdb is available.
38490
38491 2007-04-29  Bruno Haible  <bruno@clisp.org>
38492
38493         * lib/freading.h: Improve comments.
38494         * lib/fwriting.h: Likewise.
38495         * tests/test-freading.c (main): Don't check freading immediately after
38496         repositioning. Needed for glibc.
38497
38498 2007-04-29  Bruno Haible  <bruno@clisp.org>
38499
38500         * lib/freading.c (freading): Trivial simplification.
38501
38502 2007-04-28  Bruno Haible  <bruno@clisp.org>
38503
38504         * tests/test-fwriting.c (main): Also test the interaction between
38505         fflush and fwriting.
38506         * modules/fwriting-tests (Depends-on): Add fflush.
38507
38508         * tests/test-freading.c (main): Also test the interaction between
38509         fflush and freading.
38510         * modules/freading-tests (Depends-on): Add fflush.
38511
38512 2007-04-28  Bruno Haible  <bruno@clisp.org>
38513
38514         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
38515         fseeko and ftello.
38516         Suggested by Eric Blake.
38517
38518 2007-04-28  Jim Meyering  <jim@meyering.net>
38519
38520         Avoid false-negative in gl_STDINT_H's C99 conformance test.
38521         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
38522         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
38523
38524 2007-04-27  Eric Blake  <ebb9@byu.net>
38525
38526         * doc/headers/assert.texi (assert.h): Document assert module use.
38527
38528 2007-04-27  Bruno Haible  <bruno@clisp.org>
38529
38530         * doc/headers/*.texi: New files.
38531         * doc/gnulib.texi (Header File Substitutes): New chapter.
38532         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38533         dependencies.
38534         (standards.info ,standards.html, standards.dvi): Update dependencies.
38535         (mostlyclean, clean): New targets.
38536
38537 2007-04-27  Bruno Haible  <bruno@clisp.org>
38538
38539         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38540         * modules/sysexits (Files, Makefile.am): Update.
38541
38542         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38543         * modules/sys_socket (Files, Makefile.am): Update.
38544
38545         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38546         * modules/sys_stat (Files, Makefile.am): Update.
38547
38548 2007-04-27  Eric Blake  <ebb9@byu.net>
38549
38550         * lib/freading.h: Improve comments.
38551         * lib/fwriting.h: Likewise.
38552         * lib/fflush.c: Likewise.
38553
38554         Fix closein for mingw.
38555         * modules/closein-tests: Add tests for closein.
38556         * tests/test-closein.c: New file.
38557         * tests/test-closein.sh: Likewise.
38558         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38559         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38560
38561 2007-04-27  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38564         version is < 6.
38565         * lib/math_.h [__DECC]: Likewise.
38566         * lib/stdio_.h [__DECC]: Likewise.
38567         * lib/stdlib_.h [__DECC]: Likewise.
38568         * lib/string_.h [__DECC]: Likewise.
38569         * lib/time_.h [__DECC]: Likewise.
38570         * lib/wchar_.h [__DECC]: Likewise.
38571         * lib/wctype_.h [__DECC]: Likewise.
38572
38573 2007-04-27  Bruno Haible  <bruno@clisp.org>
38574
38575         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38576
38577 2007-04-27  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/fflush.c: Add comments.
38580         * modules/fpurge-tests (Depends-on): Add fflush.
38581         * modules/freadable-tests (Depends-on): Likewise.
38582         * modules/fwritable-tests (Depends-on): Likewise.
38583
38584 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38585
38586         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38587         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38588         Report by Bruno Haible <bruno@clisp.org>.
38589
38590 2007-04-26  Eric Blake  <ebb9@byu.net>
38591
38592         Fix fflush on mingw.
38593         * modules/fflush (Depends-on): Add freading.
38594         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38595         but unread data.
38596
38597 2007-04-26  Eric Blake  <ebb9@byu.net>
38598         and Bruno Haible  <bruno@clisp.org>
38599
38600         Implement freading and fwriting.
38601         * lib/freading.c: New file.
38602         * lib/freading.h: Likewise.
38603         * m4/freading.m4: Likewise.
38604         * modules/freading: Likewise.
38605         * modules/freading-tests: Likewise.
38606         * tests/test-freading.c: Likewise.
38607         * lib/fwriting.c: New file.
38608         * lib/fwriting.h: Likewise.
38609         * m4/fwriting.m4: Likewise.
38610         * modules/fwriting: Likewise.
38611         * modules/fwriting-tests: Likewise.
38612         * tests/test-fwriting.c: Likewise.
38613         * MODULES.html.sh (File stream based Input/Output): Mention them.
38614
38615 2007-04-26  Bruno Haible  <bruno@clisp.org>
38616
38617         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38618         'long' when we assume it.
38619         Suggested by Eric Blake.
38620
38621 2007-04-26  Bruno Haible  <bruno@clisp.org>
38622
38623         Ensure fseeko, ftello are declared on glibc systems.
38624         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38625         * modules/fseeko (configure.ac-early): Likewise.
38626         * modules/ftello (configure.ac-early): Likewise.
38627         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38628         AC_FUNC_FSEEKO for this.
38629         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38630         (gl_CHECK_FSEEKO): Remove macro.
38631
38632 2007-04-26  Bruno Haible  <bruno@clisp.org>
38633
38634         * tests/test-fflush.c (main): Also check the ftell result after
38635         fflush and fseek/fseeko.
38636         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38637         file descriptor position cache in the stream.
38638         * lib/fseeko.c (rpl_fseeko): Likewise.
38639
38640 2007-04-26  Bruno Haible  <bruno@clisp.org>
38641
38642         * modules/fflush-tests (Depends-on): Add fseeko.
38643
38644 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38645             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38646
38647         * lib/argz_.h: ensure error_t definition is obtained in same
38648         mechanism system argz.h would have.
38649         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38650         argz facilities are known bad.  Err on the side of caution if
38651         cross-compiling.
38652
38653 2007-04-25  Eric Blake  <ebb9@byu.net>
38654
38655         * lib/fpurge.c (includes): Use stdlib.h for free.
38656         * tests/test-fflush.c (main): Also test fflush-fseeko.
38657
38658 2007-04-25  Bruno Haible  <bruno@clisp.org>
38659
38660         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38661         * lib/fseeko.c: New file.
38662         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38663         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38664         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38665         gl_FUNC_FSEEKO.
38666         (gl_FUNC_FSEEKO): Invoke it.
38667         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38668         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38669         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38670
38671 2007-04-25  Bruno Haible  <bruno@clisp.org>
38672
38673         * modules/fflush (Depends-on): Add ftello.
38674
38675 2007-04-25  Bruno Haible  <bruno@clisp.org>
38676
38677         * modules/ftello-tests: New file.
38678         * tests/test-ftello.c: New file.
38679
38680         * modules/ftello: New file.
38681         * m4/ftello.m4: New file.
38682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38683         HAVE_FTELLO.
38684         * lib/stdio_.h (ftello): New declaration.
38685         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38686         HAVE_FTELLO.
38687
38688 2007-04-25  Bruno Haible  <bruno@clisp.org>
38689
38690         * modules/fseeko-tests: New file.
38691         * tests/test-fseeko.c: New file.
38692
38693         * modules/fseeko: New file.
38694         * m4/fseeko.m4: New file.
38695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38696         HAVE_FSEEKO.
38697         * lib/stdio_.h (fseeko): New declaration.
38698         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38699         HAVE_FSEEKO.
38700
38701 2007-04-25  Bruno Haible  <bruno@clisp.org>
38702
38703         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38704
38705 2007-04-25  Bruno Haible  <bruno@clisp.org>
38706
38707         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38708         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38709         * tests/test-unistd.c: Likewise.
38710         * tests/test-fcntl.c: Likewise.
38711
38712 2007-04-23  Eric Blake  <ebb9@byu.net>
38713
38714         * lib/fflush.c: Fix missing include.
38715         Reported by Bruno Haible.
38716
38717 2007-04-23  Bruno Haible  <bruno@clisp.org>
38718
38719         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
38720         Reported by Eric Blake.
38721
38722 2007-04-23  Bruno Haible  <bruno@clisp.org>
38723
38724         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
38725
38726 2007-04-23  Bruno Haible  <bruno@clisp.org>
38727
38728         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
38729
38730 2007-04-23  Bruno Haible  <bruno@clisp.org>
38731
38732         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
38733         Needed on HP-UX 11.
38734
38735 2007-04-16  Eric Blake  <ebb9@byu.net>
38736
38737         Make fflush rely on fpurge.
38738         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
38739         open coding all variants.
38740         * modules/fflush (Depends-on): Add fpurge and unistd.
38741         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
38742         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
38743
38744         Fix --with-tests compilation on cygwin.
38745         * modules/argmatch-tests (Makefile.am): List gnulib library first
38746         in LDADD.
38747         * modules/argp-tests (Makefile.am): Likewise.
38748         * modules/array-list-tests (Makefile.am): Likewise.
38749         * modules/array-oset-tests (Makefile.am): Likewise.
38750         * modules/avltree-list-tests (Makefile.am): Likewise.
38751         * modules/avltree-oset-tests (Makefile.am): Likewise.
38752         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38753         * modules/carray-list-tests (Makefile.am): Likewise.
38754         * modules/dirname-tests (Makefile.am): Likewise.
38755         * modules/frexp-tests (Makefile.am): Likewise.
38756         * modules/isnanl-tests (Makefile.am): Likewise.
38757         * modules/linked-list-tests (Makefile.am): Likewise.
38758         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38759         * modules/lock-tests (Makefile.am): Likewise.
38760         * modules/rbtree-list-tests (Makefile.am): Likewise.
38761         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38762         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38763         * modules/tls-tests (Makefile.am): Likewise.
38764         * modules/tsearch-tests (Makefile.am): Likewise.
38765         * modules/xvasprintf-tests (Makefile.am): Likewise.
38766
38767         Fix fpurge for cygwin.
38768         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
38769         value.
38770         * modules/fpurge-tests (Depends-on): Clean up trash.
38771
38772 2007-04-16  Simon Josefsson  <simon@josefsson.org>
38773
38774         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
38775
38776         * m4/autobuild.m4: Re-indent.
38777
38778 2007-04-13  Bruno Haible  <bruno@clisp.org>
38779
38780         * modules/fpurge-tests: New file.
38781         * tests/test-fpurge.c: New file.
38782
38783         * modules/fpurge: New file.
38784         * lib/fpurge.h: New file.
38785         * lib/fpurge.c: New file.
38786         * m4/fpurge.m4: New file.
38787
38788 2007-04-13  Bruno Haible  <bruno@clisp.org>
38789
38790         * modules/fbufmode-tests: New file.
38791         * tests/test-fbufmode.c: New file.
38792
38793         * modules/fbufmode: New file.
38794         * lib/fbufmode.h: New file.
38795         * lib/fbufmode.c: New file.
38796         * m4/fbufmode.m4: New file.
38797
38798 2007-04-13  Bruno Haible  <bruno@clisp.org>
38799
38800         * modules/fwritable-tests: New file.
38801         * tests/test-fwritable.c: New file.
38802
38803         * modules/fwritable: New file.
38804         * lib/fwritable.h: New file.
38805         * lib/fwritable.c: New file.
38806         * m4/fwritable.m4: New file.
38807
38808 2007-04-13  Bruno Haible  <bruno@clisp.org>
38809
38810         * modules/freadable-tests: New file.
38811         * tests/test-freadable.c: New file.
38812
38813         * modules/freadable: New file.
38814         * lib/freadable.h: New file.
38815         * lib/freadable.c: New file.
38816         * m4/freadable.m4: New file.
38817
38818 2007-04-13  Bruno Haible  <bruno@clisp.org>
38819
38820         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
38821         MOSTLYCLEANFILES.
38822
38823 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38824
38825         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
38826         gzip bootstrap.conf to avoid dragging in i18n machinery.
38827         (gnulib_tool_option): Use it.
38828
38829 2007-04-13  Bruno Haible  <bruno@clisp.org>
38830
38831         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
38832         %F directives.
38833         * tests/test-vasprintf-posix.c (test_function): Likewise.
38834         * tests/test-snprintf-posix.h (test_function): Likewise.
38835         * tests/test-sprintf-posix.h (test_function): Likewise.
38836         * tests/test-fprintf-posix.h (test_function): Likewise.
38837         * tests/test-printf-posix.h (test_function): Likewise.
38838         * tests/test-fprintf-posix.out: Likewise.
38839
38840 2007-04-13  Bruno Haible  <bruno@clisp.org>
38841
38842         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
38843         * modules/tls-tests (configure.ac): Likewise.
38844         Reported by Arto C. Nirkko <anirkko@insel.ch>.
38845
38846 2007-04-13  Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/tls.c (glthread_tls_get): Fix return type.
38849         Patch by Arto C. Nirkko <anirkko@insel.ch>.
38850
38851 2007-04-12  Eric Blake  <ebb9@byu.net>
38852
38853         * modules/gettime (Depends-on): Remove gettime.
38854         Reported by Dmitry V. Levin.
38855
38856 2007-04-12  Bruno Haible  <bruno@clisp.org>
38857
38858         * modules/fflush (Include): Mention <stdio.h>.
38859         * modules/strtoimax (Include): Mention <inttypes.h>.
38860         * modules/strtoumax (Include): Likewise.
38861
38862 2007-04-12  Eric Blake  <ebb9@byu.net>
38863
38864         * .cvsignore: New file.
38865         * .gitignore: Likewise.
38866
38867 2007-04-12  Bruno Haible  <bruno@clisp.org>
38868
38869         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
38870         not before, since $(LDADD) often contains libgnu.a.
38871         * modules/striconv-tests (test_striconv_LDADD): Likewise.
38872         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
38873         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
38874         Needed on Cygwin.
38875
38876 2007-04-12  Eric Blake  <ebb9@byu.net>
38877
38878         Work around glibc's failure to flush stdin on fclose.
38879         * lib/closein.c (close_stdin): Flush stdin before closing.
38880
38881         Work around glibc's failure to reset seekable stdin on exit.
38882         * modules/closein: New module.
38883         * lib/closein.c: New file.
38884         * lib/closein.h: Likewise.
38885         * m4/closein.m4: Likewise.
38886         * MODULES.html.sh (File stream based Input/Output): Document it.
38887
38888 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38889
38890         * gnulib-tool: Rename generated 'autobuild' script to
38891         'do-autobuild' in --create-megatestdir output.
38892
38893         * doc/gnulib.texi (Build robot for gnulib): Fix.
38894
38895 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38896
38897         * modules/sysexits (Depends-on): Add absolute-header.
38898
38899 2007-04-12  Eric Blake  <ebb9@byu.net>
38900
38901         No need to preserve errno on success.
38902         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
38903         Reported by Bruno Haible.
38904
38905 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38906
38907         * MODULES.html.sh (Support for maintaining and releasing
38908         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
38909
38910 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38911
38912         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
38913
38914 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38915
38916         * modules/autobuild: New module.
38917
38918         * m4/autobuild.m4: New file.
38919
38920 2007-04-11  Bruno Haible  <bruno@clisp.org>
38921
38922         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
38923         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
38924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
38925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
38926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38927         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38928         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38930         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38931         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38932         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
38933         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38934         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38935         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
38936         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38937         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38938         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
38939         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38940         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38941         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
38942         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38943         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
38945         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38946         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38947         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
38948         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38949         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38950         Reported by Eric Blake.
38951
38952 2007-04-11  Bruno Haible  <bruno@clisp.org>
38953
38954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
38955
38956 2007-04-10  Bruno Haible  <bruno@clisp.org>
38957
38958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
38959         for NaN and Infinity. Needed on FreeBSD 6.1.
38960         * tests/test-vasnprintf-posix.c (test_function): Undo last change
38961         regarding results for "%010a" of Infinity and NaN.
38962         * tests/test-vasprintf-posix.c (test_function): Likewise.
38963         * tests/test-snprintf-posix.h (test_function): Likewise.
38964         * tests/test-sprintf-posix.h (test_function): Likewise.
38965         * tests/test-fprintf-posix.h (test_function): Likewise.
38966         * tests/test-printf-posix.h (test_function): Likewise.
38967         * tests/test-fprintf-posix.out: Likewise.
38968
38969 2007-04-10  Bruno Haible  <bruno@clisp.org>
38970
38971         * modules/locale-tests: New file.
38972         * tests/test-locale.c: New file.
38973
38974         * modules/locale: New file.
38975         * lib/locale_.h: New file.
38976         * m4/locale_h.m4: New file.
38977
38978 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
38979             Bruno Haible  <bruno@clisp.org>
38980
38981         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
38982         be determined, test for availability of the copysignf, copysign,
38983         copysignl functions.
38984         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
38985         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
38986         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
38987
38988 2007-04-09  Eric Blake  <ebb9@byu.net>
38989
38990         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
38991         * modules/stdio (Makefile.am): Support fflush.
38992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38993         * modules/fflush: New file.
38994         * lib/fflush.c: Likewise.
38995         * m4/fflush.m4: Likewise.
38996         * modules/fflush-tests: New test.
38997         * tests/test-fflush.c: Likewise.
38998         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
38999
39000 2007-04-06  Bruno Haible  <bruno@clisp.org>
39001
39002         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
39003         (VASNPRINTF): Use signbit for faster determination whether to print a
39004         minus sign.
39005         * modules/vasnprintf (Files): Remove lib/float+.h.
39006         * modules/fprintf-posix (Depends-on): Add signbit.
39007         * modules/snprintf-posix (Depends-on): Likewise.
39008         * modules/sprintf-posix (Depends-on): Likewise.
39009         * modules/vasnprintf-posix (Depends-on): Likewise.
39010         * modules/vasprintf-posix (Depends-on): Likewise.
39011         * modules/vfprintf-posix (Depends-on): Likewise.
39012         * modules/vsnprintf-posix (Depends-on): Likewise.
39013         * modules/vsprintf-posix (Depends-on): Likewise.
39014
39015 2007-04-06  Bruno Haible  <bruno@clisp.org>
39016
39017         * tests/test-frexp.c (main): Test also the sign bit of zero results.
39018         * tests/test-frexpl.c (main): Likewise.
39019         * tests/test-ldexpl.c (main): Likewise.
39020         * modules/frexp-tests (Depends-on): Add signbit.
39021         * modules/frexpl-tests (Depdends-on): Likewise.
39022         * modules/ldexpl-tests (Depdends-on): Likewise.
39023
39024 2007-04-06  Bruno Haible  <bruno@clisp.org>
39025
39026         * modules/signbit-tests: New file.
39027         * tests/test-signbit.c: New file.
39028
39029         * modules/signbit: New file.
39030         * lib/signbitf.c: New file.
39031         * lib/signbitd.c: New file.
39032         * lib/signbitl.c: New file.
39033         * m4/signbit.m4: New file.
39034         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
39035         (signbit): New macro.
39036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
39037         REPLACE_SIGNBIT.
39038         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
39039         REPLACE_FREXPL into math.h.
39040
39041 2007-04-06  Bruno Haible  <bruno@clisp.org>
39042
39043         * modules/isnanf-nolibm-tests: New file.
39044         * tests/test-isnanf.c: New file.
39045
39046         * modules/isnanf-nolibm: New file.
39047         * lib/isnanf.h: New file.
39048         * lib/isnanf.c: New file.
39049         * lib/isnan.c: Consider the USE_FLOAT macro.
39050         * m4/isnanf.m4: New file.
39051
39052 2007-04-06  Bruno Haible  <bruno@clisp.org>
39053
39054         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
39055         (Link): New section.
39056
39057         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
39058
39059 2007-04-06  Bruno Haible  <bruno@clisp.org>
39060
39061         Assume the 'long double' type.
39062         * m4/longdouble.m4: Remove file.
39063         * config/srclist.txt: Don't mention longdouble.m4.
39064         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
39065         * lib/float+.h: Likewise.
39066         * lib/frexp.c: Likewise.
39067         * lib/printf-args.h: Likewise.
39068         * lib/printf-args.c: Likewise.
39069         * lib/printf-frexp.c: Likewise.
39070         * lib/printf-parse.c: Likewise.
39071         * lib/vasnprintf.c: Likewise.
39072         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
39073         * m4/intl.m4: Likewise.
39074         * m4/isnanl.m4: Likewise.
39075         * m4/printf.m4: Likewise.
39076         * m4/printf-frexpl.m4: Likewise.
39077         * m4/vasnprintf.m4: Likewise.
39078         * modules/allocsa (Files): Remove m4/longdouble.m4.
39079         * modules/gettext (Files): Likewise.
39080         * modules/relocatable-prog-wrapper (Files): Likewise.
39081         * modules/vasnprintf (Files): Likewise.
39082         * modules/isnanl (Files): Likewise.
39083         (Include): Simplify.
39084         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
39085         (Include): Simplify.
39086         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
39087         (Include): Simplify.
39088         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
39089         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39090         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
39091         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39092         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39093         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39094         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
39095         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39096         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39097         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39098         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
39099         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39100         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
39101         * tests/test-isnanl.c: Likewise.
39102         * tests/test-snprintf-posix.h: Likewise.
39103         * tests/test-sprintf-posix.h: Likewise.
39104         * tests/test-vasnprintf-posix.c: Likewise.
39105         * tests/test-vasnprintf-posix2.c: Likewise.
39106         * tests/test-vasprintf-posix.c: Likewise.
39107
39108 2007-04-06  Bruno Haible  <bruno@clisp.org>
39109
39110         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
39111         * lib/math_.h [__DECC]: Include the overridden include file through
39112         #include_next, outside the double-inclusion guard.
39113         * lib/stdio_.h [__DECC]: Likewise.
39114         * lib/stdlib_.h [__DECC]: Likewise.
39115         * lib/string_.h [__DECC]: Likewise.
39116         * lib/time_.h [__DECC]: Likewise.
39117         * lib/wchar_.h [__DECC]: Likewise.
39118         * lib/wctype_.h [__DECC]: Likewise.
39119         * lib/inttypes_.h [__DECC]: Likewise.
39120         Reported by Albert Chin <china@thewrittenword.com> in
39121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
39122
39123 2007-04-04  Eric Blake  <ebb9@byu.net>
39124
39125         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
39126         1.5.x.
39127
39128 2007-04-04  Bruno Haible  <bruno@clisp.org>
39129
39130         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
39131         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
39132
39133 2007-04-04  Bruno Haible  <bruno@clisp.org>
39134
39135         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
39136         results for "%010a" of Infinity and NaN.
39137         * tests/test-vasprintf-posix.c (test_function): Likewise.
39138         * tests/test-snprintf-posix.h (test_function): Likewise.
39139         * tests/test-sprintf-posix.h (test_function): Likewise.
39140         * tests/test-fprintf-posix.h (test_function): Remove these tests.
39141         * tests/test-printf-posix.h (test_function): Likewise.
39142         * tests/test-fprintf-posix.out: Update.
39143         Needed for FreeBSD 6.1.
39144
39145 2007-04-04  Bruno Haible  <bruno@clisp.org>
39146
39147         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
39148         directly used by the gnulib modules nor by gnulib-tool.
39149
39150 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39151
39152         * DEPENDENCIES: Give overall description of version dependency
39153         desirability.  Use more-typical names for apps.
39154         Add shell, coreutils, diffutils, grep, tar, gzip.
39155
39156 2007-04-04  Simon Josefsson  <simon@josefsson.org>
39157
39158         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
39159
39160 2007-04-04  Karl Berry  <karl@gnu.org>
39161
39162         * MODULES.html.sh (func_module): missing '.
39163
39164 2007-04-03  Bruno Haible  <bruno@clisp.org>
39165
39166         * modules/argmatch-tests (Makefile.am): New variable
39167         test_argmatch_LDADD.
39168         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
39169         * modules/array-list-tests (Makefile.am): New variable
39170         test_array_list_LDADD.
39171         * modules/array-oset-tests (Makefile.am): New variable
39172         test_array_oset_LDADD.
39173         * modules/avltree-list-tests (Makefile.am): New variable
39174         test_avltree_list_LDADD.
39175         * modules/avltree-oset-tests (Makefile.am): New variable
39176         test_avltree_oset_LDADD.
39177         * modules/avltreehash-list-tests (Makefile.am): New variable
39178         test_avltreehash_list_LDADD.
39179         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
39180         test_canonicalize_lgpl_LDADD.
39181         * modules/carray-list-tests (Makefile.am): New variable
39182         test_carray_list_LDADD.
39183         * modules/dirname-tests (Makefile.am): New variable
39184         test_dirname_LDADD.
39185         * modules/linked-list-tests (Makefile.am): New variable
39186         test_linked_list_LDADD.
39187         * modules/linkedhash-list-tests (Makefile.am): New variable
39188         test_linkedhash_list_LDADD.
39189         * modules/rbtree-list-tests (Makefile.am): New variable
39190         test_rbtree_list_LDADD.
39191         * modules/rbtree-oset-tests (Makefile.am): New variable
39192         test_rbtree_oset_LDADD.
39193         * modules/rbtreehash-list-tests (Makefile.am): New variable
39194         test_rbtreehash_list_LDADD.
39195         * modules/xvasprintf-tests (Makefile.am): New variable
39196         test_xvasprintf_LDADD.
39197         Reported by Eric Blake.
39198
39199 2007-04-03  Eric Blake  <ebb9@byu.net>
39200
39201         * DEPENDENCIES: Weaken m4 requirements.
39202
39203 2007-04-03  Bruno Haible  <bruno@clisp.org>
39204
39205         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
39206         * modules/isnanl-tests (configure.ac): Likewise.
39207
39208 2007-04-03  Ben Pfaff  <blp@gnu.org>
39209
39210         * modules/iconv_open: Add $(srcdir)/ to source directory
39211         references in Makefile fragments that call gperf, to fix VPATH
39212         builds.
39213
39214 2007-04-03  Bruno Haible  <bruno@clisp.org>
39215
39216         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
39217         * lib/ldexpl.c: Undo last change.
39218
39219 2007-04-03  Bruno Haible  <bruno@clisp.org>
39220
39221         * modules/printf-frexpl (Depends-on): Undo last change.
39222         (Files): Add m4/ldexpl.m4.
39223
39224 2007-04-03  Bruno Haible  <bruno@clisp.org>
39225
39226         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
39227         * modules/isnanl (Link): New section.
39228
39229         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
39230         * modules/frexp (Link): New section.
39231
39232         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
39233         * modules/frexpl (Link): New section.
39234
39235         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
39236         * modules/ldexpl (Link): New section.
39237
39238 2007-04-03  Bruno Haible  <bruno@clisp.org>
39239
39240         * modules/TEMPLATE-EXTENDED: New file.
39241         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
39242
39243 2007-04-03  Bruno Haible  <bruno@clisp.org>
39244
39245         * DEPENDENCIES: New file.
39246         Suggested by Simon Josefsson.
39247
39248 2007-04-03  Bruno Haible  <bruno@clisp.org>
39249
39250         * doc/gnulib.texi: Escape @.
39251
39252 2007-04-03  James Youngman  <jay@gnu.org>
39253         and Paul Eggert  <eggert@cs.ucla.edu>
39254
39255         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
39256         birthtime on all systems that have birthtime, not just those which
39257         use st_birthtimensec rather than st_birthtim.  Putting zero in
39258         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
39259         that the birth time is not available for files on an NFS mount.
39260
39261 2007-04-03  Simon Josefsson  <simon@josefsson.org>
39262
39263         * modules/memxor: Move back from crypto/, suggested by Bruno.
39264         * modules/crypto/hmac-sha1: Fix memxor dependency.
39265
39266         * modules/crypto/gc: Moved from ../.
39267
39268 2007-04-02  Eric Blake  <ebb9@byu.net>
39269
39270         * lib/ldexpl.c (includes): Avoid libm.
39271
39272         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
39273
39274 2007-04-02  Bruno Haible  <bruno@clisp.org>
39275
39276         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
39277         on IRIX.
39278
39279 2007-04-02  Bruno Haible  <bruno@clisp.org>
39280
39281         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
39282         x86 or x86_64 platforms running MacOS X.
39283         Reported by Ryan Schmidt <@ryandesign.com>.
39284
39285 2007-04-02  Bruno Haible  <bruno@clisp.org>
39286
39287         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
39288         i386.
39289
39290 2007-04-01  Simon Josefsson  <simon@josefsson.org>
39291
39292         * modules/crypto/arcfour: Moved from ../.
39293         * modules/crypto/arcfour-tests: Moved from ../.
39294         * modules/crypto/arctwo: Moved from ../.
39295         * modules/crypto/arctwo-tests: Moved from ../.
39296         * modules/crypto/des: Moved from ../.
39297         * modules/crypto/des-tests: Moved from ../.
39298         * modules/crypto/gc-arcfour: Moved from ../.
39299         * modules/crypto/gc-arcfour-tests: Moved from ../.
39300         * modules/crypto/gc-arctwo: Moved from ../.
39301         * modules/crypto/gc-arctwo-tests: Moved from ../.
39302         * modules/crypto/gc-des: Moved from ../.
39303         * modules/crypto/gc-des-tests: Moved from ../.
39304         * modules/crypto/gc-hmac-md5: Moved from ../.
39305         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
39306         * modules/crypto/gc-hmac-sha1: Moved from ../.
39307         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
39308         * modules/crypto/gc-md2: Moved from ../.
39309         * modules/crypto/gc-md2-tests: Moved from ../.
39310         * modules/crypto/gc-md4: Moved from ../.
39311         * modules/crypto/gc-md4-tests: Moved from ../.
39312         * modules/crypto/gc-md5: Moved from ../.
39313         * modules/crypto/gc-md5-tests: Moved from ../.
39314         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
39315         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
39316         * modules/crypto/gc-random: Moved from ../.
39317         * modules/crypto/gc-rijndael: Moved from ../.
39318         * modules/crypto/gc-rijndael-tests: Moved from ../.
39319         * modules/crypto/gc-sha1: Moved from ../.
39320         * modules/crypto/gc-sha1-tests: Moved from ../.
39321         * modules/crypto/gc-tests: Moved from ../.
39322         * modules/crypto/hmac-md5: Moved from ../.
39323         * modules/crypto/hmac-md5-tests: Moved from ../.
39324         * modules/crypto/hmac-sha1: Moved from ../.
39325         * modules/crypto/hmac-sha1-tests: Moved from ../.
39326         * modules/crypto/md2: Moved from ../.
39327         * modules/crypto/md2-tests: Moved from ../.
39328         * modules/crypto/md4: Moved from ../.
39329         * modules/crypto/md4-tests: Moved from ../.
39330         * modules/crypto/md5: Moved from ../.
39331         * modules/crypto/md5-tests: Moved from ../.
39332         * modules/crypto/memxor: Moved from ../.
39333         * modules/crypto/rijndael: Moved from ../.
39334         * modules/crypto/rijndael-tests: Moved from ../.
39335         * modules/crypto/sha1: Moved from ../.
39336
39337 2007-03-30  James Youngman  <jay@gnu.org>
39338
39339         * tests/test-stat-time.c (prepare_test): use chmod() rather than
39340         rename() to change the ctime of a file (because ctime is unaffected
39341         by rename on jfs2 on AIX 5.1).
39342         (main): Start by doing cleanup, in case a previous run failed leaving
39343         test files behind.
39344
39345 2007-03-31  Bruno Haible  <bruno@clisp.org>
39346
39347         Support old proprietary implementations of iconv.
39348         * modules/iconv_open: New file.
39349         * lib/iconv_.h: New file.
39350         * m4/iconv_h.m4: New file.
39351         * lib/iconv_open.c: New file.
39352         * lib/iconv_open-aix.gperf: New file.
39353         * lib/iconv_open-hpux.gperf: New file.
39354         * lib/iconv_open-irix.gperf: New file.
39355         * lib/iconv_open-osf.gperf: New file.
39356         * m4/iconv_open.m4: New file.
39357         * modules/linebreak (Depends-on): Add iconv_open.
39358         * modules/striconv (Depends-on): Likewise.
39359         * modules/striconveh (Depends-on): Likewise.
39360         * modules/unicodeio (Depends-on): Likewise.
39361         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
39362         (iconv_t)(-1).
39363         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
39364         conversion if cd is (iconv_t)(-1).
39365         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
39366         is not possible.
39367
39368 2007-03-31  Bruno Haible  <bruno@clisp.org>
39369
39370         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39371         work on Solaris either. Protect also second use of "autodetect_jp".
39372
39373 2007-03-31  Bruno Haible  <bruno@clisp.org>
39374
39375         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
39376         the function is not present.
39377
39378 2007-03-31  Bruno Haible  <bruno@clisp.org>
39379
39380         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
39381         the function is not present.
39382
39383 2007-03-31  Bruno Haible  <bruno@clisp.org>
39384
39385         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
39386         a bug in HP-UX iconv_open().
39387
39388 2007-03-31  Bruno Haible  <bruno@clisp.org>
39389
39390         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
39391         (Mathematics <math.h>): New section, add fpieee.
39392         (Input/output <stdio.h>): Add fseterr.
39393         (Mathematics <math.h>): New section, add printf-frexp.
39394         (Container data structures): Add sublist.
39395         (Core language properties): Add fpucw, inline.
39396         (Functions for greatest-width integer types <inttypes.h>): Add
39397         imaxabs, imaxdiv, inttypes.
39398         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
39399         isnanl-nolibm, ldexp.
39400         (Mathematics <math.h>): New section, add printf-frexpl.
39401         (Support for systems lacking POSIX:2001): Add fprintf-posix,
39402         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
39403         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
39404         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
39405         (Unicode string functions): Add unistr/u*-mbtoucr.
39406         (Java): Add javacomp-script, javaexec-script.
39407         (C#): Add csharpcomp-script, csharpexec-script.
39408         (Support for building libraries and executables): Add havelib,
39409         relocatable-*.
39410         (Support for maintaining and releasing projects): Renamed from
39411         'Support for maintaining and release projects'. Add announce-gen.
39412
39413 2007-03-31  Bruno Haible  <bruno@clisp.org>
39414
39415         * README: Talk primarily about git.
39416         (git and CVS): Renamed from CVS.
39417         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
39418         gnulib is available through git.
39419         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
39420
39421 2007-03-30  Bruno Haible  <bruno@clisp.org>
39422
39423         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
39424         * lib/poll_.h: Likewise.
39425         * lib/stat_.h: Likewise.
39426         * lib/sys_time_.h: Likewise.
39427         * lib/sysexit_.h: Likewise.
39428         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
39429         * lib/stdbool_.h: Likewise.
39430         * lib/byteswap_.h: Add double-inclusion guard.
39431
39432 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
39433
39434         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
39435
39436 2007-03-30  Karl Berry  <karl@gnu.org>
39437
39438         * config/srclist-update: double space after USA in the license
39439         substitution, since that's how it's usually (?) written.
39440
39441 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39442
39443         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
39444         reported by Bruno Haible.
39445
39446 2007-03-29  Bruno Haible  <bruno@clisp.org>
39447
39448         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
39449         a bug in AIX iconv().
39450
39451 2007-03-29  Bruno Haible  <bruno@clisp.org>
39452
39453         * modules/ldexpl-tests: New file.
39454         * tests/test-ldexpl.c: New file.
39455
39456 2007-03-29  Bruno Haible  <bruno@clisp.org>
39457
39458         * lib/ldexpl.c: Include fpucw.h.
39459         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
39460         multiplication.
39461         * modules/ldexpl (Depends-on): Add fpucw.
39462
39463 2007-03-29  Bruno Haible  <bruno@clisp.org>
39464
39465         * modules/ldexpl: New file.
39466         * m4/ldexpl.m4: New file.
39467         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
39468         set.
39469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
39470         REPLACE_LDEXPL.
39471         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
39472         REPLACE_LDEXPL.
39473         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39474         gl_FUNC_LDEXPL_WORKS.
39475         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
39476         * modules/mathl (Files): Remove lib/ldexpl.c.
39477         (Depends-on): Add ldexpl.
39478
39479 2007-03-29  Bruno Haible  <bruno@clisp.org>
39480
39481         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
39482
39483 2007-03-29  Bruno Haible  <bruno@clisp.org>
39484
39485         * tests/test-striconveh.c (main): Don't assume that a direct conversion
39486         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
39487         and possibly also HP-UX.
39488         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39489         work on AIX, IRIX, HP-UX, OSF/1.
39490         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39491         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39492         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39493         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39494         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
39495         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39496
39497 2007-03-29  Bruno Haible  <bruno@clisp.org>
39498
39499         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
39500
39501 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39502
39503         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
39504         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
39505
39506 2007-03-29  Eric Blake  <ebb9@byu.net>
39507
39508         * lib/acl-internal.h: Remove redundant include.
39509         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
39510         Cygwin when a file is locked.
39511
39512 2007-03-29  Bruno Haible  <bruno@clisp.org>
39513
39514         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
39515         file.
39516         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
39517
39518 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39519
39520         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
39521         try to remove a parent directory if the child couldn't be removed
39522         (except for the first rmdir, which could fail because the child
39523         doesn't exist).  Problem reported by Jeff Blaine in
39524         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
39525
39526 2007-03-28  Bruno Haible  <bruno@clisp.org>
39527
39528         * lib/striconveh.c (utf8conv_carefully): New function.
39529         (mem_cd_iconveh_internal): Invoke it.
39530
39531 2007-03-28  Bruno Haible  <bruno@clisp.org>
39532
39533         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39534         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39535         input.
39536         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39537         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39538         unistr/u8-uctomb.
39539
39540 2007-03-28  Bruno Haible  <bruno@clisp.org>
39541
39542         * modules/unistr/u8-mbtoucr: New file.
39543         * lib/unistr/u8-mbtoucr.c: New file.
39544         * modules/unistr/u16-mbtoucr: New file.
39545         * lib/unistr/u16-mbtoucr.c: New file.
39546         * modules/unistr/u16-mbtoucr: New file.
39547         * lib/unistr/u16-mbtoucr.c: New file.
39548         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39549
39550 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39551             Bruno Haible  <bruno@clisp.org>
39552
39553         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39554         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39555         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39556
39557         * m4/stdio_h.m4: Add stubs for vasprintf too.
39558
39559         * modules/stdio: Support vasprintf in sed command.
39560
39561         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39562         vasprintf.h.  Add stdio module indicator.
39563
39564         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39565         vasprintf.h.
39566
39567         * lib/vasprintf.h: File removed.
39568
39569         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39570         * lib/vasprintf.c: Ditto.
39571         * lib/xvasprintf.c: Ditto.
39572         * tests/test-vasprintf-posix.c: Ditto.
39573         * tests/test-vasprintf.c: Ditto.
39574
39575 2007-03-27  Bruno Haible  <bruno@clisp.org>
39576
39577         Make vasnprintf multithread-safe.
39578         * lib/vasnprintf.c (decimal_point_char): New function.
39579         (VASNPRINTF): Use it.
39580         Suggested by Simon Josefsson.
39581
39582 2007-03-27  Eric Blake  <ebb9@byu.net>
39583
39584         Support sub-second birthtime on cygwin.
39585         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39586         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39587         (get_stat_birthtime): Also work with st_birthtim.
39588
39589 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39590
39591         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39592         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39593         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39594         (get_stat_birthtime_ns): Simplify compile-time tests.
39595         (get_stat_birthtime): Change the API to look like
39596         get_stat_mtime etc., except return a negative tv_nsec on error.
39597         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39598         Don't check for "spare" fields.
39599         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39600         or for struct stat.st_birthtime, as these tests aren't used.
39601         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39602
39603 2007-03-27  Bruno Haible  <bruno@clisp.org>
39604
39605         * lib/stat-time.h: Include <sys/stat.h>.
39606
39607 2007-03-27  James Youngman  <jay@gnu.org>
39608
39609         * lib/stat-time.h (get_stat_birthtime): New function for
39610           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39611         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39612           and its variants.
39613         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39614         * modules/stat-time-test: New file.
39615         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39616
39617 2007-03-26  Bruno Haible  <bruno@clisp.org>
39618
39619         Better support of signalling NaNs.
39620         * lib/atanl.c: Include isnanl.h.
39621         (atanl): Perform test for NaN at the beginning of the function and
39622         through a call to isnanl.
39623         * lib/cosl.c: Include isnanl.h.
39624         (cosl): Perform test for NaN at the beginning of the function and
39625         through a call to isnanl.
39626         * lib/ldexpl.c: Include isnanl.h.
39627         (ldexpl): Perform test for NaN through a call to isnanl.
39628         * lib/logl.c: Include isnanl.h.
39629         (logl): Perform test for NaN at the beginning of the function and
39630         through a call to isnanl.
39631         * lib/sinl.c: Include isnanl.h.
39632         (sinl): Perform test for NaN at the beginning of the function and
39633         through a call to isnanl.
39634         * lib/sqrtl.c: Include isnanl.h.
39635         (sqrtl): Perform test for NaN at the beginning of the function and
39636         through a call to isnanl.
39637         * lib/tanl.c: Include isnanl.h.
39638         (tanl): Perform test for NaN at the beginning of the function and
39639         through a call to isnanl.
39640         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39641         * modules/mathl (Depends-on): Add isnanl.
39642
39643 2007-03-26  Eric Blake  <ebb9@byu.net>
39644
39645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39646         regression in logic sense of previous patch.
39647
39648 2007-03-26  Bruno Haible  <bruno@clisp.org>
39649
39650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39651         unportable shell command "if ! ...".
39652         Reported by Ralf Wildenhues.
39653
39654 2007-03-25  Bruno Haible  <bruno@clisp.org>
39655
39656         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39657         <sysexits.h> file, and only add EX_CONFIG.
39658         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39659         absolute file name and whether it is sufficient. Substitute also
39660         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39661         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39662         ABSOLUTE_SYSEXITS_H into sysexits.h.
39663
39664 2007-03-25  Bruno Haible  <bruno@clisp.org>
39665
39666         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39667         hints is NULL.
39668
39669 2007-03-25  Bruno Haible  <bruno@clisp.org>
39670
39671         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39672         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39673
39674 2007-03-25  Bruno Haible  <bruno@clisp.org>
39675
39676         * lib/vasnprintf.c: Include langinfo.h.
39677         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39678         multithread-safe.
39679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39681         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39682         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39683         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39684         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39685         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39686         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39687         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39688         Reported by Simon Josefsson.
39689
39690 2007-03-25  Bruno Haible  <bruno@clisp.org>
39691
39692         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39693         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39694         * modules/vasnprintf (Depends-on): Add stdint.
39695
39696 2007-03-25  Bruno Haible  <bruno@clisp.org>
39697
39698         * modules/fpieee: New file.
39699         * m4/fpieee.m4: New file.
39700         * modules/isnan-nolibm (Depends-on): Add fpieee.
39701         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39702         * modules/isnanl (Depends-on): Add fpieee.
39703
39704 2007-03-25  Bruno Haible  <bruno@clisp.org>
39705
39706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39707
39708 2007-03-25  Bruno Haible  <bruno@clisp.org>
39709
39710         Avoid test failures on IRIX 6.5.
39711         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39712         (main): Use it.
39713         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39714         macros.
39715         (main): Use them.
39716
39717 2007-03-25  Bruno Haible  <bruno@clisp.org>
39718
39719         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
39720         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
39721         exists but doesn't work.
39722         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
39723         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
39724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
39725         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
39726
39727 2007-03-25  Bruno Haible  <bruno@clisp.org>
39728
39729         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
39730         returns inf. Needed on IRIX 6.5.
39731
39732 2007-03-25  Bruno Haible  <bruno@clisp.org>
39733
39734         * tests/test-frexpl.c: Include isnanl-nolibm.h.
39735         (main): Use isnanl instead of x != x idiom.
39736         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
39737
39738         * tests/test-frexp.c: Include isnan.h.
39739         (main): Use isnan instead of x != x idiom.
39740         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
39741
39742 2007-03-25  Bruno Haible  <bruno@clisp.org>
39743
39744         * tests/test-frexp.c (NaN): New function/macro.
39745         (main): Use it instead of 0.0 / 0.0.
39746         * tests/test-isnan.c (NaN): New function/macro.
39747         (main): Use it instead of 0.0 / 0.0.
39748         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
39749         (test_function): Use it instead of 0.0 / 0.0.
39750         * tests/test-vasprintf-posix.c (NaN): New function/macro.
39751         (test_function): Use it instead of 0.0 / 0.0.
39752         * tests/test-snprintf-posix.h (NaN): New function/macro.
39753         (test_function): Use it instead of 0.0 / 0.0.
39754         * tests/test-sprintf-posix.h (NaN): New function/macro.
39755         (test_function): Use it instead of 0.0 / 0.0.
39756         * tests/test-fprintf-posix.h (NaN): New function/macro.
39757         (test_function): Use it instead of 0.0 / 0.0.
39758         * tests/test-printf-posix.h (NaN): New function/macro.
39759         (test_function): Use it instead of 0.0 / 0.0.
39760
39761         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
39762
39763 2007-03-25  Bruno Haible  <bruno@clisp.org>
39764
39765         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
39766
39767 2007-03-25  Bruno Haible  <bruno@clisp.org>
39768
39769         * lib/regexec.c (merge_state_with_log): Make static.
39770
39771 2007-03-25  Bruno Haible  <bruno@clisp.org>
39772
39773         * lib/trigl.c (kernel_rem_pio2): Make static.
39774
39775 2007-03-25  Bruno Haible  <bruno@clisp.org>
39776
39777         * lib/sincosl.c (sincosl_table): Make static.
39778
39779 2007-03-25  Bruno Haible  <bruno@clisp.org>
39780
39781         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
39782         if the compiler does not support C99.
39783
39784 2007-03-25  Bruno Haible  <bruno@clisp.org>
39785
39786         * modules/time (Makefile.am): Ensure all rule action lines start with a
39787         tab.
39788
39789 2007-03-24  Bruno Haible  <bruno@clisp.org>
39790
39791         * modules/tsearch-tests: New file.
39792         * tests/test-tsearch.sh: New file.
39793         * tests/test-tsearch.c: New file, mostly copied from glibc.
39794
39795         * modules/search-tests: New file.
39796         * tests/test-search.c: New file.
39797
39798         * modules/search: New file.
39799         * lib/search_.h: New file, incorporating lib/tsearch.h.
39800         * m4/search_h.m4: New file.
39801         * lib/tsearch.h: Remove file.
39802         * lib/tsearch.c: Include search.h instead of tsearch.h.
39803         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
39804         HAVE_TSEARCH.
39805         * modules/tsearch (Files): Remove lib/tsearch.h.
39806         (Depends-on): Add search.
39807         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
39808         (Include): Change tsearch.h into search.h.
39809
39810 2007-03-24  Bruno Haible  <bruno@clisp.org>
39811
39812         * modules/fpucw: New file.
39813         * lib/fpucw.h: New file.
39814         * lib/frexp.c: Include fpucw.h.
39815         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39816         (FUNC): Use them.
39817         * lib/printf-frexp.c: Include fpucw.h.
39818         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39819         (FUNC): Use them.
39820         * lib/vasnprintf.c: Include fpucw.h.
39821         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
39822         'long double' calculations.
39823         * tests/test-frexpl.c: Include fpucw.h.
39824         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39825         * tests/test-printf-frexpl.c: Include fpucw.h.
39826         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39827         * modules/frexpl (Depends-on): Add fpucw.
39828         * modules/printf-frexpl (Depends-on): Likewise.
39829         * modules/fprintf-posix (Depends-on): Likewise.
39830         * modules/snprintf-posix (Depends-on): Likewise.
39831         * modules/sprintf-posix (Depends-on): Likewise.
39832         * modules/vasnprintf-posix (Depends-on): Likewise.
39833         * modules/vasprintf-posix (Depends-on): Likewise.
39834         * modules/vfprintf-posix (Depends-on): Likewise.
39835         * modules/vsnprintf-posix (Depends-on): Likewise.
39836         * modules/vsprintf-posix (Depends-on): Likewise.
39837         * modules/frexpl-tests (Depends-on): Likewise.
39838         * modules/printf-frexpl-tests (Depends-on): Likewise.
39839
39840 2007-03-24  Bruno Haible  <bruno@clisp.org>
39841
39842         * lib/float+.h: New file.
39843         * lib/isnan.c: Include float+.h.
39844         (SIZE): New macro.
39845         (FUNC): Compare only SIZE bytes of the value.
39846         * lib/vasnprintf.c: Include float+.h.
39847         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
39848         SIZEOF_LDBL or SIZEOF_DBL bytes.
39849         * modules/isnan-nolibm (Files): Add lib/float+.h.
39850         * modules/isnanl-nolibm (Files): Add lib/float+.h.
39851         * modules/isnanl (Files): Add lib/float+.h.
39852         * modules/vasnprintf (Files): Add lib/float+.h.
39853
39854 2007-03-24  Bruno Haible  <bruno@clisp.org>
39855
39856         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
39857         include isnanl-nolibm.h.
39858
39859 2007-03-24  Bruno Haible  <bruno@clisp.org>
39860
39861         * tests/test-read-file.c (main): Don't produce spurious output for
39862         expected situations. Make the test fail if it encountered unexpected
39863         results.
39864
39865 2007-03-24  Bruno Haible  <bruno@clisp.org>
39866
39867         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
39868         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
39869
39870 2007-03-24  Bruno Haible  <bruno@clisp.org>
39871
39872         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
39873
39874 2007-03-24  Bruno Haible  <bruno@clisp.org>
39875
39876         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
39877         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
39878
39879         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
39880         * modules/utf8-ucs4: Turn into a symbolic link to module
39881         unistr/u8-mbtouc.
39882
39883         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
39884         utf8-ucs4-unsafe.
39885         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
39886         unistr/u8-mbtouc-unsafe.
39887
39888         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
39889         * modules/utf16-ucs4: Turn into a symbolic link to module
39890         unistr/u16-mbtouc.
39891
39892         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
39893         utf16-ucs4-unsafe.
39894         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
39895         unistr/u16-mbtouc-unsafe.
39896
39897         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
39898         * modules/ucs4-utf8: Turn into a symbolic link to module
39899         unistr/u8-ubtomb.
39900
39901         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
39902         * modules/ucs4-utf16: Turn into a symbolic link to module
39903         unistr/u16-ubtomb.
39904
39905 2007-03-24  Bruno Haible  <bruno@clisp.org>
39906
39907         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
39908         Enable the function only if HAVE_INLINE.
39909         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
39910         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39911         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
39912         Enable the function only if HAVE_INLINE.
39913         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
39914         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39915         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
39916         Enable the function only if HAVE_INLINE.
39917         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
39918         Enable the function only if HAVE_INLINE.
39919         * modules/utf8-ucs4: Update.
39920         * modules/utf8-ucs4-unsafe: Update.
39921         * modules/utf16-ucs4: Update.
39922         * modules/utf16-ucs4-unsafe: Update.
39923         * modules/ucs4-utf8: Update.
39924         * modules/ucs4-utf16: Update.
39925
39926 2007-03-24  Bruno Haible  <bruno@clisp.org>
39927
39928         * lib/utf8-ucs4.h: Remove file.
39929         * lib/utf8-ucs4-unsafe.h: Remove file.
39930         * lib/utf16-ucs4.h: Remove file.
39931         * lib/utf16-ucs4-unsafe.h: Remove file.
39932         * lib/ucs4-utf8.h: Remove file.
39933         * lib/ucs4-utf16.h: Remove file.
39934         * lib/unistr.h: Include their previous contents.
39935         * m4/utf-ucs4.m4: Remove file.
39936         * m4/ucs4-utf.m4: Remove file.
39937         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
39938         (Depends-on): Add unistr/base.
39939         (configure.ac): Remove gl_UTF_UCS4.
39940         (Makefile.am): Update.
39941         (Include): Change to unistr.h.
39942         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
39943         (Depends-on): Add unistr/base.
39944         (configure.ac): Remove gl_UTF_UCS4.
39945         (Makefile.am): Update.
39946         (Include): Change to unistr.h.
39947         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
39948         (Depends-on): Add unistr/base.
39949         (configure.ac): Remove gl_UTF_UCS4.
39950         (Makefile.am): Update.
39951         (Include): Change to unistr.h.
39952         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
39953         (Depends-on): Add unistr/base.
39954         (configure.ac): Remove gl_UTF_UCS4.
39955         (Makefile.am): Update.
39956         (Include): Change to unistr.h.
39957         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
39958         (Depends-on): Add unistr/base.
39959         (configure.ac): Remove gl_UCS4_UTF.
39960         (Makefile.am): Update.
39961         (Include): Change to unistr.h.
39962         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
39963         (Depends-on): Add unistr/base.
39964         (configure.ac): Remove gl_UCS4_UTF.
39965         (Makefile.am): Update.
39966         (Include): Change to unistr.h.
39967         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
39968         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
39969         utf8-ucs4-unsafe.h.
39970         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
39971         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
39972         utf16-ucs4-unsafe.h.
39973         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
39974         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
39975         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
39976         * lib/unistr/u8-strchr.c: Likewise.
39977         * lib/unistr/u8-strrchr.c: Likewise.
39978         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
39979         * lib/unistr/u16-strchr.c: Likewise.
39980         * lib/unistr/u16-strrchr.c: Likewise.
39981         * lib/striconveh.c: Update.
39982         * lib/linebreak.c: Update.
39983
39984 2007-03-24  Bruno Haible  <bruno@clisp.org>
39985
39986         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
39987         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
39988
39989 2007-03-22  Bruno Haible  <bruno@clisp.org>
39990
39991         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
39992
39993 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
39994
39995         * MODULES.html.sh (File system functions): New module write-any-file.
39996         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
39997         * m4/write-any-file.m4: New files.
39998
39999 2007-03-23  Eric Blake  <ebb9@byu.net>
40000
40001         * gnulib-tool: Rearrange space-tab sequences, since some editors
40002         like to eat them.
40003
40004 2007-03-23  Eric Blake  <ebb9@byu.net>
40005
40006         * lib/version-etc.c (version_etc_va): Update license wording to
40007         be more concise.  Recommended by Richard Stallman.
40008
40009 2007-03-22  Bruno Haible  <bruno@clisp.org>
40010
40011         * lib/poll.c (MSG_PEEK): New fallback definition.
40012
40013 2007-03-22  Bruno Haible  <bruno@clisp.org>
40014
40015         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
40016         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
40017         (main): Update.
40018         Fixes a compilation error on BeOS.
40019
40020 2007-03-22  Bruno Haible  <bruno@clisp.org>
40021
40022         * modules/frexpl-tests: New file.
40023         * tests/test-frexpl.c: New file.
40024
40025         * modules/frexpl: New file.
40026         * m4/frexpl.m4: New file.
40027         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
40028         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
40029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
40030         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
40031         (Depends-on): Add frexpl. Remove isnanl-nolibm.
40032         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
40033
40034 2007-03-22  Bruno Haible  <bruno@clisp.org>
40035
40036         * lib/frexpl.c: Share code with lib/frexp.c.
40037         * modules/mathl (Files): Add lib/frexp.c.
40038         (Depends-on): Add isnanl-nolibm.
40039
40040 2007-03-22  Bruno Haible  <bruno@clisp.org>
40041
40042         * modules/printf-frexp (Files): Add m4/frexp.m4.
40043         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
40044         only if the found frexp function actually works.
40045
40046 2007-03-22  Bruno Haible  <bruno@clisp.org>
40047
40048         * lib/frexp.c: Remove older implementation that uses divisions.
40049
40050 2007-03-21  Bruno Haible  <bruno@clisp.org>
40051
40052         * modules/frexp-tests: New file.
40053         * tests/test-frexp.c: New file.
40054
40055         * modules/frexp: New file.
40056         * lib/frexp.c: New file.
40057         * m4/frexp.m4: New file.
40058         * lib/math_.h (frexp): New declaration.
40059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
40060         REPLACE_FREXP.
40061         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
40062
40063 2007-03-21  Bruno Haible  <bruno@clisp.org>
40064
40065         * modules/isnanl-tests: New file.
40066         * tests/test-isnanl.c: New file.
40067
40068         * modules/isnanl: New file.
40069         * lib/isnanl.h: New file.
40070         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
40071         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
40072         gl_FUNC_ISNANL_WORKS.
40073         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
40074         New macros.
40075
40076 2007-03-21  Bruno Haible  <bruno@clisp.org>
40077
40078         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
40079         lib/isnanl.h.
40080         (Include): Update.
40081         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
40082         * lib/vasnprintf.c: Update.
40083         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
40084         tests/test-isnanl.h, remove tests/test-isnanl.c.
40085         (Makefile.am): Update.
40086         * tests/test-isnanl-nolibm.c: New file.
40087         * tests/test-isnanl.h: New file.
40088         * tests/test-isnanl.c: Remove file.
40089
40090 2007-03-21  Jim Meyering  <jim@meyering.net>
40091
40092         When trying to open ".", treat ESTALE like EACCES.
40093         * lib/savewd.c (savewd_save): Resort to forking not just upon
40094         failure with EACCES, but also when errno is ESTALE.
40095
40096 2007-03-20  Bruno Haible  <bruno@clisp.org>
40097
40098         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
40099         Needed on AIX 5.1. Reported by Matthew Woehlke.
40100
40101 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40102
40103         Suggestions by Bruno Haible:
40104         * lib/acl-internal.h: Include "gettext.h" rather than rolling
40105         our own.
40106         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
40107         * modules/acl (Depends-on): Add gettext.
40108
40109 2007-03-19  Bruno Haible  <bruno@clisp.org>
40110
40111         * modules/iconvme: Remove file.
40112         * lib/iconvme.h: Remove file.
40113         * lib/iconvme.c: Remove file.
40114         * m4/iconvme.m4: Remove file.
40115
40116 2007-03-19  Bruno Haible  <bruno@clisp.org>
40117
40118         * doc/relocatable-maint.texi: Break long shell script line.
40119         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40120
40121 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40122
40123         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
40124         handle file_has_acl.
40125         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
40126         * lib/acl.c: Move header inclusions and related macro defns into
40127         lib/acl-internal.h.
40128         (S_ISLNK): Remove defn, since that's now done for us.
40129         (file_has_acl): Move to lib/file-has-acl.c.
40130         Call acl_trivial if available.  This is the crucial part of the fix.
40131         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
40132         shared within the library.  Rewrite a bit, partly to make it compatible
40133         with the GNU coding style.
40134         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
40135         Remove unnecessary double-quotes.
40136         Don't test for acl_to_text; the build will catch that.
40137         Replace acl_entries if it doesn't exist and it is needed.
40138         Check for -lsec and acl_trivial (as used on Solaris 10).
40139         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
40140         lib/file-has-acl.c.
40141         (Depends-on): Add sys_stat, for S_ISLNK.
40142
40143 2007-03-19  Ben Pfaff  <blp@gnu.org>
40144
40145         * doc/gnulib.texi: Fix typos.
40146         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40147
40148 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40149
40150         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
40151         If size is zero here, buf must be zero.
40152
40153 2007-03-19  Simon Josefsson  <simon@josefsson.org>
40154
40155         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
40156         <bruno@clisp.org>.
40157
40158 2007-03-18  Bruno Haible  <bruno@clisp.org>
40159
40160         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
40161         Suggested by Eric Blake.
40162
40163 2007-03-18  Ben Pfaff  <blp@gnu.org>
40164
40165         * doc/relocatable.texi: Recommend using as prefix a directory
40166         that does not exist and will never be created.  Based on
40167         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
40168         and others.
40169
40170 2007-03-17  Bruno Haible  <bruno@clisp.org>
40171
40172         * lib/fchownat.c: Include lchown.h.
40173
40174 2007-03-17  Bruno Haible  <bruno@clisp.org>
40175
40176         Fix endless loop when the given allocated size was > INT_MAX.
40177         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
40178         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
40179         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
40180         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
40181         * lib/sprintf.c (sprintf): Likewise.
40182
40183 2007-03-17  Bruno Haible  <bruno@clisp.org>
40184
40185         * tests/test-argp-2.sh (func_compare): Output a context diff.
40186
40187 2007-03-17  Bruno Haible  <bruno@clisp.org>
40188
40189         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
40190         locale's decimal-point character.
40191
40192 2007-03-17  Bruno Haible  <bruno@clisp.org>
40193
40194         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
40195         before comparing it. Needed because on some platforms (e.g. x86) a
40196         'long double' occupies less bytes than sizeof (long double).
40197
40198 2007-03-17  Bruno Haible  <bruno@clisp.org>
40199
40200         * tests/test-crc.c (main): Make printf statements 64-bit clean.
40201         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
40202         * tests/test-getaddrinfo.c (simple): Likewise.
40203         * tests/test-read-file.c (main): Likewise.
40204
40205 2007-03-17  Bruno Haible  <bruno@clisp.org>
40206
40207         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
40208
40209 2007-03-17  Bruno Haible  <bruno@clisp.org>
40210
40211         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
40212         unused variable.
40213
40214 2007-03-17  Bruno Haible  <bruno@clisp.org>
40215
40216         * tests/test-c-strcasecmp.c: Include c-strcase.h.
40217         * tests/test-c-strncasecmp.c: Likewise.
40218
40219 2007-03-17  Bruno Haible  <bruno@clisp.org>
40220
40221         * modules/stdlib (Depends-on): Add unistd.
40222         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
40223         Needed for MacOS X 10.3.
40224
40225 2007-03-17  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/unistr/u-strdup.h: Include <stdlib.h>.
40228
40229 2007-03-17  Bruno Haible  <bruno@clisp.org>
40230
40231         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
40232
40233 2007-03-17  Bruno Haible  <bruno@clisp.org>
40234
40235         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
40236         to reflect files copied from gnulib (with or without modifications).
40237         Suggested by Jim Meyering.
40238
40239 2007-03-17  Eric Blake  <ebb9@byu.net>
40240
40241         * NEWS: Document stdlib change from 2007-02-18.
40242
40243 2007-03-17  Jim Meyering  <jim@meyering.net>
40244
40245         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
40246         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
40247         someone uses a name containing shell meta-characters.
40248         Reported by Alfred M. Szmidt.
40249
40250         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
40251
40252 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40253
40254         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
40255         and copy gettext configuration files only if configure.ac contains
40256         a use of AM_GNU_GETTEXT_VERSION.
40257
40258 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40259
40260         * build-aux/bootstrap (gnulib_name): New variable.
40261         (gnulib_tool_options): Use it.
40262
40263 2007-03-13  Simon Josefsson  <simon@josefsson.org>
40264
40265         * tests/test-des.c: Use new namespace.
40266
40267 2007-03-15  Bruno Haible  <bruno@clisp.org>
40268
40269         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
40270         Reported by James Youngman <jay@gnu.org>.
40271
40272 2007-03-15  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
40275         declared prototype. Needed with cc on OSF/1 5.1.
40276
40277 2007-03-15  Bruno Haible  <bruno@clisp.org>
40278
40279         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
40280         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
40281         (struct gl_list_implementation): Add dispose_fn argument to the
40282         'create_empty', 'create' methods.
40283         (struct gl_list_impl_base): Add field 'dispose_fn'.
40284         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
40285         argument.
40286         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
40287         dispose_fn argument.
40288         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
40289         dispose_fn on the dropped values.
40290         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
40291         dispose_fn argument.
40292         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
40293         dropped values.
40294         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
40295         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40296         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
40297         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40298         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
40299         argument.
40300         (gl_tree_list_free): Call dispose_fn on the dropped values.
40301         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
40302         the dropped values.
40303         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40304         Add dispose_fn argument.
40305         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
40306         Call dispose_fn on the dropped values.
40307         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
40308         Add dispose_fn argument.
40309         (gl_sublist_create): Initialize the 'dispose_fn' field.
40310         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
40311         * tests/test-array_list.c (main): Update.
40312         * tests/test-carray_list.c (main): Update.
40313         * tests/test-avltree_list.c (main): Update.
40314         * tests/test-rbtree_list.c (main): Update.
40315         * tests/test-avltreehash_list.c (main): Update.
40316         * tests/test-rbtreehash_list.c (main): Update.
40317         * tests/test-linked_list.c (main): Update.
40318         * tests/test-linkedhash_list.c (main): Update.
40319         * tests/test-array_oset.c (main): Update.
40320
40321 2007-03-15  Bruno Haible  <bruno@clisp.org>
40322
40323         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
40324         (gl_oset_create_empty): Add dispose_fn argument.
40325         (struct gl_oset_implementation): Add dispose_fn argument to
40326         'create_empty' method.
40327         (struct gl_oset_impl_base): Add dispose_fn field.
40328         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
40329         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
40330         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
40331         values.
40332         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
40333         (gl_tree_oset_free): Call dispose_fn on the dropped values.
40334         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40335         dropped value.
40336         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40337         dropped value.
40338         * tests/test-array_oset.c (main): Update.
40339         * tests/test-avltree_oset.c (main): Update.
40340         * tests/test-rbtree_oset.c (main): Update.
40341         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
40342
40343 2007-03-13  Bruno Haible  <bruno@clisp.org>
40344
40345         * tests/test-stdbool.c (i): Update after last patch.
40346
40347 2007-03-12  Bruno Haible  <bruno@clisp.org>
40348
40349         * lib/quotearg.c: Include <wctype.h> early, before the definition of
40350         the iswprint macro. Needed on Solaris 2.5.1.
40351
40352 2007-03-12  Bruno Haible  <bruno@clisp.org>
40353
40354         * tests/test-printf-frexp.c (main): Declare x as volatile.
40355
40356 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40357
40358         * doc/gnulib.texi (Build robot for gnulib): New section.
40359
40360 2007-03-12  Jim Meyering  <jim@meyering.net>
40361
40362         * build-aux/bootstrap: New file.
40363         * build-aux/bootstrap.conf: New file, from coreutils.
40364
40365 2007-03-11  Bruno Haible  <bruno@clisp.org>
40366
40367         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
40368
40369 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40370
40371         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
40372         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
40373         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
40374
40375 2007-03-11  Bruno Haible  <bruno@clisp.org>
40376
40377         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
40378         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
40379
40380 2007-03-11  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
40383         formula. Needed for SunPRO C 5.0.
40384
40385 2007-03-11  Bruno Haible  <bruno@clisp.org>
40386
40387         * modules/long-options (Depends-on): Add getopt.
40388
40389 2007-03-11  Bruno Haible  <bruno@clisp.org>
40390
40391         * modules/modechange (Depends-on): Add stdbool.
40392
40393 2007-03-11  Bruno Haible  <bruno@clisp.org>
40394
40395         * modules/i-ring (Depends-on): Add stdbool.
40396
40397 2007-03-11  Bruno Haible  <bruno@clisp.org>
40398
40399         * modules/gc-des (Depends-on): Add stdbool.
40400
40401 2007-03-11  Bruno Haible  <bruno@clisp.org>
40402
40403         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
40404
40405 2007-03-11  Bruno Haible  <bruno@clisp.org>
40406
40407         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
40408
40409 2007-03-11  Bruno Haible  <bruno@clisp.org>
40410
40411         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
40412
40413 2007-03-11  Bruno Haible  <bruno@clisp.org>
40414
40415         * lib/vasnprintf.c (sprintf): Undefine.
40416
40417 2007-03-11  Bruno Haible  <bruno@clisp.org>
40418
40419         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
40420         initializers in SunPRO C and Compaq C compilers.
40421
40422 2007-03-11  Bruno Haible  <bruno@clisp.org>
40423
40424         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
40425         decrementing code ANSI C compliant.
40426
40427 2007-03-11  Bruno Haible  <bruno@clisp.org>
40428
40429         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
40430         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
40431
40432 2007-03-11  Bruno Haible  <bruno@clisp.org>
40433
40434         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
40435         <stdbool.h> substitute doesn't pass.
40436
40437 2007-03-11  Bruno Haible  <bruno@clisp.org>
40438
40439         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
40440
40441 2007-03-11  Bruno Haible  <bruno@clisp.org>
40442
40443         * gnulib-tool (func_create_megatestdir): Create also an autobuild
40444         script, for submission to autobuild.josefsson.org.
40445
40446 2007-03-10  Bruno Haible  <bruno@clisp.org>
40447
40448         * modules/canonicalize-lgpl-tests: New file.
40449         * tests/test-canonicalize-lgpl.sh: New file.
40450         * tests/test-canonicalize-lgpl.c: New file.
40451
40452         * modules/c-strcase-tests: New file.
40453         * tests/test-c-strcase.sh: New file.
40454         * tests/test-c-strcasecmp.c: New file.
40455         * tests/test-c-strncasecmp.c: New file.
40456
40457         * modules/atexit-tests: New file.
40458         * tests/test-atexit.sh: New file.
40459         * tests/test-atexit.c: New file.
40460
40461 2007-03-10  Bruno Haible  <bruno@clisp.org>
40462
40463         * tests/test-binary-io.sh: Use temporary filenames that are not so
40464         likely to clash with those of other tests (in a parallel make).
40465         * tests/test-binary-io.c: Likewise.
40466
40467 2007-03-10  Bruno Haible  <bruno@clisp.org>
40468
40469         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
40470         fallback; use #error instead.
40471         Suggested by Simon Josefsson.
40472
40473 2007-03-10  Bruno Haible  <bruno@clisp.org>
40474
40475         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
40476         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
40477         first and the last.
40478
40479 2007-03-10  Bruno Haible  <bruno@clisp.org>
40480
40481         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
40482
40483 2007-03-10  Bruno Haible  <bruno@clisp.org>
40484
40485         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
40486         "make distcheck".
40487         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
40488         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
40489         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
40490
40491 2007-03-10  Bruno Haible  <bruno@clisp.org>
40492
40493         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
40494         variable.
40495         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
40496         variable.
40497
40498 2007-03-09  Eric Blake  <ebb9@byu.net>
40499         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
40500
40501         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
40502         types are not being provided by gnulib.
40503         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
40504         types are supported.
40505
40506 2007-03-10  Bruno Haible  <bruno@clisp.org>
40507
40508         * lib/stdio_.h (__attribute__): New macro.
40509         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
40510         vsprintf): Specify __attribute__ __format__ for GCC.
40511         Suggested by Eric Blake.
40512
40513 2007-03-09  Bruno Haible  <bruno@clisp.org>
40514
40515         * modules/printf-posix-tests: New file.
40516         * tests/test-printf-posix.sh: New file.
40517         * tests/test-printf-posix.c: New file.
40518
40519         * modules/printf-posix: New file.
40520         * lib/printf.c: New file.
40521         * m4/printf-posix-rpl.m4: New file.
40522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
40523         REPLACE_PRINTF.
40524         * lib/stdio_.h (printf): New declaration.
40525         (format, __format__, ____printf____, ____scanf____, ____strftime____,
40526         ____strfmon____): New macros.
40527         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
40528         REPLACE_PRINTF.
40529
40530 2007-03-09  Bruno Haible  <bruno@clisp.org>
40531
40532         * tests/test-vasnprintf-posix2.sh: New file.
40533         * tests/test-vasnprintf-posix2.c: New file.
40534         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40535         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40536         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40537
40538         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40539         a locale dependent decimal point, rather than always '.'.
40540
40541 2007-03-09  Eric Blake  <ebb9@byu.net>
40542
40543         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40544         spite of platforms like Tandem/NSK that define it to -1.
40545
40546 2007-03-08  Bruno Haible  <bruno@clisp.org>
40547
40548         * modules/vprintf-posix-tests: New file.
40549         * tests/test-vprintf-posix.sh: New file.
40550         * tests/test-vprintf-posix.c: New file.
40551         * tests/test-printf-posix.h: New file.
40552
40553         * modules/vprintf-posix: New file.
40554         * lib/vprintf.c: New file.
40555         * m4/vprintf-posix.m4: New file.
40556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40557         REPLACE_VPRINTF.
40558         * lib/stdio_.h (vprintf): New declaration.
40559         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40560         REPLACE_VPRINTF.
40561
40562 2007-03-08  Bruno Haible  <bruno@clisp.org>
40563
40564         * modules/fprintf-posix-tests: New file.
40565         * tests/test-fprintf-posix.sh: New file.
40566         * tests/test-fprintf-posix.c: New file.
40567
40568         * modules/fprintf-posix: New file.
40569         * lib/fprintf.c: New file.
40570         * m4/fprintf-posix.m4: New file.
40571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40572         REPLACE_FPRINTF.
40573         * lib/stdio_.h (fprintf): New declaration.
40574         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40575         REPLACE_FPRINTF.
40576
40577 2007-03-08  Bruno Haible  <bruno@clisp.org>
40578
40579         * modules/vfprintf-posix-tests: New file.
40580         * tests/test-vfprintf-posix.sh: New file.
40581         * tests/test-vfprintf-posix.c: New file.
40582         * tests/test-fprintf-posix.h: New file.
40583         * tests/test-fprintf-posix.out: New file.
40584
40585         * modules/vfprintf-posix: New file.
40586         * lib/vfprintf.c: New file.
40587         * m4/vfprintf-posix.m4: New file.
40588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40589         REPLACE_VFPRINTF.
40590         * lib/stdio_.h (vfprintf): New declaration.
40591         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40592         REPLACE_VFPRINTF.
40593
40594 2007-03-08  Bruno Haible  <bruno@clisp.org>
40595
40596         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40597
40598 2007-03-08  Bruno Haible  <bruno@clisp.org>
40599
40600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40601         instead of 'expr' invocations.
40602         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40603         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40605         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40606         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40607         Suggested by Paul Eggert.
40608
40609 2007-03-08  Bruno Haible  <bruno@clisp.org>
40610
40611         * modules/fseterr-tests: New file.
40612         * tests/test-fseterr.c: New file.
40613
40614         * modules/fseterr: New file.
40615         * lib/fseterr.h: New file.
40616         * lib/fseterr.c: New file.
40617
40618 2007-03-08  Bruno Haible  <bruno@clisp.org>
40619
40620         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40621         * lib/getopt_.h: Likewise.
40622         * lib/mbswidth.h: Likewise.
40623         * lib/setenv.h: Likewise.
40624         * lib/vasnprintf.h: Likewise.
40625         * lib/vasprintf.h: Likewise.
40626         * lib/verror.h: Likewise.
40627         * lib/xsetenv.h: Likewise.
40628         * lib/xvasprintf.h: Likewise.
40629
40630 2007-03-08  Jim Meyering  <jim@meyering.net>
40631
40632         * users.txt: Add parted.
40633
40634         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40635
40636 2007-03-07  Bruno Haible  <bruno@clisp.org>
40637
40638         * m4/printf.m4: Make the shell script snippets copy&pastable.
40639
40640 2007-03-02  Bruno Haible  <bruno@clisp.org>
40641
40642         * lib/netinet_in_.h: New file.
40643         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40644         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40645         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40646         (Depends-on): Add absolute-header.
40647         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40648         into netinet/in.h.
40649
40650 2007-03-03  Bruno Haible  <bruno@clisp.org>
40651
40652         * lib/sys_select_.h: New file.
40653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40654         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40655         * modules/sys_select (Files): Add lib/sys_select_.h.
40656         (Depends-on): Add absolute-header.
40657         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40658         into sys/select.h.
40659
40660 2007-03-02  Bruno Haible  <bruno@clisp.org>
40661
40662         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40663         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40664         values.
40665         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40666         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40667         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40668         * modules/sys_socket (Depends-on): Add absolute-header.
40669         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40670         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40671         (Include): Remove requirement of inclusion of <sys/types.h>.
40672
40673 2007-03-02  Bruno Haible  <bruno@clisp.org>
40674
40675         * lib/byteswap_.h (bswap_32): Fix formula.
40676
40677 2007-03-06  Bruno Haible  <bruno@clisp.org>
40678
40679         * modules/sprintf-posix-tests: New file.
40680         * tests/test-sprintf-posix.c: New file.
40681
40682         * modules/sprintf-posix: New file.
40683         * lib/sprintf.c: New file.
40684         * m4/sprintf-posix.m4: New file.
40685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40686         REPLACE_SPRINTF.
40687         * lib/stdio_.h (sprintf): New declaration.
40688         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40689         REPLACE_SPRINTF.
40690
40691 2007-03-06  Bruno Haible  <bruno@clisp.org>
40692
40693         * modules/vsprintf-posix-tests: New file.
40694         * tests/test-vsprintf-posix.c: New file.
40695         * tests/test-sprintf-posix.h: New file.
40696
40697         * modules/vsprintf-posix: New file.
40698         * lib/vsprintf.c: New file.
40699         * m4/vsprintf-posix.m4: New file.
40700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40701         REPLACE_VSPRINTF.
40702         * lib/stdio_.h (vsprintf): New declaration.
40703         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40704         REPLACE_VSPRINTF.
40705
40706 2007-03-06  Bruno Haible  <bruno@clisp.org>
40707
40708         * modules/vsnprintf (Depend-on): Remove minmax.
40709
40710 2007-03-06  Bruno Haible  <bruno@clisp.org>
40711
40712         * modules/snprintf-posix-tests: New file.
40713         * tests/test-snprintf-posix.c: New file.
40714
40715         * modules/snprintf-posix: New file.
40716         * m4/snprintf-posix.m4: New file.
40717         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40718         gl_FUNC_SNPRINTF.
40719         (gl_FUNC_SNPRINTF): Invoke it.
40720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
40721         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
40722         is set.
40723         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
40724
40725 2007-03-06  Bruno Haible  <bruno@clisp.org>
40726
40727         * modules/vsnprintf-posix-tests: New file.
40728         * tests/test-vsnprintf-posix.c: New file.
40729         * tests/test-snprintf-posix.h: New file.
40730
40731         * modules/vsnprintf-posix: New file.
40732         * m4/vsnprintf-posix.m4: New file.
40733         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
40734         gl_FUNC_VSNPRINTF.
40735         (gl_FUNC_VSNPRINTF): Invoke it.
40736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
40737         * lib/stdio_.h (vsnprintf): Define as a replacement if
40738         REPLACE_VSNPRINTF is set.
40739         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
40740
40741 2007-03-06  Bruno Haible  <bruno@clisp.org>
40742
40743         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
40744         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
40745
40746 2007-03-06  Bruno Haible  <bruno@clisp.org>
40747
40748         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
40749         (asinl): Declare also if HAVE_DECL_ASINL is set.
40750         (atanl): Declare also if HAVE_DECL_ATANL is set.
40751         (ceill): Declare also if HAVE_DECL_CEILL is set.
40752         (cosl): Declare also if HAVE_DECL_COSL is set.
40753         (expl): Declare also if HAVE_DECL_EXPL is set.
40754         (floorl): Declare also if HAVE_DECL_FLOORL is set.
40755         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
40756         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
40757         (logl): Declare also if HAVE_DECL_LOGL is set.
40758         (sinl): Declare also if HAVE_DECL_SINL is set.
40759         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
40760         (tanl): Declare also if HAVE_DECL_TANL is set.
40761         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
40762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
40763         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
40764         declaration of frexpl, ldexpl.
40765         * modules/printf-frexpl (Depends-on): Add math.
40766         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
40767
40768 2007-03-05  Bruno Haible  <bruno@clisp.org>
40769
40770         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
40771         frexpl and ldexpl are declared.
40772         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
40773
40774 2007-03-05  Bruno Haible  <bruno@clisp.org>
40775
40776         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
40777         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
40778
40779 2007-03-05  Bruno Haible  <bruno@clisp.org>
40780
40781         * lib/stdio_.h: Include <stddef.h>.
40782
40783 2007-03-05  Bruno Haible  <bruno@clisp.org>
40784
40785         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
40786
40787 2007-03-05  Bruno Haible  <bruno@clisp.org>
40788
40789         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
40790         NetBSD 4, from Ralf Wildenhues.
40791
40792 2007-03-04  Bruno Haible  <bruno@clisp.org>
40793
40794         * lib/vasprintf.h: Update #if logic for the case when the functions
40795         exist but are overridden.
40796
40797 2007-03-04  Bruno Haible  <bruno@clisp.org>
40798
40799         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
40800         implementations: glibc-2.4 and MacOS X 10.3.
40801         * tests/test-vasnprintf-posix.c (test_function): Test also the case
40802         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
40803         * tests/test-vasprintf-posix.c (test_function): Likewise.
40804
40805 2007-03-04  Bruno Haible  <bruno@clisp.org>
40806
40807         * modules/vasprintf-posix-tests: New file.
40808         * tests/test-vasprintf-posix.c: New file.
40809
40810         * modules/vasprintf-posix: New file.
40811         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
40812         defined.
40813         * m4/vasprintf-posix.m4: New file.
40814         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
40815         gl_FUNC_VASPRINTF.
40816         (gl_FUNC_VASPRINTF): Invoke it.
40817         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
40818         here.
40819         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
40820
40821 2007-03-04  Bruno Haible  <bruno@clisp.org>
40822
40823         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
40824         REPLACE_GETTIMEOFDAY.
40825         * modules/sys_time (Makefile.am): Likewise.
40826         * m4/sys_time_h.m4: Likewise.
40827         * m4/gettimeofday.m4: Likewise.
40828
40829 2007-03-04  Bruno Haible  <bruno@clisp.org>
40830
40831         * modules/vasnprintf-posix-tests: New file.
40832         * tests/test-vasnprintf-posix.c: New file.
40833
40834         * modules/vasnprintf-posix: New file.
40835         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
40836         printf-frexpl.h.
40837         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
40838         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
40839         REPLACE_VASNPRINTF is defined.
40840         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
40841         gl_FUNC_VASNPRINTF.
40842         (gl_FUNC_VASNPRINTF): Invoke it.
40843         * m4/vasnprintf-posix.m4: New file.
40844         * m4/printf.m4: New file.
40845
40846 2007-03-04  Bruno Haible  <bruno@clisp.org>
40847
40848         Compile progreloc.c only if --enable-relocatable is specified.
40849         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
40850         if --enable-relocatable was specified.
40851         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
40852         lib_SOURCES.
40853
40854 2007-03-04  Jim Meyering  <jim@meyering.net>
40855
40856         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
40857         Use it consistently, rather than enumerating errno constants.
40858
40859 2007-03-04  Bruno Haible  <bruno@clisp.org>
40860
40861         * modules/xvasprintf-tests: New file.
40862         * tests/test-xvasprintf.c: New file.
40863
40864         * modules/vasprintf-tests: New file.
40865         * tests/test-vasprintf.c: New file.
40866
40867         * modules/vasnprintf-tests: New file.
40868         * tests/test-vasnprintf.c: New file.
40869
40870         * modules/vsnprintf-tests: New file.
40871         * tests/test-vsnprintf.c: New file.
40872
40873         * modules/snprintf-tests: New file.
40874         * tests/test-snprintf.c: New file.
40875
40876 2007-03-04  Bruno Haible  <bruno@clisp.org>
40877
40878         Compile relocatable.c only if --enable-relocatable is specified.
40879         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
40880         gl_RELOCATABLE_LIBRARY.
40881         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
40882         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
40883         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
40884         gl_RELOCATABLE_LIBRARY.
40885         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
40886         (Makefile.am): Remove lib_SOURCES.
40887         * modules/relocatable-lib-lgpl (configure.ac): Invoke
40888         gl_RELOCATABLE_LIBRARY.
40889         (Makefile.am): Remove lib_SOURCES.
40890         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
40891         always.
40892         * modules/relocatable-prog-wrapper (configure.ac): Invoke
40893         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
40894
40895 2007-03-04  Bruno Haible  <bruno@clisp.org>
40896
40897         * modules/argmatch-tests: New file.
40898         * tests/test-argmatch.c: New file.
40899
40900         * tests/test-allocsa.c (main): Halve the number of loop runs.
40901
40902         * modules/alloca-opt-tests: New file.
40903         * tests/test-alloca-opt.c: New file.
40904
40905 2007-03-04  Jim Meyering  <jim@meyering.net>
40906
40907         Work around difference between Linux ACLs and Solaris 10 ZFS.
40908         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
40909         for EINVAL.
40910
40911 2007-03-03  Bruno Haible  <bruno@clisp.org>
40912
40913         * modules/relocatable-prog (Depends-on): Add back progreloc's
40914         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
40915
40916 2007-03-03  Bruno Haible  <bruno@clisp.org>
40917
40918         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
40919         * modules/relocatable-lib: New file.
40920
40921 2007-03-03  Bruno Haible  <bruno@clisp.org>
40922
40923         * modules/relocatable-prog: Renamed from modules/relocatable.
40924         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
40925
40926 2007-03-03  Bruno Haible  <bruno@clisp.org>
40927
40928         * modules/relocatable-script (Files): Add doc/relocatable.texi,
40929         m4/relocatable-lib.m4.
40930         (Depends-on): Remove 'relocatable'.
40931         (configure.ac): Add gl_RELOCATABLE_NOP.
40932
40933 2007-03-03  Bruno Haible  <bruno@clisp.org>
40934
40935         * modules/relocatable-prog-wrapper: New file.
40936         * modules/relocatable (Depends-on): Add it. Remove all other
40937         dependencies except progname.
40938         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
40939
40940         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
40941         (gl_FUNC_STRERROR): Nop.
40942         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
40943
40944         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
40945         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
40946
40947         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
40948         (gl_FUNC_READLINK): Update.
40949
40950         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
40951
40952 2007-03-03  Bruno Haible  <bruno@clisp.org>
40953
40954         * lib/xreadlink.c: Include <unistd.h> unconditionally.
40955         * modules/xreadlink (Depends-on): Add unistd.
40956         * modules/xreadlink-with-size (Depends-on): Likewise.
40957
40958 2007-03-03  Bruno Haible  <bruno@clisp.org>
40959
40960         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
40961         extracted from gt_FUNC_SETENV.
40962         (gt_FUNC_SETENV): Remove macro.
40963         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
40964         remove gt_FUNC_SETENV.
40965
40966 2007-03-03  Bruno Haible  <bruno@clisp.org>
40967
40968         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
40969         ENABLE_RELOCATABLE here.
40970         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
40971
40972 2007-03-03  Bruno Haible  <bruno@clisp.org>
40973
40974         * modules/rbtreehash-list-tests (Depends-on): Add progname.
40975         * tests/test-rbtreehash_list.c: Include progname.h.
40976         (main): Call set_program_name.
40977
40978         * modules/rbtree-oset-tests (Depends-on): Add progname.
40979         * tests/test-rbtree_oset.c: Include progname.h.
40980         (main): Call set_program_name.
40981
40982         * modules/rbtree-list-tests (Depends-on): Add progname.
40983         * tests/test-rbtree_list.c: Include progname.h.
40984         (main): Call set_program_name.
40985
40986         * modules/linked-list-tests (Depends-on): Add progname.
40987         * tests/test-linked_list.c: Include progname.h.
40988         (main): Call set_program_name.
40989
40990 2007-03-03  Bruno Haible  <bruno@clisp.org>
40991
40992         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
40993         All uses of __restrict changed to _Restrict_.
40994         * lib/glob_.h (__restrict): Remove macro.
40995
40996 2007-03-02  Bruno Haible  <bruno@clisp.org>
40997
40998         * modules/gettext (configure.ac): Require gettext infrastructure
40999         from version 0.16.1.
41000
41001 2007-03-02  Bruno Haible  <bruno@clisp.org>
41002
41003         * modules/linkedhash-list-tests (Depends-on): Add progname.
41004         * tests/test-linkedhash_list.c: Include progname.h.
41005         (main): Call set_program_name.
41006
41007         * modules/carray-list-tests (Depends-on): Add progname.
41008         * tests/test-carray_list.c: Include progname.h.
41009         (main): Call set_program_name.
41010
41011         * modules/avltreehash-list-tests (Depends-on): Add progname.
41012         * tests/test-avltreehash_list.c: Include progname.h.
41013         (main): Call set_program_name.
41014
41015         * modules/avltree-oset-tests (Depends-on): Add progname.
41016         * tests/test-avltree_oset.c: Include progname.h.
41017         (main): Call set_program_name.
41018
41019         * modules/avltree-list-tests (Depends-on): Add progname.
41020         * tests/test-avltree_list.c: Include progname.h.
41021         (main): Call set_program_name.
41022
41023         * modules/array-oset-tests (Depends-on): Add progname.
41024         * tests/test-array_oset.c: Include progname.h.
41025         (main): Call set_program_name.
41026
41027         * modules/array-list-tests (Depends-on): Add progname.
41028         * tests/test-array_list.c: Include progname.h.
41029         (main): Call set_program_name.
41030
41031         * modules/argp-tests (Depends-on): Add progname.
41032         * tests/test-argp.c: Include argp.h first. Include progname.h.
41033         (main): Call set_program_name.
41034
41035 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
41036
41037         * doc/gnulib-tool.texi (Initial import): Reword description of
41038         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
41039         limited effect even if defined after the first system include.
41040
41041 2007-03-01  Bruno Haible  <bruno@clisp.org>
41042
41043         * build-aux/config.libpath: Update to libtool-1.5.22.
41044         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41045
41046 2007-03-01  Bruno Haible  <bruno@clisp.org>
41047
41048         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
41049         foo_CFLAGS.
41050         Reported by Ralf Wildenhues.
41051
41052 2007-03-01  Bruno Haible  <bruno@clisp.org>
41053
41054         * build-aux/install-reloc: Remove object files left over by some
41055         compilers.
41056         Reported by Ralf Wildenhues.
41057
41058 2007-03-01  Bruno Haible  <bruno@clisp.org>
41059
41060         * build-aux/install-reloc: Break long lines.
41061
41062 2007-03-01  Bruno Haible  <bruno@clisp.org>
41063
41064         * doc/relocatable.texi: Document that it may not work on OpenBSD.
41065         Reported by Ralf Wildenhues.
41066
41067 2007-03-01  Bruno Haible  <bruno@clisp.org>
41068
41069         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
41070         include ordering constraints.
41071
41072 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41073
41074         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
41075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
41076         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
41077         as another example.
41078         * lib/time_.h: Fix misspelling.
41079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41080         Require gl_HEADER_TIME_H_DEFAULTS.
41081         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
41082         * m4/time_r.m4 (gl_TIME_R): Likewise.
41083         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
41084
41085 2007-03-01  Bruno Haible  <bruno@clisp.org>
41086
41087         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
41088         * m4/utimens.m4 (gl_UTIMENS): Likewise.
41089
41090 2007-03-01  Jim Meyering  <jim@meyering.net>
41091
41092         * modules/xreadlink (Maintainer): Add my name.
41093         * modules/xreadlink-with-size (Depends-on): Alphabetize.
41094
41095 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
41096             Bruno Haible  <bruno@clisp.org>
41097
41098         * build-aux/install-reloc: Compile also c-ctype.c.
41099         * build-aux/relocatable.sh.in: New file.
41100         * doc/relocatable.texi: New file.
41101         * doc/relocatable-maint.texi: New file.
41102         * doc/gnulib.texi: Include relocatable-maint.texi.
41103         * lib/progreloc.c: Include unistd.h unconditionally.
41104         * lib/relocwrapper.c: Include unistd.h unconditionally.
41105         Include c-ctype.h.
41106         (add_dotbin): Use c_tolower.
41107         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
41108         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
41109         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
41110         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
41111         to m4/relocatable-lib.m4.
41112         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
41113         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
41114         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
41115         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
41116         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
41117         * modules/relocatable: New file.
41118         * modules/relocatable-lib: New file.
41119         * modules/relocatable-script: New file.
41120
41121 2007-02-28  Bruno Haible  <bruno@clisp.org>
41122
41123         Import --enable-relocatable infrastructure.
41124         * build-aux/config.libpath: New file, from GNU gettext.
41125         * build-aux/install-reloc: New file, from GNU gettext.
41126         * build-aux/reloc-ldflags: New file, from GNU gettext.
41127         * lib/relocatable.h: New file, from GNU gettext.
41128         * lib/relocatable.c: New file, from GNU gettext.
41129         * lib/relocwrapper.c: New file, from GNU gettext.
41130         * m4/relocatable.m4: New file, from GNU gettext.
41131
41132 2007-02-28  Bruno Haible  <bruno@clisp.org>
41133
41134         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
41135
41136         * modules/xreadlink: New file, from GNU gettext with modifications.
41137         * lib/xreadlink.c: New file, from GNU gettext.
41138         * lib/xreadlink.h: Add comments.
41139         (xreadlink): New declaration.
41140
41141         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
41142         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
41143         lib/xreadlink-with-size.c.
41144         (configure.ac): Remove gl_XREADLINK invocation.
41145         (Makefile.am): Augment lib_SOURCES.
41146         * m4/xreadlink.m4: Remove file.
41147         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
41148         (xreadlink_with_size): Renamed from xreadink.
41149         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
41150         * modules/canonicalize (Depends-on): Replace xreadlink with
41151         xreadlink-with-size.
41152         * lib/canonicalize.c (canonicalize_filename_mode): Update.
41153
41154 2007-02-25  Jim Meyering  <jim@meyering.net>
41155
41156         * build-aux/announce-gen: When complaining about excess arguments,
41157         list them.
41158
41159 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41160
41161         * README: Document signed integer overflow situation more
41162         accurately.
41163
41164 2007-02-25  Bruno Haible  <bruno@clisp.org>
41165
41166         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
41167         'a' or 'A' conversion.
41168
41169 2007-02-25  Bruno Haible  <bruno@clisp.org>
41170
41171         * modules/filename: Renamed from modules/pathname.
41172         (Files): Replace lib/pathname.h with lib/filename.h. Replace
41173         lib/concatpath.c with lib/concat-filename.c.
41174         (Makefile.am): Update.
41175         (Include): Replace pathname.h with filename.h.
41176         * lib/filename.h: Renamed from lib/pathname.h.
41177         (concatenated_filename): Renamed from concatenated_pathname.
41178         * lib/concat-filename.c: Renamed from lib/concatpath.c.
41179         (concatenated_filename): Renamed from concatenated_pathname.
41180         * lib/findprog.c: Include filename.h instead of pathname.h.
41181         (find_in_path): Update.
41182         * lib/javacomp.c: Include filename.h instead of pathname.h.
41183         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41184         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41185         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41186         is_oldgcj_14_13_usable, is_javac_usable): Update.
41187         * lib/javaexec.c: Include filename.h instead of pathname.h.
41188         (execute_java_class): Update.
41189         * modules/findprog: Update.
41190         * modules/javacomp: Update.
41191         * modules/javaexec: Update.
41192         * MODULES.html.sh (File system functions): Add 'filename', remove
41193         'pathname'.
41194
41195 2007-02-25  Bruno Haible  <bruno@clisp.org>
41196
41197         * modules/printf-frexpl-tests: New file.
41198         * tests/test-printf-frexpl.c: New file.
41199
41200         * modules/printf-frexpl: New file.
41201         * lib/printf-frexpl.h: New file.
41202         * lib/printf-frexpl.c: New file.
41203         * m4/printf-frexpl.m4: New file.
41204
41205 2007-02-25  Bruno Haible  <bruno@clisp.org>
41206
41207         * modules/printf-frexp-tests: New file.
41208         * tests/test-printf-frexp.c: New file.
41209
41210         * modules/printf-frexp: New file.
41211         * lib/printf-frexp.h: New file.
41212         * lib/printf-frexp.c: New file.
41213         * m4/printf-frexp.m4: New file.
41214
41215 2007-02-25  Bruno Haible  <bruno@clisp.org>
41216
41217         Assume automake >= 1.10 for the tests.
41218         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
41219         * modules/arctwo-tests: Likewise.
41220         * modules/argp-tests: Likewise.
41221         * modules/avltree-list-tests: Likewise.
41222         * modules/avltree-oset-tests: Likewise.
41223         * modules/avltreehash-list-tests: Likewise.
41224         * modules/carray-list-tests: Likewise.
41225         * modules/crc-tests: Likewise.
41226         * modules/des-tests: Likewise.
41227         * modules/gc-arcfour-tests: Likewise.
41228         * modules/gc-arctwo-tests: Likewise.
41229         * modules/gc-des-tests: Likewise.
41230         * modules/gc-hmac-md5-tests: Likewise.
41231         * modules/gc-hmac-sha1-tests: Likewise.
41232         * modules/gc-md2-tests: Likewise.
41233         * modules/gc-md4-tests: Likewise.
41234         * modules/gc-md5-tests: Likewise.
41235         * modules/gc-pbkdf2-sha1-tests: Likewise.
41236         * modules/gc-rijndael-tests: Likewise.
41237         * modules/gc-sha1-tests: Likewise.
41238         * modules/gc-tests: Likewise.
41239         * modules/getaddrinfo-tests: Likewise.
41240         * modules/hmac-md5-tests: Likewise.
41241         * modules/hmac-sha1-tests: Likewise.
41242         * modules/linked-list-tests: Likewise.
41243         * modules/linkedhash-list-tests: Likewise.
41244         * modules/lock-tests: Likewise.
41245         * modules/md2-tests: Likewise.
41246         * modules/md4-tests: Likewise.
41247         * modules/md5-tests: Likewise.
41248         * modules/rbtree-list-tests: Likewise.
41249         * modules/rbtree-oset-tests: Likewise.
41250         * modules/rbtreehash-list-tests: Likewise.
41251         * modules/read-file-tests: Likewise.
41252         * modules/rijndael-tests: Likewise.
41253         * modules/stdint-tests: Likewise.
41254         * modules/tls-tests: Likewise.
41255
41256 2007-02-24  Bruno Haible  <bruno@clisp.org>
41257
41258         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
41259         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
41260         function; instead check whether isnan with a double argument links.
41261         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
41262         function; instead check whether isnan with a 'long double' argument
41263         links.
41264         Reported by Eric Blake <ebb9@byu.net>.
41265
41266 2007-02-24  Bruno Haible  <bruno@clisp.org>
41267
41268         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
41269         defined.
41270         * lib/isnanl.c: Remove all code. Just include isnan.c.
41271         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
41272
41273 2007-02-25  Jim Meyering  <jim@meyering.net>
41274
41275         Avoid conflicting types for 'unsetenv' on FreeBSD.
41276         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
41277         conflicting with FreeBSD's (5.0 and 6.1) function declaration
41278         in stdlib.h.
41279
41280 2007-02-24  Bruno Haible  <bruno@clisp.org>
41281
41282         * modules/isnanl-nolibm-tests: New file.
41283         * tests/test-isnanl.c: New file.
41284
41285         * modules/isnanl-nolibm: New file.
41286         * lib/isnanl.h: New file.
41287         * lib/isnanl.c: New file.
41288         * m4/isnanl.m4: New file.
41289
41290 2007-02-24  Bruno Haible  <bruno@clisp.org>
41291
41292         * modules/isnan-nolibm-tests: New file.
41293         * tests/test-isnan.c: New file.
41294
41295         * modules/isnan-nolibm: New file.
41296         * lib/isnan.h: New file.
41297         * lib/isnan.c: New file.
41298         * m4/isnan.m4: New file.
41299
41300 2007-02-24  Bruno Haible  <bruno@clisp.org>
41301
41302         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
41303         assume that an exponent fits in 20 bits.
41304
41305 2007-02-24  Jim Meyering  <jim@meyering.net>
41306
41307         * m4/regex.m4: Update the description of the configure-time option,
41308         --without-included-regex, to state accurately what the defaults are,
41309         and perhaps to give people an idea why using this option is risky.
41310
41311 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41312
41313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
41314         loops on small arguments.  This attempts to avoid the problem
41315         Bruno Haible reported for AIX 4.3.2 in
41316         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
41317
41318 2007-02-23  Bruno Haible  <bruno@clisp.org>
41319
41320         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
41321         Needed for help2man.
41322
41323 2007-02-23  Karl Berry  <karl@gnu.org>
41324
41325         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
41326         exists, foo.h should be cvs-ignored, not committed.
41327
41328 2007-02-23  Eric Blake  <ebb9@byu.net>
41329
41330         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
41331         * lib/stat-time.h (includes): Likewise.
41332         * lib/utimecmp.c (includes): Likewise.
41333         * lib/utimens.h (includes): Likewise.
41334         * lib/getdate.y (includes): Also include "timespec.h" for use
41335         internal to the module.
41336         * modules/utimens (Depends-on): Revert yesterday's patch.
41337         * modules/nanosleep (Depends-on): Add missing dependency.
41338
41339 2007-02-22  Bruno Haible  <bruno@clisp.org>
41340
41341         * lib/glob.c: Don't include getlogin_r.h.
41342
41343 2007-02-22  Jim Meyering  <jim@meyering.net>
41344
41345         * modules/utimens (Depends-on): Add timespec, required for
41346         utimens.h's inclusion of timespec.h.
41347
41348 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
41349
41350         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
41351         long unreadable paths in GNU/Linux.  Problem reported by Andreas
41352         Schwab in
41353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
41354         I'll try to think of a better way to fix the Solaris problem.
41355
41356         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
41357         like glibc; on Solaris 10, it fails with errno == EINVAL.
41358         POSIX says the behavior is unspecified if the first argument is NULL,
41359         so play it safe and never pass NULL to the system getcwd.
41360
41361 2007-02-21  Jim Meyering  <jim@meyering.net>
41362
41363         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
41364         of gettimeofday.  It would conflict with the one now always
41365         provided via sys_time_.h.  Reported by Matthew Woehlke, as
41366         an IRIX 6.5 build failure.
41367
41368 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41369
41370         Minor fixups to port to Solaris 10 with Sun C 5.8.
41371         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
41372         * modules/getcwd (Depends-on): Add dirfd.
41373         * lib/putenv.c (putenv): #undef it.
41374         (rpl_putenv): New decl.
41375         (malloc, free): Include <stdlib.h> rather than prototyping separately.
41376
41377 2007-02-20  Bruno Haible  <bruno@clisp.org>
41378
41379         * modules/stdio-tests: New file.
41380         * tests/test-stdio.c: New file.
41381
41382         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
41383         (Depends-on): Add stdio.
41384         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41385         (Include): Use <stdio.h> instead of vsnprintf.h.
41386         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41387         HAVE_DECL_VSNPRINTF.
41388         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
41389
41390         * modules/snprintf (Files): Remove lib/snprintf.h.
41391         (Depends-on): Add stdio.
41392         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41393         (Include): Use <stdio.h> instead of snprintf.h.
41394         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41395         HAVE_DECL_SNPRINTF.
41396         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
41397         * lib/getaddrinfo.c: Likewise.
41398
41399         * modules/stdio: New file.
41400         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
41401         * lib/snprintf.h: Remove file.
41402         * lib/vsnprintf.h: Remove file.
41403         * lib/.cppi-disable: Remove snprintf.h.
41404         * m4/stdio_h.m4: New file.
41405         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
41406
41407 2007-02-20  Jim Meyering  <jim@meyering.net>
41408
41409         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
41410         used by e.g., mingw.  From Bruno Haible.
41411
41412 2007-02-19  Bruno Haible  <bruno@clisp.org>
41413
41414         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
41415         warnings.
41416         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41417
41418 2007-02-19  Bruno Haible  <bruno@clisp.org>
41419
41420         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
41421         from mingw users.
41422
41423 2007-02-19  Bruno Haible  <bruno@clisp.org>
41424
41425         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
41426         warnings.
41427         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
41428
41429 2007-02-19  Jim Meyering  <jim@meyering.net>
41430
41431         Don't use FD after a successful "fdopendir (fd)".
41432         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
41433         Reset it by calling dirfd on the just-obtained DIR*.
41434
41435         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
41436         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
41437
41438 2007-02-18  Bruno Haible  <bruno@clisp.org>
41439
41440         * lib/readlink.c: Include <unistd.h>.
41441         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
41442         HAVE_READLINK.
41443         * modules/readlink (Depends-on): Add unistd.
41444         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41445         (Include): Add <unistd.h>.
41446
41447         * lib/getlogin_r.h: Remove file.
41448         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
41449         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
41450         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
41451         HAVE_DECL_GETLOGIN_R.
41452         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
41453         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41454         (Include): Use <unistd.h> instead of getlogin_r.h.
41455
41456         * lib/getcwd.h: Remove file.
41457         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
41458         * lib/xgetcwd.c: Likewise.
41459         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
41460         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
41461         * modules/getcwd (Files): Remove lib/getcwd.h.
41462         (Depends-on): Add unistd.
41463         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41464         (Include): Use <unistd.h> instad of getcwd.h.
41465
41466         * lib/ftruncate.c: Include <unistd.h> first.
41467         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
41468         Set HAVE_FTRUNCATE.
41469         * modules/ftruncate (Depends-on): Add unistd.
41470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41471
41472         * lib/fchdir.c: Include <unistd.h> first.
41473         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
41474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
41475         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
41476         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41477         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
41478
41479         * lib/dup2.c: Include <unistd.h> first.
41480         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
41481         HAVE_DUP2.
41482         * modules/dup2 (Depends-on): Add unistd.
41483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41484
41485         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
41486         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
41487         REPLACE_CHOWN. Don't define chown as a macro here.
41488         * modules/chown (Depends-on): Add unistd.
41489         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41490
41491         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
41492         Add definition for GL_LINK_WARNING.
41493         (chown, dup2): New declarations.
41494         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
41495         link warning.
41496         (ftruncate): New declaration.
41497         (getcwd): New declaration, taken from old getcwd.h.
41498         (getlogin_r): New declaration, taken from old getlogin_r.h.
41499         (readlink): New declaration.
41500         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
41501         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
41502         (gl_PREREQ_UNISTD): Remove macro.
41503         (gl_UNISTD_MODULE_INDICATOR): New macro.
41504         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
41505         many new variables. Don't set UNISTD_H.
41506         * modules/unistd (Description): Change.
41507         (Depends-on): Add link-warning.
41508         (configure.ac): Update.
41509         (Makefile.am): Create unistd.h always. Substitute many new variables
41510         into it.
41511
41512 2007-02-18  Bruno Haible  <bruno@clisp.org>
41513
41514         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
41515         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
41516         HAVE_GETSUBOPT.
41517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
41518         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
41519         * lib/getsubopt.h: Remove file.
41520         * modules/getsubopt (Files): Remove lib/getsubopt.h.
41521         (Depends-on): Add stdlib.
41522         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41523         (Includes): Use <stdlib.h> instead of getsubopt.h.
41524         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
41525         Set HAVE_GETSUBOPT.
41526         * lib/getsubopt.c: Don't include getsubopt.h.
41527
41528 2007-02-18  Bruno Haible  <bruno@clisp.org>
41529
41530         * modules/fchdir (Depends-on): Add dup2.
41531
41532 2007-02-18  Bruno Haible  <bruno@clisp.org>
41533
41534         * lib/stdlib_.h: Handle glibc's special invocation convention
41535         specially.
41536
41537 2007-02-18  Bruno Haible  <bruno@clisp.org>
41538
41539         * modules/stdlib-tests: New file.
41540         * tests/test-stdlib.c: New file.
41541
41542         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41543         (Depends-on): Add stdlib.
41544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41545         (Includes): Use <stdlib.h> instead of mkstemp.h.
41546         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41547         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41548         * lib/mkstemp.c: Don't include mkstemp.h.
41549         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41550         * lib/stdlib--.h: Don't include mkstemp.h.
41551
41552         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41553         (Depends-on): Add stdlib.
41554         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41555         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41556         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41557         HAVE_MKDTEMP.
41558         * lib/mkdtemp.c: Don't include mkdtemp.h.
41559         * lib/clean-temp.c: Don't include mkdtemp.h.
41560
41561         * modules/exit (Files): Remove lib/exit.h.
41562         (Depends-on): Add stdlib.
41563         (Makefile.am): Remove lib_SOURCES.
41564         (Include): Use <stdlib.h> instead of exit.h.
41565         * lib/argmatch.c: Don't include exit.h.
41566         * lib/execute.c: Likewise.
41567         * lib/pagealign_alloc.c: Likewise.
41568         * lib/pipe.c: Likewise.
41569         * lib/wait-process.c: Likewise.
41570         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41571         * lib/exitfail.c: Likewise.
41572         * lib/savewd.c: Likewise.
41573         * lib/xsetenv.c: Likewise.
41574
41575         * modules/stdlib: New file.
41576         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41577         and extra comments about mkstemp().
41578         * lib/exit.h: Remove file.
41579         * lib/mkdtemp.h: Remove file.
41580         * lib/mkstemp.h: Remove file.
41581         * m4/stdlib_h.m4: New file.
41582         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41583
41584 2007-02-18  Bruno Haible  <bruno@clisp.org>
41585
41586         * modules/math-tests: New file.
41587         * tests/test-math.c: New file.
41588
41589         * modules/math: New file.
41590         * modules/mathl (Files): Remove lib/mathl.h.
41591         (Depends-on): Add math.
41592         (Makefile.am): Don't mention mathl.h.
41593         (Include): Use <math.h> instead of mathl.h.
41594         * lib/math_.h: New file.
41595         * lib/mathl.h: Remove file.
41596         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41597         mathl.h.
41598         * lib/asinl.c: Likewise.
41599         * lib/atanl.c: Likewise.
41600         * lib/ceill.c: Likewise.
41601         * lib/cosl.c: Likewise.
41602         * lib/expl.c: Likewise.
41603         * lib/floorl.c: Likewise.
41604         * lib/frexpl.c: Likewise.
41605         * lib/ldexpl.c: Likewise.
41606         * lib/logl.c: Likewise.
41607         * lib/sincosl.c: Likewise.
41608         * lib/sinl.c: Likewise.
41609         * lib/sqrtl.c: Likewise.
41610         * lib/tanl.c: Likewise.
41611         * lib/trigl.c: Likewise.
41612         * m4/math_h.m4: New file.
41613         * MODULES.html.sh (Mathematics): Add math.
41614
41615 2007-02-17  Bruno Haible  <bruno@clisp.org>
41616
41617         * modules/wctype-tests: New file.
41618         * tests/test-wctype.c: New file.
41619
41620         * modules/wchar-tests: New file.
41621         * tests/test-wchar.c: New file.
41622
41623         * modules/unistd-tests: New file.
41624         * tests/test-unistd.c: New file.
41625
41626         * modules/time-tests: New file.
41627         * tests/test-time.c: New file.
41628
41629         * modules/sysexits-tests: New file.
41630         * tests/test-sysexits.c: New file.
41631
41632         * modules/sys_time-tests: New file.
41633         * tests/test-sys_time.c: New file.
41634
41635         * modules/sys_stat-tests: New file.
41636         * tests/test-sys_stat.c: New file.
41637
41638         * modules/sys_socket-tests: New file.
41639         * tests/test-sys_socket.c: New file.
41640
41641         * modules/sys_select-tests: New file.
41642         * tests/test-sys_select.c: New file.
41643
41644         * modules/string-tests: New file.
41645         * tests/test-string.c: New file.
41646
41647         * modules/stdbool-tests: New file.
41648         * tests/test-stdbool.c: New file.
41649
41650         * modules/netinet_in-tests: New file.
41651         * tests/test-netinet_in.c: New file.
41652
41653         * modules/inttypes-tests: New file.
41654         * tests/test-inttypes.c: New file.
41655
41656         * modules/fcntl-tests: New file.
41657         * tests/test-fcntl.c: New file.
41658
41659         * modules/byteswap-tests: New file.
41660         * tests/test-byteswap.c: New file.
41661
41662         * modules/arpa_inet-tests: New file.
41663         * tests/test-arpa_inet.c: New file.
41664
41665 2007-02-17  Bruno Haible  <bruno@clisp.org>
41666
41667         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41668         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41669         if the corresponding module is not enabled. Emit link warnings if
41670         the function is used nevertheless.
41671         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41672         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41673         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41674         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41675         * modules/inttypes (Depends-on): Add link-warning.
41676         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41677         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41678         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41679         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41680         * modules/imaxdiv (configure.ac): Likewise.
41681         * modules/strtoimax (configure.ac): Likewise.
41682         * modules/strtoumax (configure.ac): Likewise.
41683
41684 2007-02-17  Bruno Haible  <bruno@clisp.org>
41685
41686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41687         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41688         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41689         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41690
41691 2007-02-17  Bruno Haible  <bruno@clisp.org>
41692
41693         * modules/link-warning: New file.
41694         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41695         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41696         * modules/string (Depends-on): Add link-warning.
41697         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41698         string.h.
41699         * MODULES.html.sh (Support for building libraries and executables): Add
41700         link-warning.
41701
41702 2007-02-17  Bruno Haible  <bruno@clisp.org>
41703
41704         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41705         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41706         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41707         long lines.
41708
41709 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41710             Bruno Haible  <bruno@clisp.org>
41711
41712         * modules/tmpfile: New file.
41713         * lib/tmpfile.c: New file.
41714         * m4/tmpfile.m4: New file.
41715         * MODULES.html.sh (func_all_modules): New section "Input/output".
41716
41717 2007-02-15  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
41720         (supports_delete_on_close): New function.
41721         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
41722
41723 2007-02-14  Bruno Haible  <bruno@clisp.org>
41724
41725         * modules/mbspcasecmp-tests: New file.
41726         * tests/test-mbspcasecmp.sh: New file.
41727         * tests/test-mbspcasecmp.c: New file.
41728
41729         New module mbspcasecmp.
41730         * modules/mbspcasecmp: New file.
41731         * lib/mbspcasecmp.c: New file.
41732         * lib/string_.h (strncasecmp): Change warning message.
41733         (mbspcasecmp): New declaration.
41734         * m4/mbspcasecmp.m4: New file.
41735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41736         GNULIB_MBSPCASECMP.
41737         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
41738         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
41739
41740 2007-02-14  Bruno Haible  <bruno@clisp.org>
41741
41742         * modules/mbsncasecmp-tests: New file.
41743         * tests/test-mbsncasecmp.sh: New file.
41744         * tests/test-mbsncasecmp.c: New file.
41745
41746         New module mbsncasecmp.
41747         * modules/mbsncasecmp: New file.
41748         * lib/mbsncasecmp.c: New file.
41749         * lib/string_.h (mbsncasecmp): New declaration.
41750         * m4/mbsncasecmp.m4: New file.
41751         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41752         GNULIB_MBSNCASECMP.
41753         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
41754         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
41755
41756 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41757
41758         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
41759         Verify that it doesn't overlap with our flags.
41760         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
41761         do not have the desired effect in multibyte locales; instead, use
41762         mbscasecmp.
41763         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
41764         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
41765         we don't require GNU fnmatch ourselves (if our users require it, they
41766         should do so explicitly).
41767
41768         Fix regex code so it doesn't rely on strcasecmp.
41769         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
41770         Otherwise, include gnulib's langinfo.h.
41771         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
41772         undesirable behavior in non-C locales.  Instead, rely on localecharset.
41773         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
41774         * modules/regex (FILES): Remove m4/codeset.m4.
41775         (Depends-on): Add localcharset.  Remove strcase.
41776
41777 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41778
41779         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
41780         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41781
41782 2007-02-13  Bruno Haible  <bruno@clisp.org>
41783
41784         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
41785         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41786
41787 2007-02-12  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41790         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
41791         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
41792         time warning rather than a link error.
41793
41794 2007-02-12  Bruno Haible  <bruno@clisp.org>
41795
41796         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
41797         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41798         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41799
41800 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41801
41802         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
41803         args, not 2.
41804
41805 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41806
41807         New module 'time', so that apps can include <time.h> as per
41808         POSIX and GNU instead of separate include files like time_r.h
41809         and timegm.h.  This implementation tries out a simpler approach
41810         for replacing decls in standard include files (as compared to
41811         the string module), somewhat as an experiment.
41812
41813         * config/srclist.txt: Comment out mktime.c for now.
41814         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
41815         since it doesn't apply any more.  Use generic wording instead.
41816         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
41817         'time'.
41818         * lib/time_.h, m4/time_h.m4, modules/time: New files.
41819         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
41820         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
41821         Don't include <sys/types.h>; no longer needed since we assume C89.
41822         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
41823         * lib/strftime.c: Likewise.
41824         * lib/time_r.c: Likewise.
41825         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
41826         * lib/nanosleep.c: Include <time.h> first, to check interface.
41827         * lib/strptime.c: Likewise.
41828         * lib/time_r.c: Likewise.
41829         * lib/timegm.c: Likewise.
41830         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
41831         needed.
41832         * lib/timegm.c: Don't include timegm.h; no longer needed.
41833         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
41834         time.h now handles any problems in that area.
41835         (struct timespec, nanosleep): Remove; time.h now arranges for these.
41836         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
41837         that time.h defines struct timespec.
41838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
41839         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
41840         handles that.
41841         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
41842         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
41843         needed.  Set REPLACE_LOCALTIME.
41844         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
41845         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
41846         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
41847         nanosleep; time_h.m4 now does that.  Don't require
41848         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
41849         module handles this now.
41850         * modules/getdate (Depends-on): Remove timespec.  Add time.
41851         * modules/nanosleep (Depends-on): Likewise.
41852         * modules/stat-time (Depends-on): Likewise.
41853         * modules/nanosleep (Include): Include time.h, not timespec.h.
41854         * modules/strptime (Files): Remove lib/strptime.h.
41855         (Depends-on): Add extensions, time.
41856         (Include): Include time.h, not strptime.h.
41857         * modules/time_r (Files): Remove lib/time_r.h.
41858         (Depends-on): Add time.
41859         (Include): Include time.h, not time_r.h.
41860         * modules/timegm: Likewise.
41861         * modules/timespec (Description): Now does timespec-related decls
41862         of our own, instead of struct timespec itself.
41863         (Depends-on): Add time; remove extensions.
41864         (Maintainer): Add self.
41865         * modules/utimecmp (Depends-on): Add time; remove timespec.
41866         * modules/utimens (Depends-on): Likewise.
41867         * modules/xnanosleep (Depends-on): Likewise.
41868
41869 2007-02-11  Bruno Haible  <bruno@clisp.org>
41870
41871         * lib/c-strstr.c: Include allocsa.h.
41872         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41873         * lib/c-strcasestr.c: Include allocsa.h.
41874         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41875         * lib/strcasestr.c: Include allocsa.h.
41876         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41877         * lib/mbsstr.c: Include allocsa.h.
41878         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41879         allocsa/freesa instead of malloc/free.
41880         * lib/mbscasestr.c: Include allocsa.h.
41881         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41882         allocsa/freesa instead of malloc/free.
41883         * modules/c-strstr (Depends-on): Add allocsa.
41884         * modules/c-strcasestr (Depends-on): Likewise.
41885         * modules/strcasestr (Depends-on): Likewise.
41886         * modules/mbsstr (Depends-on): Likewise.
41887         * modules/mbscasestr (Depends-on): Likewise.
41888
41889 2007-02-11  Bruno Haible  <bruno@clisp.org>
41890
41891         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
41892
41893         * modules/mbsspn-tests: New file.
41894         * tests/test-mbsspn.sh: New file.
41895         * tests/test-mbsspn.c: New file.
41896
41897 2007-02-11  Bruno Haible  <bruno@clisp.org>
41898
41899         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
41900
41901         * modules/mbspbrk-tests: New file.
41902         * tests/test-mbspbrk.sh: New file.
41903         * tests/test-mbspbrk.c: New file.
41904
41905 2007-02-11  Bruno Haible  <bruno@clisp.org>
41906
41907         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
41908         unneeded cast.
41909
41910         * modules/mbscspn-tests: New file.
41911         * tests/test-mbscspn.sh: New file.
41912         * tests/test-mbscspn.c: New file.
41913
41914 2007-02-11  Bruno Haible  <bruno@clisp.org>
41915
41916         * modules/mbscasecmp-tests: New file.
41917         * tests/test-mbscasecmp.sh: New file.
41918         * tests/test-mbscasecmp.c: New file.
41919
41920 2007-02-11  Bruno Haible  <bruno@clisp.org>
41921
41922         Ensure O(n) worst-case complexity of mbscasestr.
41923         * lib/mbscasestr.c: Include stdbool.h.
41924         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41925         functions.
41926         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
41927         the bookkeeping indicates that it's worth it.
41928         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
41929
41930         * modules/mbscasestr-tests: New file.
41931         * tests/test-mbscasestr1.c: New file.
41932         * tests/test-mbscasestr2.sh: New file.
41933         * tests/test-mbscasestr2.c: New file.
41934         * tests/test-mbscasestr3.sh: New file.
41935         * tests/test-mbscasestr3.c: New file.
41936         * tests/test-mbscasestr4.sh: New file.
41937         * tests/test-mbscasestr4.c: New file.
41938         * m4/locale-tr.m4: New file.
41939
41940 2007-02-11  Bruno Haible  <bruno@clisp.org>
41941
41942         Ensure O(n) worst-case complexity of mbsstr.
41943         * lib/mbsstr.c: Include stdbool.h.
41944         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41945         functions.
41946         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
41947         bookkeeping indicates that it's worth it.
41948         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
41949
41950         * modules/mbsstr-tests: New file.
41951         * tests/test-mbsstr1.c: New file.
41952         * tests/test-mbsstr2.sh: New file.
41953         * tests/test-mbsstr2.c: New file.
41954         * tests/test-mbsstr3.sh: New file.
41955         * tests/test-mbsstr3.c: New file.
41956         * m4/locale-fr.m4: New file.
41957
41958 2007-02-11  Bruno Haible  <bruno@clisp.org>
41959
41960         * lib/mbsrchr.c (mbsrchr): Fix bug.
41961
41962         * modules/mbsrchr-tests: New file.
41963         * tests/test-mbsrchr.sh: New file.
41964         * tests/test-mbsrchr.c: New file.
41965
41966 2007-02-11  Bruno Haible  <bruno@clisp.org>
41967
41968         * lib/mbschr.c (mbschr): Fix bug.
41969
41970         * modules/mbschr-tests: New file.
41971         * tests/test-mbschr.sh: New file.
41972         * tests/test-mbschr.c: New file.
41973         * m4/locale-zh.m4: New file.
41974
41975 2007-02-11  Bruno Haible  <bruno@clisp.org>
41976
41977         Support for copying multibyte string iterators.
41978         * lib/mbiter.h: Include <string.h>.
41979         (mbiter_multi_copy): New function.
41980         (mbi_copy): New macro.
41981         * lib/mbuiter.h: Include <string.h>.
41982         (mbuiter_multi_copy): New function.
41983         (mbui_copy): New macro.
41984
41985 2007-02-11  Bruno Haible  <bruno@clisp.org>
41986
41987         New module mbslen.
41988         * modules/mbslen: New file.
41989         * lib/mbslen.c: New file.
41990         * lib/string_.h (mbslen): New declaration.
41991         * m4/mbslen.m4: New file.
41992         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41993         GNULIB_MBSLEN.
41994         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
41995         * MODULES.html.sh (Internationalization functions): Add mbslen.
41996
41997 2007-02-11  Bruno Haible  <bruno@clisp.org>
41998
41999         Ensure O(n) worst-case complexity of strcasestr substitute.
42000         * lib/strcasestr.c: Include stdbool.h.
42001         (knuth_morris_pratt): New function.
42002         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42003         bookkeeping indicates that it's worth it.
42004         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
42005
42006         * modules/strcasestr-tests: New file.
42007         * tests/test-strcasestr.c: New file.
42008
42009 2007-02-11  Bruno Haible  <bruno@clisp.org>
42010
42011         Ensure O(n) worst-case complexity of c_strcasestr.
42012         * lib/c-strcasestr.c: Include stdbool.h, string.h.
42013         (knuth_morris_pratt): New function.
42014         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
42015         the bookkeeping indicates that it's worth it.
42016         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
42017
42018         * modules/c-strcasestr-tests: New file.
42019         * tests/test-c-strcasestr.c: New file.
42020
42021 2007-02-11  Bruno Haible  <bruno@clisp.org>
42022
42023         Ensure O(n) worst-case complexity of c_strstr.
42024         * lib/c-strstr.c: Include stdbool.h, string.h.
42025         (knuth_morris_pratt): New function.
42026         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42027         bookkeeping indicates that it's worth it.
42028         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
42029
42030         * lib/c-strstr.c: Complete rewrite for maintainability.
42031
42032         * modules/c-strstr-tests: New file.
42033         * tests/test-c-strstr.c: New file.
42034
42035 2007-02-11  Bruno Haible  <bruno@clisp.org>
42036
42037         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
42038         5.2.1 and earlier, whereby \055 was treated just like the range
42039         delimiter '-'.
42040         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42041
42042 2007-02-08  Bruno Haible  <bruno@clisp.org>
42043
42044         * modules/regex (Depends-on): Add stdbool.
42045         Reported by Dalibor Topic <robilad@kaffe.org>.
42046
42047 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
42048
42049         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
42050         Prefer returning from main to exiting from it.
42051         Remove unnecessary parens after sizeof.
42052
42053 2007-02-05  Bruno Haible  <bruno@clisp.org>
42054
42055         New module mbssep.
42056         * modules/mbssep: New file.
42057         * lib/mbssep.c: New file.
42058         * lib/string_.h (strsep): Add a conditional link warning.
42059         (mbssep): New declaration.
42060         * m4/mbssep.m4: New file.
42061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42062         GNULIB_MBSSEP.
42063         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
42064         * MODULES.html.sh (Internationalization functions): Add mbssep.
42065
42066 2007-02-05  Bruno Haible  <bruno@clisp.org>
42067
42068         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
42069         Optimize search in case of 1 delimiter.
42070
42071 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42072
42073         * lib/acl.h: Include sys/types.h before sys/acl.h.
42074
42075 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42076
42077         Merge upstream fix for glibc bugzilla #3957:
42078
42079         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
42080
42081         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
42082         bit for RE_HAT_LISTS_NOT_NEWLINE.
42083         (build_charclass_op): Remove bogus comment.
42084
42085 2007-02-05  Simon Josefsson  <simon@josefsson.org>
42086
42087         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
42088
42089 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42090
42091         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
42092         * lib/memmem.c [!defined _LIBC]: Include config.h.
42093
42094 2007-02-04  Bruno Haible  <bruno@clisp.org>
42095
42096         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
42097         warning message.
42098
42099 2007-02-04  Bruno Haible  <bruno@clisp.org>
42100
42101         New module mbstok_r.
42102         * modules/mbstok_r: New file.
42103         * lib/mbstok_r.c: New file.
42104         * lib/string_.h (strtok_r): Change argument names to match the
42105         comments. Add a conditional link warning.
42106         (mbstok_r): New declaration.
42107         * m4/mbstok_r.m4: New file.
42108         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42109         GNULIB_MBSTOK_R.
42110         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
42111         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
42112
42113 2007-02-04  Bruno Haible  <bruno@clisp.org>
42114
42115         New module mbsspn.
42116         * modules/mbsspn: New file.
42117         * lib/mbsspn.c: New file.
42118         * lib/string_.h (strspn): Add a conditional link warning.
42119         (mbsspn): New declaration.
42120         * m4/mbsspn.m4: New file.
42121         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42122         GNULIB_MBSSPN.
42123         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
42124         * MODULES.html.sh (Internationalization functions): Add mbsspn.
42125
42126 2007-02-04  Bruno Haible  <bruno@clisp.org>
42127
42128         New module mbspbrk.
42129         * modules/mbspbrk: New file.
42130         * lib/mbspbrk.c: New file.
42131         * lib/string_.h (strpbrk): Add a conditional link warning.
42132         (mbspbrk): New declaration.
42133         * m4/mbspbrk.m4: New file.
42134         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42135         GNULIB_MBSPBRK.
42136         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
42137         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
42138
42139 2007-02-04  Bruno Haible  <bruno@clisp.org>
42140
42141         New module mbscspn.
42142         * modules/mbscspn: New file.
42143         * lib/mbscspn.c: New file.
42144         * lib/string_.h (strcspn): Add a conditional link warning.
42145         (mbscspn): New declaration.
42146         * m4/mbscspn.m4: New file.
42147         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42148         GNULIB_MBSCSPN.
42149         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
42150         * MODULES.html.sh (Internationalization functions): Add mbscspn.
42151
42152 2007-02-04  Bruno Haible  <bruno@clisp.org>
42153
42154         New module mbscasestr, reduced goal of strcasestr.
42155         * modules/mbscasestr: New file.
42156         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
42157         (mbscasestr): Renamed from strcasestr.
42158         * lib/strcasestr.c: Don't include mbuiter.h.
42159         (strcasestr): Remove support for multibyte locales.
42160         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
42161         Change the conditional link warning.
42162         (mbscasestr): New declaration.
42163         * m4/mbscasestr.m4: New file.
42164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
42165         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
42166         REPLACE_STRCASESTR.
42167         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
42168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42169         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42170         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
42171         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
42172         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42173         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
42174         (Depends-on): Remove mbuiter.
42175         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
42176
42177 2007-02-04  Bruno Haible  <bruno@clisp.org>
42178
42179         Simplify handling of strncasecmp.
42180         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
42181         the conditional link warning.
42182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42183         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
42184         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
42185         * modules/strcase (configure.ac): Don't invoke
42186         gl_STRING_MODULE_INDICATOR.
42187         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
42188
42189 2007-02-04  Bruno Haible  <bruno@clisp.org>
42190
42191         New module mbscasecmp, reduced goal of strcasecmp.
42192         * modules/mbscasecmp: New file.
42193         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
42194         (mbscasecmp): Renamed from strcasecmp.
42195         * lib/strcasecmp.c: Don't include mbuiter.h.
42196         (strcasecmp): Remove support for multibyte locales.
42197         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
42198         Change the conditional link warning.
42199         (mbscasecmp): New declaration.
42200         * m4/mbscasecmp.m4: New file.
42201         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
42202         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
42203         REPLACE_STRCASECMP.
42204         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
42205         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42206         GNULIB_MBSCASECMP.
42207         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
42208         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
42209         * modules/strcase (Files): Remove m4/mbrtowc.m4.
42210         (Depends-on): Remove mbuiter.
42211         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
42212
42213 2007-02-04  Bruno Haible  <bruno@clisp.org>
42214
42215         New module mbsstr. Remove module strstr.
42216         * modules/mbsstr: New file.
42217         * modules/strstr: Remove file.
42218         * lib/mbsstr.c: Renamed from lib/strstr.c.
42219         (mbsstr): Renamed from strstr.
42220         * lib/string_.h (strstr): Remove declaration. Change the conditional
42221         link warning.
42222         (mbsstr): New declaration.
42223         * m4/mbsstr.m4: New file.
42224         * m4/strstr.m4: Remove file.
42225         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
42226         REPLACE_STRSTR.
42227         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
42228         Don't initialize GNULIB_STRSTR.
42229         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
42230         substitute GNULIB_STRSTR and REPLACE_STRSTR.
42231         * MODULES.html.sh (Internationalization functions): Add mbsstr.
42232         (Support for systems lacking ANSI C 89): Remove strstr.
42233
42234 2007-02-04  Bruno Haible  <bruno@clisp.org>
42235
42236         New module mbsrchr.
42237         * modules/mbsrchr: New file.
42238         * lib/mbsrchr.c: New file.
42239         * lib/string_.h (strrchr): Add a conditional link warning.
42240         (mbsrchr): New declaration.
42241         * m4/mbsrchr.m4: New file.
42242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42243         GNULIB_MBSRCHR.
42244         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
42245         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
42246
42247 2007-02-04  Bruno Haible  <bruno@clisp.org>
42248
42249         New module mbschr.
42250         * modules/mbschr: New file.
42251         * lib/mbschr.c: New file.
42252         * lib/string_.h (strchr): Add a conditional link warning.
42253         (mbschr): New declaration.
42254         * m4/mbschr.m4: New file.
42255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42256         GNULIB_MBSCHR.
42257         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
42258         * MODULES.html.sh (Internationalization functions): Add mbschr.
42259
42260 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42261
42262         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
42263
42264         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
42265
42266 2007-02-04  Bruno Haible  <bruno@clisp.org>
42267
42268         New module description section 'configure.ac-early'.
42269         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
42270         (func_get_autoconf_early_snippet): New function.
42271         (func_import, func_create_testdir): Use it. Remove special cases for
42272         modules 'extensions' and 'lock'.
42273         * modules/extensions (configure.ac-early): Require
42274         gl_USE_SYSTEM_EXTENSIONS.
42275         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
42276
42277 2007-02-04  Bruno Haible  <bruno@clisp.org>
42278
42279         Make use of gcj-4.3's -fsource and -ftarget option.
42280         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
42281         and if so try the options -fsource and -ftarget.
42282         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
42283         source_version, ftarget_option, target_version arguments.
42284         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
42285         (is_envjavac_oldgcj_14_14_usable): Renamed from
42286         is_envjavac_gcj_14_14_usable.
42287         (is_envjavac_oldgcj_14_13_usable): Renamed from
42288         is_envjavac_gcj_14_13_usable.
42289         (is_gcj_present): Update.
42290         (is_gcj_43, is_gcj43_usable): New functions.
42291         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
42292         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
42293         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
42294         try the options -fsource and -ftarget.
42295
42296 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42297
42298         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
42299         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
42300         larger value.
42301
42302 2007-02-03  Jim Meyering  <jim@meyering.net>
42303
42304         Give tools a better chance to allocate space for very large buffers.
42305         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
42306
42307         Make pwd and readlink work also when run with an unreadable parent dir
42308         on systems with openat support.
42309         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
42310         provided getcwd function, even when we have openat support.
42311         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
42312
42313 2007-02-02  Bruno Haible  <bruno@clisp.org>
42314
42315         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42316         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
42317         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
42318         portability problems if one of these functions is only used on specific
42319         platforms.
42320         Reported by Paul Eggert.
42321
42322 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
42323
42324         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
42325         is causing more trouble than it's curing.
42326         * lib/regex_internal.h (__mempcpy): Remove.
42327         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
42328         (and make the code a tad smaller to boot).
42329         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
42330
42331 2007-02-02  Jim Meyering  <jim@meyering.net>
42332
42333         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
42334         section, not in the Makefile.am: one.
42335
42336 2007-02-02  Eric Blake  <ebb9@byu.net>
42337
42338         * lib/strchrnul.c: Always include config.h first.
42339
42340         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
42341         gnulib strstr is not necessary here.
42342
42343 2007-02-02  Simon Josefsson  <simon@josefsson.org>
42344
42345         * m4/socklen.m4: Fix typo.
42346
42347 2007-02-02  Eric Blake  <ebb9@byu.net>
42348
42349         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
42350         * modules/netinet_in (Makefile.am): Likewise.
42351
42352 2007-02-01  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/string_.h (GL_LINK_WARNING): New macro.
42355         (strcasecmp, strstr, strcasestr): If provided by the system,
42356         conditionally define as a macro that leads to a warning instead of to
42357         an error.
42358         (strncasecmp): Conditionally define as a macro that leads to a warning.
42359
42360 2007-02-01  Karl Berry  <karl@gnu.org>
42361
42362         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
42363
42364 2007-02-01  Bruno Haible  <bruno@clisp.org>
42365
42366         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
42367         renamings.
42368
42369 2007-02-01  Eric Blake  <ebb9@byu.net>
42370
42371         * modules/regex (Depends-on): Revert dependence on mempcpy.
42372         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
42373         module's definition of mempcpy.
42374         Reported by Paul Eggert.
42375
42376 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42377
42378         * lib/string_.h: If the gnulib module XYZ is not present, undefine
42379         the symbol XYZ before redefining it.  This fixes a problem with
42380         programs that don't use XYZ, when compiled on systems that define
42381         XYZ to something else.
42382
42383 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
42384
42385         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
42386         occurs when "mkdir -m foo" creates a setgid directory that is (1)
42387         writeable to group or other and (2) is intended to have a special
42388         mode bit that is set or cleared.  In such a case, the directory
42389         should be neither group- nor other-writeable until the special
42390         mode bits are right.
42391
42392 2007-01-31  Eric Blake  <ebb9@byu.net>
42393
42394         * modules/mountlist (Depends-on): Add strstr.
42395
42396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
42397         bug.
42398         * modules/string (Makefile.am): Remove redundant replacement.
42399         * modules/regex (Depends-on): Add mempcpy.
42400
42401 2007-01-31  Bruno Haible  <bruno@clisp.org>
42402
42403         New module description field 'Link'.
42404         * gnulib-tool (func_usage): Document --extract-link-directive.
42405         (sed_extract_prog): Recognize 'Link' directive.
42406         (func_get_link_directive): New function.
42407         (func_import): Show summary of link directives.
42408         Handle --extract-link-directive option.
42409         * modules/acl (Link): New section.
42410         * modules/clock-time (Link): New section.
42411         * modules/euidaccess (Link): New section.
42412         * modules/gettext (Link): New section.
42413         * modules/iconv (Link): New section.
42414         * modules/lock (Link): New section.
42415         * modules/nanosleep (Link): New section.
42416         * modules/readline (Link): New section.
42417
42418 2007-01-27  Bruno Haible  <bruno@clisp.org>
42419
42420         Enforce the use of gnulib modules for unportable <string.h> functions.
42421         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
42422         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
42423         (gl_HEADER_STRING_H_BODY): Require it.
42424         * lib/string_.h: If the gnulib module XYZ is not present, redefine
42425         the symbol XYZ to one that gives a link error.
42426         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
42427         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
42428         * modules/mempcpy (configure.ac): Likewise.
42429         * modules/memrchr (configure.ac): Likewise.
42430         * modules/stpcpy (configure.ac): Likewise.
42431         * modules/stpncpy (configure.ac): Likewise.
42432         * modules/strcase (configure.ac): Likewise.
42433         * modules/strcasestr (configure.ac): Likewise.
42434         * modules/strchrnul (configure.ac): Likewise.
42435         * modules/strdup (configure.ac): Likewise.
42436         * modules/strndup (configure.ac): Likewise.
42437         * modules/strnlen (configure.ac): Likewise.
42438         * modules/strpbrk (configure.ac): Likewise.
42439         * modules/strsep (configure.ac): Likewise.
42440         * modules/strstr (configure.ac): Likewise.
42441         * modules/strtok_r (configure.ac): Likewise.
42442
42443 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
42444
42445         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
42446
42447 2007-01-30  Jim Meyering  <jim@meyering.net>
42448
42449         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
42450
42451 2007-01-29  Bruno Haible  <bruno@clisp.org>
42452
42453         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
42454         * lib/execute.c: Likewise.
42455         * lib/pipe.c: Likewise.
42456         * lib/printf-args.h: Likewise.
42457         * lib/printf-args.c: Likewise.
42458         * lib/printf-parse.c: Likewise.
42459         * lib/vasnprintf.c: Likewise.
42460
42461 2007-01-29  Eric Blake  <ebb9@byu.net>
42462
42463         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
42464         declaration.
42465
42466 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42467
42468         * lib/strptime.h (strptime): Use 'restrict' for args where
42469         POSIX requires this.
42470         * lib/strptime.c (strptime): Likewise.
42471         Change license notice from LGPL to GPL, since gnulib-tool will
42472         change this as needed.
42473         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
42474         defined.
42475         Include "strptime.h" first, to check interface.
42476         Do not #undef _LIBC and _NL_CURRENT.
42477         Do not include <stdlib.h>; no longer needed.
42478         Include "time_r.h" and declare ptime_locale_status
42479         only if _LIBC is not defined.
42480         (__P): Remove unused macro.
42481         (match_string): Bring back glibc version, but use it only if _LIBC
42482         is defined.
42483         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
42484         Remove unnecessary assertion and abort() call.
42485         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
42486         * m4/strptime.m4: Fix serial number comment.
42487         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
42488         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
42489         (Depends-on): Add time_r.
42490
42491 2007-01-29  Bruno Haible  <bruno@clisp.org>
42492
42493         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42494         strptime.
42495         * modules/strptime (Depends-on): Add stdbool.
42496         * lib/strptime.h: Include <time.h> always. Add comments.
42497
42498 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42499
42500         * modules/strptime: New file.
42501         * lib/strptime.h: New file.
42502         * lib/strptime.c: New file.
42503         * m4/strptime.m4: New file.
42504
42505 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42506
42507         * MODULES.html.sh: New module mpsort.
42508         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
42509
42510         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
42511         a circularity problem with HP-UX ia64 reported by Bob Proulx in
42512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
42513         All uses changed.
42514         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
42515         All uses changed.
42516         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
42517         to _Restrict_.
42518         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
42519         the parameter matches the prototype.
42520
42521 2007-01-28  Jim Meyering  <jim@meyering.net>
42522
42523         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
42524         sys/time.h here, reverting that part of the previous patch:
42525         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
42526
42527 2007-01-28  Bruno Haible  <bruno@clisp.org>
42528
42529         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
42530         value of $(SYS_TIME_H).
42531         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42532         remove it conditionally, too. [added by Jim Meyering]
42533         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42534         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42535         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42536         GETTIMEOFDAY_REPLACEMENT to 1.
42537
42538 2007-01-28  Bruno Haible  <bruno@clisp.org>
42539
42540         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42541         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42543         Set UNISTD_H instead of UNISTD_H2.
42544         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42545
42546 2007-01-28  Bruno Haible  <bruno@clisp.org>
42547
42548         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42549         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42550
42551 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42552
42553         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42554         (func_create_testdir): Ensure C locale for `grep' and `tr'
42555         character ranges.
42556         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42557         ACLOCAL_AMFLAGS parsing state machine.
42558
42559 2007-01-27  Bruno Haible  <bruno@clisp.org>
42560
42561         * modules/unistr/base: Update.
42562
42563 2007-01-27  Bruno Haible  <bruno@clisp.org>
42564
42565         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42566         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42567         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42568         modules/unistr/u32-mbtouc.
42569         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42570         * lib/unistr.h: Update.
42571         * lib/linebreak.c: Update.
42572         * modules/unistr/u32-mbtouc: Renamed from
42573         modules/unistr/u32-mbtouc-safe.
42574         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42575         * lib/unistr.h: Update.
42576         * lib/unistr/u32-to-u8.c: Update.
42577         * lib/unistr/u32-to-u16.c: Update.
42578
42579 2007-01-27  Bruno Haible  <bruno@clisp.org>
42580
42581         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42582         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42583         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42584         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42585         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42586         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42587         modules/unistr/u16-mbtouc.
42588         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42589         * lib/unistr.h: Update.
42590         * lib/linebreak.c: Update.
42591         * modules/linebreak: Update.
42592         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42593         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42594         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42595         * modules/unistr/u16-mbtouc: Renamed from
42596         modules/unistr/u16-mbtouc-safe.
42597         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42598         * lib/unistr.h: Update.
42599         * lib/unistr/u16-to-u8.c: Update.
42600         * modules/unistr/u16-to-u8: Update.
42601         * lib/unistr/u16-to-u32.c: Update.
42602         * modules/unistr/u16-to-u32: Update.
42603
42604 2007-01-27  Bruno Haible  <bruno@clisp.org>
42605
42606         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42607         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42608         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42609         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42610         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42611         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42612         modules/unistr/u8-mbtouc.
42613         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42614         * lib/unistr.h: Update.
42615         * lib/striconveh.c: Update.
42616         * modules/striconveh: Update.
42617         * lib/linebreak.c: Update.
42618         * modules/linebreak: Update.
42619         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42620         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42621         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42622         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42623         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42624         * lib/unistr.h: Update.
42625         * lib/striconveh.c: Update.
42626         * modules/striconveh: Update.
42627         * lib/unistr/u8-to-u16.c: Update.
42628         * modules/unistr/u8-to-u16: Update.
42629         * lib/unistr/u8-to-u32.c: Update.
42630         * modules/unistr/u8-to-u32: Update.
42631
42632 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42633
42634         Sync from Libtool.
42635         * lib/argz.c: Do not include strings.h nor memory.h, include
42636         string.h unconditionally.  Patch by Simon Josefsson.
42637
42638 2007-01-27  Bruno Haible  <bruno@clisp.org>
42639
42640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42641         from gl_HEADER_STRING_H_BODY.
42642         (gl_HEADER_STRING_H_BODY): Require it.
42643         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42644         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42645         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42646         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42647         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42648         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42650         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42651         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42652         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42653         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42654         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42655         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42656         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42657         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42658
42659 2007-01-27  Bruno Haible  <bruno@clisp.org>
42660
42661         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42662         check_PROGRAMS into noinst_PROGRAMS.
42663         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42664         check_PROGRAMS in this case.
42665         (func_import): Set for_test to false.
42666         (func_create_testdir): Set for_test to true.
42667
42668 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42669             Bruno Haible  <bruno@clisp.org>
42670
42671         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42672         (Depends-on): Add string.
42673         (Includes): Use <string.h> instead of strcasestr.h.
42674         * modules/string (Makefile.am): Also substitute the value of
42675         REPLACE_STRCASESTR.
42676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42677         assume strcasestr is declared in <string.h> not <strings.h>. Also
42678         set REPLACE_STRCASESTR.
42679         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42680         REPLACE_STRCASESTR.
42681         * lib/strcasestr.h: Remove file.
42682         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42683         * lib/string_.h (strcasestr): New declaration.
42684
42685 2007-01-27  Bruno Haible  <bruno@clisp.org>
42686
42687         * lib/string_.h: Use 'extern'.
42688
42689 2007-01-27  Jim Meyering  <jim@meyering.net>
42690
42691         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42692         of set-but-not-used local, "q".
42693
42694         * lib/mempcpy.c: Include <config.h> before <string.h>.
42695         This fixes a compilation error on HP-UX, due to the system's
42696         "restrict"-using mempcpy prototype.
42697
42698 2007-01-26  Bruno Haible  <bruno@clisp.org>
42699
42700         Small optimization.
42701         * lib/javacomp.c: Include c-strstr.h.
42702          (is_envjavac_gcj): Use c_strstr instead of strstr.
42703         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42704
42705 2007-01-26  Bruno Haible  <bruno@clisp.org>
42706
42707         * MODULES.html.sh (Unicode string functions): Add the new modules.
42708
42709         * modules/uniconv/u32-strconv-to-locale: New file.
42710         * lib/uniconv/u32-strconv-to-locale.c: New file.
42711
42712         * modules/uniconv/u16-strconv-to-locale: New file.
42713         * lib/uniconv/u16-strconv-to-locale.c: New file.
42714
42715         * modules/uniconv/u8-strconv-to-locale: New file.
42716         * lib/uniconv/u8-strconv-to-locale.c: New file.
42717
42718         * modules/uniconv/u32-strconv-from-locale: New file.
42719         * lib/uniconv/u32-strconv-from-locale.c: New file.
42720
42721         * modules/uniconv/u16-strconv-from-locale: New file.
42722         * lib/uniconv/u16-strconv-from-locale.c: New file.
42723
42724         * modules/uniconv/u8-strconv-from-locale: New file.
42725         * lib/uniconv/u8-strconv-from-locale.c: New file.
42726
42727         * modules/uniconv/u32-strconv-to-enc: New file.
42728         * lib/uniconv/u32-strconv-to-enc.c: New file.
42729         * modules/uniconv/u32-strconv-to-enc-tests: New file.
42730         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
42731
42732         * modules/uniconv/u16-strconv-to-enc: New file.
42733         * lib/uniconv/u16-strconv-to-enc.c: New file.
42734         * lib/uniconv/u-strconv-to-enc.h: New file.
42735         * modules/uniconv/u16-strconv-to-enc-tests: New file.
42736         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
42737
42738         * modules/uniconv/u8-strconv-to-enc: New file.
42739         * lib/uniconv/u8-strconv-to-enc.c: New file.
42740         * modules/uniconv/u8-strconv-to-enc-tests: New file.
42741         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
42742
42743         * modules/uniconv/u32-strconv-from-enc: New file.
42744         * lib/uniconv/u32-strconv-from-enc.c: New file.
42745         * modules/uniconv/u32-strconv-from-enc-tests: New file.
42746         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
42747
42748         * modules/uniconv/u16-strconv-from-enc: New file.
42749         * lib/uniconv/u16-strconv-from-enc.c: New file.
42750         * modules/uniconv/u16-strconv-from-enc-tests: New file.
42751         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
42752
42753         * modules/uniconv/u8-strconv-from-enc: New file.
42754         * lib/uniconv/u8-strconv-from-enc.c: New file.
42755         * lib/uniconv/u-strconv-from-enc.h: New file.
42756         * modules/uniconv/u8-strconv-from-enc-tests: New file.
42757         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
42758
42759         * modules/uniconv/u32-conv-from-enc: New file.
42760         * lib/uniconv/u32-conv-from-enc.c: New file.
42761         * modules/uniconv/u32-conv-from-enc-tests: New file.
42762         * tests/uniconv/test-u32-conv-from-enc.c: New file.
42763
42764         * modules/uniconv/u16-conv-from-enc: New file.
42765         * lib/uniconv/u16-conv-from-enc.c: New file.
42766         * lib/uniconv/u-conv-from-enc.h: New file.
42767         * modules/uniconv/u16-conv-from-enc-tests: New file.
42768         * tests/uniconv/test-u16-conv-from-enc.c: New file.
42769
42770         * modules/uniconv/u8-conv-from-enc: New file.
42771         * lib/uniconv/u8-conv-from-enc.c: New file.
42772         * modules/uniconv/u8-conv-from-enc-tests: New file.
42773         * tests/uniconv/test-u8-conv-from-enc.c: New file.
42774
42775         * modules/uniconv/base: New file.
42776         * lib/uniconv.h: New file.
42777
42778 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
42779
42780         * doc/gnulib-tool.texi (Initial import): Update to match current
42781         behavior with strdup module.
42782         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
42783         * lib/memmem.h: Remove; all uses removed.  This is now done
42784         by <string.h>.
42785         * lib/mempcpy.h: Likewise.
42786         * lib/memrchr.h: Likewise.
42787         * lib/stpcpy.h: Likewise.
42788         * lib/stpncpy.h: Likewise.
42789         * lib/strcase.h: Likewise.
42790         * lib/strchrnul.h: Likewise.
42791         * lib/strdup.h: Likewise.
42792         * lib/strndup.h: Likewise.
42793         * lib/strnlen.h: Likewise.
42794         * lib/strpbrk.h: Likewise.
42795         * lib/strsep.h: Likewise.
42796         * lib/strstr.h: Likewise.
42797         * lib/strtok_r.h: Likewise.
42798         * lib/string_.h: New file.
42799         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
42800         Rely on <string.h> instead.
42801         * lib/canon-host.c: Likewise.
42802         * lib/chdir-long.c: Likewise.
42803         * lib/concatpath.c: Likewise.
42804         * lib/exclude.c: Likewise.
42805         * lib/fchdir.c: Likewise.
42806         * lib/getaddrinfo.c: Likewise.
42807         * lib/getcwd.c: Likewise.
42808         * lib/getsubopt.c: Likewise.
42809         * lib/glob.c: Likewise.
42810         * lib/hard-locale.c: Likewise.
42811         * lib/iconvme.c: Likewise.
42812         * lib/javacomp.c: Likewise.
42813         * lib/mempcpy.c: Likewise.
42814         * lib/memrchr.c: Likewise.
42815         * lib/regex_internal.h: Likewise.
42816         * lib/stpncpy.c: Likewise.
42817         * lib/strcasecmp.c: Likewise.
42818         * lib/strchrnul.c: Likewise.
42819         * lib/strdup.c: Likewise.
42820         * lib/striconv.c: Likewise.
42821         * lib/striconveh.c: Likewise.
42822         * lib/striconveha.c: Likewise.
42823         * lib/strncasecmp.c: Likewise.
42824         * lib/strndup.c: Likewise.
42825         * lib/strnlen.c: Likewise.
42826         * lib/strsep.c: Likewise.
42827         * lib/strstr.c: Likewise.
42828         * lib/strtok_r.c: Likewise.
42829         * lib/userspec.c: Likewise.
42830         * lib/w32spawn.h: Likewise.
42831         * lib/xstrndup.c: Likewise.
42832         * lib/mountlist.c (strstr): Remove decl.
42833         * m4/string_h.m4: New file.
42834         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
42835         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
42836         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
42837         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
42838         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
42839         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
42840         Set REPLACE_STRCASECMP if necessary.
42841         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
42842         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
42843         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
42844         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
42845         HAVE_DECL_STRDUP if necessary.
42846         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
42847         since gl_FUNC_STRNDUP does that now.
42848         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
42849         Check for decl here...
42850         (gl_PREREQ_STRNLEN): ... not here.
42851         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
42852         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
42853         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
42854         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
42855         necessary.
42856         * modules/string: New file.
42857         * modules/memmem (Files): Remove special-purpose include file.
42858         (Depends-on): Add string.
42859         (Include): Include <string.h>, not the removed file.
42860         * modules/mempcpy: Likewise.
42861         * modules/memrchr: Likewise.
42862         * modules/stpcpy: Likewise.
42863         * modules/stpncpy: Likewise.
42864         * modules/strcase: Likewise.
42865         * modules/strchrnul: Likewise.
42866         * modules/strdup: Likewise.
42867         * modules/strndup: Likewise.
42868         * modules/strnlen: Likewise.
42869         * modules/strpbrk: Likewise.
42870         * modules/strsep: Likewise.
42871         * modules/strstr: Likewise.
42872         * modules/strtok_r: Likewise.
42873         * tests/test-dirname.c: Don't include "strdup.h", since
42874         <string.h> now suffices.
42875         * tests/test-memmem.c: Don't include "memmem.h", since
42876         <string.h> now suffices.
42877
42878 2007-01-25  Bruno Haible  <bruno@clisp.org>
42879
42880         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
42881         *resultp is 0.
42882
42883         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
42884         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
42885         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
42886         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
42887
42888         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
42889         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
42890         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
42891         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
42892         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
42893         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
42894
42895 2007-01-24  Bruno Haible  <bruno@clisp.org>
42896
42897         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
42898         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
42899         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
42900         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
42901         gl_FUNC_FTS_CORE.
42902         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
42903         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
42904         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42905         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
42906         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
42907         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
42908         gl_FUNC_FCHOWNAT.
42909         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
42910         gl_FUNC_STRFTIME.
42911         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
42912         Reported by Ralf Wildenhues.
42913
42914 2007-01-24  Bruno Haible  <bruno@clisp.org>
42915
42916         Drop AC_REQUIRE calls that are redundant with the module dependencies.
42917         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
42918         gl_GETADDRINFO.
42919         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
42920         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
42921         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
42922
42923 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
42924
42925         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
42926         Don't use 'exit'; just return from 'main'.
42927         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
42928
42929         * lib/fnmatch_.h: Readjust white space and comments to match
42930         glibc, to avoid spurious diffs.
42931
42932 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42933
42934         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
42935         2004-12-01 change by Jakub Jelinek, since this code won't compile
42936         if !LIBC.  Problem reported by Bob Proulx.
42937
42938 2007-01-23  Bruno Haible  <bruno@clisp.org>
42939
42940         * lib/striconveh.c: Include c-strcaseeq.h.
42941         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
42942         * modules/striconveh (Depends-on): Add c-strcaseeq.
42943
42944 2007-01-23  Bruno Haible  <bruno@clisp.org>
42945
42946         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
42947
42948         * modules/c-strcaseeq: New file.
42949         * lib/c-strcaseeq.h: New file.
42950
42951         * modules/streq: New file.
42952         * lib/streq.h: New file.
42953
42954 2007-01-23  Bruno Haible  <bruno@clisp.org>
42955
42956         * modules/striconveha-tests: New file.
42957         * tests/test-striconveha.c: New file.
42958
42959         * lib/striconveha.h: Include <stdbool.h>.
42960         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
42961         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
42962         (mem_iconveha_notranslit): Renamed from mem_iconveha.
42963         (mem_iconveha): New function.
42964         (str_iconveha_notranslit): Renamed from str_iconveha.
42965         (str_iconveha): New function.
42966         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
42967         c-strcase.
42968
42969 2007-01-23  Bruno Haible  <bruno@clisp.org>
42970
42971         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
42972         encodings without forgiving before trying any encoding with handler.
42973         (str_iconveha): Try all encodings without forgiving before trying any
42974         encoding with handler.
42975
42976 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42977
42978         Import the following changes from libc.
42979
42980         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
42981
42982         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
42983
42984         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42985
42986         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
42987         normal_bracket label.
42988
42989         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
42990
42991         [BZ #361]
42992         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
42993         to normal_bracket after fetching the next character.
42994
42995 2007-01-22  Bruno Haible  <bruno@clisp.org>
42996
42997         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
42998         argument.
42999         * lib/striconveh.c (iconv_carefully_1): New function.
43000         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
43001         argument.
43002         (str_cd_iconveh): Update.
43003         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
43004         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
43005         * tests/test-striconveh.c (MAGIC): New macro.
43006         (new_offsets): New function.
43007         (main): Test call with and without offsets.
43008
43009 2007-01-22  Bruno Haible  <bruno@clisp.org>
43010
43011         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
43012         * modules/sys_select (Makefile.am): Likewise.
43013         * modules/sys_socket (Makefile.am): Likewise.
43014         * modules/sys_time (Makefile.am): Likewise.
43015
43016 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
43017
43018         * modules/gettimeofday (License): Change from GPL to LGPL, since
43019         gettimeofday is a library function.
43020
43021 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43022
43023         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
43024
43025 2007-01-21  Bruno Haible  <bruno@clisp.org>
43026
43027         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
43028
43029 2007-01-21  Bruno Haible  <bruno@clisp.org>
43030
43031         * modules/striconveha: New file.
43032         * lib/striconveha.h: New file.
43033         * lib/striconveha.c: New file.
43034         * MODULES.html.sh (Internationalization functions): Add striconveha.
43035         * lib/striconv.c (str_iconv): Optimize the case of an empty input
43036         string.
43037         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
43038
43039 2007-01-21  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
43042         * lib/striconveh.c (str_iconveh): Likewise.
43043
43044 2007-01-21  Bruno Haible  <bruno@clisp.org>
43045
43046         * lib/striconveh.h (mem_iconveh): New declaration.
43047         * lib/striconveh.c (mem_iconveh): New function.
43048         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
43049
43050 2007-01-21  Bruno Haible  <bruno@clisp.org>
43051
43052         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
43053
43054         * lib/striconveh.h (mem_cd_iconveh): Change specification.
43055         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
43056         original result buffer.
43057         (str_cd_iconveh): Update.
43058         * tests/test-striconveh.c (main): Update.
43059
43060         * lib/striconv.h (mem_cd_iconv): Change specification.
43061         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
43062         result buffer.
43063         (str_cd_iconv): Update.
43064         * tests/test-striconv.c (main): Update.
43065
43066 2007-01-21  Bruno Haible  <bruno@clisp.org>
43067
43068         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
43069
43070 2007-01-20  Jim Meyering  <jim@meyering.net>
43071
43072         * lib/userspec.c (parse_with_separator): If a user or group string
43073         starts with "+", skip the corresponding name-to-ID look-up, since
43074         such a look-up must fail: user and group names may not include "+".
43075
43076 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
43077
43078         * lib/poll.c: Include sys/time.h and time.h unconditionally,
43079         since we now assume the sys_time module.
43080         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
43081         check for sys/time.h; no longer needed.
43082         * modules/poll (Depends-on): Depend on sys_time.
43083
43084 2007-01-18  Bruno Haible  <bruno@clisp.org>
43085
43086         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
43087         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43088
43089         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
43090         gettimeofday.
43091
43092         * tests/test-gettimeofday.c: Include <time.h>.
43093         (dummy): Remove variable.
43094
43095         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
43096         gl_HEADER_SYS_TIME_H.
43097         (gl_HEADER_SYS_TIME_H): New macro.
43098
43099         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
43100         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
43102         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
43103         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43104         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
43105         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
43106         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43107         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
43108         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
43109         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43110
43111         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
43112         last change; it caused a compilation error when cross-compiling to
43113         Cygwin.
43114
43115 2007-01-18  Jim Meyering  <jim@meyering.net>
43116
43117         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
43118         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
43119         than the race-prone "test -d sys || mkdir sys".
43120         (configure.ac): Use AC_PROG_MKDIR_P.
43121         * modules/sys_select: Likewise.
43122         * modules/sys_socket: Likewise.
43123         * modules/sys_time: Likewise.
43124
43125 2007-01-18  Eric Blake  <ebb9@byu.net>
43126
43127         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
43128         replace gettimeofday.
43129         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
43130         name, to avoid infinite recursion.
43131
43132 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
43133
43134         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
43135         module sys_time.
43136         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
43137         assume timespec.h defines struct timeval.
43138         * lib/settime.c: Likewise.
43139         * lib/utimens.c: Likewise.
43140         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
43141         since we now assume the gettimeofday module.
43142         * lib/tempname.c (__gen_tempname): Likewise.
43143         * lib/gettimeofday.h: Remove.
43144         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
43145         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
43146         Include <time.h>, for 'time()'.
43147         (localtime_buffer_addr): Also use this workaround if
43148         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
43149         to simplify the uses.  All uses changed.
43150         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
43151         that #undef is inside {}, and 'const' follows type name consistently.
43152         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
43153         (gettimeofday): Do not use the maximum possible value for
43154         tv->tv_usec, since that might break usages other than ls.c.
43155         Instead, we'll leave ls.c alone.  This undoes today's patch
43156         by Bruno.  Add a compile-time warning for 1s-clock resolution;
43157         we've never observed the problem but might as well keep the
43158         canary.
43159         * lib/nanosleep.c: Include timespec.h first, for interface check.
43160         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
43161         now assume the sys_time module.
43162         * lib/tempname.c: Likewise.
43163         * lib/timespec.h: Likewise.
43164         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
43165         needed.
43166         * lib/strftime.c: Likewise.
43167         * lib/timespec.h: Likewise.
43168         * lib/posixtm.c: Include posixtm.h first, for interface check.
43169         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
43170         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
43171         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
43172         * lib/sys_time_.h: New file.
43173         * lib/timespec.h (struct timespec): Use long int, not long.
43174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43175         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
43176         Remove obsolescent call to AC_HEADER_TIME.
43177         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43179         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43180         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
43181         Likewise.
43182         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
43183         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
43184         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
43185         into the sys_time module.  Check for gettimeofday just once.
43186         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
43187         for gettimeofday signature to just check the signature.  Merely
43188         compile it, since linking doesn't test signature.  Improve test for
43189         whether gettimeofday.o is actually needed.
43190         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
43191         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
43192         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
43193         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43194         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
43195         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
43196         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
43197         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
43198         than worrying about sys/time.h.
43199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43200         Don't bother worrying about TIME_WITH_SYS_TIME.
43201         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43202         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
43203         * m4/sys_time_h.m4: New file.
43204         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
43205         Don't include sys/time.h.  Return from main rather than exiting.
43206         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
43207         all uses changed.
43208         * modules/gethrxtime (Depends-on): Add sys_time.
43209         * modules/gettime (Depends-on): Likewise.
43210         * modules/gettimeofday (Depends-on): Likewise.
43211         * modules/nanosleep (Depends-on): Likewise.
43212         * modules/settime (Depends-on): Likewise.
43213         * modules/tempname (Depends-on): Likewise.
43214         * modules/utimens (Depends-on): Likewise.
43215         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
43216         (Include:) Change back to <sys/time.h>.
43217         (Maintainer:) Add self.
43218         * modules/sys_time: New file.
43219         * modules/tempname (Depends-on): Add gettimeofday.
43220         * tests/test-gettimeofday.c: Include <sys/time.h>
43221         rather than gettimeofday.h.
43222
43223 2007-01-17  Bruno Haible  <bruno@clisp.org>
43224
43225         * gnulib-tool (func_get_license): Revert last patch. Instead, let
43226         the license default to GPL.
43227         (func_create_testdir): Don't complain if a module is LGPL and its
43228         tests module depends on GPLed modules.
43229
43230 2007-01-17  Bruno Haible  <bruno@clisp.org>
43231
43232         * lib/gettimeofday.c (gettimeofday): Add code for the case
43233         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
43234         maximum possible value for tv->tv_usec, rather than the minimum one.
43235
43236 2005-10-08  Martin Lambers  <marlam@marlam.de>
43237 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43238 2007-01-16  Bruno Haible  <bruno@clisp.org>
43239
43240         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
43241         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
43242         gl_FUNC_GETTIMEOFDAY.
43243         (Include): Add gettimeofday.h.
43244         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
43245         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
43246         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
43247         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
43248         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
43249         * lib/gettimeofday.h: New file.
43250         * lib/gettimeofday.c: Include <sys/timeb.h>.
43251         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
43252         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43253         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
43254         fall back on time().
43255
43256         * tests/test-gettimeofday.c: New file.
43257         * modules/gettimeofday-tests: New file.
43258
43259 2007-01-16  Eric Blake  <ebb9@byu.net>
43260
43261         * modules/fnmatch (Depends-on): Depend on wchar.
43262         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
43263         * m4/fnmatch.m4: Likewise.
43264         * modules/mbchar (Makefile.am): Assume <wchar.h>.
43265         * m4/mbchar.m4: Likewise.
43266         * modules/mbswidth (Depends-on): Depend on wchar.
43267         * lib/mbswidth.c: Assume <wchar.h>.
43268         * m4/mbswidth.m4: Likewise.
43269         * modules/quotearg (Depends-on): Depend on wchar.
43270         * lib/quotearg.c: Assume <wchar.h>.
43271         * m4/quotearg.m4: Likewise.
43272         * modules/regex (Depends-on): Depend on wchar.
43273         * lib/regex_internal.h: Assume <wchar.h>.
43274         * m4/regex.m4: Likewise.
43275         * modules/stdint (Depends-on): Depend on wchar.
43276         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
43277         * m4/stdint.m4: Likewise.
43278         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
43279         * modules/strftime (Depends-on): Depend on wchar.
43280         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
43281         * modules/strtol (Depends-on): Depend on wchar.
43282         * lib/strtol.c: Assume <wchar.h>.
43283         * modules/wcwidth (Depends-on): Depend on wchar.
43284         * lib/wcwidth.h: Assume <wchar.h>.
43285         * m4/wcwidth.m4: Likewise.
43286
43287 2007-01-16  Bruno Haible  <bruno@clisp.org>
43288
43289         * modules/csharpexec-script: New, created from...
43290         * modules/csharpexec: ... this.
43291
43292 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43293
43294         * modules/javaexec-script: New, created from...
43295         * modules/javaexec: ... this.
43296
43297 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43298
43299         * modules/poll (Dependencies): Add sys_select.
43300
43301 2007-01-15  Jim Meyering  <jim@meyering.net>
43302
43303         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
43304         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
43305         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
43306         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
43307
43308 2007-01-15  Bruno Haible  <bruno@clisp.org>
43309
43310         * modules/striconveh: New file.
43311         * lib/striconveh.h: New file.
43312         * lib/striconveh.c: New file.
43313         * MODULES.html.sh (Internationalization functions): Add striconveh.
43314
43315         * modules/striconveh-tests: New file.
43316         * tests/test-striconveh.c: New file.
43317
43318 2007-01-15  Bruno Haible  <bruno@clisp.org>
43319
43320         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
43321         not from GNU libiconv or GNU libc.
43322
43323 2007-01-15  Bruno Haible  <bruno@clisp.org>
43324
43325         * doc/gnulib-intro.texi (Copyright): Explain the different license
43326         terms for module descriptions, autoconf macros, tests, documentation.
43327
43328 2007-01-14  Bruno Haible  <bruno@clisp.org>
43329
43330         * modules/striconv-tests: New file.
43331         * tests/test-striconv.c: New file.
43332
43333 2007-01-14  Bruno Haible  <bruno@clisp.org>
43334
43335         * modules/iconv-tests: New file.
43336         * tests/test-iconv.c: New file.
43337
43338 2007-01-14  Bruno Haible  <bruno@clisp.org>
43339
43340         * gnulib-tool (func_get_license): For test modules, use the license of
43341         the main module.
43342
43343 2007-01-14  Bruno Haible  <bruno@clisp.org>
43344
43345         * modules/iconv (Include): Clarify that <iconv.h> can only be included
43346         if iconv is found to exist.
43347
43348 2007-01-14  Bruno Haible  <bruno@clisp.org>
43349
43350         * modules/c-ctype-tests: New file.
43351         * tests/test-c-ctype.c: New file.
43352
43353 2007-01-14  Bruno Haible  <bruno@clisp.org>
43354
43355         * modules/binary-io-tests: New file.
43356         * tests/test-binary-io.sh: New file.
43357         * tests/test-binary-io.c: New file.
43358
43359 2007-01-14  Bruno Haible  <bruno@clisp.org>
43360
43361         * modules/array-oset-tests: New file.
43362         * tests/test-array_oset.c: New file.
43363
43364 2007-01-14  Bruno Haible  <bruno@clisp.org>
43365
43366         * modules/array-list-tests: New file.
43367         * tests/test-array_list.c: New file.
43368
43369 2007-01-14  Bruno Haible  <bruno@clisp.org>
43370
43371         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
43372         and make.
43373         Reported by Simon Josefsson in
43374         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
43375
43376 2007-01-14  Bruno Haible  <bruno@clisp.org>
43377
43378         * modules/allocsa-tests: New file.
43379         * tests/test-allocsa.c: New file.
43380
43381 2007-01-14  Bruno Haible  <bruno@clisp.org>
43382
43383         * modules/fchdir (Depends-on): Add absolute-header.
43384         * modules/unistd (Depends-on): Likewise.
43385
43386 2006-12-30  Bruno Haible  <bruno@clisp.org>
43387
43388         * modules/fchdir: New file.
43389         * modules/unistd (Files): Add lib/unistd_.h.
43390         (Makefile.am): Generate unistd.h from unistd_.h.
43391         * lib/fchdir.c: New file.
43392         * lib/dirent_.h: New file.
43393         * lib/unistd_.h: New file.
43394         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
43395         * m4/fchdir.m4: New file.
43396         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
43397         (gl_HEADER_UNISTD): Invoke it.
43398         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
43399         function.
43400         * lib/backupfile.c (opendir, closedir): Undefine.
43401         * lib/chown.c (open, close): Undefine.
43402         * lib/clean-temp.c (open, close): Undefine.
43403         * lib/copy-file.c (open, close): Undefine.
43404         * lib/execute.c (open, close): Undefine.
43405         * lib/fsusage.c (open, close): Undefine.
43406         * lib/gc-gnulib.c (open, close): Undefine.
43407         * lib/getcwd.c (opendir, closedir): Undefine.
43408         * lib/glob.c (opendir, closedir): Undefine.
43409         * lib/javacomp.c (open, close): Undefine.
43410         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
43411         * lib/openat-proc.c (open, close): Undefine.
43412         * lib/pagealign_alloc.c (open, close): Undefine.
43413         * lib/pipe.c (open, close): Undefine.
43414         * lib/progreloc.c (open, close): Undefine.
43415         * lib/savedir.c (opendir, closedir): Undefine.
43416         * lib/utime.c (open, close): Undefine.
43417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
43418
43419 2007-01-10  Bruno Haible  <bruno@clisp.org>
43420
43421         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
43422
43423 2007-01-12  Eric Blake  <ebb9@byu.net>
43424
43425         Provide a robust <wchar.h>.  Further simplifications are now
43426         possible in other modules, but not included here.
43427         * modules/wchar: New module.
43428         * m4/wchar.m4: New file.
43429         * lib/wchar_.h: Likewise.
43430         * modules/mbchar (Depends-on): Depend on wchar, as the first use
43431         of the new module.
43432         * MODULES.html.sh (Extended multibyte and wide character utilities):
43433         New section.
43434
43435 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
43436
43437         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
43438         to a reasonable default for memory allocation.
43439         (xreadlink): Don't allocate a huge buffer, to work around a buggy
43440         file system that reports garbage st_size values for symlinks.
43441         Problem reported by Liyang Hu.
43442
43443 2007-01-11  Simon Josefsson  <simon@josefsson.org>
43444
43445         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
43446         Emacs .#* auto-save files).
43447
43448 2007-01-11  Bruno Haible  <bruno@clisp.org>
43449
43450         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
43451         directory.
43452
43453 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43454
43455         Use @...@ consistently in lib/wctype_.h.
43456         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
43457         on it being set to 1 or 0.
43458         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
43459         go back to AC_SUBSTing it.
43460         * modules/wctype (Makefile.am): Undo previous change.
43461
43462 2007-01-10  Eric Blake  <ebb9@byu.net>
43463
43464         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
43465         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
43466         * modules/wctype (Makefile.am): Likewise.
43467         Reported by Chris McGuire.
43468
43469 2007-01-10  Jim Meyering  <jim@meyering.net>
43470
43471         fts.c: a small readability/maintainability improvement
43472         * lib/fts.c (fts_read): Make this code slightly more readable and
43473         maintainable by hoisting the "sp->fts_cur = p" assignments to
43474         immediately follow the statements that set P.  Derived from
43475         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
43476
43477 2007-01-10  Eric Blake  <ebb9@byu.net>
43478
43479         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
43480         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
43481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43482         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43483         Reported by Chris McGuire.
43484
43485 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43486
43487         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
43488         in sed script.
43489
43490 2007-01-09  Bruno Haible  <bruno@clisp.org>
43491
43492         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
43493         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
43494         variables.
43495         (func_module): Use them.
43496
43497 2007-01-09  Bruno Haible  <bruno@clisp.org>
43498
43499         * modules/unistr/base: New file.
43500         * lib/unistr.h: New file.
43501
43502         * modules/unistr/u8-to-u16: New file.
43503         * lib/unistr/u8-to-u16.c: New file.
43504
43505         * modules/unistr/u8-to-u32: New file.
43506         * lib/unistr/u8-to-u32.c: New file.
43507
43508         * modules/unistr/u16-to-u8: New file.
43509         * lib/unistr/u16-to-u8.c: New file.
43510
43511         * modules/unistr/u16-to-u32: New file.
43512         * lib/unistr/u16-to-u32.c: New file.
43513
43514         * modules/unistr/u32-to-u8: New file.
43515         * lib/unistr/u32-to-u8.c: New file.
43516
43517         * modules/unistr/u32-to-u16: New file.
43518         * lib/unistr/u32-to-u16.c: New file.
43519
43520         * modules/unistr/u8-check: New file.
43521         * modules/unistr/u16-check: New file.
43522         * modules/unistr/u32-check: New file.
43523         * lib/unistr/u8-check.c: New file.
43524         * lib/unistr/u16-check.c: New file.
43525         * lib/unistr/u32-check.c: New file.
43526
43527         * modules/unistr/u8-chr: New file.
43528         * modules/unistr/u16-chr: New file.
43529         * modules/unistr/u32-chr: New file.
43530         * lib/unistr/u8-chr.c: New file.
43531         * lib/unistr/u16-chr.c: New file.
43532         * lib/unistr/u32-chr.c: New file.
43533
43534         * modules/unistr/u8-cmp: New file.
43535         * modules/unistr/u16-cmp: New file.
43536         * modules/unistr/u32-cmp: New file.
43537         * lib/unistr/u8-cmp.c: New file.
43538         * lib/unistr/u16-cmp.c: New file.
43539         * lib/unistr/u32-cmp.c: New file.
43540
43541         * modules/unistr/u8-cpy: New file.
43542         * modules/unistr/u16-cpy: New file.
43543         * modules/unistr/u32-cpy: New file.
43544         * lib/unistr/u8-cpy.c: New file.
43545         * lib/unistr/u16-cpy.c: New file.
43546         * lib/unistr/u32-cpy.c: New file.
43547         * lib/unistr/u-cpy.h: New file.
43548
43549         * modules/unistr/u8-cpy-alloc: New file.
43550         * modules/unistr/u16-cpy-alloc: New file.
43551         * modules/unistr/u32-cpy-alloc: New file.
43552         * lib/unistr/u8-cpy-alloc.c: New file.
43553         * lib/unistr/u16-cpy-alloc.c: New file.
43554         * lib/unistr/u32-cpy-alloc.c: New file.
43555         * lib/unistr/u-cpy-alloc.h: New file.
43556
43557         * modules/unistr/u8-endswith: New file.
43558         * modules/unistr/u16-endswith: New file.
43559         * modules/unistr/u32-endswith: New file.
43560         * lib/unistr/u8-endswith.c: New file.
43561         * lib/unistr/u16-endswith.c: New file.
43562         * lib/unistr/u32-endswith.c: New file.
43563         * lib/unistr/u-endswith.h: New file.
43564
43565         * modules/unistr/u8-mblen: New file.
43566         * modules/unistr/u16-mblen: New file.
43567         * modules/unistr/u32-mblen: New file.
43568         * lib/unistr/u8-mblen.c: New file.
43569         * lib/unistr/u16-mblen.c: New file.
43570         * lib/unistr/u32-mblen.c: New file.
43571
43572         * modules/unistr/u8-mbtouc: New file.
43573         * modules/unistr/u16-mbtouc: New file.
43574         * modules/unistr/u32-mbtouc: New file.
43575         * lib/unistr/u8-mbtouc.c: New file.
43576         * lib/unistr/u16-mbtouc.c: New file.
43577         * lib/unistr/u32-mbtouc.c: New file.
43578
43579         * modules/unistr/u8-mbtouc-safe: New file.
43580         * modules/unistr/u16-mbtouc-safe: New file.
43581         * modules/unistr/u32-mbtouc-safe: New file.
43582         * lib/unistr/u8-mbtouc-safe.c: New file.
43583         * lib/unistr/u16-mbtouc-safe.c: New file.
43584         * lib/unistr/u32-mbtouc-safe.c: New file.
43585
43586         * modules/unistr/u8-move: New file.
43587         * modules/unistr/u16-move: New file.
43588         * modules/unistr/u32-move: New file.
43589         * lib/unistr/u8-move.c: New file.
43590         * lib/unistr/u16-move.c: New file.
43591         * lib/unistr/u32-move.c: New file.
43592         * lib/unistr/u-move.h: New file.
43593
43594         * modules/unistr/u8-next: New file.
43595         * modules/unistr/u16-next: New file.
43596         * modules/unistr/u32-next: New file.
43597         * lib/unistr/u8-next.c: New file.
43598         * lib/unistr/u16-next.c: New file.
43599         * lib/unistr/u32-next.c: New file.
43600
43601         * modules/unistr/u8-prev: New file.
43602         * modules/unistr/u16-prev: New file.
43603         * modules/unistr/u32-prev: New file.
43604         * lib/unistr/u8-prev.c: New file.
43605         * lib/unistr/u16-prev.c: New file.
43606         * lib/unistr/u32-prev.c: New file.
43607
43608         * modules/unistr/u8-set: New file.
43609         * modules/unistr/u16-set: New file.
43610         * modules/unistr/u32-set: New file.
43611         * lib/unistr/u8-set.c: New file.
43612         * lib/unistr/u16-set.c: New file.
43613         * lib/unistr/u32-set.c: New file.
43614         * lib/unistr/u-set.h: New file.
43615
43616         * modules/unistr/u8-startswith: New file.
43617         * modules/unistr/u16-startswith: New file.
43618         * modules/unistr/u32-startswith: New file.
43619         * lib/unistr/u8-startswith.c: New file.
43620         * lib/unistr/u16-startswith.c: New file.
43621         * lib/unistr/u32-startswith.c: New file.
43622         * lib/unistr/u-startswith.h: New file.
43623
43624         * modules/unistr/u8-stpcpy: New file.
43625         * modules/unistr/u16-stpcpy: New file.
43626         * modules/unistr/u32-stpcpy: New file.
43627         * lib/unistr/u8-stpcpy.c: New file.
43628         * lib/unistr/u16-stpcpy.c: New file.
43629         * lib/unistr/u32-stpcpy.c: New file.
43630         * lib/unistr/u-stpcpy.h: New file.
43631
43632         * modules/unistr/u8-stpncpy: New file.
43633         * modules/unistr/u16-stpncpy: New file.
43634         * modules/unistr/u32-stpncpy: New file.
43635         * lib/unistr/u8-stpncpy.c: New file.
43636         * lib/unistr/u16-stpncpy.c: New file.
43637         * lib/unistr/u32-stpncpy.c: New file.
43638         * lib/unistr/u-stpncpy.h: New file.
43639
43640         * modules/unistr/u8-strcat: New file.
43641         * modules/unistr/u16-strcat: New file.
43642         * modules/unistr/u32-strcat: New file.
43643         * lib/unistr/u8-strcat.c: New file.
43644         * lib/unistr/u16-strcat.c: New file.
43645         * lib/unistr/u32-strcat.c: New file.
43646         * lib/unistr/u-strcat.h: New file.
43647
43648         * modules/unistr/u8-strchr: New file.
43649         * modules/unistr/u16-strchr: New file.
43650         * modules/unistr/u32-strchr: New file.
43651         * lib/unistr/u8-strchr.c: New file.
43652         * lib/unistr/u16-strchr.c: New file.
43653         * lib/unistr/u32-strchr.c: New file.
43654
43655         * modules/unistr/u8-strcmp: New file.
43656         * modules/unistr/u16-strcmp: New file.
43657         * modules/unistr/u32-strcmp: New file.
43658         * lib/unistr/u8-strcmp.c: New file.
43659         * lib/unistr/u16-strcmp.c: New file.
43660         * lib/unistr/u32-strcmp.c: New file.
43661
43662         * modules/unistr/u8-strcpy: New file.
43663         * modules/unistr/u16-strcpy: New file.
43664         * modules/unistr/u32-strcpy: New file.
43665         * lib/unistr/u8-strcpy.c: New file.
43666         * lib/unistr/u16-strcpy.c: New file.
43667         * lib/unistr/u32-strcpy.c: New file.
43668         * lib/unistr/u-strcpy.h: New file.
43669
43670         * modules/unistr/u8-strcspn: New file.
43671         * modules/unistr/u16-strcspn: New file.
43672         * modules/unistr/u32-strcspn: New file.
43673         * lib/unistr/u8-strcspn.c: New file.
43674         * lib/unistr/u16-strcspn.c: New file.
43675         * lib/unistr/u32-strcspn.c: New file.
43676         * lib/unistr/u-strcspn.h: New file.
43677
43678         * modules/unistr/u8-strdup: New file.
43679         * modules/unistr/u16-strdup: New file.
43680         * modules/unistr/u32-strdup: New file.
43681         * lib/unistr/u8-strdup.c: New file.
43682         * lib/unistr/u16-strdup.c: New file.
43683         * lib/unistr/u32-strdup.c: New file.
43684         * lib/unistr/u-strdup.h: New file.
43685
43686         * modules/unistr/u8-strlen: New file.
43687         * modules/unistr/u16-strlen: New file.
43688         * modules/unistr/u32-strlen: New file.
43689         * lib/unistr/u8-strlen.c: New file.
43690         * lib/unistr/u16-strlen.c: New file.
43691         * lib/unistr/u32-strlen.c: New file.
43692         * lib/unistr/u-strlen.h: New file.
43693
43694         * modules/unistr/u8-strmblen: New file.
43695         * modules/unistr/u16-strmblen: New file.
43696         * modules/unistr/u32-strmblen: New file.
43697         * lib/unistr/u8-strmblen.c: New file.
43698         * lib/unistr/u16-strmblen.c: New file.
43699         * lib/unistr/u32-strmblen.c: New file.
43700
43701         * modules/unistr/u8-strmbtouc: New file.
43702         * modules/unistr/u16-strmbtouc: New file.
43703         * modules/unistr/u32-strmbtouc: New file.
43704         * lib/unistr/u8-strmbtouc.c: New file.
43705         * lib/unistr/u16-strmbtouc.c: New file.
43706         * lib/unistr/u32-strmbtouc.c: New file.
43707
43708         * modules/unistr/u8-strncat: New file.
43709         * modules/unistr/u16-strncat: New file.
43710         * modules/unistr/u32-strncat: New file.
43711         * lib/unistr/u8-strncat.c: New file.
43712         * lib/unistr/u16-strncat.c: New file.
43713         * lib/unistr/u32-strncat.c: New file.
43714         * lib/unistr/u-strncat.h: New file.
43715
43716         * modules/unistr/u8-strncmp: New file.
43717         * modules/unistr/u16-strncmp: New file.
43718         * modules/unistr/u32-strncmp: New file.
43719         * lib/unistr/u8-strncmp.c: New file.
43720         * lib/unistr/u16-strncmp.c: New file.
43721         * lib/unistr/u32-strncmp.c: New file.
43722
43723         * modules/unistr/u8-strncpy: New file.
43724         * modules/unistr/u16-strncpy: New file.
43725         * modules/unistr/u32-strncpy: New file.
43726         * lib/unistr/u8-strncpy.c: New file.
43727         * lib/unistr/u16-strncpy.c: New file.
43728         * lib/unistr/u32-strncpy.c: New file.
43729         * lib/unistr/u-strncpy.h: New file.
43730
43731         * modules/unistr/u8-strnlen: New file.
43732         * modules/unistr/u16-strnlen: New file.
43733         * modules/unistr/u32-strnlen: New file.
43734         * lib/unistr/u8-strnlen.c: New file.
43735         * lib/unistr/u16-strnlen.c: New file.
43736         * lib/unistr/u32-strnlen.c: New file.
43737         * lib/unistr/u-strnlen.h: New file.
43738
43739         * modules/unistr/u8-strpbrk: New file.
43740         * modules/unistr/u16-strpbrk: New file.
43741         * modules/unistr/u32-strpbrk: New file.
43742         * lib/unistr/u8-strpbrk.c: New file.
43743         * lib/unistr/u16-strpbrk.c: New file.
43744         * lib/unistr/u32-strpbrk.c: New file.
43745         * lib/unistr/u-strpbrk.h: New file.
43746
43747         * modules/unistr/u8-strrchr: New file.
43748         * modules/unistr/u16-strrchr: New file.
43749         * modules/unistr/u32-strrchr: New file.
43750         * lib/unistr/u8-strrchr.c: New file.
43751         * lib/unistr/u16-strrchr.c: New file.
43752         * lib/unistr/u32-strrchr.c: New file.
43753
43754         * modules/unistr/u8-strspn: New file.
43755         * modules/unistr/u16-strspn: New file.
43756         * modules/unistr/u32-strspn: New file.
43757         * lib/unistr/u8-strspn.c: New file.
43758         * lib/unistr/u16-strspn.c: New file.
43759         * lib/unistr/u32-strspn.c: New file.
43760         * lib/unistr/u-strspn.h: New file.
43761
43762         * modules/unistr/u8-strstr: New file.
43763         * modules/unistr/u16-strstr: New file.
43764         * modules/unistr/u32-strstr: New file.
43765         * lib/unistr/u8-strstr.c: New file.
43766         * lib/unistr/u16-strstr.c: New file.
43767         * lib/unistr/u32-strstr.c: New file.
43768         * lib/unistr/u-strstr.h: New file.
43769
43770         * modules/unistr/u8-strtok: New file.
43771         * modules/unistr/u16-strtok: New file.
43772         * modules/unistr/u32-strtok: New file.
43773         * lib/unistr/u8-strtok.c: New file.
43774         * lib/unistr/u16-strtok.c: New file.
43775         * lib/unistr/u32-strtok.c: New file.
43776         * lib/unistr/u-strtok.h: New file.
43777
43778         * modules/unistr/u8-uctomb: New file.
43779         * modules/unistr/u16-uctomb: New file.
43780         * modules/unistr/u32-uctomb: New file.
43781         * lib/unistr/u8-uctomb.c: New file.
43782         * lib/unistr/u16-uctomb.c: New file.
43783         * lib/unistr/u32-uctomb.c: New file.
43784
43785         * MODULES.html.sh (Unicode string functions): Add the new modules.
43786
43787 2007-01-08  Bruno Haible  <bruno@clisp.org>
43788
43789         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
43790         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
43791         subdirectories.
43792
43793 2007-01-08  Karl Berry  <karl@gnu.org>
43794
43795         * doc/error.texi: mention that main() fns must set program_name
43796         when progname is used.
43797
43798 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
43799
43800         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
43801         WCTYPE_H is empty, for the benefit of builds from non-distclean
43802         directories.  Problem reported by Eric Blake in
43803         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
43804
43805 2007-01-08  Bruno Haible  <bruno@clisp.org>
43806
43807         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
43808         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
43809         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
43810         PROVIDE_CANONICALIZE_FILENAME_MODE.
43811         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
43812
43813 2007-01-08  Bruno Haible  <bruno@clisp.org>
43814
43815         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
43816         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
43817         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
43818         * lib/fts.c: Likewise.
43819         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
43820
43821 2006-12-25  Bruno Haible  <bruno@clisp.org>
43822
43823         * modules/utf8-ucs4-safe: New file.
43824         * lib/utf8-ucs4-safe.h: New file.
43825         * lib/unistr/utf8-ucs4-safe.c: New file.
43826
43827         * modules/utf16-ucs4-safe: New file.
43828         * lib/utf16-ucs4-safe.h: New file.
43829         * lib/unistr/utf16-ucs4-safe.c: New file.
43830
43831         * MODULES.html.sh (Unicode string functions): Add the new modules.
43832
43833 2007-01-08  Bruno Haible  <bruno@clisp.org>
43834
43835         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
43836         (Depends-on): Add unitypes.
43837         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43838         (u8_mbtouc_aux): Move out to separate file.
43839         (u8_mbtouc): Use ucs4_t, uint8_t types.
43840         * lib/unistr/utf8-ucs4.c: New file.
43841
43842         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
43843         (Depends-on): Add unitypes.
43844         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43845         (u16_mbtouc_aux): Move out to separate file.
43846         (u16_mbtouc): Use ucs4_t, uint16_t types.
43847         * lib/unistr/utf16-ucs4.c: New file.
43848
43849         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
43850         (Depends-on): Add unitypes.
43851         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
43852         (u8_uctomb_aux): Move out to separate file.
43853         (u8_uctomb): Use ucs4_t, uint8_t types.
43854         * lib/unistr/ucs4-utf8.c: New file.
43855
43856         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
43857         (Depends-on): Add unitypes.
43858         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
43859         (u16_uctomb_aux): Move out to separate file.
43860         (u16_uctomb): Use ucs4_t, uint16_t types.
43861         * lib/unistr/ucs4-utf16.c: New file.
43862
43863 2006-12-25  Bruno Haible  <bruno@clisp.org>
43864
43865         * modules/unitypes: New file.
43866         * lib/unitypes.h: New file.
43867         * MODULES.html.sh (func_all_modules): New section "Unicode string
43868         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
43869         this section. Add unitypes.
43870
43871 2007-01-08  Bruno Haible  <bruno@clisp.org>
43872
43873         Avoid variable names that conflict with those from libtool.
43874         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
43875         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
43876         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
43877         library_names_spec to acl_library_names_spec, hardcode_* to
43878         acl_hardcode_*.
43879         Reported by Ralf Wildenhues.
43880
43881 2007-01-08  Bruno Haible  <bruno@clisp.org>
43882
43883         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
43884         definition.
43885         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
43886         definition.
43887         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
43888         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
43889         definition.
43890         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
43891         definition.
43892         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
43893         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
43894         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
43895         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
43896         definition.
43897         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
43898         definition.
43899         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
43900         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
43901         GC_USE_<algorithm>.
43902         * lib/gc-libgcrypt.c: Likewise.
43903         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
43904         * modules/gc-arctwo (configure.ac): Likewise.
43905         * modules/gc-des (configure.ac): Likewise.
43906         * modules/gc-hmac-md5 (configure.ac): Likewise.
43907         * modules/gc-hmac-sha1 (configure.ac): Likewise.
43908         * modules/gc-md2 (configure.ac): Likewise.
43909         * modules/gc-md4 (configure.ac): Likewise.
43910         * modules/gc-md5 (configure.ac): Likewise.
43911         * modules/gc-random (configure.ac): Likewise.
43912         * modules/gc-rijndael (configure.ac): Likewise.
43913         * modules/gc-sha1 (configure.ac): Likewise.
43914
43915 2007-01-08  Bruno Haible  <bruno@clisp.org>
43916
43917         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
43918         macro definition.
43919         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
43920         definition.
43921         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
43922         definition.
43923         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
43924         * modules/fcntl-safer (configure.ac): Likewise.
43925         * modules/fopen-safer (configure.ac): Likewise.
43926         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
43927         GNULIB_FWRITEERROR macro definition.
43928
43929 2007-01-08  Bruno Haible  <bruno@clisp.org>
43930
43931         * m4/gnulib-common.m4: New file.
43932         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
43933         (func_get_filelist): Add m4/gnulib-common.m4.
43934
43935 2007-01-08  Bruno Haible  <bruno@clisp.org>
43936
43937         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
43938         command.
43939
43940 2007-01-08  Jim Meyering  <jim@meyering.net>
43941
43942         Use a more robust test for a "can't happen" condition.
43943         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
43944         narrowed the st_size value.  Presuming the "can't happen" condition
43945         is true, that narrowing could conceivably convert an invalid st_size
43946         value into a valid one.  Instead, use a change based on Matthew
43947         Woehlke's original patch.
43948
43949         Slight readability improvement: use an assert-like macro
43950         in place of literal "abort ()" uses.
43951         * lib/fts.c (fts_assert): Define.
43952         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
43953         Use this macro instead of a bare 'abort'.
43954
43955 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43956
43957         Don't worry about using IRIX 5.3's wctype.h broken definitions;
43958         simply work around them.
43959         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
43960         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
43961         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
43962         declaring.
43963         Don't bother to define as macros, since the standard doesn't require it.
43964         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
43965         longer worry about IRIX 5.3.
43966         (HAVE_WCTYPE_CTMP_BUG): Remove.
43967
43968 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43969
43970         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
43971         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
43972         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43973         Problems reported by Georg Schwarz for IRIX 5.3.
43974
43975         * gnulib-tool (autoconf_minversion): Take the maximum version number
43976         found, not the minimum.  Problem reported by James Youngman.
43977
43978 2007-01-03  Karl Berry  <karl@gnu.org>
43979
43980         * doc/error.texi: new file, explaining interaction with progname.
43981         * doc/gnulib.texi: include it.  Update copyright.
43982
43983 2007-01-03  Simon Josefsson  <simon@josefsson.org>
43984
43985         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
43986         AC_CANONICAL_HOST, to improve autobuild outputs.
43987
43988 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
43989             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43990
43991         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
43992         sockets, server sockets, and other file descriptors.  Count errors
43993         to compute the return value.  Reorder the code a bit to be easier
43994         to follow.  Don't set event bits that were not requested (except
43995         POLLERR and POLLHUP).
43996
43997 2007-01-01  Bruno Haible  <bruno@clisp.org>
43998
43999         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
44000
44001 2007-01-03  Jim Meyering  <jim@meyering.net>
44002
44003         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
44004
44005 2007-01-02  Bruno Haible  <bruno@clisp.org>
44006
44007         * modules/settime (Include): Require timespec.h.
44008         * modules/nanosleep (Include): Likewise.
44009
44010 2007-01-01  Bruno Haible  <bruno@clisp.org>
44011
44012         * gnulib-tool (func_emit_copyright_notice): Bump year.
44013         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
44014
44015 2007-01-01  Bruno Haible  <bruno@clisp.org>
44016
44017         Improve support for OpenBSD.
44018         * build-aux/config.rpath (libname_spec): Export.
44019         (library_names_spec): New variable. Export.
44020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
44021         library_names_spec from the config.rpath output. Locate shared library
44022         through the name pattern in library_names_spec.
44023
44024 2007-01-01  Eric Blake  <ebb9@byu.net>
44025
44026         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
44027
44028 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
44029
44030         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
44031         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
44032         assume the C locale, and avoid an "eval" that could cause trouble.
44033         Problem with SORT reported by Bob Proulx.
44034
44035         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
44036         Define.  Trivial patch from Henning Nielsen Lund, originally
44037         sent to bug-grep@gnu.org today.
44038
44039 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44040
44041         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
44042         struct stat.  Problem reported by Henning Nielsen Lund.
44043         * lib/acl.c: Include acl.h first, to check interface.  Don't
44044         bother to include sys/types.h and sys/stat.h again.
44045
44046 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44047
44048         Import the following change from libc; problem reported by
44049         Sven Verdoolaege.
44050
44051         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
44052
44053         [BZ #1373]
44054         * lib/argp.h: Remove __NTH for __argp_usage inline function.
44055
44056 2006-12-28  Jim Meyering  <jim@meyering.net>
44057
44058         * build-aux/announce-gen: Do not assume that the package
44059         builds any of tar.gz, tar.bz2, and .xdelta files.
44060         Suggestion from Simon Josefsson.
44061
44062 2006-12-28  Simon Josefsson  <simon@josefsson.org>
44063
44064         * modules/announce-gen: New file.
44065
44066 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44067
44068         * lib/mbchar.h: Just include <wctype.h>; the wctype module
44069         handles its gotchas now.
44070         * lib/mbswidth.c: Likewise.
44071         * lib/wcwidth.h: Likewise.
44072         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
44073         and iswcntrl; the wctype module does this stuff now.
44074         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44076         * modules/mbchar (Depends-on): Add wctype.
44077         * modules/mbswidth (Depends-on): Likewise.
44078         * modules/wcwidth (Depends-on): Likewise.
44079
44080 2006-12-27  Eric Blake  <ebb9@byu.net>
44081
44082         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
44083         module uses more than what <wctype.h> is required to provide.
44084
44085 2006-12-26  Eric Blake  <ebb9@byu.net>
44086
44087         * gnulib-tool (sed_extract_prog): Avoid space-tab.
44088
44089 2006-12-26  Eric Blake  <ebb9@byu.net>
44090
44091         * modules/absolute-header: New module.
44092         * modules/fcntl (Depends-on): Depend on it.
44093         * modules/inttypes (Depends-on): Likewise.
44094         * modules/stdint (Depends-on): Likewise.
44095         * modules/sys_stat (Depends-on): Likewise.
44096         * modules/wctype (Depends-on): Likewise.
44097         * MODULES.html.sh (Support for building libraries and
44098         executables): Document it.
44099
44100 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44101
44102         * gnulib-tool (SED): Remove, undoing previous change.
44103         The problem was that it broke coreutils on Solaris, because
44104         "sed --posix" leaked into a makefile.
44105         (sed): New alias, if 'alias' and GNU sed.
44106
44107 2006-12-24  Jim Meyering  <jim@meyering.net>
44108
44109         Work around an fchownat bug in glibc-2.4:
44110         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
44111         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
44112         in spite of the -P option.
44113         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
44114         New macros.
44115         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
44116         * modules/openat (Files): Add lib/fchownat.c.
44117         * lib/openat.c (fchownat): Don't define here.  Move to...
44118         * lib/fchownat.c: ...this new file.
44119
44120 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44121
44122         Fix bug reported by Bruno Haible in
44123         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
44124         where quotearg.c didn't compile on Mac OS X 10.2 because it
44125         lacks <wchar.h> and wint_t.
44126         * lib/wctype_.h (__wctype_wint_t): New type.
44127         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
44128         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
44129         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
44130         Arg is now of type __wctype_wint_t, not wint_t.
44131         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
44132         substitute HAVE_WINT_T.
44133         * modules/wctype (Files): Add m4/wint_t.m4.
44134         (wctype.h): Substitute HAVE_WINT_T.
44135
44136 2006-12-23  Bruno Haible  <bruno@clisp.org>
44137
44138         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
44139
44140 2006-12-23  Bruno Haible  <bruno@clisp.org>
44141
44142         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
44143         S_ISLNK.
44144         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
44145         mingw.
44146
44147 2006-12-22  Bruno Haible  <bruno@clisp.org>
44148
44149         * lib/copy-file.c: Include acl.h.
44150         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
44151         Close the file descriptors only after being done with copy_acl.
44152         * modules/copy-file (Depends-on): Add acl.
44153
44154 2006-12-22  Bruno Haible  <bruno@clisp.org>
44155
44156         * gnulib-tool (SED): New variable.
44157         Use $SED instead of sed everywhere.
44158
44159 2006-12-22  Bruno Haible  <bruno@clisp.org>
44160
44161         * modules/no-c++: New file.
44162         * m4/no-c++.m4: New file.
44163         * MODULES.html.sh (Support for building libraries and executables):
44164         Add no-c++.
44165
44166 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44167
44168         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44169         Include <limits.h>, and use its INT_MAX to rewrite the
44170         j loop so that it does not overflow 'int'.  Problem reported by
44171         Ralf Wildenhues in
44172         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
44173         Play it safe by shifting left by 1 rather than multiplying by 2,
44174         as GCC is less likely to optimize this away when the value
44175         is signed (when it assumes overflow leads to undefined behavior).
44176         Also, don't assume time_t uses two's complement.
44177
44178 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44179
44180         * MODULES.html.sh: New module wctype.
44181         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
44182         * lib/fnmatch.c: Don't bother to include <wchar.h> before
44183         <wctype.h>, since the new wctype module should fix this.
44184         * lib/quotearg.c: Include <wctype.h> unconditionally, since
44185         the wctype module should arrange for it.
44186         * lib/regex_internal.h: Likewise.
44187         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
44188         since the wctype module should handle this now.
44189         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
44190         * modules/fnmatch (Depends-on): Add wctype.
44191         * modules/quotearg (Depends-on): Likewise.
44192         * modules/regex (Depends-on): Likewise.
44193
44194 2006-12-19  Bruno Haible  <bruno@clisp.org>
44195
44196         * lib/strdup.h [C++]: Wrap definitions in extern "C".
44197         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
44198
44199 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44200
44201         * modules/savewd (Depends-on): Fix dependency on fcntl.
44202
44203 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44204
44205         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
44206         conforms to C99, rather than relying on the user's environment
44207         setting of STDINT_H.
44208
44209 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44210         and Eric Blake  <ebb9@byu.net>
44211
44212         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
44213         This is more consistent with the other defines here.
44214         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
44215         Port to z/OS.  Problem reported by Paul Gilmartin.
44216         Change local vars to use gl_ prefix rather than ac_.
44217         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
44218         with other defines.
44219         * modules/double-slash-root: New module.
44220         * modules/dirname (Files): Remove m4/double-slash-root.m4.
44221         (Depends-on): Add double-slash-root.
44222         * MODULES.html.sh (File system functions): Mention new module.
44223
44224 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
44225
44226         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
44227         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
44228         This is for the benefit of gzip, which doesn't do i18n.
44229
44230 2006-12-12  Jim Meyering  <jim@meyering.net>
44231
44232         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
44233         Reported by Andreas Schwab <schwab@suse.de>.
44234
44235 2006-12-12  Bruno Haible  <bruno@clisp.org>
44236
44237         Merge these changes.
44238         2006-09-05  Bruno Haible  <bruno@clisp.org>
44239         * lib/iconvme.c (iconv_string): No need to save and restore errno when
44240         iconv_alloc succeeded.
44241         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
44242         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
44243         test for " && dest " at the end - dest is always != NULL there. Call
44244         iconv with 4xNULL arguments initially, to reset the state. Call iconv
44245         with 2xNULL arguments, also to flush the state storage. Handle the
44246         IRIX iconv behaviour. Realloc the final result, to throw away unused
44247         memory.
44248
44249 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
44250
44251         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
44252         and fchmodat unconditionally, since glibc 2.4 has them.
44253         Problem reported by Arkadiusz Miskiewicz.
44254
44255 2006-12-10  Bruno Haible  <bruno@clisp.org>
44256
44257         * gnulib-tool (func_import): Show the include files only for those
44258         modules that are copied and specified.
44259         Reported by Karl Berry.
44260
44261 2006-12-08  Jim Meyering  <jim@meyering.net>
44262
44263         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
44264         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
44265
44266         * build-aux/announce-gen: Add two new options, both optional:
44267         --bootstrap-tools=TOOL_LIST
44268               a comma-separated list of tools, e.g.,
44269               autoconf,automake,bison,gnulib
44270         --gnulib-snapshot-date=DATE
44271               if gnulib is in the bootstrap tool list,
44272               then report this as the snapshot date.
44273               If not specified, use the current date/time.
44274               If you specify a date here, be sure it's UTC.
44275
44276 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44277
44278         * tests/test-argp-2.sh: Fix test to match actual output.
44279         (func_compare): Fix sed script to be portable.
44280
44281 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
44282
44283         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
44284         workaround for this case.  It is not autoconfigured now; offhand
44285         it's hard to see how to autoconfigure it.
44286
44287 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44288
44289         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
44290         a directory that is about to be chowned.  Such a directory's
44291         initial file permissions should permit the owner only and this
44292         should not be changed until after the chown, since the group and
44293         other bits would be incorrect if they granted permission before
44294         the chown.
44295
44296         Fix porting problem for iswctype reported by Georg Schwarz in:
44297         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
44298         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
44299         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
44300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
44301         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44302
44303 2006-12-03  Jim Meyering  <jim@meyering.net>
44304
44305         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
44306         p->fts_statp may not yet be defined.
44307         (fts_read): Instead, set it in the caller, once p->fts_statp is
44308         sure to be defined, and corresponds to a top-level directory.
44309         This bug made du -x fail.  Here's the coreutils test case:
44310         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
44311         Reported by Mike Frysinger.
44312
44313 2006-12-01  Jim Meyering  <jim@meyering.net>
44314
44315         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
44316         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
44317         Reported by Simon Josefsson.
44318
44319 2006-11-30  Jim Meyering  <jim@meyering.net>
44320
44321         * m4/warning.m4: Use the all-permissive copyright notice
44322         recommended by RMS (rather than LGPL).
44323         * m4/vararrays.m4: Likewise.
44324         * m4/flexmember.m4: Likewise.
44325
44326 2006-11-29  Bruno Haible  <bruno@clisp.org>
44327
44328         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44329         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
44330         using +=.
44331         Reported by Simon Josefsson <simon@josefsson.org>.
44332
44333 2006-11-28  James Youngman <jay@gnu.org>
44334
44335         * README: Advise users that they might find the bug-gnulib@gnu.org
44336         and autotools-announce@gnu.org mailing lists useful.
44337
44338 2006-11-28  Bruno Haible  <bruno@clisp.org>
44339
44340         * m4/ptrdiff_max.m4: Remove file.
44341
44342 2006-11-21  Bruno Haible  <bruno@clisp.org>
44343
44344         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
44345         _AC_COMPUTE_INT.
44346         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44347         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
44348         _AC_COMPUTE_INT.
44349         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44350         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
44351         _AC_COMPUTE_INT.
44352         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44353
44354 2006-11-28  Jim Meyering  <jim@meyering.net>
44355
44356         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
44357         warning from "gcc -Wshadow" about shadowing the builtin.
44358
44359 2006-11-27  Bruno Haible  <bruno@clisp.org>
44360
44361         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
44362         _AC_COMPUTE_INT.
44363         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44364
44365 2006-11-27  Bruno Haible  <bruno@clisp.org>
44366             Paul Eggert  <eggert@cs.ucla.edu>
44367
44368         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
44369
44370 2006-11-26  Bruno Haible  <bruno@clisp.org>
44371
44372         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44373         noinst_LTLIBRARIES.
44374
44375 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44376             Bruno Haible  <bruno@clisp.org>
44377
44378         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
44379         if compiling with "gcc -ansi".
44380
44381 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44382
44383         Fix some incompatibilities with gcc -ansi -pedantic.
44384         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
44385         if compiling pedantically with GCC, unless it's C99 or later.
44386         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
44387         it mishandles gcc -ansi -pedantic as well.
44388         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
44389         if gcc -pedantic.
44390         * lib/regexec.c (check_node_accept_bytes): Don't use auto
44391         initializers for struct if -pedantic, unless it's C99 or later.
44392
44393 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
44394
44395         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
44396         Don't close an fd more than once. Identical atimes indicate
44397         success, not failure.
44398
44399 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
44400
44401         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
44402
44403 2006-11-23  Jim Meyering  <jim@meyering.net>
44404
44405         * build-aux/announce-gen: New file.  From coreutils.
44406
44407 2006-11-22  Jim Meyering  <jim@meyering.net>
44408
44409         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
44410         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
44411         (fts_read): Use a temporary to narrow the overused st_size member
44412         before using it in a switch statement.  Reported by Matthew Woehlke.
44413
44414         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
44415         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44416
44417 2006-11-20  Bruno Haible  <bruno@clisp.org>
44418
44419         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
44420         changequote instead of pairs of brackets.
44421         Reported by Andreas Schwab <schwab@suse.de>.
44422
44423 2006-11-21  Jim Meyering  <jim@meyering.net>
44424
44425         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
44426         so as to remain compatible with older compilers.
44427         Patch from Michael Deutschmann.
44428
44429 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44430
44431         * MODULES.html.sh (File system functions): Add openat.
44432
44433         * lib/openat.h (rpl_fstatat): New macro, if
44434         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
44435         (fstatat): Define to rpl_fstatat under the same conditions,
44436         unless COMPILING_FSTATAT.
44437         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
44438         seems to have the bug.
44439         * lib/fstatat.c: New file.
44440         * modules/openat (Files): Add it.
44441
44442 2006-11-20  Bruno Haible  <bruno@clisp.org>
44443
44444         * Makefile: New file.
44445
44446 2006-11-20  Jim Meyering  <jim@meyering.net>
44447
44448         The beginnings of syntax-related checks for gnulib.
44449         * lib/Makefile: New file.
44450         * lib/t-idcache: New script.  Ensure that the two halves of
44451         idcache.c stay in sync.
44452
44453         * lib/idcache.c: Adjust comments in user- and group- portions to
44454         be more accurate, and to be consistent with one another.
44455
44456 2006-11-20  Jim Meyering  <jim@meyering.net>
44457
44458         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
44459         continue using the flexible array member (thus, this module performs
44460         half as many malloc calls), with the addition that...
44461         (getgroup, getuser): Consistently record a non-match via an empty
44462         "name" string, and map an empty string match to a NULL return value.
44463         * modules/idcache (Depends-on): Re-add flexmember.
44464
44465         * lib/idcache.c (getuser): Remove all uses of the register keyword.
44466         (getuidbyname, getgroup, getgidbyname): Likewise.
44467
44468         Use cleaner syntax: NULL rather than 0.
44469         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
44470
44471 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44472
44473         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
44474         It mishandled the case where the group was missing.
44475         Problem reported by Greg Schafer.
44476         * modules/idcache: Likewise.
44477
44478 2006-11-18  Jim Meyering  <jim@meyering.net>
44479
44480         * check-module (%exempt_header): Add exception for some
44481         conditionally-included headers.
44482
44483         * modules/i-ring (Depends-on): Add verify.
44484         (License): Change to LGPL.
44485
44486 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44487
44488         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
44489         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
44490         and inttostr.h.  Use snprintf rather than uinttostr, so that
44491         LGPLed code doesn't depend on GPLed.
44492
44493 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44494
44495         * modules/inline (License): Change from GPL to LGPL.
44496
44497 2006-11-17  Jim Meyering  <jim@meyering.net>
44498
44499         * modules/d-type (License): Switch to LGPL.
44500
44501 2006-11-15  Bruno Haible  <bruno@clisp.org>
44502
44503         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
44504
44505 2006-11-15  Eric Blake  <ebb9@byu.net>
44506
44507         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
44508         the module dependency.
44509
44510 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44511             Bruno Haible  <bruno@clisp.org>
44512
44513         * gnulib-tool (func_create_testdir): Add license consistency check.
44514
44515 2006-11-15  Eric Blake  <ebb9@byu.net>
44516
44517         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
44518         random "(cached)" in configure output.
44519
44520 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44521
44522         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
44523         test for conforming inttypes.h is both announced and cached.
44524
44525         * MODULES.html.sh (seen_modules, seen_files): New variables.
44526         (func_module): Rewrite to use a few less gnulib-tool and sed
44527         invocations.  Avoid a couple of quadratic algorithms for ...
44528         (missed_modules, missed_files): ... these, with ...
44529         (func_append, func_tmpdir): ... these new functions, from
44530         gnulib-tool.  Analogously, install traps for cleanup.
44531
44532         * tests/test-gc.c (main): Remove unused variables.
44533         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44534
44535 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44536
44537         * modules/inttostr (License): Change to LGPL.
44538
44539 2006-11-14  Eric Blake  <ebb9@byu.net>
44540
44541         * modules/tempname (License): Change to LGPL.
44542
44543 2006-11-14  Eric Blake  <ebb9@byu.net>
44544
44545         * doc/functions.texi (Function Portability): *printf functions on
44546         Cygwin now understand all POSIX size specifiers.
44547
44548 2006-11-14  Bruno Haible  <bruno@clisp.org>
44549
44550         * modules/c-ctype (License): Change to LGPL.
44551
44552 2006-11-12  Bruno Haible  <bruno@clisp.org>
44553
44554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44555         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44556         for GNOME libraries, for which the include files are installed in
44557         subdirectories of $prefix/include.
44558
44559 2006-11-12  Bruno Haible  <bruno@clisp.org>
44560
44561         * m4/lib-link.m4: Require at least autoconf-2.54.
44562         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44563         name to underscores for the --with option.
44564
44565 2006-11-13  Bruno Haible  <bruno@clisp.org>
44566
44567         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44568         the tests directory.
44569         Reported by Ralf Wildenhues.
44570
44571 2006-11-13  Bruno Haible  <bruno@clisp.org>
44572
44573         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44574         (func_emit_initmacro_end): Undo the override here.
44575         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44576         Works around the famous automake error in coreutils.
44577
44578 2006-11-13  Eric Blake  <ebb9@byu.net>
44579
44580         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44581         element, not its node.
44582
44583 2006-11-12  Bruno Haible  <bruno@clisp.org>
44584
44585         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44586         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44587
44588 2006-11-12  Bruno Haible  <bruno@clisp.org>
44589
44590         * gnulib-tool: New option --local-symlink.
44591         (func_usage): Document it.
44592         (lsymbolic): New variable.
44593         (func_import, func_create_testdir): If --symlink was not specified,
44594         test whether --local-symlink was specified and the file comes from
44595         the local_gnulib_dir.
44596
44597 2006-11-12  Bruno Haible  <bruno@clisp.org>
44598
44599         * gnulib-tool (func_ln): New function.
44600         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44601
44602 2006-11-12  Bruno Haible  <bruno@clisp.org>
44603
44604         Finish support for source files in subdirectories.
44605         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44606         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44607         AUTOMAKE_OPTIONS.
44608         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44609
44610 2006-11-12  Bruno Haible  <bruno@clisp.org>
44611
44612         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44613         EXTRA_lib_SOURCES augmentation.
44614         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44615
44616 2006-11-12  Jim Meyering  <jim@meyering.net>
44617
44618         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44619         file descriptors.  This also averts a failure on systems with
44620         native openat support when a traversed directory lacks "x" access.
44621         * lib/fts_.h: Include "i-ring.h"
44622         (struct FTS) [fts_fd_ring]: New member.
44623         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44624         (FCHDIR): Add parentheses.
44625         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44626         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44627         When descending, rather than simply closing the previous
44628         fts_cwd_fd value, push that file descriptor onto the ring.
44629         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44630         (fts_open): Initialize the new fd_ring member.
44631         (fts_close): Clear the ring.
44632         (fts_safe_changedir): When possible, use our new fd_ring to skip
44633         the diropen and fstat and dev/ino comparison that would normally
44634         accompany a virtual `chdir ("..")'.
44635
44636         * modules/fts (Depends-on): Add i-ring.
44637         * modules/i-ring: New module.
44638         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44639         * m4/i-ring.m4: New file.
44640
44641 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44642
44643         * gnulib-tool (func_create_testdir): Fix replacement of
44644         `build-aux' in configure.ac.  Run autotools in gltests
44645         subdirectory.
44646         (func_create_testdir, func_create_megatestdir, test): There is
44647         no need for '--force' in most autotool invocations in a new
44648         tree.  Actually fail the whole test if any of the tools, or the
44649         configure or make stages fail.
44650
44651         Sync from Automake.
44652         * build-aux/gnupload: Revert last change.  Add pointer to upload
44653         instructions of the GNU Maintenance Instructions.
44654         Suggestion by Karl Berry.
44655
44656 2006-11-10  Jim Meyering  <jim@meyering.net>
44657
44658         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44659
44660 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44661
44662         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44663         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44664         (bind_textdomain_codeset) [! ENABLE_NLS]:
44665         Evaluate all the arguments.  That way, callers get compatible behavior
44666         if the arguments have side effects.  Also, it avoids some GCC
44667         diagnostics in some cases; Joel E. Denny reported problems when Bison
44668         was configured with --enable-gcc-warnigs.
44669
44670 2006-11-10  Jim Meyering  <jim@meyering.net>
44671
44672         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44673         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44674         account.
44675
44676 2006-11-10  Jim Meyering  <jim@meyering.net>
44677
44678         * modules/inline: New file/module.
44679         * modules/xalloc (Files): Remove m4/inline.m4.
44680         (Depends-on): Add inline, instead.
44681         * modules/oset: Likewise.
44682         * modules/list: Likewise.
44683
44684 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44685
44686         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44687         Problem reported by Matthew Woehlke.
44688
44689 2006-11-09  Bruno Haible  <bruno@clisp.org>
44690
44691         * lib/tempname.c (gen_tempname): Remove variant that invokes
44692         __gen_tempname.
44693         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44694         __gen_tempname.
44695
44696 2006-11-08  Bruno Haible  <bruno@clisp.org>
44697
44698         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44699         to 'yes' instead of 'cross-compiling'.
44700
44701 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44702
44703         * lib/quotearg.h (quotearg_free): New decl.
44704         * lib/quotearg.c (quotearg_free): New function.
44705         (slot0, nslots, slotvec0, slotvec):
44706         Now file-scope so that quotearg_free can get at them.
44707
44708 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44709
44710         Sync from Automake.
44711         * build-aux/gnupload: Add missing 'gnu' to example URL.
44712         Report by Karl Berry.
44713
44714 2006-11-08  Bruno Haible  <bruno@clisp.org>
44715
44716         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44717         Suggested by Paul Eggert.
44718
44719 2006-11-08  Jim Meyering  <jim@meyering.net>
44720
44721         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
44722         It's already included if !_LIBC.
44723         (fts_safe_changedir): Add a comment.
44724
44725 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44726
44727         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
44728         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
44729         Matthew Woehlke.
44730
44731         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44732         definitions up, to avoid colliding with change below.
44733         (static_inline) [HAVE_INLINE]: New macro.
44734         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
44735         Provide extern decls when !HAVE_INLINE.  Do not define unless
44736         static_inline is defined, either by us or by xmalloc.c.  Use
44737         static_inline rather than static inline.
44738         (XCALLOC): Optimize sizeof(T) = 1 case.
44739         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
44740
44741 2006-11-07  Bruno Haible  <bruno@clisp.org>
44742
44743         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
44744         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
44745         AC_C_INLINE.
44746         * modules/xalloc (Files): Add m4/inline.m4.
44747
44748 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44749
44750         * README: Fix typo.
44751         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
44752         (Miscellanous Notes): ...from this.
44753
44754 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44755
44756         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44757         Mention that offsetof should be used instead of sizeof.
44758         From Bruno Haible.
44759
44760 2006-11-07  Bruno Haible  <bruno@clisp.org>
44761
44762         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
44763
44764 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44765
44766         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44767         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
44768         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44769         (gl_tree_add_before, gl_tree_add_after):
44770         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
44771         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
44772         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44773         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
44774         (gl_linked_add_after, gl_linked_add_at): Likewise.
44775         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
44776         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44777         (gl_tree_add_before, gl_tree_add_after): Likewise.
44778         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
44779         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
44780         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
44781
44782 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44783
44784         * lib/gl_oset.h: Use C comment style, not C++ comment style.
44785
44786 2006-11-06  Bruno Haible  <bruno@clisp.org>
44787
44788         * m4/inline.m4: New file.
44789         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
44790         * modules/list (Files): Add m4/inline.m4.
44791         * modules/oset (Files): Likewise.
44792
44793 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44794
44795         * lib/idcache.c: Include <stddef.h>, for offsetof.
44796         (struct userid.name): Change from char * to a flexible array member.
44797         All uses changed.
44798         * modules/idcache (Depends-on): Add flexmember.
44799
44800         * MODULES.html.sh (Core language properties): New module flexmember.
44801         * modules/flexmember, m4/flexmember.m4: New files.
44802
44803         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
44804         inline functions that are identical with the old xnmalloc_inline,
44805         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
44806         that we can avoid some unnecessary integer multiplications and
44807         divisions in the common case where the element size is known at
44808         compile time.
44809         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
44810         needed.
44811         (xnboundedmalloc): Remove.
44812         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
44813         arguments, for consistency with rest of this header.
44814         (xcharalloc): Rewrite using XNMALLOC.
44815         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
44816         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
44817         versions have been moved to lib/xalloc.h and renamed to be the
44818         non-*_inline versions.
44819         (xmalloc, xrealloc): Implement without reference to the xnmalloc
44820         and xnrealloc functions, since those functions are now inline and
44821         now call us.
44822         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
44823         renaming described above.
44824         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
44825         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
44826         captures the dependency in AC_C_INLINE.
44827
44828         New module canonicalize-lgpl, proposed by Charles Wilson in
44829         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
44830         with a few small changes afterwards.
44831         * MODULES.html.sh (File system functions): New module
44832         canonicalize-lgpl.
44833         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
44834         and canonicalize_file_name.
44835         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
44836         * modules/canonicalize-lgpl: New files.
44837
44838 2006-11-05  Bruno Haible  <bruno@clisp.org>
44839
44840         * gnulib-tool (func_import, func_create_testdir): Create directories
44841         also for files in subdirectories of lib/.
44842
44843 2006-11-05  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
44846         ANSI C compliant.
44847
44848 2006-11-03  Bruno Haible  <bruno@clisp.org>
44849
44850         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44851         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
44852         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
44853         (xnboundedmalloc): New inline function.
44854         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
44855         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
44856         xmalloc.
44857         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
44858         xmalloc.
44859         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
44860         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
44861         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
44862         xmalloc.
44863         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44864         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
44865         xmalloc.
44866         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
44867         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44868         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
44869         xmalloc.
44870         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44871         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
44872         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44873         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
44874         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
44875         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
44876         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
44877
44878 2006-11-03  Bruno Haible  <bruno@clisp.org>
44879
44880         * lib/c-ctype.h [C++]: Define functions without name mangling.
44881         * lib/fwriteerror.h [C++]: Likewise.
44882         * lib/gcd.h [C++]: Likewise.
44883         * lib/linebreak.h [C++]: Likewise.
44884
44885 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
44886
44887         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
44888         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
44889         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
44890         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44891         Check for functions and headers just once.
44892         Check for declaration of canonicalize_file_name.
44893         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
44894
44895 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44896
44897         * gnulib-tool (func_import): Fix typo in actioncmd.
44898
44899 2006-11-02  Bruno Haible  <bruno@clisp.org>
44900
44901         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
44902         newline sequence in the Makefile.am snippet as a space, like "make"
44903         does.
44904         Reported by Roger Persson <perrog@gmail.com>.
44905
44906 2006-11-01  Bruno Haible  <bruno@clisp.org>
44907
44908         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
44909         already declared in <string.h>.
44910         * lib/strcase.h (strncasecmp): Don't declare it if yes.
44911
44912 2006-11-01  Bruno Haible  <bruno@clisp.org>
44913
44914         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
44915         * lib/strcase.h: Include <string.h>.
44916         (strcasecmp): Define to rpl_strcasecmp here.
44917
44918 2006-11-01  Bruno Haible  <bruno@clisp.org>
44919
44920         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
44921
44922 2006-11-01  Eric Blake  <ebb9@byu.net>
44923
44924         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
44925
44926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
44927
44928 2006-10-29  Bruno Haible  <bruno@clisp.org>
44929
44930         Make it compile in C++ mode.
44931         * lib/full-write.c (full_rw): Add a cast.
44932
44933 2006-11-01  Bruno Haible  <bruno@clisp.org>
44934
44935         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
44936         be POSIX compliant.
44937         Reported by Roger Persson <perrog@gmail.com>.
44938
44939 2006-11-01  Eric Blake  <ebb9@byu.net>
44940
44941         * lib/getopt_.h: Fix comments.
44942
44943 2006-10-31  Eric Blake  <ebb9@byu.net>
44944
44945         * modules/tmpdir (Depends-on): Add sys_stat.
44946         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
44947         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
44948         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
44949         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
44950         tempname.
44951
44952 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44953
44954         Avoid some C++ diagnostics reported by Bruno Haible.
44955         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
44956         xmalloc.
44957         (quotearg_alloc): Use xcharalloc rather than xmalloc.
44958         (struct slotvec): Move to top level.
44959         (quotearg_n_options): Rewrite to avoid xmalloc.
44960         * lib/xalloc.h (xcharalloc): New function.
44961         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
44962         [defined __cplusplus]: Add function template that provides result
44963         type propagation.  This part of the change is from Bruno Haible.
44964
44965 2006-10-29  Bruno Haible  <bruno@clisp.org>
44966
44967         Make it compile in C++ mode.
44968         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
44969         * lib/strnlen1.c (strnlen1): Cast memchr result.
44970         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
44971         * lib/clean-temp.c (string_equals, string_hash): Add casts.
44972         (create_temp_dir): Rename local variable 'template'.
44973         (compile_csharp_using_sscli): Add cast.
44974         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
44975         * lib/findprog.c (find_in_path): Likewise.
44976         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
44977         * lib/wait-process.c (register_slave_subprocess): Likewise.
44978
44979 2006-10-22  Bruno Haible  <bruno@clisp.org>
44980
44981         * modules/tsearch: New file.
44982         * lib/tsearch.h: New file.
44983         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
44984         * m4/tsearch.m4: New file.
44985         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
44986
44987 2006-10-29  Eric Blake  <ebb9@byu.net>
44988
44989         * lib/arcfour.c: Assume config.h.
44990         * lib/arctwo.c: Likewise.
44991         * lib/base64.c: Likewise.
44992         * lib/check-version.c: Likewise.
44993         * lib/crc.c: Likewise.
44994         * lib/des.c: Likewise.
44995         * lib/gc-gnulib.c: Likewise.
44996         * lib/gc-libgcrypt.c: Likewise.
44997         * lib/gc-pbkdf2-sha1.c: Likewise.
44998         * lib/getaddrinfo.c: Likewise.
44999         * lib/getdelim.c: Likewise.
45000         * lib/getline.c: Likewise.
45001         * lib/hmac-md5.c: Likewise.
45002         * lib/hmac-sha1.c: Likewise.
45003         * lib/iconvme.c: Likewise.
45004         * lib/md2.c: Likewise.
45005         * lib/md4.c: Likewise.
45006         * lib/memxor.c: Likewise.
45007         * lib/read-file.c: Likewise.
45008         * lib/readline.c: Likewise.
45009         * lib/rijndael-alg-fst.c: Likewise.
45010         * lib/rijndael-api-fst.c: Likewise.
45011         * lib/xgetdomainname.c: Likewise.
45012
45013 2006-10-28  Eric Blake  <ebb9@byu.net>
45014
45015         * lib/xstrndup.c: Assume config.h.
45016
45017 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45018
45019         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
45020         stat-macros.h is now for our own macros, whereas stat_h is for
45021         macros in the <sys/stat.h> name space.
45022         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
45023         (STAT_MACROS_H): Remove.
45024         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
45025         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
45026         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
45027         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
45028         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
45029         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
45030         Move these macros to ...
45031         * lib/stat_.h: here.  Don't include stat-macros.h.
45032         * lib/canonicalize.c: Don't include stat-macros.h.
45033         * lib/chown.c: Likewise.
45034         * lib/euidaccess.c: Likewise.
45035         * lib/file-type.c: Likewise.
45036         * lib/filemode.c: Likewise.
45037         * lib/glob.c: Likewise.
45038         * lib/isapipe.c: Likewise.
45039         * lib/lchown.c: Likewise.
45040         * lib/lstat.c: Likewise.
45041         * lib/mkdir-p.c: Likewise.
45042         * lib/rmdir.c: Likewise.
45043         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
45044         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
45045         unless mkdir isn't declared, to speed up 'configure'.
45046         Always create sys/stat.h, since it's unlikely any real sys/stat.h
45047         would define all the S_* symbols.
45048         * modules/canonicalize (Depends-on):
45049         Depend on sys_stat, not stat-macros.
45050         * modules/chown: Likewise.
45051         * modules/euidaccess: Likewise.
45052         * modules/filemode: Likewise.
45053         * modules/file-type: Likewise.
45054         * modules/glob: Likewise.
45055         * modules/isapipe: Likewise.
45056         * modules/lchown: Likewise.
45057         * modules/lstat: Likewise.
45058         * modules/mkancesdirs: Likewise.
45059         * modules/rmdir: Likewise.
45060         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
45061         * modules/modechange: Likewise.
45062         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
45063         (configure.ac): Remove gl_STAT_MACROS.
45064         * modules/sys_stat (Depends-on): Remove stat-macros.
45065
45066 2006-10-27  Bruno Haible  <bruno@clisp.org>
45067
45068         * m4/signed.m4: Remove file.
45069         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
45070         invocation.
45071         * modules/vasnprintf (Files): Remove m4/signed.m4.
45072
45073 2006-10-27  Bruno Haible  <bruno@clisp.org>
45074
45075         Update to GNU gettext 0.16.
45076         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
45077         m4/inttypes-h.m4, m4/signed.m4.
45078         * m4/gettext.m4: Update to GNU gettext 0.16.
45079         * m4/intl.m4: New file, from GNU gettext.
45080         * m4/intldir.m4: New file, from GNU gettext.
45081         * config/srclist.txt: Update
45082
45083 2006-10-27  Eric Blake  <ebb9@byu.net>
45084
45085         * MODULES.html.sh: Document tempname.
45086         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
45087         dependencies.
45088         (Files): Move lib/tempname.c...
45089         * modules/tempname: ...to this new module.
45090         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
45091         (gl_PREREQ_TEMPNAME): Move...
45092         * m4/tempname.m4: ...to this new file.
45093         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
45094         * modules/sys_stat (Depends-on): Add stat-macros.
45095         * lib/stat_.h (includes): Pick up stat macros.
45096         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
45097         if stat macros are broken.
45098         * lib/tempname.c (includes): No need to include "stat-macros.h".
45099         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
45100         (direxists, __path_search) [!_LIBC]: Don't compile these in
45101         gnulib; the tmpdir module covers that.
45102         * lib/tempname.h: New file.
45103
45104 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45105
45106         * COPYING: Explain how gnulib-tool converts licence headers.
45107         Almost all wording by Eric Blake.
45108
45109 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
45110
45111         * lib/mbchar.h (is_basic_table): Make read-only.
45112         * lib/mbchar.c (is_basic_table): Likewise.
45113         Reported by John Darrington.
45114
45115 2006-10-25  Bruno Haible  <bruno@clisp.org>
45116
45117         * lib/progname.h (set_program_name): Undefine before defining.
45118
45119 2006-10-25  Bruno Haible  <bruno@clisp.org>
45120
45121         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
45122         false for non-gcc C++ compilers.
45123         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45124
45125 2006-10-24  Bruno Haible  <bruno@clisp.org>
45126
45127         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
45128         iconv implementations like Irix iconv.
45129
45130 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45131
45132         * modules/vararrays: New file.
45133         * m4/vararrays.m4: New file, taken from diffutils.
45134         * MODULES.html.sh: New module vararrays.
45135
45136 2006-10-24  Karl Berry  <karl@gnu.org>
45137
45138         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
45139         Don't call GNU Unix.
45140
45141 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45142
45143         * users.txt: Add Libtool.
45144
45145         Sync from Libtool:
45146
45147         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45148
45149         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
45150         to gnulib's policy of including config.h unconditionally.
45151
45152 2006-10-24  Bruno Haible  <bruno@clisp.org>
45153
45154         * modules/wcwidth (Files): Add m4/wint_t.m4.
45155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
45156         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
45157
45158 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45159
45160         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
45161         to pacify GCC with some -W flags enabled.  Problem reported by
45162         Bruno Haible.
45163
45164 2006-10-24  Jim Meyering  <jim@meyering.net>
45165
45166         * MODULES.html.sh: Remove uinttostr.  It's not a module.
45167         Reported by Karl Berry.
45168
45169 2006-10-23  Bruno Haible  <bruno@clisp.org>
45170
45171         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
45172
45173 2006-10-24  Bruno Haible  <bruno@clisp.org>
45174
45175         * lib/gl_list.h: Use C comment style, not C++ comment style.
45176
45177 2006-10-23  Eric Blake  <ebb9@byu.net>
45178
45179         * lib/getaddrinfo.c (includes): Add missing include.
45180
45181 2006-10-23  Bruno Haible  <bruno@clisp.org>
45182             Paul Eggert  <eggert@cs.ucla.edu>
45183
45184         Ability to rename obstack_free.
45185         * lib/obstack.h (__obstack_free): New macro. Declare instead of
45186         obstack_free.
45187         (obstack_free): Invoke the __obstack_free macro.
45188         * lib/obstack.c (obstack_free): Use __obstack_free macro.
45189
45190 2006-10-23  Bruno Haible  <bruno@clisp.org>
45191             Paul Eggert  <eggert@cs.ucla.edu>
45192
45193         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
45194         __argc, __argv from the declaration. (They are defined as macros on
45195         mingw.)
45196
45197 2006-10-22  Bruno Haible  <bruno@clisp.org>
45198
45199         * doc/gnulib-intro.texi: New file.
45200         * doc/gnulib.texi: Include it.
45201
45202 2006-10-21  Bruno Haible  <bruno@clisp.org>
45203
45204         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
45205         "Introduction", "Miscellanous Notes", "Particular Modules".
45206
45207 2006-10-21  Bruno Haible  <bruno@clisp.org>
45208
45209         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45210         Change mostlyclean-local rule to avoid sh syntax error from bash
45211         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
45212
45213 2006-10-23  Jim Meyering  <jim@meyering.net>
45214
45215         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
45216         in place of snprintf.
45217
45218         * modules/inttostr (Files): Add lib/uinttostr.c.
45219         * lib/uinttostr.c (inttostr): New file/function.
45220         * lib/inttostr.h (uinttostr): Declare.
45221         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
45222         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45223         Add uinttostr.
45224         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
45225
45226 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45227
45228         * lib/canonicalize.c (ELOOP): Define if not already defined.
45229         Problem reported by Bruno Haible in
45230         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
45231
45232 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45233
45234         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
45235         Problem reported by Perry Smith and Ville Laurikari.
45236
45237         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
45238         uses.
45239
45240 2006-10-19  Bruno Haible  <bruno@clisp.org>
45241
45242         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
45243         for mingw.
45244
45245 2006-10-19  Bruno Haible  <bruno@clisp.org>
45246
45247         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
45248         Needed for mingw.
45249
45250 2006-10-19  Bruno Haible  <bruno@clisp.org>
45251
45252         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
45253
45254 2006-10-19  Bruno Haible  <bruno@clisp.org>
45255
45256         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
45257         it.
45258
45259 2006-10-19  Bruno Haible  <bruno@clisp.org>
45260
45261         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
45262         invocation.
45263
45264 2006-10-19  Bruno Haible  <bruno@clisp.org>
45265
45266         * gnulib-tool (func_create_testdir): Don't include ftruncate and
45267         mountlist by default.
45268
45269 2006-10-16  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/c-strstr.c: Include c-strstr.h.
45272
45273 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45274
45275         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
45276         in a slash.
45277
45278 2006-10-18  Bruno Haible  <bruno@clisp.org>
45279
45280         * lib/lock.h [C++]: Wrap definitions in extern "C".
45281
45282 2006-10-18  Bruno Haible  <bruno@clisp.org>
45283
45284         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
45285         gl_LIBOBJS list.
45286
45287 2006-10-18  Bruno Haible  <bruno@clisp.org>
45288
45289         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
45290
45291 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
45292
45293         * lib/xstrtol.h: Include gettext.h.
45294         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
45295         Problem reported by Eric Blake.
45296         * modules/xstrtol (Depends-on): Add gettext-h.
45297
45298 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
45299
45300         * lib/strftime.c (advance): New macro.
45301         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
45302         incomplete type, so you can't add 0 to it.  Problem and patch
45303         reported by Eelco Dolstra for dietlibc.
45304
45305 2006-10-18  Jim Meyering  <jim@meyering.net>
45306
45307         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
45308         type for a local, and rename it: s/up/user_proc/.
45309
45310 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45311
45312         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
45313         READ_UTMP_USER_PROCESS.
45314         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
45315
45316 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45317
45318         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
45319         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
45320
45321 2006-10-17  Eric Blake  <ebb9@byu.net>
45322
45323         * lib/sigprocmask.c (sigprocmask): Fix typo.
45324
45325         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
45326
45327         * modules/clean-temp (Makefile.am): Don't add to make output...
45328         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
45329         config.h.
45330
45331 2006-10-17  Bruno Haible  <bruno@clisp.org>
45332
45333         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
45334         differently if DEFAULT_TEXT_DOMAIN is set.
45335
45336 2006-10-16  Bruno Haible  <bruno@clisp.org>
45337
45338         * lib/clean-temp.c: Include fwriteerror.h.
45339
45340 2006-10-16  Bruno Haible  <bruno@clisp.org>
45341
45342         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
45343
45344 2006-10-16  Bruno Haible  <bruno@clisp.org>
45345
45346         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
45347         * lib/sigprocmask.h: Include <sys/types.h>.
45348         (sigset_t): Use the system's definition if present.
45349
45350 2006-10-17  Eric Blake  <ebb9@byu.net>
45351
45352         * lib/xvasprintf.c (includes): Assume config.h.
45353         * lib/xasprintf.c (includes): Likewise.
45354
45355 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45356
45357         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
45358         at least as wide as intmax_t.
45359
45360 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
45361
45362         (Imported from Automake.)
45363         * build-aux/gnupload: Update to version 1.1 of directive file.
45364
45365 2006-10-16  Eric Blake  <ebb9@byu.net>
45366
45367         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
45368         match Automake 1.10a.
45369
45370 2006-10-14  Bruno Haible  <bruno@clisp.org>
45371
45372         * modules/sigprocmask: New file.
45373         * lib/sigprocmask.h: New file.
45374         * lib/sigprocmask.c: New file.
45375         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
45376         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
45377         request sigprocmask.o.
45378         (gl_PREREQ_SIGPROCMASK): New macro.
45379         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
45380         (Depends-on): Add sigprocmask.
45381         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
45382         gt_SIGNALBLOCKING. Test for 'raise' only once.
45383         * lib/fatal-signal.c: Include sigprocmask.h.
45384         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
45385         unblock_fatal_signals): Define always.
45386         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45387         sigprocmask.
45388
45389 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45390
45391         Sync from Automake.
45392         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
45393         which incorrectly sets the mode of an existing destination
45394         directory.  In some cases the unpatched install-sh could do the
45395         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
45396         system.  We hope this is rare in practice, but it's clearly worth
45397         fixing.  Problem reported by Alex Unleashed in
45398         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
45399         Also, don't bother to check for -m bugs unless we're using -m;
45400         suggested by Stepan Kasal.
45401
45402 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45403
45404         Sync from Automake.
45405         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
45406         `-c' flag, so they appear at the same position as in %FASTDEP%
45407         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
45408         which ignores unknown options only after the first non-option.
45409         Bug report against M4 by Nelson H. F. Beebe.
45410
45411 2006-10-13  Jim Meyering  <jim@meyering.net>
45412
45413         Fix a bug in yesterday's change.
45414         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
45415         p->fts_statp->st_dev would be used uninitialized.
45416         Ensures that we always call fts_stat on the very first entry.
45417         Miklos Szeredi reported that find -xdev stopped working.
45418
45419 2006-10-12  Bruno Haible  <bruno@clisp.org>
45420
45421         * gnulib-tool (func_get_automake_snippet): Append an automatically
45422         computed EXTRA_DIST augmentation.
45423         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
45424         * modules/alloca-opt (Makefile.am): Likewise.
45425         * modules/allocsa (Makefile.am): Likewise.
45426         * modules/arcfour (Makefile.am): Likewise.
45427         * modules/arctwo (Makefile.am): Likewise.
45428         * modules/argmatch (Makefile.am): Likewise.
45429         * modules/argz (Makefile.am): Likewise.
45430         * modules/atexit (Makefile.am): Likewise.
45431         * modules/backupfile (Makefile.am): Likewise.
45432         * modules/byteswap (Makefile.am): Likewise.
45433         * modules/c-strtod (Makefile.am): Likewise.
45434         * modules/c-strtold (Makefile.am): Likewise.
45435         * modules/calloc (Makefile.am): Likewise.
45436         * modules/canon-host (Makefile.am): Likewise.
45437         * modules/canonicalize (Makefile.am): Likewise.
45438         * modules/chdir-long (Makefile.am): Likewise.
45439         * modules/chdir-safer (Makefile.am): Likewise.
45440         * modules/check-version (Makefile.am): Likewise.
45441         * modules/chown (Makefile.am): Likewise.
45442         * modules/cloexec (Makefile.am): Likewise.
45443         * modules/close-stream (Makefile.am): Likewise.
45444         * modules/closeout (Makefile.am): Likewise.
45445         * modules/crc (Makefile.am): Likewise.
45446         * modules/csharpexec (Makefile.am): Likewise.
45447         * modules/cycle-check (Makefile.am): Likewise.
45448         * modules/des (Makefile.am): Likewise.
45449         * modules/dev-ino (Makefile.am): Likewise.
45450         * modules/dirfd (Makefile.am): Likewise.
45451         * modules/dirname (Makefile.am): Likewise.
45452         * modules/dup2 (Makefile.am): Likewise.
45453         * modules/eealloc (Makefile.am): Likewise.
45454         * modules/error (Makefile.am): Likewise.
45455         * modules/euidaccess (Makefile.am): Likewise.
45456         * modules/exclude (Makefile.am): Likewise.
45457         * modules/exitfail (Makefile.am): Likewise.
45458         * modules/fcntl-safer (Makefile.am): Likewise.
45459         * modules/fcntl (Makefile.am): Likewise.
45460         * modules/file-type (Makefile.am): Likewise.
45461         * modules/fileblocks (Makefile.am): Likewise.
45462         * modules/filemode (Makefile.am): Likewise.
45463         * modules/filenamecat (Makefile.am): Likewise.
45464         * modules/fnmatch (Makefile.am): Likewise.
45465         * modules/fopen-safer (Makefile.am): Likewise.
45466         * modules/fpending (Makefile.am): Likewise.
45467         * modules/fprintftime (Makefile.am): Likewise.
45468         * modules/free (Makefile.am): Likewise.
45469         * modules/fsusage (Makefile.am): Likewise.
45470         * modules/ftruncate (Makefile.am): Likewise.
45471         * modules/fts (Makefile.am): Likewise.
45472         * modules/gc-arcfour (Makefile.am): Likewise.
45473         * modules/gc-des (Makefile.am): Likewise.
45474         * modules/gc-hmac-md5 (Makefile.am): Likewise.
45475         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
45476         * modules/gc-md4 (Makefile.am): Likewise.
45477         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45478         * modules/gc-sha1 (Makefile.am): Likewise.
45479         * modules/gc (Makefile.am): Likewise.
45480         * modules/getaddrinfo (Makefile.am): Likewise.
45481         * modules/getcwd (Makefile.am): Likewise.
45482         * modules/getdelim (Makefile.am): Likewise.
45483         * modules/getdomainname (Makefile.am): Likewise.
45484         * modules/getgroups (Makefile.am): Likewise.
45485         * modules/gethostname (Makefile.am): Likewise.
45486         * modules/gethrxtime (Makefile.am): Likewise.
45487         * modules/getline (Makefile.am): Likewise.
45488         * modules/getloadavg (Makefile.am): Likewise.
45489         * modules/getlogin_r (Makefile.am): Likewise.
45490         * modules/getndelim2 (Makefile.am): Likewise.
45491         * modules/getopt (Makefile.am): Likewise.
45492         * modules/getpagesize (Makefile.am): Likewise.
45493         * modules/getpass-gnu (Makefile.am): Likewise.
45494         * modules/getpass (Makefile.am): Likewise.
45495         * modules/getsubopt (Makefile.am): Likewise.
45496         * modules/gettime (Makefile.am): Likewise.
45497         * modules/gettimeofday (Makefile.am): Likewise.
45498         * modules/getugroups (Makefile.am): Likewise.
45499         * modules/getusershell (Makefile.am): Likewise.
45500         * modules/glob (Makefile.am): Likewise.
45501         * modules/group-member (Makefile.am): Likewise.
45502         * modules/hard-locale (Makefile.am): Likewise.
45503         * modules/hash (Makefile.am): Likewise.
45504         * modules/hmac-md5 (Makefile.am): Likewise.
45505         * modules/hmac-sha1 (Makefile.am): Likewise.
45506         * modules/human (Makefile.am): Likewise.
45507         * modules/idcache (Makefile.am): Likewise.
45508         * modules/imaxabs (Makefile.am): Likewise.
45509         * modules/imaxdiv (Makefile.am): Likewise.
45510         * modules/inet_ntop (Makefile.am): Likewise.
45511         * modules/inet_pton (Makefile.am): Likewise.
45512         * modules/intprops (Makefile.am): Likewise.
45513         * modules/inttostr (Makefile.am): Likewise.
45514         * modules/inttypes (Makefile.am): Likewise.
45515         * modules/isapipe (Makefile.am): Likewise.
45516         * modules/javaversion (Makefile.am): Likewise.
45517         * modules/lchmod (Makefile.am): Likewise.
45518         * modules/lchown (Makefile.am): Likewise.
45519         * modules/localcharset (Makefile.am): Likewise.
45520         * modules/long-options (Makefile.am): Likewise.
45521         * modules/lstat (Makefile.am): Likewise.
45522         * modules/malloc (Makefile.am): Likewise.
45523         * modules/mathl (Makefile.am): Likewise.
45524         * modules/mbchar (Makefile.am): Likewise.
45525         * modules/md2 (Makefile.am): Likewise.
45526         * modules/md4 (Makefile.am): Likewise.
45527         * modules/md5 (Makefile.am): Likewise.
45528         * modules/memcasecmp (Makefile.am): Likewise.
45529         * modules/memchr (Makefile.am): Likewise.
45530         * modules/memcmp (Makefile.am): Likewise.
45531         * modules/memcoll (Makefile.am): Likewise.
45532         * modules/memcpy (Makefile.am): Likewise.
45533         * modules/memmem (Makefile.am): Likewise.
45534         * modules/memmove (Makefile.am): Likewise.
45535         * modules/mempcpy (Makefile.am): Likewise.
45536         * modules/memrchr (Makefile.am): Likewise.
45537         * modules/memset (Makefile.am): Likewise.
45538         * modules/memxor (Makefile.am): Likewise.
45539         * modules/mkancesdirs (Makefile.am): Likewise.
45540         * modules/mkdir-p (Makefile.am): Likewise.
45541         * modules/mkdir (Makefile.am): Likewise.
45542         * modules/mkdtemp (Makefile.am): Likewise.
45543         * modules/mkstemp (Makefile.am): Likewise.
45544         * modules/mktime (Makefile.am): Likewise.
45545         * modules/modechange (Makefile.am): Likewise.
45546         * modules/mountlist (Makefile.am): Likewise.
45547         * modules/nanosleep (Makefile.am): Likewise.
45548         * modules/obstack (Makefile.am): Likewise.
45549         * modules/openat (Makefile.am): Likewise.
45550         * modules/pagealign_alloc (Makefile.am): Likewise.
45551         * modules/pathmax (Makefile.am): Likewise.
45552         * modules/physmem (Makefile.am): Likewise.
45553         * modules/poll (Makefile.am): Likewise.
45554         * modules/posixtm (Makefile.am): Likewise.
45555         * modules/posixver (Makefile.am): Likewise.
45556         * modules/putenv (Makefile.am): Likewise.
45557         * modules/quote (Makefile.am): Likewise.
45558         * modules/quotearg (Makefile.am): Likewise.
45559         * modules/raise (Makefile.am): Likewise.
45560         * modules/read-file (Makefile.am): Likewise.
45561         * modules/readline (Makefile.am): Likewise.
45562         * modules/readlink (Makefile.am): Likewise.
45563         * modules/readtokens (Makefile.am): Likewise.
45564         * modules/readutmp (Makefile.am): Likewise.
45565         * modules/realloc (Makefile.am): Likewise.
45566         * modules/regex (Makefile.am): Likewise.
45567         * modules/rename-dest-slash (Makefile.am): Likewise.
45568         * modules/rename (Makefile.am): Likewise.
45569         * modules/rijndael (Makefile.am): Likewise.
45570         * modules/rmdir (Makefile.am): Likewise.
45571         * modules/rpmatch (Makefile.am): Likewise.
45572         * modules/safe-read (Makefile.am): Likewise.
45573         * modules/safe-write (Makefile.am): Likewise.
45574         * modules/same-inode (Makefile.am): Likewise.
45575         * modules/same (Makefile.am): Likewise.
45576         * modules/save-cwd (Makefile.am): Likewise.
45577         * modules/savedir (Makefile.am): Likewise.
45578         * modules/setenv (Makefile.am): Likewise.
45579         * modules/settime (Makefile.am): Likewise.
45580         * modules/sha1 (Makefile.am): Likewise.
45581         * modules/sig2str (Makefile.am): Likewise.
45582         * modules/snprintf (Makefile.am): Likewise.
45583         * modules/stat-macros (Makefile.am): Likewise.
45584         * modules/stat-time (Makefile.am): Likewise.
45585         * modules/stdbool (Makefile.am): Likewise.
45586         * modules/stdint (Makefile.am): Likewise.
45587         * modules/stdlib-safer (Makefile.am): Likewise.
45588         * modules/stpcpy (Makefile.am): Likewise.
45589         * modules/stpncpy (Makefile.am): Likewise.
45590         * modules/strcase (Makefile.am): Likewise.
45591         * modules/strcasestr (Makefile.am): Likewise.
45592         * modules/strchrnul (Makefile.am): Likewise.
45593         * modules/strcspn (Makefile.am): Likewise.
45594         * modules/strdup (Makefile.am): Likewise.
45595         * modules/strerror (Makefile.am): Likewise.
45596         * modules/strftime (Makefile.am): Likewise.
45597         * modules/strndup (Makefile.am): Likewise.
45598         * modules/strnlen (Makefile.am): Likewise.
45599         * modules/strpbrk (Makefile.am): Likewise.
45600         * modules/strsep (Makefile.am): Likewise.
45601         * modules/strstr (Makefile.am): Likewise.
45602         * modules/strtod (Makefile.am): Likewise.
45603         * modules/strtoimax (Makefile.am): Likewise.
45604         * modules/strtok_r (Makefile.am): Likewise.
45605         * modules/strtol (Makefile.am): Likewise.
45606         * modules/strtoll (Makefile.am): Likewise.
45607         * modules/strtoul (Makefile.am): Likewise.
45608         * modules/strtoull (Makefile.am): Likewise.
45609         * modules/strtoumax (Makefile.am): Likewise.
45610         * modules/strverscmp (Makefile.am): Likewise.
45611         * modules/sys_socket (Makefile.am): Likewise.
45612         * modules/sys_stat (Makefile.am): Likewise.
45613         * modules/sysexits (Makefile.am): Likewise.
45614         * modules/time_r (Makefile.am): Likewise.
45615         * modules/timegm (Makefile.am): Likewise.
45616         * modules/timespec (Makefile.am): Likewise.
45617         * modules/tmpfile-safer (Makefile.am): Likewise.
45618         * modules/trim (Makefile.am): Likewise.
45619         * modules/unistd-safer (Makefile.am): Likewise.
45620         * modules/unlinkdir (Makefile.am): Likewise.
45621         * modules/unlocked-io (Makefile.am): Likewise.
45622         * modules/userspec (Makefile.am): Likewise.
45623         * modules/utime (Makefile.am): Likewise.
45624         * modules/utimecmp (Makefile.am): Likewise.
45625         * modules/utimens (Makefile.am): Likewise.
45626         * modules/vasnprintf (Makefile.am): Likewise.
45627         * modules/vasprintf (Makefile.am): Likewise.
45628         * modules/vsnprintf (Makefile.am): Likewise.
45629         * modules/xalloc (Makefile.am): Likewise.
45630         * modules/xgetcwd (Makefile.am): Likewise.
45631         * modules/xnanosleep (Makefile.am): Likewise.
45632         * modules/xreadlink (Makefile.am): Likewise.
45633         * modules/xstrtod (Makefile.am): Likewise.
45634         * modules/xstrtol (Makefile.am): Likewise.
45635         * modules/xstrtold (Makefile.am): Likewise.
45636         * modules/yesno (Makefile.am): Likewise.
45637         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45638
45639 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45640
45641         * modules/error (Makefile.am): Distribute files through
45642         EXTRA_DIST, not lib_SOURCES.
45643
45644 2006-10-12  Eric Blake  <ebb9@byu.net>
45645
45646         * modules/error (Makefile.am): Distribute files in /lib.
45647         * modules/obstack (Makefile.am): Likewise.
45648
45649 2006-10-12  Bruno Haible  <bruno@clisp.org>
45650
45651         * modules/acl (Makefile.am): Distribute all files in lib/ through
45652         EXTRA_DIST.
45653         * modules/arcfour (Makefile.am): Likewise.
45654         * modules/arctwo (Makefile.am): Likewise.
45655         * modules/argmatch (Makefile.am): Likewise.
45656         * modules/argz (Makefile.am): Likewise.
45657         * modules/atexit (Makefile.am): Likewise.
45658         * modules/backupfile (Makefile.am): Likewise.
45659         * modules/c-strtod (Makefile.am): Likewise.
45660         * modules/c-strtold (Makefile.am): Likewise.
45661         * modules/calloc (Makefile.am): Likewise.
45662         * modules/canon-host (Makefile.am): Likewise.
45663         * modules/canonicalize (Makefile.am): Likewise.
45664         * modules/chdir-long (Makefile.am): Likewise.
45665         * modules/chdir-safer (Makefile.am): Likewise.
45666         * modules/check-version (Makefile.am): Likewise.
45667         * modules/chown (Makefile.am): Likewise.
45668         * modules/cloexec (Makefile.am): Likewise.
45669         * modules/close-stream (Makefile.am): Likewise.
45670         * modules/closeout (Makefile.am): Likewise.
45671         * modules/crc (Makefile.am): Likewise.
45672         * modules/cycle-check (Makefile.am): Likewise.
45673         * modules/des (Makefile.am): Likewise.
45674         * modules/dirfd (Makefile.am): Likewise.
45675         * modules/dirname (Makefile.am): Likewise.
45676         * modules/dup2 (Makefile.am): Likewise.
45677         * modules/euidaccess (Makefile.am): Likewise.
45678         * modules/exclude (Makefile.am): Likewise.
45679         * modules/exitfail (Makefile.am): Likewise.
45680         * modules/fcntl-safer (Makefile.am): Likewise.
45681         * modules/file-type (Makefile.am): Likewise.
45682         * modules/fileblocks (Makefile.am): Likewise.
45683         * modules/filemode (Makefile.am): Likewise.
45684         * modules/filenamecat (Makefile.am): Likewise.
45685         * modules/fnmatch (Makefile.am): Likewise.
45686         * modules/fopen-safer (Makefile.am): Likewise.
45687         * modules/fpending (Makefile.am): Likewise.
45688         * modules/fprintftime (Makefile.am): Likewise.
45689         * modules/free (Makefile.am): Likewise.
45690         * modules/fsusage (Makefile.am): Likewise.
45691         * modules/ftruncate (Makefile.am): Likewise.
45692         * modules/fts (Makefile.am): Likewise.
45693         * modules/gc (Makefile.am): Likewise.
45694         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45695         * modules/getaddrinfo (Makefile.am): Likewise.
45696         * modules/getcwd (Makefile.am): Likewise.
45697         * modules/getdelim (Makefile.am): Likewise.
45698         * modules/getdomainname (Makefile.am): Likewise.
45699         * modules/getgroups (Makefile.am): Likewise.
45700         * modules/gethostname (Makefile.am): Likewise.
45701         * modules/gethrxtime (Makefile.am): Likewise.
45702         * modules/getline (Makefile.am): Likewise.
45703         * modules/getloadavg (Makefile.am): Likewise.
45704         * modules/getlogin_r (Makefile.am): Likewise.
45705         * modules/getopt (Makefile.am): Likewise.
45706         * modules/getpass (Makefile.am): Likewise.
45707         * modules/getpass-gnu (Makefile.am): Likewise.
45708         * modules/getsubopt (Makefile.am): Likewise.
45709         * modules/gettime (Makefile.am): Likewise.
45710         * modules/gettimeofday (Makefile.am): Likewise.
45711         * modules/getugroups (Makefile.am): Likewise.
45712         * modules/getusershell (Makefile.am): Likewise.
45713         * modules/glob (Makefile.am): Likewise.
45714         * modules/group-member (Makefile.am): Likewise.
45715         * modules/hard-locale (Makefile.am): Likewise.
45716         * modules/hash (Makefile.am): Likewise.
45717         * modules/hmac-md5 (Makefile.am): Likewise.
45718         * modules/hmac-sha1 (Makefile.am): Likewise.
45719         * modules/human (Makefile.am): Likewise.
45720         * modules/idcache (Makefile.am): Likewise.
45721         * modules/imaxabs (Makefile.am): Likewise.
45722         * modules/imaxdiv (Makefile.am): Likewise.
45723         * modules/inet_ntop (Makefile.am): Likewise.
45724         * modules/inet_pton (Makefile.am): Likewise.
45725         * modules/inttostr (Makefile.am): Likewise.
45726         * modules/isapipe (Makefile.am): Likewise.
45727         * modules/lchown (Makefile.am): Likewise.
45728         * modules/long-options (Makefile.am): Likewise.
45729         * modules/lstat (Makefile.am): Likewise.
45730         * modules/malloc (Makefile.am): Likewise.
45731         * modules/mathl (Makefile.am): Likewise.
45732         * modules/mbchar (Makefile.am): Likewise.
45733         * modules/md2 (Makefile.am): Likewise.
45734         * modules/md4 (Makefile.am): Likewise.
45735         * modules/md5 (Makefile.am): Likewise.
45736         * modules/memcasecmp (Makefile.am): Likewise.
45737         * modules/memchr (Makefile.am): Likewise.
45738         * modules/memcmp (Makefile.am): Likewise.
45739         * modules/memcoll (Makefile.am): Likewise.
45740         * modules/memcpy (Makefile.am): Likewise.
45741         * modules/memmem (Makefile.am): Likewise.
45742         * modules/memmove (Makefile.am): Likewise.
45743         * modules/mempcpy (Makefile.am): Likewise.
45744         * modules/memrchr (Makefile.am): Likewise.
45745         * modules/memset (Makefile.am): Likewise.
45746         * modules/memxor (Makefile.am): Likewise.
45747         * modules/mkancesdirs (Makefile.am): Likewise.
45748         * modules/mkdir (Makefile.am): Likewise.
45749         * modules/mkdir-p (Makefile.am): Likewise.
45750         * modules/mkdtemp (Makefile.am): Likewise.
45751         * modules/mkstemp (Makefile.am): Likewise.
45752         * modules/mktime (Makefile.am): Likewise.
45753         * modules/modechange (Makefile.am): Likewise.
45754         * modules/mountlist (Makefile.am): Likewise.
45755         * modules/nanosleep (Makefile.am): Likewise.
45756         * modules/openat (Makefile.am): Likewise.
45757         * modules/pagealign_alloc (Makefile.am): Likewise.
45758         * modules/physmem (Makefile.am): Likewise.
45759         * modules/poll (Makefile.am): Likewise.
45760         * modules/posixtm (Makefile.am): Likewise.
45761         * modules/posixver (Makefile.am): Likewise.
45762         * modules/putenv (Makefile.am): Likewise.
45763         * modules/quote (Makefile.am): Likewise.
45764         * modules/quotearg (Makefile.am): Likewise.
45765         * modules/raise (Makefile.am): Likewise.
45766         * modules/read-file (Makefile.am): Likewise.
45767         * modules/readline (Makefile.am): Likewise.
45768         * modules/readlink (Makefile.am): Likewise.
45769         * modules/readtokens (Makefile.am): Likewise.
45770         * modules/readutmp (Makefile.am): Likewise.
45771         * modules/realloc (Makefile.am): Likewise.
45772         * modules/regex (Makefile.am): Likewise.
45773         * modules/rename (Makefile.am): Likewise.
45774         * modules/rename-dest-slash (Makefile.am): Likewise.
45775         * modules/rijndael (Makefile.am): Likewise.
45776         * modules/rmdir (Makefile.am): Likewise.
45777         * modules/rpmatch (Makefile.am): Likewise.
45778         * modules/safe-read (Makefile.am): Likewise.
45779         * modules/safe-write (Makefile.am): Likewise.
45780         * modules/same (Makefile.am): Likewise.
45781         * modules/save-cwd (Makefile.am): Likewise.
45782         * modules/savedir (Makefile.am): Likewise.
45783         * modules/setenv (Makefile.am): Likewise.
45784         * modules/settime (Makefile.am): Likewise.
45785         * modules/sha1 (Makefile.am): Likewise.
45786         * modules/sig2str (Makefile.am): Likewise.
45787         * modules/snprintf (Makefile.am): Likewise.
45788         * modules/stdlib-safer (Makefile.am): Likewise.
45789         * modules/stpcpy (Makefile.am): Likewise.
45790         * modules/stpncpy (Makefile.am): Likewise.
45791         * modules/strcase (Makefile.am): Likewise.
45792         * modules/strcasestr (Makefile.am): Likewise.
45793         * modules/strchrnul (Makefile.am): Likewise.
45794         * modules/strcspn (Makefile.am): Likewise.
45795         * modules/strdup (Makefile.am): Likewise.
45796         * modules/strerror (Makefile.am): Likewise.
45797         * modules/strftime (Makefile.am): Likewise.
45798         * modules/strndup (Makefile.am): Likewise.
45799         * modules/strnlen (Makefile.am): Likewise.
45800         * modules/strpbrk (Makefile.am): Likewise.
45801         * modules/strsep (Makefile.am): Likewise.
45802         * modules/strstr (Makefile.am): Likewise.
45803         * modules/strtod (Makefile.am): Likewise.
45804         * modules/strtoimax (Makefile.am): Likewise.
45805         * modules/strtok_r (Makefile.am): Likewise.
45806         * modules/strtol (Makefile.am): Likewise.
45807         * modules/strtoll (Makefile.am): Likewise.
45808         * modules/strtoul (Makefile.am): Likewise.
45809         * modules/strtoull (Makefile.am): Likewise.
45810         * modules/strtoumax (Makefile.am): Likewise.
45811         * modules/strverscmp (Makefile.am): Likewise.
45812         * modules/time_r (Makefile.am): Likewise.
45813         * modules/timegm (Makefile.am): Likewise.
45814         * modules/tmpfile-safer (Makefile.am): Likewise.
45815         * modules/unistd-safer (Makefile.am): Likewise.
45816         * modules/unlinkdir (Makefile.am): Likewise.
45817         * modules/userspec (Makefile.am): Likewise.
45818         * modules/utime (Makefile.am): Likewise.
45819         * modules/utimecmp (Makefile.am): Likewise.
45820         * modules/utimens (Makefile.am): Likewise.
45821         * modules/vasnprintf (Makefile.am): Likewise.
45822         * modules/vasprintf (Makefile.am): Likewise.
45823         * modules/vsnprintf (Makefile.am): Likewise.
45824         * modules/xalloc (Makefile.am): Likewise.
45825         * modules/xgetcwd (Makefile.am): Likewise.
45826         * modules/xnanosleep (Makefile.am): Likewise.
45827         * modules/xreadlink (Makefile.am): Likewise.
45828         * modules/xstrtod (Makefile.am): Likewise.
45829         * modules/xstrtol (Makefile.am): Likewise.
45830         * modules/xstrtold (Makefile.am): Likewise.
45831         * modules/yesno (Makefile.am): Likewise.
45832
45833 2006-10-12  Jim Meyering  <jim@meyering.net>
45834
45835         * m4/getloadavg.m4: Revert the change below.
45836
45837         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
45838         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
45839         fail with a symlink, which is what coreutils' ./bootstrap now
45840         creates by default.
45841
45842 2006-10-12  Bruno Haible  <bruno@clisp.org>
45843
45844         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
45845         mingw.
45846         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
45847         MSVC and mingw explicitly.
45848
45849 2006-10-11  Simon Josefsson  <jas@extundo.com>
45850             Bruno Haible  <bruno@clisp.org>
45851
45852         Add support for multiple gnulib-tool invocations in the scope of a
45853         single configure.ac file.
45854         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
45855         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
45856         with the same contents as the _LIBADD variable.
45857         (func_emit_initmacro_start, func_emit_initmacro_end,
45858         func_emit_initmacro_done): New functions.
45859         (func_import, func_create_testdir): Invoke them. Allow the identifiers
45860         gl_LIBOBJS and gl_LTLIBOBJS.
45861
45862 2006-10-11  Bruno Haible  <bruno@clisp.org>
45863
45864         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
45865         (func_create_testdir): Don't create po/Makefile.am, don't invoke
45866         autoreconf. Instead, invoke autopoint explicitly but move back the
45867         *.m4 files from gnulib.
45868
45869 2006-10-11  Bruno Haible  <bruno@clisp.org>
45870
45871         * gnulib-tool (func_usage): Make module names after --create-testdir
45872         optional.
45873         (func_create_testdir): If no module was specified, use nearly all
45874         modules.
45875
45876 2006-10-12  Jim Meyering  <jim@meyering.net>
45877
45878         Big performance improvement for fts-based tools that use FTS_NOSTAT.
45879         Avoid spurious inode-mismatch problems on non-POSIX file systems.
45880         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
45881         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
45882         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
45883         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
45884         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
45885         (fts_set_stat_required): New function.
45886         (fts_open): Defer the calls to fts_stat, if possible or requested.
45887         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
45888         into fts_stat itself.
45889         (fts_read): Perform any required (deferred) fts_stat call.
45890         (fts_build): Likewise, for the directory we're about to open and read.
45891         In the readdir loop, carefully decide whether each entry will require
45892         an eventual call to fts_stat, using dirent.d_type info if available.
45893         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
45894         a command line argument into this function.  Update all callers.
45895         Map a return value of FTS_DOT to FTS_D for a command line argument.
45896         * modules/fts (Depends-on): Add d-type.  Alphabetize.
45897         Thanks to Miklos Szeredi for his tenacity and for the initial
45898         bug report about "find" failing on a FUSE-based file system.
45899
45900         * lib/fts.c (fts_open): Use consistent indentation.
45901
45902 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45903
45904         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
45905         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
45906         reported by Jim Meyering.  All uses of cache variables renamed
45907         to match Autoconf's.
45908         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
45909         the other one.
45910
45911         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45912         Fix misspelling in diagnostic.
45913
45914 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45915
45916         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
45917         defined.  Problem reported by Matthew Woehlke.
45918
45919         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
45920         Add support for Tandem NonStop R series.
45921         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
45922         Use new macro.
45923
45924         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
45925         (has_trailing_slash): Omit size arg; all callers changed.
45926         Omit 'inline', since it doesn't help performance and we'd
45927         need to configure it.
45928         Don't count //, ///, etc. as having a trailing slash.
45929         As a side effect, this removes a C99ism reported by Matthew Woehlke.
45930         (rpl_rename_dest_slash): On failure, use rename's errno rather
45931         than (in some cases) an incorrect or junk errno.
45932         Simplify code by removing need to compute length; this does
45933         cause it to make two passes instead of one over the file name,
45934         but it's worth it.
45935
45936         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
45937         change, since Autoconf's version may no longer be appropriate now
45938         that we are using CVS Autoconf's version.  Add support for Tandem.
45939
45940 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45941             Bruno Haible  <bruno@clisp.org>
45942
45943         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
45944         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
45945         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
45946         gl_AC_TYPE_LONG_LONG.
45947
45948         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
45949         instead of HAVE_LONG_LONG.
45950         * lib/printf-args.c (printf_fetchargs): Likewise.
45951         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45952         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45953         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
45954         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
45955         gl_AC_TYPE_LONG_LONG.
45956
45957 2006-10-11  Bruno Haible  <bruno@clisp.org>
45958
45959         * m4/longlong.m4: Add comments.
45960         * m4/ulonglong.m4: Likewise.
45961
45962 2006-10-10  Bruno Haible  <bruno@clisp.org>
45963
45964         Make it possible to #define stpcpy, strdup to aliases.
45965         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
45966         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
45967
45968 2006-10-10  Bruno Haible  <bruno@clisp.org>
45969
45970         Make it possible to #define gcd to an alias.
45971         * lib/gcd.c: Include config.h.
45972
45973 2006-10-10  Bruno Haible  <bruno@clisp.org>
45974
45975         Make it possible to #define c_isascii to an alias.
45976         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
45977         defined. Undefine the macros before defining them, to avoid gcc
45978         warnings.
45979         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
45980         define NO_C_CTYPE_MACROS early.
45981
45982 2006-10-10  Bruno Haible  <bruno@clisp.org>
45983
45984         Make it possible to #define set_program_name to an alias.
45985         * lib/progname.c: Don't undefine set_program_name; instead, undefine
45986         ENABLE_RELOCATABLE early.
45987
45988 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45989
45990         Port to Tandem NSK OSS, which has 64-bit signed int but at most
45991         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
45992         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
45993         More generally, don't assume that 64-bit signed int is available
45994         if unsigned int is, and vice versa.
45995         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
45996         unsigned symbols, not on their signed counterparts.
45997         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
45998         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
45999         (UINT64_C, UINTMAX_C):
46000         Likewise.
46001         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
46002         unsigned counterparts.
46003         (Have_long_long, Unsigned): New macros.
46004         (Int): Renamed from INT.
46005         (strtoimax): Use the new macros.
46006         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
46007         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
46008         * modules/inttypes (inttypes.h): Substitute
46009         HAVE_UNSIGNED_LONG_LONG_INT.
46010         * modules/stdint (stdint.h): Likewise.
46011         (Files): Add m4/ulonglong.m4.
46012
46013 2006-10-10  Bruno Haible  <bruno@clisp.org>
46014
46015         Fix a gcc -Wshadow warning.
46016         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
46017         to 'bucket'.
46018         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
46019         gl_linked_indexof_from_to): Likewise.
46020         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
46021         Likewise.
46022         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
46023         Likewise.
46024         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
46025         Reported by Eric Blake.
46026
46027 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
46028
46029         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
46030         for NetBSD.  Problem reported by Bruno Haible.
46031
46032 2006-10-09  Jim Meyering  <jim@meyering.net>
46033
46034         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
46035         Patch from Bruno Haible.
46036
46037 2006-10-09  Jim Meyering  <jim@meyering.net>
46038
46039         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
46040         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
46041         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
46042
46043 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46044
46045         Don't include <config.h> twice; this doesn't work in some cases,
46046         e.g., when config.h has "#define intmax_t long long int" and
46047         we include <config.h>, <inttypes.h>, <config.h> in that order.
46048         Problem reported by Matthew Woehlke in:
46049         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
46050         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
46051         * lib/fts-cycle.c: Don't include config.h.
46052         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
46053         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
46054         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
46055         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
46056         inttypes.h.
46057         * lib/xstrtoumax.c: Likewise.
46058         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
46059         __strtol and the like, so that this module is more like its siblings.
46060         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
46061         Remove; no longer needed now that we assume gnulib inttypes.h.
46062
46063 2006-10-08  Bruno Haible  <bruno@clisp.org>
46064
46065         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
46066         option.
46067
46068 2006-10-07  Jim Meyering  <jim@meyering.net>
46069
46070         * modules/inttypes (inttypes.h): Revert what seems to have been
46071         an inadvertent part of today's change: use "|", not "/" in the
46072         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
46073
46074 2006-10-07  Bruno Haible  <bruno@clisp.org>
46075
46076         * modules/sublist: New file.
46077
46078 2006-10-07  Bruno Haible  <bruno@clisp.org>
46079
46080         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
46081         * modules/argz (argz.h): Likewise.
46082         * modules/arpa_inet (arpa/inet.h): Likewise.
46083         * modules/byteswap (byteswap.h): Likewise.
46084         * modules/configmake (configmake.h): Likewise.
46085         * modules/fcntl (fcntl.h): Likewise.
46086         * modules/fnmatch (fnmatch.h): Likewise.
46087         * modules/getopt (getopt.h): Likewise.
46088         * modules/glob (glob.h): Likewise.
46089         * modules/inttypes (inttypes.h): Likewise.
46090         * modules/netinet_in (netinet/in.h): Likewise.
46091         * modules/poll (poll.h): Likewise.
46092         * modules/stdbool (stdbool.h): Likewise.
46093         * modules/stdint (stdint.h): Likewise.
46094         * modules/sys_select (sys/select.h): Likewise.
46095         * modules/sys_socket (sys/socket.h): Likewise.
46096         * modules/sys_stat (sys/stat.h): Likewise.
46097         * modules/sysexits (sysexits.h): Likewise.
46098         * modules/unistd (unistd.h): Likewise.
46099         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46100         Add a "DO NOT EDIT" comment to the generated file.
46101         (func_import): Likewise for gnulib-comp.m4.
46102
46103 2006-10-07  Bruno Haible  <bruno@clisp.org>
46104
46105         * lib/gl_sublist.h: New file.
46106         * lib/gl_sublist.c: New file.
46107
46108 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
46109
46110         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
46111         name (relative to the original working directory) and the file
46112         name component (relative to the temporary working directory).  All
46113         callers changed.
46114         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
46115         * lib/mkdir-p.c (make_dir_parents): Likewise.
46116         * lib/mkdir-p.h (make_dir_parents): Likewise.
46117
46118 2006-10-06  Eric Blake  <ebb9@byu.net>
46119
46120         Define several macros for use by the clean-temp module.
46121         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
46122         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
46123         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
46124
46125         * lib/clean-temp.h (close_stream_temp): New declaration.
46126         * lib/clean-temp.c (includes): Pull in headers according to what
46127         other modules are in use.
46128         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
46129
46130 2006-10-06  Bruno Haible  <bruno@clisp.org>
46131
46132         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
46133         instead of fopen, fwriteerror.
46134
46135 2006-10-06  Bruno Haible  <bruno@clisp.org>
46136
46137         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
46138         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
46139         int.
46140         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
46141         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
46142         Return an error indicator.
46143         Suggested by Eric Blake.
46144
46145 2006-10-06  Bruno Haible  <bruno@clisp.org>
46146
46147         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
46148         Reported by Eric Blake.
46149
46150 2006-10-06  Bruno Haible  <bruno@clisp.org>
46151
46152         * modules/closeout (Description): Mention stderr too.
46153
46154 2006-10-06  Bruno Haible  <bruno@clisp.org>
46155         and Paul Eggert  <eggert@cs.ucla.edu>
46156
46157         * lib/closeout.c (close_stdout): Also close stderr.
46158         * lib/closeout.h: Update comment.
46159
46160 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46161
46162         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
46163         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
46164         * lib/dirchownmod.c: Include lchown.h.
46165         * lib/lchown.c: Don't include files that lchown.h now includes.
46166         Don't declare chown, since lchown.h now does that.
46167         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
46168         (lchown): Define to rpl_chown if lchown is declared but
46169         does not exist.  Declare using a prototype if lchown is not
46170         declared.  Add a copyright notice.
46171         * lib/mkstemp.h: Include <unistd.h>.
46172         * lib/openat.c: Include lchown.h.
46173
46174         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
46175         we now test for that separately.
46176         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
46177         rather than O_NOFOLLOW, when testing whether it's possible to
46178         avoid a race condition reliably.
46179         * lib/savewd.c (savewd_chdir): Likewise.
46180
46181         Remove macros that are no longer needed now that stdint.h is
46182         reliable.
46183         * lib/fsusage.c (UINTMAX_MAX): Remove.
46184         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
46185         * lib/utimecmp.c (SIZE_MAX): Remove.
46186
46187         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
46188
46189         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
46190         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
46191         O_NOATIME works.
46192
46193 2006-10-05  Bruno Haible  <bruno@clisp.org>
46194
46195         * lib/gl_list.h (gl_sortedlist_search_from_to,
46196         gl_sortedlist_indexof_from_to): New declarations.
46197         (gl_list_implementation): New fields sortedlist_search_from_to,
46198         sortedlist_indexof_from_to.
46199         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
46200         inline functions.
46201         * lib/gl_list.c (gl_sortedlist_search_from_to,
46202         gl_sortedlist_indexof_from_to): New functions.
46203         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
46204         function.
46205         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
46206         (gl_array_sortedlist_search_from_to): New function.
46207         (gl_array_list_implementation): Update.
46208         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
46209         function.
46210         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
46211         (gl_carray_sortedlist_search_from_to): New function.
46212         (gl_carray_list_implementation): Update.
46213         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
46214         gl_linked_sortedlist_indexof_from_to): New functions.
46215         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46216         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46217         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
46218         gl_tree_sortedlist_indexof_from_to): New functions.
46219         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46220         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46221         Update.
46222         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46223         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
46224         Update.
46225
46226 2006-10-05  Bruno Haible  <bruno@clisp.org>
46227
46228         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
46229         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
46230         (struct gl_list_implementation): Add fields search_from_to,
46231         indexof_from_to. Remove fields search, indexof.
46232         (gl_list_search): Use the search_from_to method.
46233         (gl_list_search_from, gl_list_search_from_to): New functions.
46234         (gl_list_indexof): Use the indexof_from_to method.
46235         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46236         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
46237         (gl_list_search_from, gl_list_search_from_to): New functions.
46238         (gl_list_indexof): Use the indexof_from_to method.
46239         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46240         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
46241         gl_array_indexof. Add start_index, end_index arguments.
46242         (gl_array_search_from_to): Renamed from gl_array_search. Add
46243         start_index, end_index arguments.
46244         (gl_array_remove, gl_array_list_implementation): Update.
46245         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
46246         gl_carray_indexof. Add start_index, end_index arguments.
46247         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
46248         start_index, end_index arguments.
46249         (gl_carray_remove, gl_carray_list_implementation): Update.
46250         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
46251         gl_linked_search. Add start_index, end_index arguments.
46252         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
46253         start_index, end_index arguments.
46254         (gl_linked_remove): Update.
46255         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46256         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46257         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
46258         field to 'size_t'.
46259         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
46260         gl_tree_search. Add start_index, end_index arguments.
46261         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46262         start_index, end_index arguments.
46263         (gl_tree_remove): Update.
46264         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46265         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46266         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
46267         function.
46268         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
46269         gl_tree_search. Add start_index, end_index arguments.
46270         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46271         start_index, end_index arguments.
46272         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46273         Update.
46274         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46275
46276 2006-10-05  Bruno Haible  <bruno@clisp.org>
46277
46278         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
46279
46280         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
46281         fwriteerror_temp): New declarations.
46282         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
46283         (descriptors): New variable.
46284         (cleanup): First, close the descriptors.
46285         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
46286         fclose_temp, fwriteerror_temp): New functions.
46287
46288 2006-10-04  Jim Meyering  <jim@meyering.net>
46289
46290         * lib/fts.c (fts_open): Tiny comment change.
46291
46292 2006-10-04  Bruno Haible  <bruno@clisp.org>
46293
46294         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
46295         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
46296         gl_LOCK_BODY.
46297         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
46298         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
46299         gl_LOCK_EARLY_BODY.
46300         (gl_LOCK): Require gl_LOCK_BODY.
46301
46302 2006-10-04  Bruno Haible  <bruno@clisp.org>
46303
46304         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
46305         (gl_oset_search_atleast): New declaration.
46306         (struct gl_oset_implementation): Add field 'search_atleast'.
46307         (gl_oset_search_atleast): New inline function.
46308         * lib/gl_oset.c (gl_oset_search_atleast): New function.
46309         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
46310         (gl_array_oset_implementation): Update.
46311         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
46312         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
46313         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
46314
46315 2006-10-04  Bruno Haible  <bruno@clisp.org>
46316
46317         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
46318
46319 2006-10-03  Bruno Haible  <bruno@clisp.org>
46320
46321         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
46322         from gl_avltreehash_list_implementation.
46323
46324 2006-10-03  Bruno Haible  <bruno@clisp.org>
46325
46326         * lib/gl_oset.c (gl_oset_add): Fix return type.
46327
46328 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
46329
46330         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
46331
46332 2006-10-02  Eric Blake  <ebb9@byu.net>
46333
46334         * modules/strnlen (Depends-on): Add extensions.
46335
46336 2006-10-02  Eric Blake  <ebb9@byu.net>
46337
46338         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
46339         definition in 2.60+.
46340
46341 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
46342
46343         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
46344         checks.
46345
46346 2006-10-02  Bruno Haible  <bruno@clisp.org>
46347
46348         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
46349         to the AUTOMAKE_OPTIONS.
46350         Reported by Jim Meyering.
46351
46352 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46353
46354         Work around bug in Solaris 10 /proc file system:
46355         /proc/self/fd/NNN/.. isn't the parent directory of
46356         the directory whose file descriptor is NNN.  This needs to
46357         be worked around at run time, not compile time, since a
46358         program might be built on Solaris 8, where things work, and
46359         run on Solaris 10.
46360         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
46361         to use the following interface instead:
46362         (OPENAT_BUFFER_SIZE): New macro.
46363         (openat_proc_name): New function.
46364         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
46365         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
46366         Likewise.
46367         * lib/openat-proc.c: New file.
46368         * modules/openat (Files): Add lib/openat-proc.c.
46369         (Depends-on): Add same-inode, stdbool.
46370         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
46371
46372 2006-09-29  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
46375         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
46376         argument. Set stdout_closed before testing for ferror, not after.
46377         (fwriteerror, fwriteerror_no_ebadf): New functions.
46378
46379 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46380
46381         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
46382
46383 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
46384
46385         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
46386         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
46387
46388 2006-09-28  Jim Meyering  <jim@meyering.net>
46389
46390         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
46391         Include <unistd.h>.
46392
46393 2006-09-28  Bruno Haible  <bruno@clisp.org>
46394
46395         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
46396         * modules/linkedhash-list (Depends-on): Likewise.
46397         * modules/rbtreehash-list (Depends-on): Likewise.
46398
46399 2006-09-28  Bruno Haible  <bruno@clisp.org>
46400
46401         * lib/strndup.h: Simplify the redefinition of strndup.
46402         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
46403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
46404
46405 2006-09-28  Bruno Haible  <bruno@clisp.org>
46406
46407         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
46408         * lib/gl_linkedhash_list.c: Likewise.
46409         * lib/gl_rbtreehash_list.c: Likewise.
46410
46411 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46412
46413         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
46414         getaddrinfo.
46415
46416         * lib/__fpending.h: Don't include <stdio_ext.h> unless
46417         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
46418         it causes <stdio_ext.h> to cause a compile-time error.
46419         Problem reported by Nelson H. F. Beebe.
46420         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
46421         of HAVE_DECL___PENDING.
46422
46423         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
46424         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
46425         declaration.
46426
46427 2006-09-27  Jim Meyering  <jim@meyering.net>
46428
46429         This file could end up with a definition for a function
46430         named __strndup, rather than rpl_strndup on a system with
46431         incomplete weak_alias support.
46432         * lib/strndup.c (strndup): Rename from __strndup.
46433         Remove #defines that used to map __strndup to strndup.
46434         Don't use K&R prototypes.
46435         Remove LIBC-related code, since this file is not sync'd with glibc.
46436         * lib/strndup.h: Revamp, accordingly.
46437         * m4/strndup.m4: Modernize.
46438
46439 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46440
46441         * modules/savewd (Depends-on): Add 'raise'.
46442         * lib/savewd.c: Include <signal.h>, for 'raise'.
46443
46444 2006-09-26  Jim Meyering  <jim@meyering.net>
46445
46446         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
46447         when we detect Darwin 8.7.0's acl_get_file bug.
46448         Rearrange to perform the new (below) run-test while $LIBS
46449         contains any acl-related library.  Set USE_ACL at the end.
46450         (gl_ACL_GET_FILE): New function.
46451
46452 2006-09-26  Eric Blake  <ebb9@byu.net>
46453
46454         * lib/verror.c: Include <config.h> unconditionally.
46455
46456 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
46457
46458         * modules/clock-time (Maintainer): Add self.
46459         * modules/getlogin_r (Depends-on): Add extensions.
46460
46461 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46462
46463         * modules/clock-time: New module.
46464         * modules/nanosleep (Depends-on): Add clock-time.
46465         * modules/gethrxtime (Depends-on): Likewise.
46466         * modules/gettime (Depends-on): Likewise.
46467         * modules/settime (Depends-on): Likewise.
46468
46469         * modules/fts-lgpl: Depend on openat.
46470         * modules/mkancesdirs: Depend on savewd.
46471         * modules/mkdir-p: Likewise.
46472
46473 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46474
46475         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
46476
46477         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
46478         `gl_have_arbitrary_file_name_length_limit' to
46479         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
46480         actually works between configure runs.
46481
46482 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46483             Bruno Haible  <bruno@clisp.org>
46484
46485         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
46486
46487 2006-09-25  Jim Meyering  <jim@meyering.net>
46488
46489         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
46490         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
46491
46492 2006-09-25  Eric Blake  <ebb9@byu.net>
46493
46494         * gnulib-tool (func_import, func_create_testdir): Fix typos in
46495         exec's in 2006-09-18 patch when shuffling fds.
46496
46497 2006-09-25  Bruno Haible  <bruno@clisp.org>
46498
46499         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
46500         Reported by Jim Meyering.
46501
46502 2006-09-24  Jim Meyering  <jim@meyering.net>
46503
46504         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
46505         compare a pointer against a literal "0".  That caused failures with
46506         at least HP-UX's hpcc.
46507
46508 2006-09-22  Simon Josefsson  <jas@extundo.com>
46509
46510         * modules/gc-sha1:
46511         * modules/gc-md4:
46512         * modules/gc-hmac-sha1:
46513         * modules/gc-hmac-md5:
46514         * modules/gc-des:
46515         * modules/gc-arcfour: Distribute more files.
46516
46517 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46518
46519         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
46520         (gl_linked_iterator_from_to): Initialize struct completely.
46521         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
46522         (gl_tree_iterator_from_to): Likewise
46523         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
46524         * lib/gl_array_list.c [lint] (gl_array_iterator)
46525         (gl_array_iterator_from_to): Likewise.
46526         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
46527         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
46528         (gl_carray_iterator_from_to): Likewise.
46529
46530         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
46531         * lib/md4.c (md4_process_block): Remove unused variable.
46532         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46533         parentheses for clarity.
46534
46535 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46536
46537         * modules/bison-i18n (Depends-on): Add gettext.
46538
46539 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46540
46541         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46542         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46543         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46544         also add missing comma that caused broken test.
46545         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46546         stdlib.h, for `abort'.
46547         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46548         variables.
46549         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46550         include unistd.h if present, for `rmdir'.
46551         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46552         variables.
46553         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46554         in the process include standard headers for prototypes.
46555         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46556         gets declared on GNU/Linux.
46557         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46558         unistd.h, for `rmdir'.
46559         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46560
46561         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46562         always true.
46563         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46564
46565         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46566
46567 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46568
46569         * gnulib-tool (func_version): Create output all at once.  This
46570         may help avoid triggering unnecessary SIGPIPEs, and at any
46571         rate it doesn't hurt.
46572
46573 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46574             Bruno Haible  <bruno@clisp.org>
46575
46576         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46577         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46578         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46579
46580         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46581         (gl_FUNC_VASPRINTF): Invoke it.
46582
46583 2006-09-22  Bruno Haible  <bruno@clisp.org>
46584
46585         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46586         getloadavg.c as first argument.
46587
46588 2006-09-22  Bruno Haible  <bruno@clisp.org>
46589
46590         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46591         at the beginning of the gl_INIT macro.
46592         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46593         gl_GETLOADAVG.
46594
46595 2006-09-22  Bruno Haible  <bruno@clisp.org>
46596
46597         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46598         module.
46599         Suggested by Ralf Wildenhues.
46600
46601 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46602
46603         Import this patch from libc:
46604
46605         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46606
46607         * lib/regex_internal.c (re_string_reconstruct): Handle
46608         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46609         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46610         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46611         re_string_context_at.
46612
46613         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46614         now requires it.
46615         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46616         gl_REGEX now does it for us.
46617         (gl_REGEX): Add test taken from
46618         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46619
46620         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46621         Check that large offsets work.  Modernize Autoconf usages.
46622         Prefer "yes" to mean a good thing rather than a bad.
46623         Don't put "#define mkstemp" in config.h, as this might interfere
46624         with standard system headers that "#define mkstemp mkstemp64".
46625
46626         * modules/mkstemp (Depends-on): Add extensions, so that
46627         mkstemp is visible on some platforms.
46628         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46629         (Include): Change to "mkstemp.h" from <stdlib.h>.
46630         (Files): Add mkstemp.h.
46631
46632         * lib/mkstemp.h: New file, since some standard headers
46633         #define mkstemp.
46634         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46635         Include "mkstemp.h".
46636         Make the _LIBC code resemble glibc original more,
46637         e.g., use K&R style.
46638         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46639         (mkstemp): Remove, since mkstemp.h does this for us.
46640         * lib/stdlib--.h: Include mkstemp.h.
46641
46642         Import this patch from libc:
46643
46644         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46645
46646         * lib/tempname.c (__gen_tempname): Change attempts_min
46647         into a macro.  Use preprocessor to decide how to initialize
46648         attempts [Coverity CID 67].
46649
46650 2006-09-20  Bruno Haible  <bruno@clisp.org>
46651
46652         * lib/mkdtemp.c: Import from libc.
46653         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46654                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46655                 attempts_min into a macro.  Use preprocessor to decide how to
46656                 initialize attempts [Coverity CID 67].
46657         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46658                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46659                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46660
46661 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46662
46663         * gnulib-tool (func_exit): New function, to allow to pass the
46664         exit status portably through the trap.  Use everywhere.
46665         (--help, --version): Signal a write error.
46666         (trap): catch SIGPIPE, for write errors.
46667         Exit at the end of the trap, with the correct exit status.
46668
46669 2006-09-19  Karl Berry  <karl@gnu.org>
46670
46671         * doc/gnulib.texi: note about the license texinfo files.
46672
46673 2006-09-19  Eric Blake  <ebb9@byu.net>
46674
46675         * gnulib-tool: Avoid space-tab.
46676
46677 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46678
46679         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46680         that prevented coreutils 6.1 from building.  Problem reported
46681         by Petter Reinholdtsen.
46682
46683 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46684
46685         * gnulib-tool (avoidlist): Fix typo that broke options like
46686         --avoid=lock that are used by coreutils bootstrap.
46687
46688 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46689
46690         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46691         more systematically.
46692
46693 2006-09-18  Jim Meyering  <jim@meyering.net>
46694
46695         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46696
46697 2006-09-18  Bruno Haible  <bruno@clisp.org>
46698
46699         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46700
46701 2006-09-18  Bruno Haible  <bruno@clisp.org>
46702
46703         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46704         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46705         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46706         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46707         * m4/gettext.m4: Require autoconf >= 2.52.
46708         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46709         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46710         of gl_cv_header_inttypes_h.
46711
46712 2006-09-18  Bruno Haible  <bruno@clisp.org>
46713
46714         * lib/javaversion.c: Include configmake.h.
46715
46716 2006-09-18  Bruno Haible  <bruno@clisp.org>
46717
46718         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46719         avoid that the while loops be executed in a subshell.
46720
46721 2006-09-18  Bruno Haible  <bruno@clisp.org>
46722
46723         * MODULES.html.sh (func_module): Break long lines.
46724         Suggested by Bruce Korb <bkorb@gnu.org>.
46725
46726 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46727
46728         Speed up by a factor of 1.12.
46729         * gnulib-tool (nl): New variable.
46730         (func_import): Rewrite include directive extraction to only read each
46731         directive once.
46732
46733 2006-09-17  Bruno Haible  <bruno@clisp.org>
46734
46735         * modules/javaversion (Makefile.am): Remove DEFS setting.
46736         (Depends-on): Add configmake, for PKGDATADIR definition.
46737
46738 2006-09-17  Bruno Haible  <bruno@clisp.org>
46739
46740         * gnulib-tool (func_create_testdir): Rewrite all files at once.
46741
46742 2006-09-17  Bruno Haible  <bruno@clisp.org>
46743
46744         * gnulib-tool (func_append): New function, stolen from libtool.m4.
46745         (func_modules_transitive_closure, func_modules_add_dummy,
46746         func_modules_to_filelist, func_import, func_create_testdir,
46747         func_create_megatestdir, ...): Use it wherever possible.
46748         Suggested by Ralf Wildenhues.
46749
46750 2006-09-16  Karl Berry  <karl@gnu.org>
46751
46752         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
46753         to avoid sectioning errors.
46754         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
46755         [ifinfo]: blank line after @center-ed titles.
46756         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
46757         Spell FSF address consistently with others.
46758         (These changes approved by rms.)
46759
46760 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46761
46762         Speed up by a factor of 1.61.
46763         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
46764         already checked module names again.
46765
46766 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46767
46768         Speed up by a factor of 1.13.
46769         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
46770         for new_files, and the input to func_add_or_update.
46771
46772 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46773
46774         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
46775         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
46776
46777 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46778
46779         * modules/mkancesdirs (Depends-on): Add fcntl.
46780         * modules/savewd: New file.
46781         * MODULES.html.sh (File system functions): Add savewd.
46782
46783         * modules/configmake (Makefile.am): Add support for the
46784         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
46785
46786 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46787
46788         * m4/savewd.m4: New file.
46789
46790 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46791
46792         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
46793         (dirchownmod): New arg FD.  All callers changed.
46794         Use FD rather than opening the directory ourself, as opening is
46795         now the caller's responsibility.
46796         * lib/dirchownmod.h: Likewise.
46797         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
46798         hosts that require <sys/types.h> before <sys/stat.h>.  Include
46799         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
46800         (test_dir): Remove.
46801         (mkancesdirs): Return length of prefix of FILE that has already
46802         been made, or -2 if there is a child doing the work.  Redo
46803         algorithm so that it is O(N) rather than O(N**2).  Optimize away
46804         ".", and treat ".." specially since it might stray back into
46805         already-created areas.  Use a subprocess if necessary.  New arg
46806         WD; all users changed.  MAKE_DIR function should now return 1
46807         if it creates a directory that is not readable.  Return -2 if
46808         a child process is spun off.
46809         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
46810         Adjust signature to match code.
46811         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
46812         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
46813         all users changed.
46814         * lib/savewd.c, lib/savewd.h: New files.
46815
46816 2006-09-15  Jim Meyering  <jim@meyering.net>
46817
46818         * modules/rename-dest-slash: New module.
46819         * MODULES.html.sh (posix_compat): Add it here.
46820
46821         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
46822
46823 2006-09-15  Jim Meyering  <jim@meyering.net>
46824
46825         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
46826         file.
46827
46828         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
46829
46830 2006-09-15  Jim Meyering  <jim@meyering.net>
46831
46832         * lib/rename-dest-slash.c (has_trailing_slash): Use
46833         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
46834         (rpl_rename_dest_slash): Perform the cheaper trailing slash
46835         test before testing whether SRC is a directory.
46836         Suggestions from Bruno Haible.
46837
46838         Avoid a warning about an unused variable.
46839         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
46840         into the #ifdef block where it's used.
46841
46842         * lib/rename-dest-slash.c: New file.
46843
46844 2006-09-14  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/allocsa.c: Include <config.h> unconditionally.
46847         * lib/asnprintf.c: Likewise.
46848         * lib/asprintf.c: Likewise.
46849         * lib/c-strcasecmp.c: Likewise.
46850         * lib/c-strcasestr.c: Likewise.
46851         * lib/c-strncasecmp.c: Likewise.
46852         * lib/c-strstr.c: Likewise.
46853         * lib/classpath.c: Likewise.
46854         * lib/clean-temp.c: Likewise.
46855         * lib/concatpath.c: Likewise.
46856         * lib/copy-file.c: Likewise.
46857         * lib/csharpcomp.c: Likewise.
46858         * lib/csharpexec.c: Likewise.
46859         * lib/execute.c: Likewise.
46860         * lib/fatal-signal.c: Likewise.
46861         * lib/findprog.c: Likewise.
46862         * lib/fwriteerror.c: Likewise.
46863         * lib/gl_array_list.c: Likewise.
46864         * lib/gl_array_oset.c: Likewise.
46865         * lib/gl_avltree_list.c: Likewise.
46866         * lib/gl_avltree_oset.c: Likewise.
46867         * lib/gl_avltreehash_list.c: Likewise.
46868         * lib/gl_carray_list.c: Likewise.
46869         * lib/gl_linked_list.c: Likewise.
46870         * lib/gl_linkedhash_list.c: Likewise.
46871         * lib/gl_list.c: Likewise.
46872         * lib/gl_oset.c: Likewise.
46873         * lib/gl_rbtree_list.c: Likewise.
46874         * lib/gl_rbtree_oset.c: Likewise.
46875         * lib/gl_rbtreehash_list.c: Likewise.
46876         * lib/imaxabs.c: Likewise.
46877         * lib/imaxdiv.c: Likewise.
46878         * lib/javacomp.c: Likewise.
46879         * lib/javaexec.c: Likewise.
46880         * lib/javaversion.c: Likewise.
46881         * lib/linebreak.c: Likewise.
46882         * lib/localcharset.c: Likewise.
46883         * lib/lock.c: Likewise.
46884         * lib/mbchar.c: Likewise.
46885         * lib/mbswidth.c: Likewise.
46886         * lib/mkdtemp.c: Likewise.
46887         * lib/pipe.c: Likewise.
46888         * lib/printf-args.c: Likewise.
46889         * lib/printf-parse.c: Likewise.
46890         * lib/progname.c: Likewise.
46891         * lib/progreloc.c: Likewise.
46892         * lib/readlink.c: Likewise.
46893         * lib/sh-quote.c: Likewise.
46894         * lib/stpcpy.c: Likewise.
46895         * lib/stpncpy.c: Likewise.
46896         * lib/strcasecmp.c: Likewise.
46897         * lib/strcasestr.c: Likewise.
46898         * lib/strcspn.c: Likewise.
46899         * lib/striconv.c: Likewise.
46900         * lib/strncasecmp.c: Likewise.
46901         * lib/strnlen1.c: Likewise.
46902         * lib/strstr.c: Likewise.
46903         * lib/strtok_r.c: Likewise.
46904         * lib/tls.c: Likewise.
46905         * lib/tmpdir.c: Likewise.
46906         * lib/unicodeio.c: Likewise.
46907         * lib/unsetenv.c: Likewise.
46908         * lib/vasnprintf.c: Likewise.
46909         * lib/vasprintf.c: Likewise.
46910         * lib/wait-process.c: Likewise.
46911         * lib/xallocsa.c: Likewise.
46912         * lib/xsetenv.c: Likewise.
46913         * lib/xstriconv.c: Likewise.
46914
46915 2006-09-13  Simon Josefsson  <jas@extundo.com>
46916
46917         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
46918         that internally, suggested by Ralf Wildenhues
46919         <Ralf.Wildenhues@gmx.de>.
46920
46921 2006-09-13  Simon Josefsson  <jas@extundo.com>
46922
46923         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
46924         @LIBOBJS@.
46925         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46926
46927 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46928
46929         * lib/_fpending.c: Include <config.h> unconditionally, since we no
46930         longer worry about uses that don't define HAVE_CONFIG_H.
46931         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
46932         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
46933         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
46934         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
46935         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
46936         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
46937         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
46938         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
46939         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
46940         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
46941         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
46942         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
46943         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
46944         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
46945         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
46946         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
46947         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
46948         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
46949         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
46950         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
46951         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
46952         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
46953         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
46954         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
46955         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
46956         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
46957         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
46958         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
46959         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
46960         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
46961         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
46962         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
46963         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
46964         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
46965         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
46966         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
46967         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
46968         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
46969         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
46970         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
46971         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
46972         Likewise.
46973
46974 2006-09-13  Eric Blake  <ebb9@byu.net>
46975
46976         * lib/getopt.c: Fix typo in last commit.
46977
46978 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46979
46980         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
46981         dgettext.
46982
46983 2006-09-12  Jim Meyering  <jim@meyering.net>
46984
46985         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
46986         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
46987         Reported by Nelson H. F. Beebe.
46988
46989 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46990
46991         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
46992         program_invocation_name and program_invocation_short_name are
46993         initialized.
46994         * lib/argp-namefrob.h: Move declarations of program_invocation_name
46995         and program_invocation_short_name to argp.h, so they are visible
46996         to user programs.
46997         * lib/argp.h: Likewise
46998
46999 2006-09-10  Bruno Haible  <bruno@clisp.org>
47000
47001         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47002         m4/inttypes_h.m4, m4/uintmax_t.m4.
47003
47004 2006-09-10  Bruno Haible  <bruno@clisp.org>
47005
47006         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
47007         gl_AC_TYPE_UINTMAX_T.
47008
47009 2006-09-10  Bruno Haible  <bruno@clisp.org>
47010
47011         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
47012
47013 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47014
47015         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
47016         convention.  Text proposed by Bruno Haible.
47017         (struct argp_option): Document the use of N_() wrappers.
47018
47019         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
47020         '\v', and translate the two parts separately, instead of feeding
47021         the whole string to gettext.  This allows to exclude
47022         '\v' from the strings visible to the translator by writing doc
47023         strings as N_("..") "\v" N_("..").
47024
47025 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
47026
47027         * config/srclist.txt: Undo latest change; the bug was fixed.
47028
47029 2006-09-09  Bruno Haible  <bruno@clisp.org>
47030
47031         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
47032         assignments if building a library without libtool.
47033         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
47034         in func_emit_lib_Makefile_am.
47035         (func_import): When building a static library libfoo.a, arrange to
47036         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
47037         (func_create_testdir): Likewise.
47038         * modules/gc (configure.ac, Makefile.am): If building statically,
47039         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
47040         * modules/iconvme (configure.ac, Makefile.am): Likewise.
47041         * modules/striconv (configure.ac, Makefile.am): Likewise.
47042         Based on a suggestion by Ralf Wildenhues.
47043
47044 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47045
47046         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47047         Check for unistd.h too, since Autoconf doesn't assume POSIX.
47048         Also:
47049
47050         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47051         Add year_2050_test to catch glibc bug 2821
47052         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47053
47054         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47055         Prefer #ifdef to #if.
47056
47057         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
47058         Return from 'main' instead of calling 'exit'.
47059
47060 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47061
47062         * lib/mktime.c (guess_time_tm): Fix bug where mktime
47063         returned the maximum time_t value rather than (time_t) -1.
47064         Problem originally reported by William Bardwell
47065         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47066
47067         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47068         Moved to here ...
47069         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47070         ... from here.
47071
47072 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47073
47074         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
47075         2821 is fixed.
47076
47077 2006-09-08  Jim Meyering  <jim@meyering.net>
47078
47079         Don't make generated files read-only.  That would bother too many
47080         people.  However, do retain the ability to work when targets are
47081         read-only: remove the destination and temporary files before writing
47082         them (when generated via sed or echo), or by using the -f option for
47083         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
47084         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47085         * modules/byteswap, modules/configmake, modules/fcntl:
47086         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47087         * modules/localcharset, modules/netinet_in, modules/poll:
47088         * modules/stdbool, modules/stdint, modules/sys_select:
47089         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47090
47091 2006-09-08  Jim Meyering  <jim@meyering.net>
47092
47093         Avoid new build failure on FreeBSD 6.0.
47094         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
47095         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
47096         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
47097
47098 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47099
47100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
47101
47102 2006-09-07  Jim Meyering  <jim@meyering.net>
47103
47104         Fix global typo in last change: use chmod u-w, not chmod u-x.
47105         Spotted by Paul Eggert and Bruce Korb.
47106         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47107         * modules/byteswap, modules/configmake, modules/fcntl:
47108         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47109         * modules/localcharset, modules/netinet_in, modules/poll:
47110         * modules/stdbool, modules/stdint, modules/sys_select:
47111         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47112
47113 2006-09-06  Jim Meyering  <jim@meyering.net>
47114
47115         Make generated files be read-only.
47116         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
47117         Ensure that each generated file is now read-only.
47118         * modules/argz: Likewise.
47119         * modules/arpa_inet: Likewise.
47120         * modules/byteswap: Likewise.
47121         * modules/configmake: Likewise.
47122         * modules/fcntl: Likewise.
47123         * modules/fnmatch: Likewise.
47124         * modules/getopt: Likewise.
47125         * modules/glob: Likewise.
47126         * modules/inttypes: Likewise.
47127         * modules/netinet_in: Likewise.
47128         * modules/poll: Likewise.
47129         * modules/stdbool: Likewise.
47130         * modules/stdint: Likewise.
47131         * modules/sys_select: Likewise.
47132         * modules/sys_socket: Likewise.
47133         * modules/sys_stat: Likewise.
47134         * modules/sysexits: Likewise.
47135         * modules/localcharset: Same as above, but continue using temporary
47136         file named "t-$@" (why different?) rather than the "$@-t" used
47137         everywhere else.
47138
47139         * modules/sysexits (Makefile.am): Replace literal occurrences
47140         of "sysexit.h" more readable, and more consistent, "$@".
47141
47142 2006-09-06  Bruno Haible  <bruno@clisp.org>
47143
47144         * modules/striconv: New file.
47145         * modules/xstriconv: New file.
47146         * MODULES.html.sh (Internationalization functions): Add striconv,
47147         xstriconv.
47148
47149 2006-09-06  Bruno Haible  <bruno@clisp.org>
47150
47151         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
47152         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
47153         not using libtool correctly.
47154
47155 2006-09-06  Bruno Haible  <bruno@clisp.org>
47156
47157         * lib/striconv.h: New file.
47158         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
47159         iconvstring.c.
47160         * lib/xstriconv.h: New file.
47161         * lib/xstriconv.c: New file.
47162
47163 2006-09-06  Bruno Haible  <bruno@clisp.org>
47164
47165         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47166         lib_..._LDFLAGS.
47167
47168 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47169
47170         * lib/argz_.h: Sync from Libtool.
47171
47172         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
47173                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47174
47175         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
47176
47177 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47178
47179         * modules/trim: New file.
47180
47181 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47182
47183         * lib/trim.h: New file.
47184         * lib/trim.c: New file.
47185
47186 2006-09-05  Bruno Haible  <bruno@clisp.org>
47187
47188         * MODULES.html.sh (String handling): Add trim.
47189
47190 2006-09-04  Karl Berry  <karl@gnu.org>
47191
47192         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
47193         until next release.
47194
47195 2006-09-03  Bruno Haible  <bruno@clisp.org>
47196
47197         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
47198         correctly.
47199
47200 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47201
47202         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
47203         not gl_GETLOADAVG.  Omit unneeded semicolons.
47204         Problems reported by Ralf Wildenhues in
47205         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47206         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
47207         at the end, which is the usual gnulib style.
47208
47209         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
47210         of doing all the work ourselves.
47211         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
47212         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
47213
47214 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47215
47216         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
47217         Problem reported by Ralf Wildenhues in
47218         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47219
47220         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
47221         HAVE_STRUCT_STATFS_F_FSTYPENAME.
47222
47223 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47224
47225         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
47226         yesterday's patch by changing test -n to test -z.
47227
47228 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47229
47230         * modules/getloadavg (Files): Add m4/getloadavg.m4.
47231         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
47232         the former is now obsolescent.
47233
47234         * modules/chdir-long (Depends-on): Add fcntl.
47235
47236 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47237
47238         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
47239         obsolescent, and programs should use gnulib instead.
47240         * m4/getloadavg.m4: New file, with contents taken from Autoconf
47241         but with prefixes changed.
47242
47243 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47244
47245         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
47246         or stdbool.h, because they might not exist while configuring.
47247
47248         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
47249         Don't include unistd.h or limits.h; not needed, since chdir-long.h
47250         does that for us.
47251         (O_DIRECTORY): Remove.
47252
47253 2006-08-31  Eric Blake  <ebb9@byu.net>
47254
47255         * gnulib-tool: Don't let emacs change spaces to TAB.
47256
47257 2006-08-31  Bruno Haible  <bruno@clisp.org>
47258
47259         * gnulib-tool: When calling func_import more than once, do it in a
47260         subshell.
47261         Reported by Eric Blake <ebb9@byu.net>.
47262
47263 2006-08-31  Bruno Haible  <bruno@clisp.org>
47264
47265         * gnulib-tool (nl): Remove variable.
47266         (sed_transform_lib_file): Use more robust test for config-h module.
47267         (func_import): Fix typo in 2006-08-25 patch.
47268
47269 2006-08-31  Bruno Haible  <bruno@clisp.org>
47270
47271         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
47272         specified, augment Makefile.am variables instead of assigning them.
47273
47274 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47275
47276         Work around a bug in both the Linux and SunOS 64-bit kernels:
47277         nanosleep mishandles sleeps for longer than 2**31 seconds.
47278         Problem reported by Frank v Waveren in
47279         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
47281         Check for nanosleep bug.
47282         (LIB_NANOSLEEP): Append clock_gettime library if needed.
47283
47284 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47285
47286         Work around a bug in both the Linux and SunOS 64-bit kernels:
47287         nanosleep mishandles sleeps for longer than 2**31 seconds.
47288         Problem reported by Frank v Waveren in
47289         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47290         * lib/nanosleep.c (BILLION): New constant.
47291         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
47292         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
47293         implementation.
47294
47295 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47296
47297         * modules/nanosleep (Depends-on): Add gettime.
47298
47299 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47300         and Simon Josefsson  <jas@extundo.com>
47301         and Oskar Liljeblad  <oskar@osk.mine.nu>
47302
47303         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
47304         * gnulib-tool (func_import): New license type 'unmodifiable license
47305         text'.
47306         * modules/fdl: Use it.  Longer description.
47307         * module/gpl, module/lgpl: New files.
47308
47309 2006-08-30  Jim Meyering  <jim@meyering.net>
47310
47311         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
47312         shadowing the parameter.
47313
47314 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47315
47316         Sync from Libtool:
47317
47318         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47319
47320         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
47321         sharing with gnulib.  Report by Eric Blake.
47322
47323 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47324
47325         * modules/isapipe: New file.
47326         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
47327
47328 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47329
47330         * modules/configmake (Makefile.am): Add a comment, and omit
47331         the CONFIGMAKE_ prefix from generated macro names.  Suggested
47332         by Bruno Haible.
47333
47334 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47335
47336         * m4/isapipe.m4: New file.
47337
47338 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47339
47340         * lib/isapipe.c, lib/isapipe.h: New files.
47341
47342 2006-08-29  Jim Meyering  <jim@meyering.net>
47343
47344         * modules/configmake (Makefile.am): Make configmake.h depend on
47345         Makefile.  Otherwise, a stale configmake.h could hang around.
47346
47347 2006-08-29  Eric Blake  <ebb9@byu.net>
47348
47349         * lib/error.c (error_at_line, print_errno_message): Match libc, after
47350         resolution of upstream bug 3044.
47351
47352 2006-08-29  Bruno Haible  <bruno@clisp.org>
47353
47354         * modules/localcharset (Depends-on): Add configmake.
47355         (Makefile.am): Remove setting of LIBDIR through DEFS.
47356
47357 2006-08-29  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
47360         defined.
47361
47362 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47363
47364         * modules/fcntl: New file.
47365         * modules/chdir-safer (Depends-on): Add fcntl.
47366         * modules/fts: Likewise.
47367         * modules/mkdir-p: Likewise.
47368
47369         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
47370         This undoes the most recent change, since we're now addressing the
47371         problem in a different way.
47372
47373         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
47374         into output, since the output might be called Makefile.am even
47375         if $makefile_name is something different.
47376         (func_import): Use $makefile_am rather than
47377         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
47378         empty.
47379
47380         * modules/inttypes (Files): Add m4/inttypes-h.m4.
47381
47382 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47383
47384         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
47385         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
47386         recent change to stdint.m4, since we're now addressing the problem in a
47387         different way.
47388
47389 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47390
47391         * m4/fcntl_h.m4: New file.
47392
47393 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47394
47395         * lib/fcntl_.h: New file.
47396         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
47397         the fcntl module.
47398         * lib/dirchownmod.c: Likewise.
47399         * lib/fts.c: Likewise.
47400
47401         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
47402         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
47403         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
47404         just before including <inttypes.h>, to avoid circular inclusion.
47405
47406 2006-08-28  Jim Meyering  <jim@meyering.net>
47407
47408         * doc/visibility.texi: Actually read and correct the grammar of the
47409         sentence affected by yesterday's change.
47410
47411 2006-08-28  Eric Blake  <ebb9@byu.net>
47412
47413         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
47414         needs wrapper.
47415
47416 2006-08-28  Eric Blake  <ebb9@byu.net>
47417
47418         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
47419
47420 2006-08-28  Eric Blake  <ebb9@byu.net>
47421
47422         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
47423
47424 2006-08-28  Bruno Haible  <bruno@clisp.org>
47425
47426         * modules/c-strstr: New file, from GNU gettext.
47427         * MODULES.html.sh (String handling): Add c-strstr.
47428
47429 2006-08-28  Bruno Haible  <bruno@clisp.org>
47430
47431         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
47432         macros.
47433         Reported by Eric Blake.
47434
47435 2006-08-28  Bruno Haible  <bruno@clisp.org>
47436
47437         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
47438         (VASNPRINTF): Return a string of length > INT_MAX without failing.
47439         * lib/vasprintf.c: Include errno.h, limits.h.
47440         (EOVERFLOW): New fallback definition.
47441         (vasprintf): Test here whether the string length is > INT_MAX.
47442         * lib/vsnprintf.c: Include errno.h, limits.h.
47443         (EOVERFLOW): New fallback definition.
47444         (vsnprintf): Fix bug when generated string was too long for the buffer.
47445         Test here whether the string length is > INT_MAX.
47446
47447 2006-08-28  Bruno Haible  <bruno@clisp.org>
47448
47449         * lib/inttypes_.h (SCNX*): Remove definitions.
47450         Reported by Eric Blake.
47451
47452 2006-08-28  Bruno Haible  <bruno@clisp.org>
47453
47454         * lib/c-strstr.h: New file, from GNU gettext.
47455         * lib/c-strstr.c: New file, from GNU gettext.
47456
47457 2006-08-28  Bruno Haible  <bruno@clisp.org>
47458
47459         * gnulib-tool: Reorder some statements.
47460
47461 2006-08-28  Bruno Haible  <bruno@clisp.org>
47462
47463         * gnulib-tool: New option --makefile-name.
47464         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
47465         $makefile_name.
47466         (func_import): Write $makefile_name to the cache file, and read it from
47467         there unless explicitly specified. Use $makefile_name as file name
47468         instead of Makefile.am. Adjust the recommendations accordingly.
47469
47470 2006-08-28  Bruno Haible  <bruno@clisp.org>
47471
47472         * gnulib-tool (func_verify_module): Check against misapplying patch.
47473
47474 2006-08-28  Bruno Haible  <bruno@clisp.org>
47475
47476         * gnulib-tool (func_relativize, func_relconcat): New functions.
47477         Give an error if --local-dir is given with --update.
47478         Remove trailing slashes from $local_gnulib_dir.
47479         (func_import): Store the relativized $local_gnulib_dir in
47480         gnulib-cache.m4, and read it from there if not specified explicitly.
47481
47482 2006-08-28  Bruno Haible  <bruno@clisp.org>
47483
47484         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
47485         is the current directory. Respect also $local_gnulib_dir.
47486
47487 2006-08-28  Bruno Haible  <bruno@clisp.org>
47488             Simon Josefsson  <jas@extundo.com>
47489
47490         BeOS portability.
47491         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
47492
47493 2006-08-27  Jim Meyering  <jim@meyering.net>
47494
47495         * doc/visibility.texi: Remove duplicate word: "pointer".
47496
47497 2006-08-26  Bruno Haible  <bruno@clisp.org>
47498
47499         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
47500         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
47501         (Makefile.am): Create inttypes.h from inttypes_.h.
47502         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
47503
47504         * modules/imaxabs: New file.
47505
47506         * modules/imaxdiv: New file.
47507
47508 2006-08-26  Bruno Haible  <bruno@clisp.org>
47509
47510         * m4/inttypes.m4: New file.
47511         * m4/_inttypes_h.m4: Remove file.
47512         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
47513         PRI_MACROS_BROKEN.
47514         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
47515
47516         * m4/imaxabs.m4: New file.
47517
47518         * m4/imaxdiv.m4: New file.
47519
47520 2006-08-26  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/inttypes_.h: New file.
47523         * lib/inttypes.h: Remove file.
47524         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
47525
47526         * lib/imaxabs.c: New file.
47527
47528         * lib/imaxdiv.c: New file.
47529
47530 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47531
47532         New config-h module, so that "make" output needn't be cluttered
47533         by -DHAVE_CONFIG_H.
47534         * MODULES.html.sh (Support for building libraries and executables):
47535         Add config-h.
47536         * modules/config-h: New file.
47537         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47538         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47539         the config-h module is used.
47540
47541         New configmake module, so that "make" output needn't be cluttered
47542         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47543         * MODULES.html.sh (Support for building libraries and executables):
47544         Add configmake.
47545         * modules/configmake: New file.
47546
47547 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47548
47549         * m4/config-h.m4: New file.
47550
47551 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47552
47553         * config/srclist.txt: Add elisp-comp.
47554
47555 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47556
47557         * MODULES.html.sh (Support for building libraries and executables):
47558         Add elisp-comp.
47559         * build-aux/elisp-comp: New file.
47560         * modules/elisp-comp: New file.
47561
47562 2006-08-24  Bruno Haible  <bruno@clisp.org>
47563
47564         * gnulib-tool (func_create_testdir): Use non-default values of
47565         sourcebase and m4base.
47566
47567 2006-08-24  Bruno Haible  <bruno@clisp.org>
47568
47569         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47570         HTML structure.
47571
47572 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47573
47574         * modules/openat (Depends-on): Add lchown.
47575
47576 2006-08-23  Bruno Haible  <bruno@clisp.org>
47577
47578         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47579         of gl_LOCK_EARLY instead of gl_LOCK.
47580
47581 2006-08-23  Bruno Haible  <bruno@clisp.org>
47582
47583         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47584         on OSF/1 to no.
47585         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47586
47587 2006-08-23  Bruno Haible  <bruno@clisp.org>
47588
47589         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47590         as unusable.
47591
47592         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47593         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47594         (gl_LOCK): New macro.
47595
47596 2006-08-22  Simon Josefsson  <jas@extundo.com>
47597
47598         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47599         to md5 module.
47600
47601 2006-08-22  Simon Josefsson  <jas@extundo.com>
47602
47603         * MODULES.html.sh: Add "Support for maintaining and release
47604         projects".
47605
47606         * build-aux/gnupload: New file, from coreutils.
47607
47608 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47609
47610         Avoid the need for AC_LIBSOURCES in m4 macros.
47611         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47612         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47613         * modules/check-version (EXTRA_DIST): Add check-version.h.
47614         * modules/crc (EXTRA_DIST): Add crc.h.
47615         * modules/des (EXTRA_DIST): Add des.h.
47616         * modules/gc (EXTRA_DIST): Add gc.h.
47617         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47618         * modules/getline (EXTRA_DIST): Add getline.h.
47619         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47620         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47621         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47622         * modules/md2 (EXTRA_DIST): Add md2.h.
47623         * modules/md4 (EXTRA_DIST): Add md4.h.
47624         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47625         * modules/read-file (EXTRA_DIST): Add read-file.h.
47626         * modules/readline (EXTRA_DIST): Add readline.h.
47627         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47628         rijndael-api-fst.h.
47629
47630 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47631
47632         * m4/rijndael.m4 (gl_ARCFOUR):
47633         * m4/arctwo.m4 (gl_ARCTWO):
47634         * m4/check-version.m4 (gl_CHECK_VERSION):
47635         * m4/crc.m4 (gl_CRC):
47636         * m4/des.m4 (gl_DES):
47637         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47638         * m4/gc.m4 (gl_GC):
47639         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47640         * m4/getline.m4 (gl_FUNC_GETLINE):
47641         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47642         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47643         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47644         * m4/md2.m4 (gl_MD2):
47645         * m4/md4.m4 (gl_MD4):
47646         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47647         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47648         * m4/readline.m4 (gl_FUNC_READLINE):
47649         * m4/rijndael.m4 (gl_RIJNDAEL):
47650         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47651         to get the necessary .h files and whatnot.
47652
47653 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47654
47655         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47656         gnulib rather than the other way around.
47657         * config/srclistvars.sh (COREUTILS): Remove.
47658
47659 2006-08-22  Jim Meyering  <jim@meyering.net>
47660
47661         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47662
47663         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47664
47665 2006-08-22  Eric Blake  <ebb9@byu.net>
47666
47667         * modules/regexprops-generic: New file.
47668         * MODULES.html.sh (Support for building documentation): List it.
47669
47670 2006-08-22  Eric Blake  <ebb9@byu.net>
47671
47672         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47673         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47674         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47675         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47676
47677 2006-08-22  Bruno Haible  <bruno@clisp.org>
47678
47679         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47680         and lib_LTLIBRARIES like the other lib_* variables.
47681
47682 2006-08-22  Bruno Haible  <bruno@clisp.org>
47683
47684         * build-aux/x-to-1.in: New file, from GNU gettext.
47685
47686 2006-08-22  Bruno Haible  <bruno@clisp.org>
47687
47688         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47689         <utmpx.h> exists.
47690
47691 2006-08-22  Bruno Haible  <bruno@clisp.org>
47692
47693         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47694         <utmpx.h> exists.
47695
47696 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47697
47698         BeOS portability.
47699         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47700         exist.
47701         Problem reported by Bruno Haible.
47702
47703 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47704
47705         Avoid the need for AC_LIBSOURCES in m4 macros.
47706         * modules/acl (EXTRA_DIST): Add acl.h.
47707         * modules/argmatch (Files): Add m4/argmatch.m4.
47708         (configure.ac): Add gl_ARGMATCH.
47709         (EXTRA_DIST): Renamed from lib_SOURCES, for
47710         consistency with the other modules.  Remove argmatch.c.
47711         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47712         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47713         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47714         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47715         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47716         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47717         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47718         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47719         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
47720         * modules/closeout (EXTRA_DIST): Add closeout.h.
47721         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
47722         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
47723         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
47724         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
47725         dirname.h; remove basename.c and stripslash.c.
47726         * modules/exclude (EXTRA_DIST): Add exclude.h.
47727         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
47728         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
47729         * modules/file-type (EXTRA_DIST): Add file-type.h.
47730         * modules/filemode (EXTRA_DIST): Add filemode.h.
47731         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
47732         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47733         * modules/fpending (EXTRA_DIST): Add __fpending.h.
47734         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
47735         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
47736         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
47737         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
47738         * modules/getdate (EXTRA_DIST): Add getdate.c.
47739         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
47740         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
47741         * modules/getpass (EXTRA_DIST): Add getpass.h.
47742         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
47743         * modules/group-member (EXTRA_DIST): Add group-member.h.
47744         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
47745         * modules/hash (EXTRA_DIST): Add hash.h.
47746         * modules/human (EXTRA_DIST): Add human.h.
47747         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
47748         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
47749         * modules/lchown (EXTRA_DIST): Add lchown.h.
47750         * modules/long-options (EXTRA_DIST): Add long-options.h.
47751         * modules/lstat (EXTRA_DIST): Add lstat.h.
47752         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
47753         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
47754         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
47755         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
47756         * modules/memxor (EXTRA_DIST): Add memxor.h.
47757         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
47758         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
47759         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
47760         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
47761         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
47762         * modules/physmem (EXTRA_DIST): Add physmem.h.
47763         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
47764         * modules/posixver (EXTRA_DIST): Add posixver.h.
47765         * modules/quote (EXTRA_DIST): Add quote.h.
47766         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
47767         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
47768         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
47769         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
47770         regex_internal.h regexec.c.
47771         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
47772         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
47773         * modules/same (EXTRA_DIST): Add same.h.
47774         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
47775         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
47776         * modules/savedir (EXTRA_DIST): Add savedir.h.
47777         * modules/sha1 (EXTRA_DIST): Add sha1.h.
47778         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
47779         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
47780         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
47781         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
47782         * modules/strdup (EXTRA_DIST): Add strdup.h.
47783         * modules/strftime (EXTRA_DIST): Add strftime.h.
47784         * modules/strndup (EXTRA_DIST): Add strndup.h.
47785         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
47786         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
47787         * modules/time_r (EXTRA_DIST): Add time_r.h.
47788         * modules/timespec (EXTRA_DIST): Add timespec.h.
47789         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47790         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
47791         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
47792         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
47793         * modules/userspec (EXTRA_DIST): Add userspec.h.
47794         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
47795         * modules/utimens (EXTRA_DIST): Add utimens.h.
47796         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
47797         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
47798         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
47799         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
47800         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
47801         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
47802         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
47803         * modules/yesno (EXTRA_DIST): Add yesno.h.
47804
47805 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47806
47807         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
47808
47809         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
47810         * m4/dev-ino.m4, same-inode.m4: Remove.
47811
47812         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
47813         * m4/acl.m4 (AC_FUNC_ACL):
47814         * m4/backupfile.m4 (gl_BACKUPFILE):
47815         * m4/c-strtod.m4 (gl_C99_STRTOLD):
47816         * m4/canon-host.m4 (gl_CANON_HOST):
47817         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47818         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
47819         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
47820         * m4/cloexec.m4 (gl_CLOEXEC):
47821         * m4/close-stream.m4 (gl_CLOSE_STREAM):
47822         * m4/closeout.m4 (gl_CLOSEOUT):
47823         * m4/dirfd.m4 (gl_FUNC_DIRFD):
47824         * m4/dirname.m4 (gl_DIRNAME):
47825         * m4/exclude.m4 (gl_EXCLUDE):
47826         * m4/exitfail.m4 (gl_EXITFAIL):
47827         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
47828         * m4/file-type.m4 (gl_FILE_TYPE):
47829         * m4/filemode.m4 (gl_FILEMODE):
47830         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
47831         * m4/fpending.m4 (gl_FUNC_FPENDING):
47832         * m4/fprintftime.m4 (gl_FPRINTFTIME):
47833         * m4/fts.m4 (gl_FUNC_FTS):
47834         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
47835         * m4/getdate.m4 (gl_GETDATE):
47836         * m4/gethrxtime.m4 (gl_GETHRXTIME):
47837         * m4/getpagesize.m4 (gl_GETPAGESIZE):
47838         * m4/getpass.m4 (gl_FUNC_GETPASS):
47839         * m4/gettime.m4 (gl_GETTIME):
47840         * m4/getugroups.m4 (gl_GETUGROUPS):
47841         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
47842         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
47843         * m4/hard-locale.m4 (gl_HARD_LOCALE):
47844         * m4/hash.m4 (gl_HASH):
47845         * m4/idcache.m4 (gl_IDCACHE):
47846         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
47847         * m4/lchown.m4 (gl_FUNC_LCHOWN):
47848         * m4/long-options.m4 (gl_LONG_OPTIONS):
47849         * m4/lstat.m4 (gl_FUNC_LSTAT):
47850         * m4/md5.m4 (gl_MD5):
47851         * m4/memcasecmp.m4 (gl_MEMCASECMP):
47852         * m4/memcoll.m4 (gl_MEMCOLL):
47853         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
47854         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
47855         * m4/memxor.m4 (gl_MEMXOR):
47856         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
47857         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
47858         * m4/modechange.m4 (gl_MODECHANGE):
47859         * m4/mountlist.m4 (gl_MOUNTLIST):
47860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47861         * m4/openat.m4 (gl_FUNC_OPENAT):
47862         * m4/pathmax.m4 (gl_PATHMAX):
47863         * m4/physmem.m4 (gl_PHYSMEM):
47864         * m4/posixtm.m4 (gl_POSIXTM):
47865         * m4/posixver.m4 (gl_POSIXVER):
47866         * m4/quote.m4 (gl_QUOTE):
47867         * m4/quotearg.m4 (gl_QUOTEARG):
47868         * m4/readtokens.m4 (gl_READTOKENS):
47869         * m4/readutmp.m4 (gl_READUTMP):
47870         * m4/regex.m4 (gl_REGEX):
47871         * m4/safe-read.m4 (gl_SAFE_READ):
47872         * m4/safe-write.m4 (gl_SAFE_WRITE):
47873         * m4/same.m4 (gl_SAME):
47874         * m4/save-cwd.m4 (gl_SAVE_CWD):
47875         * m4/savedir.m4 (gl_SAVEDIR):
47876         * m4/settime.m4 (gl_SETTIME):
47877         * m4/sha1.m4 (gl_SHA1):
47878         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
47879         * m4/stat-macros.m4 (gl_STAT_MACROS):
47880         * m4/stat-time.m4 (gl_STAT_TIME):
47881         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
47882         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
47883         * m4/strdup.m4 (gl_FUNC_STRDUP):
47884         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
47885         * m4/strndup.m4 (gl_FUNC_STRNDUP):
47886         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
47887         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
47888         * m4/time_r.m4 (gl_TIME_R):
47889         * m4/timespec.m4 (gl_TIMESPEC):
47890         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
47891         * m4/unlinkdir.m4 (gl_UNLINKDIR):
47892         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
47893         * m4/userspec.m4 (gl_USERSPEC):
47894         * m4/utimecmp.m4 (gl_UTIMECMP):
47895         * m4/utimens.m4 (gl_UTIMENS):
47896         * m4/xalloc.m4 (gl_XALLOC):
47897         * m4/xgetcwd.m4 (gl_XGETCWD):
47898         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
47899         * m4/xreadlink.m4 (gl_XREADLINK):
47900         * m4/xstrtod.m4 (gl_XSTRTOD):
47901         * m4/yesno.m4 (gl_YESNO):
47902         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47903         to get the necessary .h files and whatnot.
47904
47905 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
47906             Bruno Haible  <bruno@clisp.org>
47907
47908         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
47909         /bin/sh understanding of '!' conditional negation.
47910
47911 2006-08-21  Jim Meyering  <jim@meyering.net>
47912
47913         * modules/openat (Depends-on): Really alphabetize.
47914
47915         * modules/acl (Depends-on): Add error and quote.
47916
47917         * check-module (find_included_lib_files): Add at-func.c to the
47918         ok-to-include-more-than-once white list.
47919
47920         * modules/openat (Depends-on): Add lstat.  Alphabetize.
47921
47922 2006-08-21  Bruno Haible  <bruno@clisp.org>
47923
47924         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47925         Emit a pkgdata_DATA variable only if some snippets add contents to it.
47926         Reported by Martin Lambers <marlam@marlam.de>.
47927
47928 2006-08-21  Bruno Haible  <bruno@clisp.org>
47929
47930         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
47931         specify an installation location, don't emit a noinst_LIBRARIES or
47932         noinst_LTLIBRARIES assignment.
47933
47934 2006-08-21  Bruno Haible  <bruno@clisp.org>
47935
47936         BeOS portability.
47937         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
47938         BeOS has mbrtowc() but no <wctype.h>.
47939
47940 2006-08-21  Bruno Haible  <bruno@clisp.org>
47941
47942         BeOS portability.
47943         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
47944         exist.
47945
47946 2006-08-21  Bruno Haible  <bruno@clisp.org>
47947
47948         BeOS portability.
47949         * lib/mbchar.h: Include <wctype.h> only if it exists.
47950
47951 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47952
47953         Remove files that are no longer needed by their respective modules.
47954         * m4/obstack.m4: Remove.
47955         * m4/strerror_r.m4: Remove.
47956         * m4/uint32_t.m4: Remove.
47957         * m4/uintptr_t.m4: Remove.
47958         * m4/ullong_max.m4: Remove.
47959         * m4/xstrtoimax.m4: Remove.
47960         * m4/xstrtoumax.m4: Remove.
47961
47962         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
47963         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
47964         dependencies now capture this.
47965
47966         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
47967         Do not use AC_LIBSOURCES, since gnulib modules now do this.
47968         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
47969         * m4/human.m4 (gl_HUMAN): Likewise.
47970         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
47971         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
47972
47973         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
47974
47975         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
47976         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
47977         stdint.
47978         * m4/human.m4 (gl_HUMAN): Likewise.
47979         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
47980         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
47981         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47982         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47983         * m4/xstrtol (gl_XSTRTOL): Likewise.
47984
47985         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
47986         AC_TYPE_LONG_LONG_INT.
47987         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47988         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
47989         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
47990         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47991
47992         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
47993         on stdbool.
47994
47995         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
47996         (gl_PREREQ_XSTRTOUL): Remove.
47997
47998         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
47999
48000         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
48001         mode.
48002
48003 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48004
48005         Add and change modules to make it easier for coreutils to use
48006         gnulib-tool.
48007         * modules/backupfile (Files): Remove m4/d-ino.m4.
48008         (Depends-on): Add d-ino.
48009         * modules/cycle-check (Depends-on): Add stdint.
48010         (lib_SOURCES): Add cycle-check.h.
48011         * modules/d-ino: New module.
48012         * modules/d-type: New module.
48013         * modules/error (Files): Remove m4/strerror_r.m4.
48014         * modules/filemode (Files): Add m4/st_dm_mode.m4.
48015         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48016         m4/inttypes_h.m4, m4/uintmax_t.m4.
48017         (Depends-on): Add stdint.
48018         (lib_SOURCES): Add fsusage.h.
48019         * modules/getcwd (Files): Remove d-ino.m4.
48020         (Depends-on): Add d-ino.
48021         * modules/getndelim2 (Depends-on): Add stdint.
48022         * modules/glob (Files): Remove m4/d-type.m4.
48023         (Depends-on): Add d-type.
48024         * modules/host-os: New module.
48025         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
48026         m4/inttypes_h.m4, m4/uintmax_t.m4.
48027         * Depends-on: Add stdint.
48028         (lib_SOURCES): Add human.h.
48029         * modules/inttostr (Files): Remove m4/intmax_t.m4,
48030         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
48031         m4/uintmax_t.m4, m4/ulonglong.m4.
48032         (Depends-on): Add stdint.
48033         (EXTRA_DIST): Add inttostr.h.
48034         * modules/lchmod: New module.
48035         * modules/link-follow: New module.
48036         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
48037         (Depends-on): Add lchmod.
48038         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
48039         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
48040         (Depends-on): Add stdint.
48041         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
48042         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
48043         (Depends-on): Add stdint.
48044         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
48045         * modules/perl: New module.
48046         * modules/regex (Depends-on): Add stdint.
48047         * modules/rmdir-errno: New module.
48048         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48049         m4/intmax_t.m4.
48050         (Depends-on): Add stdint.
48051         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48052         m4/uintmax_t.m4.
48053         (Depends-on): Add stdint.
48054         * modules/unlink-busy: New module.
48055         * modules/utimecmp (Depends-on): Add stdint.
48056         * modules/uptime: New module.
48057         * modules/winsz-ioctl: New module.
48058         * modules/winsz-termios: New module.
48059         * modules/xnanosleep (Depends-on): Add nanosleep.
48060         * modules/ullong_max: Remove.
48061         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
48062         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
48063         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
48064         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
48065         (Depends-on): Add inttypes.
48066         (lib_SOURCES): Add xstrtol.h.
48067         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
48068         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
48069         * MODULES.html.sh: Move 'assert' into the assert section.
48070         Move 'dummy' into the linking section.
48071         Remove ullong_max.
48072         Add section for compatibility checks for POSIX:2001 functions,
48073         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
48074         winsz-ioctl, and winsz-termios into it.
48075         Add lchmod.
48076         Add top-level Misc section and put host-os, perl, and uptime
48077         into it.
48078
48079 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48080
48081         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
48082         now assume the stdint module.  Do not include inttypes.h.
48083         * lib/fsusage.h: Likewise.
48084         * lib/getndelim2.c: Likewise.
48085         * lib/human.h: Likewise.
48086         * lib/inttostr.h: Likewise.
48087         * lib/obstack.c: Likewise.
48088         * lib/regex_internal.h: Likewise.
48089         * lib/tempname.c: Likewise.
48090         * lib/utimecmp.c: Likewise.
48091         * lib/xstrtol.h: Likewise.
48092
48093         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
48094
48095         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
48096         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
48097         * lib/xtime.h: Likewise.
48098
48099 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48100
48101         * modules/openat (Files): Add lib/fchmodat.c.
48102         Fixes problem reported by Jay Youngman.
48103
48104 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48105
48106         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
48107         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
48108
48109 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48110             Bruno Haible  <bruno@clisp.org>
48111
48112         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
48113         and is a script that invokes bison. Tighten the code. Add comments.
48114
48115 2006-08-18  Jim Meyering  <jim@meyering.net>
48116
48117         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
48118         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
48119         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
48120         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
48121
48122 2006-08-18  Bruno Haible  <bruno@clisp.org>
48123
48124         * modules/bison-i18n: New file.
48125         * MODULES.html.sh (Internationalization functions): Add it.
48126
48127 2006-08-18  Bruno Haible  <bruno@clisp.org>
48128
48129         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
48130         sys/statvfs.h. When getmntinfo was found, check its declaration and
48131         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
48132
48133 2006-08-18  Bruno Haible  <bruno@clisp.org>
48134
48135         * m4/bison-i18n.m4: New file, from bison.
48136
48137 2006-08-18  Bruno Haible  <bruno@clisp.org>
48138
48139         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
48140         (ME_DUMMY): Treat "kernfs" as a dummy.
48141         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
48142
48143 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48144
48145         Update from coreutils.
48146
48147         2006-08-15  Jim Meyering  <jim@meyering.net>
48148
48149         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
48150
48151         2006-01-17  Jim Meyering  <jim@meyering.net>
48152
48153         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
48154
48155         2006-01-11  Jim Meyering  <jim@meyering.net>
48156
48157         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
48158         Check for the lchmod function.
48159
48160 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48161
48162         Update from coreutils.
48163
48164         * lib/__fpending.h: Add copyright notice.
48165         * lib/fprintftime.h: Likewise.
48166         * lib/savedir.c: Use (C) in copyright notice.
48167         * lib/savedir.h: Likewise.
48168
48169         2006-08-15  Jim Meyering  <jim@meyering.net>
48170
48171         * lib/at-func.c: New file, with the logic of all emulated at-functions.
48172         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
48173         in support of the EXPECTED_ERRNO macro.
48174         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
48175         definitions.  Instead, define the appropriate symbols and include
48176         "at-func.c".
48177         * lib/mkdirat.c (mkdirat): Likewise.
48178         * lib/fchmodat.c (fchmodat): Likewise.
48179         (ENOSYS): Remove definition.
48180         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
48181         it.  Don't include "unistd--.h" -- it wasn't ever used.
48182
48183         2006-01-17  Jim Meyering  <jim@meyering.net>
48184
48185         Rewrite fts.c not to change the current working directory,
48186         by using openat, fstatat, fdopendir, etc..
48187
48188         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
48189         (HAVE_OPENAT_SUPPORT): Define.
48190         [_LIBC] (fchdir): Don't undef or define; no longer used.
48191         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
48192         Now, this `function' always succeeds, and consumes its file descriptor
48193         parameter -- so callers must not close such FDs.  Update callers.
48194         (diropen_fd, opendirat, cwd_advance_fd): New functions.
48195         (diropen): Add parameter, SP.  Adjust all callers.
48196         Implement using diropen_fd, rather than open.
48197         (fts_open): Initialize new member, fts_cwd_fd.
48198         Remove fts_rft-setting code.
48199         (fts_close): Close fts_cwd_fd, if necessary.
48200         (__opendir2): Define in terms of opendir or opendirat,
48201         depending on whether the FST_NOCHDIR flag is set.
48202         (fts_build): Since fts_safe_changedir consumes its FD, and since
48203         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
48204         and close the dup'd file descriptor upon failure.
48205         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
48206         (fts_safe_changedir): Tweak semantics to reflect that this function
48207         now calls cwd_advance_fd and hence consumes its FD argument.
48208         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
48209         [struct FTS] (fts_rft): Remove now-unused member.
48210         [struct FTS] (fts_cycle.state): Improve comment.
48211
48212         * lib/openat.c (openat_needs_fchdir): New function.
48213         * lib/openat.h (openat_needs_fchdir): Declare it.
48214
48215 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48216
48217         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
48218         Problem and fix reported by Pádraig Brady in
48219         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
48220
48221 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48222
48223         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
48224
48225 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48226
48227         * lib/memcoll.c (memcoll): Optimize for the common case where the
48228         arguments are bytewise equal.
48229
48230 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48231
48232         * doc/regexprops-generic.texi: Add a copyright notice.
48233
48234 2006-08-15  Bruno Haible  <bruno@clisp.org>
48235
48236         * modules/tmpdir (License): Change to LGPL.
48237
48238 2006-08-15  Bruno Haible  <bruno@clisp.org>
48239
48240         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
48241         module.
48242
48243 2006-08-14  Simon Josefsson  <jas@extundo.com>
48244
48245         * config/srclist.txt: Add gnupload.
48246
48247 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48248
48249         Change copyright notice from LGPL 2 to GPL 2, since that's the
48250         standard form used in the gnulib repository.
48251         * tests/test-lock.c: Likewise.
48252         * tests/test-stdint.c: Likewise.
48253         * tests/test-tls.c: Likewise.
48254
48255         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
48256         prelude-manager.  User shorter URLs for GNU projects, without '?'.
48257         Add copyright notice.
48258
48259         * check-module: Add copyright notice.  Output a copyright
48260         notice if "--version" is specified.
48261         * modules/COPYING: New file.
48262         * tests/test-getaddrinfo.c: Add copyright notice.
48263         * tests/test-verify.c: Likewise.
48264
48265 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48266
48267         Change copyright notice from LGPL 2 to GPL 2, since that's the
48268         standard form used in the gnulib repository.
48269         * lib/lock.c: LGPL -> GPL.
48270         * lib/lock.h: Likewise.
48271         * lib/strnlen1.c: Likewise.
48272         * lib/strnlen1.h: Likewise.
48273         * lib/tls.c: Likewise.
48274         * lib/tls.h: Likewise.
48275         * lib/tmpdir.c: Likewise.
48276
48277         * lib/TODO: Remove; this belongs only in coreutils.
48278
48279 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48280
48281         Add copyright notices to long-enough files that lack them, since
48282         otherwise the files aren't clearly free.  Use the same notice that
48283         getdate.texi already uses.
48284         * doc/alloca-opt.texi: Add copyright notice.
48285         * doc/alloca.texi: Likewise.
48286         * doc/ctime.texi: Likewise.
48287         * doc/functions.texi: Likewise.
48288         * doc/gcd.texi: Likewise.
48289         * doc/gnulib-tool.texi: Likewise.
48290         * doc/inet_ntoa.texi: Likewise.
48291         * doc/visibility.texi: Likewise.
48292
48293         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
48294         * doc/quote.texi: Add copyright notice.
48295
48296         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
48297         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
48298         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
48299         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
48300         is now obsolete, and give a pointer to the Sun list.
48301         Add copyright notice.
48302
48303 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48304
48305         * config/srclistvars.sh: Add copyright notice.
48306
48307 2006-08-14  Eric Blake  <ebb9@byu.net>
48308
48309         Import the following change from libc:
48310
48311         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
48312
48313         Upstream bug 2997.
48314         * lib/misc/error.c: Add space between program name and message if file
48315         name is missing.
48316
48317 2006-08-12  Karl Berry  <karl@gnu.org>
48318
48319         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
48320         remove, these originate in gnulib now.
48321
48322 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48323
48324         * doc/Makefile (standards.info standards.html standards.dvi):
48325         Also depend on make-stds.texi.
48326
48327 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48328
48329         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
48330         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
48331
48332         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
48333         in wchar_t.  Problem reported by Eric Blake.
48334
48335         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
48336         LEN is smaller than SIZE.  Suggested by Bruno Haible.
48337         Also, help the compiler to keep LEN in a register.
48338
48339 2006-08-11  Eric Blake  <ebb9@byu.net>
48340
48341         * users.txt: Sort.  Add tar.
48342
48343 2006-08-11  Bruno Haible  <bruno@clisp.org>
48344
48345         * users.txt: New file.
48346
48347 2006-08-11  Bruno Haible  <bruno@clisp.org>
48348
48349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
48350         before <wchar.h>. Needed for OSF/1 and BSD/OS.
48351
48352 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48353
48354         * modules/snprintf (Depends-on): Remove minmax.
48355         (Maintainer): Add self and Bruno.
48356
48357 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48358
48359         * lib/.cppi-disable: Add snprintf.h, socket_.h.
48360         * lib/snprintf.c: Include <errno.h> and <limits.h>.
48361         (EOVERFLOW): Define if the system does not.
48362         Do not include "minmax.h"; it wasn't used.
48363         (snprintf): Don't assume size_t promotes to an unsigned type.
48364         Fix bug when generated string was too long for the buffer: the
48365         buffer's contents are supposed to be the initial prefix of the
48366         output.  Don't assume vasnprintf returns EOVERFLOW if the size
48367         exceeds INT_MAX; do the check ourselves.
48368
48369         Import the following changes from libc:
48370
48371         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
48372
48373         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
48374         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
48375         set wc to the byte which couldn't be converted.
48376         (re_string_reconstruct): Don't clear valid_raw_len before calling
48377         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
48378         tip_context using re_string_context_at.
48379
48380         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
48381
48382         * lib/posix/regex.h: g++ still cannot handled [restrict].
48383
48384         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
48385
48386         * lib/posix/regex.h: Remove special handling for VMS.
48387
48388 2006-08-10  Jim Meyering  <jim@meyering.net>
48389
48390         * modules/same-inode: New module.
48391         * modules/dev-ino: New module.
48392         * modules/cycle-check: Depend on these modules, rather than simply
48393         including their .h files.
48394         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
48395         required via m4/cycle-check.m4.
48396         * modules/same: Depend on new same-inode module, rather than
48397         including same-inode.h.
48398         * modules/chdir-safer: New file.
48399
48400         * modules/chown (Depends-on): Add stat-macros.
48401
48402 2006-08-10  Jim Meyering  <jim@meyering.net>
48403
48404         * m4/cycle-check.m4: New file.
48405         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
48406         * m4/dev-ino.m4, m4/same-inode.m4: New files.
48407
48408 2006-08-10  Eric Blake  <ebb9@byu.net>
48409
48410         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
48411         in from original proposal.
48412
48413 2006-08-10  Eric Blake  <ebb9@byu.net>
48414         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48415
48416         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
48417         namespace.
48418
48419 2006-08-10  Bruno Haible  <bruno@clisp.org>
48420
48421         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
48422         as well.
48423
48424 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48425
48426         Sync from coreutils.
48427
48428         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
48429
48430         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
48431         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
48432
48433 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48434
48435         * modules/restrict: Remove; no longer needed now that we assume
48436         Autoconf 2.59 or later.
48437         * MODULES.html.sh: Remove 'restrict'.
48438         * modules/argp (Depends-on): Remove 'restrict'.
48439         * modules/base64 (Depends-on): Likewise.
48440         * modules/gc (Depends-on): Likewise.
48441         * modules/getaddrinfo (Depends-on): Likewise.
48442         * modules/glob (Depends-on): Likewise.
48443         * modules/inet_ntop (Depends-on): Likewise.
48444         * modules/inet_pton (Depends-on): Likewise.
48445         * modules/memxor (Depends-on): Likewise.
48446         * modules/regex (Depends-on): Likewise.
48447         * modules/strtok_r (Depends-on): Likewise.
48448         * modules/time_r (Depends-on): Likewise.
48449
48450 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48451
48452         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
48453         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
48454         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48455         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
48456         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
48457         * m4/memxor.m4 (gl_MEMXOR): Likewise.
48458         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
48459         gl_C_RESTRICT replaced by AC_C_RESTRICT.
48460
48461         Merge from coreutils.
48462         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
48463         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
48464         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48465         * m4/time_r.m4 (gl_TIME_R): Likewise.
48466
48467 2006-08-09  Karl Berry  <karl@gnu.org>
48468
48469         * config/srclist.txt: no more gettext-tools, per Bruno.
48470
48471 2006-08-08  Eric Blake  <ebb9@byu.net>
48472
48473         * modules/verror: New module.
48474         * MODULES.html.sh: Document it.
48475
48476 2006-08-08  Eric Blake  <ebb9@byu.net>
48477
48478         * lib/verror.h, lib/verror.c: New files.
48479
48480 2006-08-08  Eric Blake  <ebb9@byu.net>
48481
48482         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
48483         verror_at_line output complies with GNU Coding Standards even when
48484         file is NULL.
48485
48486 2006-08-07  Bruno Haible  <bruno@clisp.org>
48487
48488         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
48489         versions of AIX.
48490         Reported by Ralf Wildenhues.
48491
48492 2006-08-07  Bruno Haible  <bruno@clisp.org>
48493
48494         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
48495         in an AC_DEFUN. Needed so that the autoconf snippets can use
48496         AC_REQUIRE.
48497
48498 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48499
48500         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48501         Initialize pkgdata_DATA.
48502         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
48503         overriding it.
48504
48505 2006-08-06  Eric Blake  <ebb9@byu.net>
48506
48507         * lib/error.h: Fold in some upstream changes from glibc.
48508         * lib/error.c: Likewise.
48509
48510 2006-08-04  Bruno Haible  <bruno@clisp.org>
48511
48512         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48513         Make the mostlyclean-local rule depend on mostlyclean-generic.
48514         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
48515
48516 2006-07-31  Bruno Haible  <bruno@clisp.org>
48517
48518         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
48519         <stdlib.h>, <string.h>.
48520
48521 2006-07-30  Bruno Haible  <bruno@clisp.org>
48522
48523         * modules/readlink (License): Change to LGPL.
48524
48525 2006-07-30  Bruno Haible  <bruno@clisp.org>
48526
48527         * modules/javaversion (Makefile.am): Distribute javaversion.java and
48528         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
48529         set PKGDATADIR to point to it.
48530
48531 2006-07-30  Bruno Haible  <bruno@clisp.org>
48532
48533         * modules/csharpexec (configure.ac): Comment out macro invocation.
48534         * modules/javaexec (configure.ac): Likewise.
48535         * modules/javacomp-script (configure.ac): Likewise.
48536
48537         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48538
48539 2006-07-30  Bruno Haible  <bruno@clisp.org>
48540
48541         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48542         linked-list.
48543
48544 2006-07-30  Bruno Haible  <bruno@clisp.org>
48545
48546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48547
48548 2006-07-30  Bruno Haible  <bruno@clisp.org>
48549
48550         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48551         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48552         get removed.
48553
48554 2006-07-29  Bruno Haible  <bruno@clisp.org>
48555
48556         Make it possible for gnulib-tool to work with locally modified or
48557         augmented gnulib repositories.
48558         * gnulib-tool (func_usage): Document --local-dir option.
48559         (local_gnulib_dir): New variable.
48560         Handle --local-dir option.
48561         (func_lookup_file): New function.
48562         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48563         (func_get_description, func_get_filelist, func_get_description,
48564         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48565         func_get_automake_snippet, func_get_include_directive,
48566         func_get_license, func_get_maintainer): Use func_lookup_file.
48567         (func_import, func_create_testdir): Use func_lookup_file.
48568
48569 2006-07-29  Bruno Haible  <bruno@clisp.org>
48570
48571         * modules/setenv (Depends-on): Add unistd.
48572
48573 2006-07-29  Bruno Haible  <bruno@clisp.org>
48574
48575         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48576
48577 2006-07-29  Bruno Haible  <bruno@clisp.org>
48578
48579         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48580
48581 2006-07-29  Bruno Haible  <bruno@clisp.org>
48582
48583         * gnulib-tool (import, update): If there is no Makefile.am, look at
48584         aclocal.m4, instead of bailing out.
48585
48586 2006-07-29  Bruno Haible  <bruno@clisp.org>
48587
48588         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48589         Categorize the options by when they are useful.
48590
48591 2006-07-29  Bruno Haible  <bruno@clisp.org>
48592
48593         * gnulib-tool (func_usage): Document option --no-libtool.
48594         Handle option --no-libtool.
48595         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48596         for changed semantics of $libtool variable.
48597         (func_import): Likewise. If libtool is not used, show this through
48598         an option --no-libtool.
48599         (func_create_testdir): Update.
48600
48601 2006-07-29  Bruno Haible  <bruno@clisp.org>
48602
48603         * gnulib-tool (func_import): Extend error message about missing
48604         --doc-base.
48605
48606 2006-07-29  Bruno Haible  <bruno@clisp.org>
48607
48608         * gnulib-tool (func_import): Don't create the $docbase directory if
48609         there is no file to store there.
48610
48611 2006-07-29  Bruno Haible  <bruno@clisp.org>
48612
48613         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48614         relevant, look for configure.ac there, not in the current directory.
48615         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48616
48617 2006-07-29  Bruno Haible  <bruno@clisp.org>
48618
48619         * gnulib-tool (SORT): New variable.
48620         (func_usage): Undocument --assume-autoconf option.
48621         Remove --assume-autoconf option handling.
48622         (autoconf_minversion): Determine from the contents of configure.ac.
48623         (func_import): Remove autoconf_minversion handling.
48624         Suggested by Eric Blake.
48625
48626 2006-07-29  Bruno Haible  <bruno@clisp.org>
48627
48628         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48629
48630 2006-07-29  Bruno Haible  <bruno@clisp.org>
48631
48632         * config/srclist.txt (*setenv.[ch]): Remove rules.
48633
48634 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48635
48636         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48637
48638 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48639
48640         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48641         arpa/inet.h.
48642
48643 2006-07-28  Simon Josefsson  <jas@extundo.com>
48644
48645         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48646         * modules/inet_pton (Depends-on): Likewise.
48647
48648 2006-07-28  Simon Josefsson  <jas@extundo.com>
48649
48650         * m4/netinet_in_h.m4: New file.
48651
48652 2006-07-28  Simon Josefsson  <jas@extundo.com>
48653
48654         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48655         #include's.
48656
48657 2006-07-28  Simon Josefsson  <jas@extundo.com>
48658
48659         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48660         #include's.
48661
48662 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48663
48664         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48665         setgid on directories only if they set these bits.
48666         * lib/modechange.h: Remove obsolete comment about masks.
48667
48668 2006-07-28  Eric Blake  <ebb9@byu.net>
48669
48670         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48671         macro expansion.
48672
48673 2006-07-28  Bruno Haible  <bruno@clisp.org>
48674
48675         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48676
48677 2006-07-28  Bruno Haible  <bruno@clisp.org>
48678
48679         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48680
48681 2006-07-28  Bruno Haible  <bruno@clisp.org>
48682
48683         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48684         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48685         Define fallbacks.
48686         Avoids link error on FreeBSD 4.x.
48687         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48688
48689         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48690         encoding.
48691         * lib/mbswidth.c (iswcntrl): Likewise.
48692
48693 2006-07-27  Bruno Haible  <bruno@clisp.org>
48694
48695         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48696         test.
48697
48698 2006-07-27  Bruno Haible  <bruno@clisp.org>
48699
48700         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48701         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48702         defined.
48703
48704 2006-07-26  Eric Blake  <ebb9@byu.net>
48705
48706         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48707
48708 2006-07-26  Eric Blake  <ebb9@byu.net>
48709
48710         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48711         like mingw that lack mkstemp.
48712         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48713         avoid compilation warning on mingw.
48714
48715 2006-07-26  Bruno Haible  <bruno@clisp.org>
48716
48717         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48718         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48719         INT_FAST*_MIN, INTPTR_MIN.
48720
48721 2006-07-25  Bruno Haible  <bruno@clisp.org>
48722
48723         * modules/version-etc (Depends-on): Add stdarg.
48724
48725 2006-07-25  Bruno Haible  <bruno@clisp.org>
48726
48727         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
48728         complex commands.
48729
48730 2006-07-25  Bruno Haible  <bruno@clisp.org>
48731
48732         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
48733         defined in <stdarg.h> or config.h.
48734
48735 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48736
48737         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
48738         (gl_STDIO_SAFER): Remove.
48739
48740 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48741
48742         * MODULES.html.sh (File stream based Input/Output):
48743         Add fopen-safer, tmpfile-safer; remove stdio-safer.
48744         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
48745         * modules/fopen-safer, modules/tmpfile-safer: New files.
48746         * modules/stdio-safer: Remove.
48747
48748 2006-07-24  Bruno Haible  <bruno@clisp.org>
48749
48750         * modules/tmpdir: New file.
48751         * MODULES.html.sh (File system functions): Add it.
48752
48753 2006-07-24  Bruno Haible  <bruno@clisp.org>
48754
48755         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
48756         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
48757
48758 2006-07-24  Bruno Haible  <bruno@clisp.org>
48759
48760         * modules/clean-temp: New file.
48761
48762 2006-07-24  Bruno Haible  <bruno@clisp.org>
48763
48764         * m4/tmpdir.m4: New file, from GNU gettext.
48765
48766 2006-07-24  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/tmpdir.h: New file, from GNU gettext.
48769         * lib/tmpdir.c: New file, from GNU gettext.
48770
48771 2006-07-24  Bruno Haible  <bruno@clisp.org>
48772
48773         * lib/clean-temp.h: New file, from GNU gettext.
48774         * lib/clean-temp.c: New file, from GNU gettext.
48775
48776 2006-07-23  Eric Blake  <ebb9@byu.net>
48777
48778         * modules/stdio-safer (Files): Add tmpfile-safer.c.
48779         (Depends-on): Add binary-io.
48780
48781 2006-07-23  Eric Blake  <ebb9@byu.net>
48782
48783         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
48784
48785 2006-07-23  Eric Blake  <ebb9@byu.net>
48786
48787         * lib/tmpfile-safer.c: New file.
48788         * lib/stdio-safer.h (fopen_safer): Add prototype.
48789         * lib/stdio--.h (tmpfile): Make safer.
48790
48791 2006-07-23  Bruno Haible  <bruno@clisp.org>
48792
48793         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
48794         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
48795         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
48796         gl_linked_remove_at): Use it.
48797
48798 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48799         and Simon Josefsson <jas@extundo.com>
48800
48801         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
48802
48803         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
48804
48805 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48806
48807         * modules/close-stream: New file.
48808         * modules/closeout (Description): Make it clear that it exits
48809         with a diagnostic on error.
48810         (Depends-on): Add close-stream.  Remove fpending, stdbool.
48811         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
48812
48813 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48814
48815         * m4/close-stream.m4: New file.
48816
48817 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48818
48819         * lib/close-stream.c, lib/close-stream.h: New files.
48820
48821 2006-07-22  Bruno Haible  <bruno@clisp.org>
48822
48823         Merge from GNU gettext 0.15.
48824
48825         2006-05-01  Bruno Haible  <bruno@clisp.org>
48826
48827                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
48828
48829         2006-07-22  Bruno Haible  <bruno@clisp.org>
48830
48831                 * modules/javaversion: New file.
48832                 * MODULES.html.sh (Java): Add javaversion.
48833
48834         2006-03-12  Bruno Haible  <bruno@clisp.org>
48835
48836                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
48837
48838         2005-12-04  Bruno Haible  <bruno@clisp.org>
48839
48840                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
48841                 (untested).
48842
48843         2006-06-21  Bruno Haible  <bruno@clisp.org>
48844
48845                 Avoid warnings from recent versions of mcs.
48846                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
48847                 -o, -L, -r any more. Use options documented since mcs-1.0
48848                 instead. Similarly for -g.
48849
48850         2005-12-04  Bruno Haible  <bruno@clisp.org>
48851
48852                 * build-aux/csharpcomp.sh.in: Suffix for resources is
48853                 .resources, not .resource.
48854
48855         2005-07-09  Bruno Haible  <bruno@clisp.org>
48856
48857                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
48858                 add a .dll suffix.
48859                 Reported by Mark Junker <mjscod@gmx.de>.
48860
48861         2006-07-22  Bruno Haible  <bruno@clisp.org>
48862
48863                 * modules/gettext: Upgrade to gettext-0.15.
48864                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
48865                 m4/visibility.m4.
48866                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
48867
48868 2006-07-22  Bruno Haible  <bruno@clisp.org>
48869
48870         Merge from GNU gettext 0.15.
48871
48872         2006-03-25  Bruno Haible  <bruno@clisp.org>
48873
48874                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
48875
48876         2006-07-21  Bruno Haible  <bruno@clisp.org>
48877
48878                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
48879                 "1.1".
48880
48881         2006-05-09  Bruno Haible  <bruno@clisp.org>
48882
48883                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
48884                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
48885                 for the conftestver execution.
48886
48887         2006-05-01  Bruno Haible  <bruno@clisp.org>
48888
48889                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
48890                 optional target-version argument. Verify that the compiler
48891                 groks source of the specified source-version, or add -source
48892                 option as necessary. Verify that the compiler produces
48893                 bytecode in the specified target-version, or add -target and
48894                 -source options as necessary. Make the result of the test
48895                 available as variable CONF_JAVAC. Also log error output in
48896                 config.log.
48897
48898         2006-03-11  Bruno Haible  <bruno@clisp.org>
48899
48900                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
48901
48902         2006-05-09  Bruno Haible  <bruno@clisp.org>
48903
48904                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
48905                 CLASSPATH_SEPARATOR to a semicolon.
48906
48907         2006-03-12  Bruno Haible  <bruno@clisp.org>
48908
48909                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
48910                 available as variable CONF_JAVA, for subsequent autoconf
48911                 tests. Also log error output in config.log.
48912
48913         2006-07-19  Bruno Haible  <bruno@clisp.org>
48914
48915                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
48916                 that getline works on glibc2 systems. Needed to avoid trouble
48917                 in relocatable.c.
48918                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
48919
48920         2005-12-04  Bruno Haible  <bruno@clisp.org>
48921
48922                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
48923                 launcher (untested).
48924
48925         2005-12-04  Bruno Haible  <bruno@clisp.org>
48926
48927                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
48928
48929         2006-07-22  Bruno Haible  <bruno@clisp.org>
48930
48931                 * gettext.m4: Update from GNU gettext-0.15.
48932                 * nls.m4: Likewise.
48933                 * po.m4: Likewise.
48934                 * inttypes-pri.m4: Likewise.
48935                 * inttypes-h.m4: Renamed from inttypes.m4.
48936                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
48937
48938 2006-07-22  Bruno Haible  <bruno@clisp.org>
48939
48940         Merge from GNU gettext 0.15.
48941
48942         2005-07-05  Bruno Haible  <bruno@clisp.org>
48943
48944                 * printf-args.c (printf_fetchargs): Work around broken
48945                 definition of wint_t on mingw.
48946
48947         2005-02-12  Bruno Haible  <bruno@clisp.org>
48948
48949                 * xallocsa.h: Add extern "C" for C++.
48950
48951         2006-05-17  Bruno Haible  <bruno@clisp.org>
48952
48953                 Cygwin portability.
48954                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
48955
48956         2006-04-30  Bruno Haible  <bruno@clisp.org>
48957
48958                 * progreloc.c: Include <mach-o/dyld.h> if available.
48959                 (find_executable): Use _NSGetExecutablePath when possible.
48960
48961         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48962
48963                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
48964                 function.
48965
48966         2005-12-29  Bruno Haible  <bruno@clisp.org>
48967
48968                 * progreloc.c (set_program_name_and_installdir): Fix
48969                 compilation error.
48970
48971         2005-12-04  Bruno Haible  <bruno@clisp.org>
48972
48973                 Cygwin portability.
48974                 * progreloc.c: Include <windows.h> also on Cygwin.
48975                 (find_executable): Add support for Cygwin.
48976                 (set_program_name_and_installdir): Handle also platforms with
48977                 nonempty EXEEXT.
48978
48979         2006-07-11  Bruno Haible  <bruno@clisp.org>
48980
48981                 * javacomp.c: Fix a comment.
48982                 Reported by Jim Meyering.
48983
48984         2006-04-30  Bruno Haible  <bruno@clisp.org>
48985
48986                 * javacomp.h (compile_java_class): Add source_version,
48987                 target_version arguments.
48988                 * javacomp.c: Rewritten to choose only a compiler that
48989                 respects the specified source_version and target_version.
48990
48991         2006-06-27  Bruno Haible  <bruno@clisp.org>
48992
48993                 Assume correct S_ISDIR macro.
48994                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
48995
48996         2006-07-22  Bruno Haible  <bruno@clisp.org>
48997
48998                 * javaversion.h: New file, from GNU gettext.
48999                 * javaversion.c: New file, from GNU gettext.
49000                 * javaversion.java: New file, from GNU gettext.
49001                 * javaversion.class: New file, from GNU gettext.
49002
49003         2006-05-17  Bruno Haible  <bruno@clisp.org>
49004
49005                 Cygwin portability.
49006                 * javaexec.c (execute_java_class): Test for jview program
49007                 also on Cygwin.
49008
49009         2006-04-09  Bruno Haible  <bruno@clisp.org>
49010
49011                 * fatal-signal.c: Don't include string.h.
49012                 (at_fatal_signal): Use a copying loop instead of memcpy.
49013
49014         2005-12-04  Bruno Haible  <bruno@clisp.org>
49015
49016                 * csharpexec.c: Add support for 'clix' launcher (untested).
49017                 (execute_csharp_using_sscli): New function.
49018                 (execute_csharp_program): Call it.
49019
49020         2006-06-21  Bruno Haible  <bruno@clisp.org>
49021
49022                 Avoid warnings from recent versions of mcs.
49023                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
49024                 -o, -L, -r any more. Use options documented since mcs-1.0
49025                 instead. Similarly for -g.
49026
49027         2005-07-09  Bruno Haible  <bruno@clisp.org>
49028
49029                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
49030                 add a .dll suffix.
49031                 Reported by Mark Junker <mjscod@gmx.de>.
49032
49033         2006-06-17  Bruno Haible  <bruno@clisp.org>
49034
49035                 * config.charset: Update for NetBSD 3.0.
49036
49037         2006-05-17  Bruno Haible  <bruno@clisp.org>
49038
49039                 Cygwin portability.
49040                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
49041
49042         2006-05-16  Bruno Haible  <bruno@clisp.org>
49043
49044                 * localcharset.c [CYGWIN]: Include <windows.h>.
49045                 (get_charset_aliases): For Cygwin, return the same CPxxx
49046                 aliases list as under WIN32.
49047                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
49048                 the environment variables. Fall back to GetACP().
49049
49050         2006-04-05  Bruno Haible  <bruno@clisp.org>
49051
49052                 * config.charset: Update Juan Manuel Guerrero's address.
49053
49054         2005-02-12  Bruno Haible  <bruno@clisp.org>
49055
49056                 * allocsa.h: Add extern "C" for C++.
49057
49058         2005-02-10  Bruno Haible  <bruno@clisp.org>
49059
49060                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
49061                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
49062
49063         2006-07-22  Bruno Haible  <bruno@clisp.org>
49064
49065                 * gettext.h: Update to GNU gettext-0.15.
49066
49067 2006-07-22  Bruno Haible  <bruno@clisp.org>
49068
49069         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
49070         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
49071         lib-prefix.m4, longdouble.m4, ssize_t.m4.
49072
49073 2006-07-21  Eric Blake  <ebb9@byu.net>
49074
49075         * modules/stdlib-safer: New file.
49076         * MODULES.html.sh (File stream based Input/Output): Add
49077         stdlib-safer.
49078
49079 2006-07-21  Eric Blake  <ebb9@byu.net>
49080
49081         * lib/stdlib-safer.h: New file from coreutils, required by
49082         stdlib--.h.
49083
49084 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
49085
49086         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
49087
49088 2006-07-20  Bruno Haible  <bruno@clisp.org>
49089
49090         * gnulib-tool: Recognize new option --assume-autoconf.
49091         (autoconf_minversion): New variable.
49092         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
49093
49094 2006-07-20  Bruno Haible  <bruno@clisp.org>
49095
49096         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
49097
49098 2006-07-19  Derek R. Price  <derek@ximbiot.com>
49099
49100         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
49101         Reindent and repaginate.
49102
49103 2006-07-19  Derek Price  <derek@ximbiot.com>
49104
49105         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
49106         Correct grammar.
49107
49108 2006-07-17  Bruno Haible  <bruno@clisp.org>
49109
49110         * modules/list: New file.
49111         * modules/array-list: New file.
49112         * modules/carray-list, modules/carray-list-tests: New files.
49113         * modules/linked-list, modules/linked-list-tests: New files.
49114         * modules/avltree-list, modules/avltree-list-tests: New files.
49115         * modules/rbtree-list, modules/rbtree-list-tests: New files.
49116         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
49117         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
49118         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
49119         * modules/oset: New file.
49120         * modules/array-oset: New file.
49121         * modules/avltree-oset, modules/avltree-oset-tests: New files.
49122         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
49123         * tests/test-carray_list.c: New file.
49124         * tests/test-linked_list.c: New file.
49125         * tests/test-avltree_list.c: New file.
49126         * tests/test-rbtree_list.c: New file.
49127         * tests/test-linkedhash_list.c: New file.
49128         * tests/test-avltreehash_list.c: New file.
49129         * tests/test-rbtreehash_list.c: New file.
49130         * tests/test-avltree_oset.c: New file.
49131         * tests/test-rbtree_oset.c: New file.
49132         * MODULES.html.sh (Container data structures): New section.
49133
49134 2006-07-17  Bruno Haible  <bruno@clisp.org>
49135
49136         * m4/gl_list.m4: New file.
49137
49138 2006-07-17  Bruno Haible  <bruno@clisp.org>
49139
49140         * lib/gl_list.h: New file.
49141         * lib/gl_list.c: New file.
49142         * lib/gl_array_list.h: New file.
49143         * lib/gl_array_list.c: New file.
49144         * lib/gl_carray_list.h: New file.
49145         * lib/gl_carray_list.c: New file.
49146         * lib/gl_linked_list.h: New file.
49147         * lib/gl_linked_list.c: New file.
49148         * lib/gl_anylinked_list1.h: New file.
49149         * lib/gl_anylinked_list2.h: New file.
49150         * lib/gl_avltree_list.h: New file.
49151         * lib/gl_avltree_list.c: New file.
49152         * lib/gl_anyavltree_list1.h: New file.
49153         * lib/gl_anyavltree_list2.h: New file.
49154         * lib/gl_rbtree_list.h: New file.
49155         * lib/gl_rbtree_list.c: New file.
49156         * lib/gl_anyrbtree_list1.h: New file.
49157         * lib/gl_anyrbtree_list2.h: New file.
49158         * lib/gl_anytree_list1.h: New file.
49159         * lib/gl_anytree_list2.h: New file.
49160         * lib/gl_linkedhash_list.h: New file.
49161         * lib/gl_linkedhash_list.c: New file.
49162         * lib/gl_anyhash_list1.h: New file.
49163         * lib/gl_anyhash_list2.h: New file.
49164         * lib/gl_avltreehash_list.h: New file.
49165         * lib/gl_avltreehash_list.c: New file.
49166         * lib/gl_rbtreehash_list.h: New file.
49167         * lib/gl_rbtreehash_list.c: New file.
49168         * lib/gl_anytreehash_list1.h: New file.
49169         * lib/gl_anytreehash_list2.h: New file.
49170
49171         * lib/gl_oset.h: New file.
49172         * lib/gl_oset.c: New file.
49173         * lib/gl_array_oset.h: New file.
49174         * lib/gl_array_oset.c: New file.
49175         * lib/gl_avltree_oset.h: New file.
49176         * lib/gl_avltree_oset.c: New file.
49177         * lib/gl_rbtree_oset.h: New file.
49178         * lib/gl_rbtree_oset.c: New file.
49179         * lib/gl_anytree_oset.h: New file.
49180
49181 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49182
49183         * m4/mkancesdirs.m4: New file.
49184         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
49185         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
49186         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
49187         it.
49188
49189 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49190
49191         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
49192         * lib/mkancesdirs.h: New files.
49193         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
49194         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
49195         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
49196         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
49197         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
49198         callers changed.  Revamp internals significantly, by not
49199         attempting to create directories that are temporarily more
49200         permissive than the final results.  Do not attempt to use
49201         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
49202         This removes some race conditions, fixes some bugs, and simplifies
49203         things.  Use new dirchownmod function to do owner and mode changes.
49204         * lib/mkdir-p.h: Likewise.
49205         * lib/modechange.c (octal_to_mode): New function.
49206         (struct mode_change): New member mentioned.
49207         (make_node_op_equals): New arg mentioned.  All callers changed.
49208         (mode_compile): Keep track of which mode bits the user has explicitly
49209         mentioned.
49210         (mode_adjust): New arg DIR, so that we implement the X op correctly.
49211         New arg PMODE_BITS, to keep track of which mode bits the user
49212         mentioned; it treats S_ISUID and S_ISGID speciall.
49213         All callers changed.
49214         * lib/modechange.h: Likewise.
49215
49216 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49217
49218         * MODULES.html.sh: Add mkancestors.
49219         * modules/mkancesdirs: New module.
49220         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
49221         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
49222         The chdir-safer and afs files are now orphans; I'll remove them
49223         unless someone speaks up.
49224         Add lib/dirchownmod.c, lib/dirchownmod.h.
49225         (Depends-on): Remove alloca, chown, save-cwd, dirname.
49226         Add lchown, mkancesdirs.
49227         (Maintainer): Add self.
49228
49229 2006-07-15  Karl Berry  <karl@gnu.org>
49230
49231         * gnulib-tool: help message wording/arrangement.
49232
49233 2006-07-14  Simon Josefsson  <jas@extundo.com>
49234
49235         * doc/gnulib.texi (Libtool and Windows): New section.
49236
49237 2006-07-12  Simon Josefsson  <jas@extundo.com>
49238
49239         * modules/gendocs (License): Fix license, approved by Karl.
49240
49241 2006-07-12  Eric Blake  <ebb9@byu.net>
49242
49243         * MODULES.html.sh: Add gendocs.
49244
49245 2006-07-11  Eric Blake  <ebb9@byu.net>
49246
49247         * modules/fdl: New module, to install doc/fdl.texi.
49248         * MODULES.html.sh: Add new section for documentation modules.
49249         * gnulib-tool: Avoid space-tab.
49250         (--doc-base): New option, to manage files from doc.
49251
49252 2006-07-11  Eric Blake  <ebb9@byu.net>
49253
49254         * m4/absolute-header.m4: Fix comments to match recent change.
49255
49256 2006-07-11  Eric Blake  <ebb9@byu.net>
49257
49258         * gnulib-tool: List --doc-base before --tests-base.
49259
49260 2006-07-11  Derek R. Price  <derek@ximbiot.com>
49261
49262         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
49263
49264 2006-07-11  Bruno Haible  <bruno@clisp.org>
49265
49266         * README: Mention where to put documentation.
49267
49268 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49269
49270         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
49271
49272 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49273
49274         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
49275         to stdint.m4.
49276
49277 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49278
49279         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
49280         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
49281         "no/such/file/stdint.h" when there is no such file, so that
49282         the resulting C code can be parsed by dodgy compilers.
49283         Problems reported by Bob Proulx.
49284
49285 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49286
49287         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
49288         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49289         macros into the GNU _D_EXACT_NAMLEN.
49290         * lib/savedir.c:  Likewise.
49291         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
49292
49293 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49294         and Paul Eggert  <eggert@cs.ucla.edu>
49295
49296         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
49297         * m4/savedir.m4:
49298         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49299         macros into the GNU _D_EXACT_NAMLEN.
49300
49301 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49302
49303         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
49304         around the absolute name, to work around a problem with the HP-UX
49305         11.23 native C compiler, reported by Bob Proulx.
49306
49307 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49308
49309         * doc/maintain.texi, make-stds.texi: Sync from
49310         <http://savannah.gnu.org/projects/gnustandards>.
49311
49312 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49313
49314         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
49315
49316 2006-07-09  Jim Meyering  <jim@meyering.net>
49317
49318         * m4/glob.m4: Remove a doubled word in a comment.
49319
49320 2006-07-09  Jim Meyering  <jim@meyering.net>
49321
49322         * lib/argp-pv.c: Remove a doubled word in a comment.
49323         * lib/check-version.c (check_version): Likewise.
49324         * lib/javacomp.c (compile_java_class): Likewise.
49325
49326 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
49329         for the benefit of people using Autoconf 2.60.  If you want to
49330         support older Autoconf versions you can copy m4/onceonly_2_57.m4
49331         (or m4/onceonly.m4, if pre-2.57) manually.
49332
49333 2006-07-08  Jim Meyering  <jim@meyering.net>
49334
49335         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
49336         comment.
49337         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
49338         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
49339         comment.
49340
49341 2006-07-08  Jim Meyering  <jim@meyering.net>
49342
49343         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
49344
49345 2006-07-07  Simon Josefsson  <jas@extundo.com>
49346
49347         * tests/test-crc.c: Change expected crc value, the test vector
49348         were probably computed using the old broken crc.c?
49349
49350 2006-07-06  Simon Josefsson  <jas@extundo.com>
49351
49352         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
49353         now the canonical place for the M4 file).
49354
49355         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
49356         from the sys_socket dependency now.
49357
49358         * modules/inet_pton (Files): Ditto.
49359
49360         * modules/inet_ntop (Files): Ditto.
49361
49362 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49363
49364         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
49365         not gl_PREREQ_GETUSERSHELL.
49366
49367 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49368
49369         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
49370         with only one argument, for Autoconf 2.60.
49371         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
49372         expand to nothing, so add a shell command to avoid syntax error.
49373         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49374
49375 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49376
49377         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
49378
49379 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49380
49381         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
49382         no longer needed.  Check for isblank decl.
49383         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
49384         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
49385         of existence.
49386
49387 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49388
49389         * lib/getloadavg.c: Use __VMS, not VMS.
49390         * lib/getopt.c: Likewise.
49391         * lib/getpagesize.h: Likewise.
49392         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
49393         and probably does not work.
49394
49395 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49396
49397         * lib/.cppi-disable: Add wcwidth.
49398         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
49399         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
49400         (ISGRAPH): Remove.  All uses changed to isgraph.
49401         (FOLD) [!defined _LIBC]: Remove special case.
49402         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
49403         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
49404         HAVE_ISBLANK.
49405         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
49406         case.
49407
49408 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49409
49410         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
49411         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
49412         brackets.  Other minor changes to suppress some compiler
49413         warnings.
49414
49415 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49416         and Paul Eggert  <eggert@cs.ucla.edu>
49417
49418         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
49419         of invoking obsolescent AC_HEADER_DIRENT macro.
49420         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
49421         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
49422         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49423         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49424         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
49425         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49426         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
49427         * m4/readdir.m4: Remove; no longer needed.
49428
49429 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49430         and Paul Eggert  <eggert@cs.ucla.edu>
49431
49432         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
49433         Don't worry about this obsolete case any more.
49434         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
49435         directories.
49436         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
49437         worry about this obsolete case any more.
49438         * lib/fts.c: Likewise.
49439         * lib/getcwd.c: Likewise.
49440         * lib/glob.h: Likewise.
49441         * lib/savedir.c: Likewise.
49442
49443 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49444
49445         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
49446         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
49447         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
49448         needed.
49449         All uses removed.
49450         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49451         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49452         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
49453         needed.
49454         * m4/getdate.m4 (gl_GETDATE): Likewise.
49455         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49456         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49457         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49458         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49459         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49460         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49461         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
49462         needed.
49463
49464 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49465
49466         * lib/memcasecmp.c: Include <limits.h>.
49467         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
49468         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
49469         Don't assume isdigit succeeds only on '0' through '9'.
49470
49471 2006-07-05  Eric Blake  <ebb9@byu.net>
49472
49473         * modules/getaddrinfo (Depends-on): Add snprintf.
49474
49475 2006-07-05  Eric Blake  <ebb9@byu.net>
49476
49477         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
49478         to avoid 'header present but could not be compiled' on cygwin.
49479
49480 2006-07-05  Eric Blake  <ebb9@byu.net>
49481
49482         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
49483         missing from netdb.h.
49484         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
49485
49486 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49487
49488         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
49489         no longer needed.
49490         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
49491         * m4/getdate.m4 (gl_GETDATE): Likewise.
49492         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49493         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49494         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49495         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49496         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49497
49498 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49499
49500         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
49501         All uses of is_space replaced by isspace.
49502         * lib/exit.h: Don't talk about STDC_HEADERS.
49503         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
49504         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
49505         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
49506         replaced by isprint etc.
49507         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
49508         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49509         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
49510         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
49511         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
49512         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49513
49514 2006-07-05  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
49517         the function exists, before testing against AIX.
49518         Reported by Martin Lambers <marlam@marlam.de>.
49519
49520 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49521
49522         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
49523         From Mark D. Baushke.
49524
49525 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49526
49527         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
49528         to the absolute name, not just one, to bypass Sun C 5.8's
49529         "warning: #include of /usr/include/... may be non-portable".
49530
49531 2006-07-04  Eric Blake  <ebb9@byu.net>
49532
49533         * modules/dirname-tests: New test module.
49534         * tests/test-dirname.c: New file, replacing dirname.c
49535         TEST_DIRNAME section that was recently deleted.
49536
49537 2006-07-04  Bruno Haible  <bruno@clisp.org>
49538
49539         Assume ANSI C header files and <ctype.h> functions.
49540         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49541         (mbsnwidth): Use isprint, iscntrl instead.
49542
49543 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49544
49545         Merge from coreutils.
49546         * MODULES.html.sh: Add xstrtold.
49547         * modules/xstrtold: New file.
49548         * modules/cycle-check (Files): Add lib/same-inode.h.
49549         * modules/dirname (Files): Add m4/double-slash-root.m4.
49550         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49551         * modules/mkdir-p (Files): Add lib/same-inode.h.
49552         * modules/same (Files): Add lib/same-inode.h.
49553
49554 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49555
49556         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49557         This is to keep the terminology clean; POSIX talks about
49558         "absolute pathnames", not "full pathnames", but the GNU
49559         Coding Standards say to use "path" for something else;
49560         so use "absolute" to keep both sides happy.
49561         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49562         Set gl_absolute_header, not gl_full_header_path.
49563         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49564         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49565         All uses changed.
49566
49567         Merge from coreutils.
49568
49569         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49570
49571         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49572         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49573         want to require the building of c-strtod.o.
49574         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49575         needs -lm directly.
49576         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49577
49578         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49579
49580         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49581         --as-needed option if available.  Problem reported by Albert Chin in
49582         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49583         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49584         cc merely issues a bunch of annoying warnings for --as-needed
49585         (this problem was reported by Bob Proulx).  Also, try linking with
49586         -lm to detect a bug in binutils 2.16 (this problem was reported
49587         by Ralf Wildenhues).
49588
49589         2006-06-18  Jim Meyering  <jim@meyering.net>
49590
49591         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49592         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49593         macro.
49594         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49595         also check for glibc-2.4's abort-inducing bug.
49596
49597         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49598         Low-probability clean-up should be to use rmdir to get rid of
49599         the just-created directory, not unlink.
49600
49601         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49602         configure fail, and request a bug report to inform us about it.
49603         Add a comment that, barring reports to the contrary, in 2007 we'll
49604         assume ftruncate is universally available.
49605
49606         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49607
49608         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49609
49610         2006-03-12  Jim Meyering  <jim@meyering.net>
49611
49612         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49613         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49614         * m4/same.m4 (gl_SAME): Likewise.
49615         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49616
49617         2006-03-11  Eric Blake  <ebb9@byu.net>
49618
49619         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49620         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49621         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49622         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49623
49624 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49625
49626         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49627         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49628         reported by Mark D. Baushke, one in
49629         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49630
49631         Merge from coreutils.
49632
49633         * lib/.cppi-disable: Add stdint_.h.
49634         * lib/.cvsignore: Add stdint.h.
49635
49636         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49637
49638         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49639         both double and long double versions.
49640         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49641         * lib/xstrtold.c: New file.
49642         * lib/xstrtod.h (xstrtold): New decl.
49643
49644         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49645
49646         * lib/filemode.c (setst): Remove.
49647         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49648         (arguably) clearer, and the generated code is a bit smaller on my
49649         Debian GNU/Linux stable x86 host.
49650
49651         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49652
49653         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49654         Assume that filemode.h includes sys/types.h and sys/stat.h.
49655         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49656         (ftypelet): Reorder to put common cases first, for efficiency.
49657         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49658         to do 'M'.
49659         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49660         of 10, for compatibility with FreeBSD.  All callers changed.
49661         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49662         types that can't be deduced solely from st_mode.  First arg is now a
49663         const pointer.
49664         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49665         (strmode): Renamed from mode_string.
49666         (filemodestring): New decl.
49667         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49668         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49669         needed.
49670         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49671
49672         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49673
49674         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49675         fsusage.h now does that.  Include fsusage.h first, to test interface.
49676         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49677         at most one method (the old code could have generated decls that
49678         didn't conform to C89, not that this was ever exercised).
49679         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49680
49681         2006-03-19  Jim Meyering  <jim@meyering.net>
49682
49683         Work even in a chroot where d_ino values for entries in "/"
49684         don't match the stat.st_ino values for the same names.
49685         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49686         number, iterate through all entries again, using lstat instead.
49687         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49688         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49689
49690         * lib/getcwd.c (__getcwd): Clarify a comment.
49691         Use memcpy in place of a call to strcpy.
49692
49693         2006-03-12  Jim Meyering  <jim@meyering.net>
49694
49695         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49696         matches that of the current directory (which we're about to chdir ".."
49697         out of), then save the dev-ino of the parent, instead.
49698
49699         * lib/same-inode.h (SAME_INODE): New file/macro.
49700         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49701         Include "same-inode.h", instead.
49702         * lib/same.c: Likewise.
49703         * lib/cycle-check.h: Include "same-inode.h".
49704         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49705         * lib/cycle-check.c (SAME_INODE): Remove definition.
49706         * lib/root-dev-ino.h: Include "same-inode.h".
49707
49708         2006-03-11  Eric Blake  <ebb9@byu.net>
49709
49710         * lib/same.c (same_name): s/base_name/last_component/
49711         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49712         * lib/filenamecat.c (file_name_concat): Likewise.
49713
49714         2006-03-11  Eric Blake  <ebb9@byu.net>,
49715                     Paul Eggert  <eggert@cs.ucla.edu>
49716
49717         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49718         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49719         drive prefix.
49720         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
49721         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
49722         (last_component): New method.
49723         * lib/dirname.c (dir_len): Determine when drive letters need a
49724         subsequent slash.  Preserve // when it is special.
49725         (dir_name): Don't append dot when drive letter is absolute.
49726         [TEST_DIRNAME]: Move into a full-blown gnulib test.
49727         * lib/basename.c (base_name): New semantics - malloc the result.
49728         Preserve // when it is special.  Preserve relative files that look
49729         like drive letters.
49730         (base_len): Preserve // when it is special.
49731         (last_component): New method, similar to old base_name semantics.
49732         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
49733         base_name.  Strip redundant slashes from ///.
49734
49735 2006-07-03  Jim Meyering  <jim@meyering.net>
49736
49737         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
49738         macro is used before the first cycle_check call.
49739
49740 2006-07-03  Eric Blake  <ebb9@byu.net>
49741
49742         * modules/dirname (Depends-on): Add xstrndup.
49743
49744 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49745
49746         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
49747         test cases, so that config.log is a bit easier to follow.
49748
49749 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49750
49751         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
49752         both are 64 bits, since this seems to be the tradition, and this
49753         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
49754         we ever run into a host that prefers long long to long in this
49755         case, we'll need another configure-time test.  Problem reported by
49756         Jim Meyering.
49757
49758 2006-07-02  Eric Blake  <ebb9@byu.net>
49759
49760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
49761
49762 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49763
49764         * modules/inttypes (Depends-on): No longer depends on stdint.
49765         * modules/stdint (Description): Say more about assumptions.
49766         Say that the fast types might differ.  Say macros are used.
49767         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
49768         (Makefile.am): Revise list of substituted symbols to match
49769         new stdint.m4.
49770         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
49771         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
49772         * tests/test-stdint.c (verify_same_types)
49773         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
49774         the code conforms to C99/C89.
49775         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
49776         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
49777
49778 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49779
49780         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
49781         but fix a bug, by requiring at least 64 bits.
49782         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49783         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
49784         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
49785         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
49786
49787         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
49788         changes.  Make 2.59 a prerequisite.  Check and substitute for
49789         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
49790         inttypes.h.  Do not use special include files; just use the
49791         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
49792         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
49793         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
49794         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
49795         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
49796         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
49797         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
49798         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
49799         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
49800         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
49801         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
49802         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
49803         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
49804         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
49805         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
49806         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
49807         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
49808         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
49809         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
49810         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
49811         WINT_MAX.  Check for C99 conformance more strictly, by detecting
49812         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
49813         not check for things that C99 does not require, e.g., int8_t.  If
49814         a test isn't needed unless <stdint.h> isn't working, and is
49815         unlikely to be needed for any other reason, then don't do it
49816         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
49817         size_t, since we assume C89 freestanding at least.  Do not check
49818         for sig_atomic_t, wchar_t, or wint_t, since the code now does
49819         the right thing even if the types are not defined.  Instead use:
49820         (gl_STDINT_TYPE_PROPERTIES): New macro.
49821         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
49822         testing whether <sys/types.h> clashes, as Autoconf does this for
49823         us now.  All uses removed.
49824         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
49825         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
49826         (gl_CHECK_TYPE_SAME):
49827         Remove; no longer needed.
49828         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
49829         exists, since we'll return 0 anyway in that case.
49830         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
49831
49832 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49833
49834         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
49835         possible collision with system files.
49836         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
49837         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
49838         WCHAR_MIN and WCHAR_MAX in this case.
49839         (<stddef.h>): Do not include; no longer needed.
49840         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
49841         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
49842         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
49843         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
49844         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
49845         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
49846         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
49847         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
49848         !defined(__c99))]: Include in this case too, since it's harmless
49849         now.
49850         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
49851         dangerous to do so.
49852         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
49853         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
49854         (_STDINT_MIN, _STDINT_MAX): New macros.
49855         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
49856         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
49857         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
49858         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
49859         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
49860         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
49861         macros, not typedefs; this simplifies things quite a bit.
49862         Use long int for all types narrower than int64_t.
49863         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
49864         Define in terms of long long int or int64_t or long int,
49865         not int64_t or int32_t.  This saves some compile-time testing.
49866         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
49867         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
49868         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
49869         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
49870         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
49871         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
49872         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
49873         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
49874         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
49875         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
49876         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49877         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49878         undef any previous version and define our own version, for
49879         simplicity and consistency with the new macros for types.
49880         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49881         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49882         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
49883         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
49884         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
49885         @WINT_T_SUFFIX@ to keep things simple here.
49886         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
49887         Simplify by assuming typical 8/16/32/64 host, since we're
49888         already doing that elsewhere anyway.
49889         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
49890         and assume long long int is 64 bits if available.  This
49891         speeds up 'configure'.
49892
49893 2006-07-01  Eric Blake  <ebb9@byu.net>
49894
49895         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
49896         Reported by Andreas Buening.
49897
49898 2006-07-01  Eric Blake  <ebb9@byu.net>
49899
49900         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
49901
49902 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49903
49904         * lib/getaddrinfo.c: fixed typo
49905
49906 2006-06-29  Jim Meyering  <jim@meyering.net>
49907
49908         * modules/strftime (Maintainer): Add my name, since with the
49909         FPRINTFTIME changes strftime.c has forked from glibc.
49910
49911 2006-06-29  Eric Blake  <ebb9@byu.net>
49912
49913         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
49914
49915 2006-06-29  Eric Blake  <ebb9@byu.net>
49916
49917         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
49918
49919 2006-06-29  Eric Blake  <ebb9@byu.net>
49920
49921         * lib/stat_.h: New file.
49922
49923 2006-06-29  Eric Blake  <ebb9@byu.net>
49924
49925         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
49926         unused static function.
49927
49928 2006-06-29  Eric Blake  <ebb9@byu.net>
49929
49930         * doc/functions.texi (Function Portability): Document missing lstat
49931         on mingw.
49932
49933 2006-06-29  Eric Blake  <ebb9@byu.net>
49934
49935         * MODULES.html.sh: Add sys_stat.
49936         * modules/sys_stat: New module.
49937         * modules/mkstemp (Depends-on): Add sys_stat.
49938
49939 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49940
49941         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
49942
49943 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49944
49945         * m4/c-bs-a.m4: Removed.
49946
49947 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49948
49949         * lib/strftime.c: Assume strftime() exists.
49950
49951 2006-06-29  Derek Price  <derek@ximbiot.com>
49952
49953         * modules/c-bs-a: Removed - \a is C89.
49954         * MODULES.html.sh: Remove c-bs-a.
49955
49956 2006-06-29  Bruno Haible  <bruno@clisp.org>
49957
49958         * modules/wcwidth (License): Change to LGPL.
49959
49960 2006-06-28  Simon Josefsson  <jas@extundo.com>
49961
49962         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
49963         on _WIN32.
49964
49965         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
49966         getnameinfo.
49967
49968 2006-06-28  Simon Josefsson  <jas@extundo.com>
49969
49970         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
49971
49972 2006-06-28  Simon Josefsson  <jas@extundo.com>
49973
49974         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
49975         functions there.  It will succeed on Windows XP, but on Windows
49976         2000 and (presumably) earlier, it will fail, and use the internal
49977         re-implementation.
49978         (use_win32_p): New function.
49979         (getaddrinfo): Use strtoul on servname, to support numeric ports.
49980         Support AI_NUMERICSERV to disable getservbyname.
49981         (getnameinfo): New function, only supports
49982         NI_NUMERICHOST|NI_NUMERICSERV for now.
49983
49984         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
49985         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
49986         getnameinfo.
49987
49988 2006-06-28  Eric Blake  <ebb9@byu.net>
49989
49990         * modules/wcwidth: New file.
49991         * modules/mbchar (Depends-on): Add wcwidth.
49992         * modules/mbswidth (Depends-on): Add wcwidth.
49993         * MODULES.html.sh: Add wcwidth.
49994
49995 2006-06-28  Eric Blake  <ebb9@byu.net>
49996
49997         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
49998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
49999
50000 2006-06-28  Eric Blake  <ebb9@byu.net>
50001
50002         * lib/xvasprintf.h: Fix comments.
50003
50004 2006-06-28  Eric Blake  <ebb9@byu.net>
50005
50006         * lib/mbchar.h (wcwidth): Include wcwidth.h.
50007         * lib/mbswidth.c (wcwidth): Move from here...
50008         * lib/wcwidth.h: ...to this new file.
50009
50010 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50011
50012         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
50013
50014         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
50015         it's obsolete.
50016         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
50017
50018 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50019
50020         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
50021         Autoconf 2.60 says this stuff was obsolete.
50022
50023 2006-06-28  Bruno Haible  <bruno@clisp.org>
50024
50025         * modules/wcwidth (Files): Add m4/wchar_t.m4.
50026
50027 2006-06-28  Bruno Haible  <bruno@clisp.org>
50028
50029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
50030         gt_TYPE_WCHAR_T.
50031
50032 2006-06-28  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
50035         declaration for wcwidth.
50036         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
50037
50038 2006-06-28  Bruno Haible  <bruno@clisp.org>
50039
50040         * lib/mkdtemp.c [MINGW]: Include <io.h>.
50041         (mkdir): Define using _mkdir.
50042
50043 2006-06-28  Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/getaddrinfo.h: Fix POSIX URL.
50046         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
50047         _WIN32.
50048         (use_win32_p): Make static.
50049         (getaddrinfo): Reject service name if it is empty or does not consist
50050         solely of decimal digits, or if its value is > 65535.
50051         (getnameinfo): Remove useless casts.
50052
50053 2006-06-27  Simon Josefsson  <jas@extundo.com>
50054
50055         * modules/sys_select: New file, suggested by Bruno Haible, Paul
50056         Eggert and Martin Lambers.
50057
50058 2006-06-27  Simon Josefsson  <jas@extundo.com>
50059
50060         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
50061         Eggert and Martin Lambers.
50062
50063 2006-06-27  Bruno Haible  <bruno@clisp.org>
50064
50065         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
50066         result to 0, not to empty.
50067         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
50068
50069 2006-06-27  Bruno Haible  <bruno@clisp.org>
50070
50071         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
50072
50073 2006-06-26  Simon Josefsson  <jas@extundo.com>
50074
50075         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
50076         present.
50077
50078 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
50079
50080         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
50081         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
50082         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
50083
50084 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
50085
50086         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
50087
50088 2006-06-26  Bruno Haible  <bruno@clisp.org>
50089
50090         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
50091
50092 2006-06-26  Bruno Haible  <bruno@clisp.org>
50093
50094         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
50095
50096 2006-06-26  Bruno Haible  <bruno@clisp.org>
50097
50098         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
50099         SGI C compiler in pre-C99 mode.
50100         Suggested by Mark D. Baushke and Larry Jones.
50101
50102 2006-06-26  Bruno Haible  <bruno@clisp.org>
50103
50104         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
50105         WCHAR_MAX.
50106         Reported by Mark D. Baushke and Larry Jones.
50107
50108 2006-06-26  Bruno Haible  <bruno@clisp.org>
50109
50110         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
50111         in pre-C99 mode.
50112         Suggested by Mark D. Baushke and Larry Jones.
50113
50114 2006-06-23  Simon Josefsson  <jas@extundo.com>
50115             Bruno Haible  <bruno@clisp.org>
50116
50117         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
50118         Emit mostlyclean-local rule.
50119         (func_emit_tests_Makefile_am): Likewise.
50120         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
50121
50122 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
50123
50124         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
50125
50126 2006-06-23  Bruno Haible  <bruno@clisp.org>
50127
50128         * tests/test-stdint.c: Update to match ISO C 99 Technical
50129         Corrigendum 1.
50130
50131 2006-06-23  Bruno Haible  <bruno@clisp.org>
50132
50133         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
50134
50135 2006-06-23  Bruno Haible  <bruno@clisp.org>
50136
50137         * lib/stdint_.h: Treat IRIX like OpenBSD.
50138
50139 2006-06-23  Bruno Haible  <bruno@clisp.org>
50140
50141         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
50142         ISO C 99 Technical Corrigendum 1.
50143
50144 2006-06-22  Simon Josefsson  <jas@extundo.com>
50145
50146         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
50147         MinGW.
50148
50149 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50150
50151         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
50152         needed.  Some compiler complained about some of them.  Problem reported
50153         by Larry Jones in
50154         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
50155
50156 2006-06-21  Simon Josefsson  <jas@extundo.com>
50157
50158         * tests/test-getaddrinfo.c: New file.
50159
50160         * modules/getaddrinfo-tests: New file.
50161
50162         * MODULES.html.sh: Add inet_pton.
50163
50164         * modules/inet_pton: New file.
50165
50166 2006-06-21  Simon Josefsson  <jas@extundo.com>
50167
50168         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
50169         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
50170         of using the (limited) gnulib implementation on Windows XP.
50171
50172         * m4/inet_pton.m4: New file.
50173
50174 2006-06-21  Simon Josefsson  <jas@extundo.com>
50175
50176         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
50177         variable.
50178
50179         * lib/socket_.h: Don't define WINVER.
50180
50181         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
50182         slightly modified to work in gnulib.
50183
50184 2006-06-21  Simon Josefsson  <jas@extundo.com>
50185
50186         * doc/gnulib.texi (Windows sockets): Add.
50187
50188 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50189
50190         * lib/read-file.c (fread_file): Start with buffer allocation of
50191         0 bytes rather than 1 byte; this simplifies the code.
50192         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
50193         code to free buffer and save/restore errno.
50194         (internal_read_file): Remove unused local.
50195
50196 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50197
50198         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
50199         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
50200         Problem reported by Denis Excoffier in
50201         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
50202
50203 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50204
50205         * modules/sys_socket, modules/socklen: Include sys/types since
50206         FreeBSD 4.x's sys/socket.h needs it.
50207
50208 2006-06-19  Simon Josefsson  <jas@extundo.com>
50209
50210         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
50211
50212 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50213
50214         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
50215
50216 2006-06-19  Bruno Haible  <bruno@clisp.org>
50217
50218         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
50219         and FULL_PATH_INTTYPES_H in angle brackets.
50220         Reported by Mark D. Baushke <mdb@gnu.org>.
50221
50222 2006-06-17  Eric Blake  <ebb9@byu.net>
50223
50224         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
50225         errno.
50226
50227 2006-06-17  Bruno Haible  <bruno@clisp.org>
50228
50229         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
50230         <sys/inttypes.h>.
50231
50232 2006-06-17  Bruno Haible  <bruno@clisp.org>
50233
50234         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
50235         whether errno is declared. Assume <errno.h> declares errno.
50236
50237 2006-06-17  Bruno Haible  <bruno@clisp.org>
50238
50239         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
50240
50241 2006-06-17  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
50244         problem on Solaris 2.5.1.
50245
50246 2006-06-16  Eric Blake  <ebb9@byu.net>
50247
50248         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
50249         * lib/unicodeio.c [!defined errno]: Likewise.
50250         * lib/strtol.c [!defined errno]: Likewise.
50251         * lib/strtod.c [!defined errno]: Likewise.
50252
50253 2006-06-15  Eric Blake  <ebb9@byu.net>
50254
50255         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
50256
50257 2006-06-15  Eric Blake  <ebb9@byu.net>
50258
50259         * config/srclist.txt (ssize_t.m4): Lose sync.
50260
50261 2006-06-15  Bruno Haible  <bruno@clisp.org>
50262
50263         * modules/stdint (Files): Include m4/full-header-path.m4,
50264         m4/size_max.m4, m4/wchar_t.m4.
50265         (Makefile.am): Many more substitutions.
50266         * modules/stdint-tests: New file.
50267         * tests/test-stdint.c: New file.
50268
50269 2006-06-15  Bruno Haible  <bruno@clisp.org>
50270
50271         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
50272         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
50273         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
50274         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
50275         gl_CHECK_TYPE_SAME): New macros.
50276
50277 2006-06-15  Bruno Haible  <bruno@clisp.org>
50278
50279         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
50280
50281 2006-06-15  Bruno Haible  <bruno@clisp.org>
50282
50283         * lib/stdint_.h: Rewritten to be fully auto-configured.
50284         Fixes bug on HP-UX/IA64.
50285
50286 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
50287
50288         * lib/getdate.y (__attribute__): Don't define if already defined.
50289         Problem reported by Larry Jones.
50290         * lib/utimens.c (__attribute__): Likewise.
50291
50292 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
50293
50294         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
50295         reported by Andreas Schwab.
50296
50297 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50298             Bruno Haible  <bruno@clisp.org>
50299
50300         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
50301         check for the declaration of strnlen and a run test that exposes the
50302         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
50303         rpl_strndup.
50304
50305 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50306             Bruno Haible  <bruno@clisp.org>
50307
50308         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
50309
50310 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50311
50312         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
50313         compile test, for Tru64 4.0D.
50314
50315 2006-05-28  Karl Berry  <karl@gnu.org>
50316
50317         * config/srclist.txt (printf-args.c): lose sync.
50318
50319 2006-05-26  Martin Lambers  <marlam@marlam.de>
50320
50321         * lib/getpass.c: Updates the test for the native W32 API, and adds
50322         missing includes, thus fixing compilation warnings.
50323
50324 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50325
50326         * lib/exclude.c (exclude_fnmatch): New function.
50327         (excluded_file_name): Call exclude_fnmatch.
50328         * lib/exclude.h (excluded_file_name): New prototype
50329
50330 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
50331
50332         * lib/tempname.c (small_open, large_open): New macros.
50333         (__open, __open64) [!_LIBC]: Remove.
50334         (__gen_tempname): Use small_open and large_open instead of __open
50335         and __open64.  This fixes a portability bug on HP-UX 11.11i
50336         reported by Simon Wing-Tang in
50337         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
50338
50339 2006-05-24  Bruno Haible  <bruno@clisp.org>
50340
50341         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
50342         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
50343         Reported by Thorsten Maerz <torte@netztorte.de> via
50344         Aaron Stone <aaron@serendipity.cx>.
50345
50346 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50347
50348         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
50349         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
50350         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
50351         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
50352         not really conditional on the cache.
50353         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
50354
50355 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50356
50357         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
50358         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
50359         (my_usleep): Don't mishandle maximum value.
50360
50361 2006-05-19  Jim Meyering  <jim@meyering.net>
50362
50363         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
50364
50365 2006-05-17  Bruno Haible  <bruno@clisp.org>
50366
50367         Cygwin portability.
50368         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
50369
50370 2006-05-17  Bruno Haible  <bruno@clisp.org>
50371
50372         * lib/stdint_.h: Fix recognition of Cygwin.
50373
50374 2006-05-15  Bruno Haible  <bruno@clisp.org>
50375
50376         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
50377         on libtool patch by Ralf Wildenhues.
50378
50379 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50380
50381         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
50382         test for C99 conformance; (bool) 0.5 is an integer constant
50383         expression, but (bool) -0.5 is not.  Problem reported by Fedor
50384         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
50385
50386 2006-05-11  Simon Josefsson  <jas@extundo.com>
50387
50388         * m4/xvasprintf.m4: Fix obvious typo.
50389
50390 2006-05-11  Jim Meyering  <jim@meyering.net>
50391
50392         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
50393         James Lemley.
50394
50395 2006-05-10  Simon Josefsson  <jas@extundo.com>
50396
50397         * lib/md4.c: Typo fix, update copyright years.
50398         (K1, K2): Don't use L because it turn computations into 64-bit on
50399         64-bit platforms.
50400
50401 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
50402
50403         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
50404         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
50405         unwanted sign propagation, e.g., on hosts with 64-bit int.
50406         There still are some problems with reeelly weird theoretical hosts
50407         (e.g., 33-bit int) but it's not worth worrying about now.
50408         * lib/sha1.c (rol): Likewise.
50409         (K1, K2, K3, K4): Remove unnecessary L suffix.
50410
50411 2006-05-10  Bruno Haible  <bruno@clisp.org>
50412
50413         * lib/des.c: Cast to avoid warnings.
50414
50415 2006-05-09  Bruno Haible  <bruno@clisp.org>
50416
50417         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
50418         (Depends-on): Depend also on xsize, stdarg.
50419         (configure.ac): Add gl_XVASPRINTF.
50420
50421 2006-05-09  Bruno Haible  <bruno@clisp.org>
50422
50423         * m4/xvasprintf.m4: New file.
50424
50425 2006-05-09  Bruno Haible  <bruno@clisp.org>
50426
50427         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
50428         (EOVERFLOW): Define fallback value.
50429         (xstrcat): New function.
50430         (xvasprintf): Recognize the special case of a string concatenation.
50431
50432 2006-05-08  Eric Blake  <ebb9@byu.net>
50433
50434         * gnulib-tool (func_version): Base copyright year on CVS date.
50435         (func_emit_copyright_notice): New function.
50436         (func_emit_lib_Makefile_am): Use it.
50437         (func_emit_tests_Makefile_am): Likewise.
50438         (func_import): Likewise.
50439
50440 2006-05-08  Bruno Haible  <bruno@clisp.org>
50441
50442         * modules/stdarg: New file.
50443         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
50444
50445 2006-05-08  Bruno Haible  <bruno@clisp.org>
50446
50447         * m4/stdarg.m4: New file, from GNU gettext.
50448
50449 2006-05-08  Bruno Haible  <bruno@clisp.org>
50450
50451         * config/srclist.txt (build-aux/config.rpath): different from latest
50452         release.
50453
50454 2006-05-08  Bruno Haible  <bruno@clisp.org>
50455
50456         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
50457
50458 2006-05-05  Jim Meyering  <jim@meyering.net>
50459
50460         * m4/warning.m4: New file, derived from bison's file by the same name.
50461
50462 2006-05-03  Bruno Haible  <bruno@clisp.org>
50463
50464         * lib/stdint_.h: Shorter URL.
50465         * lib/inttypes.h: Likewise.
50466
50467 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50468
50469         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
50470
50471 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50472
50473         * lib/verify.h: Document the internals better.  Most of this change
50474         was written by Bruno Haible.
50475
50476 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50477
50478         * doc/verify.texi: New file, partly based on a proposal by
50479         Bruno Haible.
50480
50481 2006-05-02  Bruno Haible  <bruno@clisp.org>
50482
50483         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
50484         test from here...
50485         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
50486
50487 2006-04-29  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
50490         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
50491
50492 2006-04-29  Bruno Haible  <bruno@clisp.org>
50493
50494         * gnulib-tool: Make --update option actually work.
50495
50496 2006-04-29  Bruno Haible  <bruno@clisp.org>
50497
50498         * doc/gcd.texi: New file.
50499         * doc/gnulib.texi: Include it.
50500
50501 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50502
50503         * lib/getdate.y (get_date): When adding relative date, start with the
50504         initial time, not with the result of the first mktime call.
50505
50506 2006-04-25  Bruno Haible  <bruno@clisp.org>
50507
50508         * gnulib-tool (func_import): Output the include directives in three
50509         blocks, sorted separately.
50510         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50511
50512 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50513
50514         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
50515         to define main with arguments, for C++.  Reported by Eric Blake.
50516         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50517         Prefer 'int main ()' to 'int main (void)', for C++.
50518         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
50520         for 'main', for C99 and C++.
50521
50522 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50523
50524         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
50525         Don't assume that exit status -1 is valid.
50526         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50527         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50528         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
50529         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
50530         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
50531         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50532         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50533         functions can be used without declaring them, or that you can
50534         exit with status -1.
50535         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50536
50537 2006-04-24  Karl Berry  <karl@gnu.org>
50538
50539         * config/srclist.txt (longdouble.m4): sync lost.
50540
50541 2006-04-24  Eric Blake  <ebb9@byu.net>
50542
50543         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50544
50545 2006-04-24  Bruno Haible  <bruno@clisp.org>
50546
50547         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50548         poll() implementation in AIX.
50549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50550
50551 2006-04-24  Bruno Haible  <bruno@clisp.org>
50552
50553         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50554         assigned exactly once.
50555
50556 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50557             Bruno Haible  <bruno@clisp.org>
50558
50559         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50560         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50561         for AM_CPPFLAGS.
50562
50563 2006-04-23  Bruno Haible  <bruno@clisp.org>
50564
50565         * modules/copy-file: Depend on unistd.
50566         * modules/execute: Likewise.
50567         * modules/fatal-signal: Likewise.
50568         * modules/findprog: Likewise.
50569         * modules/mkdtemp : Likewise.
50570         * modules/pipe: Likewise.
50571         * modules/wait-process: Likewise.
50572
50573 2006-04-23  Bruno Haible  <bruno@clisp.org>
50574
50575         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50576         condition was already detected.
50577         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50578
50579 2006-04-23  Bruno Haible  <bruno@clisp.org>
50580
50581         * lib/copy-file.c: Include <unistd.h> unconditionally.
50582         * lib/execute.c: Likewise.
50583         * lib/fatal-signal.c: Likewise.
50584         * lib/findprog.c: Likewise.
50585         * lib/mkdtemp.c: Likewise.
50586         * lib/pipe.h: Likewise.
50587         * lib/pipe.c: Likewise.
50588         * lib/wait-process.h: Likewise.
50589
50590 2006-04-23  Bruno Haible  <bruno@clisp.org>
50591
50592         * gnulib-tool (func_usage): Fix --import description. Document
50593         --update.
50594         (func_import): Create temporary file in a temporary directory, if
50595         --dry-run is specified. Silence errors from 'grep' when there are no
50596         m4 files in $m4dir.
50597         (func_create_testdir): Silence errors from 'grep' when there are no
50598         m4 files in $m4dir.
50599         Reported by Karl Berry <karl@freefriends.org>.
50600
50601 2006-04-20  Bruno Haible  <bruno@clisp.org>
50602
50603         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50604         one argument, so that the code will be portable to Autoconf 2.60.
50605         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50606         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50607         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50608
50609 2006-04-19  Derek Price  <derek@ximbiot.com>
50610             Eric Blake  <ebb9@byu.net>
50611
50612         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50613         rather than "/full/path.h".  Update comment to match.  Shorten &
50614         generalize m4_translit call via AS_TR_CPP.
50615
50616 2006-04-19  Derek Price  <derek@ximbiot.com>
50617             Eric Blake  <ebb9@byu.net>
50618
50619         * lib/inttypes.h: Correct grammar in comment.
50620
50621 2006-04-18  Derek Price  <derek@ximbiot.com>
50622             Paul Eggert  <eggert@cs.ucla.edu>
50623
50624         * modules/inttypes: New file.
50625         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50626
50627 2006-04-18  Derek Price  <derek@ximbiot.com>
50628             Paul Eggert  <eggert@cs.ucla.edu>
50629
50630         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50631         New files.
50632
50633 2006-04-18  Derek Price  <derek@ximbiot.com>
50634             Paul Eggert  <eggert@cs.ucla.edu>
50635
50636         * lib/inttypes.h: New file.
50637         * lib/strtoimax.c: Assume <inttypes.h>.
50638
50639 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50640
50641         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50642         isn't mounted.  Problem reported by Kir Kolyshkin.
50643
50644 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50645
50646         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50647         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50648         Derek R. Price.
50649         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50650         implementation.
50651
50652 2006-04-12  Eric Blake  <ebb9@byu.net>
50653
50654         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50655         is now done automatically by the corresponding Autoconf macro.
50656
50657 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50658
50659         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50660         time_r.h.
50661
50662 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50663
50664         Merge regex changes from libc, removing some of our
50665         POSIX-conformance changes that were rejected and redoing them in a
50666         less-intrusive way.
50667
50668         * lib/regcomp.c (re_compile_internal, init_dfa):
50669         Length arg is now size_t, not Idx.  All uses changed.
50670         (peek_token): Forward decl now says internal_function.
50671         (__re_error_msgid, __re_error_msgid_idx):
50672         Now static rather than extern with attribute_hidden.
50673         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50674         For some reason libc prefers K&R style defns for external functions.
50675         (regerror) [!defined _LIBC]: Likewise.
50676         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50677         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50678         (build_range_exp, build_collating_symbol):
50679         Use K&R-style defn.
50680         (re_compile_fastmap): Use '\0' to memset, not 0.
50681         (utf8_sb_map): Make the calculations more obvious.
50682         (init_dfa, parse_bracket_exp, build_charclass_op):
50683         Call calloc and cast result, as glibc does.
50684         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50685         (build_range_exp, build_collating_symbol):
50686         Now internal functions.
50687
50688         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50689
50690         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50691         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50692         Don't depend on VMS; depend on __VMS instead, for POSIX
50693         namespace cleanness.
50694         (regoff_t): Define to ssize_t, not long int.
50695
50696         Remove the REG_ macros named below.  Instead, make the old names
50697         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50698         __USE_GNU_REGEX.
50699         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50700         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50701         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50702         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50703         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50704         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50705         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50706         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50707         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50708         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50709         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50710         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50711         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50712         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50713         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50714         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50715         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50716         (REG_NREGS):
50717         Remove.  All uses replaced by the old RE_* names.
50718         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50719         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
50720         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
50721         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
50722         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
50723         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
50724         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
50725         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
50726         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
50727         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
50728         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
50729         Don't bother having these macros be independent of each others'
50730         values, since they no longer exist in the POSIX name space.
50731
50732         Rename the following member names back to their old names,
50733         unless !__USE_GNU_REGEX.  All uses changed back.
50734         (buffer): Renamed from re_buffer.
50735         (allocated): Renamed from re_allocated.
50736         (used): Renamed from re_used.
50737         (syntax): Renamed from re_syntax.
50738         (fastmap): Renamed from re_fastmap.
50739         (translate): Renamed from re_translate.
50740         (can_be_null): Renamed from re_can_be_null.
50741         (regs_allocated): Renamed from re_regs_allocated.
50742         (fastmap_accurate): Renamed from re_fastmap_accurate.
50743         (no_sub): Renamed from re_no_sub.
50744         (not_bol): Renamed from re_not_bol.
50745         (not_eol): Renamed from re_not_eol.
50746         (newline_anchor): Renamed from re_newline_anchor.
50747         (num_regs): Renamed from rm_num_regs.
50748         (start): Renamed from rm_start.
50749         (end): Renamed from rm_end.
50750
50751         (free_state): Move up a bit.
50752
50753         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
50754         #define to be empty.
50755         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
50756         when that is what is intended.
50757         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
50758         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
50759         (MAX): New macro.
50760         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
50761         All uses changed back to re_malloc, etc.  It's now the caller's
50762         responsibility to check for overflow; all callers changed.
50763         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
50764         (re_x2nrealloc): Remove.
50765         (free_state): Remove decl.
50766
50767         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
50768         (re_set_registers, re_exec):
50769         Use K&R-style defn.
50770
50771         2006-01-31  Roland McGrath  <roland@redhat.com>
50772
50773         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
50774         Reported by Mike Frysinger <vapier@gentoo.org>.
50775
50776         2006-01-15  Andreas Jaeger  <aj@suse.de>
50777
50778         [BZ #1950]
50779         * lib/regex_internal.c (re_string_reconstruct): Adjust for
50780         build_wcs_upper_buffer change.
50781         (build_wcs_upper_buffer): Change return type.
50782
50783         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
50784
50785         * lib/regex_internal.h: Include <stdint.h> if available.
50786
50787         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
50788
50789         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
50790
50791         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50792
50793         * lib/regcomp.c: Adjust for changed secondary hash function.
50794
50795         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
50796
50797         * lib/regex.h: Pretty printing.
50798         Clean up namespace a bit.
50799
50800         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
50801
50802         * lib/regexec.c (update_cur_sifted_state, check_arrival,
50803         check_arrival_add_next_nodes): Avoid using uninitialized variable.
50804
50805         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50806                     Ulrich Drepper  <drepper@redhat.com>
50807
50808         [BZ #1302]
50809         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
50810         changed.
50811         (bitset_word_t): Renamed from bitset_word.  All uses changed.
50812
50813         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
50814
50815         [BZ #281]
50816         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
50817         * lib/regcomp.c: Remove unnecessary uses of
50818         unsigned RE_TRANSLATE_TYPE.
50819         * lib/regex_internal.h: Likewise.
50820         * lib/regex_internal.c: Likewise.
50821         * lib/regexec.c: Likewise.
50822         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
50823
50824         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
50825
50826         * lib/regexec.c (find_recover_state): Remove unnecessary
50827         initialization.
50828         (transit_state_bkref): Make DFA a const pointer.
50829         (get_subexp): Likewise.
50830         (check_arrival): Likewise.
50831         (update_cur_sifted_state): Likewise.
50832         (re_search_internal): Likewise.
50833         (prune_impossible_nodes): Likewise.
50834         (acquire_init_state_context): Likewise.
50835         (proceed_next_node): Likewise.
50836         (set_regs): Likewise.
50837         (free_fail_stack_return): Likewise.
50838         (check_arrival_expand_ecl): Mark DFA parameter as const.
50839         (check_arrival_expand_ecl_sub): Likewise.
50840         (check_subexp_limits): Likewise.
50841         (sub_epsilon_src_nodes):  Likewise.
50842         (add_epsilon_src_nodes):  Likewise.
50843         (merge_state_array): Likewise.
50844         (update_regs): Likewise.
50845         (build_trtable): Likewise.
50846         (sift_states_backward): Mark MCTX parameter as const.
50847         (build_sifted_states): Likewise.
50848         (update_cur_sifted_state): Likewise.
50849         (sift_states_mkref): Likewise.
50850         (check_arrival_expand_ecl): Mark eclosure as const.
50851         (check_dst_limits_calc_pos_1): Likewise.
50852         * lib/regex_internal.h (re_match_context_t): Make dfa a const
50853         pointer.
50854
50855         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
50856
50857         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
50858         (transit_state_sb): Likewise.
50859         (transit_state_mb): Likewise.
50860         (sift_states_iter_mb): Likewise.
50861         (check_arrival_add_next_nodes): Likewise.
50862         (check_node_accept_bytes): Change first parameter to pointer-to-const.
50863         [_LIBC] (re_search_2_stub): Use mempcpy.
50864
50865         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
50866         mbrtowc for very simple UTF-8 case.
50867
50868         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
50869         a pointer-to-const.
50870         (re_acquire_state_context): Likewise.
50871         * lib/regex_internal.h: Adjust prototypes.
50872
50873         * lib/regex.c: Prevent using C++ compilers.
50874
50875         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
50876         (re_acquire_state_context): Likewise.
50877
50878 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50879
50880         * modules/regex (Depends-on): Add ssize_t.
50881
50882 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50883
50884         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
50885         translation table.
50886
50887 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50888
50889         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
50890
50891 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
50892             Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
50895         <sys/types.h> and <inttypes.h>.
50896
50897 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50898
50899         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
50900         `__error_t_defined', so argp.h will not typedef the former.
50901
50902 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50903
50904         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
50905         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
50906         glibc names.  Even if glibc is changed to conform to POSIX, the
50907         traditional names will be available anyway, since regex depends on
50908         the extensions module.  Also, fix a longstanding typo in the
50909         implementation of Spencer ERE test #75 from grep 2.3.  Problems
50910         reported by Emanuele Giaquinta.  Also, change sense of cached
50911         variable, so that the message makes sense.
50912
50913 2006-03-24  Simon Josefsson  <jas@extundo.com>
50914
50915         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
50916         including some doc fixes.
50917         (base64_encode_alloc): Fix +1 bug on allocation failures.
50918
50919 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50920
50921         * lib/base64.c (base64_encode): Do not read past end of array with
50922         unsanitized input on systems with CHAR_BIT > 8.
50923
50924 2006-03-24  Eric Blake  <ebb9@byu.net>
50925
50926         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
50927
50928 2006-03-22  Karl Berry  <karl@gnu.org>
50929
50930         * config/srclist.txt (*setenv.[ch]): get from coreutils.
50931         * config/srclistvars.sh (COREUTILS): new var.
50932
50933 2006-03-17  Jim Meyering  <jim@meyering.net>
50934
50935         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
50936         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
50937
50938 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50939
50940         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
50941         no longer needs it.  Instead, check that regoff_t is as least
50942         as wide as ptrdiff_t.
50943
50944         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
50945         so that our regex.h stays compatible with the installed regex.
50946         This is helpful for installers who configure --without-included-regex.
50947         Problem reported by Emanuele Giaquinta.
50948
50949 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50950
50951         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
50952         Typedef to long int, not to off_, as POSIX will likely change
50953         in that direction.
50954
50955 2006-03-15  Eric Blake  <ebb9@byu.net>
50956
50957         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
50958
50959 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50960
50961         * lib/argp-help.c (validate_uparams): Fix typo
50962         * lib/argp-parse.c (argp_default_options): Consistently begin help
50963         messages with a lowercase letter.
50964
50965 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
50966
50967         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
50968         overrun buffers and shouldn't be used (much as gets shouldn't be
50969         used).
50970         * lib/time_r.c (asctime_r, ctime_r): Likewise.
50971
50972 2006-03-08  Simon Josefsson  <jas@extundo.com>
50973
50974         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
50975         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50976
50977 2006-03-08  Simon Josefsson  <jas@extundo.com>
50978
50979         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
50980         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50981
50982 2006-03-08  Simon Josefsson  <jas@extundo.com>
50983
50984         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
50985         signal that configure disabled the device.
50986
50987 2006-03-08  Simon Josefsson  <jas@extundo.com>
50988
50989         * build-aux/maint.mk: Fix refresh-po, to handle no translated
50990         languages.
50991
50992 2006-03-07  Simon Josefsson  <jas@extundo.com>
50993
50994         * modules/getopt (Depends-on): Add unistd.
50995
50996         * modules/unistd: New file.
50997
50998 2006-03-07  Simon Josefsson  <jas@extundo.com>
50999
51000         * modules/gc-random: New file.
51001
51002 2006-03-07  Simon Josefsson  <jas@extundo.com>
51003
51004         * m4/unistd_h.m4: New file.
51005
51006 2006-03-07  Simon Josefsson  <jas@extundo.com>
51007
51008         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
51009         test to be side-effect free by storing the result in the cache
51010         variable gl_cv_lib_readline, and moving the assignment of
51011         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
51012         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51013
51014 2006-03-07  Simon Josefsson  <jas@extundo.com>
51015
51016         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
51017         error on missing devices (the functions will return an error).
51018
51019         * m4/gc.m4: Move random stuff to gc-random.m4
51020
51021 2006-03-07  Simon Josefsson  <jas@extundo.com>
51022
51023         * lib/unistd_.h: New file.
51024
51025 2006-03-07  Simon Josefsson  <jas@extundo.com>
51026
51027         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
51028
51029 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51030
51031         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
51032         Problem reported by Juan Manuel Guerrero.
51033
51034 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51035
51036         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
51037         the unistd module.
51038         * lib/getlogin_r.c: Likewise.
51039         * lib/getlogin_r.h: Likewise.
51040         * lib/glob.c: Likewise.
51041         * lib/pagealign_alloc.c: Likewise.
51042         * lib/unistd_.h: Remove; no longer needed.
51043
51044 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51045
51046         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51047         Add unistd.
51048         * modules/c-stack (Depends-on): Add unistd.
51049         * modules/getlogin_r: Likewise.
51050         * modules/glob: Likewise.
51051         * modules/pagealign_alloc: Likewise.
51052         * modules/unistd (Files): Remove lib/unistd_.h.
51053         (EXTRA_DIST): Remove.
51054         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
51055         need unistd_.h.
51056         (MOSTLYCLEANFILES): Remove unistd.h-t.
51057
51058 2006-03-03  Simon Josefsson  <jas@extundo.com>
51059
51060         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
51061
51062 2006-03-03  Simon Josefsson  <jas@extundo.com>
51063
51064         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
51065         libidn and bison.
51066
51067 2006-03-03  Simon Josefsson  <jas@extundo.com>
51068
51069         * build-aux/maint.mk: Add indent target.
51070
51071 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
51072
51073         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
51074         our replacement poll.h in any case, to avoid a differing
51075         declaration from a system header.  Seen on AIX.
51076
51077 2006-03-01  Simon Josefsson  <jas@extundo.com>
51078
51079         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
51080         <kasal@ucw.cz>.
51081
51082 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51083
51084         * modules/gettime (Depends-on): Add extensions module.
51085         * modules/nanosleep (Depends-on): Likewise.
51086         * modules/settime (Depends-on): Likewise.
51087
51088 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51089
51090         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
51091         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
51092         pedantically.
51093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51094         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
51095
51096         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
51097         not "==".  Reported by Ralf Wildenhues.
51098
51099 2006-03-01  Karl Berry  <karl@gnu.org>
51100
51101         * doc/Copyright/request-*: new files, synced from gnuorg.
51102
51103 2006-03-01  Karl Berry  <karl@gnu.org>
51104
51105         * config/srclist.txt (Copyright/*): new entries.
51106
51107 2006-02-28  Simon Josefsson  <jas@extundo.com>
51108
51109         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
51110
51111 2006-02-27  Simon Josefsson  <jas@extundo.com>
51112
51113         * lib/base64.h: Indent #define's.  From Jim Meyering
51114         <jim@meyering.net>.
51115
51116 2006-02-27  Jim Meyering  <jim@meyering.net>
51117
51118         Revert the change of 2006-02-24, so these files can continue
51119         to be sync'd from gettext.
51120         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
51121         of `config.h'.
51122
51123 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51124
51125         * modules/intprops: New file.
51126         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51127         Add intprops.
51128         * modules/getloadavg (Files): Remove lib/intprops.h.
51129         (Depends-on): Add intprops.
51130         * modules/human: Likewise.
51131         * modules/inttostr: Likewise.
51132         * modules/openat: Likewise.
51133         * modules/sig2str: Likewise.
51134         * modules/userspec: Likewise.
51135         * modules/utimecmp: Likewise.
51136         * modules/xnanosleep: Likewise.
51137         * modules/xstrtol: Likewise.
51138
51139 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
51140
51141         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
51142         * modules/lock-tests (TESTS): Use $(EXEEXT).
51143         * modules/tls-tests: Likewise.
51144         * modules/argp-tests: Likewise.
51145         (check_PROGRAMS): New var, replacing...
51146         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
51147
51148 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51149
51150         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
51151         `config.h'.
51152
51153 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51154
51155         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
51156
51157 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51158
51159         Sync from coreutils.
51160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
51161         gl_CHDIR_SAFER.
51162
51163 2006-02-22  Jim Meyering  <jim@meyering.net>
51164
51165         Sync from coreutils.
51166         * m4/chdir-safer.m4: New file.
51167
51168 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51169
51170         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
51171         AT_FDCWD exceeds INT_MAX.
51172         * lib/openat.h (AT_FDCWD): Likewise.
51173
51174 2006-02-17  Eric Blake  <address@hidden>
51175
51176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
51177
51178 2006-02-16  Simon Josefsson  <jas@extundo.com>
51179
51180         * modules/getaddrinfo (Depends-on): Add sys_socket.
51181
51182 2006-02-15  Simon Josefsson  <jas@extundo.com>
51183
51184         * build-aux/maint.mk: Add dsyntax-check rule.
51185
51186 2006-02-15  Eric Blake  <ebb9@byu.net>
51187
51188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
51189         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
51190         'present but cannot compile' warnings on cygwin.
51191         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
51192         use ws2tcpip.h if sys/socket.h works.
51193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
51194         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
51195
51196 2006-02-14  Simon Josefsson  <jas@extundo.com>
51197
51198         * modules/maintainer-makefile (Files): Rename.
51199
51200         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
51201         and (the local) Makefile.cfg to maint-cfg.mk.
51202
51203         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
51204         to the latter.
51205
51206         * modules/maintainer-makefile: New module.
51207
51208         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
51209         severaly stripped to make it possible to build it up from scratch
51210         with reliable tests.
51211
51212         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
51213         fixes to permit overriding the default actions when configure and
51214         makefile are not available.
51215
51216 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51217
51218         Sync from coreutils.
51219         * modules/lstat (Depends-on): Don't depend on xalloc.
51220         (License): Change from GPL to LGPL, since this is now simply a
51221         replacement for a libc function.
51222
51223 2006-02-14  Jim Meyering  <jim@meyering.net>
51224
51225         Sync from coreutils.
51226
51227         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
51228         failure on deficient systems, and simplify gnulib lgpl dependencies.
51229         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
51230         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
51231
51232         * lib/xalloc-die.c: Remove unused definition of N_.
51233
51234 2006-02-14  Jim Meyering  <jim@meyering.net>
51235
51236         Sync from coreutils.
51237         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
51238         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
51239         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
51240         double-quote uses of that variable, to accommodate the rare case in
51241         which getmntent is available in none of the libraries checked.  This
51242         happens at least on FreeBSD 5.0.
51243
51244 2006-02-13  Simon Josefsson  <jas@extundo.com>
51245
51246         * gnulib-tool (Usage): Fix --import, from
51247         karl@freefriends.org (Karl Berry).
51248
51249 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51250
51251         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
51252
51253 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
51254
51255         * lib/argp-namefrob.h: Restore changes accidentally lost during the
51256         "autoupdate" on 2005-12-12.
51257
51258 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51259
51260         * modules/closeout (Depends-on): Remove atexit.
51261
51262 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51263
51264         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
51265         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
51266
51267 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51268
51269         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
51270         __EXTENSIONS__ if this causes compilation to fail.  Problem
51271         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
51272         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
51273
51274 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
51275
51276         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
51277         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
51278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
51279         All uses changed.
51280
51281 2006-01-26  Simon Josefsson  <jas@extundo.com>
51282
51283         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
51284         prototype is visible on mingw32.
51285
51286         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
51287         for mingw32.
51288
51289         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
51290         mingw32).
51291
51292 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51293
51294         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
51295         attempt to open for write; this always fails, at least on POSIX
51296         hosts.  This reinstates the 2006-01-09 change, which was
51297         inadvertently removed.
51298
51299 2006-01-26  Bruno Haible  <bruno@clisp.org>
51300
51301         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
51302         Reported by Paul Eggert.
51303
51304 2006-01-26  Bruno Haible  <bruno@clisp.org>
51305             Paul Eggert  <eggert@cs.ucla.edu>
51306
51307         * lib/stdbool_.h (_Bool)
51308         [(! (defined __cplusplus || defined __BEOS__)
51309           && !defined __GNUC__
51310           && !(defined __HP_cc || defined __xlc__
51311                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
51312                || defined __sgi))]:
51313         #define to signed char in these cases too; this simplifies
51314         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
51315         etc., separately) and makes it more conservative.
51316
51317 2006-01-25  Simon Josefsson  <jas@extundo.com>
51318
51319         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
51320         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
51321         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
51322
51323 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51324
51325         * lib/argp-namefrob.h: Bugfix. Remove stray #
51326
51327 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51328
51329         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
51330         so that we test the test.
51331         Check for yet another HP-UX cc bug involving *bool |= bool.
51332
51333 2006-01-25  Karl Berry  <karl@gnu.org>
51334
51335         * config/srclist.txt (vasnprintf.c): sync lost.
51336
51337 2006-01-25  Jim Meyering  <jim@meyering.net>
51338
51339         Sync from the stable (b5) branch of coreutils:
51340
51341         * lib/fts.c (fts_children): Don't let close() clobber errno from
51342         failed fchdir().
51343
51344         * lib/fts.c (fts_stat): When following a symlink-to-directory,
51345         don't necessarily interpret stat-fails+lstat-succeeds as indicating
51346         a dangling symlink.  That can also happen at least for ELOOP.
51347         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
51348         FYI, this bug predates the inclusion of fts.c in coreutils.
51349
51350         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
51351         in their own block, so pre-c99 compilers don't object.
51352
51353         Avoid the double-free (first in fts_read, second in fts_close) that
51354         would occur when an `active' directory is made inaccessible (e.g.,
51355         via chmod a-x) during a traversal.
51356         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51357         before returning.  Reproduce this failure by
51358         mkdir -p a/b; cd a; chmod a-x . b
51359         Reported by Stavros Passas.
51360
51361 2006-01-25  Jim Meyering  <jim@meyering.net>
51362
51363         * lib/fileblocks.c: Remove more useless parentheses.
51364         * lib/readutmp.h: Likewise.
51365
51366 2006-01-25  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
51369         warnings.
51370         Reported by Paul Eggert.
51371
51372 2006-01-25  Bruno Haible  <bruno@clisp.org>
51373
51374         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
51375         rid of a trap command. For Solaris sh.
51376         Reported by Mark D. Baushke <mdb@gnu.org>.
51377
51378 2006-01-24  Simon Josefsson  <jas@extundo.com>
51379
51380         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
51381         Bruno.
51382
51383 2006-01-24  Karl Berry  <karl@gnu.org>
51384
51385         * config/srclist.txt (argp-namefrob.h): sync lost.
51386
51387 2006-01-24  Jim Meyering  <jim@meyering.net>
51388
51389         * modules/openat (Files): Add lib/intprops.h.
51390         From Mark D. Baushke.
51391
51392 2006-01-24  Jim Meyering  <jim@meyering.net>
51393
51394         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
51395         Reported by Mark D. Baushke.
51396
51397 2006-01-24  Jim Meyering  <jim@meyering.net>
51398
51399         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
51400
51401 2006-01-24  Bruno Haible  <bruno@clisp.org>
51402
51403         * modules/strnlen (Maintainer): Change from glibc to all.
51404
51405 2006-01-24  Bruno Haible  <bruno@clisp.org>
51406
51407         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
51408         Patch by Paul Eggert.
51409
51410 2006-01-24  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
51413         already has it.
51414         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
51415         2005-11-26.
51416
51417         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
51418         'signed char' to avoid problems with the built-in _Bool type.
51419         Reported by Paul Eggert on 2005-11-26.
51420
51421 2006-01-24  Bruno Haible  <bruno@clisp.org>
51422
51423         * gnulib-tool (func_import): Avoid constructing complicated sed
51424         expressions inside backquote.
51425         Report and solution by Mark D. Baushke <mdb@gnu.org>.
51426
51427 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
51428
51429         These changes imported from libc.
51430         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
51431         test and two separate function calls.
51432         * lib/strndup.c (__strndup): Add libc_hidden_def.
51433
51434 2006-01-23  Simon Josefsson  <jas@extundo.com>
51435
51436         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
51437         Remove the test_*_SOURCES variable: automake infers it by default.
51438         * modules/tls-tests: Likewise.
51439
51440 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51441
51442         Work around porting bugs reported by Dieter in
51443         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
51444         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
51445         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
51446         Include "getopt.h" first, to check interface.
51447         (getenv): Declare only if defined HAVE_DECL_GETENV &&
51448         !HAVE_DECL_GETENV.
51449         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
51450         (__strndup): Revert to K&R-style function dfns, the glibc style.
51451         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
51452         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
51453         Include strnlen.h first, to get prototype properly.
51454         (strnlen): Renamed from __strnlen.
51455         Remove weak alias.
51456
51457 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51458
51459         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
51460
51461 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51462
51463         * config/srclist.txt: Adjust to reflect glibc reorganization.
51464         This affects only comments.
51465
51466 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51467
51468          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
51469          Reported by Bruce Korb <bkorb@gnu.org>.
51470
51471 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51472
51473         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
51474         to pacify gcc -Wswitch-default.
51475
51476 2006-01-22  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
51479         temporary buffer for sprintf, take into account the precision also
51480         for 'd', 'i', 'u', 'o', 'x', 'X'.
51481
51482 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51483
51484         * modules/argp-tests: New module
51485         * tests/test-argp.c: New file
51486         * tests/test-argp-2.sh: New file
51487
51488 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51489
51490         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
51491         (__argp_base_name): Removed
51492         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
51493         typo.
51494         (__argp_base_name): Provide macro definition or extern declaration
51495         depending on the configuration
51496
51497 2006-01-20  Simon Josefsson  <jas@extundo.com>
51498
51499         * modules/inet_ntop (Depends-on): Depend on sys_socket.
51500
51501 2006-01-20  Simon Josefsson  <jas@extundo.com>
51502
51503         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
51504
51505 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51506
51507         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
51508         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
51509         Suggested by Bruno Haible.
51510
51511 2006-01-20  Karl Berry  <karl@gnu.org>
51512
51513         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
51514         until changes propagate, I guess.
51515
51516 2006-01-19  Simon Josefsson  <jas@extundo.com>
51517
51518         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
51519
51520 2006-01-19  Simon Josefsson  <jas@extundo.com>
51521
51522         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
51523
51524 2006-01-19  Simon Josefsson  <jas@extundo.com>
51525
51526         * gnulib-tool: Set check_PROGRAMS.
51527
51528         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51529         modules/des-tests, modules/gc-arcfour-tests,
51530         modules/gc-arctwo-tests, modules/gc-des-tests,
51531         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51532         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51533         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51534         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51535         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51536         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51537         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51538         test_*_SOURCES.
51539
51540 2006-01-18  Simon Josefsson  <jas@extundo.com>
51541
51542         * modules/socklen (Depends-on): Depend on sys_socket.
51543
51544 2006-01-18  Simon Josefsson  <jas@extundo.com>
51545
51546         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51547         modules/des-tests, modules/gc-arcfour-tests,
51548         modules/gc-arctwo-tests, modules/gc-des-tests,
51549         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51550         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51551         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51552         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51553         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51554         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51555         $(EXEEXT) to automake TESTS variable, for mingw32.
51556
51557 2006-01-17  Simon Josefsson  <jas@extundo.com>
51558
51559         * modules/socklen (Include): Need sys/socket.h.
51560
51561 2006-01-17  Bruno Haible  <bruno@clisp.org>
51562
51563         * modules/ssize_t (Include): Add <sys/types.h>.
51564
51565 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51566
51567         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51568         it's not portable and it doesn't work with cross-compiles.
51569         Problem reported by Bruno Haible.  Fix missing-$ typo in
51570         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51571         -zignore from being used with Sun's C compiler.
51572
51573 2006-01-12  Simon Josefsson  <jas@extundo.com>
51574
51575         * lib/base64.c: Fix warning, reported by Bruno Haible
51576         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51577
51578 2006-01-12  Bruno Haible  <bruno@clisp.org>
51579
51580         * modules/ldd: New file.
51581         * build-aux/ldd.sh.in: New file.
51582         * MODULES.html.sh (Support for building libraries and executables): Add
51583         ldd.
51584
51585 2006-01-12  Bruno Haible  <bruno@clisp.org>
51586
51587         * m4/ldd.m4: New file.
51588
51589 2006-01-12  Bruno Haible  <bruno@clisp.org>
51590
51591         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51592         endless loop while replacing $auxdir with build-aux.
51593
51594 2006-01-11  Simon Josefsson  <jas@extundo.com>
51595
51596         * lib/stdint_.h (SIZE_MAX): Add missing (.
51597
51598 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         Sync from coreutils.
51601         * lib/md5.c: Fix commentary typos.
51602         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51603         * lib/md5.h (__attribute__): Remove; unused.
51604         * lib/sha1.c: Fix commentary to match md5 better.
51605         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51606         so that we don't need to worry about alignment.  All uses changed.
51607         This merges the 2005-10-28 md5 change into sha1.
51608
51609 2006-01-11  Jim Meyering  <jim@meyering.net>
51610
51611         Sync from coreutils.
51612         * lib/md5.c (OP): Fix spacing.
51613
51614 2006-01-11  Bruno Haible  <bruno@clisp.org>
51615
51616         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51617         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51618         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51619
51620 2006-01-11  Bruno Haible  <bruno@clisp.org>
51621
51622         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51623         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51624         the "early" section as well.
51625
51626 2006-01-11  Bruno Haible  <bruno@clisp.org>
51627
51628         Avoid "ar: no archive members specified" error on MacOS X.
51629         * gnulib-tool (func_modules_add_dummy): New function.
51630         (func_import, func_create_testdir): Invoke it.
51631
51632 2006-01-11  Bruno Haible  <bruno@clisp.org>
51633
51634         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51635         with $auxdir in AC_CONFIG_FILES statements.
51636
51637 2006-01-11  Bruno Haible  <bruno@clisp.org>
51638
51639         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51640         Initialize also noinst_HEADERS to empty.
51641
51642 2006-01-11  Bruno Haible  <bruno@clisp.org>
51643
51644         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51645         variables.
51646         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51647         autoreconf.
51648
51649 2006-01-11  Bruno Haible  <bruno@clisp.org>
51650
51651         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51652         overridable by the user.
51653         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51654
51655 2006-01-10  Simon Josefsson  <jas@extundo.com>
51656
51657         * modules/sys_socket: New file.
51658
51659 2006-01-10  Simon Josefsson  <jas@extundo.com>
51660
51661         * m4/sys_socket_h.m4: New file.
51662
51663 2006-01-10  Simon Josefsson  <jas@extundo.com>
51664
51665         * lib/socket_.h: New file.
51666
51667 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51668
51669         * modules/readutmp (Maintainer): Add myself.
51670
51671 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51672
51673         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51674         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51675         People who are still concerned with buggy memcmp implementations
51676         can invoke gl_FUNC_MEMCMP themselves.
51677
51678 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51679
51680         * lib/regex_internal.h (BITSET_WORD_BITS):
51681         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51682         preprocessor mishandles large unsigned values as if they were signed.
51683         Problem reported by Claudio Fontana in
51684         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51685
51686 2006-01-10  Jim Meyering  <jim@meyering.net>
51687
51688         Avoid the double-free (first in fts_read, second in fts_close) that
51689         would occur when an `active' directory is made inaccessible (e.g.,
51690         via chmod a-x) during a traversal.
51691         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51692         before returning.  Reproduce this failure by
51693         mkdir -p a/b; cd a; chmod a-x . b
51694         Reported by Stavros Passas.
51695
51696         Sync from coreutils.
51697         * lib/sha1.c: Tweak grammar in a comment.
51698
51699 2006-01-10  Jim Meyering  <jim@meyering.net>
51700
51701         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51702         Patch by Joerg Sonnenberger.
51703
51704 2006-01-10  Bruno Haible  <bruno@clisp.org>
51705
51706         * modules/readutmp: Depend on module free.
51707         * modules/strtok_r: Depend on module restrict.
51708
51709 2006-01-10  Bruno Haible  <bruno@clisp.org>
51710
51711         * modules/gettext (configure.ac): Add an invocation of
51712         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51713
51714 2006-01-10  Bruno Haible  <bruno@clisp.org>
51715
51716         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51717         Reported by Werner Lemberg <wl@gnu.org>.
51718
51719 2006-01-10  Bruno Haible  <bruno@clisp.org>
51720
51721         * lib/localcharset.c: Update from GNU gettext.
51722
51723 2006-01-10  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/argp.h (__const): Remove macro. Use const instead.
51726         * lib/argp-fmtstream.h (__const): Likewise.
51727         * lib/glob_.h (__const): Remove macro.
51728         * lib/glob-libc.h: Use const instead of __const.
51729
51730 2006-01-10  Bruno Haible  <bruno@clisp.org>
51731
51732         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
51733         variable.
51734         Needed to avoid an automake error regarding the 'gettext' module.
51735
51736 2006-01-09  Simon Josefsson  <jas@extundo.com>
51737
51738         * modules/inet_ntop (Depends-on): Add restrict.
51739
51740 2006-01-09  Simon Josefsson  <jas@extundo.com>
51741
51742         * modules/gc-rijndael-tests (License): Put under LGPL.
51743
51744         * modules/gc-des-tests (License): Likewise.
51745
51746         * modules/gc-arcfour-tests (License): Likewise.
51747
51748         * modules/gc-arctwo-tests (License): Likewise.
51749
51750         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
51751
51752         * modules/gc-hmac-sha1-tests (Files): Likewise.
51753
51754         * modules/gc-hmac-md5-tests (License): Likewise.
51755
51756         * modules/gc-sha1-tests (License): Likewise.
51757
51758         * modules/gc-md5-tests (License): Likewise.
51759
51760         * modules/gc-md4-tests (License): Likewise.
51761
51762         * modules/gc-md2-tests (License): Likewise.
51763
51764         * modules/gc-tests (License): Likewise.
51765
51766         * modules/des-tests (License): Likewise.
51767
51768         * modules/md4-tests (License): Likewise.
51769
51770         * modules/md2-tests (License): Likewise.
51771
51772 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51773
51774         Sync from coreutils:
51775
51776         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
51777         * modules/lib-ignore: New file.
51778         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
51779         chdir-safer.m4, lchmod.m4.
51780         * modules/openat: Add mkdirat.c, openat-priv.h.
51781
51782 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51783
51784         Sync from coreutils.
51785         * m4/lib-ignore.m4: New file.
51786         * m4/lchmod.m4: New file.
51787
51788 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51789
51790         Sync from coreutils.
51791         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
51792         for write access: POSIX says that must fail.
51793         * lib/fts.c (diropen): Likewise.
51794         * lib/save-cwd.c (save_cwd): Likewise.
51795         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
51796         well, for minor improvements on hosts that lack O_DIRECTORY.
51797         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
51798         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
51799         Fall back on chown if open failed with EACCES.
51800
51801         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
51802         Report an error at compile-time if only a 1-second nominal clock
51803         resolution is found.
51804
51805         * lib/lchmod.h: New file.
51806         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
51807         (make_dir_parents): Use lchown rather than chown, and
51808         lchmod rather than chmod.
51809
51810         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
51811         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
51812         "proc" reported by n0dalus.
51813
51814         * lib/mountlist.c: Include <limits.h>.
51815         (dev_from_mount_options)
51816         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
51817         New function.  It no longer assumes "dev=" has the System V meaning
51818         on Linux (since it doesn't).  It also parses "dev=" more carefully.
51819         (read_file_system_list)
51820         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
51821         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
51822         dev= in that case.
51823
51824         * lib/posixtm.h (PDS_PRE_2000): New macro.
51825         * lib/posixtm.c (year): Arg is now syntax_bits rather than
51826         allow_century.  All usages changed.  Reject dates outside the range
51827         1969-1999 if PDS_PRE_2000 is used.
51828
51829 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51830
51831         Sync from coreutils.
51832         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
51833         (Time of day items): Mention the possibility of leap seconds.
51834         Problem reported by Dr. David Alan Gilbert.
51835
51836 2006-01-09  Jim Meyering  <jim@meyering.net>
51837
51838         Sync from coreutils.
51839
51840         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
51841
51842         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
51843
51844         * lib/modechange.c (mode_compile): Reject an invalid mode string
51845         that starts with an octal digit.  From Andreas Gruenbacher.
51846
51847         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
51848         and dup to open_safer and dup_safer, respectively.
51849         (openat_permissive): Fix typo in comment.
51850
51851         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
51852         "gettext.h"; either no longer needed or are guaranteed by openat.h.
51853         (_): Remove; no longer needed.
51854         (openat): Renamed from rpl_openat; no need for rpl_openat
51855         since openat.h renames openat for us.
51856         Replace most of the body with a call to openat_permissive,
51857         to avoid duplicate code.
51858         Port to (probably hypothetical) environments were mode_t is
51859         wider than int.
51860         (openat_permissive): Require mode arg, so that we can check
51861         types better.  Put it just after flags.  Change cwd failure
51862         indicator from pointer-to-bool to pointer-to-errno-value.
51863         All callers changed.
51864         Invoke openat_save_fail and/or openat_restore_fail if
51865         cwd_errno is null, so that openat can call us.
51866         (openat_permissive, fdopendir, fstatat, unlinkat):
51867         Simplify errno handling to avoid some duplicate code,
51868         as it's OK to set errno on success.
51869         * lib/openat.h: Revamp code so that function macros depend on
51870         __OPENAT_PREFIX only, not also on AT_FDCWD.
51871         (openat_ro): Remove.  Caller changed to use openat_permissive.
51872         (openat_permissive): Now a macro, if not a function.
51873         (openat_restore_fail, openat_save_fail): Now always functions,
51874         since mkdirat needs them even if __OPENAT_PREFIX is defined.
51875
51876         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
51877         and openat.c.
51878         * lib/mkdirat.c: Include openat-priv.h.
51879         Remove definitions of macros defined therein.
51880         * lib/openat.c: Likewise.
51881
51882         * lib/mkdirat.c (mkdirat): New file and function.
51883         * lib/openat.h (mkdirat): Declare.
51884
51885         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
51886
51887         * lib/openat.h (openat_permissive): Declare.
51888         (openat_ro): Define.
51889
51890         * lib/openat.c (EXPECTED_ERRNO): New macro.
51891         (openat_permissive): New function -- used in remove.c rewrite.
51892         (all functions): Set errno just before returning, only if there
51893         was an actual failure.
51894         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
51895
51896         Emulate openat-family functions using Linux's procfs, if possible.
51897         Idea and some code based on Ulrich Drepper's glibc changes.
51898
51899         * lib/openat.c: (BUILD_PROC_NAME): New macro.
51900         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
51901         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
51902         before falling back on save_cwd and restore_cwd.
51903         (fdopendir, fstatat, unlinkat): Likewise.
51904
51905         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
51906         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
51907
51908         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
51909         as second argument to va_arg.  Otherwise, some versions of gcc
51910         warn that `if this code is reached, the program will abort'.
51911
51912 2006-01-09  Jim Meyering  <jim@meyering.net>
51913
51914         Sync from coreutils.
51915         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
51916         Require openat-priv.h.
51917
51918 2006-01-09  Bruno Haible  <bruno@clisp.org>
51919
51920         * modules/strnlen (Include): Use strnlen.h.
51921
51922 2006-01-09  Bruno Haible  <bruno@clisp.org>
51923
51924         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
51925
51926 2006-01-09  Bruno Haible  <bruno@clisp.org>
51927
51928         * lib/sysexit_.h (EX_OK): New macro.
51929         Suggested by Martin Lambers <marlam@marlam.de>.
51930
51931 2006-01-09  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
51934         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
51935
51936 2006-01-09  Bruno Haible  <bruno@clisp.org>
51937
51938         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
51939         numbers.
51940
51941 2006-01-09  Bruno Haible  <bruno@clisp.org>
51942
51943         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
51944         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
51945         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
51946         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
51947
51948 2006-01-09  Bruno Haible  <bruno@clisp.org>
51949
51950         * build-aux/javacomp.sh.in: New file, moved from lib/.
51951         * modules/javacomp-script (Files): Update.
51952         (configure.ac): Add AC_CONFIG_FILES invocation.
51953         (EXTRA_DIST): Remove variable.
51954
51955         * build-aux/javaexec.sh.in: New file, moved from lib/.
51956         * modules/javaexec (Files): Update.
51957         (configure.ac): Add AC_CONFIG_FILES invocation.
51958         (EXTRA_DIST): Remove javaexec.sh.in.
51959
51960         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
51961         * modules/csharpcomp-script (Files): Update.
51962         (configure.ac): Add AC_CONFIG_FILES invocation.
51963         (EXTRA_DIST): Remove variable.
51964
51965         * build-aux/csharpexec.sh.in: New file, moved from lib/.
51966         * modules/csharpexec (Files): Update.
51967         (configure.ac): Add AC_CONFIG_FILES invocation.
51968         (EXTRA_DIST): Remove csharpexec.sh.in.
51969
51970 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51971
51972         Sync from coreutils.
51973
51974         Add POSIX ACL support
51975         * lib/acl.h (copy_acl, set_acl): Add declarations.
51976         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
51977         systems other than Linux.
51978         (chmod_or_fchmod): New function: use fchmod when possible,
51979         and chmod otherwise.
51980         (file_has_acl): Add a POSIX ACL implementation, with a
51981         Linux-specific subcase.
51982         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
51983         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
51984         acls are unsupported.
51985         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
51986         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
51987         are unsupported.
51988
51989 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51990
51991         Sync from coreutils.
51992         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
51993
51994 2006-01-07  Bruno Haible  <bruno@clisp.org>
51995
51996         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
51997         gl_EARLY.
51998
51999 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52000
52001         * lib/strftime.c (tzname): Don't declare if it is already #defined.
52002         Problem reported for Mingw by Mark Junker.
52003
52004 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52005
52006         * README: Gnulib normally doesn't generate a tarball.
52007
52008 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
52009
52010         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
52011         long int, not int, for nanosecond counts, so that people who are
52012         used to POSIX struct timespec won't be surprised.  Reported by Jim
52013         Meyering.
52014
52015 2005-12-28  Bruno Haible  <bruno@clisp.org>
52016
52017         * build-aux/config.rpath: Update from GNU gettext.
52018
52019 2005-12-16  Jim Meyering  <jim@meyering.net>
52020
52021         * modules/fprintftime: New module.
52022         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
52023
52024 2005-12-16  Jim Meyering  <jim@meyering.net>
52025
52026         * m4/fprintftime.m4: New file.
52027
52028 2005-12-16  Jim Meyering  <jim@meyering.net>
52029
52030         * lib/fprintftime.c, lib/fprintftime.h: New files.
52031
52032 2005-12-15  Simon Josefsson  <jas@extundo.com>
52033
52034         * modules/socklen (configure.ac): Fix M4 macro name, to align with
52035         new m4/socklen.m4.
52036
52037 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52038
52039         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
52040         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
52041
52042 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52043
52044         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
52045         * lib/argp-help.c (fill_in_uparams): Check if the constructed
52046         struct uparams is valid. Fall back to the default values if it is
52047         not.
52048
52049 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52050
52051         * modules/argp (Files): Add argp-pin.c
52052         (Depends-on): dirname
52053         (lib_SOURCES): Add argp-pin.c
52054
52055 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52056
52057         * m4/argp.m4:  Check if program_invocation_name and
52058         program_invocation_short_name are declared and define appropriate
52059         macros if they are not.
52060
52061 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52062
52063         * lib/argp-help.c (__argp_base_name): New function
52064         (__argp_short_program_name): Rewrite using __argp_base_name
52065         * lib/argp-namefrob.h: Define program_invocation_name and
52066         program_invocation_short_name if requested
52067         (__argp_base_name): Add prototype
52068         * lib/argp-parse.c (argp_def): Use gettext wrappers
52069         (argp_default_parser): Use __argp_base_name
52070         * lib/argp-pin.c: New file. Defines program_invocation_name and
52071         program_invocation_short_name on systems that lack them.
52072
52073 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52074
52075         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
52076         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52077         porting problem reported by Georg Schwarz in
52078         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52079
52080 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52081
52082         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
52083         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52084         porting problem reported by Georg Schwarz in
52085         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52086
52087 2005-12-05  Bruno Haible  <bruno@clisp.org>
52088
52089         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
52090         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
52091         Reported by Mark Junker <mjscod@gmx.de>.
52092
52093 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
52094
52095         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
52096         Use implementation from Albert Chin, with some
52097         comments/corrections by Stepan Kasal and myself.
52098
52099 2005-12-02  Bruno Haible  <bruno@clisp.org>
52100
52101         * gnulib-tool (func_import): Accept GPLed build tool modules when
52102         --lgpl is given.
52103         * modules/csharpcomp-script: New file.
52104         * modules/csharpcomp: Depend on it.
52105         * modules/javacomp-script: New file.
52106         * modules/javacomp: Depend on it.
52107         Suggested by Simon Josefsson.
52108
52109 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52110
52111         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
52112         statement, to work around an HP-UX 10.20 compiler bug reported by
52113         Peter O'Gorman.
52114
52115 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52116
52117         * modules/savedir (Depends-on): Add openat.
52118
52119 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52120
52121         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
52122         (uintmax_t) [defined uintmax_t]: Do not declare.
52123         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
52124         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
52125         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
52126         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
52127         sake of portability to weird hosts that C allows (though we don't
52128         know of any practical examples).
52129
52130         * lib/savedir.h (fdsavedir): New decl.
52131         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
52132         contains most of the former guts of savedir.
52133         (savedir): Use savedirstream.
52134         Include "openat.h".
52135
52136 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         * modules/obstack (Files): Add m4/ulonglong.m4.
52139         Problem reported by Davide Angelocola.
52140
52141 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52142
52143         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
52144         coreutils no longer futzes with rounding modes.
52145
52146 2005-11-14  Jim Meyering  <jim@meyering.net>
52147
52148         * lib/mkstemp-safer.c: Include <config.h>, required for possible
52149         replacement of mkstemp.
52150
52151 2005-11-10  Simon Josefsson  <jas@extundo.com>
52152
52153         * lib/readline.c: Remove EOL.
52154
52155 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * modules/gethrxtime (Depends-on): Add gettime.
52158
52159 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52160
52161         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
52162         or gettimeofday; no longer needed.
52163
52164 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52165
52166         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
52167         time business.
52168         (gethrxtime) [! (HAVE_NANOUPTIME
52169         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
52170         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
52171         our own approximation.
52172
52173 2005-11-08  Eric Blake  <ebb9@byu.net>
52174
52175         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52176
52177 2005-11-08  Eric Blake  <ebb9@byu.net>
52178
52179         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52180
52181 2005-11-04  Bruno Haible  <bruno@clisp.org>
52182
52183         * gnulib-tool: Implement --update mode.
52184
52185 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52186
52187         Fix porting problem reported by Theodoros V. Kalamatianos.
52188         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
52189         Don't assume that futimes failing means we must fail.
52190
52191 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
52194         variables to suggest the intended function of the PATH_MAX check.
52195
52196 2005-10-30  Kean Johnston  <jkj@sco.com>
52197
52198         Trivial changes to support SCO systems.
52199         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
52200         as PATH_MAX.
52201         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
52202         where __ptr is null when no I/O is pending.
52203
52204 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52205
52206         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
52207         leave errno alone.  Problem reported by Dmitry V. Levin.
52208
52209 2005-10-28  Simon Josefsson  <jas@extundo.com>
52210
52211         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
52212         Test more.
52213
52214         * tests/test-gc-md2.c, tests/test-md2.c: New files.
52215
52216         * modules/md2, modules/md2-tests: New files.
52217
52218 2005-10-28  Simon Josefsson  <jas@extundo.com>
52219
52220         * m4/inet_ntop.m4: More tests.
52221
52222         * m4/gc-md2.m4, md2.m4: New file.
52223
52224 2005-10-28  Simon Josefsson  <jas@extundo.com>
52225
52226         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
52227         "restrict" keywords, as per POSIX.  Protect the function
52228         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
52229         Don't use K&R prototypes.  Check the sprintf return values.
52230         Re-define EAFNOSUPPORT if not present.  Indent.
52231
52232         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
52233         suggested by Bruno Haible <bruno@clisp.org>.
52234
52235         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
52236
52237         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
52238
52239         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
52240         libgcrypt).
52241
52242         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
52243
52244         * lib/md2.h, lib/md2.c: New files.
52245
52246 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
52247
52248         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
52249         errno alone.  Problem reported by Frederic Jolliton.
52250
52251 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52252
52253         * modules/verify (License): Change from GPL to LGPL.  This is a
52254         tiny module and there are apparently near-equivalents that are
52255         under the BSD license.
52256
52257 2005-10-24  Simon Josefsson  <jas@extundo.com>
52258
52259         * modules/sha1: Relicense to LGPL.
52260
52261 2005-10-24  Simon Josefsson  <jas@extundo.com>
52262
52263         * lib/md4.h: Shrink buffer size, now that we changed the type.
52264
52265 2005-10-23  Simon Josefsson  <jas@extundo.com>
52266
52267         * gnulib-tool (func_import): Fix --tests-base.
52268
52269 2005-10-22  Simon Josefsson  <jas@extundo.com>
52270
52271         * modules/arcfour (Depends-on): Need stdint.
52272
52273 2005-10-22  Simon Josefsson  <jas@extundo.com>
52274
52275         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
52276         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
52277
52278 2005-10-22  Simon Josefsson  <jas@extundo.com>
52279
52280         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
52281         suggested by Bruno Haible <bruno@clisp.org>.
52282
52283 2005-10-22  Simon Josefsson  <jas@extundo.com>
52284
52285         * lib/crc.h: Include stddef.h, for size_t.
52286
52287 2005-10-22  Simon Josefsson  <jas@extundo.com>
52288
52289         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
52290         arcfour_context struct (simplify test vector testing in GNU
52291         Shishi).
52292
52293 2005-10-21  Simon Josefsson  <jas@extundo.com>
52294
52295         * modules/des, modules/des-tests: New files.
52296
52297         * modules/gc-des, modules/gc-des-tests: New files.
52298
52299         * tests/test-des.c, tests/test-gc-des.c: New file.
52300
52301 2005-10-21  Simon Josefsson  <jas@extundo.com>
52302
52303         * modules/arctwo, modules/arctwo-tests: New files.
52304
52305         * tests/test-arctwo.c: New file.
52306
52307         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
52308
52309         * tests/test-gc-arctwo.c: New file.
52310
52311 2005-10-21  Simon Josefsson  <jas@extundo.com>
52312
52313         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
52314         Bruno Haible <bruno@clisp.org>.
52315
52316         * m4/gc-des.m4: New file.
52317
52318 2005-10-21  Simon Josefsson  <jas@extundo.com>
52319
52320         * m4/arctwo.m4: New file.
52321
52322         * m4/gc-arctwo.m4: New file.
52323
52324 2005-10-21  Simon Josefsson  <jas@extundo.com>
52325
52326         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
52327         block.
52328
52329 2005-10-21  Simon Josefsson  <jas@extundo.com>
52330
52331         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
52332         <bruno@clisp.org>.
52333
52334         * lib/hmac-sha1.c (hmac_sha1): Likewise.
52335
52336         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
52337         Bruno Haible <bruno@clisp.org>.
52338
52339         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
52340         <bruno@clisp.org>.
52341
52342 2005-10-21  Simon Josefsson  <jas@extundo.com>
52343
52344         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
52345
52346 2005-10-21  Simon Josefsson  <jas@extundo.com>
52347
52348         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
52349
52350 2005-10-21  Simon Josefsson  <jas@extundo.com>
52351
52352         * lib/des.h, lib/des.c: New files.
52353
52354         * lib/gc-gnulib.c: Support DES.c
52355
52356 2005-10-21  Simon Josefsson  <jas@extundo.com>
52357
52358         * lib/arctwo.h, lib/arctwo.c: New files.
52359
52360         * lib/gc-gnulib.c: Support ARCTWO.
52361
52362 2005-10-21  Simon Josefsson  <jas@extundo.com>
52363
52364         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
52365         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52366
52367 2005-10-21  Simon Josefsson  <jas@extundo.com>
52368
52369         * gnulib-tool (func_import, func_create_testdir): Define automake
52370         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
52371         Makefile.am snippet),
52372         suggested by Bruno Haible <bruno@clisp.org>.
52373
52374         * modules/gc (Makefile.am): Use it.
52375
52376 2005-10-21  Bruno Haible  <bruno@clisp.org>
52377
52378         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
52379         patch.
52380
52381 2005-10-19  Simon Josefsson  <jas@extundo.com>
52382
52383         * tests/test-gc-rijndael.c: New file.
52384
52385         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
52386
52387 2005-10-19  Simon Josefsson  <jas@extundo.com>
52388
52389         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
52390         interface too.
52391
52392 2005-10-19  Simon Josefsson  <jas@extundo.com>
52393
52394         * tests/test-gc-arcfour.c: New file.
52395
52396         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
52397
52398 2005-10-19  Simon Josefsson  <jas@extundo.com>
52399
52400         * modules/gc-md4, modules/gc-md4-tests: New file.
52401
52402         * tests/test-gc-md4.c: New file.
52403
52404 2005-10-19  Simon Josefsson  <jas@extundo.com>
52405
52406         * m4/gc-md4.m4: New file.
52407
52408 2005-10-19  Simon Josefsson  <jas@extundo.com>
52409
52410         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
52411         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
52412         <kasal@ucw.cz>.
52413
52414 2005-10-19  Simon Josefsson  <jas@extundo.com>
52415
52416         * m4/gc-arcfour.m4: New file.
52417
52418         * m4/gc-rijndael.m4: New file.
52419
52420 2005-10-19  Simon Josefsson  <jas@extundo.com>
52421
52422         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
52423
52424 2005-10-19  Simon Josefsson  <jas@extundo.com>
52425
52426         * lib/gc-gnulib.c: Support ARCFOUR.
52427
52428 2005-10-19  Simon Josefsson  <jas@extundo.com>
52429
52430         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
52431         support.
52432
52433         * lib/gc.h: Add ECB enum type.
52434
52435         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
52436
52437 2005-10-18  Simon Josefsson  <jas@extundo.com>
52438
52439         * tests/test-md5.c: New file.
52440
52441         * modules/md5-tests: New file.
52442
52443 2005-10-18  Simon Josefsson  <jas@extundo.com>
52444
52445         * tests/test-md4.c: New file.
52446
52447         * modules/md4, modules/md4-tests: New files.
52448
52449 2005-10-18  Simon Josefsson  <jas@extundo.com>
52450
52451         * m4/md4.m4: New file.
52452
52453 2005-10-18  Simon Josefsson  <jas@extundo.com>
52454
52455         * lib/md4.h, lib/md4.c: New files, based on md5.?.
52456
52457 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
52458
52459         * gnulib-tool (func_create_testdir): Omit the second check whether
52460         BUILT_SOURCES in nonempty.
52461
52462 2005-10-17  Simon Josefsson  <jas@extundo.com>
52463
52464         * tests/test-rijndael.c: New file.
52465
52466 2005-10-17  Simon Josefsson  <jas@extundo.com>
52467
52468         * modules/sha1: Depend on stdint instead of md5.
52469
52470         * modules/md5: Depend on stdint, remove uint32_t.
52471
52472 2005-10-17  Simon Josefsson  <jas@extundo.com>
52473
52474         * modules/gc-sha1-tests: New file.
52475
52476         * tests/test-gc-sha1.c: New file.
52477
52478 2005-10-17  Simon Josefsson  <jas@extundo.com>
52479
52480         * m4/md5.m4: Remove call to uint32_t.m4.
52481
52482 2005-10-17  Simon Josefsson  <jas@extundo.com>
52483
52484         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
52485
52486         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
52487         md5.h.
52488
52489         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
52490
52491         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
52492
52493 2005-10-17  Simon Josefsson  <jas@extundo.com>
52494
52495         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
52496
52497 2005-10-17  Simon Josefsson  <jas@extundo.com>
52498
52499         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
52500
52501 2005-10-17  Simon Josefsson  <jas@extundo.com>
52502
52503         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
52504
52505         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
52506
52507 2005-10-17  Bruno Haible  <bruno@clisp.org>
52508
52509         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
52510         that it can also be used in a test.
52511
52512 2005-10-16  Bruno Haible  <bruno@clisp.org>
52513
52514         * gnulib-tool (func_emit_tests_Makefile_am): Also define
52515         TESTS_ENVIRONMENT, so that individual tests can augment it.
52516
52517         * gnulib-tool (func_create_testdir): Use an intermediate target for
52518         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
52519         macros, like $(ALLOCA_H), which cannot be passed through the command
52520         line.
52521
52522 2005-10-15  Simon Josefsson  <jas@extundo.com>
52523
52524         * modules/rijndael-tests: New file.
52525
52526         * modules/rijndael: New file.
52527
52528 2005-10-15  Simon Josefsson  <jas@extundo.com>
52529
52530         * m4/rijndael.m4: New file.
52531
52532 2005-10-15  Simon Josefsson  <jas@extundo.com>
52533
52534         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52535
52536         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52537
52538 2005-10-14  Simon Josefsson  <jas@extundo.com>
52539
52540         * tests/test-arcfour.c: New file.
52541
52542         * modules/arcfour, modules/arcfour-tests: New files.
52543
52544 2005-10-14  Simon Josefsson  <jas@extundo.com>
52545
52546         * m4/arcfour.m4: New file.
52547
52548 2005-10-14  Simon Josefsson  <jas@extundo.com>
52549
52550         * lib/arcfour.h, lib/arcfour.c: New files.
52551
52552 2005-10-14  Roland McGrath  <roland@redhat.com>
52553
52554         Import from libc.  [BZ #1331]
52555         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52556         macro argument.
52557         Reported by Matej Vela <vela@debian.org>.
52558
52559 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52560
52561         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52562         include <wchar.h>; no longer needed.
52563
52564 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52565
52566         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52567
52568 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52569         and  Ulrich Drepper  <drepper@redhat.com>
52570
52571         Import from libc.
52572         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52573         instead of inline stream orientation test and two separate
52574         function calls.  Pay no attention to USE_IN_LIBIO.
52575
52576 2005-10-13  Simon Josefsson  <jas@extundo.com>
52577
52578         * modules/gc-hmac-md5-tests: New file.
52579
52580         * tests/test-gc-hmac-sha1.c: New file.
52581
52582         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52583
52584         * modules/gc-hmac-md5-tests: New file.
52585
52586         * tests/test-gc-md5.c: New file.
52587
52588         * modules/gc-md5-tests: New file.
52589
52590 2005-10-13  Simon Josefsson  <jas@extundo.com>
52591
52592         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52593         Move memory allocation outside of loop.
52594
52595 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52596
52597         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52598         intermediate directory is in a read-only file system.  Problem
52599         reported by Eric Blake.
52600
52601 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52602
52603         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52604
52605 2005-10-12  Simon Josefsson  <jas@extundo.com>
52606
52607         * tests/test-hmac-sha1.c: New file.
52608
52609         * modules/hmac-sha1-tests: New file.
52610
52611         * modules/hmac-sha1: New file.
52612
52613 2005-10-12  Simon Josefsson  <jas@extundo.com>
52614
52615         * modules/gc-sha1: New file.
52616
52617 2005-10-12  Simon Josefsson  <jas@extundo.com>
52618
52619         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52620
52621         * tests/test-gc-pbkdf2-sha1.c: New file.
52622
52623 2005-10-12  Simon Josefsson  <jas@extundo.com>
52624
52625         * modules/gc-md5, modules/gc-hmac-md5: New files.
52626
52627         * modules/gc (Files): Remove md5, memxor and hmac files.
52628
52629 2005-10-12  Simon Josefsson  <jas@extundo.com>
52630
52631         * m4/gc-pbkdf2-sha1.m4: New file.
52632
52633         * m4/gc-hmac-sha1.m4: New file.
52634
52635         * m4/gc-sha1: New file.
52636
52637         * m4/hmac-sha1.m4: New file.
52638
52639 2005-10-12  Simon Josefsson  <jas@extundo.com>
52640
52641         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52642
52643         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52644
52645 2005-10-12  Simon Josefsson  <jas@extundo.com>
52646
52647         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52648         suggested by Bruno Haible <bruno@clisp.org>.
52649
52650 2005-10-12  Simon Josefsson  <jas@extundo.com>
52651
52652         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52653
52654 2005-10-12  Simon Josefsson  <jas@extundo.com>
52655
52656         * lib/gc-pbkdf2-sha1.c: New file.
52657
52658         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52659
52660 2005-10-12  Simon Josefsson  <jas@extundo.com>
52661
52662         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52663
52664         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52665
52666 2005-10-12  Simon Josefsson  <jas@extundo.com>
52667
52668         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52669         GC_USE_HMAC_MD5, respectively.
52670
52671         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52672         (gc_md5): Fix typo.
52673
52674         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52675
52676         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52677
52678         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52679
52680 2005-10-12  Bruno Haible  <bruno@clisp.org>
52681
52682         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52683         Reported by Stepan Kasal <kasal@ucw.cz>.
52684
52685 2005-10-11  Simon Josefsson  <jas@extundo.com>
52686
52687         * tests/test-crc.c: New file.
52688
52689         * modules/crc, modules/crc-tests: New files.
52690
52691 2005-10-11  Simon Josefsson  <jas@extundo.com>
52692
52693         * m4/crc.m4: New file.
52694
52695 2005-10-11  Simon Josefsson  <jas@extundo.com>
52696
52697         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52698
52699         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52700
52701         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52702
52703 2005-10-11  Simon Josefsson  <jas@extundo.com>
52704
52705         * lib/crc.h, lib/crc.c: New files.
52706
52707         * lib/gc.h (gc_hash_buffer): Add doc.
52708
52709 2005-10-11  Bruno Haible  <bruno@clisp.org>
52710
52711         * modules/c-strcasestr: New file.
52712         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52713
52714 2005-10-11  Bruno Haible  <bruno@clisp.org>
52715
52716         * modules/c-strcase: New file.
52717         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52718
52719 2005-10-11  Bruno Haible  <bruno@clisp.org>
52720
52721         * lib/strcasecmp.c: Include limits.h.
52722         (strcasecmp): Avoid integer overflow on exotic platforms.
52723         * lib/strncasecmp.c: Include limits.h.
52724         (strncasecmp): Avoid integer overflow on exotic platforms.
52725         Reported by Paul Eggert.
52726
52727 2005-10-11  Bruno Haible  <bruno@clisp.org>
52728
52729         * lib/c-strcasestr.h: New file, from GNU gettext.
52730         * lib/c-strcasestr.c: New file, from GNU gettext.
52731
52732 2005-10-11  Bruno Haible  <bruno@clisp.org>
52733
52734         * lib/c-strcase.h: New file, from GNU gettext.
52735         * lib/c-strcasecmp.c: New file, from GNU gettext.
52736         * lib/c-strncasecmp.c: New file, from GNU gettext.
52737
52738 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52739
52740         * modules/mempcpy (License): GPL -> LGPL.
52741         * modules/strchrnul (License): Likewise.
52742         * modules/sysexits (License): Likewise.
52743
52744 2005-10-08  Simon Josefsson  <jas@extundo.com>
52745
52746         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
52747
52748 2005-10-07  Simon Josefsson  <jas@extundo.com>
52749
52750         * m4/memxor.m4: Remove gl_C_RESTRICT call.
52751
52752 2005-10-06  Simon Josefsson  <jas@extundo.com>
52753
52754         * tests/test-hmac-md5.c: New file.
52755
52756         * modules/hmac-md5-tests: New file.
52757
52758         * modules/hmac-md5: New file.
52759
52760 2005-10-06  Simon Josefsson  <jas@extundo.com>
52761
52762         * m4/hmac-md5.m4: New file.
52763
52764         * m4/memxor.m4: Require gl_C_RESTRICT.
52765
52766 2005-10-06  Simon Josefsson  <jas@extundo.com>
52767
52768         * lib/memxor.c (memxor): Avoid casts and warnings.
52769
52770 2005-10-06  Simon Josefsson  <jas@extundo.com>
52771
52772         * lib/hmac-md5.c: New file.
52773
52774         * lib/hmac.h: New file.
52775
52776 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52777
52778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
52779         promotes to int, not unsigned int, to catch the AIX 5.3
52780         compiler bug.
52781
52782 2005-10-05  Simon Josefsson  <jas@extundo.com>
52783
52784         * modules/memxor: New file.
52785
52786         * modules/iconv (Files): Move config.rpath to havelib, it is used
52787         there.
52788
52789         * modules/havelib (Files): Add config.rpath.
52790
52791 2005-10-05  Simon Josefsson  <jas@extundo.com>
52792
52793         * m4/memxor.m4: New file.
52794
52795 2005-10-05  Simon Josefsson  <jas@extundo.com>
52796
52797         * lib/memxor.c (memxor): Fix compiler error.
52798
52799         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
52800         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
52801
52802         * lib/memxor.h, lib/memxor.c: New files.
52803
52804         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
52805         we assume all systems have it, suggested by Jim Meyering
52806         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
52807         any systems lack sys/socket.h; mingw32 is known to lack it, but we
52808         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
52809         same reasons.
52810
52811 2005-10-05  Simon Josefsson  <jas@extundo.com>
52812
52813         * config/srclist.txt: Add glibc bug 1423 for md5.h.
52814
52815 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52816
52817         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
52818         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
52819         needed, since the source code now assumes these .h files.
52820
52821 2005-10-05  Derek Price  <derek@ximbiot.com>
52822
52823         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
52824
52825 2005-10-05  Bruno Haible  <bruno@clisp.org>
52826
52827         * modules/stdint (License): Change to LGPL.
52828
52829 2005-10-04  Simon Josefsson  <jas@extundo.com>
52830
52831         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
52832         D. Baushke" <mdb@gnu.org>.
52833
52834 2005-10-04  Bruno Haible  <bruno@clisp.org>
52835
52836         * lib/verify.h (verify_true): Provide alternative definition for C++.
52837
52838 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
52839
52840         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
52841         (SSIZE_MAX): New macro, if not already defined.
52842         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
52843         than 2 GiB.
52844
52845 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52846
52847         Sync from coreutils.
52848         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
52849         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
52850         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
52851         ULLONG_MAX doesn't work with 2.7.2.1.
52852
52853 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
52856         From Ben Pfaff.
52857
52858         * modules/exclude (Depends-on): Depend on verify.
52859         * modules/strtoimax (Depends-on): Likewise.
52860         * modules/utimecmp (Depends-on): Likewise.
52861
52862 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52863
52864         * lib/exclude.c: Include verify.h.
52865         (verify): Remove.  All callers changed to use verify.h's version.
52866         * lib/strtoimax.c: Likewise.
52867         * lib/utimecmp.c: Likewis.e
52868
52869         Sync from coreutils.
52870         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
52871         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
52872         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
52873         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
52874         bother returning ENOSYS if settimeofday or stime fails; just let
52875         them return whatever errno they want to return.
52876         * lib/utimens.c: Include unistd.h, for dup2.
52877         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
52878         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
52879
52880 2005-10-02  Jim Meyering  <jim@meyering.net>
52881
52882         Sync from coreutils.
52883         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
52884         from glibc-2.2.5 that fails for read-only files.
52885
52886 2005-10-02  Jim Meyering  <jim@meyering.net>
52887
52888         Sync from coreutils.
52889         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
52890         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
52891         `#if HAVE_CONFIG_H'.
52892         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
52893         Remove AT_FDCWD test.
52894         Do not consume the fd unless successful.
52895         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
52896         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
52897         block, so that we don't even try to compile it if settimeofday is
52898         available.  This works around a compilation failure on OSF1 V5.1,
52899         due to stime requiring a `long int*' while tv_sec is `int'.
52900
52901 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
52902
52903         Sync from coreutils.
52904         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
52905         against `yes', rather than just testing for nonempty.
52906
52907 2005-10-01  Simon Josefsson  <jas@extundo.com>
52908
52909         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
52910         and Darwin.
52911
52912         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
52913         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
52914         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
52915         freeaddrinfo and gai_strerror are declared by the POSIX headers.
52916         Check if struct addrinfo is declared.
52917
52918 2005-10-01  Simon Josefsson  <jas@extundo.com>
52919
52920         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
52921         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
52922         AI_* and EAI_* definitions.  Protect function declarations.
52923
52924 2005-10-01  Jim Meyering  <jim@meyering.net>
52925
52926         Sync from coreutils.
52927
52928         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
52929         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
52930         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
52931         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52932         in the inet and nsl libraries.  Required on Solaris 5.7.
52933
52934 2005-10-01  Jim Meyering  <jim@meyering.net>
52935
52936         Sync from coreutils.
52937         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52938         in the inet and nsl libraries.  Required on Solaris 5.7.
52939
52940 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
52941
52942         * lib/getdelim.c (getdelim): Remove unused variables.
52943
52944 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52945
52946         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
52947         so that the code works even with ancient cpp.  Portability problem
52948         with GCC 2.7.2.1 reported by Thomas M.Ott.
52949
52950 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52951
52952         * modules/regex (Depends-on): Add strcase.
52953
52954         * modules/gethostname (Licence): Change from GPL to LGPL, since
52955         gethostname.c is a trivial implementation of a standard library
52956         function.
52957         * modules/poll (License): Change from GPL to LGPL, since it's
52958         derived from LGPL code.
52959
52960 2005-09-27  Jim Meyering  <jim@meyering.net>
52961
52962         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
52963         HAVE_CONFIG_H.
52964
52965         * lib/intprops.h (signed_type_or_expr__): Define.
52966         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
52967         for unsigned types.
52968
52969 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52970
52971         * lib/verify.h (verify_expr): Remove, replacing with:
52972         (verify_true): New macro that returns true instead of void.
52973         (verify_type__): Remove.
52974         (verify): Use verify_true rather than verify_type__.
52975
52976 2005-09-26  Bruno Haible  <bruno@clisp.org>
52977
52978         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
52979         is necessary.
52980         (lib_SOURCES): Remove mbchar.c.
52981         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
52982         (Files): Add m4/mbrtowc.m4.
52983         * modules/mbiter: Likewise.
52984         * modules/mbuiter: Likewise.
52985
52986 2005-09-26  Bruno Haible  <bruno@clisp.org>
52987
52988         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
52989         compile mbchar.c if they are not both present.
52990         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
52991         * m4/mbiter.m4 (gl_MBITER): Likewise.
52992         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
52993         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
52994         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
52995
52996 2005-09-25  Jim Meyering  <jim@meyering.net>
52997
52998         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
52999         also uses socklen_t.
53000
53001 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
53002
53003         * lib/utimens.c (ENOSYS): Define if not already defined.
53004         (futimens): Support having a null PATH if the file descriptor
53005         is nonnegative.
53006
53007         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
53008         Remove.
53009         (__attribute): Define to empty unless GCC 3.1 or later.
53010         This works around a core dump on OpenBSD 3.4, which has GCC
53011         2.95.3, which dumps core when given __attribute__(()).  It also
53012         simplifies other tests, since we really don't want to bother with
53013         worrying about which ancient version of GCC supported what.
53014         Original problem reported by Yoann Vandoorselaere, with part of
53015         the fix suggested by Derek Price.
53016
53017 2005-09-24  Jim Meyering  <jim@meyering.net>
53018
53019         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
53020         so we can once again use a positive bitfield width of 1 -- now we
53021         don't have to explain why we were using a bitfield width of 2.
53022
53023 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53024
53025         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
53026         and similarly for the other external symbols.  Problem reported
53027         by James Gallager.
53028
53029         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
53030         bug reported by Jim Meyering.
53031
53032         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
53033         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
53034         not needed, since socklen is a prerequisite module.
53035
53036 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53037
53038         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
53039         Problem reported by Eric Blake.
53040         (getaddrinfo): Initialize se so that it's not garbage.
53041         Redo internal storage allocation so that it doesn't make unportable
53042         assumptions about alignment.
53043         Fix a memory leak.
53044
53045         * lib/utimens.c (futimens): Use futimesat if available.
53046         Prefer it to futimes since it doesn't have the futimes bug.
53047
53048         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
53049         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
53050         Instead, declare a function that returns a pointer to an array,
53051         and use verify_type__ to declare the size of the array.
53052         Problem and germ of a solution reported by Bruno Haible.
53053         (verify_type__): Use 2, not 1, for bitfield size, to avoid
53054         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
53055
53056 2005-09-23  Jim Meyering  <jim@meyering.net>
53057
53058         Sync from coreutils.
53059         Correct build failure (socklen_t not defined) on at least
53060         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
53061         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
53062
53063 2005-09-23  Jim Meyering  <jim@meyering.net>
53064
53065         * modules/getaddrinfo (Depends-on): Add socklen.
53066
53067 2005-09-23  Bruno Haible  <bruno@clisp.org>
53068
53069         * tests/test-verify.c: New file.
53070
53071 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53072
53073         Sync from coreutils.
53074
53075         * modules/argmatch (Depends-on): Add verify.
53076         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
53077         unistd-safer.
53078         * modules/save-cwd (Depends-on): Likewise.
53079
53080         * modules/openat (Files): Add lib/openat-die.c.
53081         (Depends-on): Remove error, exitfail.
53082         Add dirname.
53083
53084         * modules/verify: New file.
53085         * MODULES.html.sh (Diagnostics <assert.h>): New section,
53086         with "verify" module.
53087
53088 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53089
53090         Sync from coreutils.
53091
53092         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
53093         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
53094         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
53095         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
53096         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
53097         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
53098         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
53099         Don't bother checking for string.h, stdlib.h, unistd.h.
53100         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
53101         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
53102         module's job.
53103         * m4/jm-macros.m4 (gl_MACROS): Likewise.
53104         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
53105
53106         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
53107         (gl_GETDATE): Use it.
53108
53109         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
53110
53111 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53112
53113         Sync from coreutils.
53114
53115         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
53116         stat-time.h.
53117         * lib/argmatch.h: Include verify.h
53118         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
53119         (ARGMATCH_ASSERT): Remove; unused.
53120         * lib/canonicalize.c: Assume STDC_HEADERS.
53121         * lib/exclude.c: Include "strcase.h".
53122         * lib/regex_internal.h [!defined _LIBC]: Likewise.
53123         * lib/getusershell.c: Include stdio--.h rather than stdio.h
53124         and stdio-safer.h.
53125         (getusershell): Call fopen, not fopen_safer.
53126         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
53127         Do not include unistd-safer.h.
53128         (save_cwd): Don't call fd_safer; no longer needed
53129         now that we include fcntl--.h.
53130
53131         * lib/getdate.y (relative_time): New type.
53132         (RELATIVE_TIME_0): New constant.
53133         (parser_control): Use relative_time instead of doing it ourselves.
53134         (%union): Add new relative_time rel member.
53135         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
53136         Now typeless.
53137         (relunit, relunit_snumber): Now of type rel.
53138         (zone, rel, relunit, get_date): Adjust to above changes.
53139
53140         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
53141         Do not include unistd-safer.h.
53142         (getloadavg): Don't call fd_safer; no longer needed
53143         now that we include fcntl--.h.
53144
53145         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
53146         (make_dir_parents): Treat ENOSYS like EEXIST.
53147
53148         Improve quality of diagnostics on restore_cwd failure.
53149         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
53150         (make_dir_parents): Last arg is now int * (for errno), not bool *.
53151         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
53152         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
53153         each time through the loop.  Do not diagnose restore_cwd failure;
53154         that is the caller's job (and perhaps the caller does not care).
53155
53156         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
53157         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
53158         If the file already exists but is not a directory, don't bother
53159         to try to make its parents.
53160         Close potential file descriptor leak if we can't chdir("/") (!).
53161         Don't always return true if chdir($PWD) fails; return true only
53162         if the requested action was done successfully (except for the
53163         chdir($PWD)).
53164         Don't log final directory unless we actually made it.
53165         Refactor to avoid duplicate code to fix up permissions.
53166         Don't attempt to fix up parent permissions if chdir($PWD) fails.
53167
53168         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
53169         to make it a bit faster and (I hope) clearer.
53170         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
53171         Fix bug in formats like %2N.
53172
53173         * lib/verify.h: New file.
53174
53175 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53176
53177         Sync from coreutils.
53178         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
53179
53180 2005-09-22  Jim Meyering  <jim@meyering.net>
53181
53182         Sync from coreutils.
53183
53184         * m4/lstat.m4 (gl_FUNC_LSTAT):
53185         Use AC_LIBSOURCES to require lstat.c and lstat.h.
53186         Remove obsolete comment.
53187         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
53188         * m4/xstrtod.m4: Likewise.
53189
53190         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
53191
53192 2005-09-22  Jim Meyering  <jim@meyering.net>
53193
53194         Sync from coreutils.
53195
53196         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
53197
53198         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
53199         the .tm_year member, since otherwise gcc-4.0 would now warn about
53200         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
53201
53202         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
53203         order to avoid an unsuppressible warning from gcc on 64-bit systems.
53204
53205         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
53206         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
53207         when run in a time zone for which daylight savings time is in effect
53208         for the starting date.
53209
53210         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
53211         stop us from restricting permissions of just-created absolute-named
53212         directories.
53213         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
53214         to restore initial working directory.
53215         * lib/mkdir-p.c (make_dir_parents): New parameter:
53216         different_working_dir, to tell caller if/when we change the working
53217         directory and are unable to return to the initial one.
53218         * lib/mkdir-p.h (make_dir_parents): Update prototype.
53219         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
53220         `return false'.  This fixes a bug introduced on 2004-07-30.
53221
53222         * lib/openat.c (fdopendir): Be sure to close the supplied
53223         file descriptor before returning.  This makes our replacement
53224         implementation a little closer to Solaris's, where fdopendir
53225         ties the file descriptor to the returned DIR* pointer.
53226         * lib/openat.c (unlinkat): New function.
53227         * lib/openat.h (unlinkat): Add prototype.
53228         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
53229         (openat_restore_fail): Rename from openat_restore_die.
53230         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
53231
53232         Provide an alternative to exiting immediately upon save_cwd or
53233         restore_cwd failure.  Now, an application can arrange e.g.,
53234         to perform a longjump in that case.
53235         * lib/openat.c: Include dirname.h.
53236         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
53237         (rpl_openat, fdopendir, fstatat): Call openat_save_die
53238         and openat_restore_die rather than calling error directly.
53239         Don't include "error.h" or "exitfail.h"; they're no longer needed.
53240
53241         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
53242         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
53243         define.
53244
53245         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
53246         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
53247                             int utc, int nanoseconds);
53248         Background:
53249         date should not have to allocate a megabyte of virtual memory to
53250         handle a format argument like +%1048575T.  When implemented with
53251         strftime, it must allocate such a buffer, use strftime to fill it
53252         in, print it, then free it.
53253         With fprintftime, it simply prints everything and exits.
53254         With no need for memory allocation, that's one fewer way to fail.
53255         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
53256         optional field width, not before, so we accept %9:z, not %:9z.
53257         (my_strftime): Be sure to use L_('x') for literals.
53258
53259         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
53260         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
53261         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
53262         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
53263         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
53264         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
53265         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
53266         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
53267         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
53268         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
53269         * lib/xgethostname.c, lib/xreadlink.c:
53270         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
53271
53272         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
53273         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
53274         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
53275         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
53276         and don't include <sys/file.h>).
53277
53278 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
53279
53280         Sync from coreutils.
53281
53282         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
53283         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
53284         [!LDAV_DONE]: Avoid unused variable warning.
53285
53286 2005-09-21  Bruno Haible  <bruno@clisp.org>
53287
53288         * lib/unicodeio.h (unicode_to_mb): New declaration.
53289
53290 2005-09-20  Derek Price  <derek@ximbiot.com>
53291
53292         * lib/getaddrinfo.c: Don't include <netdb.h> included from
53293         getaddrinfo.h.
53294
53295 2005-09-20  Bruno Haible  <bruno@clisp.org>
53296
53297         * gnulib-tool: Remove trailing slashes from the values specified for
53298         --source-base, --m4-base, --tests-base, --aux-dir.
53299         Suggested by Simon Josefsson <jas@extundo.com>.
53300
53301 2005-09-20  Bruno Haible  <bruno@clisp.org>
53302
53303         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
53304         func_modules_to_filelist, func_import, func_create_testdir): Make all
53305         sorting results locale-independent, so that gnulib-cache.m4 doesn't
53306         change when gnulib-tool is invoked in a different locale.
53307
53308 2005-09-19  Simon Josefsson  <jas@extundo.com>
53309
53310         * m4/socklen.m4: Fix typo.
53311
53312 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53313
53314         Use a consistent style for including <config.h>.
53315         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
53316         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
53317         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
53318         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
53319         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
53320         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
53321         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
53322         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
53323         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
53324         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
53325         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
53326         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
53327         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
53328         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
53329         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
53330         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
53331         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
53332         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
53333         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
53334         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
53335         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
53336         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
53337         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
53338         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
53339         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
53340         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
53341         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
53342         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
53343         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
53344         lib/xstrtoumax.c, lib/yesno.c:
53345         Standardize inclusion of config.h.
53346         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
53347         lib/inttostr.h:  Removed inclusion of config.h from header files.
53348         * lib/inttostr.c:  Adjusted in-tree users.
53349         * lib/timespec.h: Remove superfluous warning to include config.h.
53350         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
53351         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
53352         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
53353         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
53354         config.h with HAVE_CONFIG_H.
53355
53356 2005-09-19  Jim Meyering  <jim@meyering.net>
53357
53358         * modules/pathmax (License): Change to LGPL.
53359
53360 2005-09-19  Derek Price  <derek@ximbiot.com>
53361
53362         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
53363
53364 2005-09-19  Bruno Haible  <bruno@clisp.org>
53365
53366         * gnulib-tool (import): Provide default for --tests-base.
53367
53368 2005-09-19  Bruno Haible  <bruno@clisp.org>
53369
53370         * doc/quote.texi: New file, extracted from gnulib.texi.
53371         * doc/ctime.texi: New file, extracted from gnulib.texi.
53372         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
53373         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
53374         * doc/gnulib.texi: Include them.
53375
53376 2005-09-18  Bruno Haible  <bruno@clisp.org>
53377
53378         Portability fix.
53379         * gnulib-tool (func_readlink): New function.
53380         (func_ln_if_changed): Use it.
53381
53382 2005-09-18  Bruno Haible  <bruno@clisp.org>
53383
53384         * gnulib-tool: Support --with-tests also with --import.
53385         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
53386         (func_import): Use variables $testsbase and $inctests. Emit a
53387         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
53388         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
53389         SUBDIRS += $testsdir.
53390         (func_create_testdir): Update.
53391
53392 2005-09-18  Bruno Haible  <bruno@clisp.org>
53393
53394         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
53395         instead of $dry_run.
53396         (func_cp_if_changed, func_mv_if_changed): Remove functions.
53397         (func_ln_if_changed): Don't handle dry-run here.
53398         (func_import): In dry-run mode, detect more precisely which actions
53399         would be performed, and don't use "...ing" verbs.
53400
53401 2005-09-18  Bruno Haible  <bruno@clisp.org>
53402
53403         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
53404         (func_import): Use join on two temporary files instead of three nested
53405         loops, in order to determine which files are new or old.
53406
53407 2005-09-18  Bruno Haible  <bruno@clisp.org>
53408
53409         * gnulib-tool (func_import): Comment out code that spits out the
53410         new files with --dry-run.
53411
53412 2005-09-18  Bruno Haible  <bruno@clisp.org>
53413
53414         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
53415
53416 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53417
53418         * lib/stat-time.h: New file.
53419         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
53420         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
53421         in a different way.
53422         (timespec_cmp): New function.
53423         * lib/utimecmp.c: Include stat-time.h.
53424         (SYSCALL_RESOLUTION): Depend on whether various struct stat
53425         members exist, not on the obsolescent ST_MTIM_NSEC.
53426         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
53427
53428 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53429
53430         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
53431
53432 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53433
53434         * MODULES.html.sh (File system functions): Add stat-time.
53435         * modules/stat-time: New file.
53436         * modules/timespec (Files): Remove m4/st_mtim.m4; this
53437         is now done in a different way, by the stat-time module.
53438         * modules/utimecmp (Depends-on): Add stat-time.
53439
53440 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53441
53442         * m4/st_mtim.m4: Remove.  Superseded by...
53443         * m4/stat-time.m4: New file.
53444         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
53445         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
53446
53447 2005-09-15  Derek Price  <derek@ximbiot.com>
53448
53449         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
53450
53451 2005-09-15  Derek Price  <derek@ximbiot.com>
53452
53453         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
53454         * lib/regex_internal.c: Ditto, using this...
53455         (__GNUC_PREREQ): ...new macro.
53456         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
53457         using...
53458         (__GNUC_PREREQ): ...this new macro.
53459
53460         * lib/strstr.h: Include string.h. Define strstr as a macro here.
53461
53462 2005-09-15  Derek Price  <derek@ximbiot.com>
53463             Paul Eggert  <eggert@cs.ucla.edu>
53464
53465         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
53466         changes, consolidating in...
53467         * lib/regex_internal.h: ...this file.
53468
53469 2005-09-13  Jim Meyering  <jim@meyering.net>
53470
53471         * lib/canon-host.c: Filter through gnu indent and reword comments
53472         slightly.
53473         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
53474
53475 2005-09-13  Derek Price  <derek@ximbiot.com>
53476
53477         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
53478         failure.
53479         Reported by Jim Meyering  <jim@meyering.net>.
53480
53481 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53482
53483         * lib/base64.c: Typo.
53484         (base64_encode): Put b64str in initialized data section.
53485
53486 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
53487
53488         Merge glibc and coreutils changes into gnulib, plus a few
53489         extra fixes.
53490         * lib/md5.c: Use #error rather than a string.
53491         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
53492         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
53493         (__attribute__): Define to empty for non recent-GCC.
53494         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
53495         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
53496         Renamed from their non-__ counterparts, with new macros replacing
53497         them if not _LIBC.  Add __THROW attribute.
53498         (rol): Remove.
53499         (struct md5_ctx): Align buffer if using GCC.
53500         * lib/sha1.h (struct sha1_ctx): Likewise.
53501         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
53502         The old name was backwards.
53503         (NOTSWAP): Remove; not used.
53504         (rol): New macro, moved here from md5.h.
53505         (sha1_process_block): Remove a FIXME that doesn't make sense.
53506
53507 2005-09-12  Derek Price  <derek@ximbiot.com>
53508
53509         Return usable errors from canon-host.
53510         * lib/canon-host.h: New file.
53511         * lib/canon-host.c (canon_host): Wrap...
53512         (canon_host_r): ...this new function, which now relies exclusively on
53513         getaddrinfo.
53514         (ch_strerror): New function.
53515         (last_cherror): New global.
53516         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
53517         interface.
53518         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
53519         void *.
53520         (freeaddrinfo): Free ai->ai_canonname when set.
53521
53522 2005-09-12  Derek Price  <derek@ximbiot.com>
53523
53524         Make canon-host require getaddrinfo.
53525         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
53526         AC_LIBSOURCE canon-host.h.  Call...
53527         (gl_PREREQ_CANON_HOST): ...this new function, which requires
53528         gl_GETADDRINFO.
53529         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
53530
53531 2005-09-12  Derek Price  <derek@ximbiot.com>
53532
53533         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53534         LGPL.
53535         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53536
53537 2005-09-12  Derek Price  <derek@ximbiot.com>
53538
53539         * lib/gai_strerror.c: Include config.h when available.  Include
53540         getaddrinfo.h before other headers to test interface.
53541         Reported by Larry Jones <lawrence.jones@ugs.com>.
53542
53543 2005-09-12  Derek Price  <derek@ximbiot.com>
53544             Paul Eggert  <eggert@cs.ucla.edu>
53545
53546         * modules/glob (Files): Add glob-libc.h.
53547
53548 2005-09-12  Derek Price  <derek@ximbiot.com>
53549             Paul Eggert  <eggert@cs.ucla.edu>
53550
53551         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53552         glob_.h, glob-libc.h.
53553         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53554
53555 2005-09-12  Derek Price  <derek@ximbiot.com>
53556             Paul Eggert  <eggert@cs.ucla.edu>
53557
53558         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53559         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53560         protecting things that should be done only in gnulib contexts.
53561         * lib/glob_.h: New file, containing only the glob things needed for
53562         gnulib.
53563         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53564         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53565         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53566         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53567         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53568         and to respect the namespace rules better.
53569
53570 2005-09-08  Simon Josefsson  <jas@extundo.com>
53571
53572         * modules/socklen: New file.
53573
53574 2005-09-08  Simon Josefsson  <jas@extundo.com>
53575
53576         * m4/socklen.m4: New file.
53577
53578 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53579
53580         * modules/utimens (Files): Add m4/utimbuf.m4, since
53581         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53582         Reported by Sergey Poznyakoff.
53583
53584 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53585
53586         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53587         definitions, since that's the preferred style in glibc.
53588         Fix a minor spacing issue, and update copyright notice to match
53589         glibc's.
53590
53591 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53594
53595 2005-09-06  Simon Josefsson  <jas@extundo.com>
53596
53597         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53598         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53599
53600 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53601
53602         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53603         warning.
53604
53605 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53606
53607         * config/srclist.txt: Add glibc bug 1302.
53608
53609 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53610
53611         Change bitset word type from unsigned int to unsigned long int,
53612         as this has better performance on typical 64-bit hosts.
53613         Port bitset code to hosts with unusual word sizes.
53614         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53615         (build_collating_symbol):
53616         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53617         argument is a bitset.  This is merely a style issue, but it makes
53618         it clearer that an entire array is expected.
53619         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53620         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53621         Port to the case where bitset_word is not the same as unsigned int.
53622         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53623         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53624         Likewise.
53625         * lib/regexec.c (check_dst_limits_calc_pos_1,
53626         check_subexp_matching_top):
53627         (build_trtable, group_nodes_into_DFAstates):
53628         Likewise.
53629         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53630         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53631         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53632         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53633         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53634         * lib/regcomp.c (optimize_subexps, lower_subexp):
53635         Work even if bitset_word has holes in its bitwise representation.
53636         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53637         * lib/regexec.c (check_dst_limits_calc_pos_1,
53638         check_subexp_matching_top):
53639         Likewise.
53640         * lib/regex_internal.c (re_string_reconstruct):
53641         Don't assume UCHAR_MAX == 255.
53642         * lib/regex_internal.h (bitset_set_all): Likewise.
53643         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53644         All uses changed.
53645         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53646         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53647         All uses changed.
53648         (BITSET_WORD_MAX): New macro.
53649         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53650         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53651         (bitset_empty, bitset_copy):
53652         Prefer sizeof (bitset) to multiplying it out ourselves.
53653         (bitset_not_merge): Remove; unused.
53654         (bitset_contain): Return bool, not unsigned int with one bit on.
53655         All callers changed.
53656         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53657         alignment than re_node_set; do this by defining a new internal
53658         type struct dests_alloc and using it to allocate memory.
53659
53660 2005-09-05  Bruno Haible  <bruno@clisp.org>
53661
53662         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53663         links.
53664
53665 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53666
53667         * modules/size_max (Makefile.am): Add size_max.h
53668
53669 2005-09-04  Derek Price  <derek@ximbiot.com>
53670
53671         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53672
53673 2005-09-03  Simon Josefsson  <jas@extundo.com>
53674
53675         * gnulib-tool: Fix typo.
53676
53677 2005-09-03  Simon Josefsson  <jas@extundo.com>
53678
53679         * config/srclist.txt: Add glibc bug 1293.
53680
53681 2005-09-03  Derek Price  <derek@ximbiot.com>
53682
53683         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53684         From Larry Jones <lawrence.jones@ugs.com>.
53685
53686 2005-09-02  Simon Josefsson  <jas@extundo.com>
53687
53688         * modules/socklen: New file.
53689
53690 2005-09-02  Simon Josefsson  <jas@extundo.com>
53691
53692         * modules/havelib: New module.
53693
53694         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53695         Use havelib.
53696
53697 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53698
53699         Check for arithmetic overflow when calculating sizes, to prevent
53700         some buffer-overflow issues.  These patches are conservative, in the
53701         sense that when I couldn't determine whether an overflow was possible,
53702         I inserted a run-time check.
53703         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53704         macros.
53705         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53706         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53707         (re_xnrealloc, re_x2nrealloc): New inline functions.
53708         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53709         parse_bracket_exp):
53710         (build_equiv_class, build_charclass): Check for arithmetic overflow
53711         in size expression calculations.
53712         * lib/regex_internal.c (re_string_realloc_buffers):
53713         (build_wcs_upper_buffer, re_node_set_add_intersect):
53714         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53715         (re_dfa_add_node, register_state): Likewise.
53716         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53717         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53718         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53719         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
53720
53721 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53722
53723         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53724         m4/ulonglong.m4.  Problem reported by Martin Lambers.
53725
53726 2005-09-02  Bruno Haible  <bruno@clisp.org>
53727
53728         Support for lib vs. lib64 distinction on biarch platforms.
53729         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
53730         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
53731         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
53732
53733 2005-09-02  Bruno Haible  <bruno@clisp.org>
53734
53735         * gnulib-tool (import): In the other first-use case, provide defaults
53736         as well.
53737
53738 2005-09-02  Bruno Haible  <bruno@clisp.org>
53739
53740         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
53741         patches not yet found in the latest gettext release.
53742
53743 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53744
53745         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
53746         to avoid a collision with bits/local_lim.h in glibc.
53747         All uses changed.  Problem reported by Dmitry V. Levin in
53748         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
53749
53750         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
53751         bugs in int versus size_t comparisons.
53752         (re_string_context_at): Fix bug where the code assumed that
53753         Idx is signed.
53754
53755         Use bool where appropriate.
53756         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
53757         All callers changed.
53758         (calc_eclosure_iter): Likewise, for ROOT arg.
53759         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
53760         (build_charclass_op): Likewise, for NON_MATCH arg.
53761         * lib/regex_internal.c (re_string_allocate, re_string_construct):
53762         (re_string_construct_common): Likewise, for ICASE arg.
53763         * lib/regexec.c (re_search_2_stub, re_search_stub):
53764         Likewise, for RET_LEN arg.
53765         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
53766         (set_regs): Likewise, for FL_BACKTRACK arg.
53767         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
53768         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
53769         (calc_eclosure_iter, parse_bracket_exp):
53770         Use bool for internal variables that are booleans.
53771         * lib/regexec.c (re_search_internal, check_matching,
53772         proceed_next_node):
53773         (set_regs, build_sifted_states, sift_states_bkref):
53774         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
53775         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53776         (find_collation_sequence_value):
53777         Likewise.
53778         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
53779         (re_node_set_compare):
53780         Return bool, not int. All callers changed.
53781         * lib/regexec.c (check_halt_node_context, check_dst_limits):
53782         (build_trtable, check_node_accept): Likewise.
53783         * lib/regex_internal.h: Include stdbool.h.
53784
53785         Fix bugs uncovered when converting to bool.
53786         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
53787         failure instead of charging ahead blindly.
53788         * lib/regex_internal.c (register_state): Likewise.
53789         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
53790         for freeing internal storage.
53791         (group_nodes_into_DFA_states): Use unsigned int, not int, for
53792         bitset pieces used as boolean, to avoid undefined behavior
53793         on hosts that do int overflow checking.
53794
53795 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53796
53797         * config/srclist.txt: Add glibc bugs 1285-1287.
53798
53799 2005-09-01  Jim Meyering  <jim@meyering.net>
53800
53801         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
53802         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
53803         Require gl_STAT_MACROS, too.
53804
53805 2005-09-01  Bruno Haible  <bruno@clisp.org>
53806
53807         * gnulib-tool (import): In the first-use case, provide defaults.
53808
53809 2005-09-01  Bruno Haible  <bruno@clisp.org>
53810
53811         * gnulib-tool (func_import): Remove the .tmp files.
53812
53813 2005-09-01  Bruno Haible  <bruno@clisp.org>
53814
53815         * gnulib-tool (func_import): Fix handling of symbolic links.
53816
53817 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53818
53819         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
53820         old glibc regex code mishandles strings longer than 2**31 bytes.
53821         This patch fixes this when the regex code is used in gnulib
53822         (i.e., outside glibc).
53823
53824         This patch should not affect the use of the regex code inside
53825         glibc.  No doubt this problem also needs to be handled for glibc
53826         as well, but the result will be an incompatible change to the
53827         glibc ABI, and the old ABI will have to be supported too.  That
53828         can be the the subject for another patch.
53829
53830         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
53831         governing whether the rest of this patch is active.  By default,
53832         the macro is disabled and the patch has no effect.
53833         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
53834         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
53835         (struct re_pattern_buffer, re_search, re_search_2, re_match):
53836         (re_match_2, re_set_registers): Use the new types.
53837         * lib/regex_internal.h (Idx, re_hashval_t): New types.
53838         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
53839         New macros.
53840         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
53841         (re_string_context_at, bin_tree_t, re_dfastate_t):
53842         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
53843         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
53844         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
53845         (re_string_char_size_at, re_string_wchar_at):
53846         (re_string_elem_size_at):
53847         Use the new types and macros to port to 64-bit hosts.
53848         Use unsigned types for internal values, so that the code
53849         mostly works even for arrays larger than SSIZE_MAX.
53850         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
53851         (search_duplicated_node, calc_eclosure_iter, fetch_number):
53852         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
53853         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
53854         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
53855         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
53856         (calc_inveclosure, parse_dup_op, build_range_exp):
53857         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
53858         (fetch_number, create_token_tree, mark_opt_subexp):
53859         Likewise.
53860         * lib/regex_internal.c (re_string_construct_common,
53861         create_ci_newstate):
53862         (create_cd_newstate, re_string_allocate, re_string_construct):
53863         (re_string_realloc_buffers, build_wcs_upper_buffer):
53864         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
53865         (re_string_reconstruct, re_string_peek_byte_case):
53866         (re_string_fetch_byte_case, re_string_context_at):
53867         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
53868         (re_node_set_init_copy, re_node_set_add_intersect):
53869         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53870         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53871         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
53872         (re_acquire_state, re_acquire_state_context, register_state):
53873         Likewise.
53874         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
53875         search_cur_bkref_entry):
53876         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
53877         (re_search_internal, re_search_2_stub, re_search_stub)
53878         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
53879         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
53880         (update_cur_sifted_state, check_dst_limits):
53881         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53882         (check_subexp_limits, sift_states_bkref, merge_state_array):
53883         (check_subexp_matching_top, get_subexp, get_subexp_sub):
53884         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
53885         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
53886         (expand_bkref_cache, check_node_accept_bytes):
53887         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
53888         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
53889         (acquire_init_state_context, check_halt_node_context):
53890         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
53891         (sift_states_backward, clean_state_log_if_needed):
53892         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
53893         (find_recover_state, transit_state_sb, transit_state_mb):
53894         (transit_state_bkref, build_trtable, match_ctx_clean):
53895         Likewise.
53896         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
53897         to work around an assumption that REG_MISSING is negative.
53898
53899         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
53900         (seek_collating_symbol_entry) [defined _LIBC]:
53901         (lookup_collation_sequence_value) [defined _LIBC]:
53902         (build_range_exp, build_collating_symbol) [defined _LIBC]:
53903         Use prototypes rather than old-style function definitions.
53904         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
53905         (transit_state_sb) [0]:
53906         (find_collation_sequence_value) [defined _LIBC]: Likewise.
53907
53908         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
53909         rm_eo.
53910
53911         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
53912         (optimize_subexps, lower_subexp):
53913         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
53914         since the signed shift might overflow.  Use 1u<<31 instead.
53915         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53916         Likewise.
53917         * lib/regexec.c (check_dst_limits_calc_pos_1,
53918         check_subexp_matching_top): Likewise.
53919
53920         * lib/regcomp.c (optimize_subexps, lower_subexp):
53921         Use CHAR_BIT rather than 8, for clarity.
53922         * lib/regexec.c (check_dst_limits_calc_pos_1):
53923         (check_subexp_matching_top): Likewise.
53924         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
53925         have to worry about portability issues when shifting it left.
53926         Remove no-longer-needed test for table_size > 0.
53927         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
53928         in a word, as the resulting behavior is undefined.
53929         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
53930         in one case, a <= should have been an <, and in another case the
53931         whole test was missing.
53932         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
53933         the standard name CHAR_BIT.
53934         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
53935         this is not true on one's complement and signed-magnitude hosts.
53936
53937         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
53938         next_last_offset.
53939         (struct re_dfa_t): Remove unused member states_alloc.
53940         * lib/regcomp.c (init_dfa): Don't initialize unused members.
53941
53942 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53943
53944         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
53945         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
53946         and large-file glibc and in 32-bit large-file Solaris.
53947
53948 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53949
53950         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
53951         lengths fit in regoff_t; this isn't true if regoff_t is the same
53952         width as size_t.
53953         * lib/regex.c (re_search_internal): 5th arg is LAST_START
53954         (= START + RANGE) instead of RANGE.  This avoids overflow
53955         problems when regoff_t is the same width as size_t.
53956         All callers changed.
53957         (re_search_2_stub): Check for overflow when adding the
53958         sizes of the two strings.
53959         (re_search_stub): Check for overflow when adding START
53960         to RANGE; if it occurs, substitute the extreme value.
53961
53962 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53963
53964         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
53965
53966 2005-08-31  Jim Meyering  <jim@meyering.net>
53967
53968         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
53969         a pointer-to-const.
53970         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
53971         (register_state): Likewise.
53972         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
53973         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53974         (group_nodes_into_DFAstates): Likewise.
53975
53976 2005-08-31  Jim Meyering  <jim@meyering.net>
53977
53978         * check-module: Add a FIXME comment.
53979
53980 2005-08-31  Eric Blake  <ebb9@byu.net>
53981
53982         * modules/unistd-safer (Files): Add unistd--.h.
53983         * modules/stdio-safer (Files): Add stdio--.h.
53984
53985 2005-08-31  Derek Price  <derek@ximbiot.com>
53986
53987         * lib/getdelim.c (getdelim): Return EOF on EOF.
53988         Reported by Larry Jones <lawrence.jones@ugs.com>.
53989
53990 2005-08-31  Bruno Haible  <bruno@clisp.org>
53991
53992         Avoid unnecessary diffs in the generated lib/Makefile.am.
53993         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
53994         the generated files.
53995         (func_import): Don't set cmd.
53996
53997 2005-08-31  Bruno Haible  <bruno@clisp.org>
53998
53999         * lib/strstr.c: Include <stddef.h>, for NULL.
54000         * lib/strcasestr.c: Likewise.
54001         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54002
54003 2005-08-31  Bruno Haible  <bruno@clisp.org>
54004
54005         * gnulib-tool: New option --macro-prefix.
54006         (func_import): Use macro_prefix.
54007         (import): Handle option --macro-prefix.
54008
54009 2005-08-31  Bruno Haible  <bruno@clisp.org>
54010
54011         * gnulib-tool (import): Rename most ac_* variables to cached_*.
54012         Also use new variables cached_lgpl, cached_libtool.
54013
54014 2005-08-31  Bruno Haible  <bruno@clisp.org>
54015
54016         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
54017         always instantiating them.
54018
54019 2005-08-31  Bruno Haible  <bruno@clisp.org>
54020
54021         * gnulib-tool (func_import): Read the previous cached settings
54022         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
54023         earlier added by gnulib but are now dropped. Warn when a gnulib file
54024         overwrites a non-gnulib file.
54025
54026 2005-08-31  Bruno Haible  <bruno@clisp.org>
54027
54028         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
54029         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
54030         projects that don't keep autogenerated files in CVS. Put into
54031         actioncmd only the specified modules, not the transitive closure.
54032
54033 2005-08-31  Bruno Haible  <bruno@clisp.org>
54034
54035         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
54036         Create directories that shall be filled.
54037         (import): Don't look for gl_* macros in configure.ac. Recurse across
54038         all directories containing a gnulib-cache.m4 files, if meaningful.
54039
54040 2005-08-31  Bruno Haible  <bruno@clisp.org>
54041
54042         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
54043         (import): Set seen_libtool when we see gl_LIBTOOL.
54044
54045 2005-08-31  Bruno Haible  <bruno@clisp.org>
54046
54047         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
54048         declaration macro definitions from generated gnulib.m4.
54049
54050 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
54051
54052         * lib/iconvme.h: Add prototype for iconv_alloc.
54053
54054 2005-08-29  Simon Josefsson  <jas@extundo.com>
54055
54056         * lib/iconvme.c: Fix errno.
54057
54058 2005-08-29  Bruno Haible  <bruno@clisp.org>
54059
54060         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
54061         that it works when the directory contains spaces.
54062
54063 2005-08-29  Bruno Haible  <bruno@clisp.org>
54064
54065         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
54066
54067 2005-08-29  Bruno Haible  <bruno@clisp.org>
54068
54069         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
54070         Emit more advice.
54071
54072 2005-08-29  Bruno Haible  <bruno@clisp.org>
54073         and Stepan Kasal  <kasal@ucw.cz>
54074
54075         * check-module: If more parameters are given, check each of them
54076         separately; add more exceptions, as noted by Jim Meyering.
54077         (check_module): New procedure.
54078         (%exempt_header): Now contains all exceptions.
54079
54080 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
54081
54082         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
54083
54084 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54085
54086         * lib/iconvme.c: Split iconv_string into iconv_alloc.
54087
54088 2005-08-28  Bruno Haible  <bruno@clisp.org>
54089
54090         * m4/gnulib-tool.m4: New file.
54091
54092 2005-08-27  Jim Meyering  <jim@meyering.net>
54093
54094         * modules/unistd-safer (Files): Add pipe-safer.c.
54095         * modules/fcntl-safer (Files): Add creat-safer.c.
54096
54097 2005-08-27  Jim Meyering  <jim@meyering.net>
54098
54099         * m4/stdlib-safer.m4: New file.  From coreutils.
54100         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
54101         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
54102         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
54103         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
54104         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
54105
54106 2005-08-27  Jim Meyering  <jim@meyering.net>
54107
54108         * lib/fopen-safer.c: Merge minor changes from coreutils.
54109         * lib/dup-safer.c: Likewise.
54110         * lib/fd-safer.c: Likewise.
54111
54112         Merge from coreutils.
54113         * lib/stdio--.h: New file.
54114         * lib/stdlib--.h: New file.
54115         * lib/mkstemp-safer.c: New file.
54116
54117         GNU tar needs these.
54118         * lib/pipe-safer.c: New file.
54119         * lib/creat-safer.c: New file.
54120         * lib/fcntl--.h (creat): Define to creat_safer.
54121         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
54122         * lib/unistd--.h (pipe): Define to pipe_safer.
54123         * lib/unistd-safer.h: Declare pipe_safer.
54124
54125 2005-08-26  Simon Josefsson  <jas@extundo.com>
54126
54127         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
54128         Haible <bruno@clisp.org>.
54129
54130 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
54131
54132         * lib/regex_internal.h: Remove all references to
54133         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
54134         or better.
54135         (bitset_not, bitset_merge, bitset_not_merge):
54136         (bitset_mask, re_string_allocate, re_string_construct):
54137         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
54138         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
54139         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
54140         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
54141         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54142         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54143         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
54144         (re_acquire_state_context):
54145         Remove unnecessary forward decls.
54146         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
54147         Put __attribute at function definition,
54148         now that the function decl has been removed.
54149         * lib/regex_internal.c (re_string_peek_byte_case):
54150         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
54151         Likewise.
54152
54153 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
54154
54155         * m4/regex.m4: Add AC_PREREQ(2.50).
54156         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
54157
54158 2005-08-25  Simon Josefsson  <jas@extundo.com>
54159
54160         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
54161         __fsetlocking.
54162
54163 2005-08-25  Simon Josefsson  <jas@extundo.com>
54164
54165         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
54166         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
54167         GLIBC specific code.
54168
54169 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54170
54171         Make regex safe for g++.  This fixes one real bug (an "err"
54172         that should have been "*err").  g++ problem reported by
54173         Sam Steingold.
54174         * lib/regex_internal.h (re_calloc): New macro, consistent with
54175         re_malloc etc.  All callers of calloc changed to use re_calloc.
54176         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
54177         not int.  All callers changed.
54178         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
54179         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
54180         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
54181         (find_recover_state): Change "err" to "*err"; this fixes what
54182         appears to be a real bug.
54183         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
54184         versus int.
54185
54186 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54187
54188         * modules/regex (Depends-on): Add malloc, since the code
54189         assumes that !malloc(0) means failure.
54190
54191 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54192
54193         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
54194
54195         alloca modernization/simplification for regex.
54196         * lib/regex.c: Remove portability cruft for alloca.  This no longer
54197         needs to be at the start of the file, and can be moved into
54198         regex_internal.h and simplified.
54199         * lib/regex_internal.h: Include <alloca.h>.
54200         (__libc_use_alloca) [!defined _LIBC]: New macro.
54201         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
54202         now works outside glibc.
54203
54204 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54205
54206         * config/srclist.txt: Add glibc bugs 1241, 1245.
54207
54208 2005-08-25  Jim Meyering  <jim@meyering.net>
54209
54210         * lib/open-safer.c: Include <config.h>.
54211         Otherwise, we'd lose LARGEFILE support in any file using
54212         e.g. "fcntl--.h"
54213
54214 2005-08-25  Bruno Haible  <bruno@clisp.org>
54215
54216         * m4/minmax.m4: Require autoconf 2.52.
54217         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
54218         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
54219         alternatives of translit over the alphabet.
54220         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
54221
54222 2005-08-24  Simon Josefsson  <jas@extundo.com>
54223
54224         * tests/test-getpass.c: New file.
54225
54226 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54227
54228         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
54229         for GNU regex features.
54230
54231 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54232
54233         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
54234         * lib/regex.h (regerror): Likewise.
54235
54236         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
54237         requires this.  (The code never needed it.)
54238
54239         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
54240         All uses of recently-renamed identifiers changed to use the new,
54241         POSIX-compliant names.  The code will build and run just fine
54242         without these changes, but it's better to eat our own dog food
54243         and use the standard-conforming names.
54244
54245         * lib/regex.h: Fix a multitude of POSIX name space violations.
54246         These changes have an effect only for programs that define
54247         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
54248         do not change anything for programs compiled in the normal way.
54249         Also, there is no effect on the ABI.
54250
54251         (_REGEX_SOURCE): New macro.
54252         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
54253         defined and _GNU_SOURCE is not; this fixes a name space violation.
54254
54255         Rename the following macros to obey POSIX requirements.
54256         The old names are still visible as macros if _REGEX_SOURCE is defined.
54257         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
54258         RE_BACKSLASH_ESCAPE_IN_LISTS.
54259         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
54260         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
54261         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
54262         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
54263         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
54264         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
54265         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
54266         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
54267         (REG_INTERVALS): renamed from RE_INTERVALS.
54268         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
54269         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
54270         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
54271         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
54272         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
54273         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
54274         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
54275         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
54276         RE_UNMATCHED_RIGHT_PAREN_ORD.
54277         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
54278         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
54279         (REG_DEBUG): renamed from RE_DEBUG.
54280         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
54281         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
54282         unusual, since we can't clash with the POSIX REG_ICASE.
54283         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
54284         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
54285         (REG_NO_SUB): renamed from RE_NO_SUB.
54286         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
54287         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
54288         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
54289         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
54290         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
54291         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
54292         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
54293         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
54294         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
54295         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
54296         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
54297         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
54298         RE_SYNTAX_POSIX_MINIMAL_BASIC.
54299         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
54300         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
54301         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
54302         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
54303         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
54304         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
54305         (REG_FIXED): Renamed from REGS_FIXED.
54306         (REG_NREGS): Renamed from RE_NREGS.
54307
54308         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
54309         of other REG_* macros, since POSIX says the user is allowed to
54310         #undef these macros selectively.
54311
54312         (reg_errcode_t): Update comment stating what other tables need
54313         to be consistent.
54314
54315         Rename the following enum values to obey POSIX requirements.
54316         The old names are still visible as macros.
54317         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
54318         is not defined, since GNU is supposed to be a superset of POSIX as
54319         much as possible, and since we want reg_errcode_t to be a signed
54320         type for implementation consistency.
54321         (_REG_NOERROR): Renamed from REG_NOERROR.
54322         (_REG_NOMATCH): Renamed from REG_NOMATCH.
54323         (_REG_BADPAT): Renamed from REG_BADPAT.
54324         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
54325         (_REG_ECTYPE): Renamed from REG_ECTYPE.
54326         (_REG_EESCAPE): Renamed from REG_EESCAPE.
54327         (_REG_ESUBREG): Renamed from REG_ESUBREG.
54328         (_REG_EBRACK): Renamed from REG_EBRACK.
54329         (_REG_EPAREN): Renamed from REG_EPAREN.
54330         (_REG_EBRACE): Renamed from REG_EBRACE.
54331         (_REG_BADBR): Renamed from REG_BADBR.
54332         (_REG_ERANGE): Renamed from REG_ERANGE.
54333         (_REG_ESPACE): Renamed from REG_ESPACE.
54334         (_REG_BADRPT): Renamed from REG_BADRPT.
54335         (_REG_EEND): Renamed from REG_EEND.
54336         (_REG_ESIZE): Renamed from REG_ESIZE.
54337         (_REG_ERPAREN): Renamed from REG_ERPAREN.
54338         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
54339         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
54340         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
54341         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
54342
54343         (_REG_RE_NAME, _REG_RM_NAME): New macros.
54344         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
54345         changed.  But support the old name if the new one is not defined
54346         and if _REGEX_SOURCE.
54347
54348         Change the following member names in struct re_pattern_buffer.
54349         The old names are still supported if !_REGEX_SOURCE.
54350         The new names are always supported, regardless of _REGEX_SOURCE.
54351         (re_buffer): Renamed from buffer.
54352         (re_allocated): Renamed from allocated.
54353         (re_used): Renamed from used.
54354         (re_syntax): Renamed from syntax.
54355         (re_fastmap): Renamed from fastmap.
54356         (re_translate): Renamed from translate.
54357         (re_can_be_null): Renamed from can_be_null.
54358         (re_regs_allocated): Renamed from regs_allocated.
54359         (re_fastmap_accurate): Renamed from fastmap_accurate.
54360         (re_no_sub): Renamed from no_sub.
54361         (re_not_bol): Renamed from not_bol.
54362         (re_not_eol): Renamed from not_eol.
54363         (re_newline_anchor): Renamed from newline_anchor.
54364
54365         Change the following member names in struct re_registers.
54366         The old names are still supported if !_REGEX_SOURCE.
54367         The new names are always supported, regardless of _REGEX_SOURCE.
54368         (rm_num_regs): Renamed from num_regs.
54369         (rm_start): Renamed from start.
54370         (rm_end): Renamed from end.
54371
54372         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
54373         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
54374         Prepend __ to parameter names.
54375
54376         Undo yesterday's changes.
54377
54378 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54379
54380         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
54381         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
54382         lib/regex.c.
54383
54384 2005-08-24  Jim Meyering  <jim@meyering.net>
54385
54386         Sync from coreutils.
54387         * m4/fcntl-safer.m4: New file.
54388
54389         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
54390         and object files for this module.
54391
54392 2005-08-24  Jim Meyering  <jim@meyering.net>
54393
54394         Sync from coreutils.
54395         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
54396
54397 2005-08-24  Jim Meyering  <jim@meyering.net>
54398
54399         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
54400         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
54401
54402 2005-08-24  Jim Meyering  <jim@meyering.net>
54403
54404         * modules/fcntl-safer: New module.
54405         * modules/fts (Depends-on): Add fcntl-safer.
54406         * MODULES.html.sh (File descriptor based Input/Output):
54407         Add fcntl-safer.
54408
54409 2005-08-24  Bruno Haible  <bruno@clisp.org>
54410
54411         Support for unit test modules.
54412         * modules/README: Mention tests modules.
54413         * modules/TEMPLATE-TESTS: New file.
54414         * gnulib-tool: New options --extract-tests-module, --with-tests and
54415         --tests-base (unused for the moment).
54416         (testsbase, inctests): New variables.
54417         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
54418         (func_verify_module): Exclude TEMPLATE-TESTS.
54419         (func_verify_nontests_module, func_verify_tests_module): New functions.
54420         (func_get_dependencies): Add implicit dependency for tests modules.
54421         (func_get_tests_module): New function.
54422         (func_modules_transitive_closure): When --with-tests was specified,
54423         include the unit tests as well, unless explicitly avoided.
54424         (func_emit_lib_Makefile_am): Ignore the tests modules here.
54425         (func_emit_tests_Makefile_am): New function.
54426         (func_create_testdir): When --with-tests was specified, emit a
54427         tests/ directory.
54428         * MODULES.html.sh (Future developments): Update.
54429
54430 2005-08-24  Bruno Haible  <bruno@clisp.org>
54431
54432         * modules/tls-tests: New file.
54433         * tests/test-tls.c: New file, from GNU gettext.
54434
54435 2005-08-24  Bruno Haible  <bruno@clisp.org>
54436
54437         * modules/lock-tests: New file.
54438         * tests/test-lock.c: New file, from GNU gettext.
54439
54440 2005-08-24  Bruno Haible  <bruno@clisp.org>
54441
54442         * lib/lock.h: Add multiple inclusion guard.
54443         * lib/tls.h: Add multiple inclusion guard.
54444
54445 2005-08-24  Bruno Haible  <bruno@clisp.org>
54446
54447         * gnulib-tool: Add support for the --aux-dir option to
54448         --create-testdir, --create-megatestdir, --test, --megatest.
54449         (func_create_testdir, func_create_megatestdir): Optionally emit a
54450         AC_CONFIG_AUX_DIR directive.
54451         (create-testdir, create-megatestdir, test, megatest): Provide a
54452         default value for $auxdir.
54453
54454 2005-08-24  Bruno Haible  <bruno@clisp.org>
54455
54456         * gnulib-tool (import): Use compound statement instead of subshell
54457         where possible.
54458
54459 2005-08-24  Bruno Haible  <bruno@clisp.org>
54460
54461         * gnulib-tool (import): Change --aux-dir default to "build-aux".
54462
54463 2005-08-24  Bruno Haible  <bruno@clisp.org>
54464
54465         * gnulib-tool (func_version): Update.
54466
54467 2005-08-24  Bruno Haible  <bruno@clisp.org>
54468
54469         * gnulib-tool (func_import, func_create_testdir,
54470         func_create_megatestdir): Quote all autoconf macro arguments.
54471
54472 2005-08-24  Bruno Haible  <bruno@clisp.org>
54473
54474         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
54475         option --force, because --force causes the aclocal.m4 of each
54476         subdirectory to be newer than the corresponding config.h.in.
54477
54478 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
54481         All contents moved to gl_REGEX.
54482         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
54483         assume that it does.
54484
54485 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         * lib/regex.h (REG_NOSYS)
54488         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
54489         Define, since POSIX requires it as of 2001.
54490         (_REG_ENOSYS)
54491         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
54492         New private symbol, used to keep the enum signed in all cases.
54493         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
54494         Youngman in
54495         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
54496
54497         * lib/regex_internal.c (re_string_skip_chars, register_state):
54498         (calc_state_hash):
54499         Remove forward decls; no longer needed now that we use prototypes.
54500         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
54501         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
54502         (clean_state_log_if_needed): Likewise.
54503
54504 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54505
54506         * config/srclist.txt: Add glibc bugs 1231-1233.
54507
54508 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54509
54510         Fix problems reported by Sam Steingold in
54511         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
54512         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
54513         assumed that reg_errcode_t is a signed type, which is not
54514         necessarily true if _XOPEN_SOURCE is not defined.
54515         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
54516         since some compilers warn about it otherwise.
54517
54518 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54519
54520         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
54521         (init_word_char, create_initial_state, duplicate_node_closure):
54522         (fetch_token, peek_token_bracket, build_range_exp):
54523         (build_collating_symbol): Remove forward decls; no longer needed
54524         now that we use prototypes.
54525
54526         * lib/regcomp.c:
54527         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
54528         (re_compile_fastmap_iter, regcomp, regerror, regfree):
54529         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
54530         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
54531         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54532         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54533         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54534         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54535         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54536         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54537         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54538         (build_charclass, build_charclass_op, fetch_number, create_tree):
54539         (create_token_tree, mark_opt_subexp, duplicate_tree):
54540         Use prototypes rather than old-style definitions.
54541
54542         * lib/regex_internal.c:
54543         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54544         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54545         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54546         (re_string_reconstruct, re_string_peek_byte_case):
54547         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54548         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54549         (re_node_set_init_copy, re_node_set_add_intersect):
54550         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54551         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54552         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54553         (re_acquire_state, re_acquire_state_context, register_state):
54554         (create_ci_newstate, create_cd_newstate, free_state):
54555         Likewise.
54556         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54557         re_search_2):
54558         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54559         (re_search_internal, prune_impossible_nodes):
54560         (acquire_init_state_context, check_matching, static):
54561         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54562         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54563         (update_regs, sift_states_backward, build_sifted_states):
54564         (clean_state_log_if_needed, merge_state_array):
54565         (update_cur_sifted_state, add_epsilon_src_nodes):
54566         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54567         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54568         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54569         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54570         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54571         (check_arrival, check_arrival_add_next_nodes):
54572         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54573         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54574         (check_node_accept_bytes, check_node_accept, extend_buffers):
54575         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54576         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54577         (sift_ctx_init):
54578         Likewise.
54579
54580         * lib/regex_internal.h:
54581         (re_string_allocate, re_string_construct, re_string_reconstruct):
54582         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54583         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54584         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54585         (re_string_context_at, re_string_peek_byte_case):
54586         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54587         is defined, since we now use prototypes always.
54588
54589         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54590         C89 or better.  All uses removed.
54591
54592 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         * config/srclist.txt: Add glibc bugs 1220-1227.
54595
54596 2005-08-20  Jim Meyering  <jim@meyering.net>
54597
54598         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54599         of unused local, dfa.
54600
54601 2005-08-20  Bruno Haible  <bruno@clisp.org>
54602
54603         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54604
54605 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54606
54607         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54608         (re_node_set_insert_last, re_dfa_add_node):
54609         Rename local variables to avoid GCC shadowing warnings.
54610
54611 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54612
54613         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54614         [defined lint]: Suppress bogus uninitialized-variable warnings.
54615
54616         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54617         and let the caller return REG_ESPACE if out of space.  This
54618         removes an uninitialied-variable warning with GCC 4.0.1, and also
54619         avoids taking the address of a local variable.  All callers
54620         changed.
54621
54622 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54623
54624         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54625         $LIBCSRC/posix/regexec.c.
54626         Add glibc bug 1217 for regcomp.c.
54627
54628 2005-08-19  Jim Meyering  <jim@meyering.net>
54629
54630         * lib/regexec.c (proceed_next_node): Redo local variables to
54631         avoid GCC shadowing warnings.
54632
54633 2005-08-18  Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/strstr.c (strstr): Fix return value in multibyte case.
54636         * lib/strcasestr.c (strcasestr): Likewise.
54637
54638 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54639
54640         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54641
54642 2005-08-17  Jim Meyering  <jim@meyering.net>
54643
54644         Make the %s format (seconds since the epoch) work for a negative
54645         number and when used with a zero-padded field width, e.g. %015s.
54646
54647         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54648         label so that it precedes the code to set `digits'.  Otherwise,
54649         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54650         print `00-22'.  Now, it prints `-0022', as it should.
54651
54652 2005-08-17  Bruno Haible  <bruno@clisp.org>
54653
54654         * modules/strstr (Files): Add m4/mbrtowc.m4.
54655         (Depends-on): Add mbuiter.
54656
54657 2005-08-17  Bruno Haible  <bruno@clisp.org>
54658
54659         * modules/strcasestr: New file.
54660         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54661         strcasestr.
54662
54663 2005-08-17  Bruno Haible  <bruno@clisp.org>
54664
54665         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54666
54667 2005-08-17  Bruno Haible  <bruno@clisp.org>
54668
54669         * modules/mbuiter: New file.
54670         * MODULES.html.sh (Extended multibyte and wide character utilities):
54671         Add mbuiter.
54672
54673 2005-08-17  Bruno Haible  <bruno@clisp.org>
54674
54675         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54676         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54677
54678 2005-08-17  Bruno Haible  <bruno@clisp.org>
54679
54680         * m4/strcasestr.m4: New file.
54681
54682 2005-08-17  Bruno Haible  <bruno@clisp.org>
54683
54684         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54685         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54686
54687 2005-08-17  Bruno Haible  <bruno@clisp.org>
54688
54689         * lib/strcasestr.h: New file.
54690         * lib/strcasestr.c: New file.
54691
54692 2005-08-17  Bruno Haible  <bruno@clisp.org>
54693
54694         * lib/strcasecmp.c: Use mbuiter.h.
54695
54696 2005-08-17  Bruno Haible  <bruno@clisp.org>
54697
54698         * lib/mbuiter.h: New file.
54699
54700 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54701
54702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54703         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54704         and gl_GETOPT are both invoked via different paths (as happens
54705         with GNU tar CVS because it uses both argp and getopt), the former
54706         wins.
54707
54708 2005-08-16  Bruno Haible  <bruno@clisp.org>
54709
54710         * modules/tls: New file.
54711         * MODULES.html.sh (Multithreading): Add tls.
54712
54713 2005-08-16  Bruno Haible  <bruno@clisp.org>
54714
54715         * modules/strnlen1: New file.
54716         * MODULES.html.sh (String handling): Add strnlen1.
54717
54718 2005-08-16  Bruno Haible  <bruno@clisp.org>
54719
54720         * modules/strcase (Files): Add m4/mbrtowc.m4.
54721         (Depends-on): Add strnlen1, mbchar.
54722
54723 2005-08-16  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/mbiter: New file.
54726         * MODULES.html.sh (Extended multibyte and wide character utilities):
54727         Add mbiter.
54728
54729 2005-08-16  Bruno Haible  <bruno@clisp.org>
54730
54731         * modules/mbfile: New file.
54732         * MODULES.html.sh (Extended multibyte and wide character utilities):
54733         Add mbfile.
54734
54735 2005-08-16  Bruno Haible  <bruno@clisp.org>
54736
54737         * modules/mbchar: New file.
54738         * MODULES.html.sh (Extended multibyte and wide character utilities):
54739         New section.
54740
54741 2005-08-16  Bruno Haible  <bruno@clisp.org>
54742
54743         * m4/tls.m4: New file, from GNU gettext.
54744
54745 2005-08-16  Bruno Haible  <bruno@clisp.org>
54746
54747         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
54748         always.
54749         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
54750
54751 2005-08-16  Bruno Haible  <bruno@clisp.org>
54752
54753         * m4/mbiter.m4: New file.
54754
54755 2005-08-16  Bruno Haible  <bruno@clisp.org>
54756
54757         * m4/mbfile.m4: New file.
54758
54759 2005-08-16  Bruno Haible  <bruno@clisp.org>
54760
54761         * m4/mbchar.m4: New file.
54762
54763 2005-08-16  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/tls.h: New file, from GNU gettext.
54766         * lib/tls.c: New file, from GNU gettext.
54767
54768 2005-08-16  Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/strnlen1.h: New file.
54771         * lib/strnlen1.c: New file.
54772
54773 2005-08-16  Bruno Haible  <bruno@clisp.org>
54774
54775         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
54776         (mbi_init): Update.
54777         (mbi_avail, mbi_advance): Let the iteration end before the terminating
54778         NUL byte, not after it.
54779
54780 2005-08-16  Bruno Haible  <bruno@clisp.org>
54781
54782         * lib/strcase.h (strcasecmp): Add note in comments.
54783         * lib/strncasecmp.c: Use code from strcasecmp.c.
54784         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
54785         (strcasecmp): Work correctly in multibyte locales.
54786
54787 2005-08-16  Bruno Haible  <bruno@clisp.org>
54788
54789         * lib/mbiter.h: New file.
54790
54791 2005-08-16  Bruno Haible  <bruno@clisp.org>
54792
54793         * lib/mbfile.h: New file.
54794
54795 2005-08-16  Bruno Haible  <bruno@clisp.org>
54796
54797         * lib/mbchar.h: New file.
54798         * lib/mbchar.c: New file.
54799
54800 2005-08-16  Bruno Haible  <bruno@clisp.org>
54801
54802         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
54803         the valid ones. Makes the comparison operations transitive:
54804         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
54805         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
54806
54807 2005-08-15  Simon Josefsson  <jas@extundo.com>
54808
54809         * modules/ssize_t (License): Change to 'unlimited'.
54810
54811         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
54812
54813 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54814
54815         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
54816         Add comments for each pending glibc patch.
54817
54818 2005-08-15  Bruno Haible  <bruno@clisp.org>
54819
54820         * lib/regex.h (__restrict_arr): Don't define to __restrict if
54821         __cplusplus is defined.
54822
54823 2005-08-14  Jim Meyering  <jim@meyering.net>
54824
54825         Sync from coreutils.
54826
54827         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
54828         Use the hash-table-based cycle-detection code not just when
54829         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
54830         Reported by James Youngman in
54831         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
54832         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
54833         FTS_TIGHT_CYCLE_CHECK.
54834         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
54835         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
54836         once again.
54837         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
54838         * lib/fts.c (fd_safer): Remove decl.
54839         Include fcntl--.h rather than unistd-safer.h
54840         (fts_safe_changedir): Don't call fd_safer; no longer needed
54841         now that we include fcntl--.h.
54842
54843 2005-08-12  Simon Josefsson  <jas@extundo.com>
54844
54845         * modules/getndelim2: Use ssize_t module.
54846         * modules/getnline: Likewise.
54847         * modules/safe-read: Likewise.
54848         * modules/xreadlink: Likewise.
54849
54850         * modules/ssize_t: New file.
54851
54852 2005-08-12  Simon Josefsson  <jas@extundo.com>
54853
54854         * m4/readline.m4: Look for termcap, curses or ncurses if required.
54855
54856 2005-08-12  Simon Josefsson  <jas@extundo.com>
54857
54858         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54859         ssize_t.
54860
54861 2005-08-12  Simon Josefsson  <jas@extundo.com>
54862
54863         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
54864         readline, getdelim and check_version.
54865         (Support for systems lacking ISO C 99: Sizes of integer types):
54866         Add size_max.
54867
54868 2005-08-12  Bruno Haible  <bruno@clisp.org>
54869
54870         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
54871
54872 2005-08-11  Simon Josefsson  <jas@extundo.com>
54873
54874         * modules/readline: New file.
54875
54876         * modules/strnlen (Files): Add strnlen.h.
54877
54878 2005-08-11  Simon Josefsson  <jas@extundo.com>
54879
54880         * m4/readline.m4: New file.
54881
54882 2005-08-11  Simon Josefsson  <jas@extundo.com>
54883
54884         * lib/readline.h, readline.c: New file.
54885
54886 2005-08-11  Simon Josefsson  <jas@extundo.com>
54887
54888         * doc/gnulib.texi (Initial import, Finishing touches): Mention
54889         gl_AVOID.
54890
54891 2005-08-11  Bruno Haible  <bruno@clisp.org>
54892
54893         * lib/strnlen.h (strnlen): Change parameter name to match comment.
54894
54895 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
54896
54897         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
54898
54899 2005-08-10  Simon Josefsson  <jas@extundo.com>
54900
54901         * tests/test-iconvme.c: New file.
54902
54903 2005-08-10  Simon Josefsson  <jas@extundo.com>
54904
54905         * m4/strnlen.m4: New file.
54906
54907         * m4/strndup.m4: Don't check for strnlen declaration, done in
54908         strnlen.m4.
54909
54910 2005-08-10  Simon Josefsson  <jas@extundo.com>
54911
54912         * lib/strndup.c: Use strnlen.h.
54913
54914         * lib/strnlen.h: New file.
54915
54916 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54917
54918         * README: Typos.
54919
54920 2005-08-02  Simon Josefsson  <jas@extundo.com>
54921
54922         * modules/readline: New file.
54923
54924 2005-08-02  Simon Josefsson  <jas@extundo.com>
54925
54926         * modules/getdelim: New file.
54927
54928         * modules/getline: Rewrite, don't use getndelim2.
54929
54930 2005-08-02  Simon Josefsson  <jas@extundo.com>
54931
54932         * m4/getline.m4: Separate out getdelim stuff into separate module.
54933
54934         * m4/getdelim.m4: New file.
54935
54936 2005-08-02  Simon Josefsson  <jas@extundo.com>
54937
54938         * lib/getline.h, getline.c: Rewrite.
54939
54940         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
54941
54942 2005-07-31  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/lock.h (gl_lock_initializer): New macro.
54945         (gl_lock_define_initialized): Use it.
54946         (gl_rwlock_initializer): New macro.
54947         (gl_rwlock_define_initialized): Use it.
54948         (gl_recursive_lock_initializer): New macro.
54949         (gl_recursive_lock_define_initialized): Use it.
54950
54951 2005-07-30  Karl Berry  <karl@gnu.org>
54952
54953         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
54954         Report from Ben Pfaff, regarding getopt.
54955
54956 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
54957
54958         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
54959         normal way.
54960         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
54961         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
54962         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
54963         (gl_GETOPT): Use the new macros.  Most of the implementation
54964         is moved to the new macros.  This is for programs like Emacs
54965         that don't want all the functionality of gl_GETOPT.
54966
54967 2005-07-26  Bruno Haible  <bruno@clisp.org>
54968
54969         * m4/lock.m4: Update from GNU gettext.
54970
54971 2005-07-26  Bruno Haible  <bruno@clisp.org>
54972
54973         * lib/lock.h: Update from GNU gettext.
54974         * lib/lock.c: Update from GNU gettext.
54975
54976 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
54977
54978         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
54979         obsolescent AC_TRY_RUN.  Include the default includes files, for
54980         'exit'.
54981
54982 2005-07-24  Bruno Haible  <bruno@clisp.org>
54983
54984         * modules/visibility: New file.
54985         * MODULES.html.sh (Misc): Add visibility.
54986
54987 2005-07-24  Bruno Haible  <bruno@clisp.org>
54988
54989         * m4/visibility.m4: New file.
54990
54991 2005-07-24  Bruno Haible  <bruno@clisp.org>
54992
54993         * doc/visibility.texi: New file.
54994
54995 2005-07-22  Bruno Haible  <bruno@clisp.org>
54996
54997         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
54998         $(ALLOCA_H), redundant through BUILT_SOURCES.
54999         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
55000         redundant through BUILT_SOURCES.
55001         * modules/byteswap (Makefile.am): Remove explicit dependency on
55002         $(BYTESWAP_H), redundant through BUILT_SOURCES.
55003         * modules/fnmatch (Makefile.am): Remove explicit dependency on
55004         $(FNMATCH_H), redundant through BUILT_SOURCES.
55005         * modules/getopt (Makefile.am): Remove explicit dependency on
55006         $(GETOPT_H), redundant through BUILT_SOURCES.
55007         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
55008         redundant through BUILT_SOURCES.
55009         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
55010         redundant through BUILT_SOURCES.
55011         * modules/stdbool (Makefile.am): Remove explicit dependency on
55012         $(STDBOOL_H), redundant through BUILT_SOURCES.
55013         * modules/stdint (Makefile.am): Remove explicit dependency on
55014         $(STDINT_H), redundant through BUILT_SOURCES.
55015         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
55016         Remove explicit dependency on $(SYSEXITS_H).
55017         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
55018
55019 2005-07-18  Simon Josefsson  <jas@extundo.com>
55020
55021         * lib/check-version.c (check_version): Accept identical versions too.
55022
55023 2005-07-18  Bruno Haible  <bruno@clisp.org>
55024
55025         * modules/lock: New file.
55026         * MODULES.html.sh (Multithreading): New section.
55027
55028 2005-07-18  Bruno Haible  <bruno@clisp.org>
55029
55030         * m4/lock.m4: New file, from GNU gettext.
55031
55032 2005-07-18  Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/lock.h: New file, from GNU gettext.
55035         * lib/lock.c: New file, from GNU gettext.
55036
55037 2005-07-18  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/lock.h (gl_once_t): New type.
55040         (gl_once_define, gl_once): New macros.
55041         * lib/lock.c (fresh_once): New variable.
55042         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
55043         functions.
55044
55045 2005-07-16  Simon Josefsson  <jas@extundo.com>
55046
55047         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
55048         workaround, suggested by Bruno.
55049
55050 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55051
55052         * modules/xalloc (Depends-on): Add xalloc-die.
55053         * modules/xvasprintf (Depends-on): Add xalloc-die.
55054
55055 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55056
55057         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
55058         with a minor change.
55059
55060 2005-07-15  Bruno Haible  <bruno@clisp.org>
55061
55062         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
55063         When using lib/poll.c, define poll as rpl_poll.
55064
55065 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
55066
55067         * modules/argp (Depends-on): Remove unlocked-io.
55068
55069 2005-07-14  Derek Price  <derek@ximbiot.com>
55070
55071         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
55072         for glob symlink bug.
55073
55074 2005-07-14  Bruno Haible  <bruno@clisp.org>
55075
55076         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
55077         Instead, test for *_unlocked function declarations directly.
55078
55079 2005-07-11  Simon Josefsson  <jas@extundo.com>
55080
55081         * modules/size_max: New file.
55082
55083         * modules/xsize: Depend on size_max module for size_max.m4.
55084
55085 2005-07-11  Simon Josefsson  <jas@extundo.com>
55086
55087         * lib/size_max.h: New file.
55088
55089 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
55090
55091         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
55092         copyright symbol and the year.
55093         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
55094         (version_etc_va): Use parameterized copyright notice.
55095         Reword to conform to the current GNU coding standards.
55096
55097 2005-07-11  Karl Berry  <karl@gnu.org>
55098
55099         * doc/gnulib.texi (Quoting): new node.
55100         (Initial import): more info, from Patrice.
55101
55102 2005-07-11  Bruno Haible  <bruno@clisp.org>
55103
55104         * gnulib-tool (func_usage): Document option --avoid.
55105         (Command line options): Handle --avoid.
55106         (func_acceptable): New function.
55107         (func_modules_transitive_closure): Use it.
55108
55109 2005-07-11  Bruno Haible  <bruno@clisp.org>
55110
55111         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
55112         Reported by Jim Meyering.
55113
55114 2005-07-10  Bruno Haible  <bruno@clisp.org>
55115
55116         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
55117         Needed when size_t is smaller than 'unsigned int'.
55118         Reported by Paul Eggert.
55119
55120 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55121
55122         * modules/argp (Depends-on): Add unlocked-io
55123
55124 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55125
55126         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
55127         block of defines.
55128
55129 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55130
55131         * config/srclist.txt: Comment out regcomp.c, since we have a porting
55132         fix now.
55133
55134 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
55135         and Paul Eggert  <eggert@cs.ucla.edu>
55136
55137         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
55138         in wint_t, not wchar_t.  Remove now-unnecessary cast.
55139
55140 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55141
55142         * modules/regex (Files): Add lib/regex_internal.c,
55143         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
55144         (Depends-on): Add extensions.
55145         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
55146
55147 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55148
55149         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
55150         pathconf.
55151         * m4/same.m4 (gl_SAME): Likewise.
55152         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
55153
55154         * m4/regex.m4: Adjust to new libc regex implementation.
55155         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
55156         all the .c and .h parts of (the new) regex.
55157         Quote the m4 stuff better.
55158         Check for RE_ICASE bug of old gnulib.
55159         Check for REG_STARTEND of recent libc.
55160         Rename local variables from jm_* to gl_*.
55161         Quote operand of "test -f".
55162         Say "recent enough" version of libc, not "version 2".
55163         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
55164         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
55165         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
55166         Remove check for btowc, isascii.
55167         Require AM_LANGINFO_CODESET.
55168
55169 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55170
55171         * lib/regex.c, regex.h: Sync from libc.
55172         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
55173         * lib/regexec.c:
55174         New files, synced from libc, except that regex_internal.h
55175         currently has a small porting fix.
55176
55177 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
55180         regex_internal.c, regexec.c.
55181         Add regex_internal.h too, but as a comment, since the libc version
55182         is currently broken in gnulib mode.
55183
55184 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55185
55186         Support programs like Emacs that use gnulib but not gettext.
55187         * MODULES.html.sh (Internationalization functions): Add gettext-h.
55188         * modules/gettext-h: New file.
55189         * modules/gettext (Files): Remove lib/gettext.h.
55190         (Depends-on): Add gettext-h.
55191         (Makefile.am): Remove lib_SOURCES.
55192         * modules/argmatch, modules/c-stack, modules/closeout:
55193         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
55194         * modules/execute, modules/file-type, modules/getaddrinfo:
55195         * modules/getopt, modules/human, modules/javacomp:
55196         * modules/javaexec, modules/mkdir-p, modules/obstack:
55197         * modules/openat, modules/pagealign_alloc, modules/pipe:
55198         * modules/quotearg, modules/regex, modules/rpmatch:
55199         * modules/unicodeio, modules/userspec, modules/version-etc:
55200         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
55201         * modules/xsetenv:
55202         Depend on gettext-h, not gettext.
55203
55204 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55205
55206         * gnulib-tool (func_import): Add support for 'public domain' license.
55207         * modules/alloca, modules/atexit, modules/memmove:
55208         Now public domain, not GPL.
55209         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
55210         * modules/realloc, modules/strerror, modules/strtod:
55211         Now LGPL, not GPL.
55212
55213 2005-07-05  Bruno Haible  <bruno@clisp.org>
55214
55215         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
55216         autoconf CVS. Needed for mingw.
55217
55218 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55219
55220         Remove the dependency of the strftime module on the tzset module.
55221         * modules/strftime (Depends-on): Remove dependency on tzset.
55222
55223 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55224
55225         Remove the dependency of the strftime module on the tzset module.
55226         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
55227         gl_FUNC_TZSET_CLOBBER.
55228
55229 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55230
55231         Remove the dependency of the strftime module on the tzset module.
55232         * lib/strftime.c (my_strftime)
55233         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
55234         Copy the input structure, to work around some of the bug with
55235         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
55236         Solaris releases, you should also use the tzset module, but we won't
55237         require it as a dependency any more since we don't want LGPLed code
55238         to depend on GPLed code.
55239
55240 2005-07-02  Jim Meyering  <jim@meyering.net>
55241
55242         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
55243         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
55244         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
55245         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
55246
55247 2005-07-02  Jim Meyering  <jim@meyering.net>
55248
55249         * lib/backupfile.c (backup_args): Change a `0' to NULL.
55250
55251 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55252
55253         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
55254         declares only 'struct timespec;' (!).
55255
55256 2005-07-01  Jim Meyering  <jim@meyering.net>
55257
55258         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
55259         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
55260         * lib/save-cwd.c, tempname.c:
55261         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55262         and don't include <sys/file.h>).
55263
55264 2005-06-29  Jim Meyering  <jim@meyering.net>
55265
55266         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
55267         type name.  Use the variable name instead.
55268         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
55269         Likewise.
55270
55271 2005-06-28  Simon Josefsson  <jas@extundo.com>
55272
55273         * modules/check-version (Files): Add check-version.m4.
55274
55275 2005-06-28  Simon Josefsson  <jas@extundo.com>
55276
55277         * m4/check-version.m4: New file, suggested by Jim Meyering
55278         <jim@meyering.net>.
55279
55280 2005-06-28  Simon Josefsson  <jas@extundo.com>
55281
55282         * lib/check-version.h, lib/check-version.c: New files.
55283
55284 2005-06-28  Simon Josefsson  <jas@extundo.com>
55285
55286         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
55287         collision with global variable.  Better indentation.  Don't
55288         increment buffer pointer beyond buffer end.  Based on comments
55289         from Paul Eggert <eggert@cs.ucla.edu>.
55290
55291         * lib/base64.h: Indent.
55292
55293 2005-06-28  Simon Josefsson  <jas@extundo.com>
55294
55295         * doc/gnulib.texi (Library version handling): New section.
55296
55297 2005-06-28  Jim Meyering  <jim@meyering.net>
55298
55299         * check-module (find_included_lib_files): Hard-code another
55300         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
55301         but modules/fts-lgpl (correctly) does not list those files.
55302
55303         * modules/canonicalize (Files): Add lib/pathmax.h.
55304
55305 2005-06-25  Simon Josefsson  <jas@extundo.com>
55306
55307         * modules/check-version: New file.
55308
55309 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
55310
55311         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
55312         initializer of struct addrinfo, as an indication that we don't
55313         care how many members the structure has.
55314
55315 2005-06-24  Derek Price  <derek@ximbiot.com>
55316         and Bruno Haible  <bruno@clisp.org>
55317
55318         Remove stat module & update lstat.
55319         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
55320         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55321         * m4/stat.m4: Remove this file.
55322
55323 2005-06-24  Derek Price  <derek@ximbiot.com>
55324         and Bruno Haible  <bruno@clisp.org>
55325
55326         Remove stat module & update lstat.
55327         * lib/stat.c: Remove this file...
55328         (slash_aware_lstat): ...moving this content and its support...
55329         * lib/lstat.c (rpl_lstat): ...into here.
55330         * lib/lstat.h: New file.
55331
55332 2005-06-24  Derek Price  <derek@ximbiot.com>
55333         and Bruno Haible  <bruno@clisp.org>
55334
55335         Remove stat module & update lstat.
55336         * config/srclist.txt (libc sources): Remove stat.
55337
55338 2005-06-24  Derek Price  <derek@ximbiot.com>
55339         and Bruno Haible  <bruno@clisp.org>
55340
55341         Remove stat module & update lstat.
55342         * MODULES.html.sh (stat): Remove.
55343         * MODULES.html: Regenerated.
55344         * modules/lstat (Description): Correct function name.
55345         (Files): Add "lstat.h".
55346         (Depends-on): Remove stat, add xalloc, stat-macros.
55347         * modules/stat: Remove this file.
55348         (Include): Add "lstat.h", remove <sys/stat.h>.
55349
55350 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55351
55352         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
55353         (ranged_convert): Don't save conversion in a temporary struct.
55354         This causes a warning with GCC 4.0.0, and anyway in the typical
55355         case it's not worth the extra 100 bytes or so of code.
55356         (ranged_convert, __mktime_internal): When calling a function via a
55357         pointer P, use P () rather than (*P) (), as we now assume C89 or
55358         better.
55359
55360 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55361
55362         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
55363         "who -r" failed to give output.  Problem reported by Tim Waugh.
55364
55365         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
55366         (xcalloc): Use it to avoid needless tests.
55367         Problem reported by Jim Meyering.
55368
55369 2005-06-20  Derek Price  <derek@ximbiot.com>
55370
55371         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
55372         unnecessary for Autoconfs > 2.59c.
55373
55374 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55375
55376         * lib/argp.h (__option_is_short): Check upper limit of
55377         __key. Isprint() requires its argument to have the value
55378         of an unsigned char or EOF.
55379
55380 2005-06-16  Jim Meyering  <jim@meyering.net>
55381
55382         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
55383         when either N or S is zero.
55384
55385 2005-06-16  Derek Price  <derek@ximbiot.com>
55386
55387         * m4/bison.m4: Declare YACC & YFLAGS precious.
55388
55389 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
55390
55391         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
55392         multibyte string or pattern, fall back on unibyte matching.
55393         Problem reported by James Youngman.
55394
55395 2005-06-08  Bruno Haible  <bruno@clisp.org>
55396
55397         * modules/csharpcomp: New file.
55398         * MODULES.html.sh (C#): Add csharpcomp.
55399
55400 2005-06-08  Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/csharpcomp.m4: New file, from GNU gettext.
55403
55404 2005-06-08  Bruno Haible  <bruno@clisp.org>
55405
55406         * lib/csharpcomp.h: New file, from GNU gettext.
55407         * lib/csharpcomp.c: New file, from GNU gettext.
55408         * lib/csharpcomp.sh.in: New file, from GNU gettext.
55409
55410 2005-06-08  Bruno Haible  <bruno@clisp.org>
55411
55412         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
55413         warning on mingw.
55414
55415 2005-06-07  Derek Price  <derek@ximbiot.com>
55416
55417         Sync from CVS.
55418         * lib/glob_.h: Indent nested #ifdef.
55419
55420 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55421
55422         Sync from coreutils.
55423         Use "file name" when talking about file names, instead of "filename"
55424         or "path", as per the GNU coding standards.
55425         * lib/mkdir-p.c: Renamed from makepath.c.
55426         (make_dir_parents): Renamed from make_path.  All callers changed.
55427         * lib/mkdir-p.h: Likewise.  All includers changed.
55428         * lib/filenamecat.c: Renamed from path-concat.c.
55429         (file_name_concat): Renamed from path_concat.  All callers changed.
55430         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
55431         * lib/filenamecat.h: Likewise.  All includers changed.
55432         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
55433         in comments or local variable names.
55434         * lib/basename.c: Likewise.
55435         * lib/canonicalize.c, canonicalize.h: Likewise.
55436         * lib/dirname.c, dirname.h: Likewise.
55437         * lib/euidaccess.c: Likewise.
55438         * lib/exclude.c: Likewise
55439         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
55440         * lib/fsusage.c, fsuage.h: Likewise.
55441         * lib/fts.c, fts_.h: Likewise.
55442         * lib/getcwd.c: Likewise.
55443         * lib/getloadavg.c: Likewise.
55444         * lib/mkstemp.c: Likewise.
55445         * lib/mountlist.c, mountlist.h: Likewise.
55446         * lib/openat.c, openat.h: Likewise.
55447         * lib/readlink-stub.c: Likewise.
55448         * lib/readutmp.c, readutmp.h: Likewise.
55449         * lib/rename.c: Likewise.
55450         * lib/rmdir.c: Likewise.
55451         * lib/same.c: Likewise.
55452         * lib/savedir.c: Likewise.
55453         * lib/stripslash.c: Likewise.
55454         * lib/tempname.c: Likewise.
55455         * lib/xreadlink.c: Likewise.
55456         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
55457         All uses changed.
55458         * lib/exclude.h: Likewise.
55459
55460         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
55461         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55462         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
55463         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55464         * lib/pathmax.h: Include <limits.h> unconditionally, since other
55465         files have been getting away with it for years (MORE/BSD 4.3
55466         is extinct now).
55467         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
55468         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55469
55470         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
55471         Define to 256, not 255, as per modern POSIX.
55472
55473 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55474
55475         Sync from coreutils.
55476         Use "file name" when talking about file names, instead of "filename"
55477         or "path", as per the GNU coding standards.
55478         * MODULES.html.sh: mkdir-p renamed from makepath.
55479         filenamecat renamed from path-concat.
55480         * modules/filenamecat: Renamed from modules/path-concat.
55481         (Files): filenamecat.h and filenamecat.c renamed from
55482         path-concat.h and path-concat.c.
55483         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
55484         (Include): filenamecat.h, not path-concat.h.
55485         * modules/mkdir-p: Renamed from modules/makepath.
55486         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
55487         makepath.c.
55488         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
55489         (Include): mkdir-p.h, not makepath.h.
55490
55491 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55492
55493         Sync from coreutils.
55494         * m4/mkdir-p.m4: Renamed from makepath.m4.
55495         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
55496         Rename files from makepath.c to mkdir-p.c, and from
55497         makepath.h to mkdir-p.h.
55498         * m4/filenamecat.m4: Renamed from path-concat.m4.
55499         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
55500         Rename files from path-concat.c to filenamecat.c,
55501         and from path-concat.h to filenamecat.h.
55502         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
55503         "file name" in local variables or comments.
55504         * m4/rename.m4: Likewise.
55505
55506 2005-06-01  Bruno Haible  <bruno@clisp.org>
55507
55508         * modules/csharpexec: New file.
55509         * MODULES.html.sh (C#): New section.
55510
55511 2005-06-01  Bruno Haible  <bruno@clisp.org>
55512
55513         * m4/csharp.m4: New file, from GNU gettext.
55514         * m4/csharpexec.m4: New file, from GNU gettext.
55515
55516 2005-06-01  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/csharpexec.h: New file, from GNU gettext.
55519         * lib/csharpexec.c: New file, from GNU gettext.
55520         * lib/csharpexec.sh.in: New file, from GNU gettext.
55521
55522 2005-05-31  Derek Price  <derek@ximbiot.com>
55523             Paul Eggert  <eggert@cs.ucla.edu>
55524
55525         Sync from cvs.
55526         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55527
55528 2005-05-31  Derek Price  <derek@ximbiot.com>
55529             Paul Eggert  <eggert@cs.ucla.edu>
55530
55531         Sync from cvs.
55532         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55533
55534 2005-05-29  Derek Price  <derek@ximbiot.com>
55535
55536         * config/srclist.txt (glob_.h, glob.c): Add these files.
55537
55538 2005-05-29  Derek Price  <derek@ximbiot.com>
55539
55540         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55541         * modules/glob: New file.
55542         * modules/getlogin_r: Add link to POSIX spec in description.
55543
55544 2005-05-29  Derek Price  <derek@ximbiot.com>
55545             Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * m4/glob.m4: New file.
55548
55549 2005-05-29  Derek Price  <derek@ximbiot.com>
55550             Paul Eggert  <eggert@cs.ucla.edu>
55551
55552         * lib/glob_.h, lib/glob.c: New files.
55553
55554 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55555
55556         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55557         * modules/fts-lgpl (Depends-on): Remove gettext.
55558
55559 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55560
55561         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55562         and don't require gt_INTTYPES_PRI.
55563
55564 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55565
55566         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55567
55568         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55569         the configuration hassle isn't worth it.
55570         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55571         (LONGEST_MODIFIER, PRIuMAX): Remove.
55572
55573 2005-05-27  Bruno Haible  <bruno@clisp.org>
55574
55575         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55576
55577 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55578
55579         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55580         _POSIX_PTHREAD_SEMANTICS for Solaris.
55581
55582 2005-05-25  Derek Price  <derek@ximbiot.com>
55583
55584         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55585
55586 2005-05-25  Derek Price  <derek@ximbiot.com>
55587             Paul Eggert  <eggert@cs.ucla.edu>
55588
55589         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55590         * lib/getlogin_r.c, getlogin_r.h: New files.
55591
55592 2005-05-25  Bruno Haible  <bruno@clisp.org>
55593             Derek Price  <derek@ximbiot.com>
55594
55595         * lib/getlogin_r.h: Simplify API documentation.
55596
55597 2005-05-23  Derek Price  <derek@ximbiot.com>
55598
55599         * modules/minmax (Files): Add m4/minmax.m4.
55600         (configure.ac): Add gl_MINMAX.
55601
55602 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55603
55604         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55605         so that unistd-safer.h (GPL'ed code) need not be included.
55606
55607 2005-05-22  Bruno Haible  <bruno@clisp.org>
55608
55609         * m4/minmax.m4: New file.
55610         Based on a patch by Derek Price <derek@ximbiot.com>.
55611
55612 2005-05-22  Bruno Haible  <bruno@clisp.org>
55613
55614         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55615         (INT64_MIN): Fix definition.
55616         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55617
55618         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55619         NEED_SIGNED_INT_TYPES.
55620
55621         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55622         HAVE_SYSTEM_INTTYPES.
55623
55624 2005-05-22  Bruno Haible  <bruno@clisp.org>
55625
55626         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55627         Also include <sys/param.h> if it defines MIN, MAX.
55628         Based on a patch by Derek Price <derek@ximbiot.com>.
55629
55630 2005-05-21  Jim Meyering  <jim@meyering.net>
55631
55632         * modules/fts (Files): Add m4/inttypes-pri.m4.
55633         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55634
55635 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55636
55637         New fts module.
55638         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55639         (setup_dir, free_dir): New functions.
55640         (enter_dir, leave_dir): Define trivial
55641         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55642         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55643         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55644         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55645         Move to fts-cycle.c.
55646         (fts_open): Use setup_dir.
55647         (fts_close): Use free_dir.
55648         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55649         This adds a label and some gotos, but the alternatives were messier.
55650         Check for memory allocation failure when entering a dir.
55651         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55652         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55653         (FTS): New member fts_cycle, that is a union that contains the
55654         old active_dir_ht and cycle_state.  All uses changed to mention
55655         fts_cycle.ht and fts_cycle.state.
55656         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55657         fts.c, with the following changes:
55658         (setup_dir, free_dir): New functions.
55659         (enter_dir): Now returns bool.  Return true if successful, false
55660         if memory exhausted.  All callers changed.
55661         Do not bother partly cleaning up on
55662         memory allocation failure; that is free_dir's job.
55663         However, free ad if hash_insert fails, to avoid memory leak.
55664         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55665         fts->fts_options to see which union member to use.
55666
55667 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55668
55669         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55670         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55671
55672 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55673
55674         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55675
55676 2005-05-20  Jim Meyering  <jim@meyering.net>
55677
55678         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55679         Now a macro, to pacify GCC.
55680
55681 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55682
55683         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55684         of -1.
55685
55686 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55687
55688         * lib/chown.c (rpl_chown): Return -1 on failure.
55689
55690 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55691
55692         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55693         Don't check for stddef.h.
55694         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55695         don't use its results.
55696         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55697         since we include them unconditionally.  Don't require
55698         AM_STDBOOL_H, since stdbool is a prerequisite.
55699         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55700         since we assume C89 or better.
55701         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55702         as we don't use their results.
55703         Don't check for fchdir, memmove, memset, strrchr, as we use
55704         them unconditionally.
55705         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55706         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55707
55708 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55709
55710         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55711         Include <stddef.h> unconditionally, since we assume C89 now.
55712         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55713         * lib/fts.c: Include fts_.h first, to check interface.
55714         Do not include intprops.h; no longer needed.
55715         Include cycle-check.h and hash.h, since fts_.h no longer does.
55716         Remove unnecessary casts of closedir to void.
55717         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55718         decide whether to decrement nlinks.
55719         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
55720         (FTS): Use struct hash_table * instead of Hash_table, so that
55721         we no longer need to include hash.h here.
55722
55723 2005-05-18  Jim Meyering  <jim@meyering.net>
55724
55725         * modules/dirfd (License): Change to LGPL.  Most of the code
55726         is already in the public domain.
55727
55728 2005-05-18  Jim Meyering  <jim@meyering.net>
55729
55730         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
55731         Reported by Yoann Vandoorselaere.
55732
55733 2005-05-17  Jim Meyering  <jim@meyering.net>
55734
55735         * m4/fts.m4: New file, from coreutils.
55736
55737 2005-05-17  Jim Meyering  <jim@meyering.net>
55738
55739         * lib/fts.c, lib/fts_.h: New files, from coreutils.
55740
55741 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55742
55743         Sync from coreutils.
55744         * m4/unlinkdir.m4: New file.
55745
55746 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         Sync from coreutils.
55749         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
55750         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
55751         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
55752         White space changes only.
55753         * lib/makepath.c (make_path): Port to hosts where leading "//" is
55754         special.
55755         * lib/yesno.c: Include getline.h, not ctype.h.
55756         (yesno): Don't remove leading white space; POSIX doesn't allow it.
55757         Use getline to remove arbitrary restriction on response length.
55758
55759 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55760
55761         * config/srclist-update: Spell out "Street" in FSF postal
55762         mail address; this is the style the FSF seems to prefer.
55763
55764         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
55765         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
55766         this updates FSF postal mail address.
55767
55768         Sync from coreutils.
55769         * modules/unlinkdir: New file.
55770         * modules/yesno (Depends-on): Add getline.
55771         * MODULES.html.sh (File system functions): Add unlinkdir.
55772
55773 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55774
55775         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
55776         lib/strsep.h:
55777         Change the initial comment to refer to GPL, not LGPL.
55778         gnulib-tool will change it to LGPL as needed.
55779
55780         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
55781         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
55782         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
55783         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
55784         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
55785         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
55786         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
55787         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
55788         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
55789         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
55790         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
55791         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
55792         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
55793         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
55794         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
55795         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
55796         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
55797         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
55798         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
55799         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
55800         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
55801         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
55802         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
55803         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
55804         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
55805         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
55806         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
55807         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
55808         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
55809         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
55810         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
55811         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
55812         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
55813         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
55814         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
55815         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
55816         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
55817         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
55818         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
55819         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
55820         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
55821         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
55822         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
55823         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
55824         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
55825         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
55826         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
55827         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
55828         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
55829         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
55830         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55831         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
55832         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
55833         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
55834         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
55835         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
55836         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
55837         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
55838         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
55839         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
55840         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
55841         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
55842         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
55843         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
55844         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
55845         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
55846         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
55847         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
55848         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
55849         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
55850         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
55851         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
55852         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
55853         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
55854         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
55855         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
55856         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
55857         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
55858         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
55859         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
55860         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
55861         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
55862         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
55863         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
55864         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
55865         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
55866         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
55867         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
55868         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
55869         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
55870         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
55871         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
55872         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
55873         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
55874         lib/yesno.c, lib/yesno.h:
55875         Update FSF postal mail address.
55876
55877 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55878
55879         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
55880         tests/test-memmem.c, tests/test-stpncpy.c:
55881         Update FSF postal mail address.
55882
55883 2005-05-13  Bruno Haible  <bruno@clisp.org>
55884
55885         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
55886         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
55887         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
55888         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
55889         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
55890         Add support for 64-bit integers in the MSVC compiler.
55891
55892 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55893
55894         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
55895
55896 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
55897
55898         * gnulib-tool (func_import): Sort and uniquify recommended includes.
55899
55900 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
55901
55902         * doc/getdate.texi (General date syntax): Don't say that date
55903         date --iso-8601=ns generates acceptable dates; it doesn't yet.
55904         Problem reported by Nic Ferrier.
55905
55906 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55907
55908         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
55909         specified in ai_socktype. Fix invalid ai_protocol
55910         check. ai_protocol is usually set to 0 or depending on
55911         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
55912         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
55913         ai_socktype / ai_protocol in the returned addrinfo structure.
55914
55915 2005-05-10  Simon Josefsson  <jas@extundo.com>
55916
55917         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
55918         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55919
55920 2005-05-10  Karl Berry  <karl@gnu.org>
55921
55922         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
55923         (from http://www.gnu.org/licenses).
55924         * doc/COPYING.LIB: also rename to COPYING.LESSER.
55925         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
55926         fdl.texi suffices.
55927
55928 2005-05-10  Karl Berry  <karl@gnu.org>
55929
55930         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
55931         (COPYING.DOC): remove.
55932
55933         * config/srclist-update: new FSF address.
55934
55935 2005-05-10  Derek Price  <derek@ximbiot.com>
55936
55937         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
55938         possible.
55939
55940 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55941             Bruno Haible  <bruno@clisp.org>
55942
55943         * modules/inet_ntop: New file.
55944         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55945         inet_ntop.
55946
55947 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55948             Bruno Haible  <bruno@clisp.org>
55949
55950         * m4/inet_ntop.m4: New file.
55951
55952 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55953             Bruno Haible  <bruno@clisp.org>
55954
55955         * lib/inet_ntop.h: New file.
55956         * lib/inet_ntop.c: New file, from glibc with modifications.
55957
55958 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
55959
55960         * modules/time_r (License): Change to LGPL.
55961         * modules/extensions (License): Change to LGPL.  Actually,
55962         the license is more permissive than that, but currently gnulib-tool
55963         doesn't know how to handle more-permissive licenses.
55964
55965         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
55966         Problem reported by Dave Love.
55967
55968 2005-05-08  Jim Meyering  <jim@meyering.net>
55969
55970         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
55971         blank.
55972
55973 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55974
55975         * modules/argmatch (Depends-on): Add stdbool.
55976         * modules/backupfile (Depends-on): Likewise.
55977         * modules/chdir-long (Depends-on): Likewise.
55978         * modules/closeout (Depends-on): Likewise.
55979         * modules/cycle-check (Depends-on): Likewise.
55980         * modules/dirname (Depends-on): Likewise.
55981         * modules/fnmatch (Depends-on): Likewise.
55982         * modules/fsusage (Depends-on): Likewise.
55983         * modules/fwriteerror (Depends-on): Likewise.
55984         * modules/getcwd (Depends-on): Likewise.
55985         * modules/getloadavg (Depends-on): Likewise.
55986         * modules/hard-locale (Depends-on): Likewise.
55987         * modules/makepath (Depends-on): Likewise.
55988         * modules/mountlist (Depends-on): Likewise.
55989         * modules/nanosleep (Depends-on): Likewise.
55990         * modules/posixtm (Depends-on): Likewise.
55991         * modules/quotearg (Depends-on): Likewise.
55992         * modules/readtokens (Depends-on): Likewise.
55993         * modules/readtokens0 (Depends-on): Likewise.
55994         * modules/readutmp (Depends-on): Likewise.
55995         * modules/save-cwd (Depends-on): Likewise.
55996         * modules/strftime (Depends-on): Likewise.
55997         * modules/userspec (Depends-on): Likewise.
55998         * modules/utimecmp (Depends-on): Likewise.
55999         * modules/xgetcwd (Depends-on): Likewise.
56000         * modules/xnanosleep (Depends-on): Likewise.
56001         * modules/xstrtod (Depends-on): Likewise.
56002         * modules/yesno (Depends-on): Likewise.
56003
56004 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56005
56006         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
56007         needless checks.
56008
56009 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56010
56011         Merge from coreutils.  Among other things,
56012         add bulletproofing for cases where stdin, stdout, or stderr are closed.
56013         * lib/fd-safer.c: New file.
56014         * lib/fcntl-safer.h, open-safer.c: Remove.
56015         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
56016         * lib/dup-safer.c: Include unistd-safer.h first.
56017         Don't include errno.h.
56018         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
56019         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
56020         * lib/file-type.c: Rely on file-type.h change.
56021         * lib/getloadavg.c: Include unistd-safer.h.
56022         (getloadavg): Use safer open.
56023         * lib/getusershell.c: Include "stdio-safer.h".
56024         (getusershell): Use safer fopen.
56025         * lib/long-options.c (long_options): Use NULL rather than 0.
56026         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
56027         'free'.
56028         * lib/modechange.c: Likewise.
56029         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
56030         (MODE_DONE): New constant.
56031         (struct mode_change): Remove 'next' member.
56032         (make_node_op_equals): New function; like the old one of the
56033         same name, except it allocates an array.
56034         (mode_compile, mode_create_from_ref): Use it.
56035         (mode_compile): Allocate result as an array, not a linked list.
56036         Parse octal string ourself, so that we catch mistakes like "+0".
56037         (mode_adjust): Arg is an array, not a linked list.
56038         * lib/modechange.c: Include stat-macros.h, xalloc.h.
56039         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
56040         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
56041         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
56042         Remove.  This is now stat-macros.h's job.
56043         (talloc): Remove.  All callers replaced by xalloc, so that
56044         our invokers don't have to worry about reporting memory failures.
56045         (make_node_op_equals): Remove.
56046         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56047         New constants.
56048         (struct mode_change): Moved here from modechange.h.
56049         (mode_append_entry): Remove.
56050         (mode_compile): Remove MASKED_OPS arg, since it encouraged
56051         apps to have incorrect behavior.  Use simpler algorithm for head
56052         and tail.  Don't futz with umask; that's now the job of mode_adjust.
56053         Detect more invalid usages rather than having somewhat-random behavior.
56054         Don't insert an "a=" action, as that leads to incorrect behavior.
56055         (mode_compile, mode_create_from_ref): Return NULL on error instead
56056         of an enum, since now there's only one way to have an error.  All
56057         callers changed.
56058         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
56059         at the correct time.  Simplify calculation of "+u" and its ilk.
56060         Don't mishandle "+X".
56061         (mode_free): Remove "register" and localize decls.
56062         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56063         (struct mode_change): Move to modechange.c; callers don't
56064         need to see this stuff.
56065         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
56066         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
56067         (mode_change, mode_adjust): Reflect the new signatures noted above.
56068         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
56069         that might redefine system include files.
56070         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
56071         (my_usleep): Use NULL rather than (void *) 0.
56072         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
56073         Use siginterrupt to specify that system calls should be interrupted.
56074         (rpl_nanosleep): Move initialization of suspended closer to call of
56075         my_usleep.
56076         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
56077         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
56078         (desirable_utmp_entry): New function.
56079         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
56080         using x2nrealloc, to simplify logic.
56081         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
56082         size calculation.  Do not assume utmp file is a regular file.
56083         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
56084         (READ_UTMP_CHECK_PIDS): New constant.
56085         * lib/save-cwd.c: Include unistd-safer.h.
56086         (save_cwd): Use fd_safer.
56087         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
56088         [!_LIBC] Include "stat-macros.h" instead.
56089         * lib/unistd-safer.h (fd_safer): New decl.
56090
56091 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56092
56093         * modules/getloadavg (Depends-on): Add unistd-safer.
56094         * modules/getusershell (Depends-on): Add stdio-safer.
56095         * modules/lstat (Depends-on): Remove xalloc.
56096         * modules/mkstemp (Depends-on): Add stat-macros.
56097         * modules/modechange (Depends-on): Remove xstrtol.
56098         Add stat-macros, xalloc.
56099         * modules/save-cwd (Depends-on): Add unistd-safer.
56100         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
56101         * modules/unistd-safer (Files): Add lib/fd-safer.c
56102         (Makefile.am): Remove lib_SOURCES.
56103
56104         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
56105         Remove fcntl-safer; unistd-safer supersedes it.
56106
56107 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56108
56109         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
56110         AC_HEADER_STAT.
56111         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
56112         (gl_PREREQ_CHOWN): Remove.
56113         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
56114         it.  Don't require AC_HEADER_STAT.
56115         (gl_PREREQ_LSTAT): Remove.
56116         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
56117         Don't require AC_HEADER_STAT.
56118         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
56119         (gl_PREREQ_RMDIR): Remove.
56120         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
56121         mention stat-macros.h or AC_HEADER_STAT, since we'll make
56122         the stat-macros module a prerequisite.
56123         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
56124         * m4/filemode.m4 (gl_FILEMODE): Likewise.
56125         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
56126         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
56127         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
56128         variable names.
56129         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
56130         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
56131         variable prefixes.
56132         * m4/fcntl-safer.m4: Remove.
56133         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
56134         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
56135         Invoke gl_PREREQ_FD_SAFER.
56136         (gl_PREREQ_FD_SAFER): New macro.
56137         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
56138         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
56139         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
56140         Remove duplicate call to AC_LIBOBJ(readutmp).
56141         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
56142
56143         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
56144         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
56145
56146 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56147
56148         * MODULES.html.sh (Misc): Add byteswap.
56149
56150 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56151
56152         * modules/getcwd (Depends-on): Add extensions.
56153         * modules/openat (Depends-on): Likewise.
56154
56155 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56156
56157         * modules/byteswap: New file.
56158
56159 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56160
56161         * m4/byteswap.m4: New file.
56162
56163 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56164
56165         * lib/byteswap_.h: New file.
56166
56167 2005-04-25  Karl Berry  <karl@gnu.org>
56168
56169         * m4/gettext.m4: Update from GNU gettext 0.14.4.
56170
56171 2005-04-25  Albert Chin  <china@thewrittenword.com>
56172
56173         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
56174         Toolkit C bug.
56175
56176 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
56177
56178         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
56179         (func_ln_if_changed) Remove forcibly for no error message
56180         in case file does not exist.
56181
56182 2005-04-19  Simon Josefsson  <jas@extundo.com>
56183
56184         * gnulib-tool (Options): Make --symlink mean --symbolic.
56185
56186 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
56187
56188         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
56189
56190 2005-04-16  Simon Josefsson  <jas@extundo.com>
56191
56192         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
56193
56194 2005-04-15  Simon Josefsson  <jas@extundo.com>
56195
56196         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
56197
56198 2005-04-15  Simon Josefsson  <jas@extundo.com>
56199
56200         * gnulib-tool: Rename --symlink to --symbolic.
56201
56202 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
56203
56204         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
56205         symbolic links to files instead of copying/moving.  Add --aux-dir,
56206         specifying directory relative --dir where auxiliary build tools
56207         are placed.
56208
56209 2005-04-14  Bruno Haible  <bruno@clisp.org>
56210
56211         * modules/allocsa (License): Change to LGPL.
56212         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56213
56214 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56215
56216         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
56217         that "UTC +1 second" continues to work.  Problem reported
56218         by Dmitry V. Levin.
56219         (relunit_snumber): New rule.
56220         (relunit): Use it.
56221
56222 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56223
56224         * lib/getdate.y (universal_time_zone_table): New constant.
56225         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
56226         universal_time_zone_table.
56227         (lookup_zone): Prefer universal_time_zone_table to
56228         local_time_zone_table, so that "GMT" time stamps are allowed in
56229         London during the summer.  Problem reported by Ian Abbott.
56230
56231 2005-04-12  Jim Meyering  <jim@meyering.net>
56232
56233         * lib/human.c (humblock): Set *options even when returning due to
56234         xstrtoumax conversion failure.  Thanks to a used-uninitialized
56235         warning from gcc-4.
56236
56237 2005-04-09  Jim Meyering  <jim@meyering.net>
56238
56239         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
56240         -Wuninitialized: initialize tm0.tm_year.
56241
56242 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56243
56244         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
56245         count, since there's no maximum.  All uses changed.
56246         Add member dsts_seen.
56247         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
56248         not being INT_MAX.
56249         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
56250         Use pc_rels_seen to decide whther a date is absolute.
56251
56252         * lib/getdate.y (number): Don't overwrite year.
56253         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
56254         check.
56255
56256 2005-04-02  Simon Josefsson  <jas@extundo.com>
56257
56258         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
56259         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
56260
56261 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
56262
56263         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
56264         where no absolute path name can be longer than PATH_MAX.
56265
56266 2005-03-27  Jim Meyering  <jim@meyering.net>
56267
56268         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
56269
56270 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
56271
56272         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
56273         "one's complement" -> "ones' complement" in comment, as per Knuth.
56274         "value of type" -> "type or expression" in comment.
56275         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
56276
56277 2005-03-26  Jim Meyering  <jim@meyering.net>
56278
56279         Comment nits.
56280         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
56281         Correct typos: s/or/of/.
56282
56283 2005-03-26  Jim Meyering  <jim@meyering.net>
56284
56285         * modules/check-include-files: Move to ../ and rename to...
56286         * check-module: ...this.
56287
56288 2005-03-25  Jim Meyering  <jim@meyering.net>
56289
56290         * modules/xvasprintf (Files): Add xalloc.h.
56291
56292 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56293
56294         * modules/gettext (Files): config/config.rpath ->
56295         build-aux/config.rpath
56296         * modules/iconv (Files): Likewise.
56297         Problem reported by Oskar Liljeblad.
56298
56299 2005-03-23  Jim Meyering  <jim@meyering.net>
56300
56301         * modules/check-include-files: New script to check for
56302         missing dependencies, multiple includes, etc.
56303
56304         * modules/c-strtold (Depends-on): Add xalloc.
56305         * modules/c-strtod (Depends-on): Add xalloc.
56306         * modules/hash (Depends-on): Add xalloc.
56307         (Files): Remove lib/xalloc.h.
56308
56309         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
56310         * modules/userspec (Files): Add lib/inttostr.h.
56311
56312 2005-03-23  Jim Meyering  <jim@meyering.net>
56313
56314         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
56315
56316 2005-03-22  Jim Meyering  <jim@meyering.net>
56317
56318         * modules/stat-macros: New module.
56319         * modules/canonicalize, modules/euidaccess, modules/file-type,
56320         * modules/filemode, modules/lchown, modules/makepath,
56321         * modules/rmdir, modules/stat: Depend on new stat-macros module
56322         rather than listing lib/stat-macros.h manually.
56323         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
56324
56325 2005-03-22  Jim Meyering  <jim@meyering.net>
56326
56327         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
56328
56329 2005-03-22  Bruno Haible  <bruno@clisp.org>
56330
56331         * config/srclist.txt: Replace target directory 'config' with
56332         'build-aux'.
56333         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
56334         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
56335         ../build-aux/.
56336
56337 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
56338
56339         * modules/chdir-long (Depends-on): Add mempcpy.
56340
56341         * modules/acl, modules/backupfile, modules/c-strtod,
56342         modules/c-strtold, modules/canon-host, modules/canonicalize,
56343         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
56344         modules/exclude, modules/exitfail, modules/file-type,
56345         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
56346         modules/getdate, modules/getline, modules/getpagesize,
56347         modules/getpass, modules/getugroups, modules/group-member,
56348         modules/hard-locale, modules/hash, modules/human, modules/idcache,
56349         modules/inttostr, modules/long-options, modules/makepath,
56350         modules/md5, modules/memcasecmp, modules/memcoll,
56351         modules/modechange, modules/mountlist, modules/path-concat,
56352         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
56353         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
56354         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
56355         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
56356         modules/strftime, modules/strndup, modules/strverscmp,
56357         modules/timespec, modules/unlocked-io, modules/userspec,
56358         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
56359         modules/yesno:
56360         Remove lib_SOURCES line from Makefile.am section, as this is now
56361         done automatically by the corresponding Autoconf macro.
56362
56363 2005-03-21  Jim Meyering  <jim@meyering.net>
56364
56365         Changes imported from coreutils.
56366
56367         * lib/cycle-check.c: Don't include xalloc.h.
56368
56369         * lib/path-concat.c: Don't include assert.h.
56370         (path_concat): Remove assertion that would have triggered
56371         for ABASE starting with more than one slash.
56372         Reported by Andreas Schwab.
56373
56374         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
56375         properly when ABASE is an absolute file name.
56376         Correct the description of this function.
56377         Include <assert.h>.
56378         Add an assertion and a test driver.
56379         This fixes a bug introduced on 2004-07-02.
56380         Andreas Schwab reported the resulting failure of cp --parents:
56381         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
56382
56383 2005-03-21  Jim Meyering  <jim@meyering.net>
56384
56385         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
56386         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
56387
56388 2005-03-21  Jim Meyering  <jim@meyering.net>
56389         and  Paul Eggert  <eggert@cs.ucla.edu>
56390
56391         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
56392         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
56393         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
56394         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
56395         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
56396         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
56397         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
56398         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
56399         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
56400         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
56401         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
56402         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
56403         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
56404         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
56405         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
56406         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
56407         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
56408         for these modules.
56409
56410 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
56411
56412         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
56413         (which shouldn't happen), generate nothing instead of returning 0
56414         immediately, so that nstrftime (NULL, ...) doesn't return 0.
56415
56416 2005-03-16  Bruno Haible  <bruno@clisp.org>
56417
56418         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
56419         HAVE_LONGLONG_64BIT.
56420
56421 2005-03-16  Bruno Haible  <bruno@clisp.org>
56422
56423         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
56424         HAVE_LONGLONG_64BIT.
56425
56426 2005-03-16  Bruno Haible  <bruno@clisp.org>
56427
56428         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
56429         HAVE_LONGLONG_64BIT.
56430
56431 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56432
56433         * lib/strftime.c (my_strftime): Prepend space to format so that we can
56434         reliably distinguish strftime failure from empty output on POSIX
56435         hosts.
56436
56437 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56438
56439         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
56440         (iconv_string): Don't guess a size-zero buffer, as that might cause
56441         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
56442         result would be 'too large', where 'too large' is (heuristically)
56443         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
56444         overflow concerns.  This will prevent some unwanted malloc failures
56445         when the inputs are very large.
56446
56447 2005-03-15  Karl Berry  <karl@gnu.org>
56448
56449         * config/srclist.txt (config.rpath): from gettext.
56450         * config/config.rpath: update.
56451
56452 2005-03-15  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
56455         to 'negate'.
56456
56457         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
56458         variable.
56459
56460         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
56461         results.
56462
56463 2005-03-14  Simon Josefsson  <jas@extundo.com>
56464
56465         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
56466         <fx@gnu.org>.
56467
56468 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
56469
56470         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
56471         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
56472         intprops.h.
56473         * lib/strtol.c: Likewise.
56474
56475 2005-03-14  Jim Meyering  <jim@meyering.net>
56476
56477         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
56478         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
56479         to be nonzero so that we (and caller) can detect the difference
56480         between a valid zero-length expansion and an error return, even
56481         when the underlying strftime fails before writing anything into
56482         that location.
56483
56484 2005-03-14  Bruno Haible  <bruno@clisp.org>
56485
56486         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
56487         Update from GNU gettext 0.14.3.
56488
56489 2005-03-10  Jim Meyering  <jim@meyering.net>
56490
56491         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
56492
56493 2005-03-10  Jim Meyering  <jim@meyering.net>
56494
56495         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
56496         so that this module works on systems without fchdir.
56497
56498 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
56499
56500         Factor int-properties macros into a single file, except for
56501         glibc-related files.
56502         * lib/intprops.h: New file.
56503         * lib/getloadavg.c: Include it instead of limits.h.
56504         (INT_STRLEN_BOUND): Remove.
56505         * lib/human.c: Include intprops.h.
56506         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
56507         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
56508         302/1000.
56509         * lib/inttostr.h: Include intprops.h instead of limits.h.
56510         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
56511         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
56512         for consistency with intprops.h.
56513         (time_t_is_integer, twos_complement_arithmetic): Use them.
56514         * lib/sig2str.h: Include <signal.h>, intprops.h.
56515         (INT_STRLEN_BOUND): Remove.
56516         * lib/strftime.c (TYPE_SIGNED): Remove.
56517         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
56518         * lib/strtol.c: Adjust comments to match intprops.h.
56519         * lib/userspec.c: Include intprops.h.
56520         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
56521         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
56522         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
56523         instead of rolling our own expressions.
56524         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
56525
56526         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
56527         instead of int.
56528         (my_strftime): Do not mishandle years close to INT_MAX, by doing
56529         the right thing even if adding 1900 would overflow.  Similarly
56530         for tm_mon + 1 and tm_yday + 1.
56531         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56532         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56533         (DO_SIGNED_NUMBER): New macro.
56534         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56535
56536 2005-03-07  Bruno Haible  <bruno@clisp.org>
56537
56538         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56539
56540 2005-03-07  Bruno Haible  <bruno@clisp.org>
56541
56542         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56543
56544 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56545
56546         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56547         (func_import): Only replace files via --import when they have actually
56548         changed.
56549
56550 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56551
56552         * m4/mmap-anon.m4: New file.
56553         * m4/pagealign_alloc.m4: New file.
56554
56555 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56556             Bruno Haible  <bruno@clisp.org>
56557
56558         * modules/pagealign_alloc: New file.
56559         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56560
56561 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56562             Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/pagealign_alloc.h: New file.
56565         * lib/pagealign_alloc.c: New file.
56566
56567 2005-03-03  Bruno Haible  <bruno@clisp.org>
56568
56569         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56570         Use an all-permissive copyright notice, recommended by RMS.
56571
56572 2005-03-02  Bruno Haible  <bruno@clisp.org>
56573
56574         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56575         of AIX, the replacement has to be done only after <string.h> is
56576         included, therefore not in config.h. stpncpy.h does the replacement,
56577         and stpncpy.c uses it.
56578
56579 2005-03-02  Bruno Haible  <bruno@clisp.org>
56580
56581         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56582         stpncpy.c uses it.
56583
56584 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56585
56586         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56587         The workaround isn't strictly needed for POSIX conformance, and
56588         it's too much of a pain to configure and maintain.  We'll ask
56589         people to fix their kernels instead.
56590         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56591         (NANOSLEEP_BUG_WORKAROUND): Remove.
56592         (xnanosleep): Remove the workaround.
56593
56594 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56595
56596         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56597         Reported by Derek Price.
56598         (Include): Add "timespec.h".
56599
56600         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56601
56602 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56603
56604         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56605         to detect nanosleep bug.
56606
56607 2005-03-01  Bruno Haible  <bruno@clisp.org>
56608
56609         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56610
56611 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56612
56613         * modules/gethrxtime: New file.
56614         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56615         (Depends-on): Add gethrxtime.
56616         (configure.ac): Add gl_XNANOSLEEP.
56617         (Makefile.am): Remove lib_SOURCES line.
56618
56619 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56620
56621         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56622         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56623
56624 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56625
56626         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56627         * lib/timespec.h (gettime): Return void, since it always
56628         succeeds now.  All uses changed.
56629         * lib/gettime.c (gettime) Likewise.
56630         [HAVE_NANOTIME]: Prefer nanotime.
56631         Assume gettimeofday succeeds, as POSIX requires.
56632         Assime time () succeeds, since other code already does.
56633         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56634         (timespec_subtract): Remove.
56635         (NANOSLEEP_BUG_WORKAROUND): New constant.
56636         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56637         things considerably.  Use it only on GNU/Linux hosts, since the
56638         workaround shouldn't be needed elsewhere.
56639
56640 2005-02-24  Bruno Haible  <bruno@clisp.org>
56641
56642         * modules/gettext (Files): Add m4/glibc2.m4.
56643
56644 2005-02-24  Bruno Haible  <bruno@clisp.org>
56645
56646         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56647         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56648         * m4/progtest.m4:
56649         Update from GNU gettext 0.14.2.
56650         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56651
56652 2005-02-24  Bruno Haible  <bruno@clisp.org>
56653
56654         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56655         * lib/config.charset: Update from GNU gettext 0.14.2.
56656
56657 2005-02-24  Bruno Haible  <bruno@clisp.org>
56658
56659         * lib/gettext.h: Update from GNU gettext 0.14.2.
56660
56661 2005-02-23  Simon Josefsson  <jas@extundo.com>
56662
56663         * m4/iconvme.m4: New file.
56664
56665 2005-02-23  Jim Meyering  <jim@meyering.net>
56666
56667         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56668         change.
56669         Thanks to Bruno Haible for catching it.
56670
56671 2005-02-22  Simon Josefsson  <jas@extundo.com>
56672
56673         * modules/iconvme: New file.
56674
56675         * MODULES.html.sh: Add iconvme.
56676
56677 2005-02-22  Simon Josefsson  <jas@extundo.com>
56678
56679         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56680
56681 2005-02-22  Simon Josefsson  <jas@extundo.com>
56682
56683         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56684
56685 2005-02-22  Jim Meyering  <jim@meyering.net>
56686
56687         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56688         s/ifndef/ifdef/.
56689
56690 2005-02-20  Neil Conway  <neilc@samurai.com>
56691
56692         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56693         returned by OSX/Darwin if the specified buffer is not large
56694         enough for the hostname.
56695
56696 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56697
56698         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56699         pass it to _help, otherwise the latter coredumps trying to
56700         dereference state.root_argp.
56701
56702 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56703
56704         * modules/chdir-long (Depends-on): Add memrchr.
56705         * modules/memrchr (Files): Add lib/memrchr.h.
56706         (Include): "memrchr.h".
56707
56708 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56709
56710         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56711
56712 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * lib/memrchr.h: New file.
56715         * lib/chdir-long.c: Include it.
56716         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56717         Don't bother including stddef.h.
56718
56719 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56720
56721         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
56722         inclusion.
56723         Include <sys/types.h>, for dev_t.
56724         (ME_DUMMY, ME_REMOTE): Move from here....
56725         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
56726         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
56727         Dmitry V. Levin.
56728         Include mountlist.h first, to test the interface.
56729
56730 2005-01-29  Bruno Haible  <bruno@clisp.org>
56731
56732         * lib/progname.c (program_name): Initialize.
56733         Needed when linking statically on MacOS X.
56734
56735 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56736
56737         Sync from coreutils.
56738         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
56739         (Depends-on): Add c-strtod.
56740         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
56741
56742 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56743
56744         Sync from coreutils.
56745         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
56746
56747         Remove files that are specific to coreutils.
56748         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
56749
56750 2005-01-28  Bruno Haible  <bruno@clisp.org>
56751
56752         * modules/javacomp: New file.
56753         * MODULES.html.sh (Java): Add javacomp.
56754
56755 2005-01-28  Bruno Haible  <bruno@clisp.org>
56756
56757         * m4/javacomp.m4: New file, from GNU gettext.
56758
56759 2005-01-28  Bruno Haible  <bruno@clisp.org>
56760
56761         * lib/javacomp.sh.in: New file, from GNU gettext.
56762         * lib/javacomp.h: New file, from GNU gettext.
56763         * lib/javacomp.c: New file, from GNU gettext.
56764
56765 2005-01-26  Simon Josefsson  <jas@extundo.com>
56766
56767         * lib/gai_strerror.c: Use GPL in header.
56768
56769 2005-01-26  Bruno Haible  <bruno@clisp.org>
56770
56771         * modules/javaexec: New file.
56772         * MODULES.html.sh (Java): Add javaexec.
56773
56774 2005-01-26  Bruno Haible  <bruno@clisp.org>
56775
56776         * m4/javaexec.m4: New file, from GNU gettext.
56777
56778 2005-01-26  Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/javaexec.sh.in: New file, from GNU gettext.
56781         * lib/javaexec.h: New file, from GNU gettext.
56782         * lib/javaexec.c: New file, from GNU gettext.
56783
56784 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56785
56786         * modules/lchown (Depends-on): Remove lchown.h
56787
56788 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56789
56790         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
56791         must be defined if the header file was not found, in order
56792         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
56793
56794 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56795
56796         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
56797         initializers for struct pentry_state.
56798         (__argp_error): Check return value of __asprintf
56799         (__argp_failure): Translate error message
56800
56801         * lib/argp-parse.c: Removed braces around the expansion of N_()
56802
56803 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56804
56805         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
56806         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
56807         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
56808         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
56809         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
56810         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
56811         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
56812         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
56813         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
56814         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
56815         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
56816         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
56817         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
56818         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
56819         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
56820         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
56821         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
56822         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
56823         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
56824         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
56825         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
56826         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
56827         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
56828         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
56829         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
56830         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
56831         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
56832         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
56833         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
56834         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
56835         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
56836         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
56837         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
56838         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
56839         xstrtol.m4, xstrtoumax.m4, yesno.m4:
56840         Use an all-permissive copyright notice, recommended by RMS.
56841
56842 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56843
56844         * modules/chdir-long (Depends-on): Remove mempcpy.
56845
56846 2005-01-21  Jim Meyering  <jim@meyering.net>
56847
56848         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
56849         same value as for Solaris 9.
56850
56851         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
56852         component length.  This included changing the parameter to be
56853         of type `char *' rather than `char const *'.
56854         * lib/chdir-long.h (chdir_long): Update prototype.
56855
56856         * lib/openat.c (fdopendir, fstatat): New functions.
56857         * lib/openat.h: Include headers required for use of DIR and struct
56858         stat.
56859         [AT_SYMLINK_NOFOLLOW]: Define.
56860         (fdopendir, fstatat): Add prototypes.
56861
56862 2005-01-21  Bruno Haible  <bruno@clisp.org>
56863
56864         * modules/classpath: New file.
56865         * MODULES.html.sh (Java): Add classpath.
56866
56867 2005-01-21  Bruno Haible  <bruno@clisp.org>
56868
56869         * lib/classpath.h: New file, from GNU gettext.
56870         * lib/classpath.c: New file, from GNU gettext.
56871
56872 2005-01-20  Simon Josefsson  <jas@extundo.com>
56873
56874         * modules/version-etc-fsf: New file.
56875
56876 2005-01-20  Simon Josefsson  <jas@extundo.com>
56877
56878         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
56879         * lib/version-etc.c: Remove version_etc_copyright.
56880         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
56881         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
56882
56883 2005-01-20  Simon Josefsson  <jas@extundo.com>
56884
56885         * lib/base64.h (isbase64): Add.
56886
56887         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
56888         using a unsigned prototype, don't inline.
56889         (base64_decode): Use it.
56890
56891 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56892
56893         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
56894         it.
56895
56896 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56897
56898         * lib/save-cwd.c (save_cwd): Remove code to support the case
56899         where fchdir is missing or flaky.
56900
56901 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56902
56903         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
56904
56905 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56906
56907         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
56908         AC_LIBSOURCES now does this.
56909         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
56910         with new ullong_max module.
56911
56912 2005-01-19  Bruno Haible  <bruno@clisp.org>
56913
56914         * modules/sh-quote: New file.
56915         * MODULES.html.sh (Executing programs): Add sh-quote.
56916
56917 2005-01-19  Bruno Haible  <bruno@clisp.org>
56918
56919         * lib/sh-quote.h: New file, from GNU gettext.
56920         * lib/sh-quote.c: New file, from GNU gettext.
56921
56922 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56923
56924         Merge from coreutils.
56925         * m4/ullong_max.m4: New file.
56926         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
56927         (gl_MACROS): Assume localeconv exists.
56928
56929 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56930
56931         Merge changes from coreutils, as described below in several
56932         changelogs dated today.
56933
56934         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
56935         (O_DIRECTORY): Remove; not needed here, since "." must be
56936         a directory.  All uses removed.
56937         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
56938         universal on Suns, and we also need to test for IRIX.
56939         Revamp code to use 'if' rather than '#if'.
56940         Avoid unnecessary comparison of cwd->desc to 0.
56941
56942         * lib/utimens.c (futimens): Robustify the previous patch, by checking
56943         for known valid error numbers rather than observed invalid ones.
56944
56945 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56946
56947         * modules/ullong_max: New file.
56948
56949         * modules/chdir-long, modules/openat: New files.
56950         * modules/save-cwd (Depends-on): Depend on chdir-long.
56951         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
56952
56953 2005-01-18  Jim Meyering  <jim@meyering.net>
56954
56955         Merge from coreutils.
56956         * m4/chdir-long.m4, m4/openat.m4: New files.
56957         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
56958         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
56959         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
56960         is sane and DOES follow symlinks.  Besides, testing 20 different
56961         systems found no broken chown implementations.
56962         Prompted by a change in rsync's copy of this macro.
56963         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
56964
56965         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
56966
56967         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
56968         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
56969         NULL-means-set-to-current-time semantics.
56970         Remove temporary file immediately, rather than waiting
56971         for configure's at-exit trap code to do it.
56972
56973 2005-01-18  Jim Meyering  <jim@meyering.net>
56974
56975         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56976
56977         * lib/utimens.c (futimens): Account for the fact that futimes
56978         can also fail with errno == ENOSYS or errno == ENOENT.
56979         Patch from Dmitry V. Levin.
56980
56981         Change the name of the robust chdir function from chdir to chdir_long.
56982         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
56983         (restore_cwd): Use chdir_long, not chdir.
56984         * lib/chdir-long.c: Renamed from chdir.c.
56985         * lib/chdir-long.h: Renamed from chdir.h.
56986         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
56987         Hurd.
56988
56989 2005-01-18  Bruno Haible  <bruno@clisp.org>
56990
56991         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
56992         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
56993         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
56994         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
56995         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
56996         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
56997         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
56998         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
56999         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
57000         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
57001         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
57002         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
57003         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
57004         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
57005         Use an all-permissive copyright notice, recommended by RMS.
57006
57007 2005-01-18  Bob Proulx  <bob@proulx.com>
57008
57009         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
57010         simplify offsetof() macro construct to avoid compile failure with
57011         native HP-UX 11.0 ANSI C compiler.
57012
57013 2005-01-17  Bruno Haible  <bruno@clisp.org>
57014
57015         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
57016         redundant because stpncpy.m4 takes care of it.
57017
57018 2005-01-17  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
57021
57022 2005-01-17  Bruno Haible  <bruno@clisp.org>
57023
57024         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
57025         used.
57026
57027 2005-01-17  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/fwriteerror.h (fwriteerror): Change specification to include
57030         fclose.
57031         * lib/fwriteerror.c: Include <stdbool.h>.
57032         (fwriteerror): At the end, close the file stream. Record whether
57033         stdout was already closed.
57034
57035 2005-01-17  Bruno Haible  <bruno@clisp.org>
57036
57037         * lib/execute.c (environ): Declare if needed.
57038         * lib/pipe.c (environ): Likewise.
57039         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
57040
57041 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57042
57043         * modules/argp: Depend on vsnprintf
57044
57045 2005-01-10  Jim Meyering  <jim@meyering.net>
57046
57047         * modules/closeout (Depends-on): Add atexit.
57048
57049 2005-01-06  Bruno Haible  <bruno@clisp.org>
57050
57051         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
57052
57053 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57054
57055         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
57056         definitions to be after all include files, to avoid collisions.
57057         Problem reported by Bob Proulx.
57058
57059 2005-01-04  Jim Meyering  <jim@meyering.net>
57060
57061         Changes imported from coreutils.
57062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
57063         as the mkstemp template, use a temporary directory and an
57064         8.3-friendly template to avoid trouble on systems like DJGPP.
57065         Reported by Juan M. Guerrero via Stepan Kasal.
57066         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
57067         close. Remove the temporary directory right away, rather than waiting
57068         for configure's at-exit trap code to do it.
57069         Suggestion from Stepan Kasal.
57070
57071 2005-01-01  Simon Josefsson  <jas@extundo.com>
57072
57073         * gnulib-tool: Print #include directives when --import'ing.
57074
57075 2004-12-28  Simon Josefsson  <jas@extundo.com>
57076
57077         * tests/test-base64.c: Include required header files.  Remove
57078         unused variables.
57079
57080 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57081
57082         * modules/error (Depends-on): Remove gettext.
57083
57084 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57085
57086         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
57087         not needed.  This removes a dependency on the gettext module.
57088         [defined _LIBC]: Do not include <libintl.h>; not needed.
57089
57090 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57091
57092         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
57093         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
57094
57095 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
57098         HAVE_DECL_STRTOLD.
57099
57100 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57101
57102         * modules/getdate (Depends-on): Remove alloca-opt.
57103
57104 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57105
57106         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
57107
57108 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         * lib/argp-parse.c: Include <stddef.h>.
57111         (alignof, alignto): New macros.
57112         (parser_init): Don't assume that void * is aligned sufficiently
57113         for struct option.
57114
57115         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
57116         need to extend the stack.
57117         (YYINITDEPTH): New macro, so that the initial stack isn't overly
57118         large.
57119
57120 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57121
57122         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
57123
57124 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57125
57126         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
57127         (2004-10-24) change.  Apparently this was a false alarm.
57128
57129         * modules/getdate: Depend on alloca-opt, not alloca.
57130
57131 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57132
57133         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
57134         Remove now-obsolete comment about AIX.
57135         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
57136         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
57137         (YYMAXDEPTH): New macro.
57138
57139 2004-12-18  Simon Josefsson  <jas@extundo.com>
57140
57141         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
57142
57143 2004-12-18  Bruno Haible  <bruno@clisp.org>
57144
57145         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
57146
57147 2004-12-18  Bruno Haible  <bruno@clisp.org>
57148
57149         * lib/fatal-signal.c (fatal_signals): Make non-const.
57150         (init_fatal_signals): New function.
57151         (uninstall_handlers, install_handlers): Ignore signals that were set to
57152         SIG_IGN.
57153         (at_fatal_signal): Call init_fatal_signals.
57154         (init_fatal_signal_set): Likewise. Ignore signals that were set to
57155         SIG_IGN.
57156         Reported by Paul Eggert.
57157
57158 2004-12-18  Bruno Haible  <bruno@clisp.org>
57159
57160         * doc/alloca.texi: New file.
57161         * doc/alloca-opt.texi: New file.
57162
57163 2004-12-17  Jim Meyering  <jim@meyering.net>
57164
57165         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
57166         Otherwise, install-sh could exit with improper exit status when
57167         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
57168
57169 2004-12-16  Simon Josefsson  <jas@extundo.com>
57170
57171         * tests/test-base64.c: Add license.
57172
57173 2004-12-15  Stepan Kasal  <address@hidden>
57174
57175         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
57176
57177 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
57178
57179         * modules/getcwd (Files): Add m4/d-ino.m4.
57180         Suggested by Mark D. Baushke.
57181
57182 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57183
57184         * lib/getdate.y (textint): New member "negative".
57185         (time_zone_hhmm): New function.
57186         Expect 14 shift-reduce conflicts, not 13.
57187         (o_colon_minutes): New rule.
57188         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
57189         (yylex): Set the "negative" member of signed numbers.
57190
57191 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57192
57193         * doc/getdate.texi (Time of day items, Time zone items):
57194         Describe new formats +00:00, UTC+00:00.
57195
57196 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57197
57198         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
57199         spurious "-l"s.  Problem reported by Stepan Kasal.
57200
57201 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
57202
57203         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
57204         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
57205
57206 2004-12-04  Simon Josefsson  <jas@extundo.com>
57207
57208         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
57209         Vandoorselaere <yoann@prelude-ids.org>.
57210
57211 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57212
57213         Changes imported from coreutils.
57214         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
57215         exist.
57216         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
57217
57218 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57219
57220         Changes imported from coreutils.
57221         * lib/hard-locale.c: Assume <locale.h> exists.
57222         Include "strdup.h".
57223         (GLIBC_VERSION): New macro.
57224         (hard_locale): Assume setlocale exists.
57225         Rewrite to avoid #ifdef.
57226         Use strdup rather than malloc + strcpy.
57227         * lib/human.c: Assume <locale.h> exists.
57228         (human_readable): Assume localeconv exists.
57229
57230 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57231
57232         * modules/hard-locale (Depends-on): Add strdup.
57233
57234 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57235
57236         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
57237         convert T2, not T.  (Imported from libc.)
57238
57239 2004-11-30  Simon Josefsson  <jas@extundo.com>
57240
57241         * modules/restrict (License): Change to LGPL.
57242
57243 2004-11-30  Simon Josefsson  <jas@extundo.com>
57244
57245         * m4/restrict.m4: Add copyright and copying conditions.
57246
57247 2004-11-30  Simon Josefsson  <jas@extundo.com>
57248
57249         * m4/base64.m4: New file.
57250
57251 2004-11-30  Simon Josefsson  <jas@extundo.com>
57252
57253         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
57254         base64.
57255
57256         * tests/test-base64.c: New file.
57257
57258         * modules/base64: New file.
57259
57260 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57261
57262         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
57263         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
57264
57265         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
57266
57267 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57268
57269         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
57270         (__getcwd.c): Don't restore errno; glibc doesn't.
57271         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
57272         first, falling back to our code only if its results look suspicious.
57273         Ensure that the resulting buffer is only as large as necessary.
57274
57275         * lib/readutmp.c: Include readutmp.h first.
57276         Include <errno.h>, since readutmp.h no longer does that.
57277         * lib/readutmp.h: Don't include <errno.h>,
57278         <sys/param.h>, <time.h>; not needed to establish interface.
57279         (errno): Remove decl.
57280         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
57281         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
57282         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
57283
57284 2004-11-28  Simon Josefsson  <jas@extundo.com>
57285
57286         * lib/base64.h, base64.c: New file.
57287
57288 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57289
57290         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
57291
57292 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57293
57294         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
57295         (Depends-on): Remove pathmax, same.  Add mempcpy.
57296         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
57297         (Makefile.am): Append getcwd.h to lib_SOURCES.
57298         (Include): Add getcwd.h.
57299         (Maintainer): Change from Jim Meyering to "all, glibc",
57300         since getdate now uses intended-for-glibc code.
57301         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
57302         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
57303
57304 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57305
57306         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
57307         HP's ANSI C compiler.
57308         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
57309         Declaring int functions causes warnings on some modern systems and
57310         shouldn't be needed to compile on ancient ones.
57311         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
57312         defined.
57313
57314         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
57315         with the following changes.
57316         (__set_errno): Parenthesize properly.
57317         Include <stdbool.h>.
57318         (MIN, MAX, MATCHING_INO): New macros.
57319         (__getcwd): Define with prototype, not K&R form.
57320         Use heuristics to allocate default buffer on stack if possible.
57321         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
57322         behavior, and to avoid the PATH_MAX limit when computing
57323         ../../../../...
57324         Use MATCHING_INO to compare inode number to file.
57325         Check for arithmetic overflow in size calculations.
57326         Fix bug in reallocation of dot array that caused getcwd to fail
57327         on directories nested deeper than 75.
57328         Be more careful about saving errno on error.
57329         Do not use realloc; use only free+malloc, as this is a bit
57330         more flexible and avoids a needless copy operation.
57331         Do not inspect st_dev and st_ino for symbolic links; POSIX
57332         doesn't specify the latter.
57333         Check for closedir errors.
57334         Avoid needless casts.
57335         Use "#ifdef weak_alias" around weak_alias, to be like other
57336         glibc code.
57337         The following changes to getcwd.c have effect only when used in
57338         gnulib; they have no effect inside glibc proper.
57339         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
57340         as alloca isn't used.
57341         (alloca, __alloca): Likewise.
57342         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
57343         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57344         unconditionally, as gnulib assumes C89 or better.
57345         Do not include <sys/param.h>.
57346         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
57347         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
57348         better.
57349         (NULL) [!defined NULL]: Remove; we assume C89 or better.
57350         Include <dirent.h> in a way that is compatible with modern Autoconf.
57351         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
57352         New macros, if not already defined.
57353         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
57354         Use "_LIBC", not "defined _LIBC", for consistency.
57355         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
57356         a mempcpy module.
57357         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
57358         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
57359         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
57360         credit only to Jim Meyering and adjust the copyright dates.
57361         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
57362         <stdlib.h>, <unistd.h>, "pathmax.h".
57363         Instead, include "xgetcwd.h" (first) and "getcwd.h".
57364         (INITIAL_BUFFER_SIZE): Remove.
57365         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
57366
57367 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57368
57369         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
57370         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
57371         Use the _ONCE methods, for efficiency.
57372         Check for fcntl.h.  In test program, include <errno.h>
57373         and <fcntl.h> if available.  Remove old K&R cruft from
57374         test program.  Check for common errors in GNU/Linux,
57375         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
57376         don't do AC_LIBOBJ, as that's getcwd.m4's job.
57377         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
57378         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
57379         name accordingly.
57380         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
57381         accommodate new getcwd.c.
57382         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
57383         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
57384         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
57385         that's all we need now.
57386
57387 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57388
57389         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
57390         argp-parse.c depends on getopt internals, that means we should
57391         always use our getopt, to be on the safe side.
57392         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
57393         order not to spoil the result of an eventual previous invocation
57394         of gl_GETOPT_SUBSTITUTE.
57395
57396 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57397
57398         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
57399         redefinition warnings. To avoid them, include the defines
57400         in `#if !defined __need_getopt ... #endif'. The only place
57401         where __getopt_argv_const is used is in definitions
57402         of getopt_long and getopt_long_only below, which are as well
57403         protected by `#ifndef __need_getopt'.
57404         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
57405         __need_getopt after including <stdio.h> and <unistd.h> These
57406         headers might have defined it.
57407
57408 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57409
57410         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
57411
57412 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57413
57414         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
57415         (futimens): New function, which uses futimes if available.
57416         (futimens, utimens): Support timespec==NULL, with same semantics
57417         as utime and utimens.
57418         * lib/utimens.h (futimens): New decl.
57419
57420 2004-11-23  Jim Meyering  <jim@meyering.net>
57421
57422         * lib/getopt_.h: Remove trailing blanks.
57423
57424 2004-11-23  Jim Meyering  <jim@meyering.net>
57425
57426         * lib/__fpending.c: Add comment.
57427
57428 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
57429
57430         * modules/canonicalize (Depends-on): Add xreadlink.
57431         Problem reported by James Youngman.
57432
57433 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57434
57435         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
57436         New macros.
57437         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
57438         optopt): Use them instead of invoking ## directly; otherwise, the
57439         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
57440
57441 2004-11-19  Bruno Haible  <bruno@clisp.org>
57442
57443         * lib/strtok_r.c: Move comments from here...
57444         * lib/strtok_r.h: ... to here.
57445
57446 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57447
57448         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
57449         implementations that mishandle size_t overflow.
57450
57451 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57452
57453         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
57454         might fail.  Problem reported by Yoann Vandoorselaere.
57455         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
57456         implementations that mishandle size_t overflow.
57457
57458 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57459
57460         * modules/canon-host (Depends-on): Add strdup.
57461
57462 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57463
57464         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
57465
57466 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57467
57468         * lib/canon-host.c: Include "strdup.h".
57469         (canon_host): Use getaddrinfo if available, so that IPv6 works.
57470         Use strdup instead of malloc/strcpy to duplicate strings.
57471
57472         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
57473         (human_space_before_unit): New constant.
57474         * lib/human.c (human_readable): Support it.
57475
57476         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
57477         (xgetcwd): Set errno correctly when failing.
57478         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
57479         the failure is actually due to a PATH_MAX problem.
57480
57481         Further getopt changes to make it more likely that glibc will
57482         buy the changes back.
57483         * lib/getopt.c (POSIXLY_CORRECT): New constant.
57484         (getopt): Use it, so to preserve glibc semantic
57485         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
57486         when compiling for libc.
57487         * lib/getopt_.h (__getopt_argv_const): Bring it back.
57488         (getopt_long, getopt_long_only): Use it.
57489
57490         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57491         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
57492         (getopt): Argv is now char * const *, as per standard.
57493         (_getopt_internal_r, _getopt_internal): Argv is now char **,
57494         not char *__getopt_argv_const *.
57495         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57496         _getopt_long_only_r): Likewise.
57497         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
57498         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57499         _getopt_long_r, _getopt_long_only_r): Likewise.
57500         * lib/getopt_.h (__getopt_argv_const): Remove.
57501         (getopt): Argv is now char * const *, as per standard.
57502
57503         * lib/getdate.y (tORDINAL): New token.
57504         (day, relunit): Allow it for relative times.
57505         (relative_time_table): Use tORDINAL for ordinals.
57506
57507 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57508
57509         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
57510         Document that "second" isn't allowed as an ordinal number.
57511
57512 2004-11-16  Jim Meyering  <jim@meyering.net>
57513
57514         * modules/closeout (Depends-on): Add fpending.
57515
57516 2004-11-15  Jim Meyering  <jim@meyering.net>
57517
57518         * lib/closeout.c: Include "__fpending.h" once again.
57519         Include <stdbool.h>.
57520         (close_stdout): Don't fail just because stdout was closed initially,
57521         since some programs don't write to stdout in the normal course of
57522         operation (other than --version and --help), and we don't want this
57523         function to make e.g. `touch file >&-' fail.
57524         But do fail if it was closed and someone has tried to write to it.
57525         E.g., `printf foo >&-' must fail.
57526
57527 2004-11-13  Jim Meyering  <jim@meyering.net>
57528
57529         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
57530
57531 2004-11-12  Simon Josefsson  <jas@extundo.com>
57532
57533         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57534         small doc fix is still pending.
57535
57536 2004-11-11  Simon Josefsson  <jas@extundo.com>
57537
57538         * modules/strtok_r: New file.
57539
57540         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57541         strtok_r.
57542
57543 2004-11-11  Simon Josefsson  <jas@extundo.com>
57544
57545         * m4/strtok_r.m4: New file.
57546
57547         * m4/getopt.m4: Replace opterr.
57548
57549 2004-11-11  Simon Josefsson  <jas@extundo.com>
57550
57551         * lib/strtok_r.h, strtok_r.c: New file.
57552
57553 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57554
57555         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57556         of replacing opterr, getopt, etc.  This should handle the
57557         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57558
57559 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57560
57561         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57562         we can stop lying to compilers about the constness of argv when we
57563         are compiled outside glibc.
57564         (getopt, getopt_long, getopt_long_only): Use it.
57565         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57566         _getopt_internal, getopt): Likewise.
57567         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57568         _getopt_long_only_r): Likewise.
57569         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57570         _getopt_long_r, _getopt_long_only_r): Likewise.
57571
57572         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57573         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57574         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57575         the other external symbols.
57576         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57577         declaration, since the above renaming now works around collisions.
57578
57579 2004-11-11  Jim Meyering  <jim@meyering.net>
57580
57581         * lib/linebreak.c: Remove trailing blanks.
57582         * lib/alloca_.h: Likewise.
57583         * lib/acosl.c: Likewise.
57584         * lib/euidaccess.c: Likewise.
57585         * lib/allocsa.h: Likewise.
57586
57587 2004-11-10  Simon Josefsson  <jas@extundo.com>
57588
57589         * m4/getaddrinfo.m4: New file.
57590
57591 2004-11-10  Simon Josefsson  <jas@extundo.com>
57592
57593         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57594
57595 2004-11-10  Simon Josefsson  <jas@extundo.com>
57596
57597         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57598         getaddrinfo.
57599
57600         * modules/getaddrinfo: New file.
57601
57602 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57603
57604         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57605
57606 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57607
57608         * lib/mktime.c (SHR): New macro, which is a portable
57609         substitute for >> that should work even on Crays.
57610         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57611         Problem reported by Mark D. Baushke in
57612         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57613         * lib/getdate.y (SHR): Likewise.
57614         (tm_diff): Use it.
57615         * lib/strftime.c (SHR): Likewise.
57616         (tm_diff): Use it.
57617         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57618         quote_these_too, so that right shifts are well defined.  All uses
57619         changed.
57620
57621 2004-11-10  Jim Meyering  <jim@meyering.net>
57622
57623         Ensure that no close failure goes unreported.
57624         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57625         return early when it seems there's nothing to flush.
57626         Don't include __fpending.h.
57627
57628 2004-11-10  Jim Meyering  <jim@meyering.net>
57629
57630         * modules/closeout (Depends-on): Remove fpending.
57631
57632 2004-11-10  Jim Meyering  <jim@meyering.net>
57633
57634         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57635
57636 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57637
57638         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57639         gl_FUNC_STRFTIME.
57640         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57641         and AC_REQUIRE when possible, to avoid duplicate checks.
57642         Check for <wchar.h>.
57643
57644 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57645
57646         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57647
57648 2004-11-09  Bruno Haible  <bruno@clisp.org>
57649
57650         * m4/sockpfaf.m4: New file.
57651
57652 2004-11-05  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57655         Reported by Mark D. Baushke <mdb@cvshome.org>.
57656
57657 2004-11-04  Bruno Haible  <bruno@clisp.org>
57658
57659         2004-09-11  Bruno Haible  <bruno@clisp.org>
57660                 * allocsa.valgrind: New file.
57661         2004-02-06  Bruno Haible  <bruno@clisp.org>
57662                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57663                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57664                 Reported by Christopher Seip <chris.seip@hp.com>.
57665
57666 2004-11-04  Bruno Haible  <bruno@clisp.org>
57667
57668         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57669         (Makefile.am): Distribute it.
57670
57671 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57672
57673         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57674         with errno == ERANGE if the buffer is too small.
57675         Problem reported by Mark D. Baushke.
57676
57677 2004-11-03  Albert Chin  <china@thewrittenword.com>
57678             Paul Eggert  <eggert@cs.ucla.edu>
57679
57680         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57681         equivalent, substitute $ac_type for equivalent type rather than
57682         blindly using uint32_t *always* which won't work if uint32_t is not
57683         available.  Define _UINT32_T to work around typedef of uint32_t if
57684         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57685         2.5.1.
57686
57687 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57688
57689         * m4/jm-macros.m4: Sync from coreutils.
57690         (gl_MACROS): Check for mbrlen, for pathchk.
57691         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57692
57693 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         * lib/xreadlink.c (MAXSIZE): New macro.
57696         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57697         size does not exceed MAXSIZE.  Avoid cast.
57698         As suggested by Mark D. Baushke in
57699         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57700         if readlink fails with buffer size just under MAXSIZE, try again
57701         with MAXSIZE.
57702
57703 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57704
57705         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57706
57707 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57708         and  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57711         (get_date): Overparenthesize to avoid GCC warning.
57712
57713 2004-11-02  Bruno Haible  <bruno@clisp.org>
57714
57715         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57716         returns void.
57717
57718 2004-11-02  Bruno Haible  <bruno@clisp.org>
57719
57720         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
57721         function returns void.
57722
57723 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57724
57725         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
57726         fflush_unlocked, flockfile, funlockfile, funlockfile,
57727         fputs_unlocked, putc_unlocked.
57728
57729 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57730
57731         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57732         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
57733         already declared.
57734
57735 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57736
57737         * modules/getdate (Files): Add doc/getdate.texi.
57738         (Depends-on): Add setenv, xalloc.
57739
57740 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57741
57742         * lib/getdate.y: Add support for TZ="foo" within a date string.
57743         Fix some bugs near time_t boundaries.  Reject dates with
57744         out-of-range components, e.g., "Sept 31".
57745         Include <stdlib.h>, "setenv.h", "xalloc.h".
57746         (ISDIGIT_LOCALE): Remove; unused.
57747         Note that the TZ and time functions used here are not reentrant.
57748         (mktime_ok, get_tz): New functions.
57749         (TZBUFSIZE): New constant.
57750         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
57751         This requires that we sometimes generate our own TZ="XXX..." setting.
57752
57753 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57754
57755         * doc/getdate.texi: New file, from coreutils with modifications for
57756         the new TZ parsing.
57757
57758 2004-10-27  Derek R. Price  <derek@ximbiot.com>
57759
57760         * lib/mktime.c (not_equal_tm): Remove redundant check.
57761
57762 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         * modules/regex (lib_SOURCES): Add regex.c.
57765         Reported by James Youngman in
57766         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
57767
57768 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57769
57770         * lib/getdate.y: Use Bison 1.875 features, and some minor
57771         code cleanups.  This change does not affect semantics.
57772         Don't include <stdlib.h>; no longer needed.
57773         Don't include unlocked-io.h; only the "#if TEST" code uses
57774         stdio, and performance isn't crucial there.
57775         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
57776         Bison 1.875 features as described below.
57777         All uses of "PC." replaced by "pc->".
57778         (YYSTYPE): Add a forward declaration.
57779         (yylex, yyerror): Use full prototypes in forward decls.
57780         Use "%pure-parser" rather than obsolescent "%pure_parser".
57781         Use %parse-param and %lex-param instead of obsolescent
57782         YYPARSE_PARAM and YYLEX_PARAM.
57783         (meridian_table, month_and_day_table, time_units_table,
57784         relative_time_table, time_zone_table, military_table,
57785         lookup_zone, lookup_word, get_date):
57786         Use NULL instead of 0 where appropriate.
57787         (to_hour): Avoid abort (), to avoid a dependency on
57788         stdlib.h.
57789         (yyerror, yylex): Now accepts parser_control * arg.
57790         (main) [TEST]: Use '\0' rather than 0 for char.
57791
57792 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57793
57794         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
57795
57796 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57797
57798         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
57799         It's now the caller's responsibility to handle the case where
57800         !HAVE_GETPAGESIZE && !defined getpagesize.
57801
57802         * lib/mktime.c (leapyear): Arg is long int, not int.
57803
57804 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
57805
57806         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
57807
57808 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
57811         missing.  Problem reported by James Youngman.
57812
57813 2004-10-16  Simon Josefsson  <jas@extundo.com>
57814
57815         * gnulib-tool: Fix comments.  Fix parse problem.
57816         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
57817
57818 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
57819
57820         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
57821         implementation of getopt_long.  Problem reported by Alexander Taler in:
57822         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
57823
57824 2004-10-15  Bruno Haible  <bruno@clisp.org>
57825
57826         * gnulib-tool: Untabify. Initialize supplied_libname.
57827         (func_usage): More homogenous output.
57828         (func_modules_transitive_closure, func_modules_to_filelist,
57829         func_emit_lib_Makefile_am): New functions.
57830         (func_import): New function, extracted from big case statement. Use
57831         func_get_license, func_modules_transitive_closure,
57832         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
57833         opt_lgpl. Don't use test -a, as it's not portable.
57834         (func_create_testdir): Use func_modules_transitive_closure,
57835         func_modules_to_filelist, func_emit_lib_Makefile_am.
57836
57837 2004-10-15  Bruno Haible  <bruno@clisp.org>
57838
57839         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
57840
57841 2004-10-15  Bruno Haible  <bruno@clisp.org>
57842
57843         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
57844         the portions belonging to each module.
57845         Suggested by Derek Robert Price <derek@ximbiot.com>.
57846
57847 2004-10-12  Simon Josefsson  <jas@extundo.com>
57848
57849         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57850         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
57851         to real functions.
57852
57853 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57854
57855         * modules/vsnprintf: New file.
57856
57857 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57858
57859         * m4/vsnprintf.m4: New file.
57860
57861 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57862
57863         * lib/vsnprintf.h: New file.
57864         * lib/vsnprintf.c: New file.
57865
57866 2004-10-11  Bruno Haible  <bruno@clisp.org>
57867
57868         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
57869         vsnprintf.
57870
57871 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57872
57873         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
57874
57875 2004-10-07  Bruno Haible  <bruno@clisp.org>
57876
57877         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
57878         fits into the provided buffer.
57879
57880 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57881
57882         * lib/diacrit.c, diacrit.h: Add GPL notice.
57883
57884         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
57885         notice.
57886         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
57887         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
57888         This avoids a potential constant-folding bug.
57889
57890 2004-10-05  Bruno Haible  <bruno@clisp.org>
57891
57892         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
57893         for the declaration of strsep.
57894
57895 2004-10-05  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
57898
57899 2004-10-04  Simon Josefsson  <jas@extundo.com>
57900
57901         * modules/memmem: New file.
57902         * tests/test-memmem.c: New file.
57903         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
57904
57905 2004-10-04  Simon Josefsson  <jas@extundo.com>
57906
57907         * m4/memmem.m4: New file.
57908
57909 2004-10-04  Simon Josefsson  <jas@extundo.com>
57910
57911         * lib/memmem.h: New file.
57912         * lib/memmem.c: New file, taken from glibc.
57913
57914 2004-10-04  Simon Josefsson  <jas@extundo.com>
57915
57916         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
57917         '#ifdef USE_UNLOCKED_IO'.
57918
57919 2004-10-04  Simon Josefsson  <jas@extundo.com>
57920
57921         * config/srclist.txt: Add memmem from glibc.
57922
57923 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
57926
57927         * modules/argmatch, modules/argp, modules/closeout, modules/error,
57928         modules/exclude, modules/getdate, modules/getline,
57929         modules/getndelim2, modules/getpass, modules/getpass-gnu,
57930         modules/getusershell, modules/linebuffer, modules/md5,
57931         modules/mountlist, modules/posixtm, modules/readtokens,
57932         modules/readutmp, modules/regex, modules/sha1,
57933         modules/version-etc, modules/yesno:
57934         Remove dependency on unlocked-io.
57935
57936 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57937
57938         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
57939
57940         * m4/unlocked-io.m4: Add copyright notice.
57941         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
57942
57943 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57944
57945         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
57946         * lib/xmalloc.c (xmemdup): Likewise.
57947         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
57948         XFREE): Remove these long-obsolescent macros.
57949         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
57950         * lib/xstrdup.c: Remove.
57951
57952         * lib/regex.c (re_comp): Cast gettext return value to char *,
57953         Problem reported by Martin Neitzel via Mark D. Baushke.
57954
57955 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57956
57957         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
57958         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
57959         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
57960         regex.c, sha1.c, version-etc.c, yesno.c:
57961         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
57962         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
57963         the includer's responsibility.
57964
57965         Sync from coreutils.
57966
57967         * lib/modechange.c (mode_compile): Don't decrement a pointer that
57968         points to the start of a string, as the C Standard says the
57969         resulting behavior is undefined.
57970
57971         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
57972         simple -> simple_backups, numbered_existing ->
57973         numbered_existing_backups, numbered -> numbered_backups
57974         to avoid shadowing problems.  All uses changed.
57975         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
57976         * lib/backupfile.c (check_extension, numbered_backup):
57977         Rename locals to avoid shadowing 'basename'.
57978         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
57979         once.
57980
57981         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
57982         * lib/.cvsignore: Add getopt.h.
57983
57984 2004-10-04  Bruno Haible  <bruno@clisp.org>
57985
57986         * modules/README: New file.
57987         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
57988         not a module.
57989
57990 2004-10-02  Jim Meyering  <jim@meyering.net>
57991
57992         * lib/dirfd.h, getpagesize.h: Add copyright notice.
57993
57994 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57995
57996         * modules/strsep: New file.
57997
57998 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57999
58000         * m4/strsep.m4: New file.
58001
58002 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58003
58004         * lib/strsep.h: New file.
58005         * lib/strsep.c: New file.
58006
58007 2004-10-01  Simon Josefsson  <jas@extundo.com>
58008
58009         * lib/snprintf.c (snprintf): Handle size==0.
58010
58011 2004-10-01  Simon Josefsson  <jas@extundo.com>
58012             Bruno Haible  <bruno@clisp.org>
58013
58014         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
58015         (snprintf): Declare 'args'.
58016
58017 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
58018
58019         * lib/snprintf.c: Remove comments as to why each header is needed.
58020
58021 2004-10-01  Bruno Haible  <bruno@clisp.org>
58022
58023         * MODULES.html.sh: Add strsep.
58024
58025 2004-09-30  Simon Josefsson  <jas@extundo.com>
58026
58027         * modules/snprintf: New file.
58028
58029 2004-09-30  Simon Josefsson  <jas@extundo.com>
58030
58031         * m4/snprintf.m4: New file.
58032
58033 2004-09-30  Simon Josefsson  <jas@extundo.com>
58034
58035         * lib/snprintf.h, lib/snprintf.c: New files.
58036
58037 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58038
58039         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
58040         (hol_entry_help): Never translate an empty string.
58041         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
58042         * lib/argp.h (OPTION_NO_TRANS): New option.
58043
58044 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58045
58046         * modules/argp (Maintainer): Replace Simon Josefsson
58047         by Sergey Poznyakoff.
58048
58049 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58050
58051         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
58052         changes merged back into glibc.
58053
58054 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58055
58056         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
58057
58058 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58059
58060         * lib/xvasprintf.c: Include xalloc.h.
58061         (xvasprintf): Use xalloc_die, not xmalloc_die.
58062
58063 2004-09-29  Bruno Haible  <bruno@clisp.org>
58064
58065         * modules/alloca-opt: New file, derived from modules/alloca.
58066         * modules/allocsa: Depend on alloca-opt instead of alloca.
58067         * modules/setenv: Likewise.
58068         * modules/vasnprintf: Likewise.
58069         * MODULES.html.sh: Add alloca-opt.
58070
58071 2004-09-28  Simon Josefsson  <jas@extundo.com>
58072
58073         * gnulib-tool: New parameter --lgpl, to asseert that modules are
58074         LGPL, and to replace license template from GPL to LGPL.
58075
58076 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         * modules/dummy: Change license to LGPL.
58079
58080 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58081
58082         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
58083
58084 2004-09-24  Simon Josefsson  <jas@extundo.com>
58085
58086         * modules/minmax (License): Change from GPL to LGPL.
58087
58088 2004-09-23  Simon Josefsson  <jas@extundo.com>
58089
58090         * gnulib-tool (--import): Typo.
58091
58092 2004-09-23  Simon Josefsson  <jas@extundo.com>
58093
58094         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
58095
58096 2004-09-22  Bruno Haible  <bruno@clisp.org>
58097
58098         * modules/*: Add 'License' field.
58099         * gnulib-tool: Accept --extract-license option.
58100         (func_get_license): New function.
58101
58102 2004-09-21  Bruno Haible  <bruno@clisp.org>
58103
58104         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
58105         Reported by Simon Josefsson.
58106
58107 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58108
58109         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
58110         gl_AC_TYPE_LONG_LONG.
58111
58112 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58113
58114         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
58115
58116 2004-09-18  Simon Josefsson  <jas@extundo.com>
58117         and  Paul Eggert  <eggert@cs.ucla.edu>
58118
58119         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
58120         calls with autoreconf.  Define GL_LIB.
58121
58122 2004-09-14  Karl Berry  <karl@gnu.org>
58123
58124         * config/srclist.txt: unsync setenv.c, sigh.
58125
58126 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58127
58128         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
58129         Problem reported by Bruno Haible in:
58130         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
58131
58132 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58133
58134         * config/srclist.txt: Comment out argp-pvh.c.
58135
58136 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
58137
58138         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
58139         in case some system header has #define'd it.  Problem reported by
58140         Soeren D. Schulze in
58141         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
58142
58143 2004-09-09  Karl Berry  <karl@gnu.org>
58144
58145         * regex.[ch]: delete from the root.  These were supposed to be
58146                 synced with emacs cvs, but this has not happened for about
58147                 a year, and anyway nothing else uses emacs regex.[ch].
58148                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
58149                 lib/regex[.ch] is untouched.
58150
58151 2004-09-09  Bruno Haible  <bruno@clisp.org>
58152
58153         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
58154
58155 2004-09-09  Bruno Haible  <bruno@clisp.org>
58156
58157         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
58158         modifications.
58159         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
58160
58161 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58162
58163         * modules/xvasprintf: New file.
58164         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
58165
58166 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58167
58168         * lib/xvasprintf.h: New file.
58169         * lib/xvasprintf.c: New file.
58170         * lib/xasprintf.c: New file.
58171
58172 2004-09-08  Bruno Haible  <bruno@clisp.org>
58173
58174         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
58175
58176 2004-09-08  Bruno Haible  <bruno@clisp.org>
58177
58178         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
58179         length is > INT_MAX.
58180         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
58181         more.
58182
58183 2004-09-08  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/stdint_.h: New file, taken from GNU clisp.
58186
58187 2004-09-08  Bruno Haible  <bruno@clisp.org>
58188             Oskar Liljeblad  <oskar@osk.mine.nu>
58189
58190         * modules/stdint: New file.
58191         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
58192
58193 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58194
58195         Import from coreutils.
58196         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
58197         strings on unbounded length.  alloca's performance benefits aren't
58198         that important here.
58199         (V_STRDUP): Remove.
58200         (parse_with_separator): New function, with most of the internals
58201         of the old parse_user_spec.  Allow user to omit both user and group,
58202         for compatibility with FreeBSD.
58203         Clone only the user name, not the entire spec.
58204         Do not set *uid, *gid unless entirely successful.
58205         Avoid memory leak in some failing cases.
58206         Fix regression for USER.GROUP reported by Dmitry V. Levin in
58207         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
58208         (parse_user_spec): Rewrite to use parse_with_separator.
58209
58210 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         * modules/userspec: Don't depend on alloca.
58213
58214 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58215
58216         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
58217
58218 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58219
58220         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
58221         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
58222         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
58223
58224 2004-08-16  Simon Josefsson  <jas@extundo.com>
58225
58226         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
58227         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
58228         Add --dry-run for --import.
58229         Let user provided command line parameters override configure.ac
58230         settings.
58231
58232 2004-08-12  Simon Josefsson  <jas@extundo.com>
58233
58234         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
58235         as discussed with Paul Eggert in threads rooted at
58236         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
58237         and
58238         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
58239         Before, the test was empty, and relied on ELIDE_CODE in source
58240         code.)
58241         (gl_PREREQ_GETOPT): New macro.
58242         (gl_GETOPT): Use them.
58243
58244 2004-08-12  Simon Josefsson  <jas@extundo.com>
58245
58246         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
58247         * lib/getopt_.h: Renamed from getopt.h.
58248
58249 2004-08-12  Simon Josefsson  <jas@extundo.com>
58250
58251         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
58252         Change default library name from libfoo to libgnu.
58253         Now, if you have a configure.ac that says:
58254                 gl_SOURCE_BASE(gl)
58255                 gl_M4_BASE(gl/m4)
58256                 gl_MODULES(error getopt etcetera)
58257                 gl_INIT
58258         you can import all you need by running:
58259                 ../gnulib/gnulib-tool --import
58260
58261         * modules/getopt (Files): Rename getopt.h to getopt_.h.
58262         (Makefile.am): Rewrite, use logic from argz.
58263         (Include): Use <getopt.h> instead of "getopt.h".
58264
58265 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58266
58267         * modules/argp (Files): Add m4/unlocked-io.m4.
58268         (Depends-on): Add extensions.
58269
58270 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58271
58272         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
58273         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
58274         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
58275         Check for program_invocation_name, program_invocation_short_name,
58276         flockfile, funlockfile, features.h, _getopt_long_only_r.
58277
58278 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58279
58280         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
58281         its complicated substitute.
58282         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
58283         and program_invocation_name.
58284         (__argp_basename) [!_LIBC]: Remove; the only use was
58285         replaced by its body.
58286         (__argp_short_program_name): Change condition from
58287         !defined __argp_short_program_name to
58288         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
58289         to match argp-namefrob.h.
58290         (__argp_failure): Don't assume strerror_r returns char *.
58291         * lib/argp-parse.c (N_): Define unconditionally.
58292         (argp_default_options): Fill out initializers with 0 to avoid
58293         gcc warnings.
58294
58295 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58296
58297         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
58298         getopt1.c.
58299
58300 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58301
58302         Merge from coreutils.
58303
58304         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
58305
58306         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
58307         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
58308
58309 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58310
58311         Merge from coreutils.
58312
58313         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
58314         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
58315         for Reliant Unix 5.43.
58316
58317         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
58318         (union fooround): Use uintmax_t, not long int.
58319         The rest is a merge from libc:
58320         [defined _LIBC]: Include <shlib-compat.h>.
58321         (_obstack) [defined _LIBC]: Remove after 2.3.4.
58322
58323         * lib/settime.c (settime): Recode to avoid warning with
58324         Sun Forte C 6U2.
58325
58326         * lib/strverscmp.c: Convert to UTF-8.
58327
58328 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58329
58330         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58331         m4/uintmax_t.m4.
58332
58333 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58334
58335         * modules/xalloc-die: New file.
58336         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
58337
58338         * modules/md5 (Files): Add m4/uint32_t.m4.
58339         * modules/sha1: Renamed from modules/sha.
58340         (Files):
58341         Rename lib/sha.h to lib/sha1.h.
58342         Rename lib/sha.c to lib/sha1.c.
58343         Rename m4/sha.m4 to m4/sha1.m4.
58344         (lib_SOURCES): Likewise.
58345         (configure.ac): Rename gl_SHA to gl_SHA1.
58346         (Include): sha.h -> sha1.h.
58347
58348 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
58351         * m4/sha1.m4: Renamed from sha.m4.
58352         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
58353
58354 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58355
58356         * lib/obstack.h (obstack_empty_p):
58357         Don't assume that chunk->contents is suitably aligned.
58358         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
58359         Likewise. Problem reported by Benno in
58360         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
58361
58362         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
58363         readable.  This could be improved further but it'd take some work.
58364
58365 2004-08-08  Simon Josefsson  <jas@extundo.com>
58366
58367         * modules/xgethostname (Depends-on): Remove exit and error (not
58368         used).
58369
58370         * modules/getpass-gnu: Add getpass.h.
58371         (Depends-on): Add stdbool.
58372         * modules/getpass: Add getpass.h.
58373
58374 2004-08-08  Simon Josefsson  <jas@extundo.com>
58375
58376         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
58377         Check getpass declaration.
58378
58379 2004-08-08  Simon Josefsson  <jas@extundo.com>
58380
58381         * lib/xgethostname.c: Don't include error.h (not used).
58382
58383         * lib/getpass.h: Add.
58384         * lib/getpass.c: Include getpass.h first.
58385
58386 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         * lib/xalloc-die.c: New file.
58389         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
58390         All uses removed.
58391         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
58392         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
58393         xalloc-die.c.
58394         (_, N_, xalloc_die): Move to xalloc-die.c.
58395         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
58396         so that we needn't mess with xalloc_msg_memory_exhausted.
58397
58398         * lib/sha1.h: Renamed from sha.h.
58399         (SHA1_H): Renamed from _SHA_H.
58400         (sha1_ctx): Renamed from sha_ctx.
58401         (sha1_init_ctx): Renamed from sha_init_ctx.
58402         (sha1_process_block): Renamed from sha_process_block.
58403         (sha1_process_bytes): Renamed from sha_process_bytes.
58404         (sha1_finish_ctx): Renamed from sha_finish_ctx.
58405         (sha1_read_ctx): Renamed from sha_read_ctx.
58406         (sha1_stream): Renamed from sha_stream.
58407         (sha1_buffer): Renamed from sha_buffer.
58408         * lib/sha1.c: Likewise; renamed from sha.c.
58409         Do not include <sys/types.h>.
58410         Include <stddef.h> rather than <stdlib.h>.
58411
58412 2004-08-08  Bruno Haible  <bruno@clisp.org>
58413
58414         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
58415         FILESYSTEM_PREFIX_LEN.
58416         * lib/progreloc.c: Likewise.
58417         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
58418
58419 2004-08-06  Simon Josefsson  <jas@extundo.com>
58420
58421         * modules/progname (Depends-on): Don't depend on stdbool.
58422
58423 2004-08-06  Simon Josefsson  <jas@extundo.com>
58424
58425         * modules/getsubopt: New file.
58426         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58427         getsubopt.
58428
58429 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58430
58431         More merge from coreutils.
58432
58433         * m4/utimens.m4, m4/utimecmp.m4: New files.
58434         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
58435         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
58436         prereq.m4, sha.m4: Import changes from coreutils.
58437
58438 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58439
58440         More merge from coreutils.
58441         * modules/raise, modules/readtokens0, modules/utimens:
58442         * modules/utimecmp, module/xnanosleep: New files.
58443         * modules/strftime: Add lib/strftime.h.
58444         Change include from <time.h> to "strftime.h".
58445         * modules/yesno: Add lib/yesno.h.
58446         * modules/backupfile: Remove lib/addext.c.
58447         * modules/euidaccess: Add stat-macros.h.
58448         * modules/canonicalize, modules/euidaccess,
58449         modules/filemode, modules/lchown, modules/makepath,
58450         modules/rmdir, modules/stat: Likewise.
58451
58452 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58453
58454         Merge from tar.
58455         * lib/argp-help.c (make_hol, hol_append): Don't assume that
58456         SIZE_MAX is a valid preprocessor constant.
58457         (__argp_basename): Change from "#ifndef _LIBC"
58458         to "#ifndef __argp_short_program_name", so that
58459         we don't compile these functions for tar.
58460
58461         More merges from coreutils.
58462         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
58463         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
58464         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
58465         * lib/addext.c: Remove; no longer needed.
58466         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
58467         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
58468         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
58469         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
58470         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
58471         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
58472         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
58473         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
58474         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
58475         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58476         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
58477         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
58478         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
58479         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
58480         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
58481         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
58482         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
58483         Import changes from coreutils.
58484
58485 2004-08-05  Simon Josefsson  <jas@extundo.com>
58486
58487         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
58488
58489 2004-08-05  Simon Josefsson  <jas@extundo.com>
58490
58491         * m4/getsubopt.m4: New file.
58492
58493 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58494
58495         Merge from coreutils.
58496
58497         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
58498         * m4/getcwd-path-max.m4: New files.
58499
58500         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
58501         FILESYSTEM_PREFIX_LEN ->
58502         FILE_SYSTEM_PREFIX_LEN.
58503         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
58504         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
58505         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
58506         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
58507
58508         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
58509         prerequisite modules now handle the DOS stuff.
58510         Don't check for unistd.h.
58511
58512 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58513
58514         Merge from coreutils.
58515
58516         * lib/.gdb-history: Remove; this doesn't belong here.
58517
58518         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
58519         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
58520         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
58521         * lib/getcwd.c: New files.
58522
58523         * lib/dirname.h: Include <stdbool.h>.
58524         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
58525         for consistency with POSIX terminology.  All uses changed.
58526         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
58527         (strip_trailing_slashes): Use bool for booleans.
58528         * lib/stripslash.c (strip_trailing_slashes): Likewise.
58529
58530         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
58531         sometimes returns a positive errno value even when it succeeds.
58532         (print_errno_message) [!LIBC]: Fall back on strerror if
58533         __strerror_r fails.
58534
58535         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58536         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58537         (longest_relative_suffix): New function.
58538         (path_concat): Use it.  Assume first argument is not NULL.
58539         Port to DOS.  Omit redundant separators.
58540         Report an error instead of returning NULL.
58541         Use mempcpy instead of memcpy.
58542         (xpath_concat): Remove: not declared or used.
58543
58544         * lib/same.h: Include <stdbool.h>
58545         (same_name): Return bool, not int.
58546         * lib/same.c (same_name): Likewise.
58547         (errno): Don't declare; we assume C89 or better now.
58548
58549         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58550         if not already defined.
58551
58552         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58553         * lib/dup-safer.c (errno): Likewise.
58554
58555 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58556
58557         Merge from coreutils.
58558         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58559         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58560         * modules/path-concat: Don't depend on strdup.
58561
58562 2004-08-03  Simon Josefsson  <jas@extundo.com>
58563
58564         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58565         * lib/progname.h: Don't include stdbool.h.
58566
58567 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58568
58569         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58570         * MODULES.html.sh (func_all_modules): Remove fatal.
58571
58572 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58573
58574         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58575
58576 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58579         working.
58580
58581 2004-08-02  Simon Josefsson  <jas@extundo.com>
58582
58583         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58584         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58585         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58586
58587 2004-08-01  Simon Josefsson  <jas@extundo.com>
58588
58589         * lib/xgetdomainname.c: Include stdlib.h, for free().
58590
58591 2004-07-19  Bruno Haible  <bruno@clisp.org>
58592
58593         * MODULES.html.sh (func_all_modules): Add dummy.
58594
58595 2004-07-16  Simon Josefsson  <jas@extundo.com>
58596
58597         * modules/dummy: New file.
58598
58599 2004-07-16  Simon Josefsson  <jas@extundo.com>
58600
58601         * lib/dummy.c: New file.
58602
58603 2004-07-16  Bruno Haible  <bruno@clisp.org>
58604
58605         * lib/backupfile.h: Add extern "C" for C++.
58606         * lib/closeout.h: Likewise.
58607         * lib/copy-file.h: Likewise.
58608         * lib/findprog.h: Likewise.
58609         * lib/full-write.h: Likewise.
58610         * lib/pathname.h: Likewise.
58611         * lib/progname.h: Likewise.
58612         * lib/stpcpy.h: Likewise.
58613         * lib/stpncpy.h: Likewise.
58614         * lib/strcase.h: Likewise.
58615         * lib/strstr.h: Likewise.
58616         * lib/xalloc.h: Likewise.
58617
58618         * lib/mbswidth.h: Add extern "C" for C++.
58619         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58620
58621 2004-07-13  Robert Millan  <robertmh@gnu.org>
58622
58623         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58624
58625 2004-07-09  Simon Josefsson  <jas@extundo.com>
58626
58627         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58628         failed without this.)
58629
58630 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         * modules/chown (Files): Add lib/fchown-stub.c, since
58633         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58634
58635 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58636
58637         * lib/fchown-stub.c: New file.
58638
58639 2004-06-24  Jim Meyering  <jim@meyering.net>
58640
58641         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58642
58643 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58644
58645         * modules/argz: Omit "#include".
58646
58647         * MODULES.html.sh (func_all_modules): Add calloc, to match
58648         2004-06-01 addition of calloc module.
58649
58650 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58651
58652         * m4/argz.m4: New file, which is autoupdated from libtool.
58653
58654 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58655
58656         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58657         libtool.
58658
58659 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58660
58661         * config/srclist-update: Don't insist on "USA." before the
58662         close-comment, as libtool omits the period and puts the */ on a
58663         separate line.
58664         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58665         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58666
58667 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58668
58669         * modules/argz: New file.
58670         * MODULES.html.sh (func_all_modules): Add argz.
58671
58672 2004-06-12  Jim Meyering  <jim@meyering.net>
58673         and  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         * modules/hash (Files): Add lib/xalloc.h.
58676         * modules/pipe (Depends-on): Add wait-process.
58677         * modules/stat (Depends-on): Add xalloc.
58678         * modules/userspec (Files): Add lib/userspec.h.
58679         * modules/xstrto
58680
58681         Upgrade from gettext-0.13.
58682         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58683         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58684         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58685
58686 2004-06-10  Jim Meyering  <jim@meyering.net>
58687
58688         * lib/calloc.c: New file.
58689
58690 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58691
58692         * lib/getdate.y (yylex): Allow space between sign and number.
58693         Problem reported by Dan Jacobson.
58694
58695 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         Merge from coreutils CVS.
58698
58699         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58700         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58701         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58702         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58703         xstrtol.m4: Fix copyright date and/or serial number.
58704
58705         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58706         See if we need an fchown replacement.
58707         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58708         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58709         and use the replacement function if we detect either defect.
58710
58711         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58712         gl_UTIMECMP.
58713
58714 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58715         and  Jim Meyering  <jim@meyering.net>
58716
58717         Merge from coreutils CVS.
58718
58719         * lib/stat-macros.h: New file, with contents from file-type.h
58720         and coreutils' system.h.
58721         * lib/file-type.c: Include "stat-macros.h".
58722         * lib/file-type.h (file_type): Move all macro definitions to new file,
58723         stat-macros.h.
58724
58725         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
58726         Wrap old code with this conditional.
58727         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
58728         function that does not dereference symlinks.
58729         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
58730
58731         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
58732         dependency problems.
58733         (xreadlink): Accept new arg SIZE, for efficiency.
58734         All decls and uses changed.
58735         * lib/xreadlink.h: Include <stddef.h>, for size_t.
58736
58737         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
58738         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
58739
58740         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
58741         sysexits.h.
58742
58743 2004-06-01  Jim Meyering  <jim@meyering.net>
58744
58745         * m4/calloc.m4: New file.
58746
58747 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
58750         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
58751         Also, fix a typo in a diagnostic.
58752
58753 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
58756         or AC_FUNC_REALLOC.
58757
58758 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58759
58760         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
58761         macros to be defined.
58762         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
58763         the allocator returns NULL because the requested size is zero.
58764
58765 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58766
58767         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
58768         var.  Add comment explaining why libc still defines it.  This
58769         merges the following patch from glibc:
58770         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
58771
58772 2004-05-20  Andreas Schwab  <schwab@suse.de>
58773
58774         * m4/free.m4: Replace free if it not known to work, not the other
58775         way round.
58776
58777 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58778
58779         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
58780         present in glibc since revision 1.1 of this file.
58781         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
58782         obstack_alignment_mask, obstack_alloc, obstack_base,
58783         obstack_blank, obstack_blank_fast, obstack_chunk_size,
58784         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
58785         obstack_grow0, obstack_init, obstack_int_grow,
58786         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
58787         obstack_next_free, obstack_object_size, obstack_ptr_grow,
58788         obstack_ptr_grow_fast, obstack_room): Remove declarations of
58789         nonexistent functions.
58790
58791 2004-05-18  Karl Berry  <karl@gnu.org>
58792
58793         * config/srclist.txt: break link for vasnprintf.c.
58794
58795 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         Port obstack to the AS/400, where pointers are 16 bytes wide and
58798         you cannot cast an integer to a valid pointer.  This patch is
58799         currently waiting to be integrated into glibc; see
58800         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
58801
58802         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
58803         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
58804         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
58805         (struct obstack): temp member is now a union of a pointer and
58806         an integer, instead of an integer.  All integer uses changed.
58807         This does not affect the physical layout of struct obstack,
58808         except on hosts (like the AS/400) where the size or alignment of
58809         void * is greater than that of ptrdiff_t.
58810         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
58811         __STDC__)]: Store temporary in pointer member of union, not
58812         integer member.
58813         * lib/obstack.c: Include <stddef.h>, for offsetof.
58814         (struct fooalign): Remove; it doesn't need a name.
58815         (union fooround): Change double to long double, and add void *.
58816         (DEFAULT_ALIGNMENT): Use offsetof to compute.
58817         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
58818         not a macro.  Hence the values are always int; so remove all
58819         casts-to-int in uses.
58820
58821 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58822
58823         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
58824         we can get this patch merged into glibc.
58825
58826 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58827             Paul Eggert  <eggert@cs.ucla.edu>
58828
58829         * m4/argp: Depend on alloca.
58830
58831 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58832             Paul Eggert  <eggert@cs.ucla.edu>
58833
58834         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
58835         freecoding.
58836
58837 2004-05-17  Bruno Haible  <bruno@clisp.org>
58838
58839         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
58840         precision that consists of a '.' followed by an empty digit string.
58841         Patch by Tor Lillqvist <tml@iki.fi>.
58842
58843 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58844
58845         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
58846         for backward compatibility with older code.  We need our own
58847         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
58848         it under some other name, and our alloca.h will define it.
58849
58850 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58851             Derek Price  <derek@ximbiot.com>
58852
58853         * lib/alloca.c: Include <alloca.h>, to get our interface.
58854         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
58855         include <alloca.h> first.  Use C89 prototype for alloca; this
58856         requires including <stddef.h> for size_t.  Use extern "C" if C++.
58857         Use #elif for simplicity, since we can assume C89 now.
58858         Don't try to source the system alloca.h since it will not be found
58859         and to prevent recursively including its replacement.
58860         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
58861         * lib/regex.c: Likewise.
58862
58863 2004-05-16  Derek Price  <derek@ximbiot.com>
58864             Paul Eggert  <eggert@cs.ucla.edu>
58865
58866         getline cleanup.  This changes the getndelim2 API: both order of
58867         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
58868         no delimiter).
58869
58870         * lib/getline.c: Don't include stddef.h or stdio.h, since our
58871         interface does that.
58872         (getline): Always use getdelim, so that we don't have two
58873         copies of this code.
58874         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
58875         if available.
58876         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
58877         (GETNDELIM2_MAXIMUM): New macro.
58878         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
58879         instead of the old practice of delim2==0.  All callers changed.
58880         Return -1 on overflow, instead of returning junk.
58881         Do not set *linesize unless allocation succeeds.
58882         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
58883         that we include sys/types.h.
58884         * lib/getnline.h: Likewise.
58885         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
58886         (getndelim2): Reorder arguments.
58887         * lib/getnline.c (getnline, getndelim):
58888         Don't discard the NMAX argument.
58889         (getnline): Invoke getndelim, to avoid code duplication.
58890         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
58891         of (size_t) -1 by callers of the getnline family.
58892
58893 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58894
58895         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
58896         Check for gettimeofday.
58897         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
58898         Check for settimeofday, stime.
58899
58900 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58901
58902         * lib/nanosleep.c (suspended): Change its type from int to
58903         sig_atomic_t volatile.
58904         (first_call): Make it private to rpl_nanosleep, and have it
58905         be zero initially as that's a bit faster.
58906         (my_usleep): Round up fractional times instead of truncating them,
58907         as this is the usual meaning for 'sleep'.
58908
58909         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
58910         doesn't work.
58911         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
58912         (ENOSYS): Define if not defined.
58913         (settime): Fall back on stime if it exists and settimeofday fails.
58914         But don't bother with fallbacks if a method fails with errno == EPERM.
58915
58916 2004-05-11  Jim Meyering  <jim@meyering.net>
58917
58918         Prior to this change, the save_cwd caller required read access to the
58919         current directory on most systems (ones with the fchdir function).
58920
58921         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
58922         fails, try write-only, and finally, resort to using xgetcwd.
58923
58924 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58925
58926         * lib/obstack.c, obstack.h: Import changes from libc.
58927
58928 2004-04-28  Bruno Haible  <bruno@clisp.org>
58929
58930         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
58931         also implicitly appends .exe to executables.
58932         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
58933         accepts Windows pathnames.
58934         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58935         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58936         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58937         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58938         Reported by Derek Robert Price <derek@ximbiot.com>.
58939
58940 2004-04-21  Karl Berry  <karl@gnu.org>
58941
58942         * config/srclist.txt (localcharset.c): break sync.
58943
58944 2004-04-20  Paul Eggert  <eggert@twinsun.com>
58945
58946         * m4/host-os.m4: Add a copyright notice.
58947
58948 2004-04-20  Jim Meyering  <jim@meyering.net>
58949
58950         Change UTILS_ to gl_ in AC_DEFINE'd names.
58951         Change utils_- and jm_-prefixed variables, too.
58952         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
58953         UTILS_FUNC_MKDIR_TRAILING_SLASH.
58954         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
58955
58956         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
58957         Don't emit trailing blanks.
58958         Also rename jm_-prefixed variables to have gl_ prefix.
58959
58960         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
58961         Also rename jm_-prefixed variables to have gl_ prefix.
58962
58963         * m4/jm-macros.m4: Reflect the renamings.
58964         * m4/prereq.m4: Likewise.
58965
58966 2004-04-20  Jim Meyering  <jim@meyering.net>
58967
58968         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
58969         memory.
58970
58971 2004-04-20  Jim Meyering  <jim@meyering.net>
58972             Bruno Haible  <bruno@clisp.org>
58973
58974         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
58975         memory when realloc fails.
58976
58977 2004-04-19  Jim Meyering  <jim@meyering.net>
58978
58979         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
58980         now that readutmp.c may call `free (0)'.
58981
58982 2004-04-19  Bruno Haible  <bruno@clisp.org>
58983
58984         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
58985         * m4/inttypes_h.m4: Likewise.
58986         * m4/stdint_h.m4: Likewise.
58987         * m4/intmax_t.m4: Likewise.
58988         * m4/uintmax_t.m4: Likewise.
58989
58990 2004-04-18  Jim Meyering  <jim@meyering.net>
58991
58992         * m4/prereq.m4: Don't forbid jm_ prefix.
58993
58994         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
58995         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
58996         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
58997         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
58998         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
58999         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
59000         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
59001         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
59002         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
59003         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
59004         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
59005         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
59006         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
59007         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
59008         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
59009         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
59010         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
59011         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
59012         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
59013
59014 2004-04-18  Jim Meyering  <jim@meyering.net>
59015
59016         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
59017         failure, don't leak memory and do call END_UTMP_ENT.
59018
59019 2004-04-16  Jim Meyering  <jim@meyering.net>
59020
59021         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
59022         coreutils' stat program.
59023         (gl_PREREQ): Don't require jm_PREREQ_STAT.
59024
59025 2004-04-11  Paul Eggert  <eggert@twinsun.com>
59026
59027         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
59028         C89.
59029         (CHAR_BIT): Remove, since we assume C89.
59030         Include <stdint.h> if available, as per current Autoconf CVS advice.
59031
59032 2004-03-31  Jim Meyering  <jim@meyering.net>
59033
59034         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
59035         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
59036         * m4/xalloc.m4: Likewise.
59037
59038 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59039
59040         Merge from coreutils.
59041
59042         * m4/inttostr.m4: New file.
59043         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
59044         Require AM_STDBOOL_H and gl_TIMESPEC instead.
59045         Require gl_CLOCK_TIME.
59046         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
59047
59048 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59049
59050         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
59051         not bool, to be more consistent with Unix conventions.
59052         Suggested by Bruno Haible.
59053
59054         Merge from coreutils.
59055
59056         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
59057         * lib/umaxtostr.c: New files.
59058
59059         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
59060         the usual <time.h> dance.
59061         (get_date): Change signature to support fractional time stamps.
59062         All callers changed.
59063         * lib/getdate.y: Include "getdate.h" first, as we can now
59064         assume C89 and don't need to worry about 'const'.
59065         Similarly, include "unlocked-io.h" near start, not in middle.
59066         Include <limits.h>.
59067         (textint.value): Use long int rather than int.
59068         (textint.digits): Use size_t rather than int.
59069         (BILLION, LOG10_BILLION): New constants.
59070         (parser_control): New member rel_ns.  Members day_ordinal,
59071         time_zone, month, day, hour, minutes, rel_year, rel_month,
59072         rel_day, rel_hour, rel_minutes, rel_seconds
59073         are now long int, not int.  Member seconds is now struct timespec,
59074         not int.  New member timespec_seen.  Members dates_seen, days_seen,
59075         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
59076         not int.
59077         (%union.intval): Now long int, not int.
59078         New member timespec.
59079         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
59080         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
59081         (spec): Now is a timespec or an item list.
59082         (timespec, items): New nonterminals.
59083         (time, rel, relunit, number, get_date):
59084         Add support for fractional seconds.
59085         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
59086         (gmtime, localtime, mktime): Remove decls; not needed with C89.
59087         (to_hour): First arg is now long int, not int.
59088         (to_year): Returns long int, not int.
59089         Don't treat year -70 like 70.
59090         (tm_diff): Returns long int, not int.
59091         (lookup_word): Use bool instead of int when appropriate.
59092         (yylex): Use size_t for count, not int.
59093         Detect overflow when parsing large integer constants.
59094         Add support for fractions.
59095         (get_date): Make pointers 'const' if possible.
59096         Use more-portable code to detect integer overflow.
59097         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
59098         Don't use ctime; it's not reliable if the year has >4 digits.
59099
59100         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
59101         This is for compatibility with BSD.
59102
59103         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
59104         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
59105         From coreutils' system.h.
59106
59107         * lib/userspec.c: Don't include "posixver.h".
59108         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
59109         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
59110         compatible extension.  Simplify code by removing a boolean int
59111         that was always nonzero if a string was nonnull.
59112
59113 2004-03-30  Jim Meyering  <jim@meyering.net>
59114
59115         Merge from coreutils.
59116
59117         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
59118         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
59119         on some systems one must include <grp.h> before it.
59120         Reported by Christian Krackowizer.
59121
59122 2004-03-30  Jim Meyering  <jim@meyering.net>
59123
59124         Merge from coreutils.
59125
59126         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
59127
59128         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
59129         an empty input stream.
59130
59131         * lib/readtokens.c: Include <stdbool.h>.
59132         (readtoken): Use `size_t' rather than int/long.
59133         All callers adjusted.
59134         Use `bool' rather than `int' where appropriate.
59135         Use memset rather than an explicit loop.
59136         Use x2nrealloc rather than xrealloc.
59137         Allow the use of `\0' as a delimiter.
59138         (readtokens): Likewise.
59139         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
59140
59141 2004-03-30  Jim Meyering  <jim@meyering.net>
59142
59143         * m4/realloc.m4: Remove file, since now it does no more than
59144         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
59145         the `configure.ac' section of module/realloc.
59146         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
59147
59148 2004-03-30  Bruno Haible  <bruno@clisp.org>
59149
59150         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
59151         nonnull.
59152
59153 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59154
59155         Merge changes to getloadavg.c from coreutils and Emacs.
59156
59157         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
59158         Define to an expression, not to the empty string.
59159         Include cloexec.h and xalloc.h.
59160         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
59161         Use set_cloexec_flag rather than rolling our own.
59162         * lib/cloexec.c, lib/cloexec.h: New files.
59163
59164 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59165
59166         * m4/cloexec.m4: New file.
59167
59168 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59169
59170         * lib/getopt.h: Sync with libc CVS.
59171
59172 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59173             Bruno Haible  <bruno@clisp.org>
59174
59175         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
59176         mbswidth.
59177
59178 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59179             Bruno Haible  <bruno@clisp.org>
59180
59181         * lib/mbswidth.h: Include <wchar.h> only if
59182         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
59183         <wchar.h>.
59184         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
59185
59186 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59187
59188         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
59189         Sync with libc CVS.
59190         * lib/getopt_int.h: New file, also synced from libc.
59191
59192 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59193
59194         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
59195         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
59196         Bring back getopt.c, getopt.h, getopt1.c.
59197
59198 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59199
59200         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
59201         All uses changed.  Check for sa_sigaction member; this fixes
59202         a bug first reported by Jason Andrade in
59203         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59204
59205 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59206
59207         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
59208         '#if' expressions.  Unlike the code it replaces, it does not
59209         depend on (defined _SC_PAGESIZE).  However, it does depend on
59210         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
59211         first reported by Jason Andrade in
59212         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59213
59214 2004-02-25  Simon Josefsson  <jas@extundo.com>
59215
59216         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
59217
59218 2004-02-25  Simon Josefsson  <jas@extundo.com>
59219
59220         * lib/strdup.h: New file.
59221         * lib/strdup.c: Include it.
59222         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
59223         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
59224
59225 2004-02-23  Karl Berry  <karl@gnu.org>
59226
59227         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
59228         (from fencepost.gnu.org:/gd/gnuorg).
59229
59230 2004-02-23  Karl Berry  <karl@gnu.org>
59231
59232         * config/srclistvars.sh (GNUORG) [karl]: redefine.
59233         * config/srclist.txt: add maintain/standards documents.
59234
59235 2004-02-18  Bruno Haible  <bruno@clisp.org>
59236
59237         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
59238         Reported by Derek Robert Price <derek@ximbiot.com>.
59239
59240 2004-02-16  Karl Berry  <karl@gnu.org>
59241
59242         * config/mkinstalldirs, install-sh: update from automake.
59243
59244 2004-02-06  Karl Berry  <karl@gnu.org>
59245
59246         * m4/po.m4: update from gettext 0.14.1.
59247
59248 2004-02-06  Karl Berry  <karl@gnu.org>
59249
59250         * lib/config.charset: update from gettext 0.14.1.
59251
59252 2004-02-05  Paul Eggert  <eggert@twinsun.com>
59253
59254         Add comments and code, prompted by suggestions from Bruno Haible
59255         for sh-quote.
59256         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
59257         describing the enum quoting_style values.
59258         * lib/quotearg.c (quotearg_alloc): New function.
59259         (quotearg_buffer_restyled): Treat lone { and } as special.
59260         Treat = as special.  Work around bug with older shells
59261         that "see" a '\' that is really the 2nd byte of a multibyte char.
59262         Quote empty string with shell_quoting_style.
59263
59264 2004-02-03  Bruno Haible  <bruno@clisp.org>
59265
59266         * m4/pipe.m4: New file, from GNU gettext.
59267
59268 2004-02-03  Bruno Haible  <bruno@clisp.org>
59269
59270         * lib/pipe.h: New file, from GNU gettext.
59271         * lib/pipe.c: New file, from GNU gettext.
59272
59273 2004-01-27  Bruno Haible  <bruno@clisp.org>
59274
59275         * m4/execute.m4: New file, from GNU gettext.
59276
59277 2004-01-27  Bruno Haible  <bruno@clisp.org>
59278
59279         * lib/execute.h: New file, from GNU gettext.
59280         * lib/execute.c: New file, from GNU gettext.
59281         * lib/w32spawn.h: New file, from GNU gettext.
59282
59283 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59284
59285         Merge from diffutils.
59286
59287         * lib/file-type.c (file_type): Add typed memory objects.
59288         * lib/file-type.h (S_TYPEISTMO): New macro.
59289
59290         * lib/c-stack.h (c_stack_action): Remove argv argument.
59291         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
59292         (die): Don't calculate message unless segv_action returns.
59293         (get_stack_location, min_address_from_argv, max_address_from_argv,
59294         volatile stack_base, volatile_stack_size): Remove.
59295         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
59296         that every segmentation violation is a stack overflow.  (Ouch!)
59297         See Debian bug 136249 (still outstanding) for more info about why
59298         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
59299
59300 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59301
59302         Exit-status fix from coreutils.
59303
59304         Use exit_failure consistently in place of EXIT_FAILURE,
59305         so that program exit statuses are consistent on failure.
59306
59307         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
59308         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
59309         * lib/argmatch.h: Comment fix to match the above.
59310         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
59311         Now a macro referring to exit_failure, instead of a separate
59312         variable.  Include "exitfail.h" to get it.
59313         * lib/xstrtol.h: Include "exitfail.h".
59314         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
59315
59316         * lib/long-options.c (parse_long_options): Use prototype
59317         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
59318         for clarity.
59319
59320 2004-01-21  Jim Meyering  <jim@meyering.net>
59321
59322         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
59323         so as not to conflict with a different-sized __mktime_internal
59324         function in GNU libc.
59325         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
59326         Problem building statically-linked `ls' reported by Michael Brunnbauer.
59327
59328 2004-01-20  Karl Berry  <karl@gnu.org>
59329
59330         * config/config.guess: update from config.
59331
59332         * config/srclistvars.sh: GNUWWWLICENSES for karl.
59333
59334 2004-01-20  Bruno Haible  <bruno@clisp.org>
59335
59336         Safer stack allocation.
59337         * lib/setenv.c: Include allocsa.h.
59338         (alloca): Remove fallback definition.
59339         (freea): Remove macro.
59340         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
59341         instead of freea.
59342
59343 2004-01-20  Bruno Haible  <bruno@clisp.org>
59344
59345         * m4/eealloc.m4: New file, from GNU gettext.
59346
59347 2004-01-20  Bruno Haible  <bruno@clisp.org>
59348
59349         * m4/allocsa.m4: New file, from GNU gettext.
59350
59351 2004-01-20  Bruno Haible  <bruno@clisp.org>
59352
59353         * lib/xallocsa.h: New file, from GNU gettext.
59354         * lib/xallocsa.c: New file, from GNU gettext.
59355
59356 2004-01-20  Bruno Haible  <bruno@clisp.org>
59357
59358         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
59359
59360 2004-01-20  Bruno Haible  <bruno@clisp.org>
59361
59362         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
59363         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
59364         specially.
59365
59366 2004-01-20  Bruno Haible  <bruno@clisp.org>
59367
59368         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
59369         patch.
59370
59371 2004-01-20  Bruno Haible  <bruno@clisp.org>
59372
59373         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
59374
59375 2004-01-20  Bruno Haible  <bruno@clisp.org>
59376
59377         * lib/eealloc.h: New file.
59378
59379 2004-01-20  Bruno Haible  <bruno@clisp.org>
59380
59381         * lib/binary-io.h: Avoid warnings on Cygwin.
59382
59383 2004-01-20  Bruno Haible  <bruno@clisp.org>
59384
59385         * lib/allocsa.h: New file, from GNU gettext.
59386         * lib/allocsa.c: New file, from GNU gettext.
59387
59388 2004-01-18  Karl Berry  <karl@gnu.org>
59389
59390         * doc/gpl.texi, doc/lgpl.texi: new files.
59391
59392 2004-01-18  Karl Berry  <karl@gnu.org>
59393
59394         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
59395         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
59396
59397 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59398
59399         Merge from coreutils.
59400
59401         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
59402         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
59403         (gl_DEFAULT_POSIX2_VERSION): Move
59404         the documentation from 'configure' into 'config.hin',
59405         so that 'configure --help' isn't burdened by it and
59406         we don't have to worry about its formatting there.
59407         Reword the documentation so that it's more succinct
59408         and can be run together into a single paragraph.
59409         * m4/same.m4 (gl_SAME): Check for pathconf.
59410
59411 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59412
59413         Merge from coreutils.
59414
59415         * lib/posixver.c: Include posixver.h.
59416
59417         * lib/same.c: Include <stdbool.h>, <limits.h>.
59418         (_POSIX_NAME_MAX): Define if not defined.
59419         (MIN): New macro.
59420         (same_name): If file names are silently truncated, report
59421         that the file names are the same if they are the same after
59422         the silent truncation.
59423
59424         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
59425         conversion function.
59426         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
59427         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
59428         longer needed.
59429
59430 2004-01-15  Jim Meyering  <jim@meyering.net>
59431
59432         Merge from coreutils.
59433
59434         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
59435         if no library is required.
59436         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
59437         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
59438         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
59439         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
59440         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
59441         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
59442         value, $ac_cv_search_crypt, if it's "none required".
59443         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
59444         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
59445         not gl_FUNC_GETLOADAVG.
59446         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
59447         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
59448
59449 2004-01-15  Jim Meyering  <jim@meyering.net>
59450
59451         Merge from coreutils.
59452
59453         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
59454         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
59455         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
59456
59457         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
59458         optional configure-time default.
59459
59460         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59461
59462         * lib/xreadlink.c (xreadlink): Correct outdated comment.
59463
59464 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
59465
59466         Merge from coreutils.
59467
59468         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
59469         value, $ac_cv_search_nanosleep, if it's "none required".
59470
59471 2004-01-14  Paul Eggert  <eggert@twinsun.com>
59472
59473         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
59474         with like-named macro in fnmatch.c.
59475         (EXT): Use an internal constant instead.
59476
59477         Merge fnmatch patches from glibc.
59478         * lib/fnmatch.c (mbsinit): Remove define.
59479         Add libc_hidden_ver (__fnmatch, fnmatch).
59480         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
59481         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
59482
59483 2004-01-14  Karl Berry  <karl@gnu.org>
59484
59485         * config/install-sh: update from automake.
59486
59487 2004-01-13  Karl Berry  <karl@gnu.org>
59488
59489         * config/install-sh: update from automake.
59490
59491 2004-01-09  Karl Berry  <karl@gnu.org>
59492
59493         * config/install-sh: update from automake.
59494
59495 2004-01-05  Karl Berry  <karl@gnu.org>
59496
59497         * config/config.{sub,guess}: update from config.
59498
59499 2003-12-31  Karl Berry  <karl@gnu.org>
59500
59501         * config/depcomp: update from automake.
59502
59503 2003-12-14  Karl Berry  <karl@gnu.org>
59504
59505         * lib/config.charset: update from gettext-runtime.
59506
59507 2003-12-03  Paul Eggert  <eggert@twinsun.com>
59508
59509         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
59510         Bug reported by Alfred M. Szmidt.
59511
59512 2003-12-03  Bruno Haible  <bruno@clisp.org>
59513
59514         * m4/gettext.m4: Upgrade from gettext-0.13.
59515         * m4/po.m4: Upgrade from gettext-0.13.
59516         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
59517         * m4/intmax.m4: New file, from gettext-0.13.
59518         * m4/printf-posix.m4: New file, from gettext-0.13.
59519
59520 2003-11-29  Karl Berry  <karl@gnu.org>
59521
59522         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
59523
59524 2003-11-25  Paul Eggert  <eggert@twinsun.com>
59525             Bruno Haible  <bruno@clisp.org>
59526
59527         * lib/printf-parse.h: Don't include sys/types.h.
59528         (ARG_NONE): New macro.
59529         (char_directive): Change type of *arg_index fields to size_t.
59530         * lib/printf-parse.c: Don't include sys/types.h.
59531         (SSIZE_MAX): Remove macro.
59532         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59533         Remove unnecessary overflow check.
59534         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59535         fields.
59536
59537 2003-11-25  Bruno Haible  <bruno@clisp.org>
59538
59539         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59540
59541 2003-11-25  Bruno Haible  <bruno@clisp.org>
59542
59543         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59544         gt_TYPE_SSIZE_T.
59545
59546 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59547
59548         * modules/alloca: Remove dependency on xalloc.
59549
59550 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59551
59552         * lib/alloca.c: Remove dependency on xalloc module.
59553         (xalloc_die): Remove.
59554         (memory_full) [!defined emacs]: New macro.
59555         [!defined emacs]: Don't include xalloc.h.
59556         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59557         address arithmetic overflows.  Change datatypes a bit to avoid
59558         unnecessary casts.
59559
59560 2003-11-22  Jim Meyering  <jim@meyering.net>
59561
59562         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59563         s/size/size_t/.
59564
59565 2003-11-21  Karl Berry  <karl@gnu.org>
59566
59567         * config/config.{sub,guess}: update from config.
59568
59569 2003-11-18  Karl Berry  <karl@gnu.org>
59570
59571         * config/config.{sub,guess}: update from config.
59572
59573         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59574
59575 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59576
59577         * README: Mention that S+T cannot overflow if S is the size of
59578         an existing object and T is sufficiently small.
59579
59580 2003-11-17  Jim Meyering  <jim@meyering.net>
59581
59582         On systems without utime and without a utimes function capable of
59583         dealing with a NULL struct utimbuf* argument, this utime replacement
59584         could -- in unusual circumstances -- leak a file descriptor.
59585         * lib/utime.c: Include <unistd.h> and <errno.h>.
59586         (utime_null): Be sure to close `fd' and to preserve errno.
59587         Reported by Geoff Collyer via Arnold Robbins.
59588
59589 2003-11-17  Bruno Haible  <bruno@clisp.org>
59590
59591         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59592         (Depends-on): Add xsize.
59593
59594 2003-11-17  Bruno Haible  <bruno@clisp.org>
59595
59596         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59597
59598 2003-11-17  Bruno Haible  <bruno@clisp.org>
59599
59600         * lib/vasnprintf.c (alloca): Remove fallback definition.
59601         (freea): Remove definition.
59602         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59603         Reported by Paul Eggert.
59604
59605 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59606             Bruno Haible  <bruno@clisp.org>
59607
59608         Protect against address arithmetic overflow.
59609         * lib/printf-args.h: Include stddef.h.
59610         (arguments): Change type of field 'count' to size_t.
59611         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59612         'unsigned int' where appropriate.
59613         * lib/printf-parse.h: Include sys/types.h.
59614         (char_directive): Change type of *arg_index fields to ssize_t.
59615         (char_directives): Change type of fields 'count', max_*_length to
59616         size_t.
59617         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59618         (SSIZE_MAX): Define fallback value.
59619         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59620         instead of 'int' where appropriate. Check a_allocated, d_allocated
59621         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59622         * lib/vasnprintf.c: Include xsize.h.
59623         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59624         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59625         overflow. Avoid wraparound when converting a width or precision from
59626         decimal to binary.
59627
59628 2003-11-16  Bruno Haible  <bruno@clisp.org>
59629
59630         Update from GNU gettext.
59631         * lib/printf-parse.c: Generalize to it can be compiled for wide
59632         strings.
59633         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59634         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59635         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59636         SNPRINTF): New macros.
59637         Don't include <alloca.h> if the file is used inside libintl.
59638         (local_wcslen): New function, for Solaris 2.5.1.
59639         (VASNPRINTF): Use it instead of wcslen.
59640
59641 2003-11-16  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/xsize.h (xmax): New function.
59644         (xsum, xsum3, xsum4): Declare as "pure" functions.
59645
59646 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59647
59648         * modules/xalloc (Files): Undo latest change, since xalloc.h
59649         no longer needs SIZE_MAX or PTRDIFF_MAX.
59650
59651 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59652
59653         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59654         gl_PTRDIFF_MAX.
59655
59656 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59657
59658         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59659         "return", to pacify some unknown compiler.  Problem reported
59660         by Joerg Schilling.
59661
59662 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59663
59664         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59665         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59666         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59667         heuristic is just as accurate as far as we know, and it removes a
59668         dependency on size_max.m4 and ptrdiff_max.m4.
59669
59670 2003-11-11  Bruno Haible  <bruno@clisp.org>
59671
59672         * modules/xsize (Files): Add m4/size_max.m4.
59673         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59674
59675 2003-11-11  Bruno Haible  <bruno@clisp.org>
59676
59677         * m4/size_max.m4: New file.
59678         * m4/ptrdiff_max.m4: New file.
59679         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59680         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59681         (gl_XALLOC): Invoke it.
59682
59683 2003-11-11  Bruno Haible  <bruno@clisp.org>
59684
59685         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59686         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59687         defined.
59688
59689 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59690
59691         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59692         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59693         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59694         From Bruno Haible.
59695         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59696         not (size_t) -1, since it's defined here.
59697
59698 2003-11-09  Karl Berry  <karl@gnu.org>
59699
59700         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59701
59702 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59703
59704         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59705         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59706         Reject sizes of exactly SIZE_MAX bytes.
59707         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59708         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59709
59710 2003-11-05  Bruno Haible  <bruno@clisp.org>
59711
59712         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59713         SIZE_MAX defined in <limits.h> on Solaris.
59714
59715 2003-11-04  Jim Meyering  <jim@meyering.net>
59716
59717         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59718         variable names, rather than @VAR@.
59719         * modules/poll: Likewise.
59720
59721 2003-11-04  Bruno Haible  <bruno@clisp.org>
59722
59723         * modules/xsize: New file.
59724         * modules/linebreak: Depend on xsize.
59725         * MODULES.html.sh (func_all_modules): Add xsize.
59726
59727 2003-11-04  Bruno Haible  <bruno@clisp.org>
59728
59729         * m4/xsize.m4: New file.
59730
59731 2003-11-04  Bruno Haible  <bruno@clisp.org>
59732
59733         * lib/xsize.h: New file.
59734         * lib/linebreak.c: Include xsize.h.
59735         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
59736         argument for overflow.
59737         Suggested by Paul Eggert.
59738
59739 2003-11-03  Karl Berry  <karl@gnu.org>
59740
59741         * config/config.{guess,sub}: update from config.
59742
59743 2003-11-03  Jim Meyering  <jim@meyering.net>
59744
59745         * modules/userspec (lib_SOURCES): Add userspec.h.
59746         (Include): Add "userspec.h".
59747         Improve description.
59748
59749 2003-11-03  Jim Meyering  <jim@meyering.net>
59750
59751         * lib/userspec.c: Include "userspec.h".
59752         * lib/userspec.h: New file.
59753
59754 2003-11-03  Bruno Haible  <bruno@clisp.org>
59755
59756         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
59757
59758 2003-11-03  Bruno Haible  <bruno@clisp.org>
59759
59760         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
59761         available, to avoid (extremely rare) race condition.
59762         Suggested by Paul Eggert.
59763
59764 2003-11-02  Karl Berry  <karl@gnu.org>
59765
59766         * config/srclist.txt (vasprintf.c): sync broken, sigh.
59767
59768 2003-10-31  Paul Eggert  <eggert@twinsun.com>
59769
59770         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
59771         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
59772         (read_filesystem_list): Set and use me_type_malloced.
59773         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
59774         whatever the type happens to be), for brevity and consistency.
59775         Check for size calculation overflow on Alphas running OSF/1.
59776
59777 2003-10-31  Jim Meyering  <jim@meyering.net>
59778
59779         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
59780
59781         * lib/linebuffer.c: Include <string.h> for declaration of memset.
59782
59783 2003-10-30  Paul Eggert  <eggert@twinsun.com>
59784             Bruno Haible  <bruno@clisp.org>
59785
59786         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
59787         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
59788
59789 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59790
59791         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
59792         netbsd*-gnu*.  Suggested by Robert Millan.
59793
59794 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59795
59796         * modules/group-member: Depend on stdbool.
59797
59798 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59799
59800         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
59801
59802 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59803
59804         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
59805         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
59806         after the 'gnu' in these cases.  This fixes some bugs in the
59807         previous change, and is based on suggestions by Robert Millan.
59808
59809 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59810
59811         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
59812         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
59813         no longer needed.
59814         * lib/quotearg.c (quotearg_n_options): Use it.
59815         * lib/group-member.c: Include <stdbool.h>.
59816         (free_group_info): Arg is now const *; don't free arg.
59817         (get_group_info): Now returns bool and accepts struct group_info *,
59818         rather than returning a malloc'ed struct group_info *.
59819         All uses changed.  Check for overflow in internal size calculation.
59820
59821         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
59822         rather than xmalloc/xrealloc.
59823         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
59824         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
59825         conformance bug: the old code used a pointer after freeing the
59826         storage that it addressed.
59827         * lib/hash.c (hash_initialize): Simplify the code by using
59828         xalloc_oversized rather than doing it by hand.
59829         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
59830         the buffer preserved.  Use free and xmalloc instead.
59831         * lib/quotearg.c (quotearg_n_options): Likewise.
59832         Use a simpler test for size overflow.  Don't use xalloc_oversized
59833         because unsigned int might be wider than size_t (!); this suggests
59834         that we should switch from unsigned int to size_t for slot numbers.
59835
59836 2003-10-28  Paul Eggert  <eggert@twinsun.com>
59837
59838         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
59839         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
59840         NetBSD kernels.  Requested by Richard Stallman.
59841
59842 2003-10-27  Paul Eggert  <eggert@twinsun.com>
59843
59844         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
59845         to allocate the returned structure.  Do not allocate a subarray,
59846         as x2nrealloc will do that.
59847         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
59848         instead of xnrealloc.
59849         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
59850
59851 2003-10-27  Bruno Haible  <bruno@clisp.org>
59852
59853         * lib/stdbool_.h: Better support for BeOS.
59854
59855 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59856
59857         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
59858         now uses inline.
59859
59860 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59861
59862         * lib/xalloc.h (xalloc_oversized): New static inline function, for
59863         callers that want to do their own size-overflow checking.  Include
59864         <stdbool.h>, since xalloc_oversized returns bool.
59865         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
59866         to use xalloc_oversized.
59867
59868         Add two functions x2realloc, x2nrealloc, for programs that grow
59869         arrays dynamically by doubling their sizes.
59870         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
59871         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
59872         New functions.
59873
59874         Port to C99 semantics for 'inline' of external functions.
59875         Bug reported by Bruno Haible.
59876         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
59877         with the old contents of xnmalloc.
59878         (xnmalloc, xmalloc): Use it.
59879         (xnrealloc_inline): New static inline function,
59880         with the old contents of xnrealloc.
59881         (xnrealloc, xrealloc): Use it.
59882
59883         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
59884         that.
59885
59886 2003-10-26  Karl Berry  <karl@gnu.org>
59887
59888         * config/srclist.txt (COPYING.DOC): no longer available from
59889         /gd/gnuorg; don't know where the ultimate source is.
59890
59891 2003-10-25  Paul Eggert  <eggert@twinsun.com>
59892
59893         Fix several address-calculation bugs in the hash modules,
59894         plus some minor code cleanup.
59895
59896         * lib/hash.h: Include <stdbool.h>, for bool.
59897         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
59898         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
59899         hash_get_n_entries, hash_get_max_bucket_length,
59900         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
59901         hash_rehash): Use size_t rather than unsigned.
59902         * lib/hash.c (struct hash_table, hash_get_n_buckets,
59903         hash_get_n_buckets_used, hash_get_n_entries,
59904         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
59905         hash_get_entries, hash_do_for_each, hash_string, is_prime,
59906         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
59907         Likewise.
59908         (SIZE_MAX): Define if not defined.
59909         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
59910         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
59911         hash_print):
59912         Use const * when possible.
59913         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
59914         (check_tuning): Fix bug: if tuning parameters were very close to
59915         0 or 1, rounding errors could have caused subscript violations.
59916         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
59917         (hash_initialize): Add 'fail:' label
59918         to free table and return NULL, and use it to simplify code.
59919         Use calloc rather than clearing the storage ourself.
59920         (hash_initialize, hash_rehash): Check for arithmetic overflow in
59921         buffer size calculations.
59922         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
59923         Include <stddef.h>, for size_t.
59924         * lib/hash-pjw.c (hash_pjw): Likewise.
59925         Switch to method described by Bruno Haible.
59926         Include <limits.h>, for CHAR_BIT.
59927         (SIZE_BITS): New macro.
59928
59929 2003-10-23  Paul Eggert  <eggert@twinsun.com>
59930
59931         * m4/getline.m4 (AM_FUNC_GETLINE):
59932         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
59933         hosts.  Problem reported by Derek Robert Price in
59934         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
59935         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
59936         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
59937
59938 2003-10-21  Paul Eggert  <eggert@twinsun.com>
59939
59940         * lib/getndelim2.c (getndelim2): When size calculation overflows,
59941         ceiling the allocation at NMAX bytes rather than silently
59942         discarding input bytes before NMAX is reached.  This makes
59943         a difference only if NMAX exceeds SIZE_MAX / 2.
59944
59945         * lib/obstack.c: Merge from glibc.
59946         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
59947         Add libc_hidden_def (_obstack_newchunk).
59948         (_obstack_free) [! defined _LIBC]: Remove.
59949         [defined _LIBC]: Make a strong alias from obstack_free, rather than
59950         a clone of the function body.
59951         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
59952         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
59953
59954         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
59955         glibc.
59956         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
59957         arg to memcpy.
59958
59959         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
59960         (obstack_ptr_grow_fast, obstack_int_grow_fast):
59961         Don't use lvalue casts, as GCC plans to remove support for them
59962         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
59963         was also present in the non-GCC version, indicating that this
59964         code had always been buggy and had never been widely used.
59965         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
59966         Use the fast variant of each macro, rather than copying the
59967         definiens of the fast variant; that way, we'll be more likely to
59968         catch future bugs in the fast variants.
59969
59970 2003-10-20  Bruno Haible  <bruno@clisp.org>
59971
59972         * modules/wait-process: New file.
59973         * MODULES.html.sh (func_all_modules): Add wait-process.
59974
59975 2003-10-20  Bruno Haible  <bruno@clisp.org>
59976
59977         * m4/wait-process.m4: New file.
59978
59979 2003-10-20  Bruno Haible  <bruno@clisp.org>
59980
59981         * lib/wait-process.h: New file, from GNU gettext.
59982         * lib/wait-process.c: New file, from GNU gettext.
59983
59984 2003-10-19  Jim Meyering  <jim@meyering.net>
59985
59986         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
59987         HPUX 10.20.
59988
59989 2003-10-18  Karl Berry  <karl@gnu.org>
59990
59991         * config/config.guess: update from config.
59992
59993 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59994
59995         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
59996         (getgroups): First arg is int, not size_t.
59997         Don't let 'free' mangle errno.
59998
59999 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60000
60001         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
60002
60003 2003-10-16  Karl Berry  <karl@gnu.org>
60004
60005         * config/config.{guess,sub}: update from config.
60006
60007 2003-10-16  Jim Meyering  <jim@meyering.net>
60008
60009         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
60010         memcpy.
60011
60012 2003-10-15  Paul Eggert  <eggert@twinsun.com>
60013
60014         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
60015         (SIZE_MAX): Remove.
60016         (new_exclude, add_exclude_file): Initial size no longer needs to
60017         be a power of 2.
60018         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
60019         our own address arithmetic overflow checking.
60020
60021         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
60022         (fnmatch): Do not alloca more than 2000 wide characters;
60023         instead, use malloc for large buffers.
60024         Check for address arithmetic overflow, and return -1
60025         with errno set to ENOMEM in that case.
60026         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
60027         (NEW_PATTERN): Do not alloca more than 8000 bytes;
60028         instead, return -1.  Check for address arithmetic overflow.
60029
60030 2003-10-14  Paul Eggert  <eggert@twinsun.com>
60031
60032         Handle invalid suffixes and overflow independently, so that
60033         callers can treat them independently as needed.  Fix some bugs in
60034         suffix handling, e.g., "100k@" was not diagnosed as an invalid
60035         suffix for a human-readable blocksize.  The major caller-visible
60036         change is the addition of a new
60037         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
60038         that both overflow and suffix chars were found.
60039
60040         * lib/human.c (humblock): Don't check separately for invalid suffix
60041         char; that is xstrtoumax's job (now that its bug is fixed).
60042         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
60043         INTMAX_MAX]: New macros.
60044         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
60045         TYPE_MAXIMUM): New macros.
60046         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
60047         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
60048         if overflow occurs, as it's what __strtol does and it's more useful
60049         in practice.
60050         (__xstrtol): If __strtol reports some error other than ERANGE,
60051         reflect it to the caller as LONGINT_INVALID.  If it reports
60052         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
60053         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
60054         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
60055         value.
60056         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
60057         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
60058         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
60059         [defined UINTMAX_MAX]: New macros.
60060
60061 2003-10-14  Bruno Haible  <bruno@clisp.org>
60062
60063         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
60064
60065 2003-10-14  Bruno Haible  <bruno@clisp.org>
60066
60067         * m4/sig_atomic_t: New file, from GNU gettext.
60068         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
60069
60070 2003-10-14  Bruno Haible  <bruno@clisp.org>
60071
60072         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
60073         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
60074         Also use volatile where needed.
60075
60076 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60077
60078         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
60079         Change maintainer from Bruno Haible to 'all'.
60080
60081 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60082
60083         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
60084
60085 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60086
60087         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
60088         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
60089         and define in terms of the other primitives.
60090         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
60091         (SIZE_MAX): Define if not already defined.
60092         (array_size_overflow): New function.
60093         (xalloc_die): Abort instead of exiting if 'error' returns.
60094         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
60095         (xmalloc, xrealloc): Use them.
60096         (xcalloc): Check for address arithmetic overflow.
60097         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
60098         a bit faster than strcpy.
60099
60100 2003-10-10  Simon Josefsson  <jas@extundo.com>
60101
60102         * modules/argp (Depends-on): Add restrict and strcase.
60103
60104 2003-10-10  Simon Josefsson  <jas@extundo.com>
60105
60106         * m4/argp.m4: Add AC_C_INLINE.
60107
60108 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60109
60110         Merge getpass from libc, plus a few fixes.
60111
60112         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
60113         Include <stdbool.h>.
60114         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
60115         __fsetlocking to empty.
60116         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
60117         do include <bits/libc-lock.h>.
60118         Do not include <fcntl.h>; not needed.
60119         [_LIBC]: Include <wchar.h>.
60120         (NOTCANCEL_MODE): New macro.
60121         (flockfile, funlockfile) [_LIBC]: New macros.
60122         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
60123         [!_LIBC]: New macros.
60124         (call_fclose): New function.
60125         (getpass): Use it.  Save tty stream separately; this simplifies the
60126         code and makes it more reliable if stdin happens to equal stdout.
60127         Invoke __fsetlocking on tty.
60128         Handle thread cancellation if needed.
60129         Namespace cleanup (use __tcgetattr, __getline).
60130         Use bool for Booleans.
60131         [USE_IN_LIBIO]: Handle wide streams.
60132         [!_LIBC]: Unconditionally do the fseek, since we don't know what
60133         stream might go where.
60134
60135         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
60136         doesn't have to include <stdio.h> before us.
60137         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
60138         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
60139         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
60140         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
60141         if not declared, so that we can use getpass.c code from libc without
60142         rewriting it.
60143         (flockfile, ftrylockfile, funlockfile): New macros.
60144
60145 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60146
60147         * modules/getpass: Depend on stdbool.
60148
60149 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60150
60151         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
60152
60153 2003-10-07  Karl Berry  <karl@gnu.org>
60154
60155         * config/config.{guess,sub}: update from config.
60156
60157 2003-10-06  Jim Meyering  <jim@meyering.net>
60158             Bruno Haible  <bruno@clisp.org>
60159
60160         This lets translators provide better translations for the
60161         "Written by ..." part of --version output.
60162         * lib/version-etc.h: Include stdarg.h.
60163         (version_etc_copyright): Declare as readonly.
60164         (version_etc): Make this function variadic with a NULL-terminated list
60165         of author name strings.
60166         (version_etc_va): New declaration.
60167         * lib/version-etc.c: Include stdarg.h, stdlib.h.
60168         (version_etc_copyright): Declare as readonly.
60169         (version_etc_va): New function. Provide a different translatable string
60170         for each possible number of authors < 10. Abbreviate when there are 10
60171         authors or more.
60172         (version_etc): Make this function variadic. Call version_etc_va.
60173         Suggestion from Gary V. Vaughan.
60174
60175         * lib/long-options.h (parse_long_options): Change prototype: the
60176         authors string is moved to the end and becomes variadic.
60177         * lib/long-options.c: Include stdarg.h.
60178         (parse_long_options): Make this function variadic, too.
60179         Call version_etc_va, not version_etc.
60180
60181 2003-10-06  Bruno Haible  <bruno@clisp.org>
60182
60183         * modules/version-etc-2: Remove file.
60184         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
60185
60186 2003-10-06  Bruno Haible  <bruno@clisp.org>
60187
60188         * modules/fatal-signal: New file.
60189         * MODULES.html.sh (func_all_modules): Add fatal-signal.
60190
60191 2003-10-06  Bruno Haible  <bruno@clisp.org>
60192
60193         * m4/fatal-signal.m4: New file.
60194         * m4/signalblocking.m4: New file, from GNU gettext.
60195
60196 2003-10-06  Bruno Haible  <bruno@clisp.org>
60197
60198         * lib/version-etc-2.h: Remove file.
60199         * lib/version-etc-2.c: Remove file.
60200
60201 2003-10-06  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/fatal-signal.h: New file, from GNU gettext.
60204         * lib/fatal-signal.c: New file, from GNU gettext.
60205
60206 2003-10-05  Paul Eggert  <eggert@twinsun.com>
60207
60208         * README: Rework advice for preventing empty .o files.
60209         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
60210         not <sys/types.h>.
60211
60212 2003-10-04  Karl Berry  <karl@gnu.org>
60213
60214         * lib/argp*: update from libc.
60215
60216 2003-10-04  Karl Berry  <karl@gnu.org>
60217
60218         * config/config.{guess,sub}: update from config.
60219
60220 2003-10-02  Bruno Haible  <bruno@clisp.org>
60221
60222         * modules/lchown (Include): Add lchown.h.
60223         * modules/time_r (Include): Use "..." syntax.
60224         * modules/xgetdomainname (Include): Add xgetdomainname.h.
60225
60226 2003-10-01  Simon Josefsson  <jas@extundo.com>
60227
60228         * MODULES.html.sh (func_all_modules): Move gethostname from section
60229         'based on' to section 'lacking' POSIX:2001.
60230
60231 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
60232
60233         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
60234         to output mode on the same stream.
60235
60236 2003-09-29  Paul Eggert  <eggert@twinsun.com>
60237
60238         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
60239         Fix arg typo in previous patch.
60240
60241 2003-09-28  Jim Meyering  <jim@meyering.net>
60242
60243         * lib/error.c: Correct cpp indentation.
60244
60245 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60246
60247         * modules/free: New file.
60248
60249 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60250
60251         * m4/free.m4: New file.
60252
60253 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60254
60255         * lib/minmax.h (MIN, MAX)
60256         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
60257         Omit the special code that used __typeof__, since we worry that
60258         it could be more trouble than it's worth.  See:
60259         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
60260         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
60261
60262         * lib/free.c: New file.
60263
60264 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
60265
60266         Trivial fixes to Makefile.am parts of module listings.
60267         * modules/strstr: Append strstr.h to lib_SOURCES.
60268         * modules/strcase: Likewise, for strcase.h.
60269
60270 2003-09-27  Karl Berry  <karl@gnu.org>
60271
60272         * config/mkinstalldirs: update from automake.
60273
60274 2003-09-26  Paul Eggert  <eggert@twinsun.com>
60275
60276         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
60277         (error_tail): Do not loop, reallocating temporary buffer, since
60278         the output cannot contain more wide characters than the input
60279         contains bytes, the size must be big enough already.  This avoids
60280         one potential size overflow calculation.  Check for size overflow
60281         when calculating temporary buffer size.  Free temporary buffer
60282         when done, if it was allocated with malloc; this plugs a memory
60283         leak.  Remove casts from void * to pointers, that are no longer
60284         needed now that we're assuming C89 or better.
60285
60286         Merge error changes from glibc.
60287
60288         * lib/error.c, error.h: Update copyright notice header to match glibc.
60289         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
60290         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
60291         Disable cancellation while printing error.
60292         * lib/error.h: Prepend __ to parameter names.
60293
60294 2003-09-26  Jim Meyering  <jim@meyering.net>
60295
60296         * lib/error.c (error_tail): Move some declarations
60297         into inner scope where the local variables are used.
60298
60299 2003-09-26  Bruno Haible  <bruno@clisp.org>
60300
60301         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
60302         stpncpy().
60303         Don't define stpncpy through config.h; it's now done through stpncpy.h.
60304
60305 2003-09-26  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/stpncpy.h (gnu_stpncpy): New declaration.
60308         (stpncpy): Define as alias for gnu_stpncpy.
60309         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
60310
60311 2003-09-25  Simon Josefsson  <jas@extundo.com>
60312
60313         * lib/xgetdomainname.h: New file.
60314         * lib/xgetdomainname.c: New file.
60315
60316 2003-09-25  Simon Josefsson  <jas@extundo.com>
60317             Bruno Haible  <bruno@clisp.org>
60318
60319         * modules/getdomainname: New file.
60320         * modules/xgetdomainname: New file.
60321         * MODULES.html.sh (func_all_modules): Add getdomainname,
60322         xgetdomainname.
60323
60324 2003-09-25  Simon Josefsson  <jas@extundo.com>
60325             Bruno Haible  <bruno@clisp.org>
60326
60327         * m4/getdomainname.m4: New file.
60328
60329 2003-09-25  Simon Josefsson  <jas@extundo.com>
60330             Bruno Haible  <bruno@clisp.org>
60331
60332         * lib/getdomainname.h: New file.
60333         * lib/getdomainname.c: New file.
60334
60335 2003-09-25  Karl Berry  <karl@gnu.org>
60336
60337         * lib/argp-fmtstream.c, argp-help.c: update from libc.
60338
60339 2003-09-25  Karl Berry  <karl@gnu.org>
60340
60341         * config/install-sh: update from automake.
60342
60343 2003-09-25  Bruno Haible  <bruno@clisp.org>
60344
60345         * modules/version-etc-2: New file, from modules/version-etc with
60346         modifications.
60347         * MODULES.html.sh (func_all_modules): Add version-etc-2.
60348
60349 2003-09-25  Bruno Haible  <bruno@clisp.org>
60350
60351         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
60352         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
60353
60354 2003-09-24  Simon Josefsson  <jas@extundo.com>
60355
60356         * modules/xgethostname: Add xgethostname.h.
60357
60358 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60359
60360         * lib/linebuffer.c (freebuffer): Don't free the argument, just
60361         the buffer associated with the argument.  Bug reported by
60362         Simon Josefsson.
60363
60364 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60365
60366         * README: Document assumptions that 'int' is at least 32 bits
60367         wide, that integer arithmetic is 2's complement without overflow,
60368         that there are no holes in integer values, that adding sizes of
60369         two nonoverlapping objects can't overflow, and that all-bits-zero
60370         yields scalar zero.  Fix spelling and capitalization typos.
60371
60372 2003-09-19  Karl Berry  <karl@gnu.org>
60373
60374         * lib/argp.h: update from libc.
60375
60376 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60377
60378         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
60379         to avoid spurious warnings like "AC_RUN_IFELSE was called before
60380         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
60381
60382 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60383
60384         * gnulib-tool: Use "test -h", not "test -L", for portability
60385         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
60386         (tags_regexp): Remove, since \| doesn't conform to POSIX.
60387         (sed_extract_prog): Issue s commands one-by-one, rather than
60388         using \| in one s command.
60389
60390 2003-09-16  Paul Eggert  <eggert@twinsun.com>
60391
60392         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
60393         input error, instead of returning NULL the next time we are called
60394         (and therefore losing track of errno).
60395
60396 2003-09-16  Bruno Haible  <bruno@clisp.org>
60397
60398         * gnulib-tool (func_create_testdir): Warn about duplicated
60399         dependencies.
60400
60401 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60402
60403         * modules/argmatch, modules/fatal, modules/obstack,
60404         modules/xalloc, modules/xgethostname: Sort dependencies by
60405         importance, not alphabetically.
60406
60407 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60408
60409         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
60410         fails, so that the caller gets the proper errno.
60411
60412         * lib/readutmp.c (read_utmp): Likewise.
60413         Check for fstat error.  Close stream and free storage
60414         when failing.
60415
60416 2003-09-14  Karl Berry  <karl@gnu.org>
60417
60418         * config/srclist.txt (strdup.c): disable for c89 changes.
60419
60420 2003-09-14  Jim Meyering  <jim@meyering.net>
60421
60422         * lib/getloadavg.c: Correct cpp indentation.
60423         * lib/strdup.c: Likewise.
60424         * lib/vasnprintf.c: Likewise.
60425
60426 2003-09-14  Bruno Haible  <bruno@clisp.org>
60427
60428         * modules/fwriteerror: New file.
60429         * MODULES.html.sh (func_all_modules): Add fwriteerror.
60430
60431 2003-09-14  Bruno Haible  <bruno@clisp.org>
60432
60433         * lib/fwriteerror.h: New file.
60434         * lib/fwriteerror.c: New file.
60435
60436 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60437
60438         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
60439         modules/xgethostname, modules/xalloc: Depend on exit.
60440
60441 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60442
60443         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
60444
60445         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
60446         and AC_MINIX, too, so that their extensions are available.
60447
60448         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
60449         This macro has been superseded by gl_BACKUPFILE.
60450
60451         More patches to assume C89 or better.
60452
60453         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
60454
60455         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
60456         unconditionally.
60457         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
60458         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
60459         Include <string.h>, <stdlib.h> unconditionally.
60460         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
60461         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
60462         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
60463         headers or for string.h.
60464         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
60465         or strtoul.
60466
60467         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
60468         headers.
60469         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
60470         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60471         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
60472         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
60473         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60474         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
60475         memcpy, memset.
60476         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
60477         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
60478         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
60479         strtol.
60480         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
60481         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
60482         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
60483         strtoul.
60484
60485 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60486
60487         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
60488         * lib/obstack.c [!defined _LIBC]: Likewise.
60489         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
60490         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
60491         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
60492
60493         More changes to assume C89 or better.
60494
60495         * lib/error.c (error_tail): Assume vprintf.
60496
60497         * lib/argmatch.c (getenv): Remove decl.
60498         * lib/progreloc.c (get_full_program_name): Define via prototype.
60499         * lib/setenv.c (clearenv): Likewise.
60500         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
60501         needed.
60502         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
60503         (malloc, memcpy): Remove decls.
60504         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
60505         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
60506         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60507         (memcpy): Remove macro.
60508         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
60509         (__P): Remove.  All uses removed.
60510         (PTR): Remove.  All uses changed to void *.
60511         (CHAR_BIT, NULL): Remove.
60512         (spaces, zeros, memset_space, memset_zero)
60513         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
60514         Remove.
60515         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
60516         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
60517         Define with prototype.
60518         Remove now-unnecessary prototype decl.
60519         (extra_args_spec): Assume ANSI C.  All uses changed.
60520         (extra_args_spec_iso): Remove.
60521         (my_strftime, emacs_strftimeu): Define via prototype.
60522         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
60523         unconditionally.
60524         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
60525         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
60526         (strtoul, strtol): Remove decls.
60527         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
60528         LONG_MAX): Remove.
60529         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60530         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
60531         (LOCALE_PARAM_PROTO): New macro.
60532         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60533         (INTERNAL (strtol), strtol): Define with a prototype.
60534         (PARAMS): Remove.  All uses removed.
60535         * lib/tempname.c: Include <string.h> unconditionally.
60536         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60537         * lib/xgethostname.c (main): Define with a prototype.
60538         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60539         Include <stdlib.h> unconditionally.
60540         (calloc, malloc, realloc, free): Remove decls.
60541         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60542         Include <stdlib.h> unconditionally.  Sort include file names.
60543         (strtod): Remove.
60544         (xstrtod): Define with a prototype.
60545         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60546         (strtol, strtoul): Remove decls.
60547
60548 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60549
60550         More patches to assume C89 or better.
60551         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60552         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60553         string.h, memchr, STDC_HEADERS.
60554
60555 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60556
60557         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60558         Include <stdlib.h>, <string.h> unconditionally.
60559         Remove now-unnecessary cast to char *.
60560         * lib/strnlen.c: Include <string.h> unconditionally.
60561         * lib/yesno.c (yesno): Define with a prototype.
60562
60563 2003-09-11  Bruno Haible  <bruno@clisp.org>
60564
60565         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60566
60567 2003-09-10  Jim Meyering  <jim@meyering.net>
60568
60569         * lib/error.c: Correct indentation of cpp directives.
60570
60571 2003-09-10  Bruno Haible  <bruno@clisp.org>
60572
60573         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60574         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60575         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60576         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60577         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60578         <stdlib.h> and <string.h> checks.
60579         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60580         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60581
60582 2003-09-10  Bruno Haible  <bruno@clisp.org>
60583
60584         * lib/strcspn.c: Include <string.h> unconditionally.
60585         * lib/strpbrk.c: Include <string.h> unconditionally.
60586         * lib/strstr.c: Include <string.h> unconditionally.
60587         * lib/unicodeio.c: Include <string.h> unconditionally.
60588         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60589         * lib/unsetenv.c: Likewise.
60590         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60591         * lib/yesno.c: Include <stdlib.h> unconditionally.
60592         (rpmatch): Add prototype.
60593
60594 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60595
60596         More patches to assume C89 or better.
60597         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60598         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60599         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60600         or for string.h.
60601         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60602         stdlib.h.
60603         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60604         C headers.
60605         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60606         string.h.
60607         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60608         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60609         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60610         or for string.h.
60611         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60612         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60613         C headers.
60614         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60615         memcpy.
60616         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60617         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60618         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60619         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60620         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60621         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60622         string.h, free.
60623         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60624         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60625         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60626         C headers, or for string.h.
60627         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60628         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60629         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60630         headers, memory.h, stdlib.h, string.h, strings.h.
60631         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60632         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60633         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60634         strchr.
60635         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60636         headers, memory.h, string.h.
60637         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60638         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60639         free.
60640         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60641         headers.
60642         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60643         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60644         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60645         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60646         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60647
60648 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60649
60650         More K&R removal.
60651
60652         * lib/acosl.c (main): Use a prototype.
60653         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60654         tanl.c: Likewise.
60655
60656         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60657
60658         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60659         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60660         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60661         with a prototype.
60662         * lib/getopt.c (const): Remove macro.
60663         Include <string.h> unconditionally.
60664         (my_index): Remove; all uses changed to strchr.
60665         (strlen): Remove decl.
60666         (exchange): Remove forward decl; no longer needed.
60667         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60668         Define with prototype.
60669         * lib/getopt1.c (const): Remove macro.
60670         (getopt_long, getopt_long_only, main): Define with prototype.
60671
60672         * lib/getugroups.c: Include <string.h> unconditionally.
60673
60674         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60675         (getusershell, setusershell, endusershell, readname, main):
60676         Define with prototypes.
60677
60678         * lib/group-member.c: Include group-member.h first.
60679         Include <stdlib.h> unconditionally.
60680
60681         * lib/hard-locale.c: Include hard-locale.h first.
60682         Include <stdlib.h>, <string.h> unconditionally.
60683
60684         * lib/hash.c (free, malloc): Remove decls.
60685         Include <stdlib.h> unconditionally.
60686
60687         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60688         (getenv): Do not declare.
60689
60690         * lib/idcache.c: Include <string.h> unconditionally.
60691
60692         * lib/long-options.c: Include long-options.h first, to test interface.
60693         Include <stdlib.h> unconditionally.
60694
60695         * lib/makepath.c: Include makepath.h first, to test interface.
60696         Include <stdlib.h> and <string.h> unconditionally.
60697
60698         * lib/linebuffer.c: Include <stdlib.h>.
60699         (free): Remove decl.
60700
60701         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60702         stddef.h. rpl_malloc returns void *, not char *.
60703         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60704         prototype.
60705
60706         * lib/md5.h: Include <limits.h> unconditionally.
60707         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60708         (__P): Remove; all uses removed.
60709         * lib/md5.c: Include "md5.h" first.
60710         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60711         md5_buffer, md5_process_bytes, md5_process_block):
60712         Define with prototypes.
60713         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60714         * lib/sha.c: Include "sha.h" first.
60715         Include <stdlib.h>, <string.h> unconditionally.
60716
60717         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60718         * lib/memcmp.c (__ptr_t): Likewise.
60719         * lib/memrchr.c (__ptr_t): Likewise.
60720         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
60721         Include <string.h> unconditionally.
60722         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
60723         * lib/memchr.c: Include <stdlib.h> unconditionally.
60724         * lib/memchr.c (LONG_MAX): Remove.
60725         * lib/memrchr.c (LONG_MAX): Likewise.
60726         * lib/memchr.c (__memchr): Define via a prototype.
60727         * lib/memrchr.c (__memrchr): Likewise.
60728         * lib/memcmp.c (__P): Remove, and remove all uses.
60729         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
60730         Remove forward decls; no longer needed.
60731         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
60732         Use types required by C89 in prototype.
60733
60734         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
60735         * lib/savedir.c: Likewise.
60736         * lib/mkdir.c (free): Remove decl.
60737         * lib/rmdir.c (rmdir): Define with a prototype.
60738         * lib/savedir.c: Include savedir.h first, to test interface.
60739
60740         * lib/mktime.c (STDC_HEADERS): Remove.
60741         Include <stdlib.h>, <string.h> unconditionally.
60742
60743         * lib/modechange.c: Include <stdlib.h> unconditionally.
60744         (malloc): Remove decl.
60745
60746         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
60747         (free): Remove decl.
60748
60749         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
60750         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
60751         (This type really should be intptr_t, but that's a C99ism.)
60752         (_obstack_memcpy): Remove: all uses changed to memcpy.
60753         Include <string.h> unconditionally.
60754         (struct obstack): Assume __STDC__ for types of members
60755         chunkfun, freefun, extra_arg.
60756         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
60757         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
60758         obstack_begin, obstack_specify_allocation,
60759         obstack_specify_allocation_with_arg, obstack_chunkfun,
60760         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
60761         Remove unprototyped decls and the macros that use them.
60762         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
60763         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
60764         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
60765         (defined __STDC__ && __STDC__)]:
60766         Remove nonprototyped code.
60767         Include <stdlib.h> unconditionally.
60768         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
60769         _obstack_allocated_p, _obstack_free, obstack_free,
60770         _obstack_memory_used, print_and_abort):
60771         Define using prototypes.
60772         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
60773         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
60774         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
60775         obstack_next_free, obstack_object_size, obstack_room) [0]:
60776         Remove unused, unprototyped code.
60777
60778         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
60779
60780         * lib/physmem.c (physmem_total, physmem_available, main): Define
60781         with prototypes.
60782
60783         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
60784         (main): Define with a prototype.
60785
60786         * lib/posixver.c (getenv): Remove decl.
60787
60788         * lib/putenv.c (malloc): Returns void *, not char *.
60789         Include <string.h> unconditionally.
60790         (strchr, memcpy, NULL): Do not define.
60791
60792         * lib/readtokens.c: Include readtokens.h first, to test interface.
60793         Include <stdlib.h>, <string.h> unconditionally.
60794         (init_tokenbuffer): Define with a prototype.
60795
60796         * lib/regex.c (PARAMS): Remove.  All uses removed.
60797         All uses of _RE_ARGS removed, too.
60798         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60799         unconditionally.
60800         (bzero): Assume memset exists.
60801         (memcmp, memcpy, NULL): Remove.
60802         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
60803         char, or assignments to local vars of type signed char.
60804         (init_syntax_once, PREFIX(extract_number_and_incr),
60805         PREFIX(print_partial_compiled_pattern),
60806         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
60807         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
60808         PREFIX(regex_grow_registers), PREFIX(regex_compile),
60809         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
60810         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
60811         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
60812         wcs_compile_range, byte_compile_range, truncate_wchar,
60813         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
60814         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
60815         count_mbs_length, wcs_re_match_2_internal,
60816         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
60817         PREFIX(alt_match_null_string_p),
60818         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
60819         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
60820         regfree, PREFIX(extract_number)): Define with prototype.  Remove
60821         now-unnecessary declaration, if any.
60822         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
60823         regcomp, regexec):
60824         Remove now-unnecessary casts among pointer types.
60825         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
60826
60827         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
60828         (free): Remove decl.
60829
60830         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
60831
60832         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
60833         (free): Remove decl.
60834
60835         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
60836         * lib/xgetcwd.c: Likewise.
60837
60838         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
60839         (free): Remove decl.
60840
60841         * lib/strchrnul.c (strchrnul): Define with a prototype.
60842         Fix bug: c_in was not converted to char before searching.
60843
60844         The following changes are not K&R related:
60845
60846         * lib/group-member.h: Include <sys/types.h>, so that this file is
60847         self-contained.
60848         * lib/makepath.h: Likewise.
60849
60850         * lib/getusershell.c (readname, default_index, line_size, readname):
60851         Use size_t, not int, for sizes.
60852         (readname): If the size overflows, report an error instead of
60853         looping forever.
60854
60855 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60856
60857         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
60858         libc.
60859
60860 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60861
60862         * README: New section: portability guidelines.
60863
60864 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60865
60866         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
60867         C89 spec.
60868
60869 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60870
60871         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
60872
60873 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60874
60875         Assume C89 or better; remove K&R cruft.
60876         A few of these changes were first proposed by Derek Robert Price
60877         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
60878
60879         * lib/addext.c: Include <string.h> unconditionally.
60880         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
60881         Don't declare getenv or malloc.
60882
60883         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
60884         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
60885         (NULL): Remove.
60886         (find_stack_direction, alloca): Use prototypes.
60887
60888         * lib/atexit.c (atexit): Define using a prototype.
60889
60890         * lib/basename.c, dirname.c, stripslash.c:
60891         Include <string.h> unconditionally.
60892
60893         * lib/bcopy.c: Include <stddef.h>.
60894         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
60895
60896         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
60897
60898         * lib/error.h (error, error_at_line, error_print_progname)
60899         [! (defined (__STDC__) && __STDC__)]: Remove decls.
60900         * lib/error.c: Include error.h first, to check interface.
60901         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60902         (VA_START): Remove; all uses changeed to va_start.
60903         (exit, strerror): Remove decls.
60904         (error_print_progname): Prototype uncondionally.
60905         Don't include <errno.h>; no longer needed.
60906         (private_strerror): Remove.
60907         (error_tail): Always define.
60908         (error, error_at_line): Assume C89 or better; always use prototypes.
60909         * lib/fatal.c: Include "fatal.h" first, to test interface.
60910         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60911         (VA_START): Remove; all uses changed to va_start.
60912         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
60913         this case.
60914         (exit): Remove decl.
60915         (fatal): Prototype unconditionally.  Assume va_start works.
60916         Abort at end, to pacify gcc.
60917
60918         * lib/euidaccess.c (main): Define with a prototype.
60919
60920         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
60921
60922         * lib/exitfail.c: Include <stdlib.h> unconditionally.
60923
60924         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
60925         prototypes.
60926         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
60927         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
60928         (getenv): Remove decl.
60929         (fnmatch): Define using a prototype.
60930         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
60931         (FCT): Define using a prototype.
60932
60933         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
60934
60935         * lib/gethostname.c: Include <stddef.h>.
60936         (gethostname): Define with prototype.  Length is size_t, not int.
60937
60938 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60939
60940         Assume C89 or better; remove K&R cruft.
60941         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
60942         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
60943         string.h, getenv, malloc.
60944         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
60945         headers.
60946         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
60947         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
60948         do not check for strerror.
60949         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
60950         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
60951         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
60952         do not check for doprnt or vprintf.
60953         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
60954         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
60955
60956 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60957
60958         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
60959         getversion.c should have been removed then, but was accidentally
60960         preserved.
60961
60962         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
60963         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
60964
60965 2003-09-08  Karl Berry  <karl@gnu.org>
60966
60967         * config/config.sub, config.guess, srclistvars.sh: update from savannah
60968                 config, forget about prep.
60969
60970         * config/depcomp, missing: update from automake.
60971
60972 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60973
60974         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
60975         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60976
60977 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60978
60979         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
60980         copy_tm_result.  Bug reported by Simon Josefsson in
60981         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60982
60983 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60984
60985         * m4/time_r.m4: New file.
60986         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
60987         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
60988         is. Check for timegm declaration.
60989         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
60990         Do not check for gmtime_r.
60991         Replace mktime if __mktime_internal does not exist and if mktime
60992         hasn't been replaced already.
60993
60994 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60995
60996         * lib/time_r.c, lib/time_r.h: New files.
60997
60998         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
60999         __localtime_r.
61000         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
61001         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
61002
61003         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
61004         __gmtime_r.
61005         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
61006         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
61007         Include <time_r.h>.
61008
61009         * lib/timegm.c: Switch to glibc implementation, with the following
61010         changes:
61011         [defined HAVE_CONFIG_H]: Include <config.h>.
61012         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
61013         (__mktime_internal) [!defined _LIBC]: New decl.
61014         (__gmtime_r) [!defined _LIBC]: New macro and function.
61015         (timegm): Use a prototype, since gnulib assumes C89.
61016         Do not bother declaring tmp to be const, as it's not really usefu.
61017         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
61018         (timegm): Declare only if HAVE_DECL_TIMEGM.
61019
61020 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61021
61022         * MODULES.html.sh (func_all_modules): Add time_r.
61023         * modules/time_r: New file.
61024         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
61025         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
61026
61027 2003-09-03  Paul Eggert  <eggert@twinsun.com>
61028
61029         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
61030         Bug reported by Lute Kamstra in
61031         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
61032
61033         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
61034         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
61035         course with correspondingly smaller numbers for tomorrow and
61036         yesterday.  From Tadayoshi Funaba.  Originally installed into
61037         sh-utils on 1999-08-07, but the patch got lost (I guess during the
61038         coreutils merge?).
61039
61040 2003-08-31  Simon Josefsson  <jas@extundo.com>
61041
61042         * modules/timegm: New file.
61043         * MODULES.html.sh (func_all_modules): Add timegm.
61044
61045 2003-08-31  Simon Josefsson  <jas@extundo.com>
61046
61047         * m4/timegm.m4: New file.
61048
61049 2003-08-31  Simon Josefsson  <jas@extundo.com>
61050
61051         * lib/timegm.h: New file.
61052         * lib/timegm.c: New file.  Based on
61053         wget-1.8.2/src/http.c:mktime_from_utc.
61054
61055 2003-08-31  Karl Berry  <karl@gnu.org>
61056
61057         * lib/argp.h: update from libc.
61058
61059 2003-08-28  Bruno Haible  <bruno@clisp.org>
61060
61061         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
61062         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
61063         followed by '#define fnmatch fnmatch_posix' gives an error.
61064
61065 2003-08-28  Bruno Haible  <bruno@clisp.org>
61066
61067         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
61068         warning on QNX, which defines O_BINARY to 000000.
61069
61070 2003-08-27  Jim Meyering  <jim@meyering.net>
61071
61072         * m4/mkstemp.m4: Require that the system mkstemp be able to create
61073         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
61074         would fail after 32.  Reported by Danny Levinson.  Details here:
61075         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
61076
61077 2003-08-24  Bruno Haible  <bruno@clisp.org>
61078
61079         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
61080         MSVC7 <stdio.h> is included later.
61081
61082 2003-08-22  Simon Josefsson  <jas@extundo.com>
61083
61084         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
61085
61086 2003-08-20  Karl Berry  <karl@gnu.org>
61087
61088         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
61089
61090 2003-08-20  Bruno Haible  <bruno@clisp.org>
61091
61092         * modules/progname: New file.
61093         * MODULES.html.sh (func_all_modules): Add progname.
61094
61095 2003-08-20  Bruno Haible  <bruno@clisp.org>
61096
61097         * lib/progname.h: New file, from GNU gettext.
61098         * lib/progname.c: New file, from GNU gettext.
61099         * lib/progreloc.c: New file, from GNU gettext.
61100
61101 2003-08-19  Jim Meyering  <jim@meyering.net>
61102
61103         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
61104         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
61105
61106 2003-08-19  Bruno Haible  <bruno@clisp.org>
61107
61108         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
61109         more.
61110
61111 2003-08-19  Bruno Haible  <bruno@clisp.org>
61112
61113         * lib/xstrdup.c: Assume <string.h> exists.
61114
61115 2003-08-18  Paul Eggert  <eggert@twinsun.com>
61116
61117         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
61118         in makefile rules.
61119
61120 2003-08-18  Jim Meyering  <jim@meyering.net>
61121
61122         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
61123         * m4/lib-ld.m4: Likewise.
61124
61125 2003-08-18  Jim Meyering  <jim@meyering.net>
61126
61127         * lib/setenv.h: Indent nested cpp directive.
61128         * lib/vasnprintf.c: Remove trailing blanks.
61129
61130 2003-08-17  Simon Josefsson  <jas@extundo.com>
61131
61132         * modules/xstrndup: New file.
61133         * MODULES.html.sh (func_all_modules): Add xstrndup.
61134
61135 2003-08-17  Simon Josefsson  <jas@extundo.com>
61136
61137         * modules/argp: Fix autoconf macro name. Add more dependencies.
61138
61139 2003-08-17  Simon Josefsson  <jas@extundo.com>
61140
61141         * m4/xstrndup.m4: New file.
61142
61143 2003-08-17  Simon Josefsson  <jas@extundo.com>
61144
61145         * m4/argp.m4: New file.
61146
61147 2003-08-17  Simon Josefsson  <jas@extundo.com>
61148             Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/xstrndup.h: New file.
61151         * lib/xstrndup.c: New file.
61152
61153 2003-08-17  Bruno Haible  <bruno@clisp.org>
61154
61155         * modules/strndup (Files, Include): Add lib/strndup.h.
61156
61157 2003-08-17  Bruno Haible  <bruno@clisp.org>
61158
61159         * modules/euidaccess (Files): Add lib/euidaccess.h.
61160
61161 2003-08-17  Bruno Haible  <bruno@clisp.org>
61162
61163         * lib/strndup.h: New file.
61164
61165 2003-08-17  Bruno Haible  <bruno@clisp.org>
61166
61167         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
61168         like AC_GNU_SOURCE.
61169         * modules/extensions (configure.ac): Comment out the invocation of
61170         gl_USE_SYSTEM_EXTENSIONS.
61171
61172 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61173
61174         Merges from coreutils, etc.
61175         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
61176         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
61177         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
61178         fixing a typo.
61179         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
61180         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
61181
61182 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61183
61184         Document merge from coreutils.
61185         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
61186         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
61187         * modules/utime: Add m4/utimes-null.m4.
61188
61189 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61190
61191         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
61192         space, undoing this 2003-08-12 change:
61193         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61194
61195 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61196
61197         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
61198         strtoul.c from libc, undoing this 2003-08-12 change:
61199         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61200
61201 2003-08-16  Jim Meyering  <jim@meyering.net>
61202
61203         Merges from coreutils.
61204         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
61205         prefix.  Adjust cache variables similarly.  Create 500 rather than
61206         just 300 files, to exercise bug on Darwin6.5, too.
61207         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
61208         $missing_dir.
61209         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
61210         AM_SYS_POSIX_TERMIOS.
61211         Reported by mkc@mathdogs.com.
61212         Also change use of $am_cv_sys_posix_termios
61213         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
61214         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
61215         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
61216         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
61217         in /proc/mounts until it finds one with matching device number.  This
61218         is unnecessary when the FILE argument *is* a mount point.  No stat call
61219         is necessary in that case.  So, disable the statvfs-testing code on
61220         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
61221         as RedHat bug# 84846.
61222         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61223         to 1MB, so as not to render systems with no stack size limit (e.g.,
61224         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61225         Include <unistd.h>.  On some systems,
61226         it is required for the definition of _SC_PAGESIZE.
61227
61228 2003-08-16  Jim Meyering  <jim@meyering.net>
61229
61230         Merge from coreutils.
61231         * lib/xstrtoimax.c: #else #if -> #elif.
61232         * lib/xstrtoumax.c: Likewise.
61233
61234 2003-08-16  Jim Meyering  <jim@meyering.net>
61235
61236         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
61237         * m4/utimes.m4: Removed.
61238         * m4/utimes-null.m4: Renamed from utimes.m4.
61239
61240         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61241         to 1MB, so as not to render systems with no stack size limit (e.g.,
61242         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61243         Include <unistd.h>.  On some systems,
61244         it is required for the definition of _SC_PAGESIZE.
61245
61246 2003-08-16  Jim Meyering  <jim@meyering.net>
61247         and Paul Eggert  <eggert@cs.ucla.edu>
61248
61249         Merges from coreutils, etc.
61250
61251         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
61252         using the latest version from cvs.  This avoids problems with #line
61253         directives using a vendor (Sun) compiler.
61254         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
61255         Don't set GETGROUPS_LIB here; now it's
61256         done via getgroups.m4's wrapper function.
61257         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
61258         rather than just in sh-util/configure.in, so that the
61259         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
61260         same.
61261         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
61262         AC_FUNC_GETLOADAVG where to find getloadavg.c.
61263         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
61264         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
61265         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
61266         Remove code that is now done by the newly-required macros.
61267         Append $(EXEEXT) to DF_PROG.
61268         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
61269         Do not invoke or require the following here,
61270         since prereq.m4 or some gnulib .m4 now does this for us:
61271         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
61272         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
61273         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
61274         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
61275         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
61276         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
61277         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
61278         AC_FUNC_OBSTACK.
61279         Do not replace the following functions, as this is now the job
61280         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
61281         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
61282         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
61283         atexit getpass, strdup, getpagesize.
61284         Replace 'raise'.
61285         Do not check for the following functions, as this is now the job
61286         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
61287         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
61288         setregid.
61289         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
61290         Check for sys/sysctl.h.
61291         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
61292         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
61293         of checking for ssize_t ourselves.
61294
61295         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
61296         Require every macro that gnulib/modules/* suggests for us.
61297         (jm_PREREQ_ADDEXT): New macro.
61298         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
61299         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
61300
61301         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
61302         (gl_PHYSMEM): Use it.
61303         Also check for `table' function.
61304         Check for new headers and functions.
61305         Add check for sys/sysmp.h.
61306         With suggestions from Kaveh Ghazi.
61307         Ignore headers that are present but cannot be compiled.  This
61308         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
61309         C 5.4.
61310
61311 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61312
61313         Document merge from coreutils.
61314         * modules/userspec: Depend on posixver.
61315         * modules/strftime: Depend on tzset.
61316
61317 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61318
61319         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
61320         rather than tab, after '#' in shell-script copyright notices.
61321         Suggested by Bruno Haible.
61322
61323 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61324
61325         * config/srclist-update: Use three spaces, rather than tab, after '#'
61326         in shell-script copyright notices.  Suggested by Bruno Haible.
61327         Remove unnecessary parenthesization in regular expression.
61328
61329 2003-08-15  Jim Meyering  <jim@meyering.net>
61330
61331         Merge from coreutils.
61332         * lib/xgethostname.c: Include <stdlib.h>.
61333         (xghostname): Don't exit for anything other than memory-related
61334         failure; just return NULL.
61335         * lib/userspec.c: Include "posixver.h".
61336         (parse_user_spec): Accept `.' as a separator only
61337         in pre-POSIX-200112 mode.
61338         * lib/strtoimax.c: Use #elif rather than #else #if.
61339         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
61340         Remove function, now that we can rely on a working tzset function.
61341         [!_LIBC]: Ensure that the required autoconf test has been run.
61342         [!defined _NL_CURRENT && HAVE_STRFTIME]:
61343         Use underlying_strftime for %r.
61344         * lib/sha.c: Merge in some clean-up and optimization changes from
61345         glibc.
61346         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
61347         Ensure that it is a multiple of 64.
61348         Rearrange loop exit tests so as to avoid performing an
61349         additional fread after encountering an error or EOF.
61350         * lib/realloc.c: Update copyright date.
61351
61352 2003-08-15  Jim Meyering  <jim@meyering.net>
61353         and Paul Eggert  <eggert@twinsun.com>
61354
61355         Merge from coreutils.
61356         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
61357         member but strut utmpx does not.  Needed for AIX 4.3.3.
61358         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
61359
61360 2003-08-15  Jim Meyering  <jim@meyering.net>
61361         and Paul Eggert  <eggert@cs.ucla.edu>
61362
61363         Merges from coreutils, etc.
61364         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
61365         Require gl_FUNC_TZSET_CLOBBER.
61366         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
61367         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
61368         members.
61369
61370 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61371
61372         Help the merge from coreutils.
61373         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
61374         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
61375         * m4/tzset.m4: Use it too.
61376
61377 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61378
61379         * modules/tzset: New file.
61380
61381 2003-08-14  Jim Meyering  <jim@meyering.net>
61382
61383         Merges from coreutils.
61384         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
61385         variable names, rather than @FNMATCH_H@.
61386         * modules/alloca: Likewise for $(ALLOCA_H).
61387
61388         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
61389         the three copies of the literal target, `fnmatch.h'.
61390         * modules/alloca (alloca.h): Likewise.
61391
61392 2003-08-14  Jim Meyering  <jim@meyering.net>
61393
61394         Merge from coreutils.
61395         * m4/tzset.m4: New file.
61396         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
61397         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
61398         otherwise, AIX 5.1 systems would end up using the latter.
61399         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
61400         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
61401         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
61402         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
61403
61404 2003-08-14  Jim Meyering  <jim@meyering.net>
61405
61406         Merge from coreutils.
61407         * lib/obstack.h: Whitespace changes.
61408         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
61409         and xcalloc return values.
61410         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
61411         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
61412         hang on OSF/1 5.1 for DIR on both local and remote file systems.
61413         Reported by (and fix confirmed by) Nelson H. F. Beebe.
61414         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61415         error from mntctl.
61416         Use mntctl's return value to drive the entry-processing loop, since
61417         we can't rely on the value of the vmt_length member in the last
61418         entry.  On some systems doing so could result in exhausting
61419         virtual memory.  Based in part on a patch from Mike Jetzer.
61420
61421 2003-08-14  Jim Meyering  <jim@meyering.net>
61422         and Paul Eggert  <eggert@twinsun.com>
61423
61424         Merges from coreutils, plus other fixes.
61425         * lib/physmem.c: Merge in portability changes from gcc/libiberty
61426         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
61427         for credits and details.  Thanks to Kaveh Ghazi for helping
61428         to keep these files in sync.
61429         (ARRAY_SIZE): Define it.
61430         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
61431         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
61432         (memcasecmp): Don't assume size_t fits in unsigned int.
61433         Remove casts and duplicate code.
61434         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
61435         (memcpy): Remove definition.
61436         Merge in some clean-up and optimization changes from glibc.
61437         [BLOCKSIZE]: Move definition to top of file.
61438         Ensure that it is a multiple of 64.
61439         Rearrange loop exit tests so as to avoid performing an
61440         additional fread after encountering an error or EOF.
61441         * lib/md5.h (md5_uintptr): Define.
61442         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
61443         return to the initial working directory.  Preserve errno
61444         for caller.
61445         * lib/idcache.c: Include "xalloc.h".
61446         (xmalloc, xrealloc): Remove decls.
61447         (getuser): Remove casts no longer required in C89.
61448         * lib/human.c: Include stdio.h, for sprintf.
61449         * lib/group-member.c: Include "xalloc.h".
61450         (xmalloc, xrealloc): Remove decls.
61451         (get_group_info): Remove casts no longer required in C89.
61452         * lib/getusershell.c (readname): Remove casts no longer required in
61453         C89.
61454         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
61455         * lib/getline.c: Whitespace fix, from coreutils.
61456
61457 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61458
61459         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
61460         Check for isascii.
61461
61462         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61463         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61464         Undo previous (whitespace-only) change.
61465
61466 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61467
61468         * lib/exclude.c: Include <ctype.h>
61469         (IN_CTYPE_DOMAIN): New macro.
61470         (is_space): New fn.
61471         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
61472         and empty lines.
61473
61474         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61475         Undo previous (whitespace-only) change.
61476
61477 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61478
61479         * config/srclist-update: Change update back to the old behavior,
61480         leaving whitespace alone.  Use one 'sed' command rather than a
61481         pipeline.
61482         (fixlicense): Now a variable, not a function.
61483         (remove_trailing_blanks): Remove.
61484         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
61485         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61486         Undo previous (whitespace-only) change.
61487
61488 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61489
61490         Merge from coreutils.
61491         * modules/euidaccess: Add lib_SOURCES, include for new
61492         file euidaccess.h
61493
61494 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61495
61496         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61497         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61498         Normalize leading white space and remove trailing white space.
61499
61500         Merge from coreutils
61501         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
61502
61503         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
61504         0.12.1.  These files are now being upgraded automatically by
61505         ../config/srclist-update.
61506
61507 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61508
61509         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61510         Normalize leading white space and remove trailing white space.
61511         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
61512         notice, as per ../config/srclist-update.
61513
61514         Merge from coreutils.
61515         * lib/euidaccess.h: New file.
61516         * lib/euidaccess.c: Include it.
61517         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
61518         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
61519         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
61520
61521 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61522
61523         * config/srclist-update: Add copyright notice.
61524         (remove_id_lines, remove_trailing_blanks): New constants.
61525         (fixfile): Use them to normalize spacing a bit in copied files.
61526         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61527         Normalize leading white space and remove trailing white space.
61528
61529         * config/texinfo.tex: Sync with texinfo.
61530
61531         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61532         strtoul.c from libc, to merge coreutils whitespace changes.
61533
61534         * config/srclist.txt: Get the following m4 files from gettext:
61535         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61536         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61537         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61538         wint_t.m4.
61539
61540 2003-08-12  Karl Berry  <karl@gnu.org>
61541
61542         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61543         been made.
61544
61545 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61546
61547         * modules/gnu-source, m4/gnu-source.m4:
61548         Remove; we're assuming Autoconf 2.54 or later now.
61549         Suggested by Bruno Haible.
61550         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61551
61552 2003-08-11  Bruno Haible  <bruno@clisp.org>
61553
61554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61555
61556 2003-08-11  Bruno Haible  <bruno@clisp.org>
61557
61558         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61559         (vasnprintf): Use it instead of wcslen.
61560
61561 2003-08-11  Bruno Haible  <bruno@clisp.org>
61562
61563         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61564         value to ensure that _Bool promotes to int. Use #define for _Bool when
61565         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61566
61567 2003-08-10  Karl Berry  <karl@gnu.org>
61568
61569         * lib/regex.h: update from libc (whitespace fix).
61570
61571 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61572
61573         Merge some files from coreutils.  These changes were
61574         originally made by Jim Meyering.
61575         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61576         many older Unixes require this.
61577         * lib/alloca.c (alloca): Remove cast to argument of free;
61578         no longer needed in C89.
61579         * lib/alloca_.h, regex.h: Fix white space to match
61580         what GNU indent does.
61581
61582 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61583
61584         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61585         apparently Emacs's Unicode mode got confused before my 2003-08-05
61586         checkin.
61587
61588 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61589
61590         * m4/extensions.m4: New file.
61591         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61592         Require gl_USE_SYSTEM_EXTENSIONS.
61593         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61594         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61595
61596 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61597
61598         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61599         * modules/extensions, modules/gnu-source: New files.
61600         * modules/timespec, modules/unlocked-io: Depend on extensions.
61601
61602 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61603
61604         * modules/restrict: New file.
61605         * MODULES.html.sh (func_all_modules): Add restrict.
61606         * modules/regex: Depend on restrict.
61607
61608 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61609
61610         * m4/restrict.m4: New file.
61611         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61612
61613 2003-08-07  Bruno Haible  <bruno@clisp.org>
61614
61615         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61616         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61617
61618 2003-08-07  Bruno Haible  <bruno@clisp.org>
61619
61620         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61621         makes the module 'getndelim2' compatible with the module 'getline'.
61622
61623 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61624
61625         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61626         byte with "\201" to avoid glitches when editing that source file
61627         with multi-gnome-terminal.
61628
61629 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61630
61631         * lib/bumpalloc.h: Remove.
61632
61633 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61634
61635         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61636         * modules/bumpalloc: Remove.
61637
61638 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61639
61640         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61641         GNU coding style.
61642
61643         Merge from coreutils.
61644         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61645         1. From glibc.
61646         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61647         from Karl Berry, implemented by Jim Meyering.
61648         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61649         from Dmitry V. Levin.
61650         Remove anachronistic cast of xrealloc.
61651         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61652         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61653         type. Otherwise, it wouldn't compile with at least /bin/cc on
61654         ymp-cray-unicos9.0.2.X.
61655         Combine two mostly-identical uses of alloca into one.
61656         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61657
61658 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61659
61660         [From Emacs.]
61661
61662         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61663         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61664         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61665         obsolete NLIST_NAME_UNION.
61666         [__GNU__]: Undef BSD and FSCALE.
61667         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61668
61669 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61670
61671         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61672         an enum type, so that it's guaranteed to promote to int.  See:
61673         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61674
61675 2003-08-03  Karl Berry  <karl@gnu.org>
61676
61677         * config/depcomp: update from automake.
61678
61679 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61680
61681         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61682         (strerror): Don't assume that a printable int fits in 14 bytes.
61683
61684 2003-07-31  Bruno Haible  <bruno@clisp.org>
61685
61686         * modules/getpass-gnu: New file.
61687         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61688
61689 2003-07-31  Bruno Haible  <bruno@clisp.org>
61690
61691         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61692
61693 2003-07-24  Karl Berry  <karl@gnu.org>
61694
61695         * config/missing: update from automake.
61696
61697 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61698             Bruno Haible  <bruno@clisp.org>
61699
61700         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61701         * lib/getline.c (getline, getdelim): Likewise.
61702         Remove _GNU_SOURCE define; now it's defined in config.h through
61703         m4/getline.m4.
61704
61705 2003-07-23  Karl Berry  <karl@gnu.org>
61706
61707         * config/config.sub: update from prep.
61708
61709 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61710
61711         * modules/xalloc (Depends-on): Add exitfail.
61712         * modules/xmemcoll: Likewise.
61713
61714 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61715
61716         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61717         over-parenthesization in macros.
61718
61719         Sync with coreutils.
61720
61721         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
61722         required by C99.
61723
61724         Use `exit_failure' for xalloc and xmemcoll instead of their own
61725         private exit-failure variables.
61726         * lib/xalloc.h (xalloc_exit_failure): Remove.
61727         * lib/xmalloc.c: Likewise.  Include exitfail.h.
61728         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
61729         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
61730         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
61731         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
61732
61733 2003-07-20  Jim Meyering  <jim@meyering.net>
61734
61735         * modules/closeout (Depends-on): Add exitfail.
61736         Suggestion from Bruno Haible.
61737
61738 2003-07-19  Karl Berry  <karl@gnu.org>
61739
61740         * config/config.sub: update from prep.
61741
61742 2003-07-18  Paul Eggert  <eggert@twinsun.com>
61743
61744         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
61745         Remove.
61746         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
61747         to test that it can stand by itself.  Include "exitfail.h".
61748         Clients should set exit_failure instead.
61749         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
61750
61751 2003-07-18  Bruno Haible  <bruno@clisp.org>
61752
61753         * modules/getndelim2: New file.
61754         * modules/getline: Share files with module getndelim2.
61755         * modules/getnline: Depend on getndelim2 instead of sharing files with
61756         it. Add getnline.c to lib_SOURCES.
61757         * MODULES.html.sh (func_all_modules): Add getndelim2.
61758
61759 2003-07-18  Bruno Haible  <bruno@clisp.org>
61760
61761         * m4/getndelim2.m4: New file.
61762         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
61763         invoke gl_PREREQ_GETNDELIM2.
61764         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
61765         gl_PREREQ_GETNDELIM2.
61766         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
61767         gl_GETNDELIM2.
61768
61769 2003-07-18  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/getndelim2.h: New file.
61772         * lib/getndelim2.c: Make into a module of its own. Include config.h,
61773         getndelim2.h.
61774         (getndelim2): Make non-static. Change return type to ssize_t.
61775         * lib/getline.h: Change argument names.
61776         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
61777         * lib/getnline.c: Include getndelim2.h.
61778
61779 2003-07-18  Andreas Schwab  <schwab@suse.de>
61780
61781         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
61782
61783 2003-07-17  Karl Berry  <karl@gnu.org>
61784
61785         * config/config.sub: update from prep.
61786
61787 2003-07-17  Bruno Haible  <bruno@clisp.org>
61788
61789         * modules/getnline: New file.
61790         * modules/getline: Add lib/getndelim2.c to source file list.
61791         * MODULES.html.sh (func_all_modules): Add getnline.
61792
61793 2003-07-17  Bruno Haible  <bruno@clisp.org>
61794
61795         * m4/getnline.m4: New file.
61796
61797 2003-07-17  Bruno Haible  <bruno@clisp.org>
61798
61799         * m4/Makefile.am.in: Remove file.
61800         * m4/Makefile.am: Remove file.
61801         * m4/Makefile.in: Remove file.
61802
61803 2003-07-17  Bruno Haible  <bruno@clisp.org>
61804
61805         * lib/getnline.h: New file.
61806         * lib/getnline.c: New file.
61807         * lib/getndelim2.c: New file, extracted from getline.c.
61808         (getndelim2): Renamed from getdelim2, with added nmax argument.
61809         * lib/getline.c: Include getndelim2.c.
61810         (getdelim2): Moved out to getndelim2.c.
61811         (getline, getdelim): Update.
61812
61813 2003-07-17  Bruno Haible  <bruno@clisp.org>
61814
61815         * lib/Makefile.am: Remove file.
61816         * lib/Makefile.in: Remove file.
61817
61818 2003-07-17  Bruno Haible  <bruno@clisp.org>
61819
61820         * configure.in: Remove file.
61821         * Makefile.in: Remove file.
61822
61823 2003-07-17  Bruno Haible  <bruno@clisp.org>
61824
61825         * MODULES.html.sh: Put the </BODY> right before </HTML>.
61826
61827 2003-07-16  Karl Berry  <karl@gnu.org>
61828
61829         * config/srclist-update: was running fixlicense twice, which caused
61830                 texinfo.tex to be nullified for some reason.  Simplify,
61831                 $gplsrc is no longer needed as far as I can see?
61832
61833 2003-07-16  Jim Meyering  <jim@meyering.net>
61834
61835         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
61836
61837 2003-07-15  Paul Eggert  <eggert@twinsun.com>
61838
61839         * config/srclist.txt: Get the following files from gettext-runtime/intl
61840         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
61841         ref-del.sin.  From Bruno Haible.
61842         * config/srclist-update (fixfile): Change grep pattern again, since the
61843         previous fix didn't work (there was another trailing $).  Use
61844         '[$]' to escape the $s.
61845
61846 2003-07-15  Karl Berry  <karl@gnu.org>
61847
61848         * lib/vasnprintf.c: update from gettext.
61849
61850 2003-07-15  Karl Berry  <karl@gnu.org>
61851
61852         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
61853         gets expanded when surrounded by '$'.
61854
61855 2003-07-15  Jim Meyering  <jim@meyering.net>
61856
61857         * modules/save-cwd: Don't depend on error.  From Derek Price.
61858
61859 2003-07-15  Jim Meyering  <jim@meyering.net>
61860
61861         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
61862
61863 2003-07-14  Simon Josefsson  <jas@extundo.com>
61864
61865         * modules/mempcpy: New file.
61866         * MODULES.html.sh (func_all_modules): Add mempcpy.
61867
61868 2003-07-14  Simon Josefsson  <jas@extundo.com>
61869
61870         * m4/mempcpy.m4: New file.
61871
61872 2003-07-14  Simon Josefsson  <jas@extundo.com>
61873
61874         * lib/mempcpy.h: New file.
61875         * lib/mempcpy.c: New file.
61876
61877 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61878
61879         * modules/getdate, modules/posixtm: Depend on mktime.
61880
61881 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61882
61883         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
61884         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
61885         unicodeio.c, unicodeio.h, unlocked-io.h:
61886         Switch from LGPL to GPL.
61887
61888 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61889
61890         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
61891         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
61892         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
61893         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
61894         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
61895         updated automatically by ../config/srclist-update.  This changes
61896         their license from LPGL to GPL.
61897
61898 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61899
61900         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
61901         assumed to refer to the root of the most recent stable gettext version.
61902         * config/srclistvars.sh: Add defaults for eggert.
61903         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
61904         Match "This program" as well as "The program".  This is needed
61905         for gettext.
61906
61907 2003-07-14  Jim Meyering  <jim@meyering.net>
61908
61909         Don't emit diagnostics.  Let callers do that.
61910         * lib/save-cwd.c: Don't include "error.h".
61911         (save_cwd): Don't call error.  Ensure that errno is valid
61912         when returning nonzero.
61913
61914         * lib/save-cwd.h (restore_cwd): Update prototype.
61915         * lib/save-cwd.c (restore_cwd): Remove two parameters.
61916         Simplify.  Don't call error upon failure.  Let callers do that.
61917         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
61918         when auditing is enabled.  But don't bother updating the #if.
61919
61920 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
61921
61922         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
61923         it breaks C++ compilation.
61924         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
61925
61926 2003-07-10  Simon Josefsson  <jas@extundo.com>
61927
61928         * modules/strchrnul (Makefile.am): Add strchrnul.h.
61929
61930 2003-07-10  Jim Meyering  <jim@meyering.net>
61931
61932         * m4/clock_time.m4: Remove trailing blank.
61933         * m4/intmax_t.m4: Likewise.
61934
61935 2003-07-10  Jim Meyering  <jim@meyering.net>
61936
61937         * lib/vasnprintf.c: Remove trailing blanks.
61938         Make cpp indentation consistent.
61939
61940 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61941
61942         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
61943         posixver.c, strftime.c, strnlen.c, strverscmp.c:
61944         Switch from LGPL to GPL.
61945
61946 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61947
61948         * config/srclist.txt: Sort sublists.  Add
61949         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
61950         that differ from gnulib for one reason or another; we'd like this list
61951         to be smaller but for now let's document what we have.
61952
61953 2003-07-08  Paul Eggert  <eggert@twinsun.com>
61954
61955         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
61956         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
61957         and sweeter "eval x=$x".
61958         * config/srclist.txt: Get lib/argp* from glibc.
61959
61960 2003-07-07  Paul Eggert  <eggert@twinsun.com>
61961
61962         * lib/mktime.c: Fix some boundary cases and remove need for floating
61963         point.
61964
61965         Issue a compile-time diagnostic if time_t is floating point, or if
61966         two's complement arithmetic is not in effect, or if arithmetic
61967         right shift does not propagate the sign.  These assumptions were
61968         all in the original code but they weren't checked.
61969
61970         (TIME_T_MIDPOINT, verify): New macros.
61971         (__isleap): Remove; it has integer overflow problems.
61972         (leapyear): New function, without those problems.
61973         (ydhms_tm_diff): Remove; splitting into two parts.
61974         (ydhms_diff): New function, containing the arithmetic part of
61975         the old ydhms_tm_diff function.  Issue a compile-time
61976         diagnostic if we are not using C99 integer division.
61977         Avoid casts when possible.
61978         (guess_time_tm): New function, containing the checking part of
61979         the old ydhms_tm_diff function.  Return the new value, rather than
61980         the difference between it and the old.  Accept a new argument T
61981         so that *T specifies the old value.  Check for overflow in the result.
61982
61983         (__mktime_internal): Use a time_t offset, not a long int offset.
61984         This undoes the 2003-06-04 change, which is no longer needed now
61985         that we have better overflow checking.
61986         (localtime_offset): Likewise.
61987
61988         (__mktime_internal): Avoid harmful overflow on hosts where time_t
61989         and long are 64-bit but int is only 32-bit.
61990         (ydhms_diff): Use long int to store year1 and yday1.
61991         Issue a compile-time diagnostic if long int is not wide enough.
61992
61993         (__mktime_internal): Use long int to store adjusted year and yday.
61994         Use plain C rather than preprocessor commands, if that doesn't
61995         affect efficiency.
61996         Check for overflow (and try to repair) after each probe
61997         rather than checking only at the very end.  This avoids some bugs
61998         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
61999         does not equal GMT offset at maximum time).
62000         Use integer to check for overflow rather than floating point; this
62001         is more portable to non-IEEE hosts, and is a tad faster.
62002         When we detect that we are oscillating between two values,
62003         don't check whether tm_isdst has the requested value, since
62004         we already know the answer.  When tm_isdst has the wrong value,
62005         use a different heuristic to find the right one, based on the
62006         extreme values actually observed in practice in tz2003a,
62007         rather than the (overly optimistic) "previous 3 calendar quarters".
62008
62009         (not_equal_tm, print_tm, check_result): Use "const T" rather than
62010         "T const" to accommodate glibc style.
62011         (check_result): Use less-confusing report format.  "long" -> "long int.
62012         (main): Likewise.
62013         Don't loop if the iteration overflows time_t.
62014         Allow a negative step in the iteration.
62015
62016 2003-07-06  Karl Berry  <karl@gnu.org>
62017
62018         * config/depcomp: update from automake.
62019         * config/config.sub: update from prep.
62020
62021 2003-07-03  Karl Berry  <karl@gnu.org>
62022
62023         * config/config.guess: update from prep.
62024
62025 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62026
62027         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
62028         xreadlink.c now includes it unconditionally.
62029
62030 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62031
62032         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
62033         having it depend on HAVE_SYS_TYPES_H.
62034
62035 2003-07-01  Bruno Haible  <bruno@clisp.org>
62036
62037         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
62038         <sys/types.h> should be sufficient.
62039         Reported by Paul Eggert.
62040
62041 2003-06-26  Karl Berry  <karl@gnu.org>
62042
62043         * config/depcomp: update from automake.
62044
62045 2003-06-26  Bruno Haible  <bruno@clisp.org>
62046
62047         * modules/human: Depend on module stdbool.
62048
62049 2003-06-25  Bruno Haible  <bruno@clisp.org>
62050
62051         * modules/readlink: New file.
62052         * modules/xreadlink: Depend on it.
62053         * MODULES.html.sh (func_all_modules): Add readlink.
62054
62055 2003-06-25  Bruno Haible  <bruno@clisp.org>
62056
62057         * m4/readlink.m4: New file.
62058
62059 2003-06-25  Bruno Haible  <bruno@clisp.org>
62060
62061         * lib/readlink.c: New file.
62062
62063 2003-06-22  Karl Berry  <karl@gnu.org>
62064
62065         * config/srclist.txt: update mkinstalldirs from automake.
62066         * config/mkinstalldirs: update.
62067
62068 2003-06-22  Bruno Haible  <bruno@clisp.org>
62069
62070         Portability to mingw32.
62071         * m4/ssize_t.m4: New file, from GNU gettext.
62072         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
62073         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
62074
62075 2003-06-22  Bruno Haible  <bruno@clisp.org>
62076
62077         * modules/safe-read: Add m4/ssize_t.m4.
62078         * modules/xreadlink: Add m4/ssize_t.m4.
62079
62080 2003-06-20  Bruno Haible  <bruno@clisp.org>
62081
62082         Assume C89, so PARAMS isn't needed.
62083         * lib/unicodeio.h (PARAMS): Remove.
62084         * lib/unicodeio.c: Don't use PARAMS.
62085
62086 2003-06-18  Karl Berry  <karl@gnu.org>
62087
62088         * config/config.{guess,sub}: update from prep.
62089
62090 2003-06-18  Jim Meyering  <jim@meyering.net>
62091
62092         Merge changes from coreutils.
62093         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
62094         Remove explicit declarations of xmalloc and realloc.
62095         Include xalloc.h.
62096         (read_utmp): Remove anachronistic cast of xmalloc.
62097
62098 2003-06-17  Paul Eggert  <eggert@twinsun.com>
62099
62100         Assume C89, so PARAMS isn't needed.
62101         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
62102         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
62103         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
62104         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
62105         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
62106         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
62107         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
62108         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
62109         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
62110         lib/xstrtod.h, lib/xstrtol.h: Likewise.
62111         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
62112         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
62113         no longer needed. Anyway, config.h should always be included before any
62114         other file.
62115
62116 2003-06-11  Simon Josefsson  <jas@extundo.com>
62117
62118         * modules/sysexits: New file.
62119         * MODULES.html.sh (func_all_modules): Add sysexits.
62120
62121 2003-06-11  Simon Josefsson  <jas@extundo.com>
62122
62123         * lib/sysexit_.h: New file.
62124
62125 2003-06-11  Derek Price  <derek@ximbiot.com>
62126
62127         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
62128         necessary.
62129
62130 2003-06-11  Bruno Haible  <bruno@clisp.org>
62131
62132         * m4/sysexits.m4: New file.
62133
62134 2003-06-10  Simon Josefsson  <jas@extundo.com>
62135
62136         * lib/argp.h: New file, from glibc.
62137         * lib/argp-ba.c: New file, from glibc.
62138         * lib/argp-eexst.c: New file, from glibc.
62139         * lib/argp-fmtstream.c: New file, from glibc.
62140         * lib/argp-fmtstream.h: New file, from glibc.
62141         * lib/argp-fs-xinl.c: New file, from glibc.
62142         * lib/argp-help.c: New file, from glibc.
62143         * lib/argp-namefrob.h: New file, from glibc.
62144         * lib/argp-parse.c: New file, from glibc.
62145         * lib/argp-pv.c: New file, from glibc.
62146         * lib/argp-pvh.c: New file, from glibc.
62147         * lib/argp-xinl.c: New file, from glibc.
62148
62149 2003-06-10  Simon Josefsson  <jas@extundo.com>
62150
62151         * modules/strchrnul: New file.
62152
62153 2003-06-10  Simon Josefsson  <jas@extundo.com>
62154
62155         * modules/argp: New file.
62156
62157 2003-06-10  Simon Josefsson  <jas@extundo.com>
62158
62159         * m4/strchrnul.m4: New file.
62160
62161 2003-06-10  Simon Josefsson  <jas@extundo.com>
62162
62163         * lib/strchrnul.h: New file.
62164         * lib/strchrnul.c: New file.
62165
62166 2003-06-10  Bruno Haible  <bruno@clisp.org>
62167
62168         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
62169
62170 2003-06-07  Karl Berry  <karl@gnu.org>
62171
62172         * config/config.{guess,sub}: update from prep.
62173
62174 2003-06-07  Jim Meyering  <jim@meyering.net>
62175
62176         * modules/strtod: Use $(...) notation, not @...@ for
62177         AC_REPLACE'd variables.
62178         * modules/localcharset: Likewise.
62179
62180 2003-06-07  Jim Meyering  <jim@meyering.net>
62181
62182         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
62183         in place of my name in the copyright comment.
62184         Remove definition and uses of __P.
62185
62186         From coreutils.
62187         * lib/stat.c: Don't declare xmalloc explicitly.
62188         Instead, include "xalloc.h".
62189         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
62190         xrealloc, and xcalloc return values.
62191         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
62192         Improve comment.
62193         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
62194
62195 2003-06-07  Bruno Haible  <bruno@clisp.org>
62196
62197         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
62198         avoid AC_CONFIG_LINKS.
62199         * modules/fnmatch (Makefile.am): Use explicit creation rule for
62200         fnmatch.h, to avoid AC_CONFIG_LINKS.
62201         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
62202
62203 2003-06-07  Bruno Haible  <bruno@clisp.org>
62204
62205         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
62206         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
62207         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62208         directory.
62209         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
62210         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62211         directory.
62212
62213 2003-06-06  Jim Meyering  <jim@meyering.net>
62214
62215         Merge from coreutils.
62216         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
62217         Consolidate declarations and initializations of *_base* locals.
62218
62219         Merge from coreutils.
62220         This avoids a core dump on systems without GNU putenv,
62221         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
62222         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
62223         (unsetenv): New static function, from GNU libc.
62224         (rpl_putenv): Use it.
62225
62226         * lib/modechange.c: Remove trailing blanks.
62227
62228         Merge from coreutils.
62229         * lib/fsusage.c: Remove declaration of statfs.
62230         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
62231
62232         * lib/posixtm.c: Include <stdbool.h> unconditionally.
62233
62234 2003-06-06  Jim Meyering  <jim@meyering.net>
62235
62236         * lib/stdbool_.h: Renamed from stdbool.h.in.
62237
62238 2003-06-06  Jim Meyering  <jim@meyering.net>
62239             Bruno Haible  <bruno@clisp.org>
62240
62241         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
62242         Adjust Makefile.am snippet not to redirect directly to target.
62243         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
62244
62245 2003-06-05  Paul Eggert  <eggert@twinsun.com>
62246
62247         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
62248         mismatch, look in future quarters as well as past.  This fixes a
62249         bug when processing fall-backwards gaps immediately after a long
62250         period of daylight-saving time.
62251
62252         * lib/mktime.c: Assume freestanding C89 or better.
62253         (HAVE_LIMITS_H): Remove.  Assume it's 1.
62254         (__P): Remove; not used.
62255         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
62256         (mktime, not_equal_tm, print_tm, check_result,
62257         main): Use prototypes.  Use const * where appropriate.
62258         (main): Fix typo in testing code that uncovered by above changes.
62259         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
62260
62261 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62262
62263         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
62264         locale.h, localeconv.  This merges changes from coreutils.
62265
62266         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
62267         It can be removed after the next Autoconf is released.
62268         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
62269         needed.
62270
62271 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62272
62273         * lib/mktime.c: Fix Debian bug 177940
62274         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
62275         (localtime_offset): Now long int, not time_t, because we want it
62276         to be guaranteed to be signed.  All uses changed.
62277         (__mktime_internal): If overflow would occur when adding offset,
62278         don't add it.
62279
62280         Merge 'human' changes from coreutils.  Rewrite to support
62281         locale-specific notations like thousands separators.
62282         * lib/human.c: Simplify authorship notice.
62283         Include human.h immediately after config.h.
62284         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
62285         <limits.h>: Do not include, since human.h does.
62286         (SIZE_MAX, UINTMAX_MAX): New macros.
62287         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
62288         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
62289         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
62290         (power_letter): Renamed from suffixes.
62291         (generate_suffix_backwards): Remove.
62292         (adjust_value): Now takes int style (because of human.h changes)
62293         and long double value (for greater precision on some platforms).
62294         (group_number): New function.
62295         (human_readable): Use it.  Use integer options, not enum.
62296         Put the options before the sizes in the arg list.
62297         Support all the new options.
62298         The old human_readable function has been removed;
62299         use inttostr.h instead.
62300         (human_readable, default_block_size, humblock):
62301         Use uintmax_t, not int, for block sizes.
62302         (human_readable_inexact, block_size_types): Remove.
62303         (block_size_opts): New constant.
62304         (human_options): Renamed from human_block_size, with new signature
62305         that allows block sizes up to UINTMAX_MAX.  All callers changed.
62306         * lib/human.h: Add copyright and authorship notice.
62307         Include <limits.h> and <stdbool.h> unconditionally.
62308         (PARAMS): Remove.  All uses removed.
62309         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
62310         (enum human_inexact_style): Remove tag; now a nameless enum.
62311         (human_floor, human_ceiling, human_round_to_even): Now have
62312         values 2, 0, 1 rather than -1, 1, 0.
62313         (human_group_digits, human_suppress_point_zero, human_autoscale,
62314         human_base_1024, human_SI, human_B): New constants.
62315         (human_readable_inexact, human_block_size): Remove.
62316         (human_readable): Size args are now uintmax_t, not int.
62317         (human_options): New decl.
62318
62319         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
62320         unnecessary now that we assume C89 or better.  This change
62321         imported from coreutils.
62322
62323         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62324         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
62325         in the 2003-05-30 sync from glibc.
62326
62327         .h files should stand alone, but we shouldn't include <sys/types.h>
62328         if we can get away with just <stddef.h>.
62329
62330         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
62331         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
62332         rather than <sys/types.h>, as we merely need size_t.
62333         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
62334         to get size_t.
62335         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
62336         Include <stdio.h>, to get FILE.
62337         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
62338         memcasecmp.h has included <stddef.h> and all we need is size_t.
62339         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
62340         our interface, instead of including <sys/types.h>
62341
62342 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62343
62344         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
62345         now, as glibc mktime is buggy on non-glibc systems.
62346
62347 2003-06-03  Karl Berry  <karl@gnu.org>
62348
62349         * config/config.sub: update from prep.
62350
62351 2003-06-02  Paul Eggert  <eggert@twinsun.com>
62352
62353         [from coreutils]
62354         Fix some minor time-related bugs with POSIX time arguments.
62355         Some valid time stamps were being rejected (notably -1, and
62356         time stamps before 1900 on 64-bit hosts).  And some invalid
62357         time stamps were being accepted, e.g. September 31.
62358
62359         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
62360         that we can return (time_t) -1 successfully.
62361         * lib/posixtm.c: Likewise.
62362         [HAVE_STDBOOL_H]: Include <stdbool.h>.
62363         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
62364         (t): Remove static var.
62365         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
62366         of static var.  All uses changed.
62367         (year): Do not reject years before 1900; they can occur with
62368         64-bit time_t.
62369         (posix_time_parse): Do not check for out-of-range components;
62370         that is now the caller's responsibility, since our checks were
62371         only approximations.
62372         (posixtime): Use mktime to check for out-of-range components,
62373         since it knows them exactly.
62374         If mktime returns (time_t) -1, check whether an error actually occurred
62375         by invoking localtime on -1.
62376         (main) [TEST_POSIXTIME]: Check for input data errors, and report
62377         posixtime failures better.
62378         Improve the test data (in comments only).
62379
62380 2003-06-02  Karl Berry  <karl@gnu.org>
62381
62382         * config/mkinstalldirs (version): new variable.
62383         (--version): new option.
62384         (usage): improve message.
62385
62386 2003-05-30  Karl Berry  <karl@gnu.org>
62387
62388         * lib/mktime.c: update from libc.
62389
62390 2003-05-30  Bruno Haible  <bruno@clisp.org>
62391
62392         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
62393         * config/config.rpath: Upgrade to gettext-0.12.1.
62394
62395 2003-05-30  Bruno Haible  <bruno@clisp.org>
62396
62397         * m4/gettext.m4: Upgrade to gettext-0.12.1.
62398         * m4/nls.m4: New file, from gettext-0.12.1.
62399         * m4/po.m4: New file, from gettext-0.12.1.
62400         * m4/progtest.m4: Upgrade to gettext-0.12.1.
62401
62402 2003-05-30  Bruno Haible  <bruno@clisp.org>
62403
62404         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
62405         * lib/localcharset.h: Likewise.
62406         * lib/localcharset.c: Likewise.
62407
62408 2003-05-29  Karl Berry  <karl@gnu.org>
62409
62410         * config/config.rpath: update from gettext.
62411
62412 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62413
62414         Assume the headers required for C89 freestanding compilers.
62415         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
62416         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
62417         * m4/human.m4 (gl_HUMAN): Likewise.
62418         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
62419         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
62420         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62421         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
62422         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62423         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
62424
62425 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62426
62427         Assume the headers required for C89 freestanding compilers.
62428         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
62429         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
62430         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
62431         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
62432         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
62433         define, since <limits.h> is guaranteed to do that.
62434         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
62435         * lib/exclude.c: Include <stdbool.h> unconditionally.
62436         * lib/tempname.c: Include <stddef.h> unconditionally.
62437         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
62438         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
62439         <stddef.h> does that.
62440         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
62441         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
62442         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
62443         needed.
62444         * lib/xstrtol.c: Likewise.
62445         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
62446         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
62447
62448         * lib/addext.c (addext): Use assignment rather than cast, to avoid
62449         warnings on some platforms.
62450
62451         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62452         arbitrarily.
62453
62454 2003-05-26  Jim Meyering  <jim@meyering.net>
62455
62456         Merge in a change from coreutils:
62457         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
62458         that is guaranteed to be `no'.  Use `no_such_member' to indicate
62459         that condition, rather than `-1' which is slightly misleading.
62460         Change the name of the cache variable to have the gl_ prefix.
62461         Prompted by a patch from Richard Dawe for DJGPP.
62462
62463 2003-05-24  Karl Berry  <karl@gnu.org>
62464
62465         * config/config.guess: update from prep.
62466
62467 2003-05-22  Karl Berry  <karl@gnu.org>
62468
62469         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
62470
62471 2003-05-20  Karl Berry  <karl@gnu.org>
62472
62473         * config/config.guess: update from prep.
62474
62475 2003-05-18  Karl Berry  <karl@gnu.org>
62476
62477         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
62478         might actually be set by the user.
62479
62480         * config/depcomp, install-sh, mdate-sh: update from automake.
62481
62482 2003-05-17  Bruno Haible  <bruno@clisp.org>
62483
62484         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
62485         invalid expansion for AC_EGREP_CPP.
62486         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62487         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62488         Suggested by Akim Demaille <akim@epita.fr> in
62489         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
62490
62491 2003-05-12  Jim Meyering  <jim@meyering.net>
62492
62493         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
62494         the space-padded-by-default conversion specifiers, %e, %k, %l.
62495
62496 2003-05-12  Bruno Haible  <bruno@clisp.org>
62497
62498         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
62499         the string is longer than 4 KB.
62500
62501 2003-05-11  Karl Berry  <karl@gnu.org>
62502
62503         * config/config.{guess,sub}: update from prep.
62504
62505 2003-05-09  Bruno Haible  <bruno@clisp.org>
62506
62507         * modules/error: Add m4/strerror_r.m4 to file list.
62508
62509 2003-05-03  Bruno Haible  <bruno@clisp.org>
62510
62511         Upgrade to Unicode-4.0.
62512         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
62513         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
62514         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
62515         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
62516         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
62517         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
62518         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
62519         Change width of U+E0100..U+E01EF from 1 to 0.
62520
62521 2003-04-25  Jim Meyering  <jim@meyering.net>
62522
62523         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
62524         of type size_t, not int.
62525
62526 2003-04-25  Bruno Haible  <bruno@clisp.org>
62527
62528         * lib/copy-file.c: Include <stddef.h>, for size_t.
62529
62530 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62531
62532         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62533         code which expansion is under static control.  Patch imported from
62534         Akim Demaille's patch to Bison; see
62535         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62536
62537 2003-04-14  Bruno Haible  <bruno@clisp.org>
62538
62539         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62540
62541 2003-04-11  Jim Meyering  <jim@meyering.net>
62542
62543         Merge changes from Coreutils.
62544
62545         2003-03-22  Jim Meyering  <jim@meyering.net>
62546
62547         * lib/strftime.c (widen): Cast alloca return value to proper type.
62548
62549         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62550
62551         From GNU libc.
62552         * lib/strftime.c (my_strftime): Handle very large width
62553         specifications for numeric values correctly.  Improve checks for
62554         overflow.
62555
62556         2003-01-19  Jim Meyering  <jim@meyering.net>
62557
62558         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62559         definitions.
62560         (nl_get_alt_digit) [! defined my_strftime]: Define.
62561         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62562         _nl_get_alt_digit and _nl_get_walt_digit.
62563
62564         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62565         libc. These changes have no effect outside of _LIBC.
62566
62567 2003-04-10  Bruno Haible  <bruno@clisp.org>
62568
62569         * modules/findprog: New file.
62570         * MODULES.html.sh (func_all_modules): Add it.
62571
62572 2003-04-10  Bruno Haible  <bruno@clisp.org>
62573
62574         * m4/findprog.m4: New file.
62575         * m4/eaccess.m4: New file.
62576
62577 2003-04-10  Bruno Haible  <bruno@clisp.org>
62578
62579         * lib/findprog.h: New file, from GNU gettext.
62580         * lib/findprog.c: New file, from GNU gettext.
62581
62582 2003-04-05  Jim Meyering  <jim@meyering.net>
62583
62584         Merge changes from Coreutils.
62585
62586         * lib/exclude.h (PARAMS): Remove definition and uses.
62587         * lib/exclude.c: Remove uses of `PARAMS'.
62588
62589         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62590         Add test-cases for DOS filenames. Declare program_name.
62591         (main): Set up program_name.  Patch by Rich Dawe.
62592
62593         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62594         error from mntctl.
62595         Use mntctl's return value to drive the entry-processing loop, since
62596         we can't rely on the value of the vmt_length member in the last
62597         entry.  On some systems doing so could result in exhausting
62598         virtual memory.  Based in part on a patch from Mike Jetzer.
62599
62600 2003-04-04  Bruno Haible  <bruno@clisp.org>
62601
62602         * modules/linebreak: New file.
62603         * MODULES.html.sh (func_all_modules): Add it.
62604
62605 2003-04-04  Bruno Haible  <bruno@clisp.org>
62606
62607         * m4/linebreak.m4: New file.
62608
62609 2003-04-04  Bruno Haible  <bruno@clisp.org>
62610
62611         * lib/linebreak.h: New file, from GNU gettext.
62612         * lib/linebreak.c: New file, from GNU gettext with slight
62613         modifications.
62614         * lib/lbrkprop.h: New file, from GNU gettext.
62615
62616 2003-04-03  Bruno Haible  <bruno@clisp.org>
62617
62618         * modules/utf8-ucs4: New file.
62619         * modules/utf16-ucs4: New file.
62620         * modules/ucs4-utf8: New file.
62621         * modules/ucs4-utf16: New file.
62622         * MODULES.html.sh (func_all_modules): Add them.
62623
62624 2003-04-03  Bruno Haible  <bruno@clisp.org>
62625
62626         * m4/utf-ucs4.m4: New file.
62627         * m4/ucs4-utf.m4: New file.
62628
62629 2003-04-03  Bruno Haible  <bruno@clisp.org>
62630
62631         * lib/utf8-ucs4.h: New file, from GNU gettext.
62632         * lib/utf16-ucs4.h: New file, from GNU gettext.
62633         * lib/ucs4-utf8.h: New file, from GNU gettext.
62634         * lib/ucs4-utf16.h: New file, from GNU gettext.
62635
62636 2003-04-02  Bruno Haible  <bruno@clisp.org>
62637
62638         * modules/binary-io: New file.
62639         * MODULES.html.sh (func_all_modules): Add it.
62640
62641 2003-04-02  Bruno Haible  <bruno@clisp.org>
62642
62643         * lib/binary-io.h: New file, from GNU gettext.
62644
62645 2003-04-01  Bruno Haible  <bruno@clisp.org>
62646
62647         * modules/pathname: New file.
62648         * MODULES.html.sh (func_all_modules): Add it.
62649
62650 2003-04-01  Bruno Haible  <bruno@clisp.org>
62651
62652         * lib/pathname.h: New file, from GNU gettext.
62653         * lib/concatpath.c: New file, from GNU gettext.
62654
62655 2003-03-30  Bruno Haible  <bruno@clisp.org>
62656
62657         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62658
62659 2003-03-30  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62662         function chown() doesn't exist.
62663
62664 2003-03-28  Bruno Haible  <bruno@clisp.org>
62665
62666         * modules/copy-file: New file.
62667         * MODULES.html.sh (func_all_modules): Add it.
62668
62669 2003-03-28  Bruno Haible  <bruno@clisp.org>
62670
62671         * m4/copy-file.m4: New file.
62672
62673 2003-03-28  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/copy-file.h: New file, from GNU gettext.
62676         * lib/copy-file.c: New file, from GNU gettext.
62677
62678 2003-03-18  Jim Meyering  <jim@meyering.net>
62679
62680         * lib/quote.c (quote_n): Fix typo in comment.
62681
62682 2003-03-18  Bruno Haible  <bruno@clisp.org>
62683
62684         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62685         checking.
62686         * m4/onceonly_2_57.m4: Likewise.
62687
62688 2003-03-17  Bruno Haible  <bruno@clisp.org>
62689
62690         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62691         (m4_quote): Remove macro.
62692         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62693
62694 2003-03-14  Jim Meyering  <jim@meyering.net>
62695
62696         Merge changes from Coreutils.
62697         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62698         to be const, in order to avoid warnings.
62699         (obstack_room): Likewise.
62700         (obstack_empty_p): Likewise.
62701
62702 2003-03-14  Bruno Haible  <bruno@clisp.org>
62703
62704         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62705         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62706
62707 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62708
62709         Merge changes from Bison.
62710         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62711         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62712         when compiling Bison 1.875's `bitset bset = obstack_alloc
62713         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62714         * lib/hash.c: Include <stdbool.h> unconditionally.
62715
62716 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62717
62718         * m4/onceonly.m4 (m4_quote): New macro.
62719         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
62720         Quote AC_FOREACH variable-expansions properly.
62721
62722 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62723
62724         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
62725
62726 2003-03-09  Paul Eggert  <eggert@twinsun.com>
62727
62728         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
62729         Reported by Bruce Becker; see:
62730         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
62731
62732 2003-03-03  Paul Eggert  <eggert@twinsun.com>
62733             Bruno Haible  <bruno@clisp.org>
62734
62735         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
62736         Reported by John Hughes, see
62737         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
62738
62739 2003-02-20  Bruno Haible  <bruno@clisp.org>
62740
62741         * MODULES.html.sh (func_all_modules): Add poll.
62742
62743 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62744
62745         * modules/poll: New file.
62746
62747 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62748
62749         * lib/poll_.h: New file.
62750         * lib/poll.c: New file.
62751
62752 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62753
62754         * m4/poll.m4: New file.
62755
62756 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62757
62758         * modules/mathl: New file.
62759
62760 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62761
62762         * lib/mathl.h: New file.
62763         * lib/acosl.c: New file.
62764         * lib/asinl.c: New file.
62765         * lib/atanl.c: New file.
62766         * lib/ceill.c: New file.
62767         * lib/cosl.c: New file.
62768         * lib/expl.c: New file.
62769         * lib/floorl.c: New file.
62770         * lib/frexpl.c: New file.
62771         * lib/ldexpl.c: New file.
62772         * lib/logl.c: New file.
62773         * lib/sincosl.c: New file.
62774         * lib/sinl.c: New file.
62775         * lib/sqrtl.c: New file.
62776         * lib/tanl.c: New file.
62777         * lib/trigl.c: New file.
62778         * lib/trigl.h: New file.
62779
62780 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62781
62782         * m4/mathl.m4: New file.
62783
62784 2003-02-18  Bruno Haible  <bruno@clisp.org>
62785
62786         * MODULES.html.sh (func_all_modules): Add mathl.
62787
62788 2003-02-17  Bruno Haible  <bruno@clisp.org>
62789
62790         * modules/mkdtemp: New module.
62791         * MODULES.html.sh (func_all_modules): Add it.
62792
62793 2003-02-17  Bruno Haible  <bruno@clisp.org>
62794
62795         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
62796
62797 2003-02-17  Bruno Haible  <bruno@clisp.org>
62798
62799         * lib/mkdtemp.h: New file, from GNU gettext.
62800         * lib/mkdtemp.c: New file, from GNU gettext.
62801
62802 2003-02-02  Jim Meyering  <jim@meyering.net>
62803
62804         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
62805         e.g. glibc-2.2.93.
62806
62807 2003-01-31  Bruno Haible  <bruno@clisp.org>
62808
62809         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
62810         'rpl_rename'.
62811         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
62812         'rpl_strnlen'.
62813         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
62814         'rpl_strtod'.
62815         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
62816         'rpl_utime'.
62817
62818 2003-01-31  Bruno Haible  <bruno@clisp.org>
62819
62820         * lib/rename.c: #undef rename before defining rpl_rename.
62821         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
62822
62823 2003-01-30  Bruno Haible  <bruno@clisp.org>
62824
62825         * modules/vasnprintf, modules/vasprintf: New modules.
62826         * MODULES.html.sh (func_all_modules): Add them.
62827
62828 2003-01-30  Bruno Haible  <bruno@clisp.org>
62829
62830         * m4/signed.m4: New file, from GNU gettext.
62831         * m4/longdouble.m4: New file, from GNU gettext.
62832         * m4/wchar_t.m4: New file, from GNU gettext.
62833         * m4/wint_t.m4: New file, from GNU gettext.
62834         * m4/vasnprintf.m4: New file.
62835         * m4/vasprintf.m4: New file.
62836
62837 2003-01-30  Bruno Haible  <bruno@clisp.org>
62838
62839         * lib/printf-args.h: New file, from GNU gettext.
62840         * lib/printf-args.c: New file, from GNU gettext.
62841         * lib/printf-parse.h: New file, from GNU gettext.
62842         * lib/printf-parse.c: New file, from GNU gettext.
62843         * lib/vasnprintf.h: New file, from GNU gettext.
62844         * lib/vasnprintf.c: New file, from GNU gettext.
62845         * lib/asnprintf.c: New file, from GNU gettext.
62846         * lib/vasprintf.h: New file, from GNU gettext with modifications.
62847         * lib/vasprintf.c: New file, from GNU gettext.
62848         * lib/asprintf.c: New file, from GNU gettext.
62849
62850 2003-01-29  Bruno Haible  <bruno@clisp.org>
62851
62852         * modules/stpncpy: New module.
62853         * MODULES.html.sh (func_all_modules): Add it.
62854
62855 2003-01-29  Bruno Haible  <bruno@clisp.org>
62856
62857         * m4/stpncpy.m4: New file.
62858
62859 2003-01-29  Bruno Haible  <bruno@clisp.org>
62860
62861         * lib/stpncpy.h: New file, from GNU gettext with modifications.
62862         * lib/stpncpy.c: New file, from GNU gettext with modifications.
62863
62864 2003-01-28  Bruno Haible  <bruno@clisp.org>
62865
62866         * modules/c-ctype: New module.
62867         * MODULES.html.sh (func_all_modules): Add it.
62868
62869 2003-01-28  Bruno Haible  <bruno@clisp.org>
62870
62871         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
62872         Paul Eggert.
62873         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
62874         Paul Eggert.
62875
62876 2003-01-27  Bruno Haible  <bruno@clisp.org>
62877
62878         * modules/xsetenv: New module.
62879         * MODULES.html.sh (func_all_modules): Add it.
62880
62881 2003-01-27  Bruno Haible  <bruno@clisp.org>
62882
62883         * lib/xsetenv.h: New file, from GNU gettext.
62884         * lib/xsetenv.c: New file, from GNU gettext.
62885
62886 2003-01-23  Jim Meyering  <jim@meyering.net>
62887
62888         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
62889         from working on systems without dirfd (at least Irix and OSF1/Tru64).
62890
62891 2003-01-23  Bruno Haible  <bruno@clisp.org>
62892
62893         * modules/minmax: New module.
62894         * MODULES.html.sh (func_all_modules): Add it.
62895
62896 2003-01-23  Bruno Haible  <bruno@clisp.org>
62897
62898         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
62899         Eggert.
62900
62901 2003-01-22  Bruno Haible  <bruno@clisp.org>
62902
62903         * modules/exit: New module.
62904         * MODULES.html.sh (func_all_modules): Add it.
62905
62906 2003-01-22  Bruno Haible  <bruno@clisp.org>
62907
62908         * lib/exit.h: New file, from GNU gettext.
62909
62910 2003-01-19  Bruno Haible  <bruno@clisp.org>
62911
62912         * gnulib-tool: Recognize option --extract-maintainer.
62913         (func_get_maintainer): New function.
62914         * modules/*: Add Maintainer entry.
62915
62916 2003-01-16  Jim Meyering  <jim@meyering.net>
62917
62918         * m4/regex.m4: The `regex' struct is both input and output.
62919         Initialize it before each use.  Patch by Tim Waugh.
62920
62921 2003-01-16  Bruno Haible  <bruno@clisp.org>
62922
62923         * MODULES.html.sh: Add a table of contents. Add the module name as
62924         leftmost column. Add hyperlinks.
62925
62926 2003-01-15  Bruno Haible  <bruno@clisp.org>
62927
62928         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
62929
62930 2003-01-15  Bruno Haible  <bruno@clisp.org>
62931
62932         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
62933         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
62934         suffix.
62935
62936 2003-01-15  Bruno Haible  <bruno@clisp.org>
62937
62938         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
62939
62940 2003-01-15  Bruno Haible  <bruno@clisp.org>
62941
62942         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
62943         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
62944
62945 2003-01-14  Jim Meyering  <jim@meyering.net>
62946
62947         * lib/same.c (same_name): Tweak a comment.
62948
62949 2003-01-14  Bruno Haible  <bruno@clisp.org>
62950
62951         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
62952         when a string comparison is sufficient.
62953
62954 2003-01-14  Bruno Haible  <bruno@clisp.org>
62955
62956         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
62957         'unsigned int'.
62958
62959 2003-01-14  Bruno Haible  <bruno@clisp.org>
62960
62961         * lib/hash-pjw.c: Add comment about low quality of this function.
62962
62963 2003-01-13  Bruno Haible  <bruno@clisp.org>
62964
62965         * modules/stpcpy: Distribute lib/stpcpy.h.
62966         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
62967
62968 2003-01-13  Bruno Haible  <bruno@clisp.org>
62969
62970         * modules/*: Add a description.
62971         * modules/strpbrk: Fix Makefile.am snippet.
62972         * modules/strtoimax: Fix dependencies.
62973         * modules/strtoumax: Likewise.
62974
62975 2003-01-13  Bruno Haible  <bruno@clisp.org>
62976
62977         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
62978         * modules/alloca (Makefile.am): All object files depend on alloca.h.
62979         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
62980
62981 2003-01-13  Bruno Haible  <bruno@clisp.org>
62982
62983         * gnulib-tool (func_create_testdir): Store config/* files in the main
62984         directory.
62985         * config.rpath: Move to ...
62986         * config/config.rpath: ... here.
62987         * modules/gettext: Contains config/config.rpath, not config.rpath.
62988         * modules/iconv: Likewise.
62989
62990 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62991
62992         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62993         to avoid collisions with libcurses and libreadline.
62994
62995         * m4/getstr.m4: Remove.
62996         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
62997
62998 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62999
63000         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63001         to avoid collisions with libcurses and libreadline.
63002
63003         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
63004         * lib/getstr.h, getstr.c: Remove.
63005         * lib/getline.c: Include "getline.h", to check interface.
63006         Move body of old getstr.c here: this defines MIN_CHUNK and
63007         declares getdelim2, which is renamed from getstr.
63008         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
63009
63010         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
63011         All uses changed.
63012         * lib/linebuffer.h: Likewise.
63013         (readline): Remove backward-compatibility macro.
63014
63015 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63016
63017         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63018         to avoid collisions with libcurses and libreadline.
63019         * getstr: Remove.
63020         * MODULES.html.sh: Remove getstr.
63021         * modules/getline: Depend on unlocked-io, not getstr.
63022
63023 2003-01-12  Jim Meyering  <jim@meyering.net>
63024
63025         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
63026
63027 2003-01-10  Bruno Haible  <bruno@clisp.org>
63028
63029         * modules/alloca: Change Makefile.am requirements. Simplify Include
63030         requirements. Add lib/alloca_.h to file list.
63031
63032 2003-01-10  Bruno Haible  <bruno@clisp.org>
63033
63034         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
63035
63036 2003-01-10  Bruno Haible  <bruno@clisp.org>
63037
63038         * lib/alloca_.h: New file.
63039         * lib/getdate.y: Unconditionally include alloca.h.
63040         * lib/makepath.c: Likewise.
63041         * lib/setenv.c: Likewise.
63042         * lib/userspec.c: Likewise.
63043
63044 2003-01-09  Karl Berry  <karl@gnu.org>
63045
63046         * MODULES.html.sh: include `dirname $0` in PATH, to find
63047         gnulib-tool.
63048
63049 2003-01-09  Bruno Haible  <bruno@clisp.org>
63050
63051         * modules/stdbool: Change configure.ac, Makefile.am requirements.
63052         Simplify Include requirements. Add lib/stdbool.h.in to file list.
63053
63054 2003-01-09  Bruno Haible  <bruno@clisp.org>
63055
63056         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
63057
63058 2003-01-09  Bruno Haible  <bruno@clisp.org>
63059
63060         * lib/stdbool.h.in: New file.
63061
63062 2003-01-09  Bruno Haible  <bruno@clisp.org>
63063
63064         * gnulib-tool (func_all_modules): Ignore files ending in ~.
63065         * MODULES.html.sh: Likewise.
63066
63067 2003-01-08  Jim Meyering  <jim@meyering.net>
63068
63069         * lib/full-write.c: Undefine and define-away `const' after inclusion
63070         of errno.h, not before.  Suggestion from Bruno Haible.
63071
63072 2003-01-08  Bruno Haible  <bruno@clisp.org>
63073
63074         * modules/full-read: Depend on full-write.
63075
63076 2003-01-08  Bruno Haible  <bruno@clisp.org>
63077
63078         * lib/safe-read.c: Include specification header first, to ensure its
63079         selfcontainedness.
63080         * lib/full-write.c: Likewise.
63081
63082 2003-01-07  Jim Meyering  <jim@meyering.net>
63083
63084         * lib/full-write.c: Rework so that it may serve to define full_read,
63085         too.
63086         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
63087
63088 2003-01-07  Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/strtoimax.c: Include <stdint.h> as an alternative to
63091         <inttypes.h>.
63092         * lib/xstrtol.h: Likewise.
63093         * lib/xstrtoimax.c: Likewise.
63094         * lib/xstrtoumax.c: Likewise.
63095         * lib/human.h: Likewise.
63096
63097         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
63098         on systems that have <inttypes.h> but not <stdint.h>.
63099
63100 2003-01-07  Bruno Haible  <bruno@clisp.org>
63101
63102         * MODULES.html.sh: Add copyright notice.
63103         (missed_files): Omit CVS directory entries.
63104         (func_module): Make it work with sed-3.02.
63105         * MODULES.txt: Remove file.
63106
63107 2003-01-06  Jim Meyering  <jim@meyering.net>
63108
63109         * lib/version-etc.c: Update year in translatable copyright string.
63110
63111 2003-01-03  Karl Berry  <karl@gnu.org>
63112
63113         * config/config.{guess,sub}: update from prep.
63114
63115 2003-01-02  Karl Berry  <karl@gnu.org>
63116
63117         * doc/COPYING.DOC: belatedly updated to 1.2.
63118
63119 2003-01-01  Karl Berry  <karl@gnu.org>
63120
63121         * gnulib-tool (func_verify_module): report module name $module in
63122         error message, not $1.
63123         * gnulib-tool (create-testdir): don't complain if destdir couldn't
63124         be created, only if it doesn't exist.
63125         * gnulib-tool (last_checkin_date): don't expand the $Date here.
63126
63127 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63128
63129         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
63130
63131 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63132
63133         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
63134         memcmp if strcoll doesn't work.
63135
63136 2002-12-31  Bruno Haible  <bruno@clisp.org>
63137
63138         * lib/utime.c (utime_null): No need to call ftruncate if the file was
63139         nonempty.
63140
63141 2002-12-31  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/memcoll.c (STRCOLL): New macro.
63144         (memcoll): Use it.
63145
63146 2002-12-31  Bruno Haible  <bruno@clisp.org>
63147
63148         * lib/localcharset.h: New file.
63149         * lib/localcharset.c: Include it.
63150         * lib/unicodeio.c: Likewise.
63151
63152 2002-12-31  Bruno Haible  <bruno@clisp.org>
63153
63154         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
63155         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
63156
63157 2002-12-31  Bruno Haible  <bruno@clisp.org>
63158
63159         * lib/getline.h: Include <stddef.h>, for size_t.
63160
63161         * lib/unicodeio.h: Include <stddef.h>, for size_t.
63162         * lib/unicodeio.c: Don't include <stddef.h>.
63163
63164 2002-12-31  Bruno Haible  <bruno@clisp.org>
63165
63166         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
63167         HAVE_TM_ZONE.
63168
63169 2002-12-24  Karl Berry  <karl@gnu.org>
63170
63171         * config/config.guess: update from prep.
63172
63173 2002-12-24  Bruno Haible  <bruno@clisp.org>
63174
63175         General infrasructure.
63176         * m4/README: Rewritten.
63177         * m4/onceonly.m4: New file.
63178         * m4/onceonly_2_57.m4: New file.
63179
63180         Module atexit.
63181         * m4/atexit.m4: New file.
63182
63183         Module strtod.
63184         * m4/strtod.m4: New file.
63185
63186         Module strtol.
63187         * m4/strtol.m4: New file.
63188
63189         Module strtoul.
63190         * m4/strtoul.m4: New file.
63191
63192         Module memchr.
63193         * m4/memchr.m4: New file.
63194
63195         Module memcmp.
63196         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
63197         (jm_FUNC_MEMCMP): Invoke it.
63198
63199         Module memcpy.
63200         * m4/memcpy.m4: New file.
63201
63202         Module memmove.
63203         * m4/memmove.m4: New file.
63204
63205         Module memset.
63206         * m4/memset.m4: New file.
63207
63208         Module strcspn.
63209         * m4/strcspn.m4: New file.
63210
63211         Module strpbrk.
63212         * m4/strpbrk.m4: New file.
63213
63214         Module strstr.
63215         * m4/strstr.m4: New file.
63216
63217         Module strerror.
63218         * m4/strerror.m4: New file.
63219
63220         Module mktime.
63221         * m4/mktime.m4: Renamed from jm-mktime.m4.
63222         (gl_PREREQ_MKTIME): New macro.
63223         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
63224
63225         Module malloc.
63226         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
63227         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
63228         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
63229
63230         Module realloc.
63231         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
63232         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
63233         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
63234
63235         Module strftime.
63236         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
63237         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
63238         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
63239         gl_TM_GMTOFF.
63240         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
63241
63242         Module xalloc.
63243         * m4/xalloc.m4: New file.
63244
63245         Module alloca.
63246         * m4/alloca.m4: New file.
63247
63248         Module putenv.
63249         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
63250         (jm_FUNC_PUTENV): Invoke it.
63251
63252         Module setenv.
63253         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
63254         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
63255         when invoked twice.
63256         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
63257         gt_FUNC_SETENV.
63258
63259         Module memrchr.
63260         * m4/memrchr.m4: New file.
63261
63262         Module stpcpy.
63263         * m4/stpcpy.m4: New file.
63264
63265         Module strcase.
63266         * m4/strcase.m4: New file.
63267
63268         Module strdup.
63269         * m4/strdup.m4: New file.
63270
63271         Module strnlen.
63272         * m4/strnlen.m4: New file.
63273
63274         Module strndup.
63275         * m4/strndup.m4: New file.
63276
63277         Module xstrtod.
63278         * m4/xstrtod.m4: New file.
63279
63280         Module xstrtol.
63281         * m4/xstrtol.m4: New file.
63282
63283         Module getdate.
63284         * m4/getdate.m4: New file.
63285
63286         Module unlocked-io.
63287         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
63288         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
63289         * m4/jm-glibc-io.m4n: Remove file.
63290
63291         Module long-options.
63292         * m4/long-options.m4: New file.
63293
63294         Module md5.
63295         * m4/md5.m4: New file.
63296
63297         Module sha.
63298         * m4/sha.m4: New file.
63299
63300         Module getstr.
63301         * m4/getstr.m4: New file.
63302
63303         Module getline.
63304         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
63305         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
63306         <sys/types.h>, for size_t. Use the function name gnu_getline, not
63307         simply getline. Infoke gl_PREREQ_GETLINE.
63308
63309         Module obstack.
63310         * m4/obstack.m4: New file.
63311
63312         Module hash.
63313         * m4/hash.m4: New file.
63314
63315         Module readtokens.
63316         * m4/readtokens.m4: New file.
63317
63318         Module strverscmp.
63319         * m4/strverscmp.m4: New file.
63320
63321         Module stdbool.
63322         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
63323         OSF/1.
63324
63325         Module strtoll.
63326         * m4/strtoll.m4: New file.
63327
63328         Module strtoull.
63329         * m4/strtoull.m4: New file.
63330
63331         Module strtoimax.
63332         * m4/strtoimax.m4: New file.
63333
63334         Module strtoumax.
63335         * m4/strtoumax.m4: New file.
63336
63337         Module xstrtoimax.
63338         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
63339         jm_AC_PREREQ_XSTRTOIMAX.
63340         Moved the strtol prerequisites to strtol.m4.
63341         Moved the strtoll prerequisites to strtoll.m4.
63342         Moved the strtoimax prerequisites to strtoimax.m4.
63343
63344         Module xstrtoumax.
63345         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
63346         jm_AC_PREREQ_XSTRTOUMAX.
63347         Moved the strtoul prerequisites to strtoul.m4.
63348         Moved the strtoull prerequisites to strtoull.m4.
63349         Moved the strtoumax prerequisites to strtoumax.m4.
63350
63351         Module chown.
63352         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
63353         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
63354
63355         Module dup2.
63356         * m4/dup2.m4: New file.
63357
63358         Module ftruncate.
63359         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
63360         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
63361
63362         Module getgroups.
63363         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
63364         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
63365
63366         Module gettimeofday.
63367         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
63368         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
63369         gl_PREREQ_GETTIMEOFDAY.
63370
63371         Module mkdir.
63372         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
63373         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
63374
63375         Module mkstemp.
63376         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
63377         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
63378         jm_AC_TYPE_UINTMAX_T.
63379         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
63380
63381         Module stat.
63382         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
63383         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
63384
63385         Module lstat.
63386         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
63387         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
63388
63389         Module timespec.
63390         * m4/timespec.m4 (gl_TIMESPEC): New macro.
63391         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
63392         * m4/st_mtim.m4: Indentation.
63393
63394         Module nanosleep.
63395         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
63396         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
63397         gl_PREREQ_NANOSLEEP.
63398
63399         Module regex.
63400         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
63401         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
63402         (gl_REGEX): New macro.
63403
63404         Module rename.
63405         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
63406         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
63407
63408         Module rmdir.
63409         * m4/rmdir.m4: New file.
63410
63411         Module utime.
63412         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
63413         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
63414         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
63415
63416         Module dirname.
63417         * m4/dirname.m4: New file.
63418
63419         Module getopt.
63420         * m4/getopt.m4: New file.
63421
63422         Module unistd-safer.
63423         * m4/unistd-safer.m4: New file.
63424
63425         Module fnmatch.
63426         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
63427         declaration.
63428         (gl_PREREQ_FNMATCH_EXTRA): New macro.
63429         (gl_FUNC_FNMATCH_POSIX): New macro.
63430         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
63431         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
63432         simply fnmatch.
63433
63434         Module exclude.
63435         * m4/exclude.m4: New file.
63436
63437         Module human.
63438         * m4/human.m4: New file.
63439
63440         Module acl.
63441         * m4/acl.m4: Nop.
63442
63443         Module backupfile.
63444         * m4/backupfile.m4: New file.
63445         * m4/d-ino.m4: Indentation.
63446
63447         Module fsusage.
63448         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
63449         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
63450         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
63451
63452         Module dirfd.
63453         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
63454         requirements.
63455
63456         Module euidaccess.
63457         * m4/euidaccess.m4: New file.
63458
63459         Module file-type.
63460         * m4/file-type.m4: New file.
63461
63462         Module fileblocks.
63463         * m4/fileblocks.m4: New file.
63464
63465         Module filemode.
63466         * m4/filemode.m4: New file.
63467
63468         Module isdir.
63469         * m4/isdir.m4: New file.
63470
63471         Module lchown.
63472         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
63473         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
63474
63475         Module makepath.
63476         * m4/makepath.m4: New file.
63477
63478         Module modechange.
63479         * m4/modechange.m4: New file.
63480
63481         Module mountlist.
63482         * m4/mountlist.m4: New file.
63483         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
63484         Indentation.
63485
63486         Module path-concat.
63487         * m4/path-concat.m4: New file.
63488
63489         Module pathmax.
63490         * m4/pathmax.m4: New file.
63491
63492         Module same.
63493         * m4/same.m4: New file.
63494
63495         Module save-cwd.
63496         * m4/save-cwd.m4: New file.
63497
63498         Module savedir.
63499         * m4/savedir.m4: New file.
63500
63501         Module xgetcwd.
63502         * m4/xgetcwd.m4: New file.
63503         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
63504
63505         Module xreadlink.
63506         * m4/xreadlink.m4: New file.
63507
63508         Module safe-read.
63509         * m4/safe-read.m4: New file.
63510
63511         Module safe-write.
63512         * m4/safe-write.m4: New file.
63513
63514         Module closeout.
63515         * m4/closeout.m4: New file.
63516
63517         Module stdio-safer.
63518         * m4/stdio-safer.m4: New file.
63519
63520         Module getpass.
63521         * m4/getpass.m4: New file.
63522
63523         Module getugroups.
63524         * m4/getugroups.m4: New file.
63525
63526         Module group-member.
63527         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
63528         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
63529
63530         Module idcache.
63531         * m4/idcache.m4: New file.
63532
63533         Module userspec.
63534         * m4/userspec.m4: New file.
63535
63536         Module gettime.
63537         * m4/clock_time.m4: New file.
63538         * m4/gettime.m4: New file.
63539
63540         Module settime.
63541         * m4/settime.m4: New file.
63542
63543         Module posixtm.
63544         * m4/posixtm.m4: New file.
63545
63546         Module gethostname.
63547         * m4/gethostname.m4: New file.
63548
63549         Module canon-host.
63550         * m4/canon-host.m4: New file.
63551
63552         Module gettext.
63553         * m4/codeset.m4: New file, from gettext-0.11.5.
63554         * m4/gettext.m4: New file, from gettext-0.11.5.
63555         * m4/glibc21.m4: New file, from gettext-0.11.5.
63556         * m4/iconv.m4: New file, from gettext-0.11.5.
63557         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63558         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63559         * m4/inttypes.m4: New file, from gettext-0.11.5.
63560         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63561         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63562         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63563         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63564         * m4/lib-link.m4: New file, from gettext-0.11.5.
63565         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63566         * m4/progtest.m4: New file, from gettext-0.11.5.
63567         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63568         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63569         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63570
63571         Module localcharset.
63572         * m4/localcharset.m4: New file.
63573
63574         Module hard-locale.
63575         * m4/hard-locale.m4: New file.
63576
63577         Module mbswidth.
63578         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63579         onceonly macros.
63580         * m4/mbrtowc.m4: Add comment.
63581
63582         Module memcasecmp.
63583         * m4/memcasecmp.m4: New file.
63584
63585         Module memcoll.
63586         * m4/memcoll.m4: New file.
63587
63588         Module unicodeio.
63589         * m4/unicodeio.m4: New file.
63590
63591         Module rpmatch.
63592         * m4/rpmatch.m4: New file.
63593
63594         Module yesno.
63595         * m4/yesno.m4: New file.
63596
63597         Module exitfail.
63598         * m4/exitfail.m4: New file.
63599
63600         Module c-stack.
63601         * m4/c-stack.m4 (gl_C_STACK): New macro.
63602         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63603
63604         Module error.
63605         * m4/error.m4 (gl_ERROR): New macro.
63606         (jm_PREREQ_ERROR): Use onceonly macros.
63607
63608         Module fatal.
63609         * m4/fatal.m4: New file.
63610
63611         Module getloadavg.
63612         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63613         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63614
63615         Module getpagesize.
63616         * m4/getpagesize.m4: New file.
63617
63618         Module getusershell.
63619         * m4/getusershell.m4: New file.
63620
63621         Module physmem.
63622         * m4/physmem.m4: New file.
63623
63624         Module posixver.
63625         * m4/posixver.m4: New file.
63626
63627         Module quotearg.
63628         * m4/quotearg.m4: New file.
63629
63630         Module quote.
63631         * m4/quote.m4: New file.
63632
63633         Module readutmp.
63634         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63635
63636         Module sig2str.
63637         * m4/sig2str.m4: New file.
63638
63639         Other.
63640         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63641         ulonglong.m4.
63642         * m4/intmax_t.m4: New file.
63643         * m4/d-type.m4: Indentation.
63644         * m4/jm-macros.m4: Update.
63645         * m4/prereq.m4 (jm_PREREQ): Update.
63646         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63647         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63648         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63649         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63650         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63651         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63652         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63653         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63654         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63655         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63656         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63657         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63658         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63659         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63660         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63661         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63662         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63663         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63664         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63665
63666 2002-12-24  Bruno Haible  <bruno@clisp.org>
63667
63668         * MODULES.txt: Update according to m4/ changes.
63669
63670         Module gettext.
63671         * config.rpath: New file, from gettext-0.11.5.
63672
63673         * modules/*: New module descriptions.
63674         * gnulib-tool: New file.
63675         * MODULES.html.sh: New file.
63676
63677 2002-12-21  Karl Berry  <karl@gnu.org>
63678
63679         * doc/fdl.texi: update to version 1.2.
63680
63681 2002-12-19  Karl Berry  <karl@gnu.org>
63682
63683         * config/config.guess: update from prep.
63684
63685 2002-12-18  Bruno Haible  <bruno@clisp.org>
63686
63687         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63688         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63689
63690 2002-12-17  Bruno Haible  <bruno@clisp.org>
63691
63692         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63693         stdlib.h, string.h.
63694
63695 2002-12-17  Bruno Haible  <bruno@clisp.org>
63696
63697         * lib/canon-host.c (strdup): Remove unused declaration.
63698
63699         * lib/fsusage.c: Include full_read.h.
63700         (get_fs_usage): Use full_read instead of safe_read.
63701
63702         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63703
63704 2002-12-12  Karl Berry  <karl@gnu.org>
63705
63706         * config/config.guess: update from prep.
63707
63708 2002-12-11  Bruno Haible  <bruno@clisp.org>
63709
63710         * m4/setenv.m4: New file, from gettext-0.11.5.
63711
63712 2002-12-11  Bruno Haible  <bruno@clisp.org>
63713
63714         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63715         not unsetenv().
63716         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63717         modifications:
63718
63719         2002-12-11  Bruno Haible  <bruno@clisp.org>
63720
63721                 * setenv.c (alloca): Fall back to malloc.
63722                 (freea): New macro.
63723                 (setenv): Use freea() to free memory allocated with alloca().
63724
63725         2002-11-13  Bruno Haible  <bruno@clisp.org>
63726
63727                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
63728                 function declarations.
63729                 * unsetenv.c (unsetenv): Likewise.
63730
63731         2002-03-04  Bruno Haible  <bruno@clisp.org>
63732
63733                 Portability to AIX 4.3.3.
63734                 * unsetenv.c: New file, extracted from setenv.c.
63735                 * setenv.c: Move the unsetenv() function to unsetenv.c.
63736
63737         2001-12-20  Bruno Haible  <bruno@clisp.org>
63738
63739                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
63740                 use malloc instead. For SunOS 4.
63741
63742         2001-12-11  Bruno Haible  <bruno@clisp.org>
63743
63744                 * setenv.c: Declare alloca.
63745                 (compar_fn_t): New typedef.
63746                 (KNOWN_VALUE, STORE_VALUE): Use it.
63747
63748         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
63749         setenv.h.
63750
63751 2002-12-10  Paul Eggert  <eggert@twinsun.com>
63752
63753         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
63754         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
63755         Choose values that are less likely to collide with system fnmatch
63756         options.
63757         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
63758         defined (e.g., a pure POSIX system).
63759         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
63760         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
63761
63762 2002-12-06  Paul Eggert  <eggert@twinsun.com>
63763
63764         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
63765         a pain in practice to deal with generated m4 files.  This change
63766         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
63767
63768         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
63769         and jm-glibc-io.m4, as they are no longer a special case.
63770         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
63771         kludge and the auto-generation stuff.  Check only whether the
63772         functions are declared, not whether they exist, since older hosts
63773         that don't declare the functions can't use the optimization anyway.
63774
63775 2002-12-06  Jim Meyering  <jim@meyering.net>
63776
63777         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
63778
63779         Merge in changes from libc's misc/error.c, in preparation
63780         for the merge of gnulib's changes back into libc.
63781
63782         * lib/error.c (_): Define only if not already defined.
63783         Move definition to follow all #include directives.
63784         Include unlocked-io.h only if !_LIBC.
63785         [_LIBC]: Include <libio/libioP.h>.
63786         [USE_IN_LIBIO]: Include <libio/iolibio.h>
63787         (fflush): Tweak definition to use INTUSE.
63788         (putc): Define.
63789
63790 2002-12-05  Paul Eggert  <eggert@twinsun.com>
63791
63792         * lib/alloca.c [defined emacs]: Include "lisp.h".
63793         (xalloc_die) [defined emacs]: New macro.
63794         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
63795         [! defined emacs]: Include <xalloc.h>.
63796         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
63797         (pointer): Typedef to POINTER_TYPE *.
63798         (malloc): Remove decl; we now always use xmalloc.
63799         (alloca): Use old-style definition, since Emacs needs this.
63800         Check for arithmetic overflow when computing combined size.
63801
63802 2002-12-04  Paul Eggert  <eggert@twinsun.com>
63803
63804         Do not generate unlocked-io.h automatically, since it's easier to
63805         maintain it by hand.
63806
63807         * lib/unlocked-io.h: New file, from GNU diffutils,
63808         but with proper copyright notice and attribution.
63809         * lib/gen-uio: Remove.
63810         * lib/Makefile.am: Add copyright notice.
63811         (libfetish_a_SOURCES): Add unlocked-io.h.
63812         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
63813         (DISTCLEANFILES, io_functions): Remove macros.
63814         (EXTRA_DIST): Remove gen_uio.
63815         (unlocked-io.h): Remove rule.
63816
63817 2002-12-04  Jim Meyering  <jim@meyering.net>
63818
63819         Reflect the fact that stat.c and lstat.c are no longer generated.
63820         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
63821         (DISTCLEANFILES): Likewise.
63822         (EXTRA_DIST): Likewise.
63823         (all_local): Don't depend on stat.c or lstat.c.
63824         (stat.c, lstat.c): Remove rules.
63825         (EXTRA_DIST): Remove xstat.in.
63826
63827         * lib/xstat.in: Remove file.  Contents moved into stat.c.
63828         * lib/stat.c: New file.  Contents mostly from xstat.in.
63829         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
63830         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
63831
63832         * lib/safe-read.c: Rework so that it may serve to define safe_write,
63833         too.
63834         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
63835
63836 2002-12-03  Jim Meyering  <jim@meyering.net>
63837
63838         * lib/safe-read.c, safe-write.c: Change variable names and comments,
63839         but not semantics, to minimize the differences between these two files.
63840         (safe_read): Change comment to mention SAFE_READ_ERROR.
63841
63842         * lib/safe-read.c (IS_EINTR): Define.
63843         (safe_read): Use IS_EINTR in place of in-function cpp directives.
63844
63845 2002-12-02  Jim Meyering  <jim@meyering.net>
63846
63847         * lib/safe-read.c (EINTR): Define.
63848         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63849         (INT_MAX): Provide fallback.
63850         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
63851
63852         * lib/safe-read.h (SAFE_READ_ERROR): Define.
63853
63854 2002-12-02  Bruno Haible  <bruno@clisp.org>
63855
63856         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
63857         Define, taken from safe-read.c.
63858         (INT_MAX): Provide fallback.
63859         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
63860         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
63861
63862         * lib/safe-read.c (EINTR): Remove definition.
63863         (safe_read): Don't use EINTR if it is absent.
63864
63865 2002-12-01  Jim Meyering  <jim@meyering.net>
63866
63867         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
63868         zero.
63869         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
63870
63871 2002-11-27  Paul Eggert  <eggert@twinsun.com>
63872
63873         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
63874         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
63875         with `if (! (value < limit)) abort ();', for readability.
63876
63877 2002-11-26  Karl Berry  <karl@gnu.org>
63878
63879         * lib/strdup.c: copy from libc again, with jim's ok.
63880         * lib/.cppi-disable: re-add strdup.c
63881
63882 2002-11-25  Karl Berry  <karl@gnu.org>
63883
63884         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
63885         instead of "strtol.c".
63886
63887 2002-11-25  Karl Berry  <karl@gnu.org>
63888
63889         * config/install-sh: update from automake for variable quoting, $0 in
63890         error msgs, etc.
63891
63892         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
63893         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
63894         entry.
63895
63896 2002-11-25  Jim Meyering  <jim@meyering.net>
63897
63898         * lib/mktime.c: Sync from libc, now that it has the latest fix.
63899
63900 2002-11-24  Karl Berry  <karl@gnu.org>
63901
63902         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
63903         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
63904
63905 2002-11-24  Jim Meyering  <jim@meyering.net>
63906
63907         Update from coreutils:
63908
63909         * lib/mktime.c: Merge in changes from libc.
63910
63911         Avoid a link-time failure on some Linux systems.
63912         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
63913         (otherwise).
63914         (__mon_yday): Declare with the STATIC attribute.
63915         (__mktime_internal): Likewise.
63916         Based on a report from Greg Schafer.
63917
63918 2002-11-23  Jim Meyering  <jim@meyering.net>
63919
63920         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
63921         Use `unsigned', not `int', as type of index.
63922
63923         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
63924
63925         * lib/fsusage.c: Remove unneeded parentheses around operands of
63926         `defined'.
63927
63928 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63929
63930         * lib/quotearg.h: Allow multiple inclusion by surrounding with
63931         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
63932         so that we can be included first.
63933         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
63934         * lib/quotearg.c: Include quotearg.h immediately after config.h.
63935         No need to include stddef.h or sys/types.h any more.
63936         Surround local include files with "", not "<>".
63937         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
63938         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
63939         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
63940         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
63941         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
63942         (ISPRINT): Remove; no longer needed now that we assume C89.
63943
63944         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
63945         Preserve errno.
63946
63947         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
63948         quotearg_char): Use SIZE_MAX rather than
63949         (size_t) -1 when we are talking about "infinity".
63950
63951         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
63952
63953 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63954
63955         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
63956         hint that one should use `if (! x) abort ();' rather than `assert
63957         (x);', and anyway it's one less thing to worry about configuring.
63958         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
63959         hash_rehash, hash_insert): Use abort rather than assert.
63960
63961 2002-11-22  Bruno Haible  <bruno@clisp.org>
63962
63963         * lib/safe-read.h: Assume C89. Add comments.
63964         (safe_read): Change return type to size_t.
63965         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
63966         byte counts > SSIZE_MAX correctly.
63967         * lib/safe-write.h: New file.
63968         * lib/safe-write.c: New file.
63969         * lib/full-read.h: New file.
63970         * lib/full-read.c: New file.
63971         * lib/full-write.h: Assume C89. Add comments.
63972         * lib/full-write.c: Include safe-write.h.
63973         (full_write): Rewritten to use safe_write.
63974         Suggested by Jim Meyering and Paul Eggert.
63975
63976 2002-11-21  Jim Meyering  <jim@meyering.net>
63977
63978         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
63979
63980         Merge in changes from the coreutils.
63981
63982         2002-09-25  Paul Eggert  <eggert@twinsun.com>
63983         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
63984         <stdint.h>.
63985         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
63986         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
63987         int.  Work more efficiently if X is the same width as uintmax_t.
63988         Do not compare X to -1, to avoid bogus compiler warning.
63989         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
63990         Don't assume that f_frsize and f_bsize are the same type.
63991
63992         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
63993         warning on FreeBSD.
63994
63995         * lib/makepath.c (make_path): Restore umask *before* creating the final
63996         component.
63997         (make_path): Minor reformatting.
63998
63999         * lib/xmalloc.c: Adjust to work with new autoconf macros,
64000         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
64001         HAVE_MALLOC/HAVE_REALLOC.
64002
64003         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
64004         dummy ones.  At least on GNU/Linux systems, `auto' means something
64005         else.
64006         From Michael Stone.
64007
64008 2002-11-21  Bruno Haible  <bruno@clisp.org>
64009
64010         Remove case insensitive option matching.
64011         * lib/argmatch.h (argcasematch): Remove declaration.
64012         (ARGCASEMATCH): Remove macro.
64013         (__xargmatch_internal): Remove case_sensitive argument.
64014         (XARGMATCH): Update.
64015         (XARGCASEMATCH): Remove macro.
64016         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
64017         case_sensitive argument.
64018         (argcasematch): Remove function.
64019         (__xargmatch_internal): Remove case_sensitive argument.
64020         (main): Use XARGMATCH instead of XARGCASEMATCH.
64021
64022         * lib/xmalloc.c: Change compile-time error message. Add comment about
64023         required autoconf version.
64024
64025 2002-11-20  Paul Eggert  <eggert@twinsun.com>
64026
64027         Merge argmatch cleanups from Bison.  Assume C89.
64028
64029         * lib/argmatch.c: Include config.h here, not in argmatch.h.
64030         Include stdlib.h, for EXIT_FAILURE.
64031         Always include <string.h>, since we assume C89.
64032         (EXIT_FAILURE): Remove pre-C89 bug workaround.
64033         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
64034         Include <stddef.h> instead, since it's all we need for size_t.
64035         (PARAMS): Remove.  All uses removed.
64036         (ARRAY_CARDINALITY): Do not bother to #undef.
64037         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
64038         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64039         Remove unnecessary parentheses.
64040         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64041         Insert necessary parentheses.
64042         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
64043         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
64044
64045 2002-11-19  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
64048         * lib/mbswidth.h: Include <stddef.h>, for size_t.
64049
64050         * lib/mbswidth.h (PARAMS): Remove macro.
64051         (mbswidth, mbsnwidth): Use ANSI C function declarations.
64052         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
64053
64054         * lib/gcd.h (PARAMS): Remove macro.
64055         (gcd): Use ANSI C function declarations.
64056         * lib/gcd.c (gcd): Likewise.
64057
64058 2002-11-15  Bruno Haible  <bruno@clisp.org>
64059
64060         * lib/strcspn.c: Include <stddef.h>.
64061         (strcspn): Use ANSI C function declaration. Change return type to
64062         size_t. Use NULL.
64063         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
64064         (strpbrk): Use NULL.
64065         * lib/strpbrk.h (PARAMS): Remove macro.
64066         (strpbrk): Use ANSI C function declaration.
64067         * lib/strstr.c: Don't include <sys/types.h>.
64068         * lib/strstr.h (PARAMS): Remove macro.
64069         (strstr): Use ANSI C function declarations.
64070
64071 2002-11-14  Karl Berry  <karl@gnu.org>
64072
64073         * config/mkinstalldirs: `do' on separate line, instead of
64074         `for var; do'.
64075
64076 2002-11-06  Bruno Haible  <bruno@clisp.org>
64077
64078         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
64079         * lib/gcd.c (gcd): Likewise.
64080
64081 2002-11-05  Bruno Haible  <bruno@clisp.org>
64082
64083         * lib/gcd.h: New file, from gettext-0.11.5.
64084         * lib/gcd.c: New file, from gettext-0.11.5.
64085
64086 2002-11-05  Bruno Haible  <bruno@clisp.org>
64087
64088         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64089         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64090         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64091         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64092
64093         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
64094         <libintl.h>.
64095         * lib/makepath.c: Include gettext.h instead of <locale.h> and
64096         <libintl.h>.
64097
64098         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
64099         * lib/human.c: Include gettext.h instead of <libintl.h>.
64100         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
64101         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
64102         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
64103         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
64104         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
64105         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
64106         (textdomain): Remove definition.
64107         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
64108
64109         * lib/long-options.c: Remove include of <libintl.h> and definition of
64110         _.
64111         * lib/same.c: Remove include of <libintl.h> and definition of _.
64112
64113 2002-11-04  Owen Taylor  <otaylor@redhat.com>
64114
64115         * lib/config.charset: A few additions for Solaris.
64116
64117 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64118
64119         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
64120         * lib/localcharset.c (locale_charset): Declare as extern "C".
64121
64122 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64123
64124         * lib/config.charset: msdos in uk_UA uses CP1125.
64125
64126 2002-11-04  Bruno Haible  <bruno@clisp.org>
64127
64128         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
64129         * lib/strcase.h: New file, from GNU gettext-0.11.5.
64130         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
64131         * lib/strstr.h: New file, from GNU gettext-0.11.5.
64132         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
64133
64134 2002-11-04  Bruno Haible  <bruno@clisp.org>
64135
64136         * lib/localcharset.c (locale_charset): Don't return an empty string.
64137
64138 2002-11-04  Bruno Haible  <bruno@clisp.org>
64139
64140         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
64141         aliases.
64142
64143 2002-11-04  Bruno Haible  <bruno@clisp.org>
64144
64145         * lib/config.charset: Update for newest glibc. Add canonical names
64146         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
64147
64148 2002-11-04  Bruno Haible  <bruno@clisp.org>
64149
64150         * lib/config.charset: Add support for NetBSD.
64151
64152 2002-11-04  Bruno Haible  <bruno@clisp.org>
64153
64154         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
64155
64156 2002-11-01  Bruno Haible  <bruno@clisp.org>
64157
64158         * configure.in: Add AC_CONFIG_AUX_DIR call.
64159         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
64160         test/Makefile.
64161         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
64162
64163 2002-09-28  Karl Berry  <karl@gnu.org>
64164
64165         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
64166         installed automake until the next release, since changes have been
64167         made.
64168
64169 2002-09-25  Karl Berry  <karl@gnu.org>
64170
64171         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
64172         * lib/getopt*: copy from libc/posix.
64173         * lib/gettext.h: copy from gettext.
64174         * lib/.cppi-disable: add strdup.c, gettext.h.
64175
64176 2002-09-25  Karl Berry  <karl@gnu.org>
64177
64178         * config/srclist.txt: enable gettext.h check.
64179         * config/config.{guess,sub}: update from prep.
64180         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
64181                 from automake 1.6.3.
64182         See srclist*.
64183
64184 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
64185
64186         * regex.c (PATFETCH): Remove the translating fetch.
64187         (PATFETCH_RAW): Rename to PATFETCH.
64188         (set_image_of_range): New fun.
64189         (SET_RANGE_TABLE_WORK_AREA): Use it.
64190         (regex_compile): Don't translate the pattern chars so eagerly.
64191         Only do it when inserting an `exactn' bytecode or when handling
64192         a char-range.
64193         (mutually_exclusive_p): Avoid empty statement.
64194
64195 2002-07-06  Jim Meyering  <meyering@lucent.com>
64196
64197         * m4/README: Don't mention Makefile.am.in.
64198         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
64199
64200 2002-07-01  Jim Meyering  <meyering@lucent.com>
64201
64202         * lib/c-stack.c: Include sys/time.h.
64203         From Volker Borchert.
64204
64205 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64206
64207         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
64208
64209 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64210
64211         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
64212         New macro.  Use it uniformly instead of
64213         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
64214         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
64215         reported by Vin Shelton.
64216
64217 2002-06-22  Paul Eggert  <eggert@twinsun.com>
64218
64219         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
64220         Do not assume SA_SIGINFO behavior.
64221         Bug reported by Jim Meyering on NetBSD 1.5.2.
64222
64223 2002-06-22  Jim Meyering  <meyering@lucent.com>
64224
64225         * m4/c-stack.m4: New file, from diffutils-2.8.2.
64226         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
64227
64228         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
64229         now that configure.ac uses AC_GNU_SOURCE.
64230         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
64231         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
64232
64233         Update to latest tools.  Suggestions from Paul Eggert.
64234         * m4/stdbool.m4: New file, from diffutils-2.8.2.
64235         * m4/gnu-source.m4: Update from diffutils-2.8.2.
64236         * m4/fnmatch.m4: Likewise.
64237         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
64238         to AC_HEADER_STDBOOL
64239
64240 2002-06-22  Jim Meyering  <meyering@lucent.com>
64241
64242         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
64243         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
64244
64245 2002-06-22  Jim Meyering  <meyering@lucent.com>
64246
64247         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
64248
64249         * lib/exitfail.c, exitfail.h: Likewise.
64250         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
64251
64252         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
64253         of fnmatch.h.
64254         (EXTRA_DIST): Add fnmatch_loop.c.
64255         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
64256
64257         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
64258         * lib/fnmatch.c: Update from diffutils-2.8.2.
64259         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
64260         * lib/fnmatch.h: Remove file.
64261
64262 2002-06-21  Jim Meyering  <meyering@lucent.com>
64263
64264         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
64265         * m4/mbrtowc.m4: Likewise.
64266
64267         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
64268         * m4/mbswidth.m4: Reflect name change:
64269         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
64270         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
64271
64272         * m4/lib-link.m4: Update from gettext-0.11.2.
64273         * m4/gettext.m4: Likewise.
64274
64275         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
64276         From Alfred M. Szmidt.
64277
64278 2002-06-18  Paul Eggert  <eggert@twinsun.com>
64279
64280         * lib/file-type.h: Report an error if neither S_ISREG nor
64281         S_IFREG is defined, instead of using a test specific to glibc
64282         2.2.  This should be safe, since POSIX requires S_ISREG and
64283         Unix Version 7 had S_IFREG.  We don't need to check for
64284         <sys/types.h> since we don't use any symbols that it defines.
64285
64286 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
64287
64288         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
64289         $@-t, so that each temporary file name is unique and valid in the first
64290         8 characters, for operation under DOS.
64291
64292 2002-06-15  Paul Eggert  <eggert@twinsun.com>
64293
64294         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
64295
64296 2002-06-15  Jim Meyering  <meyering@lucent.com>
64297
64298         Work even with DJGPP 2.03, which lacks support for symlinks.
64299         From Richard Dawe.
64300         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
64301         is defined.
64302         * lib/lchown.c (S_ISLNK): Likewise.
64303
64304 2002-06-15  Jim Meyering  <meyering@lucent.com>
64305
64306         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
64307         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
64308         have been included before this file.
64309
64310 2002-06-14  Jim Meyering  <meyering@lucent.com>
64311
64312         * lib/file-type.h: Use the version from diffutils-2.8.2.
64313         * lib/file-type.c: Likewise.
64314
64315 2002-06-07  Jim Meyering  <meyering@lucent.com>
64316
64317         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
64318         They're needed at least for NetBSD 1.5.2.
64319         ($statxfs_includes): Include those same headers.
64320         ($statxfs_includes): Include sys/vfs.h if available.
64321         ($statxfs_includes): Likewise for sys/statvfs.h.
64322         Check for the following members in both structs statfs and statvfs:
64323         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
64324
64325 2002-06-01  Jim Meyering  <meyering@lucent.com>
64326
64327         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
64328         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
64329
64330 2002-05-28  Jim Meyering  <meyering@lucent.com>
64331
64332         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
64333         Reported by Volker Borchert.
64334
64335 2002-05-27  Jim Meyering  <meyering@lucent.com>
64336
64337         Fix a problem seen only on nonconforming systems whereby ls.c's
64338         use of localtime, and then of gettimeofday would cause trouble:
64339         the localtime call used to initialize rpl_gettimeofday's save
64340         mechanism would clobber ls's current local time information so
64341         that in any long listing the first file would always be listed
64342         with date 1970-01-01.  Analysis by Volker Borchert.
64343
64344         * lib/gettimeofday.c (localtime): Undefine.
64345         (rpl_localtime): New function.
64346
64347 2002-05-27  Jim Meyering  <meyering@lucent.com>
64348
64349         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
64350         localtime.
64351
64352         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
64353         use the replacement function; it wouldn't resolve at link time.
64354         Reported by Volker Borchert.
64355
64356 2002-05-22  Jim Meyering  <meyering@lucent.com>
64357
64358         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
64359         file-type.h.
64360         * lib/file-type.h: New file.
64361         * lib/file-type.c (file_type): New file/function.  Extracted from
64362         diffutils.
64363
64364 2002-04-30  Jim Meyering  <meyering@lucent.com>
64365
64366         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
64367
64368 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64369
64370         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
64371
64372 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64373
64374         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
64375         Do not check for alloca.h (no longer used) or stdbool.h (was never
64376         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
64377
64378 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64379
64380         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
64381
64382 2002-04-29  Jim Meyering  <meyering@lucent.com>
64383
64384         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
64385         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
64386         Use AC_FUNC_STRNLEN here instead.
64387
64388         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
64389         With autoconf-2.53a, it's part of AC_PROG_CC.
64390
64391 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64392
64393         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
64394         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
64395
64396 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64397
64398         * lib/sig2str.h, lib/sig2str.c: New files.
64399         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
64400
64401 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64402
64403         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
64404         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
64405         of 127, since 64 is the largest conceivable number for ancient
64406         nonstandard hosts.
64407         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
64408
64409 2002-04-28  Jim Meyering  <meyering@lucent.com>
64410
64411         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
64412
64413 2002-04-24  Jim Meyering  <meyering@lucent.com>
64414
64415         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
64416         (jm_PREREQ): Use it.
64417
64418         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
64419         mach/mach.h fcntl.h.
64420         Check for this function: setlocale.
64421
64422 2002-04-24  Jim Meyering  <meyering@lucent.com>
64423
64424         * lib/gettext.h: New file, from Gettext.
64425         * lib/Makefile.am (INCLUDES): Remove -I../intl.
64426         (libfetish_a_SOURCES): Add gettext.h.
64427
64428 2002-04-16  Jim Meyering  <meyering@lucent.com>
64429
64430         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
64431         ut_pid, ut_id, ut_exit.
64432
64433 2002-04-16  Jim Meyering  <meyering@lucent.com>
64434
64435         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
64436         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
64437         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
64438
64439 2002-04-12  Jim Meyering  <meyering@lucent.com>
64440
64441         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
64442         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
64443         existence of the getmntinfo function.  Needed for Darwin 5.3.
64444
64445         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
64446         This is necessary at least on Darwin 5.3.
64447
64448         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
64449         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
64450         strnlen.o in the library, and that makes some versions of ranlib
64451         object.
64452
64453 2002-04-12  Jim Meyering  <meyering@lucent.com>
64454
64455         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
64456
64457 2002-04-09  Jim Meyering  <meyering@lucent.com>
64458
64459         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
64460         to be more precise.  Rather than saying we're checking whether the
64461         function `works', say what we're testing.
64462         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
64463         Reported by Bruno Haible.
64464
64465 2002-03-10  Jim Meyering  <meyering@lucent.com>
64466
64467         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
64468         Suggestion from Santiago Vila.
64469
64470 2002-03-08  Jim Meyering  <meyering@lucent.com>
64471
64472         * lib/rename.c: Mention that this wrapper is needed also on
64473         mips-dec-ultrix4.4 systems.
64474
64475 2002-03-02  Jim Meyering  <meyering@lucent.com>
64476
64477         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
64478         not HAVE_CLOCK_SETTIME.
64479
64480 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64481
64482         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
64483         Check for clock_settime.
64484
64485 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64486
64487         * lib/nanosleep.h: Rename to....
64488         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
64489
64490         * lib/gettime.c: New file.
64491         * lib/settime.c: New file.
64492         * lib/stime.c: Remove.
64493
64494         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
64495         timespec.h.  Remove nanosleep.h.
64496
64497 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64498
64499         * m4/acl.m4: New file.
64500         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
64501         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
64502
64503 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64504
64505         * lib/acl.c, lib/acl.h: New files.
64506         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
64507
64508 2002-02-24  Jim Meyering  <meyering@lucent.com>
64509
64510         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
64511         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
64512         cause trouble.  Reported by Nelson Beebe.
64513
64514 2002-02-23  Paul Eggert  <eggert@twinsun.com>
64515
64516         * lib/path-concat.c (xpath_concat): Reorder code to pacify
64517         compilers that don't know that xalloc_die never returns.
64518
64519 2002-02-20  Jim Meyering  <meyering@lucent.com>
64520
64521         * lib/getdate.c: Regenerate using bison-1.33.
64522
64523 2002-02-17  Jim Meyering  <meyering@lucent.com>
64524
64525         * config/config.guess (main): Don't use `head -1'; it's no longer
64526         portable. Use `sed 1q' instead.
64527
64528 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
64529
64530         * m4/codeset.m4: Upgrade to gettext-0.11.
64531         * m4/gettext.m4: Upgrade to gettext-0.11.
64532         * m4/glibc21.m4: Upgrade to gettext-0.11.
64533         * m4/iconv.m4: Upgrade to gettext-0.11.
64534         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64535         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64536         * m4/lib-ld.m4: New file, from gettext-0.11.
64537         * m4/lib-link.m4: New file, from gettext-0.11.
64538         * m4/lib-prefix.m4: New file, from gettext-0.11.
64539         * m4/progtest.m4: Upgrade to gettext-0.11.
64540
64541 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64542
64543         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64544         (jm_PREREQ): Use it.
64545
64546 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64547
64548         * lib/posixver.c, lib/posixver.h: New files.
64549         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64550
64551 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64552             Bruno Haible  <bruno@clisp.org>
64553
64554         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64555         (fwrite_success_callback): New declaration.
64556         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64557         print_unicode_char. Call failure callback instead of error.
64558         (fwrite_success_callback): New function.
64559         (exit_failure_callback): New function.
64560         (fallback_failure_callback): New function.
64561         (print_unicode_char): Call unicode_to_mb.
64562
64563 2002-01-26  Jim Meyering  <meyering@lucent.com>
64564
64565         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64566         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64567
64568 2002-01-26  Jim Meyering  <meyering@lucent.com>
64569
64570         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64571
64572 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64573
64574         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64575
64576 2002-01-22  Jim Meyering  <meyering@lucent.com>
64577
64578         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64579         Otherwise, some versions of automake would omit the rule that makes
64580         Makefile from Makefile.in.
64581
64582 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64583
64584         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64585         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64586         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64587         (memcoll): Set errno to zero if there is no error.
64588
64589         * lib/quotearg.c (quotearg_buffer_restyled):
64590         Fix bug with quoting buffers containing NUL when backslashing escapes.
64591         This bug was exposed by the other changes in this patch.
64592         (quotearg_n_options): New arg ARGSIZE.
64593         All callers changed.
64594         (quoting_options_from_style): New function.
64595         (quotearg_n_style): Use it.
64596         (quotearg_n_style_mem): New function.
64597
64598         * lib/quotearg.h (quotearg_n_style_mem): New function.
64599
64600 2002-01-19  Jim Meyering  <meyering@lucent.com>
64601
64602         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64603         Remove useless quotes: DF_PROG="df".
64604         * m4/strnlen.m4: New file.
64605
64606 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64607
64608         * lib/backupfile.c (ISDIGIT): Comment fix.
64609         * lib/getdate.y (ISDIGIT): Likewise.
64610         * lib/posixtm.c (ISDIGIT, year): Likewise.
64611         * lib/strverscmp.c (ISDIGIT): Likewise.
64612         * lib/userspec.c (ISDIGIT): Likewise.
64613
64614 2002-01-16  Jim Meyering  <meyering@lucent.com>
64615
64616         * lib/getdate.y: Add three semicolons, each just before a closing
64617         brace. Bison (as of version 1.31) no longer papers over that mistake.
64618
64619 2002-01-05  Jim Meyering  <meyering@lucent.com>
64620
64621         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64622
64623 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64624
64625         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64626         not silently exit merely because the output buffer happens to
64627         have nothing pending.
64628
64629 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64630
64631         See the big note in ../ChangeLog.
64632         * lib/human.c (suffixes): Prefer K to k for 1024.
64633         (generate_suffix_backwards): New function.
64634         (human_readable_inexact): Use it.
64635         * lib/xstrtol.c (__xstrtol): If there is no number but there
64636         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64637         Accept 'K' as well as 'k'.
64638
64639 2001-12-15  Jim Meyering  <meyering@lucent.com>
64640
64641         * lib/regex.h (__restrict_arr): Update from libc.
64642
64643         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64644         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64645         (STREQ): Define.
64646
64647 2001-12-14  Jim Meyering  <meyering@lucent.com>
64648
64649         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64650         Suggestion from Bruno Haible.
64651
64652 2001-12-10  Jim Meyering  <meyering@lucent.com>
64653
64654         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64655         xrealloc, Instead, include "xalloc.h".
64656         (initbuffer): Don't cast xmalloc return value to char*.
64657         (readline): Reword comment.
64658         Don't cast xrealloc return value to char*
64659         Return NULL, not 0.
64660
64661 2001-12-09  Jim Meyering  <meyering@lucent.com>
64662
64663         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64664         about `signed and unsigned type in conditional expression'.
64665         * lib/posixtm.c (posix_time_parse): Likewise.
64666
64667         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64668
64669         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64670         to avoid a pedantic warning.
64671
64672         * lib/getstr.c: Don't include assert.h.
64673         (getstr): Remove warning-evoking assertions.
64674         Return -1 if offset parameter is out of bounds.
64675         Change the type of a local from int to size_t.
64676
64677         * lib/strftime.c (my_strftime_localtime_r): Include this function
64678         definition in the `#if ! HAVE_TM_GMTOFF' block.
64679
64680         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64681         Include xalloc.h instead.
64682
64683 2001-12-02  Jim Meyering  <meyering@lucent.com>
64684
64685         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64686         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64687         included.
64688
64689         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64690         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64691
64692 2001-11-30  Akim Demaille  <akim@epita.fr>
64693
64694         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64695         before being defined.
64696
64697 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64698
64699         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64700         First arg is int, not unsigned.
64701         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64702         (SIZE_MAX, UINT_MAX): New macros.
64703         (quotearg_n_options): Abort if N is negative.
64704         Avoid overflow check on hosts where size_t is 64 bits and int
64705         is 32 bits, as overflow is impossible there.
64706         Fix off-by-one typo that caused unnecessary reallocation.
64707
64708 2001-11-27  Jim Meyering  <meyering@lucent.com>
64709
64710         * lib/tempname.c: Merge with version from libc.
64711         * lib/regex.c: Likewise.
64712
64713         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64714         systems for which STDC_HEADERS is 0, it was not included, resulting in
64715         a warning about an integer-to-pointer conversion problem with getenv.
64716         Reported by Volker Borchert.
64717
64718 2001-11-26  Jim Meyering  <meyering@lucent.com>
64719
64720         * lib/gtod.h: Remove file.
64721         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
64722         * lib/gettimeofday.c: Don't include gtod.h.
64723         (GTOD_init): Remove function.
64724         (rpl_gettimeofday): Do its job here instead, rather than aborting.
64725         Suggestion from Volker Borchert.
64726
64727 2001-11-23  Jim Meyering  <meyering@lucent.com>
64728
64729         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
64730         it.
64731         * lib/hash.c (struct hash_table): Define it here instead.
64732
64733 2001-11-22  Jim Meyering  <meyering@lucent.com>
64734
64735         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
64736
64737 2001-11-20  Jim Meyering  <meyering@lucent.com>
64738
64739         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
64740         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
64741
64742 2001-11-19  Jim Meyering  <meyering@lucent.com>
64743
64744         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
64745         directory.  Use "conftestXXXXXX" as the template.
64746         Suggestion from Paul Eggert.
64747
64748         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
64749         immediately, so the test doesn't mistakenly hit the max-open-files
64750         limit.
64751
64752 2001-11-18  Paul Eggert  <eggert@twinsun.com>
64753
64754         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
64755         (TEMPORARIES): New macro.
64756         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
64757         removes an artificial limitation (e.g. HP-UX 10.20, where
64758         TMP_MAX is 17576).
64759
64760 2001-11-18  Jim Meyering  <meyering@lucent.com>
64761
64762         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
64763
64764 2001-11-18  Jim Meyering  <meyering@lucent.com>
64765
64766         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
64767         on SunOS 4.
64768
64769         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
64770         files will be created before anything else.
64771
64772 2001-11-17  Paul Eggert  <eggert@twinsun.com>
64773
64774         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
64775         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
64776
64777 2001-11-17  Jim Meyering  <meyering@lucent.com>
64778
64779         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
64780         Prompted by a report from Bob Proulx.
64781
64782         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
64783         Instead, require UTILS_FUNC_MKSTEMP.
64784
64785 2001-11-17  Jim Meyering  <meyering@lucent.com>
64786
64787         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
64788         Now, that's done as part of AC_FUNC_STRTOD.
64789
64790 2001-11-17  Jim Meyering  <meyering@lucent.com>
64791
64792         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
64793         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
64794         rather than group writable.  Patch by Juan F. Codagnone.
64795
64796         * lib/readtokens.c: Remove explicit declarations of xmalloc and
64797         xrealloc, Instead, include "xalloc.h".
64798
64799         * lib/mountlist.c: Include unlocked-io.h after all system headers.
64800         Remove explicit declarations of xmalloc, xrealloc,
64801         and xstrdup.  Instead, include "xalloc.h".
64802
64803         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
64804         unlocked-io.h.
64805         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
64806         Likewise.
64807         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
64808
64809         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
64810         Reported by Padraig Brady.
64811
64812         * lib/mkstemp.c: #undef mkstemp.
64813         Include config.h.
64814         (rpl_mkstemp): Rename from mkstemp.
64815         Protoize.
64816
64817 2001-11-16  Jim Meyering  <meyering@lucent.com>
64818
64819         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
64820         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
64821         determine the amount of total physical memory, use pstat_getstatic.
64822         HPUX-11 doesn't define _SC_PHYS_PAGES.
64823         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
64824         If sysconf couldn't be used to determine the amount of available
64825         physical memory, use both pstat_getstatic and pstat_getdynamic.
64826         Based on a patch from Bob Proulx.
64827
64828 2001-11-10  Jim Meyering  <meyering@lucent.com>
64829
64830         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
64831         (jm_PREREQ): Use it.
64832
64833 2001-11-09  Jim Meyering  <meyering@lucent.com>
64834
64835         * m4/jm-macros.m4: Require autoconf-2.52f.
64836         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
64837         Use these AC_-prefixed names, not the AM_-prefixed ones.
64838
64839         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
64840
64841 2001-11-05  Jim Meyering  <meyering@lucent.com>
64842
64843         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
64844
64845 2001-11-04  Jim Meyering  <meyering@lucent.com>
64846
64847         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
64848         $DEFS.
64849
64850 2001-11-03  Jim Meyering  <meyering@lucent.com>
64851
64852         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
64853         of AC_DEFUN.
64854
64855         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
64856         know the name of the variable in the macro definition.
64857
64858 2001-11-03  Jim Meyering  <meyering@lucent.com>
64859
64860         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
64861         in argmatch_to_argument call.
64862
64863         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
64864         argument.
64865
64866         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
64867         e.g., a fault due to an attempt to free a NULL pointer.
64868
64869 2001-11-01  Jim Meyering  <meyering@lucent.com>
64870
64871         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
64872         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
64873
64874 2001-11-01  Jim Meyering  <meyering@lucent.com>
64875
64876         * lib/dirfd.c, lib/dirfd.h: New files.
64877         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
64878
64879         * lib/hash.c (hash_print) [TESTING]: Clean up.
64880
64881 2001-10-22  Paul Eggert  <eggert@twinsun.com>
64882
64883         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
64884         to avoid a warning if -Wall.
64885
64886 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
64887
64888         * README: New file
64889         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
64890         (per RMS's instructions, this is now the canonical source)
64891         * lgpl/, gpl/: New directories.
64892
64893 2001-10-21  Paul Eggert  <eggert@twinsun.com>
64894
64895         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
64896
64897 2001-10-21  Jim Meyering  <meyering@lucent.com>
64898
64899         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
64900         this code would end up calling gettext even in packages built
64901         with --disable-nls.
64902         * lib/getopt.c (_): Likewise.
64903         * lib/regex.c (_): Likewise.
64904
64905 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64906
64907         * m4/error.m4 (jm_PREREQ_ERROR):
64908         Do not invoke AC_CHECK_FUNCS with strerror_r, as
64909         AC_FUNC_STRERROR_R does that.
64910         Check for strerror declaration.
64911
64912         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
64913         are supposed to have them these days.
64914         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
64915         Merge changes from latest Autoconf CVS.
64916         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
64917         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
64918         POSIX decided to standardize on the int flavor of strerror_r.
64919
64920 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64921
64922         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
64923         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
64924         Use strerror_r that is only a macro, even if it is not a function.
64925         (strerror): Check for HAVE_DECL_STRERROR before declaring.
64926         (private_strerror): Use prototypes, not old-style function definition.
64927         (print_errno_message): New function.
64928         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
64929         char*-flavored one.
64930         (error_tail, error, error_at_line): Use it.
64931
64932 2001-10-11  Jim Meyering  <meyering@lucent.com>
64933
64934         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
64935         and quote_n (1, ... to avoid clobbering a buffer.
64936
64937 2001-10-05  Jim Meyering  <meyering@lucent.com>
64938
64939         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
64940         hash-pjw.h.
64941         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
64942         * lib/hash-pjw.h: New file.
64943
64944 2001-09-30  Jim Meyering  <meyering@lucent.com>
64945
64946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
64947         `struct fsstat' has the `f_fstypename' member.
64948         Use that to define FS_TYPE, which is now used to make
64949         the getfsstat link test tighter.
64950
64951 2001-09-30  Jim Meyering  <meyering@lucent.com>
64952
64953         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
64954         Include <sys/ucred.h>, for Apple Darwin.
64955         Include sys/mount.h and sys/fs_types.h only if available.
64956         (FS_TYPE): Define.
64957         (read_filesystem_list): Use FS_TYPE.
64958
64959 2001-09-29  Paul Eggert  <eggert@twinsun.com>
64960
64961         * lib/exclude.c (excluded_filename): 0 -> false, since it's
64962         a boolean context.
64963
64964 2001-09-29  Jim Meyering  <meyering@lucent.com>
64965
64966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64967         [one-argument getmntent function]): Include stdio.h before mntent.h.
64968         SunOS 4.1.x needs it for the declaration of `FILE'.
64969         Patch by Volker Borchert.
64970
64971         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64972         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
64973         sys/fs_types.h, and make the link-test for getfsstat guard #include
64974         directives with appropriate #if HAVE_*_H tests so that we can
64975         detect getfsstat on Apple Darwin1.3.7 systems.
64976         Reported by Nelson Beebe.
64977         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
64978
64979 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64980
64981         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64982         #defines strtoimax.  Also treat the other strto* functions
64983         like strtoimax.
64984
64985         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64986         Check for strtoul and strtoumax,
64987         as those declarations are made even in the signed case.
64988         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
64989         Likewise, for strtol and strtoimax.
64990
64991 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64992
64993         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64994         #defines strtoimax.  Also treat the other strto* functions
64995         like strtoimax.
64996
64997         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
64998         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
64999         (strtoimax, strtoumax): Do not declare if already defined as a macro.
65000
65001 2001-09-26  Jim Meyering  <meyering@lucent.com>
65002
65003         Most macros in unlocked-io.h had the wrong number of arguments.
65004         * lib/gen-uio: New script.
65005         (USE_UNLOCKED_IO): Define to 1 if not already defined.
65006         * lib/unlocked-io.hin: Remove file.
65007         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
65008         rather than trying to embed it here.
65009         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
65010         Reported by Padraig Brady.
65011
65012 2001-09-25  Volker Borchert  <bt@teknon.de>
65013
65014         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
65015         `result'.
65016
65017 2001-09-24  Jim Meyering  <meyering@lucent.com>
65018
65019         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
65020
65021 2001-09-23  Jim Meyering  <meyering@lucent.com>
65022
65023         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
65024         instead of the mere test for existence of mntent.h.  The latter
65025         would get a false-positive on AIX 3.4 systems.
65026         In the outer getmntent if-block, don't die if neither of the getmntent
65027         tests succeeds.  Instead, just fall through and continue with the
65028         remaining tests.
65029
65030 2001-09-23  Jim Meyering  <meyering@lucent.com>
65031
65032         * lib/mountlist.c: Remove useless parentheses in #if directives.
65033         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
65034         the deprecated MOUNTED symbol is no longer defined in mntent.h.
65035
65036 2001-09-22  Jim Meyering  <meyering@lucent.com>
65037
65038         * m4/gettext.m4: New file.  From gettext.
65039         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
65040         * m4/progtest.m4: Likewise
65041         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
65042         * m4/glibc21.m4: Likewise.
65043
65044         * m4/libintl.m4: Remove.  No longer used.
65045
65046 2001-09-22  Jim Meyering  <meyering@lucent.com>
65047
65048         * lib/localcharset.c: Update from latest gettext.
65049         * lib/config.charset: Likewise.
65050
65051 2001-09-20  Jim Meyering  <meyering@lucent.com>
65052
65053         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
65054         strtoimax.
65055         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
65056         strtoumax.
65057
65058 2001-09-20  Jim Meyering  <meyering@lucent.com>
65059
65060         * lib/xstrtol.c (strtoimax): Guard declaration with
65061         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
65062         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
65063         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
65064         (strtoumax): Likewise, for completeness (it wasn't necessary).
65065
65066 2001-09-17  Paul Eggert  <eggert@twinsun.com>
65067
65068         * lib/strtoimax.c (HAVE_LONG_LONG):
65069         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
65070         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
65071         to work around bug in IBM C compiler.
65072
65073 2001-09-17  Jim Meyering  <meyering@lucent.com>
65074
65075         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
65076         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
65077         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
65078         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
65079         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
65080         whenever the right hand side need not be expanded by the shell.
65081
65082 2001-09-16  Paul Eggert  <eggert@twinsun.com>
65083
65084         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
65085         library.  It's not correct, as some older glibcs are buggy.
65086         fnmatch wasn't fixed until glibc 2.2.
65087
65088         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
65089         special shell magic here.
65090
65091 2001-09-16  Jim Meyering  <meyering@lucent.com>
65092
65093         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
65094         * m4/jm-macros.m4: Require it.
65095
65096 2001-09-16  Jim Meyering  <meyering@lucent.com>
65097
65098         * lib/mkdir.c: New file.
65099
65100 2001-09-15  Jim Meyering  <meyering@lucent.com>
65101
65102         * m4/jm-macros.m4: Check for help2man.
65103
65104 2001-09-11  Jim Meyering  <meyering@lucent.com>
65105
65106         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
65107         The body, by Paul Eggert, was moved here from configure.in.
65108         * m4/jm-macros.m4: Require UTILS_HOST_OS.
65109
65110 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65111
65112         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
65113         (jm_PREREQ): Use it.
65114
65115 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65116
65117         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
65118         Use ssize_t, not int, to store result of readlink.
65119         Check for ssize_t overflow as well as size_t overflow,
65120         as POSIX says the result of readlink is implementation-defined
65121         when ssize_t overflows.
65122         Remove unnecessary cast to char*.
65123         Use free+malloc instead of realloc, as the storage doesn't need
65124         to be preserved and it's clearer and can be more efficient that way.
65125         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
65126         * lib/xreadlink.h (xreadlink): Update prototype.
65127
65128 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65129
65130         * lib/xgetcwd.c: Revert some of the previous change; intead,
65131         fix the HAVE_GETCWD_NULL code to behave more like the
65132         !HAVE_GETCWD_NULL code used to.
65133
65134         Include "xalloc.h".
65135         (xgetcwd): Do not return NULL when memory is exhausted; instead,
65136         invoke xalloc_die.
65137
65138 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65139
65140         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
65141         sys/param.h, as pathmax.h includes them.
65142
65143 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65144
65145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
65146         (jm_PREREQ_XGETCWD): New macro.
65147
65148         * m4/getcwd.m4: New file.
65149
65150 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65151
65152         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
65153         like the HAVE_GETCWD_NULL code.
65154         Include pathmax.h if not HAVE_GETCWD.
65155         Do not include xalloc.h.
65156         (INITIAL_BUFFER_SIZE): New symbol.
65157         Do not use xmalloc / xrealloc, since the caller is responsible for
65158         handling errors.  Preserve errno around `free' during failure.
65159         Do not overrun buffer when using getwd.
65160
65161 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65162
65163         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
65164         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
65165         getcwd (NULL, 0).
65166
65167 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65168
65169         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
65170         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
65171         spotted by Jim Meyering.
65172
65173 2001-09-03  Jim Meyering  <meyering@lucent.com>
65174
65175         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
65176         failure.
65177
65178 2001-09-02  Jim Meyering  <meyering@lucent.com>
65179
65180         * lib/error.c: Update from GNU libc.
65181
65182 2001-09-01  Jim Meyering  <meyering@lucent.com>
65183
65184         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
65185         Used by df.
65186
65187 2001-09-01  Jim Meyering  <meyering@lucent.com>
65188
65189         * lib/xreadlink.c: New file.
65190         * lib/xreadlink.h: New file.
65191         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
65192         xreadlink.h.
65193
65194         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
65195         doesn't conflict with sparc Solaris 7's definition in
65196         /usr/include/sys/int_types.h.
65197
65198         * lib/exclude.c: Use `""', not `<>' to #include non-system header
65199         files.
65200         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
65201         and strncasecmp as r-values.  Unixware didn't have declarations.
65202
65203 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65204
65205         * lib/xstrtol.h: Add copyright notice.
65206         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
65207         LONGINT_INVALID_SUFFIX_CHAR.
65208
65209 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65210
65211         * lib/xstrtol.c (strtoimax): New decl.
65212
65213 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65214
65215         * lib/xgetcwd.c: Don't include pathmax.h.
65216         Include stdlib.h and unistd.h if available.
65217         Include xalloc.h.
65218         (xmalloc, xstrdup, free): Remove decls.
65219         (xgetcwd): Don't assume sizes fit in unsigned.
65220         Check for overflow when computing sizes.
65221         Simplify reallocation code.
65222
65223 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65224
65225         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
65226         a directory's st_size can have an arbitrary value, so the old
65227         usage could waste an arbitrary amount of memory.  All uses
65228         changed.
65229         * lib/savedir.h: Update prototype.
65230
65231 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65232
65233         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
65234
65235         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
65236         old strtoimax.c.
65237
65238         Also, make the following further changes to make this file's
65239         configuration more similar to that of strtol.c:
65240         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
65241         (strtoumax, uintmax_t, strtoull, strtol): Remove.
65242         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
65243         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
65244         changed to signed values.
65245
65246         And make the following changes as well:
65247         Fix copyright notice, as 1999 was missing.
65248         (verify): New macro.
65249         (strtoimax): Check sizes at compile-time, not run-time.
65250         Prefer strtol to strtoll if both work.
65251         (main): Remove; it was not that useful and was a pain to maintain.
65252
65253         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
65254
65255 2001-08-31  Jim Meyering  <meyering@lucent.com>
65256
65257         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
65258         Use an initial, malloc'd, buffer of length 128 rather than
65259         a statically allocated one of length 1024.
65260
65261 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65262
65263         Simplify code, partly by assuming autoconf 2.52 semantics.
65264
65265         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
65266
65267         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
65268         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
65269         All uses removed.
65270         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
65271         Move AC_REQUIRE to next-to-top level, to avoid confusion.
65272         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
65273         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
65274         jm_AC_HEADER_INTTYPES_H.
65275         * m4/jm-macros.m4 (jm_MACROS): Likewise.
65276
65277         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
65278
65279         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65280         Quote first arg of AC_DEFUN.
65281         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
65282         since they are needed to parse the include file even if we need
65283         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
65284         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
65285         but with opposite signedness.
65286
65287 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65288
65289         Merge 'exclude' changes from tar 1.13.22.
65290         This fixes one or two unlikely storage allocation overflow bugs,
65291         but doesn't change user-visible behavior otherwise.
65292
65293 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65294
65295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
65296         (jm_PREREQ_EXCLUDE): New macro.
65297
65298 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65299
65300         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
65301         tm to be declared.
65302
65303 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65304
65305         * lib/hash.c: Remove '2001' from copyright notice.
65306
65307 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65308
65309         * lib/full-write.h: New file.
65310         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
65311         * lib/full-write.c: Correct credits, as cccp.c no longer
65312         exists and anyway it was so heavily changed from the old cccp
65313         code as to be unrecognizable.  Include full-write.h.
65314         (full_write) Return size_t, with short writes meaning failure.
65315         All callers changed.  This fixes a bug with large buffers
65316         on 64-bit hosts.
65317         * lib/utime.c: Include full-write.h.
65318
65319 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65320
65321         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
65322         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
65323         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
65324         Include if available.
65325         (<xalloc.h>): Include
65326         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
65327         (verify): New macro.  Use it to verify that EXCLUDE macros do not
65328         collide with FNM macros.
65329         (struct patopts): New struct.
65330         (struct exclude): Use it, as exclude patterns now come with options.
65331         (new_exclude): Support above changes.
65332         (new_exclude, add_exclude_file):
65333         Initial size must now be a power of two to simplify overflow checking.
65334         (free_exclude, fnmatch_no_wildcards): New function.
65335         (excluded_filename): No longer requires options arg, as the options
65336         are determined by add_exclude.  Now returns bool, not int.
65337         (excluded_filename, add_exclude):
65338         Add support for the fancy new exclusion options.
65339         (add_exclude, add_exclude_file): Now takes int options arg.
65340         Check for arithmetic overflow when computing sizes.
65341         (add_exclude_file): xrealloc might modify errno, so don't
65342         realloc until after errno might be used.
65343
65344         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
65345         New macros.
65346         (free_exclude): New decl.
65347         (add_exclude, add_exclude_file): Now takes int options arg.
65348         (excluded_filename): No longer requires options arg, as the options
65349         are determined by add_exclude.  Now returns bool, not int.
65350
65351 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65352
65353         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
65354
65355 2001-08-27  Jim Meyering  <meyering@lucent.com>
65356
65357         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
65358
65359         * lib/version-etc.c (N_): Remove definition.
65360         Revert most of last change.
65361         Instead, simply don't mark the `Copyright...' string for translation.
65362         Based on advice from Paul Eggert.
65363
65364         * lib/strtoxmax.c: Tweak comment.
65365
65366 2001-08-26  Jim Meyering  <meyering@lucent.com>
65367
65368         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
65369
65370         * m4/xstrtoimax.m4: New file.
65371         * m4/xstrtoumax.m4: Add comments explaining why we
65372         AC_REPLACE_FUNCS(strtol).
65373
65374 2001-08-26  Jim Meyering  <meyering@lucent.com>
65375
65376         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
65377         of copyright with `%s' so translators don't get an untranslated
65378         message in 2002.
65379         (COPYRIGHT_YEAR): Define.
65380         (version_etc): Use fprintf rather than fputs.
65381         Suggestion from Ulrich Drepper.
65382
65383         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
65384
65385         * lib/strtoll.c: New file, from GNU libc.
65386         * lib/xstrtoimax.c: New file.
65387
65388         * lib/xstrtol.h: Add xstrtoimax.
65389         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
65390         * lib/strtoimax.c: New file.  Likewise, but first define
65391         STRTOUXMAX_SIGNED.
65392
65393         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
65394         ...
65395         * lib/strtoxmax.c: ... then renamed to this.
65396
65397 2001-08-18  Paul Eggert  <eggert@twinsun.com>
65398
65399         * m4/inttypes.m4: Add AC_PREREQ(2.13).
65400         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
65401         (jm_AC_TYPE_INTMAX_T): New macro.
65402         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
65403
65404         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
65405
65406         * m4/longlong.m4: Renamed from ulonglong.m4.
65407         * m4/inttypes.m4: Renamed from inttypes_h.m4.
65408         * m4/uintmax_t.m4: Removed.
65409
65410 2001-08-13  Paul Eggert  <eggert@twinsun.com>
65411
65412         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
65413         Port to Solaris 8, where 'sed' requires a space after the 'r'
65414         command, and where sh dislikes "$/".  Clean up the spacing a bit.
65415         Redirect output to $tmp just once.
65416
65417 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
65418
65419         * lib/addext.c (<errno.h>): Include.
65420         (errno): Declare if not defined.
65421         (addext): Work correctly when pathconf returns -1 and leaves
65422         errno alone because there is no limit.  Also, work even if
65423         pathconf returns a value greater than SIZE_MAX.
65424
65425 2001-08-12  Jim Meyering  <meyering@lucent.com>
65426
65427         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
65428         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
65429         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
65430         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
65431         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
65432         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
65433         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
65434         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
65435         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
65436         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
65437         utime.m4, utimes.m4, xstrtoumax.m4:
65438         Quote the first argument in each use of AC_DEFUN.
65439
65440 2001-08-12  Jim Meyering  <meyering@lucent.com>
65441
65442         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
65443         Simply `return getcwd (NULL, 0);'.
65444         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
65445         Use 1300 as initial value for length, not PATH_MAX.
65446
65447         * lib/pathmax.h: Clean up cpp syntax.
65448
65449 2001-08-12  Jim Meyering  <meyering@lucent.com>
65450
65451         * lib/gettimeofday.c: New file.
65452         * lib/gtod.h: New file.
65453         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
65454
65455 2001-08-05  Jim Meyering  <meyering@lucent.com>
65456
65457         * m4/jm-macros.m4: Require autoconf-2.52.
65458
65459 2001-08-04  Jim Meyering  <meyering@lucent.com>
65460
65461         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
65462         stmt, to get in sync with glibc.
65463
65464 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65465
65466         The following changes are from gettext 0.10.39 as maintained by
65467         Bruno Haible.
65468
65469         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
65470         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
65471         with inverted sense.  All uses changed.
65472
65473         * lib/mbswidth.c: Don't include <limits.h>.
65474         Include <stdlib.h> and <string.h> unconditionally.
65475         (iswcntrl, mbsinit, ISCNTRL): New macros.
65476         (mbsnwidth): Use K&R style function declarations.
65477         Don't bother checking for MB_LEN_MAX == 1, since the compiler
65478         can optimize it when MB_CUR_MAX == 1.
65479         The width of control characters is zero, not 1.
65480
65481 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65482
65483         The following changes are from gettext 0.10.39 as maintained by
65484         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
65485
65486         * m4/codeset.m4: Upgrade to serial AM1.
65487         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
65488         all uses changed.  Quote first arg of AC_DEFUN.
65489         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
65490
65491         * m4/iconv.m4: Upgrade to serial AM2.
65492         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
65493         Add --with-libconv-prefix.
65494         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
65495         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
65496         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
65497         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
65498         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
65499
65500         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
65501         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
65502         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
65503         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
65504         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
65505         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
65506         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65507         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
65508         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65509
65510         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
65511         string.h any more.
65512
65513         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
65514         not the default value.
65515
65516         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
65517         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
65518         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
65519         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
65520         Also check for iswcntrl, used for wcwidth fallback.
65521         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
65522         to Autoconf 2.13.
65523
65524 2001-08-03  Jim Meyering  <meyering@lucent.com>
65525
65526         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
65527         as it was in the original.  Reported by Paul Eggert.
65528
65529 2001-07-16  Jim Meyering  <meyering@lucent.com>
65530
65531         * m4/gettimeofday.m4: New file.
65532         Prompted by a report from Bernhard Baehr.
65533
65534 2001-07-15  Jim Meyering  <meyering@lucent.com>
65535
65536         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65537         stuff. Now it's in ../Makefile.cfg.
65538
65539 2001-07-15  Jim Meyering  <meyering@lucent.com>
65540
65541         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65542         (BUILT_SOURCES): Add unlocked-io.h.
65543         (io_functions): Define.
65544         (unlocked-io.h): New rule.
65545         (DISTCLEANFILES): Add unlocked-io.h.
65546         (all-local): Depend on unlocked-io.h, to ensure it is created.
65547
65548         * lib/unlocked-io.hin: New file
65549
65550         * lib/regex.c: Update from glibc.
65551
65552 2001-07-05  Jim Meyering  <meyering@lucent.com>
65553
65554         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65555         recommendation.
65556         (libfetish_a_SOURCES): Put all .h files here instead.
65557         Remove a thus-exposed (better checks in automake) duplicate and
65558         two unnecessary .h files.
65559
65560 2001-07-04  Jim Meyering  <meyering@lucent.com>
65561
65562         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65563         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65564         distcheck failure.
65565
65566 2001-07-02  Jim Meyering  <meyering@lucent.com>
65567
65568         The following changes were prompted by suggestions from Bruno Haible.
65569
65570         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65571         is now generated.
65572         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65573         definition of EXTRA_DIST.
65574         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65575         ensure that the generated file is created/updated whenever the list
65576         of $(unlocked_functions) is changed.
65577         (jm-glibc-io.m4): New rule.
65578         (unlocked-io.h): New rule -- currently unused.
65579
65580 2001-06-24  Jim Meyering  <meyering@lucent.com>
65581
65582         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65583         unmatched right bracket, rather than kludging it with an extra,
65584         falsely-matching quote in a comment.  Patch by Akim Demaille.
65585
65586 2001-06-11  Jim Meyering  <meyering@lucent.com>
65587
65588         * lib/regex.c: Update from GNU libc.
65589
65590 2001-05-27  Jim Meyering  <meyering@lucent.com>
65591
65592         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65593         Check for ut_type in struct utmp.
65594
65595 2001-05-27  Jim Meyering  <meyering@lucent.com>
65596
65597         * lib/readutmp.h (UT_TYPE): Define.
65598
65599 2001-05-24  Jim Meyering  <meyering@lucent.com>
65600
65601         * lib/argmatch.c: Include "quote.h".
65602         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65603         quote function.  Reported by Göran Uddeborg.
65604
65605 2001-05-22  Jim Meyering  <meyering@lucent.com>
65606
65607         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65608         now that we use the package-supplied version unconditionally.
65609         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65610
65611 2001-05-21  Jim Meyering  <meyering@lucent.com>
65612
65613         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65614         shell syntax errors.
65615
65616 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65617
65618         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65619
65620 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65621
65622         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65623         Don't bother to check library strftime, since
65624         we'll be using our own my_strftime function anyway.
65625         Define my_strftime instead of strftime.
65626
65627 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65628
65629         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65630         which is not yet declared.
65631
65632 2001-05-15  Jim Meyering  <meyering@lucent.com>
65633
65634         * m4/regex.m4: Use proper quoting so brackets appear in the test
65635         program.
65636         Reported by, and with help from, Bruno Haible.
65637
65638 2001-05-13  Jim Meyering  <meyering@lucent.com>
65639
65640         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65641         undefined.
65642
65643 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65644
65645         dirname code cleanup.  base_name now behaves more compatibly
65646         with POSIX basename when given file names that have trailing
65647         slashes, and similarly for dir_name.  Add new primitives
65648         base_len and dir_len.  Put the directory-name-related decls
65649         into dirname.h.
65650
65651         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65652         * lib/backupfile.c (base_name): Likewise.
65653         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65654         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65655         * lib/makepath.c (strip_trailing_slashes): Likewise.
65656         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65657         ISSLASH): Likewise.
65658         * lib/rename.c (strip_trailing_slashes): Likewise.
65659         * lib/same.c (base_name): Likewise.
65660         * lib/stripslash.c (ISSLASH): Likewise.
65661
65662         * lib/addext.c: Include <dirname.h> after size_t is defined.
65663         * lib/backupfile.c: Likewise.
65664
65665         * lib/addext.c (addext): Use base_len to trim redundant
65666         trailing slashes instead of doing it ourselves.
65667         But do not trim the last slash if it is not redundant.
65668
65669         * lib/backupfile.c (find_backup_file_name,
65670         max_backup_version): Use base_len instead of rolling it ourselves.
65671         Handle the case of "" and (on DOS) "C:" correctly.
65672
65673         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65674         needed. Include <string.h>, <dirname.h>.
65675         (base_name): Allow file names ending in slashes, other than names
65676         that are all slashes.  In this case, return the basename followed
65677         by the slashes.  This is more general, and can be used in places
65678         where the original base_name purposely had an assertion failure.
65679         (base_len): New function.
65680
65681         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65682         Do not include <assert.h>; no longer needed.
65683         Include xalloc.h.
65684         (memrchr): Remove decl.
65685         (dir_name_r): Remove.
65686         (dir_len): Renamed from dirlen.  All callers changed.
65687         Rewrite in terms of base_name, for simplicity and consistency.
65688         (dir_name): Never return NULL.  All callers changed.
65689         Do not include <stdlib.h> in test program; no longer needed.
65690         return 0; is fine for test program.
65691
65692         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65693         New macros.
65694         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65695
65696         * lib/path-concat.c (path_concat): Use base_len to compute
65697         base length, not strlen; this means we cannot rely on memcpy
65698         to null-terminate.
65699
65700         * lib/same.c (STREQ): Remove.
65701         (same_name): Handle the case where the basename ends in trailing '/'.
65702
65703         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65704         a slash was stripped.  Do not strip the last slash after a
65705         file system prefix.
65706
65707 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65708
65709         * lib/Makefile.am (libfetish_a_SOURCES):
65710         Add strftime.c, since we now compile it on all hosts.
65711
65712         * lib/strftime.c (my_strftime):
65713         Define to nstrftime if emacs, but only if my_strftime is not defined.
65714         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65715         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65716         Add one more extra argument: a nanoseconds value.
65717         All uses changed.
65718         (ns): New macro.
65719         (my_strftime function): Add %N format.
65720         (emacs_strftimeu): Renamed from emacs_strftime,
65721         with extra ut argument.
65722
65723 2001-05-09  Paul Eggert  <eggert@twinsun.com>
65724
65725         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
65726
65727 2001-04-21  Jim Meyering  <meyering@lucent.com>
65728
65729         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
65730         doesn't interfere.
65731
65732 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65733
65734         * m4/ftruncate.m4: Check for chsize.
65735         Link with ftruncate.o unconditionally if ftruncate is missing.
65736         This was required when cross-compiling to i586-mingw32msvc.
65737
65738 2001-04-08  Jim Meyering  <meyering@lucent.com>
65739
65740         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
65741         recomputed; that's necessary when the offset spans a DST transition.
65742         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
65743
65744 2001-04-02  Jim Meyering  <meyering@lucent.com>
65745
65746         * lib/regex.h, regex.c: Update from GNU libc.
65747
65748 2001-03-24  Jim Meyering  <meyering@lucent.com>
65749
65750         * m4/jm-macros.m4: Require autoconf-2.49d.
65751
65752 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
65753
65754         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
65755
65756 2001-03-19  Paul Eggert  <eggert@twinsun.com>
65757
65758         * lib/version-etc.c (version_etc_copyright): Update to 2001.
65759
65760 2001-03-17  Jim Meyering  <meyering@lucent.com>
65761
65762         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
65763         now that the version in autoconf is equivalent.
65764         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
65765
65766         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
65767         Suggestion from Akim Demaille.
65768
65769         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
65770         (jm_PREREQ_TEMPNAME): New function.
65771
65772 2001-03-16  Paul Eggert  <eggert@twinsun.com>
65773
65774         * lib/tempname.c (uint64_t): Define to uintmax_t if
65775         not defined, and if UINT64_MAX is not defined.
65776         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
65777         Reported by John David Anglin.
65778
65779 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
65780
65781         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
65782         resolve alias if codeset is empty.
65783         * lib/config.charset (BeOS): Use wildcard syntax.
65784
65785 2001-03-13  Jim Meyering  <meyering@lucent.com>
65786
65787         * lib/path-concat.c (path_concat)
65788         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
65789         concatenating e.g., `C:' and `foo'.
65790         From Bruno Haible.
65791
65792 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65793
65794         * lib/localcharset.c (locale_charset): Don't use
65795         setlocale(LC_CTYPE,NULL). Don't return NULL.
65796         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
65797
65798 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65799
65800         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
65801         support for DOS/DJGPP.
65802
65803 2001-03-01  Paul Eggert  <eggert@twinsun.com>
65804
65805         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
65806         lacks mkstemp.  Compile our own tempname.c if we compile our own
65807         mkstemp.c, as mkstemp relies on tempname.
65808
65809 2001-03-01  Jim Meyering  <meyering@lucent.com>
65810
65811         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
65812         AH_VERBATIM really does output its argument verbatim.
65813
65814 2001-02-28  Paul Eggert  <eggert@twinsun.com>
65815
65816         * lib/Makefile.am (libfetish_a_SOURCES):
65817         Add dup-safer.c, fopen-safer.c.
65818         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
65819
65820         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
65821         * lib/unistd-safer.h: New files.
65822
65823 2001-02-25  Paul Eggert  <eggert@twinsun.com>
65824
65825         The mkstemp replacement is taken from glibc 2.2.2, with some
65826         portability fixes for use outside glibc, as follows:
65827
65828         * lib/tempname.c (struct_stat64): New macro.
65829         (direxists, __gen_tempname): Use it.
65830         This avoids a portability problem with Solaris 8.
65831
65832         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
65833         (<stddef.h>, <stdint.h>, <string.h>):
65834         Include only if STDC_HEADERS || _LIBC.
65835         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
65836         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
65837         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
65838         (__set_errno): Define this macro if <errno.h> doesn't.
65839         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
65840         Define these macros if <stdio.h> doesn't.
65841         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
65842         Define these macros if <sys/stat.h>
65843         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
65844         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
65845         __xstat64): Define if not _LIBC.
65846         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
65847         (__gen_tempname): Invoke gettimeofday only if
65848         HAVE_GETTIMEOFDAY || _LIBC;
65849         otherwise, fall back on plain "time".
65850         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
65851
65852         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
65853
65854         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
65855
65856 2001-02-18  Paul Eggert  <eggert@twinsun.com>
65857
65858         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
65859
65860 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65861
65862         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
65863         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
65864         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
65865         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65866
65867 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65868
65869         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
65870         Remove workaround macros for hosts that have mbrtowc but not
65871         mbstate_t, as we now insist on proper declarations for both
65872         before using mbrtowc.
65873
65874 2001-02-17  Jim Meyering  <meyering@lucent.com>
65875
65876         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
65877         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
65878         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
65879         UnixWare 7.1.1.
65880
65881         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
65882         rather than AC_CACHE_VAL.
65883
65884 2001-02-17  Jim Meyering  <meyering@lucent.com>
65885
65886         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
65887         around included file name.
65888
65889         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
65890
65891         * lib/strftime.c: Update from GNU libc (the only changes were to
65892         comments).
65893
65894 2001-02-17  Jim Meyering  <meyering@lucent.com>
65895
65896         * lib/regex.c: Update from libc.
65897
65898 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
65899
65900         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
65901         clash.
65902
65903 2001-02-16  Paul Eggert  <eggert@twinsun.com>
65904
65905         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
65906         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
65907         Reported by Mark Hounschell via Paul Eggert.
65908
65909 2001-02-07  Jim Meyering  <meyering@lucent.com>
65910
65911         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
65912
65913 2001-02-05  Jim Meyering  <meyering@lucent.com>
65914
65915         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
65916         it includes the patch required for `large file' support with at least
65917         HP-UX's 10.20 /bin/cc.
65918
65919 2001-02-03  Jim Meyering  <meyering@lucent.com>
65920
65921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
65922         AS_IF, now that it works once again (mysteriously).
65923         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65924
65925 2001-01-30  Jim Meyering  <meyering@lucent.com>
65926
65927         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
65928         * m4/chown.m4: Rename conftestchown to conftest.chown.
65929         * m4/rename.m4: s/conftestdir/conftest.d1/ and
65930         s/conftestdir2/conftest.d2/.
65931         * m4/utimes.m4: s/conftestdata/conftest.data/
65932         Inspired by Pavel Roskin's change in autoconf.
65933
65934 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
65935
65936         * lib/config.charset: Update for FreeBSD 4.2.
65937
65938 2001-01-27  Jim Meyering  <meyering@lucent.com>
65939
65940         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
65941         a use of AS_IF.
65942         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65943
65944 2001-01-26  Jim Meyering  <meyering@lucent.com>
65945
65946         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
65947         quotearg.c includes it.
65948
65949 2001-01-26  Jim Meyering  <meyering@lucent.com>
65950
65951         * lib/quotearg.c: Include stddef.h.
65952         * lib/quote.c: Include stddef.h.
65953         Reported by Axel Kittenberger.
65954
65955         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
65956         line in double quotes so that it evokes a better diagnostic.
65957         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
65958         Reported by Axel Kittenberger.
65959
65960 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
65961
65962         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
65963         as if it was a `charset'.
65964
65965 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65966
65967         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
65968         has const.
65969
65970 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65971
65972         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
65973         to avoid a warning.  Add back 'const' to inptr.
65974
65975 2001-01-20  Jim Meyering  <meyering@lucent.com>
65976
65977         Be sure that headers are checked before used in code compiled
65978         for the type checks.
65979         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
65980         In place of that, invoke jm_CHECK_ALL_TYPES.
65981         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
65982         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
65983         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
65984         The check for ssize_t was mistakenly run before the test for unistd.h.
65985
65986         The configure-time check for stdbool.h was missing.
65987         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
65988         (jm_PREREQ_HASH): New function.
65989
65990 2001-01-17  Jim Meyering  <meyering@lucent.com>
65991
65992         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
65993         for autoconf-2.49c.
65994         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
65995
65996 2001-01-16  Jim Meyering  <meyering@lucent.com>
65997
65998         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
65999         From Bruno Haible.
66000
66001 2001-01-14  Jim Meyering  <meyering@lucent.com>
66002
66003         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
66004         foo and bar.  Create conftestdir/ in the script, not in the C code.
66005         Remove directories in the script, not in the C code.
66006         Remove conftestdir{,2} before trying to create the directory.
66007         Make the entire configure script fail if the mkdir fails.
66008
66009 2001-01-14  Jim Meyering  <meyering@lucent.com>
66010
66011         * lib/rename.c: New file.  From Volker Borchert.
66012         Include stdlib.h, string.h or strings.h, and xalloc.h.
66013         Use strip_trailing_slashes rather than open-coding it.
66014
66015 2001-01-03  Paul Eggert  <eggert@twinsun.com>
66016
66017         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
66018
66019 2001-01-03  Jim Meyering  <meyering@lucent.com>
66020
66021         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
66022         of local `inptr' to avoid warning with some system declarations of
66023         iconv.
66024
66025 2001-01-02  Volker Borchert  <bt@teknon.de>
66026
66027         * m4/rename.m4: New file.
66028         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
66029
66030 2001-01-01  Jim Meyering  <meyering@lucent.com>
66031
66032         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
66033         even on systems with utmpx.h.  It's necessary for the declaration of
66034         utmp's ut_user member.  Reported by Andreas Jaeger.
66035
66036         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
66037         available. They are required for the declarations of getgrgid and
66038         getpwuid resp.
66039         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
66040         Reported by Andreas Jaeger.
66041
66042 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
66043
66044         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
66045         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
66046         so `make install' also works in VPATH builds.
66047
66048 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
66049
66050         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
66051         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
66052         can be used in subdirectories.
66053
66054 2000-12-29  Paul Eggert  <eggert@twinsun.com>
66055
66056         * lib/modechange.c: Do not assume that mode_t uses the
66057         traditional octal encoding.  E.g. "chmod 1 FOO" should set
66058         the other-execute bit of FOO even if S_IXOTH != 1.
66059
66060         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
66061         WOTH, XOTH, ALLM): New macros.
66062         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
66063          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
66064         Use them.
66065         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
66066         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
66067         (mode_compile):
66068         No need to use uintmax_t; unsigned long is long enough.
66069         Don't bother to get suffix since we don't use it.
66070
66071 2000-12-26  Jim Meyering  <meyering@lucent.com>
66072
66073         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
66074         better with autoheader.
66075
66076 2000-12-24  Jim Meyering  <meyering@lucent.com>
66077
66078         * lib/hash.c (is_prime): Return explicit boolean values.
66079         (hash_get_first): Return NULL to appease Irix5.6's 89.
66080         Reported by Nelson Beebe.
66081
66082 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
66083
66084         * lib/localcharset.c (locale_charset): Add support for Win32.
66085
66086 2000-12-18  Paul Eggert  <eggert@twinsun.com>
66087
66088         * lib/physmem.h, lib/physmem.c: New files.
66089
66090         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
66091         (noinst_HEADERS): Add physmem.h.
66092
66093         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
66094         't' for compatibility with Solaris 8 sort.
66095
66096 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
66097
66098         * lib/config.charset: Add support for BeOS.
66099
66100 2000-12-17  Jim Meyering  <meyering@lucent.com>
66101
66102         * m4/dos.m4 (jm_AC_DOS): New file and macro.
66103         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
66104
66105 2000-12-16  Jim Meyering  <meyering@lucent.com>
66106
66107         This bug had a serious impact on chown: `chown N:M FILE' (for integer
66108         N and M) would have treated it like `chown N:N FILE'.
66109
66110         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
66111
66112 2000-12-16  Jim Meyering  <meyering@lucent.com>
66113
66114         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
66115         SHELLS_FILE to a file name that's useful on djgpp systems.
66116         Include stdlib.h.
66117         (ADDITIONAL_DEFAULT_SHELLS): Define.
66118         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
66119         Based mostly on a patch from Prashant TR.
66120
66121 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
66122
66123         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
66124         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
66125         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
66126
66127 2000-12-08  Andreas Schwab  <schwab@suse.de>
66128
66129         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
66130         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
66131
66132 2000-12-07  Jim Meyering  <meyering@lucent.com>
66133
66134         * lib/stripslash.c (ISSLASH): Define.
66135         (strip_trailing_slashes): Use ISSLASH rather than comparing against
66136         `/'.
66137         From Prashant TR.
66138
66139         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
66140         (dir_name_r): Declare this function as static.
66141         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
66142         manifest itself on a name containing a mix of slashes and
66143         backslashes.
66144         Make this function work with names starting with a DOS-style
66145         drive letter and colon prefix.
66146         (dir_name): Append `.' if necessary.
66147         Based mostly on patches from Prashant TR and Eli Zaretskii.
66148
66149         * lib/dirname.h (dir_name_r): Remove prototype.
66150
66151 2000-12-06  Paul Eggert  <eggert@twinsun.com>
66152
66153         * m4/off_t-format.m4: Remove this file.
66154         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
66155
66156 2000-12-06  Jim Meyering  <meyering@lucent.com>
66157
66158         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
66159         replacement strtoull, we may well need the replacement strtoul, too.
66160         Check for declarations of strtoul and strtoull.
66161         Check for strtol.  Mainly as a cue to cause automake to include
66162         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
66163         Check for limits.h -- strtol.c needs it.
66164
66165 2000-12-05  Jim Meyering  <meyering@lucent.com>
66166
66167         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
66168
66169 2000-12-04  Jim Meyering  <meyering@lucent.com>
66170
66171         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
66172         Also include memory.h, stdlib.h, unistd.h if appropriate.
66173         Reported by Andreas Jaeger (conflicting declaration of malloc).
66174
66175 2000-12-02  Jim Meyering  <meyering@lucent.com>
66176
66177         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
66178         * m4/jm-macros.m4 (jm_MACROS): require it.
66179
66180 2000-12-02  Jim Meyering  <meyering@lucent.com>
66181
66182         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
66183
66184 2000-12-01  Paul Eggert  <eggert@twinsun.com>
66185
66186         * lib/memrchr.c: Include <config.h> before any system include file.
66187
66188 2000-11-30  Jim Meyering  <meyering@lucent.com>
66189
66190         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
66191
66192 2000-11-30  Jim Meyering  <meyering@lucent.com>
66193
66194         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
66195
66196 2000-11-29  Paul Eggert  <eggert@twinsun.com>
66197
66198         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
66199
66200 2000-11-26  Jim Meyering  <meyering@lucent.com>
66201
66202         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
66203
66204 2000-11-22  Paul Eggert  <eggert@twinsun.com>
66205
66206         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
66207         size of (size_t) -1; it's not portable.
66208
66209 2000-11-17  Jim Meyering  <meyering@lucent.com>
66210
66211         * lib/strstr.c: Update from GNU libc.
66212
66213 2000-11-17  Akim Demaille  <akim@epita.fr>
66214
66215         * lib/obstack.h: Formatting changes.
66216         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
66217         prevent type checking.
66218         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
66219         cast the value to (void *): assigning a `foo *' to a `void *'
66220         variable is valid.
66221         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
66222
66223 2000-11-16  Jim Meyering  <meyering@lucent.com>
66224
66225         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
66226
66227 2000-11-11  Jim Meyering  <meyering@lucent.com>
66228
66229         * lib/error.c: Add a couple #includes, merging from GNU libc version.
66230
66231 2000-11-10  Jim Meyering  <meyering@lucent.com>
66232
66233         * lib/obstack.h: Update from GNU libc.
66234         * lib/obstack.c: Likewise.
66235
66236 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
66237
66238         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
66239
66240 2000-11-06  Paul Eggert  <eggert@twinsun.com>
66241
66242         * lib/getusershell.c (setusershell): Use rewind rather than
66243         fseek/fseeko, to avoid configuration hassles with fseeko.
66244         Don't bother opening SHELLS_FILE if shellstream is NULL;
66245         it's not necessary.
66246
66247 2000-11-05  Jim Meyering  <meyering@lucent.com>
66248
66249         * lib/makepath.h (make_dir): Declare.
66250         * lib/makepath.c (make_dir): Remove `static' attribute.
66251         Tweak a comment.
66252
66253 2000-11-04  Jim Meyering  <meyering@lucent.com>
66254
66255         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
66256
66257 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
66258
66259         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
66260         last one in a bucket, advance to the next bucket.
66261
66262 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
66263
66264         * lib/fnmatch.c: Do not comment out all the code if we are using
66265         the GNU C library, because in some cases we are replacing buggy
66266         code in the GNU C library itself.
66267
66268 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
66269
66270         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
66271         (regex_compile): Catch bogus \(\1\).
66272
66273 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66274
66275         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
66276         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
66277         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
66278
66279 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66280
66281         * lib/error.h, getline.h, modechange.h:
66282         Remove "2000" from Copyright line, as the file hasn't been
66283         changed this year other than in the copyright notice.
66284
66285         * lib/xalloc.h: Add "2000" to Copyright line, as this file
66286         was changed this year.
66287
66288 2000-10-29  Jim Meyering  <meyering@lucent.com>
66289
66290         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
66291         renaming.
66292         * m4/ls-mntd-fs.m4: Likewise
66293
66294 2000-10-29  Jim Meyering  <meyering@lucent.com>
66295
66296         * lib/xstat.in: Fix grammar in comment.
66297
66298 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
66299
66300         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
66301         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
66302         doesn't define __restrict_arr.
66303
66304 2000-10-28  Jim Meyering  <meyering@lucent.com>
66305
66306         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
66307         (jm_PREREQ_MEMCHR): New function.
66308
66309 2000-10-28  Jim Meyering  <meyering@lucent.com>
66310
66311         * lib/memchr.c: Update from libc.
66312         Adjust for portability:
66313         [HAVE_STDLIB_H]: Include stdlib.h.
66314         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
66315         Undef __memchr, too.
66316         [!weak_alias]: Define __memchr to memchr.
66317
66318         * lib/regex.c: Update from libc.
66319         * lib/regex.h: Likewise.
66320         * lib/getopt1.c: Likewise.
66321         * lib/memcmp.c: Likewise.
66322
66323         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
66324         Avoid using fseek, when possible -- it's broken by design.
66325         Patch by Ulrich Drepper.
66326
66327 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
66328
66329         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
66330         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
66331         Giving in to popular pressure to shut up the compiler with casts.
66332
66333 2000-10-26  Jim Meyering  <meyering@lucent.com>
66334
66335         * lib/strftime.c: Update from libc.
66336
66337 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
66338
66339         * regex.c: More `unsigned char' -> `re_char' changes.
66340         Also change several `int' into `re_wchar_t'.
66341         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
66342         (PUSH_FAILURE_POINTER): Don't cast any more.
66343         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
66344         We want GCC to complain, since this piece of code makes
66345         re_match non-reentrant, which *should* be fixed.
66346         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
66347         (EXTEND_BUFFER): Use RETALLOC.
66348         (SET_LIST_BIT): Don't cast.
66349         (re_wchar_t): New type.
66350         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
66351         that those two functions will always properly return.
66352         (IMMEDIATE_QUIT_CHECK): Cast to void.
66353         (analyse_first): Use recursion rather than an explicit stack.
66354         (re_compile_fastmap): Can't fail anymore.
66355         (re_search_2): Don't check re_compile_fastmap for failure.
66356         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
66357         Now also sets the new value (passed in a new argument).
66358         (re_match_2_internal): Use it.
66359         Also, use a new var `reg' of type size_t when looping through regs
66360         rather than reuse the inappropriate `mcnt'.
66361
66362 2000-10-25  Jim Meyering  <meyering@lucent.com>
66363
66364         * lib/obstack.c: Update from libc.
66365
66366 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
66367
66368         * regex.c (regex_compile): Change the way of handling a range from
66369         a char less than 256 to a char not less than 256.
66370
66371 2000-10-24  Andrew Innes  <andrewi@gnu.org>
66372
66373         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
66374         NT-Emacs only.
66375         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
66376         so that re_search functions only quit when callers expect them to.
66377
66378 2000-10-23  Jim Meyering  <meyering@lucent.com>
66379
66380         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
66381         wrong.  That set_locale call must not have any side effects.
66382         From Paul Eggert.
66383
66384 2000-10-22  Jim Meyering  <meyering@lucent.com>
66385
66386         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
66387         [CYCLIC]: Remove now-unused definition.
66388
66389         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
66390         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
66391         Suggestion from Ulrich Drepper.
66392
66393 2000-10-21  Jim Meyering  <meyering@lucent.com>
66394
66395         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
66396         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
66397         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
66398
66399 2000-10-21  Jim Meyering  <meyering@lucent.com>
66400
66401         * lib/dirname.c (memrchr): Declare if necessary.
66402         (dir_name): Remove the restriction that there be no
66403         trailing slashes.  Now, this code skips past them, effectively
66404         ignoring them.
66405         [TEST_DIRNAME] (main): New unit tests.
66406
66407         * lib/memrchr.c: New file from GNU libc.
66408         Undef __memrchr, too.
66409         [!weak_alias]: Define __memrchr to memrchr.
66410         Guard weak_alias use with `#ifdef weak_alias'.
66411
66412 2000-10-21  Jim Meyering  <meyering@lucent.com>
66413
66414         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
66415         (dir_name): Use dir_name_r.
66416         * lib/dirname.h (dir_name_r): Declare it.
66417
66418 2000-10-17  Jim Meyering  <meyering@lucent.com>
66419
66420         * lib/quote.h (PARAMS): Define and use.
66421         Reported by Akim Demaille.
66422
66423         * lib/getopt.c: Update from libc.
66424
66425 2000-10-16  Jim Meyering  <meyering@lucent.com>
66426
66427         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
66428         setlocale.
66429         From Jan Fedak.
66430
66431 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
66432
66433         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
66434
66435 2000-09-25  Jim Meyering  <meyering@lucent.com>
66436
66437         * lib/md5.h (rol): Define (from GnuPG).
66438
66439         * lib/sha.c: Give credit (GnuPG) where due.
66440         (M): Use rol rather than open-coding it.
66441         Add a FIXME comment.
66442
66443 2000-09-21  Jim Meyering  <meyering@lucent.com>
66444
66445         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
66446         Reported by Michael Stone.
66447
66448 2000-09-20  Jim Meyering  <meyering@lucent.com>
66449
66450         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
66451         (noinst_HEADERS): Add sha.h.
66452         Based on code from Scott G. Miller and from GnuPG.
66453
66454 2000-09-18  Jim Meyering  <meyering@lucent.com>
66455
66456         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
66457         LIBS. Otherwise, everyone ends up linking with -lelf for some
66458         configurations.
66459         Reported by Mike Stone.
66460
66461 2000-09-15  Jim Meyering  <meyering@lucent.com>
66462
66463         * lib/regex.c: Update from libc.
66464
66465 2000-09-10  Jim Meyering  <meyering@lucent.com>
66466
66467         * lib/getopt.c (_getopt_internal): Update from glibc.
66468
66469 2000-09-09  Jim Meyering  <meyering@lucent.com>
66470
66471         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
66472         think it should be used as a general replacement for isascii.
66473         * lib/fnmatch.c: Likewise.
66474         * lib/mbswidth.c: Likewise
66475         * lib/regex.c: Likewise.
66476
66477         Don't use atoi.
66478         * lib/userspec.c: Include sys/param.h and limits.h.
66479         Include xstrtol.h.
66480         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66481         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
66482         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
66483         UID, GID.  Check range.
66484
66485 2000-09-06  Jim Meyering  <meyering@lucent.com>
66486
66487         * lib/getopt.c (_getopt_internal): Update from glibc.
66488
66489 2000-08-30  Jim Meyering  <meyering@lucent.com>
66490
66491         * lib/strftime.c: Merge in changes from GNU libc.
66492
66493 2000-08-26  Jim Meyering  <meyering@lucent.com>
66494
66495         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
66496         * m4/fpending.m4: New file.
66497
66498 2000-08-26  Jim Meyering  <meyering@lucent.com>
66499
66500         * lib/closeout.c: Include "__fpending.h".
66501         (close_stdout_status): Return right away if there's nothing to flush.
66502
66503         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
66504         * lib/__fpending.c: New file.
66505         * lib/__fpending.h: New file.
66506
66507 2000-08-20  Jim Meyering  <meyering@lucent.com>
66508
66509         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
66510         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
66511         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
66512
66513 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
66514
66515         Improve fileutils installation on systems where running
66516         programs (like install) can't be unlinked.
66517         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
66518         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
66519
66520 2000-08-07  Paul Eggert  <eggert@twinsun.com>
66521
66522         Standardize on "memory exhausted" instead of "Memory exhausted"
66523         or "virtual memory exhausted".
66524         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
66525         "virtual memory exhausted".
66526         * lib/same.c (same_name): Invoke xalloc_die instead of printing
66527         our own message.
66528         * lib/userspec.c (parse_user_spec): Likewise.
66529         * lib/bumpalloc.h: comment fix
66530         * lib/same.c, userspec.c: Include xalloc.h.
66531
66532         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66533         not char *const and pointing to a constant array.
66534         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66535         (xrealloc): Comment fix.
66536
66537         * lib/userspec.c (parse_user_spec):
66538         Don't translate a message until just before returning,
66539         to avoid unnecessary translation.
66540
66541 2000-08-07  Jim Meyering  <meyering@lucent.com>
66542
66543         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66544         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66545         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66546         getgroups.c, gethostname.c, getopt.h, group-member.c,
66547         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66548         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66549         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66550         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66551         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66552         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66553         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66554         yesno.c: Back out Copyright date changes for each file with no change
66555         this year.  This eases coordination with other programs using the same
66556         source code modules.  From Paul Eggert.
66557
66558 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66559
66560         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66561         not char, for compatibility with glibc 2.1.3 strftime.c.
66562
66563 2000-08-03  Greg McGary  <greg@mcgary.org>
66564
66565         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66566         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66567         (EXTEND_BUFFER): Use them.
66568
66569 2000-08-01  Jim Meyering  <meyering@lucent.com>
66570
66571         * lib/dirname.c (ISSLASH): Define.
66572         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66573         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66574         both `\' and `/' may be use as path separators.
66575         Based on a patch from Prashant TR.
66576
66577 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66578
66579         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66580         slot vector a constant, since it might get modified.
66581
66582 2000-07-31  Jim Meyering  <meyering@lucent.com>
66583
66584         * lib/xmalloc.c: Use `virtual memory exhausted', not
66585         `Memory exhausted'.
66586         * lib/obstack.c (print_and_abort): Likewise.
66587
66588 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66589
66590         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66591         buffer, so that the caller can always quote one small
66592         component of a "memory exhausted" message in slot 0.
66593         From a suggestion by Jim Meyering.
66594
66595 2000-07-30  Jim Meyering  <meyering@lucent.com>
66596
66597         * lib/makepath.c (make_path): Quote the other instance, too.
66598
66599         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66600         (STATIC_BUF_SIZE): Define.
66601         (quotearg_n_options): Use only statically allocated storage when
66602         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66603         than STATIC_BUF_SIZE.
66604
66605 2000-07-29  Jim Meyering  <meyering@lucent.com>
66606
66607         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66608         * lib/dirname.c (dir_name): Likewise.
66609
66610         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66611         `/'.
66612
66613         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66614         (dir_name): Assert that there are no trailing slashes.
66615
66616 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66617
66618         * lib/mbswidth.h (mbswidth): Add a flags argument.
66619         (mbswidth): New declaration.
66620         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66621         * lib/mbswidth.c (mbswidth): Add a flags argument.
66622         (mbsnwidth): New function.
66623
66624 2000-07-24  Jim Meyering  <meyering@lucent.com>
66625
66626         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66627
66628 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66629
66630         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66631
66632 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66633
66634         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66635         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66636         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66637         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66638         invoke multibyte primitives.
66639
66640 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66641
66642         * lib/quotearg.c:
66643         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66644         so that mbstate_t is always defined.
66645
66646         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66647         be 1 in at least one GCC installation, and this configuration
66648         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66649         performance on hosts that have mbrtowc but have only unibyte
66650         locales, but I assume these hosts are rare.
66651
66652 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66653
66654         * lib/mbswidth.c (_XOPEN_SOURCE):
66655         Don't define; this causes problems on Solaris 7.
66656         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66657
66658 2000-07-23  Jim Meyering  <meyering@lucent.com>
66659
66660         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66661         too: getgrgid, getpwuid, getuid.
66662
66663 2000-07-23  Jim Meyering  <meyering@lucent.com>
66664
66665         * lib/basename.c (base_name): Add an assertion.
66666
66667 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66668
66669         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66670         shadow its mbsinit function.
66671
66672 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66673
66674         * lib/mbswidth.h: New file.
66675         * lib/mbswidth.c: New file.
66676         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66677         (noinst_HEADERS): Add mbswidth.h.
66678
66679 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66680
66681         * lib/config.charset: Add support for FreeBSD. Improve support for
66682         HP-UX and IRIX 6.
66683
66684 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66685
66686         * m4/mbswidth.m4: New file.
66687         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66688
66689 2000-07-15  Jim Meyering  <meyering@lucent.com>
66690
66691         * lib/makepath.c: Include quote.h.
66692         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66693         corresponding argument in a `quote (...)' call.
66694         Give better diagnostics.
66695
66696         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66697         (noinst_HEADERS): Add quote.h.
66698
66699         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66700         from tar's src/misc.c.
66701         * lib/quote.h: New file.  Prototypes for same.
66702
66703 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66704
66705         From a suggestion by Bruno Haible.
66706         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66707         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66708         to decide whether to define the BeOS workaround macro;
66709         this adjusts to the change to AC_MBSTATE_T.
66710
66711 2000-07-14  Jim Meyering  <meyering@lucent.com>
66712
66713         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66714         jm_AC_TYPE_UINTMAX_T.
66715
66716 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66717
66718         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66719
66720         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
66721         quotearg_buffer_restyled): Add support for
66722         clocale_quoting_style.  Undo previous change to
66723         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
66724         and "{RIGHT QUOTATION MARK}" msgids.
66725
66726 2000-07-10  Paul Eggert  <eggert@twinsun.com>
66727
66728         From a suggestion by Bruno Haible.
66729         * m4/mbstate_t.m4 (AC_MBSTATE_T):
66730         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
66731         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
66732         and mbstate_t, to a single-part test that simply defines mbstate_t.
66733         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
66734         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
66735
66736 2000-07-10  Jim Meyering  <meyering@lucent.com>
66737
66738         * m4/strerror_r.m4: Mirror the correction made in autoconf.
66739
66740         * m4/gnu-source.m4: Output to confdefs.h directly.
66741         Suggestion from Akim Demaille.
66742
66743 2000-07-09  Paul Eggert  <eggert@twinsun.com>
66744
66745         The old behavior of quoting `like this' doesn't look good with
66746         newer, ISO-style fonts.  See:
66747         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
66748
66749         Instead, quote "like this" by default.  Let the translator
66750         tailor the locale-specific quoting behavior by providing
66751         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
66752
66753         * lib/quotearg.c (N_): New macro.
66754         (gettext_default): New function.
66755         (quotearg_buffer_restyled): Use
66756         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
66757         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
66758
66759 2000-07-09  Jim Meyering  <meyering@lucent.com>
66760
66761         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
66762         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
66763
66764         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
66765         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
66766
66767 2000-07-09  Jim Meyering  <meyering@lucent.com>
66768
66769         * lib/Most files: Update copyright dates to include 2000.
66770
66771 2000-07-08  Jim Meyering  <meyering@lucent.com>
66772
66773         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
66774         if not defined.
66775         (xgethostname): Remove now-unnecessary #ifdef.
66776         Move declaration of `err' into loop where it's used.
66777
66778 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66779         and Bruno Haible  <haible@clisp.cons.org>
66780
66781         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
66782         only if the test for an object-type mbstate_t fails.  This
66783         prevents us from mistakenly reporting that mbstate_t is a
66784         system object type after we "#define mbstate_t int" to work
66785         around its lack.
66786
66787 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66788         and Bruno Haible  <haible@clisp.cons.org>
66789
66790         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
66791
66792 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66793
66794         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
66795         to strerror_r.
66796         Include <ctype.h> for use of isalpha.
66797
66798 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66799
66800         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
66801         by allocating a larger buffer. Test the gethostname return value for
66802         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
66803         returns an error and ENAMETOOLONG isn't defined.
66804
66805 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66806
66807         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
66808         dimension.
66809
66810 2000-07-04  Jim Meyering  <meyering@lucent.com>
66811
66812         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
66813         of the deprecated AC_CHECKING.
66814
66815 2000-07-04  Jim Meyering  <meyering@lucent.com>
66816
66817         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
66818         Reported by Bruno Haible.
66819
66820 2000-07-04  Jim Meyering  <meyering@lucent.com>
66821
66822         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
66823         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
66824         lacks mbrtowc.
66825
66826 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66827
66828         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
66829         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
66830
66831 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66832         and Bruno Haible  <haible@clisp.cons.org>
66833
66834         * lib/quotearg.c (mbrtowc):
66835         Assign to *pwc, and return 1 only if result is nonzero.
66836         (iswprint): Use ISPRINT when substituting our own mbrtowc.
66837
66838 2000-07-03  Jim Meyering  <meyering@lucent.com>
66839
66840         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
66841
66842 2000-07-03  Jim Meyering  <meyering@lucent.com>
66843
66844         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
66845         This is necessary to get a definition of e.g., UTMP_FILE on
66846         HP-UX 10.20.
66847         From Bob Proulx.
66848
66849 2000-07-02  Jim Meyering  <meyering@lucent.com>
66850
66851         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
66852
66853         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
66854         AC_LIBOBJ(function_name).
66855         * m4/chown.m4: Likewise.
66856         * m4/fnmatch.m4: Likewise.
66857         * m4/ftruncate.m4: Likewise.
66858         * m4/getgroups.m4: Likewise.
66859         * m4/getline.m4: Likewise.
66860         * m4/group-member.m4: Likewise.
66861         * m4/jm-macros.m4: Likewise.
66862         * m4/lstat.m4: Likewise.
66863         * m4/malloc.m4: Likewise.
66864         * m4/memcmp.m4: Likewise.
66865         * m4/nanosleep.m4: Likewise.
66866         * m4/putenv.m4: Likewise.
66867         * m4/realloc.m4: Likewise.
66868         * m4/regex.m4: Likewise.
66869         * m4/stat.m4: Likewise.
66870         * m4/strftime.m4: Likewise.
66871
66872 2000-07-02  Jim Meyering  <meyering@lucent.com>
66873
66874         * lib/quotearg.c (mbstate_t): Don't define here.
66875
66876 2000-07-02  Jim Meyering  <meyering@lucent.com>
66877
66878         * lib/nanosleep.c (SIGCONT): Define if not already defined.
66879
66880 2000-07-01  Jim Meyering  <meyering@lucent.com>
66881
66882         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
66883
66884 2000-07-01  Jim Meyering  <meyering@lucent.com>
66885
66886         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
66887         problem.
66888
66889 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66890
66891         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
66892         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
66893
66894 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66895
66896         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
66897         per change in ../m4/ls-mntd-fs.m4.
66898         (read_filesystem_list): Ignore symbolic links.
66899
66900 2000-06-29  Jim Meyering  <meyering@lucent.com>
66901
66902         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
66903         for declaration of strcmp.
66904
66905         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
66906
66907         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
66908         Avoid warning by casting result to `char *' to remove `const'.
66909
66910 2000-06-28  Jim Meyering  <meyering@lucent.com>
66911
66912         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
66913         included by quotearg.c, for which we perform this test.  From
66914         Bruno Haible.
66915
66916 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66917
66918         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
66919         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
66920         <utmpx.h> exists, put readutmp.o into LIBOBJS.
66921
66922 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66923
66924         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
66925
66926 2000-06-26  Paul Eggert  <eggert@twinsun.com>
66927
66928         savedir now sets errno on failure and invokes xmalloc to get memory.
66929         Fix a couple of other minor bugs while we're at it.
66930
66931         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
66932         (NAMLEN): Remove macro.
66933         (malloc, realloc): Remove decls.
66934         (stpcpy): Likewise.
66935         ("xalloc.h"): Include.
66936         (NAME_SIZE_DEFAULT): New macro.
66937         (savedir): Use xmalloc / xrealloc to allocate memory.
66938         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
66939         Skip "" directory entries.
66940         Use strlen to calculate directory entry length, since the old method
66941         is rarely used these days and isn't worth supporting.
66942         Don't use a pointer after freeing it.
66943         Check for integer overflow when calculating allocation size.
66944         Use memcpy to copy entries, instead of stpcpy.
66945         Set errno properly when returning NULL.
66946         Check for readdir error.
66947
66948 2000-06-26  Jim Meyering  <meyering@lucent.com>
66949
66950         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
66951
66952 2000-06-25  Jim Meyering  <meyering@lucent.com>
66953
66954         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
66955         Linux header bug when _XOPEN_SOURCE is defined to 500.
66956
66957 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66958
66959         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
66960         deficiency.
66961
66962 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66963
66964         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
66965         Include xalloc.h.
66966         Don't include <stdlib.h>.  Don't declare malloc, realloc.
66967
66968 2000-06-24  Jim Meyering  <meyering@lucent.com>
66969
66970         * m4/strerror_r.m4: Revive this file -- to try out an experimental
66971         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
66972         for which strerror does return char*, but which lacks a conveniently
66973         accessible declaration of the function.  If the compile-test says
66974         strerror_r doesn't work, then resort to a `run'-test that works on
66975         BeOS and segfaults on DEC Unix.
66976
66977 2000-06-24  Jim Meyering  <meyering@lucent.com>
66978
66979         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
66980
66981 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66982
66983         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
66984         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
66985
66986 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66987
66988         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
66989         (mbrtowc, mbstate_t): Define substitutes if
66990         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
66991         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
66992         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
66993
66994 2000-06-23  Jim Meyering  <meyering@lucent.com>
66995
66996         * m4/afs.m4: Add missing AC_MSG_RESULT.
66997         Reported by Bruno Haible.
66998
66999         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
67000         Suggestion from Bruno Haible.
67001
67002 2000-06-23  Jim Meyering  <meyering@lucent.com>
67003
67004         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
67005
67006 2000-06-21  Jim Meyering  <meyering@lucent.com>
67007
67008         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
67009
67010 2000-06-21  Jim Meyering  <meyering@lucent.com>
67011
67012         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
67013         (noinst_HEADERS): Add getstr.h.
67014
67015         * lib/getline.c (getstr): Move into a separate file.
67016         * lib/getstr.c (getstr): New file, extracted from getline.c, with
67017         the following changes: new parameter, delim2; both delim[12]
67018         parameters have type `int', not `char'.  The latter would lose
67019         with 8-bit delimiters.
67020         * lib/getstr.h: New file.
67021
67022 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67023
67024         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
67025         than 1024, return a memory chunk of least possible size, instead
67026         of size PATH_MAX + 2. In the loop, increment the size proportionally.
67027         Use free/xmalloc instead of xrealloc to avoid copying for very long
67028         paths.
67029
67030 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67031
67032         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
67033         the empty string.
67034
67035 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67036
67037         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
67038         address, not strdup.  Include <stdlib.h> and don't declare free().
67039
67040 2000-06-19  Jim Meyering  <meyering@lucent.com>
67041
67042         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
67043
67044 2000-06-18  Jim Meyering  <meyering@lucent.com>
67045
67046         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
67047
67048         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
67049         `checking whether...' message to be consistent with that of the
67050         lstat test.
67051
67052 2000-06-18  Jim Meyering  <meyering@lucent.com>
67053
67054         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
67055         Besides, these days every porting target provides a mkdir function.
67056
67057         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
67058         needed. (this snippet comes from src/system.h).
67059
67060 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
67061
67062         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
67063
67064 2000-06-15  Paul Eggert  <eggert@twinsun.com>
67065
67066         * lib/human.c (adjust_value): New function.
67067         (human_readable_inexact): Apply rounding style even when
67068         printing approximate values.
67069
67070 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67071
67072         * lib/human.c (human_readable_inexact): Allow an input block
67073         size that is not a multiple of the output block size, and vice versa.
67074         Reported by Piergiorgio Sartor.
67075
67076 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67077
67078         * lib/getdate.y (get_date): Apply relative times after time
67079         zone indicator, not before.  Reported by Todd A. Jacobs.
67080
67081 2000-06-13  Jim Meyering  <meyering@lucent.com>
67082
67083         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
67084
67085         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
67086
67087 2000-06-12  Paul Eggert  <eggert@twinsun.com>
67088
67089         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
67090
67091 2000-06-12  Jim Meyering  <meyering@lucent.com>
67092
67093         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
67094         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
67095         optional argument.
67096         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
67097         the optional argument, `lib'.
67098
67099 2000-06-08  Jim Meyering  <meyering@lucent.com>
67100
67101         * m4/largefile.m4: Remove file (now that it's part of autoconf).
67102
67103 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67104
67105         Rewrite largefile configuration so that we don't need to run
67106         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
67107         AC_CANONICAL_HOST in configure.in -- jmm]
67108
67109         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
67110         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
67111         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
67112         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
67113         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
67114         All uses changed.
67115         Instead of inspecting the output of getconf, try to compile the
67116         test program without and with the macro definition.
67117         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
67118         for getconf.  Instead, check for the needed flags by compiling
67119         test programs.
67120
67121 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67122
67123         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
67124
67125 2000-06-04  Jim Meyering  <meyering@lucent.com>
67126
67127         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
67128         SunOS 4.1.4 for which gid_t is an unsigned type.
67129
67130 2000-06-03  Jim Meyering  <meyering@lucent.com>
67131
67132         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
67133         now that autoconf requires that.
67134
67135         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
67136         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
67137         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
67138
67139 2000-06-03  Jim Meyering  <meyering@lucent.com>
67140
67141         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
67142
67143 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67144
67145         * m4/glibc21.m4: New file.
67146         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
67147
67148 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67149
67150         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
67151         newer, don't install charset.alias.
67152         * lib/config.charset: Change the Linux/glibc rules so they become empty
67153         on glibc-2.1 or newer.
67154
67155 2000-06-02  Jim Meyering  <meyering@lucent.com>
67156
67157         * lib/mountlist.c: Back out last change.  Instead, do this...
67158         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
67159         me_dummy member using the same `ignore'-testing code.
67160         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
67161         fs_type strings.
67162         From Mark D. Roth.
67163
67164 2000-05-29  Jim Meyering  <meyering@lucent.com>
67165
67166         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
67167         mounts with the `ignore' attribute.  Based on a patch from
67168         Mark D. Roth.
67169
67170 2000-05-28  Jim Meyering  <meyering@lucent.com>
67171
67172         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
67173         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67174         * m4/stat.m4: Likewise.
67175         * m4/lstat.m4: Likewise.
67176         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
67177
67178         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
67179         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
67180
67181 2000-05-26  Jim Meyering  <meyering@lucent.com>
67182
67183         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
67184
67185 2000-05-24  Jim Meyering  <meyering@lucent.com>
67186
67187         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
67188         autoconf requires that.
67189         * m4/lib-check.m4: Likewise.
67190         * m4/jm-macros.m4: Likewise.
67191         * m4/strftime.m4: Likewise.
67192
67193         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
67194         AC_CHECK_DECLS, now that autoconf requires that.
67195
67196 2000-05-22  Jim Meyering  <meyering@lucent.com>
67197
67198         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67199         * m4/lstat.m4: Likewise.
67200
67201 2000-05-22  Jim Meyering  <meyering@lucent.com>
67202
67203         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
67204
67205 2000-05-20  Jim Meyering  <meyering@lucent.com>
67206
67207         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
67208         (jm_PREREQ): Use it.
67209
67210 2000-05-18  Jim Meyering  <meyering@lucent.com>
67211
67212         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
67213         back, too, since it may have been modified by allocate_entry.
67214         (hash_delete): Rewrite to use neither the assignment operator
67215         nor the comma operator in an if-expression.
67216
67217 2000-05-15  Paul Eggert  <eggert@twinsun.com>
67218
67219         * lib/closeout.c:
67220         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
67221         Remove; no longer needed.
67222         "quotearg.h": Add include.
67223         (file_name): Do not bother to explicitly initialize to NULL; it's less
67224         efficient on some hosts.
67225         (close_stdout_status): Remove test as to whether stdout was already
67226         closed; it breaks for the case "echo x | sort >&-".
67227         Quote file name colons.
67228         Do not assume that _("write error") lacks format strings.
67229
67230 2000-05-15  Jim Meyering  <meyering@lucent.com>
67231
67232         * lib/version-etc.c (version_etc_copyright): Update the copyright
67233         string used in all --version output.
67234
67235 2000-05-14  Jim Meyering  <meyering@lucent.com>
67236
67237         * lib/closeout.c (close_stdout_set_file_name): New function.
67238         (close_stdout_status): Use new file-scoped global.
67239         Return right away if fstat says the stdout file descriptor is invalid.
67240         * lib/closeout.h (close_stdout_set_file_name): Declare.
67241
67242 2000-05-10  Jim Meyering  <meyering@lucent.com>
67243
67244         * lib/closeout.c [default_exit_status]: New file-scoped variable.
67245         (close_stdout_set_status): New function.
67246         * lib/closeout.h (close_stdout_set_status): Declare.
67247
67248 2000-05-09  Jim Meyering  <meyering@lucent.com>
67249
67250         * m4/gettext.m4: Rename this...
67251         * m4/libintl.m4: ...to this.
67252
67253 2000-05-08  Jim Meyering  <meyering@lucent.com>
67254
67255         * lib/long-options.c: Don't include closeout.h.
67256         (parse_long_options): Don't call close_stdout for --version.
67257
67258 2000-05-06  Paul Eggert  <eggert@twinsun.com>
67259
67260         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
67261         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
67262         2.1.3 bug.  This avoids a clash when files like regex.c define
67263         _GNU_SOURCE.
67264
67265 2000-05-06  Jim Meyering  <meyering@lucent.com>
67266
67267         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
67268         (AC_REPLACE_FUNCS): Add strnlen.
67269
67270         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
67271         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
67272
67273         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
67274         AC_SEARCH_LIBS call for nanosleep.
67275         (LIB_NANOSLEEP): Set and AC_SUBST.
67276
67277 2000-05-06  Jim Meyering  <meyering@lucent.com>
67278
67279         * lib/strnlen.c: Undefine __strnlen and strnlen.
67280         [!weak_alias]: Define __strnlen to strnlen.
67281
67282         * lib/atexit.c: New file, from libiberty.
67283
67284 2000-05-06  Jim Meyering  <meyering@lucent.com>
67285
67286         * lib/closeout.c (close_stdout_status): Also check for errors on the
67287         stderr stream.
67288
67289 2000-05-05  Jim Meyering  <meyering@lucent.com>
67290
67291         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
67292         AC_SEARCH_LIBS call for clock_gettime.
67293         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
67294
67295         * m4/search-libs.m4: Update from autoconf.
67296
67297         su doesn't work on Solaris 2.6.
67298         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
67299         <shadow.h>.  Reported by Dragos Harabor.
67300
67301 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
67302
67303         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
67304         memcpy instead of xmalloc, xrealloc, path_concat.
67305         (locale_charset): Treat empty environment variables as absent.
67306         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
67307
67308 2000-05-04  Jim Meyering  <meyering@lucent.com>
67309
67310         * lib/getopt.c: Update from glibc.
67311         * lib/obstack.c: Likewise.
67312         * lib/obstack.h: Likewise.
67313         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
67314         file
67315
67316         * lib/regex.h: Likewise.
67317         * lib/strndup.c: Likewise.
67318         * lib/strnlen.c: New file, from glibc.
67319
67320 2000-05-03  Jim Meyering  <meyering@lucent.com>
67321
67322         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
67323
67324 2000-05-02  Paul Eggert  <eggert@twinsun.com>
67325
67326         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
67327         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
67328         compile-time test, rather than inspecting host and OS, to
67329         decide whether to define _LARGEFILE_SOURCE.
67330
67331 2000-05-01  Jim Meyering  <meyering@lucent.com>
67332
67333         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
67334
67335         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
67336         Based on a patch from Bruno Haible.
67337
67338 2000-05-01  Jim Meyering  <meyering@lucent.com>
67339
67340         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
67341
67342 2000-04-29  Jim Meyering  <meyering@lucent.com>
67343
67344         * lib/path-concat.c: Declare strdup only if it's not defined.
67345         * lib/canon-host.c: Likewise.
67346
67347 2000-04-28  Jim Meyering  <meyering@lucent.com>
67348
67349         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
67350         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
67351         is included first, then limits.h is included by locale.h by libintl.h.
67352         From John David Anglin.
67353
67354 2000-04-25  Jim Meyering  <meyering@lucent.com>
67355
67356         * lib/makepath.c (S_IRWXUGO): Define.
67357         (make_path): Always perform explicit chmod if MODE specifies any
67358         of the `special' permission bits.  Prompted by a bug report against
67359         install from Mate Wierdl and Joost van Baal.
67360
67361 2000-04-18  Jim Meyering  <meyering@lucent.com>
67362
67363         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
67364         (jm_PREREQ): Use it.
67365
67366 2000-04-18  Jim Meyering  <meyering@lucent.com>
67367
67368         * lib/README: New file.
67369
67370         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
67371         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
67372
67373 2000-04-17  Jim Meyering  <meyering@lucent.com>
67374
67375         Get it right :-)
67376         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
67377         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
67378         Suggestion from Akim Demaille.
67379
67380 2000-04-17  Jim Meyering  <meyering@lucent.com>
67381
67382         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
67383         the definition of it to rpl_strftime also defined-away the system's
67384         declaration.
67385
67386 2000-04-15  Jim Meyering  <meyering@lucent.com>
67387
67388         Use `C' to denote so-called `contiguous' files, the same way
67389         that tar does.
67390         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
67391         (ftypelet): Use S_ISCTG.
67392         From Michael Deutschmann.
67393
67394 2000-04-14  Jim Meyering  <meyering@lucent.com>
67395
67396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
67397         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
67398         clobbered.
67399
67400 2000-04-14  Jim Meyering  <meyering@lucent.com>
67401
67402         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
67403
67404 2000-04-13  Jim Meyering  <meyering@lucent.com>
67405
67406         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
67407         AH_VERBATIM to insert required #ifndef into config.h.in.
67408         Suggestion from Akim Demaille.
67409
67410 2000-04-12  Jim Meyering  <meyering@lucent.com>
67411
67412         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
67413         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
67414         Christian Krackowizer.
67415
67416         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
67417         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
67418         (AC_SYS_LARGEFILE): Require.
67419         (AM_C_PROTOTYPES): Require.
67420
67421 2000-04-08  Jim Meyering  <meyering@lucent.com>
67422
67423         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
67424         names don't conflict.  Reported by Eli Zaretskii.
67425
67426 2000-04-07  Jim Meyering  <meyering@lucent.com>
67427
67428         * lib/putenv.c: Move inclusion of errno.h so it follows that of
67429         sys/types.h, to work around system header problems on AIX 3.2.5.
67430         From Bruno Haible.
67431
67432 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
67433
67434         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
67435         bug.  Deal with the different error behavior of Irix iconv.
67436
67437 2000-04-05  Paul Eggert  <eggert@twinsun.com>
67438
67439         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
67440         IRIX if the installer said otherwise.
67441
67442 2000-04-05  Jim Meyering  <meyering@lucent.com>
67443
67444         Portability tweaks required for ultrix4.3.
67445         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
67446         (jm_CHECK_DECLS): Add getutent to the list of functions.
67447         (_jm_DECL_HEADERS): Add utmpx.h.
67448         From John David Anglin.
67449
67450         * m4/strftime.m4: Back out the 2000-04-02 change.
67451         Instead of that change, simply undefine putenv in the test program.
67452
67453 2000-04-05  Jim Meyering  <meyering@lucent.com>
67454
67455         Portability tweaks required for ultrix4.3.
67456         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
67457         getutent.
67458         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
67459         * lib/canon-host.c: Declare strdup.
67460         * lib/path-concat.c: Likewise.
67461         From John David Anglin.
67462
67463 2000-04-04  Jim Meyering  <meyering@lucent.com>
67464
67465         Be more DOS 8.3-friendly.
67466         * lib/ref-add.sin: Renamed from ref-add.sed.in.
67467         * lib/ref-del.sin: Renamed from ref-del.sed.in.
67468         * lib/Makefile.am: Reflect renaming.
67469         Reported by Eli Zaretskii.
67470
67471         Use a temporary file name that won't clash with `charset.alias'
67472         in the DOS 8.3 name space.
67473         * lib/Makefile.am (charset_tmp): Define.
67474         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
67475         (uninstall-local): Likewise.
67476         Reported by Eli Zaretskii.
67477
67478 2000-04-03  Jim Meyering  <meyering@lucent.com>
67479
67480         * m4/gettext.m4: Fix typo in comment.
67481
67482         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
67483         textutils/configure.in).  Suggestion from Paul Eggert.
67484         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
67485
67486 2000-04-02  Paul Eggert  <eggert@twinsun.com>
67487
67488         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
67489         variable in the shell rather than using putenv, which isn't
67490         portable.  This avoids the configure-time inter-test dependency
67491         on the potentially-renamed putenv function.
67492
67493 2000-03-30  Paul Eggert  <eggert@twinsun.com>
67494
67495         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
67496         before checking struct stat.st_blksize, so that
67497         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
67498
67499 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67500
67501         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
67502         since strftime.c uses HAVE_STRFTIME to decide whether to use
67503         the underlying strftime.
67504
67505 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67506
67507         * lib/time/strftime.c (my_strftime): Make sure we call the system
67508         strftime, not ourselves, when invoking the underlying strftime.
67509
67510 2000-03-24  Jim Meyering  <meyering@lucent.com>
67511
67512         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
67513         (charset_alias): Define.
67514         (install-exec-local): Factor out common code.
67515         (uninstall-local): Split lines longer than 80.
67516         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
67517         (SUFFIXES): Define.
67518         (.sed.in.sed): New rule.  Don't redirect directly to $@.
67519         (CLEANFILES): Add ref-add.sed and ref-del.sed.
67520
67521 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
67522
67523         * lib/config.charset: Output a line containing "Packages using this
67524         file".
67525         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
67526         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
67527         ref-del.sed): New rules.
67528
67529 2000-03-17  Jim Meyering  <meyering@lucent.com>
67530
67531         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67532         Otherwise, include <strings.h>
67533
67534 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67535
67536         * lib/unicodeio.c (utf8_wctomb): New function.
67537         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67538         format instead of in UCS-4 with platform dependent endianness.
67539
67540 2000-03-10  Jim Meyering  <meyering@lucent.com>
67541
67542         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67543         From Marco Franzen.
67544
67545 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67546
67547         * lib/savedir.c (savedir): Work even if directory size is
67548         negative; this can happen with some screwy NFS configurations.
67549
67550 2000-03-06  Jim Meyering  <meyering@lucent.com>
67551
67552         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67553         if it's NULL (because we ran out of memory).  From Bruno Haible.
67554
67555 2000-03-05  Jim Meyering  <meyering@lucent.com>
67556
67557         * lib/localcharset.c ("path-concat.h"): Include.
67558         (get_charset_aliases): Use path_concat instead of ANSI string
67559         concatenation.
67560
67561         * lib/unicodeio.h (PARAMS): Define.
67562         Use it to guard prototype.
67563
67564 2000-03-04  Jim Meyering  <meyering@lucent.com>
67565
67566         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67567         for lib/localcharset.c.
67568
67569 2000-03-04  Jim Meyering  <meyering@lucent.com>
67570
67571         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67572         installing into it.
67573         (uninstall-local): Uncomment this rule so `make distcheck' works
67574         once again.
67575
67576         * lib/unicodeio.c (<errno.h>): Include it.
67577         (errno): Declare if not defined.
67578
67579         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67580
67581         * lib/config.charset: New version, incorporating remarks from a linux
67582         i18n mailing list.  From Bruno Haible.
67583
67584 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67585
67586         * m4/codeset.m4: New file.
67587         * m4/iconv.m4: New file.
67588         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67589
67590 2000-03-03  Jim Meyering  <meyering@lucent.com>
67591
67592         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67593
67594 2000-03-02  Jim Meyering  <meyering@lucent.com>
67595
67596         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67597         the messages come out on separate lines.
67598
67599         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67600         rather than jm_CHECK_DECLARATIONS.
67601         * m4/decl.m4: Remove now-unused file.
67602
67603         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67604         geteuid.
67605
67606 2000-03-02  Jim Meyering  <meyering@lucent.com>
67607
67608         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67609
67610 2000-03-01  Jim Meyering  <meyering@lucent.com>
67611
67612         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67613         * lib/unicodeio.c: Likewise.
67614
67615 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67616
67617         * lib/config.charset: New file.
67618         * lib/localcharset.c: New file.
67619         * lib/unicodeio.h, lib/unicodeio.c: New files.
67620         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67621         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67622         (noinst_HEADERS): Add unicodeio.h.
67623         (all-local, install-exec-local, charset.alias): New targets.
67624
67625 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67626
67627         * lib/quotearg.c (ALERT_CHAR): New macro.
67628         (quotearg_buffer_restyled): Use it.
67629
67630 2000-02-27  Jim Meyering  <meyering@lucent.com>
67631
67632         * m4/check-decl.m4: Add getenv to the list.
67633
67634 2000-02-27  Jim Meyering  <meyering@lucent.com>
67635
67636         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67637         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67638
67639         * lib/backupfile.c: Guard inclusion of stdlib.h with
67640         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67641         Declare malloc if needed.
67642
67643         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67644         `#ifndef HAVE_DECL..'
67645         now that autoconf always defines the HAVE_DECL_ symbols.
67646         * lib/human.c: Likewise.
67647         * lib/same.c: Likewise.
67648         * lib/strtoumax.c: Likewise.
67649
67650         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67651         declaration check was not run.
67652         * lib/hash.c: Likewise.
67653         * lib/human.c: Likewise.
67654         * lib/same.c: Likewise.
67655         * lib/strtoumax.c: Likewise.
67656
67657         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67658         `.', then first look up the entire `.'-containing string as a login
67659         name.
67660
67661 2000-02-23  Jim Meyering  <meyering@lucent.com>
67662
67663         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67664         in place of my hack.
67665
67666 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67667
67668         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67669         (textint): New typedef.
67670         (parser_control): Member year changed from int to textint.
67671         All uses changed.
67672         (YYSTYPE): Removed; replaced by %union with int and textint members.
67673         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67674         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67675         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67676         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67677         (date, number, to_year): Use width of number in digits, not its value,
67678         to determine whether it's a 2-digit year, or a 2-digit time.
67679         (yylex): Store number of digits of numeric tokens.
67680         Reported by John Kendall.
67681
67682         (parser_control): Changed from struct parser_control to typedef (for
67683         consistency).  All uses changed.
67684
67685         (tID): Removed; not used.
67686         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67687
67688 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67689
67690         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67691         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67692
67693 2000-02-12  Jim Meyering  <meyering@lucent.com>
67694
67695         * lib/userspec.c (ISDIGIT): Define it.
67696         (isdigit): Remove definition.
67697         (is_number): Use ISDIGIT, not isdigit.
67698         <libintl.h>: Include.
67699         (_ and N_): Define.
67700         (parse_user_spec): Mark translatable strings.
67701
67702 2000-02-10  Jim Meyering  <meyering@lucent.com>
67703
67704         With these changes, nanosleep.[ch] are finally enough like the other
67705         lib/* replacement files to compile on a few more losing systems.
67706
67707         * lib/nanosleep.h: Don't include config.h.
67708         Remove prototype from declaration of nanosleep.
67709         (PARAMS): Remove now-unneeded definition.
67710         * lib/nanosleep.c: #undef nanosleep.
67711         (rpl_nanosleep): Rename from nanosleep.
67712
67713 2000-02-10  Jim Meyering  <meyering@lucent.com>
67714
67715         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67716         gnu_nanosleep to rpl_nanosleep.
67717
67718 2000-02-09  Jim Meyering  <meyering@lucent.com>
67719
67720         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
67721         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
67722
67723 2000-02-08  Akim Demaille  <akim@epita.fr>
67724
67725         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
67726         `[' and `]' and remove uses of `changequote'.
67727         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
67728         (AC_SYS_LARGEFILE): Likewise.
67729         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67730         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
67731         of changequote.
67732         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
67733         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
67734         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
67735         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
67736
67737 2000-02-05  Jim Meyering  <meyering@lucent.com>
67738
67739         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
67740         Remove explicit use of AC_HEADER_TIME.  It is required by
67741         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
67742         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
67743         in autoconf whereby the expansion of the latter ended up preceding
67744         the expansion of its prerequisite, AC_HEADER_TIME.
67745         Reported by Volker Borchert.
67746
67747 2000-02-03  Jim Meyering  <meyering@lucent.com>
67748
67749         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
67750
67751 2000-02-03  Jim Meyering  <meyering@lucent.com>
67752
67753         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
67754         rather than with `#if HAVE_UTMPNAME'.
67755
67756 2000-02-02  Jim Meyering  <meyering@lucent.com>
67757
67758         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
67759         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
67760         Reported by Eli Zaretskii.
67761
67762 2000-02-01  Jim Meyering  <meyering@lucent.com>
67763
67764         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
67765
67766 2000-01-31  Jim Meyering  <meyering@lucent.com>
67767
67768         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
67769         functions.  Add the time.h and sys/time.h headers along with the
67770         AC_REQUIRE'ment of AC_HEADER_TIME.
67771
67772 2000-01-31  Jim Meyering  <meyering@lucent.com>
67773
67774         * lib/nanosleep.h (nanosleep): Guard declaration with
67775         `#if ! HAVE_DECL_NANOSLEEP'.
67776         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
67777         the declaration in that vendor's sys/timers.h.
67778         Reported by Christian Krackowizer.
67779
67780         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
67781         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
67782         (ISPRINT): Likewise.
67783         Reported by Tom Tromey.
67784
67785 2000-01-30  Jim Meyering  <meyering@lucent.com>
67786
67787         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
67788
67789         * m4/prereq.m4 (utmp_includes): Define.
67790         Check for ut_user and ut_name members in both struct utmpx
67791         and struct utmp.
67792
67793 2000-01-30  Jim Meyering  <meyering@lucent.com>
67794
67795         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
67796         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
67797         header files where only utmpx.ut_user is declared.
67798
67799         * lib/readutmp.h (UT_USER): Define.
67800
67801 2000-01-29  Jim Meyering  <meyering@lucent.com>
67802
67803         * m4/lib-check.m4: New file containing library-related checks from
67804         fileutils and sh-utils (textutils had none).
67805
67806 2000-01-28  Jim Meyering  <meyering@lucent.com>
67807
67808         * m4/perl.m4: Change format of warning message to look more like that
67809         from the missing script.  Suggestion from François Pinard.
67810
67811 2000-01-25  Jim Meyering  <meyering@lucent.com>
67812
67813         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
67814         well as time.h in the compile check.
67815         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
67816         Fix typo in cross-compiling case: s/yes/no/.
67817
67818 2000-01-23  Jim Meyering  <meyering@lucent.com>
67819
67820         * m4/jm-macros.m4: Move df-related tests here from
67821         fileutils/configure.in
67822
67823         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
67824         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
67825
67826         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
67827         s/space/ac_fsusage_space/.
67828         (jm_FILE_SYSTEM_USAGE): Take two parameters.
67829
67830         * m4/ftruncate.m4: New file (derived from part of
67831         fileutils/configure.in).
67832         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
67833         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
67834
67835         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
67836         AC_SUBST these here, rather than just in sh-util/configure.in, so
67837         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
67838         all the same.
67839         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
67840         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
67841         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
67842         (AC_SUBST(POW_LIBM)): Likewise.
67843         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
67844
67845 2000-01-23  Jim Meyering  <meyering@lucent.com>
67846
67847         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
67848         obstack.c.
67849
67850 2000-01-22  Jim Meyering  <meyering@lucent.com>
67851
67852         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
67853
67854         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
67855
67856         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
67857         configure.in
67858         (AC_CHECK_HEADERS): Likewise for sh-utils.
67859         (AC_CHECK_HEADERS): Likewise for textutils.
67860         Merge the three lists of headers.
67861
67862         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
67863         from fileutils' configure.in.
67864
67865         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
67866         code. Moved tests into their own function (_jm_DECL_HEADERS) in
67867         check-decl.m4.
67868
67869         * m4/check-decl.m4: Use #if rather than #ifdef.
67870         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
67871         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
67872         (_jm_DECL_HEADERS): Define new function.
67873         (jm_CHECK_DECLARATIONS): Require it.
67874
67875 2000-01-22  Jim Meyering  <meyering@lucent.com>
67876
67877         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
67878         [! HAVE_DECL_STRTOULL]: Declare strtoull.
67879         Required for some AIX systems.  Reported by Christian Krackowizer.
67880         [TESTING] (main): New function.
67881
67882         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
67883         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
67884         letters.
67885
67886         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
67887         iswprint.
67888
67889         * lib/strverscmp.c (ISDIGIT): Define.
67890         (strverscmp): Use ISDIGIT, not isdigit.
67891
67892 2000-01-19  Jim Meyering  <meyering@lucent.com>
67893
67894         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
67895         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
67896         defines `struct timespec' in <sys/time.h>
67897
67898         * m4/c-bs-a.m4: Remove uses of changequote altogether.
67899         Thanks to Akim for explaining.
67900
67901 2000-01-17  Paul Eggert  <eggert@twinsun.com>
67902
67903         * lib/nanosleep.c (nanosleep):
67904         Don't use SA_INTERRUPT to decide whether to call sigaction, as
67905         POSIX.1 doesn't require SA_INTERRUPT and some systems
67906         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
67907         it's been part of POSIX.1 since day 1 (in 1988).
67908
67909 2000-01-17  Jim Meyering  <meyering@lucent.com>
67910
67911         * lib/interlock: Remove unused file.  Reported by François Pinard.
67912
67913 2000-01-16  Paul Eggert  <eggert@twinsun.com>
67914
67915         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
67916         alert, backslash, formfeed, and vertical tab unnecessarily in
67917         shell quoting style.
67918
67919 2000-01-16  Jim Meyering  <meyering@lucent.com>
67920
67921         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
67922         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
67923         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
67924         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
67925
67926 2000-01-16  Jim Meyering  <meyering@lucent.com>
67927
67928         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
67929         because the latter didn't work.
67930
67931 2000-01-15  Jim Meyering  <meyering@lucent.com>
67932
67933         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
67934         (AC_REPLACE_FUNCS): Add memcpy and memset.
67935         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
67936         Add strpbrk.
67937         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
67938
67939 2000-01-12  Jim Meyering  <meyering@lucent.com>
67940
67941         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
67942         (jm_PREREQ): Use it.
67943         (jm_PREREQ_READUTMP): New macro.
67944         (jm_PREREQ): Use it.
67945
67946 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67947
67948         Quote multibyte characters correctly.
67949         * m4/c-bs-a.m4: New file.
67950         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
67951         (jm_PREREQ): Use it.
67952
67953 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67954
67955         * m4/uintmax_t.m4: Port to autoconf 2.13.
67956
67957 2000-01-08  Jim Meyering  <meyering@ascend.com>
67958
67959         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
67960         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
67961
67962 2000-01-04  Jim Meyering  <meyering@ascend.com>
67963
67964         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
67965         jm_STRUCT_DIRENT_D_TYPE.
67966         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
67967         jm_STRUCT_DIRENT_D_INO.
67968         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
67969         jm_STRUCT_UTIMBUF.
67970         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
67971         renamings.
67972         * m4/utime.m4: Likewise.
67973
67974         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
67975         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
67976
67977 2000-01-03  Paul Eggert  <eggert@twinsun.com>
67978
67979         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
67980         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
67981
67982 2000-01-02  Jim Meyering  <meyering@ascend.com>
67983
67984         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
67985         remember if this is necessary.
67986
67987 1999-12-26  Jim Meyering  <meyering@ascend.com>
67988
67989         * m4/jm-macros.m4: Use it here.
67990         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
67991
67992 1999-12-23  Jim Meyering  <meyering@ascend.com>
67993
67994         * m4/jm-macros.m4: Check for clock_gettime (moved from
67995         fileutils/configure.in)
67996         Check for gettimeofday.
67997
67998 1999-12-20  Jim Meyering  <meyering@ascend.com>
67999
68000         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
68001         autoconf-2.14a-1999-12-20.
68002
68003 1999-12-19  Jim Meyering  <meyering@ascend.com>
68004
68005         * m4/lstat-slash.m4: New file.
68006         * m4/jm-macros.m4: Use the new macro:
68007         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68008
68009 1999-12-07  Jim Meyering  <meyering@ascend.com>
68010
68011         * m4/perl.m4: Require that File::Compare be available, too.
68012         Too many systems seem to lack it.
68013
68014         * m4/strftime.m4: Add checks for most of the cpp macros tested in
68015         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
68016
68017 1999-11-18  Paul Eggert  <eggert@twinsun.com>
68018
68019         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
68020         problem with the QNX 4.25 shell, which doesn't propagate exit
68021         status of failed commands inside shell assignments.
68022
68023 1999-11-17  Jim Meyering  <meyering@ascend.com>
68024
68025         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
68026
68027 1999-11-07  Jim Meyering  <meyering@ascend.com>
68028
68029         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
68030
68031 1999-11-06  Jim Meyering  <meyering@ascend.com>
68032
68033         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
68034         * m4/jm-macros.m4 (jm_MACROS): Use it here.
68035
68036 1999-11-05  Jim Meyering  <meyering@ascend.com>
68037
68038         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
68039         configure.in of textutils, fileutils, and sh-utils into this one
68040         (shared between those packages) file.
68041         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
68042         AC_STRUCT_ST_BLKSIZE.
68043
68044 1999-11-03  Jim Meyering  <meyering@ascend.com>
68045
68046         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
68047         of AC_CHECK_TYPE checks includes unistd.h.
68048         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
68049         Suggestion from Akim Demaille.
68050
68051 1999-10-30  Jim Meyering  <meyering@ascend.com>
68052
68053         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
68054         m4-quoted string.
68055         * m4/ls-mntd-fs.m4: Likewise.
68056         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
68057         * m4/jm-winsz1.m4: Likewise.
68058
68059         * m4/const.m4: Remove file, since the fix made it into the experimental
68060         version of autoconf.
68061         * m4/mktime.m4: Likewise.
68062
68063         * m4/check-type.m4: Remove file, now that the latest version of
68064         AC_CHECK_TYPE takes a third arg to specify additional #includes.
68065
68066         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
68067         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
68068         AC_CHECK_TYPE.
68069
68070 1999-10-04  Jim Meyering  <meyering@ascend.com>
68071
68072         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
68073
68074 1999-09-22  Paul Eggert  <eggert@twinsun.com>
68075
68076         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
68077         2.95.1 bug with HP-UX 10.20.
68078
68079 1999-09-17  Jim Meyering  <meyering@ascend.com>
68080
68081         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
68082         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
68083         due to missing strdup (against sh-utils-2.0).
68084
68085 1999-08-29  Jim Meyering  <meyering@ascend.com>
68086
68087         * m4/jm-macros.m4: Require jm_BISON.
68088         * m4/bison.m4: New file.
68089
68090 1999-08-17  Paul Eggert  <eggert@twinsun.com>
68091
68092         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
68093         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
68094
68095 1999-08-05  Jim Meyering  <meyering@ascend.com>
68096
68097         * m4/getline.m4: Rename test file from conftestdata to conftest.data
68098         to avoid conflicts with `conftest' on 8+3 filesystems.
68099         Suggestion from Eli Zaretskii.
68100
68101 1999-08-04  Jim Meyering  <meyering@ascend.com>
68102
68103         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
68104         fileutils and sh-utils (textutils's getline test was inadequate).
68105         (AM_FUNC_GETLINE): Run this test.
68106         (AC_CHECK_FUNCS): Check for getdelim.
68107         Reported by Bob Proulx.
68108
68109 1999-08-02  Jim Meyering  <meyering@ascend.com>
68110
68111         * m4/jm-macros.m4: Add a comment.
68112
68113 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68114
68115         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
68116         <inttypes.h> defines strtoumax as a macro (and not as a
68117         function).
68118
68119 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68120
68121         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
68122         that we can shift, multiply and divide unsigned long long
68123         values; Ultrix cc can't do it.
68124
68125 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68126
68127         * m4/mktime.m4: New file, which is a preview of what should appear
68128         in the next public autoconf release.
68129
68130 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68131
68132         * m4/lfs.m4: Remove this file.
68133         * m4/largefile.m4: New file.  It contains the old contents of
68134         lfs.m4, except that all names with prefix AC_LFS have been
68135         changed to use the prefix AC_SYS_LARGEFILE instead, to be
68136         compatible with future autoconf versions.  Also, some minor m4
68137         quoting problems have been fixed.
68138
68139 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68140
68141         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
68142         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
68143         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
68144         and simplify the shell code.
68145
68146 1999-08-01  Jim Meyering  <meyering@ascend.com>
68147
68148         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
68149         m4.
68150
68151 1999-07-20  Jim Meyering  <meyering@ascend.com>
68152
68153         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
68154
68155 1999-07-15  Jim Meyering  <meyering@ascend.com>
68156
68157         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
68158
68159 1999-05-22  Jim Meyering  <meyering@ascend.com>
68160
68161         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
68162
68163 1999-05-20  Jim Meyering  <meyering@ascend.com>
68164
68165         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
68166         Add a colon after each `then' in case $4 is empty.
68167
68168 1999-05-16  Jim Meyering  <meyering@ascend.com>
68169
68170         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
68171
68172 1999-05-10  Jim Meyering  <meyering@ascend.com>
68173
68174         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
68175
68176         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
68177         AC_FUNC_MKTIME.
68178
68179 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
68180
68181         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
68182
68183 1999-05-04  Paul Eggert  <eggert@twinsun.com>
68184
68185         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
68186         not CPPFLAGS, so that linking works correctly in IRIX.
68187
68188 1999-04-30  Paul Eggert  <eggert@twinsun.com>
68189
68190         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
68191
68192 1999-04-20  Paul Eggert  <eggert@twinsun.com>
68193
68194         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
68195         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
68196         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
68197         jm_AC_TYPE_UNSIGNED_LONG_LONG.
68198         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
68199
68200         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
68201
68202 1999-04-20  Jim Meyering  <meyering@ascend.com>
68203
68204         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
68205         AC_REPLACE xstroull if necessary.  From Paul Eggert.
68206         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
68207
68208 1999-04-18  Jim Meyering  <meyering@ascend.com>
68209
68210         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
68211         * m4/jm-macros.m4: Use it.
68212
68213 1999-04-06  Jim Meyering  <meyering@ascend.com>
68214
68215         * m4/strftime.m4: Remove test for %f.
68216
68217 1999-03-29  Jim Meyering  <meyering@ascend.com>
68218
68219         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
68220         superset of the AC_TYPE_* checks in the textutils, fileutils,
68221         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
68222         AC_TYPE_PID_T.
68223
68224 1999-03-28  Jim Meyering  <meyering@ascend.com>
68225
68226         * m4/jm-macros.m4: Define GNU_PACKAGE here.
68227         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
68228         replaced e.g., in the *.sh files of the sh-utils.
68229
68230 1999-03-20  Jim Meyering  <meyering@ascend.com>
68231
68232         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
68233         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
68234         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
68235
68236 1999-03-19  Jim Meyering  <meyering@ascend.com>
68237
68238         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
68239
68240 1999-03-12  Jim Meyering  <meyering@ascend.com>
68241
68242         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
68243
68244 1999-03-07  Jim Meyering  <meyering@ascend.com>
68245
68246         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
68247         declared.
68248
68249 1999-02-17  Jim Meyering  <meyering@ascend.com>
68250
68251         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
68252         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
68253
68254 1999-02-07  Jim Meyering  <meyering@ascend.com>
68255
68256         * m4/group-member.m4: New file -- extracted from sh-utils'
68257         configure.in.
68258
68259         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
68260         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
68261
68262 1999-02-06  Jim Meyering  <meyering@ascend.com>
68263
68264         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
68265         * m4/fnmatch.m4: Likewise.
68266         * m4/getgroups.m4: Likewise.
68267         * m4/lstat.m4: Likewise.
68268         * m4/malloc.m4: Likewise.
68269         * m4/putenv.m4: Likewise.
68270         * m4/realloc.m4: Likewise.
68271         * m4/regex.m4: Likewise.
68272         * m4/stat.m4: Likewise.
68273         * m4/strftime.m4: Likewise.
68274         Suggestion from Alain Magloire.
68275
68276         * m4/chown.m4: Use `.$ac_objext', not `.o'.
68277         * m4/fnmatch.m4: Likewise.
68278         * m4/getgroups.m4: Likewise.
68279         * m4/getline.m4: Likewise.
68280         * m4/lstat.m4: Likewise.
68281         * m4/malloc.m4: Likewise.
68282         * m4/memcmp.m4: Likewise.
68283         * m4/putenv.m4: Likewise.
68284         * m4/realloc.m4: Likewise.
68285         * m4/regex.m4: Likewise.
68286         * m4/stat.m4: Likewise.
68287         * m4/strftime.m4: Likewise.
68288         Suggestion from Alain Magloire.
68289
68290         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
68291         an argument.
68292
68293         * m4/regex.m4: Add a run-time Test for proper operation of
68294         re_compile_pattern.
68295
68296 1999-01-31  Jim Meyering  <meyering@ascend.com>
68297
68298         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
68299
68300 1999-01-30  Jim Meyering  <meyering@ascend.com>
68301
68302         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
68303
68304         * m4/jm-mktime.m4: Make this a wrapper around the official
68305         AM_FUNC_MKTIME rather than my private copy, now that the official one
68306         is up to date.
68307         * m4/mktime.m4: Remove file.
68308
68309         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
68310         * m4/uptime.m4: Likewise.
68311         * m4/uintmax_t.m4: Likewise.
68312
68313 1999-01-28  Jim Meyering  <meyering@ascend.com>
68314
68315         * m4/jm-macros.m4: Use jm_AFS.
68316         * m4/afs.m4: New file (from fileutils' configure.in).
68317
68318         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
68319         * m4/chown.m4: Likewise.
68320         * m4/d-ino.m4: Likewise.
68321         * m4/d-type.m4: Likewise.
68322         * m4/fnmatch.m4: Likewise.
68323         * m4/getgroups.m4: Likewise.
68324         * m4/gettext.m4: Likewise.
68325         * m4/jm-mktime.m4: Likewise.
68326         * m4/jm-winsz2.m4: Likewise.
68327         * m4/lcmessage.m4: Likewise.
68328         * m4/ls-mntd-fs.m4: Likewise.
68329         * m4/malloc.m4: Likewise.
68330         * m4/memcmp.m4: Likewise.
68331         * m4/putenv.m4: Likewise.
68332         * m4/realloc.m4: Likewise.
68333         * m4/st_mtim.m4: Likewise.
68334         * m4/strftime.m4: Likewise.
68335
68336 1999-01-16  Jim Meyering  <meyering@ascend.com>
68337
68338         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
68339         (ARGMATCH_DIE_DECL): Define.
68340
68341 1999-01-12  Jim Meyering  <meyering@ascend.com>
68342
68343         * m4/Makefile.am.in: Rewrite to avoid using fmt.
68344         Reported by Lars Hecking.
68345
68346 1999-01-10  Jim Meyering  <meyering@ascend.com>
68347
68348         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
68349         gross kludge.
68350         * m4/inttypes_h.m4: Likewise.
68351         * m4/lstat.m4: Likewise.
68352         * m4/malloc.m4: Likewise.
68353         * m4/readdir.m4: Likewise.
68354         * m4/realloc.m4: Likewise.
68355         * m4/st_dm_mode.m4: Likewise.
68356         * m4/stat.m4: Likewise.
68357         * m4/utimbuf.m4: Likewise.
68358         * m4/utimes.m4: Likewise.
68359
68360         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
68361         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
68362         comments in config.h.in are meaningful.
68363
68364         * m4/jm-macros.m4: Require autoconf-2.13 here.
68365
68366         * m4/regex.m4: By default, don't use the included regex.c on systems
68367         with glibc 2.  Suggestion from Uli Drepper.
68368
68369 1999-01-02  Jim Meyering  <meyering@ascend.com>
68370
68371         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
68372
68373 1998-12-18  Jim Meyering  <meyering@ascend.com>
68374
68375         * m4/Makefile.am.in (Makefile.am): Simplify rule.
68376         Based on a suggestion from Lars Hecking.
68377
68378 1998-11-16  Paul Eggert  <eggert@twinsun.com>
68379
68380         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
68381
68382 1998-11-16  Jim Meyering  <meyering@ascend.com>
68383
68384         * m4/lfs.m4: Double-quote the `uname...` expression.
68385
68386 1998-11-14  Jim Meyering  <meyering@ascend.com>
68387
68388         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
68389         * m4/stat.m4: Likewise.
68390
68391 1998-11-03  Jim Meyering  <meyering@ascend.com>
68392
68393         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
68394         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
68395
68396 1998-10-18  Jim Meyering  <meyering@ascend.com>
68397
68398         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
68399
68400 1998-10-17  Jim Meyering  <meyering@ascend.com>
68401
68402         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
68403         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
68404         calls for those previously hard-coded headers.  Instead, take a new
68405         parameter.
68406         (jm_CHECK_DECLARATIONS): Reflect interface change.
68407         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
68408         (jm_CHECK_DECL_LOCALTIME_R): New macro.
68409
68410         * m4/mktime.m4: Test for spring-forward gap before long-running test.
68411
68412 1998-10-14  Jim Meyering  <meyering@ascend.com>
68413
68414         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
68415         instead of "TZ=America/Vancouver".  From Paul Eggert.
68416
68417 1998-10-11  Jim Meyering  <meyering@ascend.com>
68418
68419         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
68420         This adds a test for a recently added compatibility fix for mktime.c.
68421         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
68422
68423 1998-09-27  Jim Meyering  <meyering@ascend.com>
68424
68425         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
68426
68427         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
68428         ../configure.in, including a change from Gordon Matzigkeit to allow
68429         cross-compiling for the Hurd.
68430
68431         * m4/glibc.m4: New file/macro to test for the GNU C Library
68432         versions 1 and 2.  From Gordon Matzigkeit.
68433         Indent.
68434
68435 1998-09-21  Jim Meyering  <meyering@ascend.com>
68436
68437         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
68438
68439 1998-08-18  Paul Eggert  <eggert@twinsun.com>
68440
68441         Port nanosecond-resolution times to UnixWare 2.1.2 and
68442         pedantic Solaris 2.6.
68443
68444         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
68445         AC_STRUCT_ST_MTIM.
68446         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
68447         Generate name of ns member, instead of just 1 or undef.
68448         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
68449
68450 1998-08-15  Jim Meyering  <meyering@ascend.com>
68451
68452         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
68453         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
68454         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
68455         instead of jm_TYPE_SSIZE_T.
68456
68457 1998-08-12  Jim Meyering  <meyering@ascend.com>
68458
68459         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
68460
68461 1998-08-02  Jim Meyering  <meyering@ascend.com>
68462
68463         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
68464         in acconfig.h manually.
68465
68466 1998-07-31  Paul Eggert  <eggert@twinsun.com>
68467
68468         * m4/st_mtim.m4: New file.
68469
68470 1998-07-28  Jim Meyering  <meyering@ascend.com>
68471
68472         * m4/utimes.m4: Undef stat.
68473
68474 1998-07-25  Jim Meyering  <meyering@ascend.com>
68475
68476         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
68477         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
68478
68479 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
68480
68481         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
68482         uid and gid actually remain unchanged.
68483
68484 1998-07-07  Jim Meyering  <meyering@ascend.com>
68485
68486         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
68487
68488 1998-07-04  Jim Meyering  <meyering@ascend.com>
68489
68490         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
68491         to prove that this macro can be used in packages without regex.c.
68492
68493 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
68494
68495         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
68496         is to be used.
68497
68498 1998-07-03  Jim Meyering  <meyering@ascend.com>
68499
68500         * m4/gettext.m4: Add -lintl if it's found to be necessary.
68501
68502         * m4/gettext.m4: New file -- from gettext-0.10.35.
68503         * m4/lcmessage.m4: Likewise.
68504         * m4/progtest.m4: Likewise.
68505
68506         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
68507         * m4/jm-macros.m4: Require the new macro.
68508
68509 1998-06-29  Jim Meyering  <meyering@ascend.com>
68510
68511         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
68512         for the definition of NGROUPS (used in a system header included
68513         by sys/mount.h).
68514
68515 1998-06-28  Jim Meyering  <meyering@ascend.com>
68516
68517         * m4/ls-mntd-fs.m4: New file.
68518         * m4/fstypename.m4: New file.
68519
68520         * m4/jm-macros.m4: Require the new macro.
68521         * m4/jm-glibc-io.m4: New file.
68522
68523 1998-05-19  Jim Meyering  <meyering@ascend.com>
68524
68525         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
68526         * m4/lchown.m4: New file.
68527
68528         * m4/Makefile.am.in: New file.
68529         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
68530
68531 1998-05-14  Jim Meyering  <meyering@ascend.com>
68532
68533         * m4/Makefile.am (EXTRA_DIST): Add them.
68534         * m4/jm-macros.m4: New file.
68535         * m4/utimbuf.m4: New file.
68536
68537 1998-05-12  Jim Meyering  <meyering@ascend.com>
68538
68539         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68540
68541 1998-05-11  Jim Meyering  <meyering@ascend.com>
68542
68543         * m4/isc-posix.m4: New file.
68544
68545 1998-05-10  Jim Meyering  <meyering@ascend.com>
68546
68547         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68548
68549 1998-05-09  Jim Meyering  <meyering@ascend.com>
68550
68551         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68552         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68553         with automake.
68554
68555         * m4/ssize_t.m4: New file.
68556         * m4/mktime.m4: Remove file -- the new automake has this now.
68557
68558 1998-04-26  Jim Meyering  <meyering@ascend.com>
68559
68560         * m4/assert.m4: New file.
68561         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68562
68563 1998-04-05  Jim Meyering  <meyering@ascend.com>
68564
68565         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68566         (jm_PREREQ): Use it here.
68567
68568 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68569
68570         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68571         in acconfig.h.
68572
68573 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68574
68575         * m4/prereq.m4: New file.
68576         * m4/error.m4: New file.
68577         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68578
68579 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68580
68581         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68582         cache-check for the same variable -- that defeated the purpose of
68583         the test; the test program was never run.  This was a problem only
68584         on systems with losing getline functions -- HP-UX 10.20 is one.
68585         Reported by Bjorn Helgaas.
68586
68587 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68588
68589         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68590
68591 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68592
68593         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68594
68595         * m4/const.m4: New file.  Use an initializer in this declaration
68596         typedef int charset[2]; const charset x;
68597         Reported by Bob Glickstein.
68598
68599 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68600
68601         * m4/chown.m4: Fix reversed types on -1 args to chown.
68602         From Kaveh Ghazi.
68603
68604 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68605
68606         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68607         Add lseek and memchr.
68608
68609         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68610         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68611         have a 20-character limit on names.
68612
68613 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68614
68615         * m4/inttypes_h.m4: New file.
68616         * m4/uintmax_t.m4: New file.
68617         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68618
68619
68620         -----
68621
68622         Local Variables:
68623         coding: utf-8
68624         End:
68625
68626         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68627
68628         Copying and distribution of this file, with or without
68629         modification, are permitted provided the copyright notice
68630         and this notice are preserved.